403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/penpalamerica.com/wwwroot/mobile/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpalamerica.com/wwwroot/mobile/js/app.js
/*! For license information please see app.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=275)}([function(e,t,n){e.exports=n(290)},function(e,t,n){"use strict";var r,i=(r=n(6))&&"object"==typeof r&&"default"in r?r.default:r;n(280),n(281),n(282),n(284),n(285),n(286),n(287),n(288),n(289);i.registerVersion("firebase","7.12.0","app");console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),i.registerVersion("firebase","7.12.0"),e.exports=i},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Et(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)s(i=t[r=g[n]])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function k(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function E(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&S(e[r])!==S(t[r]))&&a++;return a+o}function C(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}C(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,M={};function $(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),M[e]||(C(t),M[e]=!0)}function P(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,r=h({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=h({},r[n]));return r}function L(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var A={};function I(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function D(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function N(e){var t,n,r={};for(n in e)d(e,n)&&(t=D(n))&&(r[t]=e[n]);return r}var R={};function j(e,t){R[e]=t}function B(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},U={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(Y);for(t=0,n=i.length;t<n;t++)U[i[t]]?i[t]=U[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=P(i[r])?i[r].call(t,e):i[r];return o}}(t),H[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W=/\d/,G=/\d\d/,K=/\d{3}/,J=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=P(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)fe[e[n]]=r}function me(e,t){pe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function ve(e,t,n){null!=t&&d(fe,e)&&fe[e](t,n._a,n,e)}function ge(e){return ye(e)?366:365}function ye(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),I("year","y"),j("year",1),ue("Y",oe),ue("YY",Q,G),ue("YYYY",ne,J),ue("YYYYY",re,X),ue("YYYYYY",re,X),pe(["YYYYY","YYYYYY"],0),pe("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):S(e)})),pe("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),pe("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var be,_e=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Se(this,e,n),i.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Se(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ee(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ee(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ye(e)?29:28:31-r%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),I("month","M"),j("month",8),ue("M",Q),ue("MM",Q,G),ue("MMM",(function(e,t){return t.monthsShortRegex(e)})),ue("MMMM",(function(e,t){return t.monthsRegex(e)})),pe(["M","MM"],(function(e,t){t[1]=S(e)-1})),pe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:p(n).invalidMonth=e}));var Ce=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Me(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,a))?i:null:-1!==(i=be.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,a))||-1!==(i=be.call(this._longMonthsParse,a))?i:null:-1!==(i=be.call(this._longMonthsParse,a))||-1!==(i=be.call(this._shortMonthsParse,a))?i:null}function $e(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ee(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Pe(e){return null!=e?($e(this,e),i.updateOffset(this,!0),this):ke(this,"Month")}var Oe=le,Le=le;function Ae(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=he(r[t]),i[t]=he(i[t]);for(t=0;t<24;t++)o[t]=he(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ie(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function De(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Ne(e,r,i);return s<=0?a=ge(o=e-1)+s:s>ge(e)?(o=e+1,a=s-ge(e)):(o=e,a=s),{year:o,dayOfYear:a}}function je(e,t,n){var r,i,o=Ne(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Be(i=e.year()-1,t,n):a>Be(e.year(),t,n)?(r=a-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Be(e,t,n){var r=Ne(e,t,n),i=Ne(e+1,t,n);return(ge(e)-r+i)/7}function Ye(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),ue("w",Q),ue("ww",Q,G),ue("W",Q),ue("WW",Q,G),me(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,r){t[r]=S(e)}));var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function ze(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=be.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=be.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=be.call(this._weekdaysParse,a))||-1!==(i=be.call(this._shortWeekdaysParse,a))||-1!==(i=be.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,a))||-1!==(i=be.call(this._weekdaysParse,a))||-1!==(i=be.call(this._minWeekdaysParse,a))?i:null:-1!==(i=be.call(this._minWeekdaysParse,a))||-1!==(i=be.call(this._weekdaysParse,a))||-1!==(i=be.call(this._shortWeekdaysParse,a))?i:null}var Ve=le,qe=le,We=le;function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=he(s[t]),l[t]=he(l[t]),c[t]=he(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Je(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ke),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Ke.apply(this)+B(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Ke.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Je("a",!0),Je("A",!1),I("hour","h"),j("hour",13),ue("a",Xe),ue("A",Xe),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,G),ue("hh",Q,G),ue("kk",Q,G),ue("hmm",Z),ue("hmmss",ee),ue("Hmm",Z),ue("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],(function(e,t,n){var r=S(e);t[3]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[3]=S(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[3]=S(e.substr(0,r)),t[4]=S(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=S(e.substr(0,r)),t[4]=S(e.substr(r,2)),t[5]=S(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=S(e.substr(0,r)),t[4]=S(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=S(e.substr(0,r)),t[4]=S(e.substr(r,2)),t[5]=S(e.substr(i))}));var Qe,Ze=we("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:xe,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ue,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Qe._abbr,n(292)("./"+t),ot(r)}catch(e){}return tt[t]}function ot(e,t){var n;return e&&((n=s(t)?st(e):at(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function at(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])$("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new L(O(r,t)),nt[e]&&nt[e].forEach((function(e){at(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!o(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=rt(e[o]).split("-")).length,n=(n=rt(e[o+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&E(i,n,!0)>=t-1)break;t--}o++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ee(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ct(t.GG,e._a[0],je(Ct(),1,4).year),r=ct(t.W,1),((i=ct(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=je(Ct(),o,a);n=ct(t.gg,e._a[0],c.year),r=ct(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>Be(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Re(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ct(e._a[0],r[0]),(e._dayOfYear>ge(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=De(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:Ie).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((\-?\d+)/i;function gt(e){var t,n,r,i,o,a,s=e._i,l=dt.exec(s)||ht.exec(s);if(l){for(p(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[1])){i=pt[t][0],r=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){o=(l[2]||" ")+mt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),kt(e)}else e._isValid=!1}var yt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var _t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e){var t,n,r,i,o,a,s,l=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[bt(t),xe.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){return!e||He.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,a,s=""+e._i,l=s.length,c=0;for(r=q(e._f,e._locale).match(Y)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(de(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),U[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),ve(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=l-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ut(e),lt(e)}else wt(e);else gt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(lt(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),m(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=vt.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,wt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=u(t.slice(0),(function(e){return parseInt(e,10)})),ut(e)):a(t)?function(e){if(!e._d){var t=N(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),ut(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(lt(St(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ct(e,t,n,r){return Et(e,t,n,r,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Tt=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),xt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Mt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=N(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===be.call($t,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<$t.length;++r)if(e[$t[r]]){if(n)return!1;parseFloat(e[$t[r]])!==S(e[$t[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Ot(e){return e instanceof Pt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)}))}At("Z",":"),At("ZZ",""),ue("Z",se),ue("ZZ",se),pe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Dt(se,e)}));var It=/([\+\-]|\d\d)/gi;function Dt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(It)||["-",0,0],i=60*r[1]+S(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Nt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():Ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Ct(e).local()}function Rt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Bt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var n,r,i,o,a,s,c=e,u=null;return Ot(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Bt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:S(u[2])*n,h:S(u[3])*n,m:S(u[4])*n,s:S(u[5])*n,ms:S(Lt(1e3*u[6]))*n}):(u=Yt.exec(e))?(n="-"===u[1]?-1:1,c={y:Ht(u[2],n),M:Ht(u[3],n),w:Ht(u[4],n),d:Ht(u[5],n),h:Ht(u[6],n),m:Ht(u[7],n),s:Ht(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Ct(c.from),a=Ct(c.to),i=o.isValid()&&a.isValid()?(a=Nt(a,o),o.isBefore(a)?s=Ut(o,a):((s=Ut(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Pt(c),Ot(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||($(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,Ft(n="string"==typeof n?+n:n,r),e),this}}function Vt(e,t,n,r){var o=t._milliseconds,a=Lt(t._days),s=Lt(t._months);e.isValid()&&(r=null==r||r,s&&$e(e,ke(e,"Month")+s*n),a&&Se(e,"Date",ke(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Ft.fn=Pt.prototype,Ft.invalid=function(){return Ft(NaN)};var qt=zt(1,"add"),Wt=zt(-1,"subtract");function Gt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jt=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Xt(){return this._locale}function Qt(e,t){return(e%t+t)%t}function Zt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){z(0,[e,e.length],0,t)}function nn(e,t,n,r,i){var o;return null==e?je(this,r,i).year:(t>(o=Be(e,r,i))&&(t=o),rn.call(this,e,t,n,r,i))}function rn(e,t,n,r,i){var o=Re(e,t,n,r,i),a=De(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ue("G",oe),ue("g",oe),ue("GG",Q,G),ue("gg",Q,G),ue("GGGG",ne,J),ue("gggg",ne,J),ue("GGGGG",re,X),ue("ggggg",re,X),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=S(e)})),me(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),ue("Q",W),pe("Q",(function(e,t){t[1]=3*(S(e)-1)})),z("D",["DD",2],"Do","date"),I("date","D"),j("date",9),ue("D",Q),ue("DD",Q,G),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],2),pe("Do",(function(e,t){t[2]=S(e.match(Q)[0])}));var on=we("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),ue("DDD",te),ue("DDDD",K),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),z("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),ue("m",Q),ue("mm",Q,G),pe(["m","mm"],4);var an=we("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),j("second",15),ue("s",Q),ue("ss",Q,G),pe(["s","ss"],5);var sn,ln=we("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),j("millisecond",16),ue("S",te,W),ue("SS",te,G),ue("SSS",te,K),sn="SSSS";sn.length<=9;sn+="S")ue(sn,ie);function cn(e,t){t[6]=S(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,cn);var un=we("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var dn=_.prototype;function hn(e){return e}dn.add=qt,dn.calendar=function(e,t){var n=e||Ct(),r=Nt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(P(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Ct(n)))},dn.clone=function(){return new _(this)},dn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=D(t)){case"year":o=Gt(this,r)/12;break;case"month":o=Gt(this,r);break;case"quarter":o=Gt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:k(o)},dn.endOf=function(e){var t;if(void 0===(e=D(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Zt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Ct(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Ct(),e)},dn.get=function(e){return P(this[e=D(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,r){var i=w(e)?e:Ct(e),o=w(t)?t:Ct(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},dn.isSame=function(e,t){var n,r=w(e)?e:Ct(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=D(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return m(this)},dn.lang=Jt,dn.locale=Kt,dn.localeData=Xt,dn.max=xt,dn.min=Tt,dn.parsingFlags=function(){return h({},p(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=N(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(P(this[e=D(e)]))return this[e](t);return this},dn.startOf=function(e){var t;if(void 0===(e=D(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Zt;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Qt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Qt(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.subtract=Wt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=_e,dn.isLeapYear=function(){return ye(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Pe,dn.daysInMonth=function(){return Ee(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Be(this.year(),1,4)},dn.date=on,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=Ze,dn.minute=dn.minutes=an,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=un,dn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Rt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Vt(this,Ft(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=jt,dn.isUTC=jt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=T("dates accessor is deprecated. Use date instead.",on),dn.months=T("months accessor is deprecated. Use month instead",Pe),dn.years=T("years accessor is deprecated. Use year instead",_e),dn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=St(e))._a){var t=e._isUTC?f(e._a):Ct(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var fn=L.prototype;function pn(e,t,n,r){var i=st(),o=f().set(r,t);return i[n](o,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0;if(null!=n)return pn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=pn(t,(i+a)%7,r,"day");return s}fn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},fn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(e){return this._ordinal.replace("%d",e)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return P(i)?i(e,t,n,r):i.replace(/%d/i,e)},fn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},fn.set=function(e){var t,n;for(n in e)P(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},fn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Me.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},fn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(e){return je(e,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ye(n,this._week.dow):e?n[e.day()]:n},fn.weekdaysMin=function(e){return!0===e?Ye(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},fn.weekdaysShort=function(e){return!0===e?Ye(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},fn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return ze.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},fn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},fn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ot),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",st);var gn=Math.abs;function yn(e,t,n,r){var i=Ft(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var Sn=kn("ms"),En=kn("s"),Cn=kn("m"),Tn=kn("h"),xn=kn("d"),Mn=kn("w"),$n=kn("M"),Pn=kn("Q"),On=kn("y");function Ln(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Ln("milliseconds"),In=Ln("seconds"),Dn=Ln("minutes"),Nn=Ln("hours"),Rn=Ln("days"),jn=Ln("months"),Bn=Ln("years"),Yn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};function Hn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Un=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Un(this._milliseconds)/1e3,r=Un(this._days),i=Un(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var o=k(i/12),a=i%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=zn(this._months)!==zn(d)?"-":"",p=zn(this._days)!==zn(d)?"-":"",m=zn(this._milliseconds)!==zn(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var qn=Pt.prototype;return qn.isValid=function(){return this._isValid},qn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},qn.add=function(e,t){return yn(this,e,t,1)},qn.subtract=function(e,t){return yn(this,e,t,-1)},qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=D(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},qn.asMilliseconds=Sn,qn.asSeconds=En,qn.asMinutes=Cn,qn.asHours=Tn,qn.asDays=xn,qn.asWeeks=Mn,qn.asMonths=$n,qn.asQuarters=Pn,qn.asYears=On,qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},qn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*bn(wn(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=k(o/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),i=k(_n(a)),s+=i,a-=bn(wn(i)),r=k(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},qn.clone=function(){return Ft(this)},qn.get=function(e){return e=D(e),this.isValid()?this[e+"s"]():NaN},qn.milliseconds=An,qn.seconds=In,qn.minutes=Dn,qn.hours=Nn,qn.days=Rn,qn.weeks=function(){return k(this.days()/7)},qn.months=jn,qn.years=Bn,qn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),i=Yn(r.as("s")),o=Yn(r.as("m")),a=Yn(r.as("h")),s=Yn(r.as("d")),l=Yn(r.as("M")),c=Yn(r.as("y")),u=i<=Fn.ss&&["s",i]||i<Fn.s&&["ss",i]||o<=1&&["m"]||o<Fn.m&&["mm",o]||a<=1&&["h"]||a<Fn.h&&["hh",a]||s<=1&&["d"]||s<Fn.d&&["dd",s]||l<=1&&["M"]||l<Fn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,Hn.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},qn.toISOString=Vn,qn.toString=Vn,qn.toJSON=Vn,qn.locale=Kt,qn.localeData=Xt,qn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),qn.lang=Jt,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ue("x",oe),ue("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(S(e))})),i.version="2.24.0",t=Ct,i.fn=dn,i.min=function(){var e=[].slice.call(arguments,0);return Mt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Mt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Ct(1e3*e)},i.months=function(e,t){return mn(e,t,"months")},i.isDate=c,i.locale=ot,i.invalid=v,i.duration=Ft,i.isMoment=w,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return Ct.apply(null,arguments).parseZone()},i.localeData=st,i.isDuration=Ot,i.monthsShort=function(e,t){return mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=at,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=(r=it(e))&&(i=r._config),t=O(i,t),(n=new L(t)).parentLocale=tt[e],tt[e]=n,ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return x(tt)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=D,i.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(37)(e))},function(e,t,n){"use strict";(function(e,r,i){var o=n(83);const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,l=(c=Object.create(null),e=>{const t=a.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const u=e=>(e=e.toLowerCase(),t=>l(t)===e),d=e=>t=>typeof t===e,{isArray:h}=Array,f=d("undefined");const p=u("ArrayBuffer");const m=d("string"),v=d("function"),g=d("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==l(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},_=u("Date"),w=u("File"),k=u("Blob"),S=u("FileList"),E=u("URLSearchParams"),[C,T,x,M]=["ReadableStream","Request","Response","Headers"].map(u);function $(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,L=e=>!f(e)&&e!==O;const A=(I="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>I&&e instanceof I);var I;const D=u("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),R=u("RegExp"),j=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",Y={DIGIT:"0123456789",ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+"0123456789"};const F=u("AsyncFunction"),H=(U="function"==typeof r,z=v(O.postMessage),U?r:z?(V=`axios@${Math.random()}`,q=[],O.addEventListener("message",({source:e,data:t})=>{e===O&&t===V&&q.length&&q.shift()()},!1),e=>{q.push(e),O.postMessage(V,"*")}):e=>setTimeout(e));var U,z,V,q;const W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):void 0!==i&&i.nextTick||H;t.a={isArray:h,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=l(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isReadableStream:C,isRequest:T,isResponse:x,isHeaders:M,isUndefined:f,isDate:_,isFile:w,isBlob:k,isRegExp:R,isFunction:v,isStream:e=>y(e)&&v(e.pipe),isURLSearchParams:E,isTypedArray:A,isFileList:S,forEach:$,merge:function e(){const{caseless:t}=L(this)&&this||{},n={},r=(r,i)=>{const o=t&&P(n,i)||i;b(n[o])&&b(r)?n[o]=e(n[o],r):b(r)?n[o]=e({},r):h(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&$(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>($(t,(t,r)=>{n&&v(t)?e[r]=Object(o.a)(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:D,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:O,isContextDefined:L,ALPHABET:Y,generateString:(e=16,t=Y.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=h(e)?[]:{};return $(e,(e,t)=>{const o=n(e,r+1);!f(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(y(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:H,asap:W}}).call(this,n(10),n(18).setImmediate,n(13))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return p})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return g})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return k})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return E})),n.d(t,"__classPrivateFieldSet",(function(){return C}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof g?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),function(e,n){var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var g=v("slot,component",!0),y=v("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function w(e,t){return _.call(e,t)}function k(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var S=/-(\w)/g,E=k((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),C=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),T=/\B([A-Z])/g,x=k((function(e){return e.replace(T,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function $(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function L(e,t,n){}var A=function(e,t,n){return!1},I=function(e){return e};function D(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return D(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return D(e[n],t[n])}))}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var j=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],Y={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:A,isReservedAttr:A,isUnknownElement:A,getTagNamespace:L,parsePlatformTagName:I,mustUseProp:A,async:!0,_lifecycleHooks:B},F=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var z=new RegExp("[^"+F.source+".$_\\d]");var V,q="__proto__"in{},W="undefined"!=typeof window,G="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=G&&WXEnvironment.platform.toLowerCase(),J=W&&window.navigator.userAgent.toLowerCase(),X=J&&/msie|trident/.test(J),Q=J&&J.indexOf("msie 9.0")>0,Z=J&&J.indexOf("edge/")>0,ee=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),te=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(W)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var oe=function(){return void 0===V&&(V=!W&&!G&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),V},ae=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ce="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=L,de=0,he=function(){this.id=de++,this.subs=[]};he.prototype.addSub=function(e){this.subs.push(e)},he.prototype.removeSub=function(e){b(this.subs,e)},he.prototype.depend=function(){he.target&&he.target.addDep(this)},he.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},he.target=null;var fe=[];function pe(e){fe.push(e),he.target=e}function me(){fe.pop(),he.target=fe[fe.length-1]}var ve=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ge={child:{configurable:!0}};ge.child.get=function(){return this.componentInstance},Object.defineProperties(ve.prototype,ge);var ye=function(e){void 0===e&&(e="");var t=new ve;return t.text=e,t.isComment=!0,t};function be(e){return new ve(void 0,void 0,void 0,String(e))}function _e(e){var t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var we=Array.prototype,ke=Object.create(we);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=we[e];U(ke,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Se=Object.getOwnPropertyNames(ke),Ee=!0;function Ce(e){Ee=e}var Te=function(e){this.value=e,this.dep=new he,this.vmCount=0,U(e,"__ob__",this),Array.isArray(e)?(q?function(e,t){e.__proto__=t}(e,ke):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];U(e,o,t[o])}}(e,ke,Se),this.observeArray(e)):this.walk(e)};function xe(e,t){var n;if(l(e)&&!(e instanceof ve))return w(e,"__ob__")&&e.__ob__ instanceof Te?n=e.__ob__:Ee&&!oe()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Te(e)),t&&n&&n.vmCount++,n}function Me(e,t,n,r,i){var o=new he,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=e[t]);var c=!i&&xe(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return he.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Oe(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!l||(l?l.call(e,t):n=t,c=!i&&xe(t),o.notify())}})}}function $e(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Me(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Pe(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Oe(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Oe(t)}Te.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Me(e,t[n])},Te.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)xe(e[t])};var Le=Y.optionMergeStrategies;function Ae(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],w(e,n)?r!==i&&u(r)&&u(i)&&Ae(r,i):$e(e,n,i));return e}function Ie(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Ae(r,i):i}:t?e?function(){return Ae("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function De(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ne(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}Le.data=function(e,t,n){return n?Ie(e,t,n):t&&"function"!=typeof t?e:Ie(e,t)},B.forEach((function(e){Le[e]=De})),j.forEach((function(e){Le[e+"s"]=Ne})),Le.watch=function(e,t,n,r){if(e===ne&&(e=void 0),t===ne&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in P(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Le.props=Le.methods=Le.inject=Le.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},Le.provide=Ie;var Re=function(e,t){return void 0===t?e:t};function je(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[E(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[E(a)]=u(i)?i:{type:i};else 0;e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?P({from:o},a):{from:a}}else 0}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=je(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=je(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)w(e,o)||s(o);function s(r){var i=Le[r]||Re;a[r]=i(e[r],t[r],n,r)}return a}function Be(e,t,n,r){if("string"==typeof n){var i=e[t];if(w(i,n))return i[n];var o=E(n);if(w(i,o))return i[o];var a=C(o);return w(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ye(e,t,n,r){var i=t[e],o=!w(n,e),a=n[e],s=Ue(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===x(e)){var l=Ue(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!w(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Fe(t.type)?r.call(e):r}(r,i,e);var c=Ee;Ce(!0),xe(a),Ce(c)}return a}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function He(e,t){return Fe(e)===Fe(t)}function Ue(e,t){if(!Array.isArray(t))return He(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(He(t[n],e))return n;return-1}function ze(e,t,n){pe();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){qe(e,r,"errorCaptured hook")}}qe(e,t,n)}finally{me()}}function Ve(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return ze(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(e){ze(e,r,i)}return o}function qe(e,t,n){if(Y.errorHandler)try{return Y.errorHandler.call(null,e,t,n)}catch(t){t!==e&&We(t,null,"config.errorHandler")}We(e,t,n)}function We(e,t,n){if(!W&&!G||"undefined"==typeof console)throw e;console.error(e)}var Ge,Ke=!1,Je=[],Xe=!1;function Qe(){Xe=!1;var e=Je.slice(0);Je.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&se(Promise)){var Ze=Promise.resolve();Ge=function(){Ze.then(Qe),ee&&setTimeout(L)},Ke=!0}else if(X||"undefined"==typeof MutationObserver||!se(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ge=void 0!==n&&se(n)?function(){n(Qe)}:function(){setTimeout(Qe,0)};else{var et=1,tt=new MutationObserver(Qe),nt=document.createTextNode(String(et));tt.observe(nt,{characterData:!0}),Ge=function(){et=(et+1)%2,nt.data=String(et)},Ke=!0}function rt(e,t){var n;if(Je.push((function(){if(e)try{e.call(t)}catch(e){ze(e,t,"nextTick")}else n&&n(t)})),Xe||(Xe=!0,Ge()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var it=new le;function ot(e){!function e(t,n){var r,i,o=Array.isArray(t);if(!o&&!l(t)||Object.isFrozen(t)||t instanceof ve)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,it),it.clear()}var at=k((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function st(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Ve(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Ve(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function lt(e,t,n,r,o,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=at(l),i(c)||(i(u)?(i(c.fns)&&(c=e[l]=st(c,s)),a(d.once)&&(c=e[l]=o(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)i(e[l])&&r((d=at(l)).name,t[l],d.capture)}function ct(e,t,n){var r;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),b(r.fns,l)}i(s)?r=st([l]):o(s.fns)&&a(s.merged)?(r=s).fns.push(l):r=st([s,l]),r.merged=!0,e[t]=r}function ut(e,t,n,r,i){if(o(t)){if(w(t,n))return e[n]=t[n],i||delete t[n],!0;if(w(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function dt(e){return s(e)?[be(e)]:Array.isArray(e)?function e(t,n){var r,l,c,u,d=[];for(r=0;r<t.length;r++)i(l=t[r])||"boolean"==typeof l||(c=d.length-1,u=d[c],Array.isArray(l)?l.length>0&&(ht((l=e(l,(n||"")+"_"+r))[0])&&ht(u)&&(d[c]=be(u.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ht(u)?d[c]=be(u.text+l):""!==l&&d.push(be(l)):ht(l)&&ht(u)?d[c]=be(u.text+l.text):(a(t._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),d.push(l)));return d}(e):void 0}function ht(e){return o(e)&&o(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var l=e[o].default;n[o]="function"==typeof l?l.call(t):l}else 0}}return n}}function pt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(mt)&&delete n[c];return n}function mt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function vt(e,t,n){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=gt(t,l,e[l]))}else i={};for(var c in t)c in i||(i[c]=yt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),U(i,"$stable",a),U(i,"$key",s),U(i,"$hasNormal",o),i}function gt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:dt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function yt(e,t){return function(){return e[t]}}function bt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(l(e))if(ce&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),u=c.next();!u.done;)n.push(t(u.value,n.length)),u=c.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function _t(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function wt(e){return Be(this.$options,"filters",e)||I}function kt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function St(e,t,n,r,i){var o=Y.keyCodes[t]||n;return i&&r&&!Y.keyCodes[t]?kt(i,r):o?kt(o,e):r?x(r)!==t:void 0}function Et(e,t,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=O(n));var a=function(a){if("class"===a||"style"===a||y(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||Y.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=E(a),c=x(a);l in o||c in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var s in n)a(s)}else;return e}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||xt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Tt(e,t,n){return xt(e,"__once__"+t+(n?"_"+n:""),!0),e}function xt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Mt(e[r],t+"_"+r,n);else Mt(e,t,n)}function Mt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function $t(e,t){if(t)if(u(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Pt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Pt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Ot(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Lt(e,t){return"string"==typeof e?t+e:e}function At(e){e._o=Tt,e._n=m,e._s=p,e._l=bt,e._t=_t,e._q=D,e._i=N,e._m=Ct,e._f=wt,e._k=St,e._b=Et,e._v=be,e._e=ye,e._u=Pt,e._g=$t,e._d=Ot,e._p=Lt}function It(e,t,n,i,o){var s,l=this,c=o.options;w(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=a(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=ft(c.inject,i),this.slots=function(){return l.$slots||vt(e.scopedSlots,l.$slots=pt(n,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return vt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=vt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var o=Ft(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,d)}}function Dt(e,t,n,r,i){var o=_e(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Nt(e,t){for(var n in t)e[E(n)]=t[n]}At(It.prototype);var Rt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Rt.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Xt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,o){0;var a=i.data.scopedSlots,s=e.$scopedSlots,l=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),c=!!(o||e.$options._renderChildren||l);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=o,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Ce(!1);for(var u=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=e.$options.props;u[f]=Ye(f,p,t,e)}Ce(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Jt(e,n,m),c&&(e.$slots=pt(o,i.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,tn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,rn.push(t)):en(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Zt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);tn(t,"deactivated")}}(t,!0):t.$destroy())}},jt=Object.keys(Rt);function Bt(e,t,n,s,c){if(!i(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(a(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=Ut;n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(a(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var r=e.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},h=R((function(n){e.resolved=zt(n,t),s?r.length=0:d(!0)})),p=R((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,p);return l(m)&&(f(m)?i(e.resolved)&&m.then(h,p):f(m.component)&&(m.component.then(h,p),o(m.error)&&(e.errorComp=zt(m.error,t)),o(m.loading)&&(e.loadingComp=zt(m.loading,t),0===m.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),o(m.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,i){var o=ye();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(d,t,n,s,c);t=t||{},En(e),o(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var h=function(e,t,n){var r=t.options.props;if(!i(r)){var a={},s=e.attrs,l=e.props;if(o(s)||o(l))for(var c in r){var u=x(c);ut(a,l,c,u,!0)||ut(a,s,c,u,!1)}return a}}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){var s=e.options,l={},c=s.props;if(o(c))for(var u in c)l[u]=Ye(u,c,t||r);else o(n.attrs)&&Nt(l,n.attrs),o(n.props)&&Nt(l,n.props);var d=new It(n,l,a,i,e),h=s.render.call(null,d._c,d);if(h instanceof ve)return Dt(h,n,d.parent,s,d);if(Array.isArray(h)){for(var f=dt(h)||[],p=new Array(f.length),m=0;m<f.length;m++)p[m]=Dt(f[m],n,d.parent,s,d);return p}}(e,h,t,n,s);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<jt.length;n++){var r=jt[n],i=t[r],o=Rt[r];i===o||i&&i._merged||(t[r]=i?Yt(o,i):o)}}(t);var v=e.options.name||c;return new ve("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:p,tag:c,children:s},d)}}}function Yt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,r,c,u){return(Array.isArray(n)||s(n))&&(c=r,r=n,n=void 0),a(u)&&(c=2),function(e,t,n,r,s){if(o(n)&&o(n.__ob__))return ye();o(n)&&o(n.is)&&(t=n.is);if(!t)return ye();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===s?r=dt(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var c,u;if("string"==typeof t){var d;u=e.$vnode&&e.$vnode.ns||Y.getTagNamespace(t),c=Y.isReservedTag(t)?new ve(Y.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(d=Be(e.$options,"components",t))?new ve(t,n,r,void 0,void 0,e):Bt(d,n,e,r,t)}else c=Bt(t,n,e,r);return Array.isArray(c)?c:o(c)?(o(u)&&function e(t,n,r){t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0);if(o(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];o(c.tag)&&(i(c.ns)||a(r)&&"svg"!==c.tag)&&e(c,n,r)}}(c,u),o(n)&&function(e){l(e.style)&&ot(e.style);l(e.class)&&ot(e.class)}(n),c):ye()}(e,t,n,r,c)}var Ht,Ut=null;function zt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Vt(e){return e.isComment&&e.asyncFactory}function qt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Vt(n)))return n}}function Wt(e,t){Ht.$on(e,t)}function Gt(e,t){Ht.$off(e,t)}function Kt(e,t){var n=Ht;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Jt(e,t,n){Ht=e,lt(t,n||{},Wt,Gt,Kt,e),Ht=void 0}var Xt=null;function Qt(e){var t=Xt;return Xt=e,function(){Xt=t}}function Zt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function en(e,t){if(t){if(e._directInactive=!1,Zt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)en(e.$children[n]);tn(e,"activated")}}function tn(e,t){pe();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Ve(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var nn=[],rn=[],on={},an=!1,sn=!1,ln=0;var cn=0,un=Date.now;if(W&&!X){var dn=window.performance;dn&&"function"==typeof dn.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return dn.now()})}function hn(){var e,t;for(cn=un(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),ln=0;ln<nn.length;ln++)(e=nn[ln]).before&&e.before(),t=e.id,on[t]=null,e.run();var n=rn.slice(),r=nn.slice();ln=nn.length=rn.length=0,on={},an=sn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,en(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&tn(r,"updated")}}(r),ae&&Y.devtools&&ae.emit("flush")}var fn=0,pn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new le,this.newDepIds=new le,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var e;pe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;ze(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ot(e),me(),this.cleanupDeps()}return e},pn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},pn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==on[t]){if(on[t]=!0,sn){for(var n=nn.length-1;n>ln&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);an||(an=!0,rt(hn))}}(this)},pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ze(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:L,set:L};function vn(e,t,n){mn.get=function(){return this[t][n]},mn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,mn)}function gn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Ce(!1);var o=function(o){i.push(o);var a=Ye(o,t,n,e);Me(r,o,a),o in e||vn(e,"_props",o)};for(var a in t)o(a);Ce(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?L:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return ze(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&w(r,o)||H(o)||vn(e,"_data",o)}xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new pn(e,a||L,L,yn)),i in e||bn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)kn(e,n,r[i]);else kn(e,n,r)}}(e,t.watch)}var yn={lazy:!0};function bn(e,t,n){var r=!oe();"function"==typeof n?(mn.get=r?_n(t):wn(n),mn.set=L):(mn.get=n.get?r&&!1!==n.cache?_n(t):wn(n.get):L,mn.set=n.set||L),Object.defineProperty(e,t,mn)}function _n(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),he.target&&t.depend(),t.value}}function wn(e){return function(){return e.call(this,this)}}function kn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Sn=0;function En(e){var t=e.options;if(e.super){var n=En(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&P(e.extendOptions,r),(t=e.options=je(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Cn(e){this._init(e)}function Tn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=je(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,j.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),i[r]=a,a}}function xn(e){return e&&(e.Ctor.options.name||e.tag)}function Mn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function $n(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=xn(a.componentOptions);s&&!t(s)&&Pn(n,o,r,i)}}}function Pn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Sn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=je(En(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=pt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var o=n&&n.data;Me(e,"$attrs",o&&o.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Ce(!0))}(t),gn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(Cn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=$e,e.prototype.$delete=Pe,e.prototype.$watch=function(e,t,n){if(u(t))return kn(this,e,t,n);(n=n||{}).user=!0;var r=new pn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){ze(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(Cn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?$(n):n;for(var r=$(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)Ve(n[o],t,r,t,i)}return t}}(Cn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){tn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),tn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(Cn),function(e){At(e.prototype),e.prototype.$nextTick=function(e){return rt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=vt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Ut=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){ze(n,t,"render"),e=t._vnode}finally{Ut=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ve||(e=ye()),e.parent=i,e}}(Cn);var On=[String,RegExp,Array],Ln={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:On,exclude:On,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){$n(e,(function(e){return Mn(t,e)}))})),this.$watch("exclude",(function(t){$n(e,(function(e){return!Mn(t,e)}))}))},render:function(){var e=this.$slots.default,t=qt(e),n=t&&t.componentOptions;if(n){var r=xn(n),i=this.include,o=this.exclude;if(i&&(!r||!Mn(i,r))||o&&r&&Mn(o,r))return t;var a=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[l]?(t.componentInstance=a[l].componentInstance,b(s,l),s.push(l)):(a[l]=t,s.push(l),this.max&&s.length>parseInt(this.max)&&Pn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return Y}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:P,mergeOptions:je,defineReactive:Me},e.set=$e,e.delete=Pe,e.nextTick=rt,e.observable=function(e){return xe(e),e},e.options=Object.create(null),j.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,Ln),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=$(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=je(this.options,e),this}}(e),Tn(e),function(e){j.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:oe}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:It}),Cn.version="2.6.11";var An=v("style,class"),In=v("input,textarea,option,select,progress"),Dn=function(e,t,n){return"value"===n&&In(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Nn=v("contenteditable,draggable,spellcheck"),Rn=v("events,caret,typing,plaintext-only"),jn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Bn="http://www.w3.org/1999/xlink",Yn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Fn=function(e){return Yn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Un(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=zn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(o(e)||o(t))return Vn(e,qn(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Vn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Vn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=qn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Wn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gn=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Kn=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(e){return Gn(e)||Kn(e)};function Xn(e){return Kn(e)?"svg":"math"===e?"math":void 0}var Qn=Object.create(null);var Zn=v("text,number,password,search,email,tel,url");function er(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var tr=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Wn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),nr={create:function(e,t){rr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(rr(e,!0),rr(t))},destroy:function(e){rr(e,!0)}};function rr(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?b(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var ir=new ve("",{},[]),or=["create","activate","update","remove","destroy"];function ar(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Zn(r)&&Zn(i)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function sr(e,t,n){var r,i,a={};for(r=t;r<=n;++r)o(i=e[r].key)&&(a[i]=r);return a}var lr={create:cr,update:cr,destroy:function(e){cr(e,ir)}};function cr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===ir,a=t===ir,s=dr(e.data.directives,e.context),l=dr(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,fr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(fr(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)fr(c[n],"inserted",t,e)};o?ct(t,"insert",d):d()}u.length&&ct(t,"postpatch",(function(){for(var n=0;n<u.length;n++)fr(u[n],"componentUpdated",t,e)}));if(!o)for(n in s)l[n]||fr(s[n],"unbind",e,e,a)}(e,t)}var ur=Object.create(null);function dr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=ur),i[hr(r)]=r,r.def=Be(t.$options,"directives",r.name);return i}function hr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function fr(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){ze(r,n.context,"directive "+e.name+" "+t+" hook")}}var pr=[nr,lr];function mr(e,t){var n=t.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,a,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(r in o(c.__ob__)&&(c=t.data.attrs=P({},c)),c)a=c[r],l[r]!==a&&vr(s,r,a);for(r in(X||Z)&&c.value!==l.value&&vr(s,"value",c.value),l)i(c[r])&&(Yn(r)?s.removeAttributeNS(Bn,Fn(r)):Nn(r)||s.removeAttribute(r))}}function vr(e,t,n){e.tagName.indexOf("-")>-1?gr(e,t,n):jn(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Nn(t)?e.setAttribute(t,function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Rn(t)?t:"true"}(t,n)):Yn(t)?Hn(n)?e.removeAttributeNS(Bn,Fn(t)):e.setAttributeNS(Bn,t,n):gr(e,t,n)}function gr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(X&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var yr={create:mr,update:mr};function br(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Un(t),l=n._transitionClasses;o(l)&&(s=Vn(s,qn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var _r,wr,kr,Sr,Er,Cr,Tr={create:br,update:br},xr=/[\w).+\-_$\]]/;function Mr(e){var t,n,r,i,o,a=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,f=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||h){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,m=void 0;p>=0&&" "===(m=e.charAt(p));p--);m&&xr.test(m)||(c=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):v();function v(){(o||(o=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&v(),o)for(r=0;r<o.length;r++)i=$r(i,o[r]);return i}function $r(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Pr(e,t){console.error("[Vue compiler]: "+e)}function Or(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Lr(e,t,n,r,i){(e.props||(e.props=[])).push(Fr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Ar(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Fr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Ir(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Fr({name:t,value:n},r))}function Dr(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Fr({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Nr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Rr(e,t,n,i,o,a,s,l){var c;(i=i||r).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Nr("!",t,l)),i.once&&(delete i.once,t=Nr("~",t,l)),i.passive&&(delete i.passive,t=Nr("&",t,l)),i.native?(delete i.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Fr({value:n.trim(),dynamic:l},s);i!==r&&(u.modifiers=i);var d=c[t];Array.isArray(d)?o?d.unshift(u):d.push(u):c[t]=d?o?[u,d]:[d,u]:u,e.plain=!1}function jr(e,t,n){var r=Br(e,":"+t)||Br(e,"v-bind:"+t);if(null!=r)return Mr(r);if(!1!==n){var i=Br(e,t);if(null!=i)return JSON.stringify(i)}}function Br(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Yr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Fr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Hr(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Ur(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Ur(e,t){var n=function(e){if(e=e.trim(),_r=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<_r-1)return(Sr=e.lastIndexOf("."))>-1?{exp:e.slice(0,Sr),key:'"'+e.slice(Sr+1)+'"'}:{exp:e,key:null};wr=e,Sr=Er=Cr=0;for(;!Vr();)qr(kr=zr())?Gr(kr):91===kr&&Wr(kr);return{exp:e.slice(0,Er),key:e.slice(Er+1,Cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function zr(){return wr.charCodeAt(++Sr)}function Vr(){return Sr>=_r}function qr(e){return 34===e||39===e}function Wr(e){var t=1;for(Er=Sr;!Vr();)if(qr(e=zr()))Gr(e);else if(91===e&&t++,93===e&&t--,0===t){Cr=Sr;break}}function Gr(e){for(var t=e;!Vr()&&(e=zr())!==t;);}var Kr;function Jr(e,t,n){var r=Kr;return function i(){var o=t.apply(null,arguments);null!==o&&Zr(e,i,n,r)}}var Xr=Ke&&!(te&&Number(te[1])<=53);function Qr(e,t,n,r){if(Xr){var i=cn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Kr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Zr(e,t,n,r){(r||Kr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Kr=t.elm,function(e){if(o(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),lt(n,r,Qr,Zr,Jr,t.context),Kr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in o(l.__ob__)&&(l=t.data.domProps=P({},l)),s)n in l||(a[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var c=i(r)?"":String(r);ii(a,c)&&(a.value=c)}else if("innerHTML"===n&&Kn(a.tagName)&&i(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var oi={create:ri,update:ri},ai=k((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=li(e.style);return e.staticStyle?P(e.staticStyle,t):t}function li(e){return Array.isArray(e)?O(e):"string"==typeof e?ai(e):e}var ci,ui=/^--/,di=/\s*!important$/,hi=function(e,t,n){if(ui.test(t))e.style.setProperty(t,n);else if(di.test(n))e.style.setProperty(x(t),n.replace(di,""),"important");else{var r=pi(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},fi=["Webkit","Moz","ms"],pi=k((function(e){if(ci=ci||document.createElement("div").style,"filter"!==(e=E(e))&&e in ci)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<fi.length;n++){var r=fi[n]+t;if(r in ci)return r}}));function mi(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,h=li(t.data.style)||{};t.data.normalizedStyle=o(h.__ob__)?P({},h):h;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=si(i.data))&&P(r,n);(n=si(e.data))&&P(r,n);for(var o=e;o=o.parent;)o.data&&(n=si(o.data))&&P(r,n);return r}(t,!0);for(s in d)i(f[s])&&hi(l,s,"");for(s in f)(a=f[s])!==d[s]&&hi(l,s,null==a?"":a)}}var vi={create:mi,update:mi},gi=/\s+/;function yi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(gi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function bi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(gi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function _i(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&P(t,wi(e.name||"v")),P(t,e),t}return"string"==typeof e?wi(e):void 0}}var wi=k((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ki=W&&!Q,Si="transition",Ei="transitionend",Ci="animation",Ti="animationend";ki&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Si="WebkitTransition",Ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",Ti="webkitAnimationEnd"));var xi=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Mi(e){xi((function(){xi(e)}))}function $i(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),yi(e,t))}function Pi(e,t){e._transitionClasses&&b(e._transitionClasses,t),bi(e,t)}function Oi(e,t,n){var r=Ai(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Ei:Ti,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),e.addEventListener(s,u)}var Li=/\b(transform|all)(,|$)/;function Ai(e,t){var n,r=window.getComputedStyle(e),i=(r[Si+"Delay"]||"").split(", "),o=(r[Si+"Duration"]||"").split(", "),a=Ii(i,o),s=(r[Ci+"Delay"]||"").split(", "),l=(r[Ci+"Duration"]||"").split(", "),c=Ii(s,l),u=0,d=0;return"transition"===t?a>0&&(n="transition",u=a,d=o.length):"animation"===t?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(a,c))>0?a>c?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Li.test(r[Si+"Property"])}}function Ii(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Di(t)+Di(e[n])})))}function Di(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ni(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=_i(e.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,c=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,h=r.appearClass,f=r.appearToClass,p=r.appearActiveClass,v=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,_=r.beforeAppear,w=r.appear,k=r.afterAppear,S=r.appearCancelled,E=r.duration,C=Xt,T=Xt.$vnode;T&&T.parent;)C=T.context,T=T.parent;var x=!C._isMounted||!e.isRootInsert;if(!x||w||""===w){var M=x&&h?h:c,$=x&&p?p:d,P=x&&f?f:u,O=x&&_||v,L=x&&"function"==typeof w?w:g,A=x&&k||y,I=x&&S||b,D=m(l(E)?E.enter:E);0;var N=!1!==a&&!Q,j=Bi(L),B=n._enterCb=R((function(){N&&(Pi(n,P),Pi(n,$)),B.cancelled?(N&&Pi(n,M),I&&I(n)):A&&A(n),n._enterCb=null}));e.data.show||ct(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,B)})),O&&O(n),N&&($i(n,M),$i(n,$),Mi((function(){Pi(n,M),B.cancelled||($i(n,P),j||(ji(D)?setTimeout(B,D):Oi(n,s,B)))}))),e.data.show&&(t&&t(),L&&L(n,B)),N||j||B()}}}function Ri(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=_i(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var a=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,h=r.beforeLeave,f=r.leave,p=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,y=r.duration,b=!1!==a&&!Q,_=Bi(f),w=m(l(y)?y.leave:y);0;var k=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Pi(n,u),Pi(n,d)),k.cancelled?(b&&Pi(n,c),v&&v(n)):(t(),p&&p(n)),n._leaveCb=null}));g?g(S):S()}function S(){k.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&($i(n,c),$i(n,d),Mi((function(){Pi(n,c),k.cancelled||($i(n,u),_||(ji(w)?setTimeout(k,w):Oi(n,s,k)))}))),f&&f(n,k),b||_||k())}}function ji(e){return"number"==typeof e&&!isNaN(e)}function Bi(e){if(i(e))return!1;var t=e.fns;return o(t)?Bi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Yi(e,t){!0!==t.data.show&&Ni(t)}var Fi=function(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;t<or.length;++t)for(r[or[t]]=[],n=0;n<l.length;++n)o(l[n][or[t]])&&r[or[t]].push(l[n][or[t]]);function u(e){var t=c.parentNode(e);o(t)&&c.removeChild(t,e)}function d(e,t,n,i,s,l,u){if(o(e.elm)&&o(l)&&(e=l[u]=_e(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(o(s)){var l=o(e.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(e,!1),o(e.componentInstance))return h(e,t),f(n,e.elm,i),a(l)&&function(e,t,n,i){var a,s=e;for(;s.componentInstance;)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](ir,s);t.push(s);break}f(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,m=e.children,v=e.tag;o(v)?(e.elm=e.ns?c.createElementNS(e.ns,v):c.createElement(v,e),y(e),p(e,m,t),o(d)&&g(e,t),f(n,e.elm,i)):a(e.isComment)?(e.elm=c.createComment(e.text),f(n,e.elm,i)):(e.elm=c.createTextNode(e.text),f(n,e.elm,i))}}function h(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(g(e,t),y(e)):(rr(e),t.push(e))}function f(e,t,n){o(e)&&(o(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return o(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](ir,e);o(t=e.data.hook)&&(o(t.create)&&t.create(ir,e),o(t.insert)&&n.push(e))}function y(e){var t;if(o(t=e.fnScopeId))c.setStyleScope(e.elm,t);else for(var n=e;n;)o(t=n.context)&&o(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent;o(t=Xt)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function b(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function _(e){var t,n,i=e.data;if(o(i))for(o(t=i.hook)&&o(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(k(r),_(r)):u(r.elm))}}function k(e,t){if(o(t)||o(e.data)){var n,i=r.remove.length+1;for(o(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,i),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&k(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else u(e.elm)}function S(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&ar(e,a))return i}}function E(e,t,n,s,l,u){if(e!==t){o(t.elm)&&o(s)&&(t=s[l]=_e(t));var h=t.elm=e.elm;if(a(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?x(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;o(p)&&o(f=p.hook)&&o(f=f.prepatch)&&f(e,t);var v=e.children,g=t.children;if(o(p)&&m(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);o(f=p.hook)&&o(f=f.update)&&f(e,t)}i(t.text)?o(v)&&o(g)?v!==g&&function(e,t,n,r,a){var s,l,u,h=0,f=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,y=n[0],_=n[g],k=!a;for(0;h<=p&&f<=g;)i(m)?m=t[++h]:i(v)?v=t[--p]:ar(m,y)?(E(m,y,r,n,f),m=t[++h],y=n[++f]):ar(v,_)?(E(v,_,r,n,g),v=t[--p],_=n[--g]):ar(m,_)?(E(m,_,r,n,g),k&&c.insertBefore(e,m.elm,c.nextSibling(v.elm)),m=t[++h],_=n[--g]):ar(v,y)?(E(v,y,r,n,f),k&&c.insertBefore(e,v.elm,m.elm),v=t[--p],y=n[++f]):(i(s)&&(s=sr(t,h,p)),i(l=o(y.key)?s[y.key]:S(y,t,h,p))?d(y,r,e,m.elm,!1,n,f):ar(u=t[l],y)?(E(u,y,r,n,f),t[l]=void 0,k&&c.insertBefore(e,u.elm,m.elm)):d(y,r,e,m.elm,!1,n,f),y=n[++f]);h>p?b(e,i(n[g+1])?null:n[g+1].elm,n,f,g,r):f>g&&w(t,h,p)}(h,v,g,n,u):o(g)?(o(e.text)&&c.setTextContent(h,""),b(h,null,g,0,g.length-1,n)):o(v)?w(v,0,v.length-1):o(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(e,t)}}}function C(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var T=v("attrs,class,staticClass,staticStyle,key");function x(e,t,n,r){var i,s=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,a(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(i=l.hook)&&o(i=i.init)&&i(t,!0),o(i=t.componentInstance)))return h(t,n),!0;if(o(s)){if(o(c))if(e.hasChildNodes())if(o(i=l)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,f=0;f<c.length;f++){if(!d||!x(d,c[f],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else p(t,c,n);if(o(l)){var m=!1;for(var v in l)if(!T(v)){m=!0,g(t,n);break}!m&&l.class&&ot(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var l,u=!1,h=[];if(i(e))u=!0,d(t,h);else{var f=o(e.nodeType);if(!f&&ar(e,t))E(e,t,h,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute("data-server-rendered")&&(e.removeAttribute("data-server-rendered"),n=!0),a(n)&&x(e,t,h))return C(t,h,!0),e;l=e,e=new ve(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=e.elm,v=c.parentNode(p);if(d(t,h,p._leaveCb?null:v,c.nextSibling(p)),o(t.parent))for(var g=t.parent,y=m(t);g;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](g);if(g.elm=t.elm,y){for(var k=0;k<r.create.length;++k)r.create[k](ir,g);var S=g.data.hook.insert;if(S.merged)for(var T=1;T<S.fns.length;T++)S.fns[T]()}else rr(g);g=g.parent}o(v)?w([e],0,0):o(e.tag)&&_(e)}}return C(t,h,u),t.elm}o(e)&&_(e)}}({nodeOps:tr,modules:[yr,Tr,ni,oi,vi,W?{create:Yi,activate:Yi,remove:function(e,t){!0!==e.data.show?Ri(e,t):t()}}:{}].concat(pr)});Q&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ki(e,"input")}));var Hi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ct(n,"postpatch",(function(){Hi.componentUpdated(e,t,n)})):Ui(e,t,n.context),e._vOptions=[].map.call(e.options,qi)):("textarea"===n.tag||Zn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Wi),e.addEventListener("compositionend",Gi),e.addEventListener("change",Gi),Q&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ui(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,qi);if(i.some((function(e,t){return!D(e,r[t])})))(e.multiple?t.value.some((function(e){return Vi(e,i)})):t.value!==t.oldValue&&Vi(t.value,i))&&Ki(e,"change")}}};function Ui(e,t,n){zi(e,t,n),(X||Z)&&setTimeout((function(){zi(e,t,n)}),0)}function zi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],i)o=N(r,qi(a))>-1,a.selected!==o&&(a.selected=o);else if(D(qi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Vi(e,t){return t.every((function(t){return!D(t,e)}))}function qi(e){return"_value"in e?e._value:e.value}function Wi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Ki(e.target,"input"))}function Ki(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ji(e){return!e.componentInstance||e.data&&e.data.transition?e:Ji(e.componentInstance._vnode)}var Xi={model:Hi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ji(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ni(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ji(n)).data&&n.data.transition?(n.data.show=!0,r?Ni(n,(function(){e.style.display=e.__vOriginalDisplay})):Ri(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Zi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zi(qt(t.children)):e}function eo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[E(o)]=i[o];return t}function to(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var no=function(e){return e.tag||Vt(e)},ro=function(e){return"show"===e.name},io={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(no)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Zi(i);if(!o)return i;if(this._leaving)return to(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=eo(this),c=this._vnode,u=Zi(c);if(o.data.directives&&o.data.directives.some(ro)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Vt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===r)return this._leaving=!0,ct(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),to(e,i);if("in-out"===r){if(Vt(o))return c;var h,f=function(){h()};ct(l,"afterEnter",f),ct(l,"enterCancelled",f),ct(d,"delayLeave",(function(e){h=e}))}}return i}}},oo=P({tag:String,moveClass:String},Qi);function ao(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function so(e){e.data.newPos=e.elm.getBoundingClientRect()}function lo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete oo.mode;var co={Transition:io,TransitionGroup:{props:oo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=eo(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=e(t,null,c),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ao),e.forEach(so),e.forEach(lo),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;$i(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ei,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ei,e),n._moveCb=null,Pi(n,t))})}})))},methods:{hasMove:function(e,t){if(!ki)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){bi(n,e)})),yi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Ai(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Cn.config.mustUseProp=Dn,Cn.config.isReservedTag=Jn,Cn.config.isReservedAttr=An,Cn.config.getTagNamespace=Xn,Cn.config.isUnknownElement=function(e){if(!W)return!0;if(Jn(e))return!1;if(e=e.toLowerCase(),null!=Qn[e])return Qn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Qn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qn[e]=/HTMLUnknownElement/.test(t.toString())},P(Cn.options.directives,Xi),P(Cn.options.components,co),Cn.prototype.__patch__=W?Fi:L,Cn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ye),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new pn(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&W?er(e):void 0,t)},W&&setTimeout((function(){Y.devtools&&ae&&ae.emit("init",Cn)}),0);var uo=/\{\{((?:.|\r?\n)+?)\}\}/g,ho=/[-.*+?^${}()|[\]\/\\]/g,fo=k((function(e){var t=e[0].replace(ho,"\\$&"),n=e[1].replace(ho,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var po={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Br(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=jr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var mo,vo={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Br(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=jr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},go=function(e){return(mo=mo||document.createElement("div")).innerHTML=e,mo.textContent},yo=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),bo=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),_o=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),wo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,So="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+F.source+"]*",Eo="((?:"+So+"\\:)?"+So+")",Co=new RegExp("^<"+Eo),To=/^\s*(\/?)>/,xo=new RegExp("^<\\/"+Eo+"[^>]*>"),Mo=/^<!DOCTYPE [^>]+>/i,$o=/^<!\--/,Po=/^<!\[/,Oo=v("script,style,textarea",!0),Lo={},Ao={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Do=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,No=v("pre,textarea",!0),Ro=function(e,t){return e&&No(e)&&"\n"===t[0]};function jo(e,t){var n=t?Do:Io;return e.replace(n,(function(e){return Ao[e]}))}var Bo,Yo,Fo,Ho,Uo,zo,Vo,qo,Wo=/^@|^v-on:/,Go=/^v-|^@|^:|^#/,Ko=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Jo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Xo=/^\(|\)$/g,Qo=/^\[.*\]$/,Zo=/:(.*)$/,ea=/^:|^\.|^v-bind:/,ta=/\.[^.\]]+(?=[^\]]*$)/g,na=/^v-slot(:|$)|^#/,ra=/[\r\n]/,ia=/\s+/g,oa=k(go);function aa(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:fa(t),rawAttrsMap:{},parent:n,children:[]}}function sa(e,t){Bo=t.warn||Pr,zo=t.isPreTag||A,Vo=t.mustUseProp||A,qo=t.getTagNamespace||A;var n=t.isReservedTag||A;(function(e){return!!e.component||!n(e.tag)}),Fo=Or(t.modules,"transformNode"),Ho=Or(t.modules,"preTransformNode"),Uo=Or(t.modules,"postTransformNode"),Yo=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(d(e),l||e.processed||(e=la(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&ua(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&ua(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),zo(e.tag)&&(c=!1);for(var u=0;u<Uo.length;u++)Uo[u](e,t)}function d(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||A,s=t.canBeLeftOpenTag||A,l=0;e;){if(n=e,r&&Oo(r)){var c=0,u=r.toLowerCase(),d=Lo[u]||(Lo[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),h=e.replace(d,(function(e,n,r){return c=r.length,Oo(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ro(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-h.length,e=h,T(u,l-c,l)}else{var f=e.indexOf("<");if(0===f){if($o.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),S(p+3);continue}}if(Po.test(e)){var m=e.indexOf("]>");if(m>=0){S(m+2);continue}}var v=e.match(Mo);if(v){S(v[0].length);continue}var g=e.match(xo);if(g){var y=l;S(g[0].length),T(g[1],y,l);continue}var b=E();if(b){C(b),Ro(b.tagName,e)&&S(1);continue}}var _=void 0,w=void 0,k=void 0;if(f>=0){for(w=e.slice(f);!(xo.test(w)||Co.test(w)||$o.test(w)||Po.test(w)||(k=w.indexOf("<",1))<0);)f+=k,w=e.slice(f);_=e.substring(0,f)}f<0&&(_=e),_&&S(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function S(t){l+=t,e=e.substring(t)}function E(){var t=e.match(Co);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(S(t[0].length);!(n=e.match(To))&&(r=e.match(ko)||e.match(wo));)r.start=l,S(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],S(n[0].length),i.end=l,i}}function C(e){var n=e.tagName,l=e.unarySlash;o&&("p"===r&&_o(n)&&T(r),s(n)&&r===n&&T(n));for(var c=a(n)||!!l,u=e.attrs.length,d=new Array(u),h=0;h<u;h++){var f=e.attrs[h],p=f[3]||f[4]||f[5]||"",m="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[h]={name:f[1],value:jo(p,m)}}c||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,c,e.start,e.end)}function T(e,n,o){var a,s;if(null==n&&(n=l),null==o&&(o=l),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}T()}(e,{warn:Bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,d){var h=i&&i.ns||qo(e);X&&"svg"===h&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];pa.test(r.name)||(r.name=r.name.replace(ma,""),t.push(r))}return t}(n));var f,p=aa(e,n,i);h&&(p.ns=h),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||oe()||(p.forbidden=!0);for(var m=0;m<Ho.length;m++)p=Ho[m](p,t)||p;l||(!function(e){null!=Br(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(l=!0)),zo(p.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(ca(p),function(e){var t=Br(e,"v-if");if(t)e.if=t,ua(e,{exp:t,block:e});else{null!=Br(e,"v-else")&&(e.else=!0);var n=Br(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=Br(e,"v-once")&&(e.once=!0)}(p)),r||(r=p),a?u(p):(i=p,o.push(p))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],u(r)},chars:function(e,t,n){if(i&&(!X||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o,u,d=i.children;if(e=c||e.trim()?"script"===(r=i).tag||"style"===r.tag?e:oa(e):d.length?s?"condense"===s&&ra.test(e)?"":" ":a?" ":"":"")c||"condense"!==s||(e=e.replace(ia," ")),!l&&" "!==e&&(o=function(e,t){var n=t?fo(t):uo;if(n.test(e)){for(var r,i,o,a=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(i=r.index)>l&&(s.push(o=e.slice(l,i)),a.push(JSON.stringify(o)));var c=Mr(r[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),l=i+r[0].length}return l<e.length&&(s.push(o=e.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Yo))?u={type:2,expression:o.expression,tokens:o.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function la(e,t){var n;!function(e){var t=jr(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=jr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Br(e,"scope"),e.slotScope=t||Br(e,"slot-scope")):(t=Br(e,"slot-scope"))&&(e.slotScope=t);var n=jr(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Ar(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=Yr(e,na);if(r){0;var i=da(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||"_empty_"}}else{var s=Yr(e,na);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),c=da(s),u=c.name,d=c.dynamic,h=l[u]=aa("template",[],e);h.slotTarget=u,h.slotTargetDynamic=d,h.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=h,!0})),h.slotScope=s.value||"_empty_",e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=jr(n,"name")),function(e){var t;(t=jr(e,"is"))&&(e.component=t);null!=Br(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<Fo.length;r++)e=Fo[r](e,t)||e;return function(e){var t,n,r,i,o,a,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(r=i=c[t].name,o=c[t].value,Go.test(r))if(e.hasBindings=!0,(a=ha(r.replace(Go,"")))&&(r=r.replace(ta,"")),ea.test(r))r=r.replace(ea,""),o=Mr(o),(l=Qo.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!l&&"innerHtml"===(r=E(r))&&(r="innerHTML"),a.camel&&!l&&(r=E(r)),a.sync&&(s=Ur(o,"$event"),l?Rr(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(Rr(e,"update:"+E(r),s,null,!1,0,c[t]),x(r)!==E(r)&&Rr(e,"update:"+x(r),s,null,!1,0,c[t])))),a&&a.prop||!e.component&&Vo(e.tag,e.attrsMap.type,r)?Lr(e,r,o,c[t],l):Ar(e,r,o,c[t],l);else if(Wo.test(r))r=r.replace(Wo,""),(l=Qo.test(r))&&(r=r.slice(1,-1)),Rr(e,r,o,a,!1,0,c[t],l);else{var u=(r=r.replace(Go,"")).match(Zo),d=u&&u[1];l=!1,d&&(r=r.slice(0,-(d.length+1)),Qo.test(d)&&(d=d.slice(1,-1),l=!0)),Dr(e,r,i,o,d,l,a,c[t])}else Ar(e,r,JSON.stringify(o),c[t]),!e.component&&"muted"===r&&Vo(e.tag,e.attrsMap.type,r)&&Lr(e,r,"true",c[t])}}(e),e}function ca(e){var t;if(t=Br(e,"v-for")){var n=function(e){var t=e.match(Ko);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Xo,""),i=r.match(Jo);i?(n.alias=r.replace(Jo,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&P(e,n)}}function ua(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function da(e){var t=e.name.replace(na,"");return t||"#"!==e.name[0]&&(t="default"),Qo.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function ha(e){var t=e.match(ta);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function fa(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var pa=/^xmlns:NS\d+/,ma=/^NS\d+:/;function va(e){return aa(e.tag,e.attrsList.slice(),e.parent)}var ga=[po,vo,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=jr(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Br(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Br(e,"v-else",!0),s=Br(e,"v-else-if",!0),l=va(e);ca(l),Ir(l,"type","checkbox"),la(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+o,ua(l,{exp:l.if,block:l});var c=va(e);Br(c,"v-for",!0),Ir(c,"type","radio"),la(c,t),ua(l,{exp:"("+n+")==='radio'"+o,block:c});var u=va(e);return Br(u,"v-for",!0),Ir(u,":type",n),la(u,t),ua(l,{exp:i,block:u}),a?l.else=!0:s&&(l.elseif=s),l}}}}];var ya,ba,_a={expectHTML:!0,modules:ga,directives:{model:function(e,t,n){n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Hr(e,r,i),!1;if("select"===o)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Ur(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Rr(e,"change",r,null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=jr(e,"value")||"null",o=jr(e,"true-value")||"true",a=jr(e,"false-value")||"false";Lr(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Rr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ur(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ur(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ur(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=jr(e,"value")||"null";Lr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Rr(e,"change",Ur(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,c=o?"change":"range"===r?"__r":"input",u="$event.target.value";s&&(u="$event.target.value.trim()");a&&(u="_n("+u+")");var d=Ur(t,u);l&&(d="if($event.target.composing)return;"+d);Lr(e,"value","("+t+")"),Rr(e,c,d,null,!0),(s||a)&&Rr(e,"blur","$forceUpdate()")}(e,r,i);else{if(!Y.isReservedTag(o))return Hr(e,r,i),!1}return!0},text:function(e,t){t.value&&Lr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Lr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:yo,mustUseProp:Dn,canBeLeftOpenTag:bo,isReservedTag:Jn,getTagNamespace:Xn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ga)},wa=k((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function ka(e,t){e&&(ya=wa(t.staticKeys||""),ba=t.isReservedTag||A,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||g(e.tag)||!ba(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(ya)))}(t),1===t.type){if(!ba(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var Sa=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ea=/\([^)]*?\);*$/,Ca=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ta={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ma=function(e){return"if("+e+")return null;"},$a={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ma("$event.target !== $event.currentTarget"),ctrl:Ma("!$event.ctrlKey"),shift:Ma("!$event.shiftKey"),alt:Ma("!$event.altKey"),meta:Ma("!$event.metaKey"),left:Ma("'button' in $event && $event.button !== 0"),middle:Ma("'button' in $event && $event.button !== 1"),right:Ma("'button' in $event && $event.button !== 2")};function Pa(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Oa(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Oa(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Oa(e)})).join(",")+"]";var t=Ca.test(e.value),n=Sa.test(e.value),r=Ca.test(e.value.replace(Ea,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if($a[s])o+=$a[s],Ta[s]&&a.push(s);else if("exact"===s){var l=e.modifiers;o+=Ma(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(La).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function La(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ta[e],r=xa[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Aa={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:L},Ia=function(e){this.options=e,this.warn=e.warn||Pr,this.transforms=Or(e.modules,"transformCode"),this.dataGenFns=Or(e.modules,"genData"),this.directives=P(P({},Aa),e.directives);var t=e.isReservedTag||A;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Da(e,t){var n=new Ia(t);return{render:"with(this){return "+(e?Na(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Na(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ra(e,t);if(e.once&&!e.onceProcessed)return ja(e,t);if(e.for&&!e.forProcessed)return Ya(e,t);if(e.if&&!e.ifProcessed)return Ba(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=za(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Wa((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:E(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:za(t,n,!0);return"_c("+e+","+Fa(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Fa(e,t));var i=e.inlineTemplate?null:za(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return za(e,t)||"void 0"}function Ra(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Na(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ja(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Ba(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Na(e,t)+","+t.onceId+++","+n+")":Na(e,t)}return Ra(e,t)}function Ba(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ja(e,n):Na(e,n)}}(e.ifConditions.slice(),t,n,r)}function Ya(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Na)(e,t)+"})"}function Fa(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",l=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var c=t.directives[o.name];c&&(a=!!c(e,o,t.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Wa(e.attrs)+","),e.props&&(n+="domProps:"+Wa(e.props)+","),e.events&&(n+=Pa(e.events,!1)+","),e.nativeEvents&&(n+=Pa(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Ha(n)})),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&"_empty_"!==o.slotScope||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map((function(e){return Ua(t[e],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Da(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Wa(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ha(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ha))}function Ua(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ba(e,t,Ua,"null");if(e.for&&!e.forProcessed)return Ya(e,t,Ua);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(za(e,t)||"undefined")+":undefined":za(e,t)||"undefined":Na(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function za(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Na)(a,t)+s}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Va(i)||i.ifConditions&&i.ifConditions.some((function(e){return Va(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(o,t.maybeComponent):0,c=i||qa;return"["+o.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function Va(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function qa(e,t){return 1===e.type?Na(e,t):3===e.type&&e.isComment?function(e){return"_e("+JSON.stringify(e.text)+")"}(e):function(e){return"_v("+(2===e.type?e.expression:Ga(JSON.stringify(e.text)))+")"}(e)}function Wa(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Ga(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Ga(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Ka(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),L}}function Ja(e){var t=Object.create(null);return function(n,r,i){(r=P({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},l=[];return s.render=Ka(a.render,l),s.staticRenderFns=a.staticRenderFns.map((function(e){return Ka(e,l)})),t[o]=s}}var Xa,Qa,Za=(Xa=function(e,t){var n=sa(e.trim(),t);!1!==t.optimize&&ka(n,t);var r=Da(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=P(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=Xa(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Ja(t)}})(_a),es=(Za.compile,Za.compileToFunctions);function ts(e){return(Qa=Qa||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Qa.innerHTML.indexOf("&#10;")>0}var ns=!!W&&ts(!1),rs=!!W&&ts(!0),is=k((function(e){var t=er(e);return t&&t.innerHTML})),os=Cn.prototype.$mount;Cn.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,e,t)},Cn.compile=es,t.default=Cn}.call(this,n(10),n(18).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(4),a=n(15),s=n(14),l=n(26),c=((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),u=new a.ErrorFactory("app","Firebase",c),d=((i={})["@firebase/app"]="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),h=new l.Logger("@firebase/app"),f=function(){function e(e,t,n){var r,i,l=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return l}),"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),u=c.next();!u.done;u=c.next()){var d=u.value;this._addComponent(d)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){h.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},e}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var p=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!=typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name="[DEFAULT]");var s=o.name;if("string"!=typeof s||!s)throw u.create("bad-app-name",{appName:String(s)});if(a.contains(t,s))throw u.create("duplicate-app",{appName:s});var l=new e(n,o,r);return t[s]=l,l},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=d[e])&&void 0!==r?r:e;n&&(i+="-"+n);var o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){var l=['Unable to register library "'+i+'" with version "'+t+'":'];return o&&l.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&l.push("and"),a&&l.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void h.warn(l.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:l.setLogLevel,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw u.create("invalid-log-argument",{appName:name});l.setUserLogHandler(e,t)},apps:null,SDK_VERSION:"7.12.0",INTERNAL:{registerComponent:c,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function i(e){if(e=e||"[DEFAULT]",!a.contains(t,e))throw u.create("no-app",{appName:e});return t[e]}function c(s){var l,c,d=s.name;if(n.has(d))return h.debug("There were multiple attempts to register component "+d+"."),"PUBLIC"===s.type?r[d]:null;if(n.set(d,s),"PUBLIC"===s.type){var f=function(e){if(void 0===e&&(e=i()),"function"!=typeof e[d])throw u.create("invalid-app-argument",{appName:d});return e[d]()};void 0!==s.serviceProps&&a.deepExtend(f,s.serviceProps),r[d]=f,e.prototype[d]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,d);return n.apply(this,s.multipleInstances?e:[])}}try{for(var p=o.__values(Object.keys(t)),m=p.next();!m.done;m=p.next()){var v=m.value;t[v]._addComponent(s)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(l)throw l.error}}return"PUBLIC"===s.type?r[d]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),i.App=e,r}(f);return t.INTERNAL=o.__assign(o.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){a.deepExtend(t,e)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),t}(),m=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(a.isBrowser()&&void 0!==self.firebase){h.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&h.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 g=p.initializeApp;p.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.isNode()&&h.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      '),g.apply(void 0,e)};var y=p;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new m(e)}),"PRIVATE")),e.registerVersion("@firebase/app","0.6.0",t),e.registerVersion("fire-js","")}(y),t.default=y,t.firebase=y},function(e,t,n){"use strict";var r=n(3);function i(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.status}}});const o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{a[e]={value:e}}),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(e,t,n,a,s,l)=>{const c=Object.create(o);return r.a.toFlatObject(e,c,(function(e){return e!==Error.prototype}),e=>"isAxiosError"!==e),i.call(c,e.message,t,n,a,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c},t.a=i},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(11),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){var r=n(310),i=n(311),o=n(229);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return H(Y(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return H(F(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function $(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:Y(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(10))},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(344).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function l(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],f=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);n=(p=p.idivn(f)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,c=0,u=0|a[0],d=8191&u,h=u>>>13,f=0|a[1],p=8191&f,m=f>>>13,v=0|a[2],g=8191&v,y=v>>>13,b=0|a[3],_=8191&b,w=b>>>13,k=0|a[4],S=8191&k,E=k>>>13,C=0|a[5],T=8191&C,x=C>>>13,M=0|a[6],$=8191&M,P=M>>>13,O=0|a[7],L=8191&O,A=O>>>13,I=0|a[8],D=8191&I,N=I>>>13,R=0|a[9],j=8191&R,B=R>>>13,Y=0|s[0],F=8191&Y,H=Y>>>13,U=0|s[1],z=8191&U,V=U>>>13,q=0|s[2],W=8191&q,G=q>>>13,K=0|s[3],J=8191&K,X=K>>>13,Q=0|s[4],Z=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;n.negative=e.negative^t.negative,n.length=19;var ve=(c+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(h,F)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,H))+Math.imul(m,F)|0,o=Math.imul(m,H);var ge=(c+(r=r+Math.imul(d,z)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(h,z)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,F),i=(i=Math.imul(g,H))+Math.imul(y,F)|0,o=Math.imul(y,H),r=r+Math.imul(p,z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,z)|0,o=o+Math.imul(m,V)|0;var ye=(c+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(_,F),i=(i=Math.imul(_,H))+Math.imul(w,F)|0,o=Math.imul(w,H),r=r+Math.imul(g,z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(y,z)|0,o=o+Math.imul(y,V)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(S,F),i=(i=Math.imul(S,H))+Math.imul(E,F)|0,o=Math.imul(E,H),r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(g,W)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,X)|0;var _e=(c+(r=r+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(T,F),i=(i=Math.imul(T,H))+Math.imul(x,F)|0,o=Math.imul(x,H),r=r+Math.imul(S,z)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(E,z)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(h,ne)|0))<<13)|0;c=((o=o+Math.imul(h,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul($,F),i=(i=Math.imul($,H))+Math.imul(P,F)|0,o=Math.imul(P,H),r=r+Math.imul(T,z)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(x,z)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,X)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(L,F),i=(i=Math.imul(L,H))+Math.imul(A,F)|0,o=Math.imul(A,H),r=r+Math.imul($,z)|0,i=(i=i+Math.imul($,V)|0)+Math.imul(P,z)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,r=r+Math.imul(S,J)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,X)|0,r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(g,ne)|0,i=(i=i+Math.imul(g,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,F),i=(i=Math.imul(D,H))+Math.imul(N,F)|0,o=Math.imul(N,H),r=r+Math.imul(L,z)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(A,z)|0,o=o+Math.imul(A,V)|0,r=r+Math.imul($,W)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,G)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,X)|0,r=r+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Ee=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,H))+Math.imul(B,F)|0,o=Math.imul(B,H),r=r+Math.imul(D,z)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(N,z)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(L,W)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul($,J)|0,i=(i=i+Math.imul($,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(g,le)|0,i=(i=i+Math.imul(g,ce)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ce=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,z),i=(i=Math.imul(j,V))+Math.imul(B,z)|0,o=Math.imul(B,V),r=r+Math.imul(D,W)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,X)|0,r=r+Math.imul($,Z)|0,i=(i=i+Math.imul($,ee)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,r=r+Math.imul(g,de)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Te=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,W),i=(i=Math.imul(j,G))+Math.imul(B,W)|0,o=Math.imul(B,G),r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul($,ne)|0,i=(i=i+Math.imul($,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(S,le)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,he)|0;var xe=(c+(r=r+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(B,J)|0,o=Math.imul(B,X),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul($,oe)|0,i=(i=i+Math.imul($,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(x,le)|0,o=o+Math.imul(x,ce)|0,r=r+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,he)|0;var Me=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(B,Z)|0,o=Math.imul(B,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul($,le)|0,i=(i=i+Math.imul($,ce)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,ce)|0,r=r+Math.imul(T,de)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,he)|0;var $e=(c+(r=r+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+($e>>>26)|0,$e&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(B,ne)|0,o=Math.imul(B,re),r=r+Math.imul(D,oe)|0,i=(i=i+Math.imul(D,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(L,le)|0,i=(i=i+Math.imul(L,ce)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,ce)|0,r=r+Math.imul($,de)|0,i=(i=i+Math.imul($,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Pe=(c+(r=r+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),r=r+Math.imul(D,le)|0,i=(i=i+Math.imul(D,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(L,de)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,he)|0;var Oe=(c+(r=r+Math.imul($,pe)|0)|0)+((8191&(i=(i=i+Math.imul($,me)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,le),i=(i=Math.imul(j,ce))+Math.imul(B,le)|0,o=Math.imul(B,ce),r=r+Math.imul(D,de)|0,i=(i=i+Math.imul(D,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Le=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var Ae=(c+(r=r+Math.imul(D,pe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863;var Ie=(c+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(B,pe)|0))<<13)|0;return c=((o=Math.imul(B,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,l[0]=ve,l[1]=ge,l[2]=ye,l[3]=be,l[4]=_e,l[5]=we,l[6]=ke,l[7]=Se,l[8]=Ee,l[9]=Ce,l[10]=Te,l[11]=xe,l[12]=Me,l[13]=$e,l[14]=Pe,l[15]=Oe,l[16]=Le,l[17]=Ae,l[18]=Ie,0!==c&&(l[19]=c,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(f=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=67108863&(h=h+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,h=c,f=0;f<a;f++){var p=n[u+f],m=r[u+f],v=n[u+f+a],g=r[u+f+a],y=d*v-h*g;g=d*g+h*v,v=y,n[u+f]=p+v,r[u+f]=m+g,n[u+f+a]=p-v,r[u+f+a]=m-g,f!==s&&(y=l*d-c*h,h=l*h+c*d,d=y)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),l=new Array(r),c=new Array(r),u=new Array(r),d=new Array(r),h=n.words;h.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,o,s,l,r,i),this.transform(c,o,u,d,r,i);for(var f=0;f<r;f++){var p=s[f]*u[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,r),this.transform(s,l,h,o,r,i),this.conjugate(h,o,r),this.normalize13b(h,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),p(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=n;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,d);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0==(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(y,g),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(b,g),i(_,g),i(w,g),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return v[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var m=f,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(d,new o(1).iushln(p-v-1));h=h.redMul(g),d=g.redSqr(),f=f.redMul(d),p=v}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},i(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(37)(e))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},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=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(15),o=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),a=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e="[DEFAULT]");var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.Deferred;this.instancesDeferred.set(t,n);try{var r=this.getOrInitializeService(t);r&&n.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=r.__assign({identifier:"[DEFAULT]",optional:!1},e),n=t.identifier,i=t.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(e){if(i)return null;throw e}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService("[DEFAULT]")}catch(e){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=r.__read(o.value,2),s=a[0],l=a[1],c=this.normalizeInstanceIdentifier(s);try{var u=this.getOrInitializeService(c);l.resolve(u)}catch(e){}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return"[DEFAULT]"===e?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e}();var s=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new a(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=o,t.ComponentContainer=s,t.Provider=a},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],a=i+1<e.length,s=a?e[i+1]:0,l=i+2<e.length,c=l?e[i+2]:0,u=o>>2,d=(3&o)<<4|s>>4,h=(15&s)<<2|c>>6,f=63&c;l||(f=64,a||(h=64)),r.push(n[u],n[d],n[h],n[f])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{o=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,l=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==l)throw Error();var c=o<<2|a>>4;if(r.push(c),64!==s){var u=a<<4&240|s>>2;if(r.push(u),64!==l){var d=s<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return l.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function u(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=u(e[n],t[n]));return e}var d=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var f=function(e){function t(n,r){var i=e.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,p.prototype.create),i}return r.__extends(t,e),t}(Error),p=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],a=o?m(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",l=new f(i,s),c=0,u=Object.keys(r);c<u.length;c++){var d=u[c];"_"!==d.slice(-1)&&(d in l&&console.warn('Overwriting FirebaseError base field "'+d+'" can cause unexpected behavior.'),l[d]=r[d])}return l},e}();function m(e,t){return e.replace(v,(function(e,n){var r=t[n];return null!=r?r.toString():"<"+n+"?>"}))}var v=/\{\$([^}]+)}/g;function g(e){return JSON.parse(e)}var y=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=g(c(o[0])||""),n=g(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:i}};var b=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.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},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=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,a,s=this.chain_[0],l=this.chain_[1],c=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=u^l&(c^u),a=1518500249):(o=l^c^u,a=1859775393):r<60?(o=l&c|u&(l|c),a=2400959708):(o=l^c^u,a=3395469782);i=(s<<5|s>>>27)+o+d+a+n[r]&4294967295;d=u,u=c,c=4294967295&(l<<30|l>>>2),l=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0===o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=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&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();var _=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=w),void 0===r.error&&(r.error=w),void 0===r.complete&&(r.complete=w);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(e){}})),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function w(){}function k(e,t,n){var r="";switch(t){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=e+" failed: ";return i+=r+" argument "}t.CONSTANTS=i,t.Deferred=d,t.ErrorFactory=p,t.FirebaseError=f,t.Sha1=b,t.assert=o,t.assertionError=a,t.async=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=l,t.base64Decode=c,t.base64Encode=function(e){var t=s(e);return l.encodeByteArray(t,!0)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new _(e,t);return n.subscribe.bind(n)},t.decode=y,t.deepCopy=function(e){return u(void 0,e)},t.deepExtend=u,t.errorPrefix=k,t.getUA=h,t.isAdmin=function(e){var t=y(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"object"==typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id},t.isElectron=function(){return h().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=h();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},t.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(e){return!1}},t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isUWP=function(){return h().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=y(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=y(e).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof t&&(t.hasOwnProperty("nbf")?r=t.nbf:t.hasOwnProperty("iat")&&(r=t.iat),i=t.hasOwnProperty("exp")?t.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},t.issuedAtTime=function(e){var t=y(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=g,t.map=function(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEach((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r];n(o[0],o[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;r++,o(r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(a<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(k(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(k(e,t,r)+"must be a valid context object.")},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(k(e,t,r)+"must be a valid firebase namespace.")}}).call(this,n(10))},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(12),o=n(16),a=n(253);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,a,s,l=e.andln(3)+r&3,c=t.andln(3)+i&3;if(3===l&&(l=-1),3===c&&(c=-1),0==(1&l))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==c?l:-l;if(n[0].push(o),0==(1&c))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==l?c:-c;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(276),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var t7ctx;t7ctx="undefined"!=typeof window?window:void 0!==global?global:void 0;var Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:function(e){return"function"==typeof e},escape:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},helperToSlices:function(e){var t,n,r,i=Template7Utils.quoteDoubleRexExp,o=Template7Utils.quoteSingleRexExp,a=e.replace(/[{}#}]/g,"").trim().split(" "),s=[];for(n=0;n<a.length;n+=1){var l=a[n],c=void 0,u=void 0;if(0===n)s.push(l);else if(0===l.indexOf('"')||0===l.indexOf("'"))if(c=0===l.indexOf('"')?i:o,u=0===l.indexOf('"')?'"':"'",2===l.match(c).length)s.push(l);else{for(t=0,r=n+1;r<a.length;r+=1)if(l+=" ".concat(a[r]),a[r].indexOf(u)>=0){t=r,s.push(l);break}t&&(n=t)}else if(l.indexOf("=")>0){var d=l.split("="),h=d[0],f=d[1];if(c||(c=0===f.indexOf('"')?i:o,u=0===f.indexOf('"')?'"':"'"),2!==f.match(c).length){for(t=0,r=n+1;r<a.length;r+=1)if(f+=" ".concat(a[r]),a[r].indexOf(u)>=0){t=r;break}t&&(n=t)}var p=[h,f.replace(c,"")];s.push(p)}else s.push(l)}return s},stringToBlocks:function(e){var t,n,r=[];if(!e)return[];var i=e.split(/({{[^{^}]*}})/);for(t=0;t<i.length;t+=1){var o=i[t];if(""!==o)if(o.indexOf("{{")<0)r.push({type:"plain",content:o});else{if(o.indexOf("{/")>=0)continue;if((o=o.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}")).indexOf("{#")<0&&o.indexOf(" ")<0&&o.indexOf("else")<0){r.push({type:"variable",contextName:o.replace(/[{}]/g,"")});continue}var a=Template7Utils.helperToSlices(o),s=a[0],l=">"===s,c=[],u={};for(n=1;n<a.length;n+=1){var d=a[n];Array.isArray(d)?u[d[0]]="false"!==d[1]&&d[1]:c.push(d)}if(o.indexOf("{#")>=0){var h="",f="",p=0,m=void 0,v=!1,g=!1,y=0;for(n=t+1;n<i.length;n+=1)if(i[n].indexOf("{{#")>=0&&(y+=1),i[n].indexOf("{{/")>=0&&(y-=1),i[n].indexOf("{{#".concat(s))>=0)h+=i[n],g&&(f+=i[n]),p+=1;else if(i[n].indexOf("{{/".concat(s))>=0){if(!(p>0)){m=n,v=!0;break}p-=1,h+=i[n],g&&(f+=i[n])}else i[n].indexOf("else")>=0&&0===y?g=!0:(g||(h+=i[n]),g&&(f+=i[n]));v&&(m&&(t=m),"raw"===s?r.push({type:"plain",content:h}):r.push({type:"helper",helperName:s,contextName:c,content:h,inverseContent:f,hash:u}))}else o.indexOf(" ")>0&&(l&&(s="_partial",c[0]&&(0===c[0].indexOf("[")?c[0]=c[0].replace(/[[\]]/g,""):c[0]='"'.concat(c[0].replace(/"|'/g,""),'"'))),r.push({type:"helper",helperName:s,contextName:c,hash:u}))}}return r},parseJsVariable:function(e,t,n){return e.split(/([+ \-*/^()&=|<>!%:?])/g).reduce((function(e,r){if(!r)return e;if(r.indexOf(t)<0)return e.push(r),e;if(!n)return e.push(JSON.stringify("")),e;var i=n;return r.indexOf("".concat(t,"."))>=0&&r.split("".concat(t,"."))[1].split(".").forEach((function(e){i=e in i?i[e]:void 0})),("string"==typeof i||Array.isArray(i)||i.constructor&&i.constructor===Object)&&(i=JSON.stringify(i)),void 0===i&&(i="undefined"),e.push(i),e}),[]).join("")},parseJsParents:function(e,t){return e.split(/([+ \-*^()&=|<>!%:?])/g).reduce((function(e,n){if(!n)return e;if(n.indexOf("../")<0)return e.push(n),e;if(!t||0===t.length)return e.push(JSON.stringify("")),e;var r=n.split("../").length-1,i=r>t.length?t[t.length-1]:t[r-1];return n.replace(/..\//g,"").split(".").forEach((function(e){i=void 0!==i[e]?i[e]:"undefined"})),!1===i||!0===i?(e.push(JSON.stringify(i)),e):null===i||"undefined"===i?(e.push(JSON.stringify("")),e):(e.push(JSON.stringify(i)),e)}),[]).join("")},getCompileVar:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data_1",o=t,a=0;0===e.indexOf("../")?(a=e.split("../").length-1,r=o.split("_")[1]-a,o="ctx_".concat(r>=1?r:1),n=e.split("../")[a].split(".")):0===e.indexOf("@global")?(o="Template7.global",n=e.split("@global.")[1].split(".")):0===e.indexOf("@root")?(o="root",n=e.split("@root.")[1].split(".")):n=e.split(".");for(var s=0;s<n.length;s+=1){var l=n[s];if(0===l.indexOf("@")){var c=i.split("_")[1];a>0&&(c=r),s>0?o+="[(data_".concat(c," && data_").concat(c,".").concat(l.replace("@",""),")]"):o="(data_".concat(c," && data_").concat(c,".").concat(l.replace("@",""),")")}else(Number.isFinite?Number.isFinite(l):Template7Context.isFinite(l))?o+="[".concat(l,"]"):"this"===l||l.indexOf("this.")>=0||l.indexOf("this[")>=0||l.indexOf("this(")>=0?o=l.replace("this",t):o+=".".concat(l)}return o},getCompiledArguments:function(e,t,n){for(var r=[],i=0;i<e.length;i+=1)/^['"]/.test(e[i])||/^(true|false|\d+)$/.test(e[i])?r.push(e[i]):r.push(Template7Utils.getCompileVar(e[i],t,n));return r.join(", ")}},Template7Helpers={_partial:function(e,t){var n=this,r=Template7Class.partials[e];return!r||r&&!r.template?"":(r.compiled||(r.compiled=new Template7Class(r.template).compile()),Object.keys(t.hash).forEach((function(e){n[e]=t.hash[e]})),r.compiled(n,t.data,t.root))},escape:function(e){if(null==e)return"";if("string"!=typeof e)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(e)},if:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.fn(this,t.data):t.inverse(this,t.data)},unless:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n?t.inverse(this,t.data):t.fn(this,t.data)},each:function(e,t){var n=e,r="",i=0;if(Template7Utils.isFunction(n)&&(n=n.call(this)),Array.isArray(n)){for(t.hash.reverse&&(n=n.reverse()),i=0;i<n.length;i+=1)r+=t.fn(n[i],{first:0===i,last:i===n.length-1,index:i});t.hash.reverse&&(n=n.reverse())}else for(var o in n)i+=1,r+=t.fn(n[o],{key:o});return i>0?r:t.inverse(this)},with:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=e.call(this)),t.fn(n)},join:function(e,t){var n=e;return Template7Utils.isFunction(n)&&(n=n.call(this)),n.join(t.hash.delimiter||t.hash.delimeter)},js:function js(expression,options){var data=options.data,func,execute=expression;return"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@".concat(e),"g"),n=new RegExp("@".concat(e),"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){".concat(execute,"})"):"(function(){return (".concat(execute,")})"),eval(func).call(this)},js_if:function js_if(expression,options){var data=options.data,func,execute=expression;"index first last key".split(" ").forEach((function(e){if(void 0!==data[e]){var t=new RegExp("this.@".concat(e),"g"),n=new RegExp("@".concat(e),"g");execute=execute.replace(t,JSON.stringify(data[e])).replace(n,JSON.stringify(data[e]))}})),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?"(function(){".concat(execute,"})"):"(function(){return (".concat(execute,")})");var condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;var Template7Options={},Template7Partials={},Template7Class=function(){function Template7Class(e){_classCallCheck(this,Template7Class);this.template=e}return _createClass(Template7Class,[{key:"compile",value:function compile(){var template=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.template,depth=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");var stringToBlocks=Template7Utils.stringToBlocks,getCompileVar=Template7Utils.getCompileVar,getCompiledArguments=Template7Utils.getCompiledArguments,blocks=stringToBlocks(template),ctx="ctx_".concat(depth),data="data_".concat(depth);if(0===blocks.length)return function(){return""};function getCompileFn(e,n){return e.content?t.compile(e.content,n):function(){return""}}function getCompileInverse(e,n){return e.inverseContent?t.compile(e.inverseContent,n):function(){return""}}var resultString="",i;for(resultString+=1===depth?"(function (".concat(ctx,", ").concat(data,", root) {\n"):"(function (".concat(ctx,", ").concat(data,") {\n"),1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){var block=blocks[i];if("plain"!==block.type){var variable=void 0,compiledArguments=void 0;if("variable"===block.type&&(variable=getCompileVar(block.contextName,ctx,data),resultString+="r += c(".concat(variable,", ").concat(ctx,");")),"helper"===block.type){var parents=void 0;if("ctx_1"!==ctx){for(var level=ctx.split("_")[1],parentsString="ctx_".concat(level-1),j=level-2;j>=1;j-=1)parentsString+=", ctx_".concat(j);parents="[".concat(parentsString,"]")}else parents="[".concat(ctx,"]");var dynamicHelper=void 0;if(0===block.helperName.indexOf("[")&&(block.helperName=getCompileVar(block.helperName.replace(/[[\]]/g,""),ctx,data),dynamicHelper=!0),dynamicHelper||block.helperName in Template7Helpers)compiledArguments=getCompiledArguments(block.contextName,ctx,data),resultString+="r += (Template7Helpers".concat(dynamicHelper?"[".concat(block.helperName,"]"):".".concat(block.helperName),").call(").concat(ctx,", ").concat(compiledArguments&&"".concat(compiledArguments,", "),"{hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});");else{if(block.contextName.length>0)throw new Error('Template7: Missing helper: "'.concat(block.helperName,'"'));variable=getCompileVar(block.helperName,ctx,data),resultString+="if (".concat(variable,") {"),resultString+="if (isArray(".concat(variable,")) {"),resultString+="r += (Template7Helpers.each).call(".concat(ctx,", ").concat(variable,", {hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});"),resultString+="}else {",resultString+="r += (Template7Helpers.with).call(".concat(ctx,", ").concat(variable,", {hash:").concat(JSON.stringify(block.hash),", data: ").concat(data," || {}, fn: ").concat(getCompileFn(block,depth+1),", inverse: ").concat(getCompileInverse(block,depth+1),", root: root, parents: ").concat(parents,"});"),resultString+="}}"}}}else resultString+="r +='".concat(block.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'"),"';")}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString}}],[{key:"options",get:function(){return Template7Options}},{key:"partials",get:function(){return Template7Partials}},{key:"helpers",get:function(){return Template7Helpers}}]),Template7Class}();function Template7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1];if(2===t.length){var o=new Template7Class(r),a=o.compile()(i);return o=null,a}return new Template7Class(r)}Template7.registerHelper=function(e,t){Template7Class.helpers[e]=t},Template7.unregisterHelper=function(e){Template7Class.helpers[e]=void 0,delete Template7Class.helpers[e]},Template7.registerPartial=function(e,t){Template7Class.partials[e]={template:t}},Template7.unregisterPartial=function(e){Template7Class.partials[e]&&(Template7Class.partials[e]=void 0,delete Template7Class.partials[e])},Template7.compile=function(e,t){return new Template7Class(e,t).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials,__webpack_exports__.a=Template7}).call(this,__webpack_require__(10))},function(e,t,n){"use strict";var r=n(16),i=n(8);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=l(i.toString(16))}return n},t.zero2=s,t.zero8=l,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),s=0,l=t;s<a.length;s++,l+=4){var c;c="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var l=0,c=t;return l+=(c=c+r>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+n+i+a+(l+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,l,c){var u=0,d=t;return u+=(d=d+r>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+s>>>0)<s?1:0,e+n+i+a+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,l,c){return t+r+o+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){var r=n(9).Buffer,i=n(87).Transform,o=n(90).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(8)(a,i),a.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=a},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),m=n("6718"),v=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),_=n("36c3"),w=n("1bc3"),k=n("aebd"),S=n("a159"),E=n("0395"),C=n("bf0b"),T=n("d9f6"),x=n("c3a1"),M=C.f,$=T.f,P=E.f,O=r.Symbol,L=r.JSON,A=L&&L.stringify,I=f("_hidden"),D=f("toPrimitive"),N={}.propertyIsEnumerable,R=u("symbol-registry"),j=u("symbols"),B=u("op-symbols"),Y=Object.prototype,F="function"==typeof O,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,z=o&&c((function(){return 7!=S($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(Y,t);r&&delete Y[t],$(e,t,n),r&&e!==Y&&$(Y,t,r)}:$,V=function(e){var t=j[e]=S(O.prototype);return t._k=e,t},q=F&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},W=function(e,t,n){return e===Y&&W(B,t,n),y(e),t=w(t,!0),y(n),i(j,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:k(0,!1)})):(i(e,I)||$(e,I,k(1,{})),e[I][t]=!0),z(e,t,n)):$(e,t,n)},G=function(e,t){y(e);for(var n,r=v(t=_(t)),i=0,o=r.length;o>i;)W(e,n=r[i++],t[n]);return e},K=function(e){var t=N.call(this,e=w(e,!0));return!(this===Y&&i(j,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,I)&&this[I][e])||t)},J=function(e,t){if(e=_(e),t=w(t,!0),e!==Y||!i(j,t)||i(B,t)){var n=M(e,t);return!n||!i(j,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=P(_(e)),r=[],o=0;n.length>o;)i(j,t=n[o++])||t==I||t==l||r.push(t);return r},Q=function(e){for(var t,n=e===Y,r=P(n?B:_(e)),o=[],a=0;r.length>a;)!i(j,t=r[a++])||n&&!i(Y,t)||o.push(j[t]);return o};F||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===Y&&t.call(B,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),z(this,e,k(1,n))};return o&&U&&z(Y,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",(function(){return this._k})),C.f=J,T.f=W,n("6abf").f=E.f=X,n("355d").f=K,n("9aa9").f=Q,o&&!n("b8e3")&&s(Y,"propertyIsEnumerable",K,!0),p.f=function(e){return V(f(e))}),a(a.G+a.W+a.F*!F,{Symbol:O});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=x(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=O(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!F,"Object",{create:function(e,t){return void 0===t?S(e):G(S(e),t)},defineProperty:W,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),L&&a(a.S+a.F*(!F||c((function(){var e=O();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!q(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,A.apply(L,r)}}),O.prototype[D]||n("35e8")(O.prototype,D,O.prototype.valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},"268f":function(e,t,n){e.exports=n("fde4")},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,h,f=e&l.F,p=e&l.G,m=e&l.S,v=e&l.P,g=e&l.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=p?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in p&&(n=t),n)d=((u=!f&&y&&void 0!==y[c])?y:n)[c],h=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),b[c]!=d&&o(b,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l=function(e,t,n){var c,u,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=f?i:i[t]||(i[t]={}),b=y.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!h&&_&&void 0!==_[c])&&s(y,c)||(d=u?_[c]:n[c],y[c]=f&&"function"!=typeof _[c]?n[c]:v&&u?o(d,r):g&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&a(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"85f2":function(e,t,n){e.exports=n("454f")},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8bbf":function(t,n){t.exports=e},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l=function(){var e,t=n("1ec9")("iframe"),r=o.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},a4bb:function(e,t,n){e.exports=n("8aae")},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;t.f=n("8e60")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},bf90:function(e,t,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e265:function(e,t,n){e.exports=n("ed33")},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!o(e,r)&&u(e),e}}},ed33:function(e,t,n){n("014b"),e.exports=n("584a").Object.getOwnPropertySymbols},f6fd:function(e,t){!function(e){var t=e.getElementsByTagName("script");"currentScript"in e||Object.defineProperty(e,"currentScript",{get:function(){try{throw new Error}catch(r){var e,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in t)if(t[e].src==n||"interactive"==t[e].readyState)return t[e];return null}}})}(document)},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("8bbf"),o=n.n(i),a=n("268f"),s=n.n(a),l=n("e265"),c=n.n(l),u=n("a4bb"),d=n.n(u),h=n("85f2"),f=n.n(h);function p(e,t,n){return t in e?f()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=d()(n);"function"==typeof c.a&&(r=r.concat(c()(n).filter((function(e){return s()(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}n("6762"),n("2fdb");var v=function(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}({functional:!0,name:"Media",render:function(e,t){return["video","audio"].includes(t.props.kind.toLowerCase())?(t.props.srcObject&&(t.data.domProps={playsInline:t.props.playsInline||!0,autoplay:t.props.autoplay||!0}),t.data.domProps=m({},t.props,t.data.domProps),t.data.attrs=m({},t.data.attrs,t.props.attrs),e(t.props.kind.toLowerCase(),t.data)):e()},props:{kind:{type:String,required:!0},muted:{type:Boolean,required:!1},poster:{type:String,required:!1},src:{type:String|Array,required:!1},srcObject:{required:!1}}},void 0,void 0,!1,null,null,null).exports;o.a.component("Media",v);var g=v;t.default=g},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}}})},e.exports=r(n(5))},function(e,t,n){"use strict";(function(e){var r=n(3),i=n(7),o=n(84);function a(e){return r.a.isPlainObject(e)||r.a.isArray(e)}function s(e){return r.a.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map((function(e,t){return e=s(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const c=r.a.toFlatObject(r.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,n,u){if(!r.a.isObject(t))throw new TypeError("target must be an object");n=n||new(o.a||FormData);const d=(u=r.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.a.isUndefined(t[e])}))).metaTokens,h=u.visitor||g,f=u.dots,p=u.indexes,m=(u.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(h))throw new TypeError("visitor must be a function");function v(t){if(null===t)return"";if(r.a.isDate(t))return t.toISOString();if(!m&&r.a.isBlob(t))throw new i.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(t)||r.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function g(e,t,i){let o=e;if(e&&!i&&"object"==typeof e)if(r.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(r.a.isArray(e)&&function(e){return r.a.isArray(e)&&!e.some(a)}(e)||(r.a.isFileList(e)||r.a.endsWith(t,"[]"))&&(o=r.a.toArray(e)))return t=s(t),o.forEach((function(e,i){!r.a.isUndefined(e)&&null!==e&&n.append(!0===p?l([t],i,f):null===p?t:t+"[]",v(e))})),!1;return!!a(e)||(n.append(l(i,t,f),v(e)),!1)}const y=[],b=Object.assign(c,{defaultVisitor:g,convertValue:v,isVisitable:a});if(!r.a.isObject(t))throw new TypeError("data must be an object");return function e(t,i){if(!r.a.isUndefined(t)){if(-1!==y.indexOf(t))throw Error("Circular reference detected in "+i.join("."));y.push(t),r.a.forEach(t,(function(t,o){!0===(!(r.a.isUndefined(t)||null===t)&&h.call(n,t,r.a.isString(o)?o.trim():o,i,b))&&e(t,i?i.concat(o):[o])})),y.pop()}}(t),n}}).call(this,n(11).Buffer)},function(e,t,n){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var i,o=new Promise((function(o,a){n(i=e[t].apply(e,r)).then(o,a)}));return o.request=i,o}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new u(e,i.request)}))}function o(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function a(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function l(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})}))}function c(e){this._index=e}function u(e,t){this._cursor=e,this._request=t}function d(e){this._store=e}function h(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function f(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new h(n)}function p(e){this._db=e}o(c,"_index",["name","keyPath","multiEntry","unique"]),a(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),l(c,"_index",IDBIndex,["openCursor","openKeyCursor"]),o(u,"_cursor",["direction","key","primaryKey","value"]),a(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new u(e,t._request)}))}))})})),d.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},d.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},o(d,"_store",["name","keyPath","indexNames","autoIncrement"]),a(d,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),l(d,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(d,"_store",IDBObjectStore,["deleteIndex"]),h.prototype.objectStore=function(){return new d(this._tx.objectStore.apply(this._tx,arguments))},o(h,"_tx",["objectStoreNames","mode"]),s(h,"_tx",IDBTransaction,["abort"]),f.prototype.createObjectStore=function(){return new d(this._db.createObjectStore.apply(this._db,arguments))},o(f,"_db",["name","version","objectStoreNames"]),s(f,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new h(this._db.transaction.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(e){[d,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,o=i[e].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})}))})),[c,d].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(i){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=function(e,t,n){var i=r(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){n&&n(new f(o.result,e.oldVersion,o.transaction))}),i.then((function(e){return new p(e)}))},e.deleteDb=function(e){return r(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";var r=n(38),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(31));o.inherits=n(8);var a=n(231),s=n(89);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var i;n.r(t),n.d(t,"LogLevel",(function(){return o})),n.d(t,"Logger",(function(){return d})),n.d(t,"setLogLevel",(function(){return h})),n.d(t,"setUserLogHandler",(function(){return f}));var o,a=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(o||(o={}));var s={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},l=o.INFO,c=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),u=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var o=(new Date).toISOString(),a=c[t];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[a].apply(console,r(["["+o+"]  "+e.name+":"],n))}},d=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=u,this._userLogHandler=null,a.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in o))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],e)),this._logHandler.apply(this,r([this,o.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],e)),this._logHandler.apply(this,r([this,o.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],e)),this._logHandler.apply(this,r([this,o.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],e)),this._logHandler.apply(this,r([this,o.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],e)),this._logHandler.apply(this,r([this,o.ERROR],e))},e}();function h(e){var t="string"==typeof e?s[e]:e;a.forEach((function(e){e.logLevel=t}))}function f(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=s[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=i.map((function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((function(e){return e})).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:o[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=a;r<i.length;r++){n(i[r])}}},function(e,t,n){"use strict";(function(t,r){var i=n(9).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(n.slice(a,a+65536));else o.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(10),n(13))},function(e,t,n){var r=n(9).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var l=a%i,c=Math.min(o-s,i-l),u=0;u<c;u++)n[l+u]=e[s+u];s+=c,(a+=c)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";var r=n(8),i=n(86),o=n(91),a=n(92),s=n(21);function l(e){s.call(this,"digest"),this._hash=e}r(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new l(a(e))}},function(e,t,n){(t=e.exports=n(231)).Stream=t,t.Readable=t,t.Writable=n(89),t.Duplex=n(25),t.Transform=n(234),t.PassThrough=n(316)},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(11).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),o=0;o<r;++o)i[o]=e[o]^n[o];return i}}).call(this,n(11).Buffer)},function(e,t,n){"use strict";var r=n(20),i=n(16);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){var r=t;r.bignum=n(12),r.define=n(369).define,r.base=n(35),r.constants=n(259),r.decoders=n(374),r.encoders=n(376)},function(e,t,n){var r=t;r.Reporter=n(371).Reporter,r.DecoderBuffer=n(258).DecoderBuffer,r.EncoderBuffer=n(258).EncoderBuffer,r.Node=n(372)},function(e,t,n){"use strict";n.r(t),n.d(t,"registerInstallations",(function(){return G}));var r,i=n(6),o=n.n(i),a=n(14),s=n(4),l=n(15),c=n(24),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),d=new l.ErrorFactory("installations","Installations",u);function h(e){return e instanceof l.FirebaseError&&e.code.includes("request-failed")}function f(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function p(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function m(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,d.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function v(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function g(e,t){var n=t.refreshToken,r=v(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function y(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function b(e,t){var n=t.fid;return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,r,i,o,a,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t=f(e),r=v(e),i={fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:"w:0.4.6"},o={method:"POST",headers:r,body:JSON.stringify(i)},[4,y((function(){return fetch(t,o)}))];case 1:return(a=s.sent()).ok?[4,a.json()]:[3,3];case 2:return l=s.sent(),[2,{fid:l.fid||n,registrationStatus:2,refreshToken:l.refreshToken,authToken:p(l.authToken)}];case 3:return[4,m("Create Installation",a)];case 4:throw s.sent()}}))}))}function _(e){return new Promise((function(t){setTimeout(t,e)}))}var w=/^[cdef][\w-]{21}$/;function k(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return(t=e,btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return w.test(t)?t:""}catch(e){return""}}function S(e){return e.appName+"!"+e.appId}var E=new Map;function C(e,t){var n=S(e);T(n,t),function(e,t){var n=M();n&&n.postMessage({key:e,fid:t});$()}(n,t)}function T(e,t){var n,r,i=E.get(e);if(i)try{for(var o=Object(s.__values)(i),a=o.next();!a.done;a=o.next()){(0,a.value)(t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var x=null;function M(){return!x&&"BroadcastChannel"in self&&((x=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){T(e.data.key,e.data.fid)}),x}function $(){0===E.size&&x&&(x.close(),x=null)}var P="firebase-installations-store",O=null;function L(){return O||(O=Object(c.openDb)("firebase-installations-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(P)}}))),O}function A(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=S(e),[4,L()];case 1:return r=s.sent(),i=r.transaction(P,"readwrite"),[4,(o=i.objectStore(P)).get(n)];case 2:return a=s.sent(),[4,o.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),a&&a.fid===t.fid||C(e,t.fid),[2,t]}}))}))}function I(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=S(e),[4,L()];case 1:return n=i.sent(),[4,(r=n.transaction(P,"readwrite")).objectStore(P).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=S(e),[4,L()];case 1:return r=s.sent(),i=r.transaction(P,"readwrite"),[4,(o=i.objectStore(P)).get(n)];case 2:return a=s.sent(),void 0!==(l=t(a))?[3,4]:[4,o.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,o.put(l,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!l||a&&a.fid===l.fid||C(e,l.fid),[2,l]}}))}))}function N(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,D(e,(function(n){var r=function(e){return B(e||{fid:k(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){var n=Promise.reject(d.create("app-offline"));return{installationEntry:t,registrationPromise:n}}var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,b(e,t)];case 1:return n=i.sent(),[2,A(e,n)];case 2:return h(r=i.sent())&&409===r.serverCode?[4,I(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,A(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}))}))}(e,r);return{installationEntry:r,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:R(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}))];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function R(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return[4,j(e)];case 1:t=o.sent(),o.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,_(100)];case 3:return o.sent(),[4,j(e)];case 4:return t=o.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,N(e)];case 6:return n=o.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}}))}))}function j(e){return D(e,(function(e){if(!e)throw d.create("installation-not-found");return B(e)}))}function B(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function Y(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,i,o,a,l,c,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return e=function(e,t){var n=t.fid;return f(e)+"/"+n+"/authTokens:generate"}(n,t),i=g(n,t),(o=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",o.getPlatformInfoString()),a={installation:{sdkVersion:"w:0.4.6"}},l={method:"POST",headers:i,body:JSON.stringify(a)},[4,y((function(){return fetch(e,l)}))];case 1:return(c=s.sent()).ok?[4,c.json()]:[3,3];case 2:return u=s.sent(),[2,p(u)];case 3:return[4,m("Generate Auth Token",c)];case 4:throw s.sent()}}))}))}function F(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return[4,D(e.appConfig,(function(r){if(!U(r))throw d.create("not-registered");var i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(i))return r;if(1===i.requestStatus)return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,H(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,_(100)];case 3:return i.sent(),[4,H(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,F(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw d.create("app-offline");var o=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(s.__assign)(Object(s.__assign)({},e),{authToken:t})}(r);return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,Y(e,t)];case 1:return n=o.sent(),i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:n}),[4,A(e.appConfig,i)];case 2:return o.sent(),[2,n];case 3:return!h(r=o.sent())||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,I(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:{requestStatus:0}}),[4,A(e.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}}))}))}(e,o),o}))];case 1:return r=o.sent(),n?[4,n]:[3,3];case 2:return i=o.sent(),[3,4];case 3:i=r.authToken,o.label=4;case 4:return[2,i]}}))}))}function H(e){return D(e,(function(e){if(!U(e))throw d.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+1e4<Date.now()?Object(s.__assign)(Object(s.__assign)({},e),{authToken:{requestStatus:0}}):e}))}function U(e){return void 0!==e&&2===e.registrationStatus}function z(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,N(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function V(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return n=function(e,t){var n=t.fid;return f(e)+"/"+n}(e,t),r=g(e,t),i={method:"DELETE",headers:r},[4,y((function(){return fetch(n,i)}))];case 1:return(o=a.sent()).ok?[3,3]:[4,m("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}}))}))}function q(e,t){var n=e.appConfig;return function(e,t){M();var n=S(e),r=E.get(n);r||(r=new Set,E.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=S(e),r=E.get(n);r&&(r.delete(t),0===r.size&&E.delete(n),$())}(n,t)}}function W(e){return d.create("missing-app-config-values",{valueName:e})}function G(e){e.INTERNAL.registerComponent(new a.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw W("App Configuration");if(!e.name)throw W("App Name");try{for(var r=Object(s.__values)(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw W(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,N(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):F(e).catch(console.error),[2,n.fid]}}))}))}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,z(e.appConfig)];case 1:return n.sent(),[4,F(e,t)];case 2:return[2,n.sent().token]}}))}))}(n,e)},delete:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,D(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw d.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw d.create("app-offline");case 3:return[4,V(t,n)];case 4:return r.sent(),[4,I(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}))}))}(n)},onIdChange:function(e){return q(n,e)}}}),"PUBLIC")),e.registerVersion("@firebase/installations","0.4.6")}G(o.a)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(13))},function(e,t,n){var r=n(9).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,n,r,i){for(var o,a,s,l,c=n[0],u=n[1],d=n[2],h=n[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],v=e[3]^t[3],g=4,y=1;y<i;y++)o=c[f>>>24]^u[p>>>16&255]^d[m>>>8&255]^h[255&v]^t[g++],a=c[p>>>24]^u[m>>>16&255]^d[v>>>8&255]^h[255&f]^t[g++],s=c[m>>>24]^u[v>>>16&255]^d[f>>>8&255]^h[255&p]^t[g++],l=c[v>>>24]^u[f>>>16&255]^d[p>>>8&255]^h[255&m]^t[g++],f=o,p=a,m=s,v=l;return o=(r[f>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&v])^t[g++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[v>>>8&255]<<8|r[255&f])^t[g++],s=(r[m>>>24]<<24|r[v>>>16&255]<<16|r[f>>>8&255]<<8|r[255&p])^t[g++],l=(r[v>>>24]<<24|r[f>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[g++],[o>>>=0,a>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var u=e[a],d=e[u],h=e[d],f=257*e[c]^16843008*c;i[0][a]=f<<24|f>>>8,i[1][a]=f<<16|f>>>16,i[2][a]=f<<8|f>>>24,i[3][a]=f,f=16843009*h^65537*d^257*u^16843008*a,o[0][c]=f<<24|f>>>8,o[1][c]=f<<16|f>>>16,o[2][c]=f<<8|f>>>24,o[3][c]=f,0===a?a=s=1:(a=u^e[e[e[h^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<r;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],u=0;u<r;u++){var d=r-u,h=i[d-(u%4?0:4)];c[u]=u<4||d<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,n){var r=n(9).Buffer,i=n(86);e.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),l=r.alloc(o||0),c=r.alloc(0);a>0||o>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(a>0){var h=s.length-a;d=Math.min(a,c.length),c.copy(s,h,0,d),a-=d}if(d<c.length&&o>0){var f=l.length-o,p=Math.min(o,c.length-d);c.copy(l,f,d,d+p),o-=p}}return c.fill(0),{key:s,iv:l}}},function(e,t,n){"use strict";var r=n(12),i=n(17),o=i.getNAF,a=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var a=[],l=0;l<r.length;l+=n.step){var c=0;for(t=l+n.step-1;t>=l;t--)c=(c<<1)+r[t];a.push(c)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(l=0;l<a.length;l++){(c=a[l])===h?d=d.mixedAdd(n.points[l]):c===-h&&(d=d.mixedAdd(n.points[l].neg()))}u=u.add(d)}return u.toP()},l.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(t,n,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,l=l.dblp(t),c<0)break;var u=a[c];s(0!==u),l="affine"===e.type?u>0?l.mixedAdd(i[u-1>>1]):l.mixedAdd(i[-u-1>>1].neg()):u>0?l.add(i[u-1>>1]):l.add(i[-u-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,u=0,d=0;d<r;d++){var h=(C=t[d])._getNAFPoints(e);s[d]=h.wnd,l[d]=h.points}for(d=r-1;d>=1;d-=2){var f=d-1,p=d;if(1===s[f]&&1===s[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=a(n[f],n[p]);u=Math.max(g[0].length,u),c[f]=new Array(u),c[p]=new Array(u);for(var y=0;y<u;y++){var b=0|g[0][y],_=0|g[1][y];c[f][y]=v[3*(b+1)+(_+1)],c[p][y]=0,l[f]=m}}else c[f]=o(n[f],s[f],this._bitLength),c[p]=o(n[p],s[p],this._bitLength),u=Math.max(c[f].length,u),u=Math.max(c[p].length,u)}var w=this.jpoint(null,null,null),k=this._wnafT4;for(d=u;d>=0;d--){for(var S=0;d>=0;){var E=!0;for(y=0;y<r;y++)k[y]=0|c[y][d],0!==k[y]&&(E=!1);if(!E)break;S++,d--}if(d>=0&&S++,w=w.dblp(S),d<0)break;for(y=0;y<r;y++){var C,T=k[y];0!==T&&(T>0?C=l[y][T-1>>1]:T<0&&(C=l[y][-T-1>>1].neg()),w="affine"===C.type?w.mixedAdd(C):w.add(C))}}for(d=0;d<r;d++)l[d]=null;return i?w:w.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){var r=n(368),i=n(379),o=n(380),a=n(94),s=n(240),l=n(9).Buffer;function c(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var n,c,u=o(e,t),d=u.tag,h=u.data;switch(d){case"CERTIFICATE":c=r.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=r.PublicKey.decode(h,"der")),n=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=r.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+d);case"ENCRYPTED PRIVATE KEY":h=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,h=s.pbkdf2Sync(t,n,r,d,"sha1"),f=a.createDecipheriv(o,h,c),p=[];return p.push(f.update(u)),p.push(f.final()),l.concat(p)}(h=r.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(n=(c=r.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:r.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=r.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+d);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=r.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=c,c.signature=r.signature},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",x="[object Int8Array]",M="[object Int16Array]",$="[object Int32Array]",P="[object Uint8Array]",O="[object Uint16Array]",L="[object Uint32Array]",A=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,j=RegExp(N.source),B=RegExp(R.source),Y=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,W=RegExp(q.source),G=/^\s+/,K=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+fe+"]",ve="["+he+"]",ge="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+fe+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Te="(?:"+be+"|"+_e+")",xe="(?:"+Ce+"|"+_e+")",Me="(?:"+ve+"|"+we+")"+"?",$e="[\\ufe0e\\ufe0f]?"+Me+("(?:\\u200d(?:"+[ke,Se,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Me+")*"),Pe="(?:"+[ye,Se,Ee].join("|")+")"+$e,Oe="(?:"+[ke+ve+"?",ve,Se,Ee,pe].join("|")+")",Le=RegExp("['’]","g"),Ae=RegExp(ve,"g"),Ie=RegExp(we+"(?="+we+")|"+Oe+$e,"g"),De=RegExp([Ce+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Ce,"$"].join("|")+")",xe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Ce+Te,"$"].join("|")+")",Ce+"?"+Te+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Pe].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Be=-1,Ye={};Ye[C]=Ye[T]=Ye[x]=Ye[M]=Ye[$]=Ye[P]=Ye["[object Uint8ClampedArray]"]=Ye[O]=Ye[L]=!0,Ye[l]=Ye[c]=Ye[S]=Ye[u]=Ye[E]=Ye[d]=Ye[h]=Ye[f]=Ye[m]=Ye[v]=Ye[g]=Ye[y]=Ye[b]=Ye[_]=Ye[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[S]=Fe[E]=Fe[u]=Fe[d]=Fe[C]=Fe[T]=Fe[x]=Fe[M]=Fe[$]=Fe[m]=Fe[v]=Fe[g]=Fe[y]=Fe[b]=Fe[_]=Fe[w]=Fe[P]=Fe["[object Uint8ClampedArray]"]=Fe[O]=Fe[L]=!0,Fe[h]=Fe[f]=Fe[k]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,ze=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ve||qe||Function("return this")(),Ge=t&&!t.nodeType&&t,Ke=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ke&&Ke.exports===Ge,Xe=Je&&Ve.process,Qe=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,nt=Qe&&Qe.isRegExp,rt=Qe&&Qe.isSet,it=Qe&&Qe.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ht(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ft(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=Ct("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,St,n)}function kt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function St(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?Mt(e,t)/n:NaN}function Ct(e){return function(t){return null==t?void 0:t[e]}}function Tt(e){return function(t){return null==e?void 0:e[t]}}function xt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Mt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Pt(e){return e?e.slice(0,Gt(e)+1).replace(G,""):e}function Ot(e){return function(t){return e(t)}}function Lt(e,t){return ft(t,(function(t){return e[t]}))}function At(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=Tt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),jt=Tt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Bt(e){return"\\"+He[e]}function Yt(e){return Ne.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Yt(e)?function(e){var t=Ie.lastIndex=0;for(;Ie.test(e);)++t;return t}(e):yt(e)}function Wt(e){return Yt(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.split("")}(e)}function Gt(e){for(var t=e.length;t--&&K.test(e.charAt(t)););return t}var Kt=Tt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Jt=function e(t){var n,r=(t=null==t?We:Jt.defaults(We.Object(),t,Jt.pick(We,je))).Array,i=t.Date,K=t.Error,he=t.Function,fe=t.Math,pe=t.Object,me=t.RegExp,ve=t.String,ge=t.TypeError,ye=r.prototype,be=he.prototype,_e=pe.prototype,we=t["__core-js_shared__"],ke=be.toString,Se=_e.hasOwnProperty,Ee=0,Ce=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Te=_e.toString,xe=ke.call(pe),Me=We._,$e=me("^"+ke.call(Se).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Je?t.Buffer:void 0,Oe=t.Symbol,Ie=t.Uint8Array,Ne=Pe?Pe.allocUnsafe:void 0,He=Ht(pe.getPrototypeOf,pe),Ve=pe.create,qe=_e.propertyIsEnumerable,Ge=ye.splice,Ke=Oe?Oe.isConcatSpreadable:void 0,Xe=Oe?Oe.iterator:void 0,Qe=Oe?Oe.toStringTag:void 0,yt=function(){try{var e=eo(pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),Tt=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Xt=i&&i.now!==We.Date.now&&i.now,Qt=t.setTimeout!==We.setTimeout&&t.setTimeout,Zt=fe.ceil,en=fe.floor,tn=pe.getOwnPropertySymbols,nn=Pe?Pe.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=Ht(pe.keys,pe),sn=fe.max,ln=fe.min,cn=i.now,un=t.parseInt,dn=fe.random,hn=ye.reverse,fn=eo(t,"DataView"),pn=eo(t,"Map"),mn=eo(t,"Promise"),vn=eo(t,"Set"),gn=eo(t,"WeakMap"),yn=eo(pe,"create"),bn=gn&&new gn,_n={},wn=Mo(fn),kn=Mo(pn),Sn=Mo(mn),En=Mo(vn),Cn=Mo(gn),Tn=Oe?Oe.prototype:void 0,xn=Tn?Tn.valueOf:void 0,Mn=Tn?Tn.toString:void 0;function $n(e){if(Va(e)&&!Ia(e)&&!(e instanceof An)){if(e instanceof Ln)return e;if(Se.call(e,"__wrapped__"))return $o(e)}return new Ln(e)}var Pn=function(){function e(){}return function(t){if(!za(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function Ln(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Nn;++t<n;)this.add(e[t])}function jn(e){var t=this.__data__=new Dn(e);this.size=t.size}function Bn(e,t){var n=Ia(e),r=!n&&Aa(e),i=!n&&!r&&ja(e),o=!n&&!r&&!i&&Za(e),a=n||r||i||o,s=a?$t(e.length,ve):[],l=s.length;for(var c in e)!t&&!Se.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||so(c,l))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Rr(0,t-1)]:void 0}function Fn(e,t){return Co(yi(e),Jn(t,0,e.length))}function Hn(e){return Co(yi(e))}function Un(e,t,n){(void 0!==n&&!Pa(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function zn(e,t,n){var r=e[t];Se.call(e,t)&&Pa(r,n)&&(void 0!==n||t in e)||Gn(e,t,n)}function Vn(e,t){for(var n=e.length;n--;)if(Pa(e[n][0],t))return n;return-1}function qn(e,t,n,r){return tr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Wn(e,t){return e&&bi(t,ws(t),e)}function Gn(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:vs(e,t[n]);return o}function Jn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Xn(e,t,n,r,i,o){var a,s=1&t,c=2&t,h=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!za(e))return e;var k=Ia(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return yi(e,a)}else{var A=ro(e),I=A==f||A==p;if(ja(e))return hi(e,s);if(A==g||A==l||I&&!i){if(a=c||I?{}:oo(e),!s)return c?function(e,t){return bi(e,no(e),t)}(e,function(e,t){return e&&bi(t,ks(t),e)}(a,e)):function(e,t){return bi(e,to(e),t)}(e,Wn(a,e))}else{if(!Fe[A])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return fi(e);case u:case d:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case C:case T:case x:case M:case $:case P:case"[object Uint8ClampedArray]":case O:case L:return pi(e,n);case m:return new r;case v:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,xn?pe(xn.call(i)):{}}var i}(e,A,s)}}o||(o=new jn);var D=o.get(e);if(D)return D;o.set(e,a),Ja(e)?e.forEach((function(r){a.add(Xn(r,t,n,r,e,o))})):qa(e)&&e.forEach((function(r,i){a.set(i,Xn(r,t,n,i,e,o))}));var N=k?void 0:(h?c?Wi:qi:c?ks:ws)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),zn(a,i,Xn(r,t,n,i,e,o))})),a}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=pe(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new ge(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,Ot(n))),r?(o=ht,a=!1):t.length>=200&&(o=At,a=!1,t=new Rn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}$n.templateSettings={escape:Y,evaluate:F,interpolate:H,variable:"",imports:{_:$n}},$n.prototype=On.prototype,$n.prototype.constructor=$n,Ln.prototype=Pn(On.prototype),Ln.prototype.constructor=Ln,An.prototype=Pn(On.prototype),An.prototype.constructor=An,In.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:Se.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=Vn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Dn.prototype.get=function(e){var t=this.__data__,n=Vn(t,e);return n<0?void 0:t[n][1]},Dn.prototype.has=function(e){return Vn(this.__data__,e)>-1},Dn.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(pn||Dn),string:new In}},Nn.prototype.delete=function(e){var t=Qi(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Qi(this,e).get(e)},Nn.prototype.has=function(e){return Qi(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Qi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},jn.prototype.clear=function(){this.__data__=new Dn,this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jn.prototype.get=function(e){return this.__data__.get(e)},jn.prototype.has=function(e){return this.__data__.has(e)},jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Qa(a):n(a,s)))var s=a,l=o}return l}function or(e,t){var n=[];return tr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function ar(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=ao),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?ar(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var sr=Si(),lr=Si(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function hr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n<r;)e=e[xo(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Ia(e)?r:pt(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Qe&&Qe in pe(e)?function(e){var t=Se.call(e,Qe),n=e[Qe];try{e[Qe]=void 0;var r=!0}catch(e){}var i=Te.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Te.call(e)}(e)}function mr(e,t){return e>t}function vr(e,t){return null!=e&&Se.call(e,t)}function gr(e,t){return null!=e&&t in pe(e)}function yr(e,t,n){for(var i=n?ht:dt,o=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,Ot(t))),c=ln(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var h=-1,f=l[0];e:for(;++h<o&&u.length<c;){var p=d[h],m=t?t(p):p;if(p=n||0!==p?p:0,!(f?At(f,m):i(u,m,n))){for(s=a;--s;){var v=l[s];if(!(v?At(v,m):i(e[s],m,n)))continue e}f&&f.push(m),u.push(p)}}return u}function br(e,t,n){var r=null==(e=go(e,t=li(t,e)))?e:e[xo(Yo(t))];return null==r?void 0:ot(r,e,n)}function _r(e){return Va(e)&&pr(e)==l}function wr(e,t,n,r,i){return e===t||(null==e||null==t||!Va(e)&&!Va(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ia(e),s=Ia(t),f=a?c:ro(e),p=s?c:ro(t),k=(f=f==l?g:f)==g,C=(p=p==l?g:p)==g,T=f==p;if(T&&ja(e)){if(!ja(t))return!1;a=!0,k=!1}if(T&&!k)return o||(o=new jn),a||Za(e)?zi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!o(new Ie(e),new Ie(t)));case u:case d:case v:return Pa(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case m:var s=Ft;case b:var l=1&r;if(s||(s=zt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var f=zi(s(e),s(t),r,i,o,a);return a.delete(e),f;case w:if(xn)return xn.call(e)==xn.call(t)}return!1}(e,t,f,n,r,i,o);if(!(1&n)){var x=k&&Se.call(e,"__wrapped__"),M=C&&Se.call(t,"__wrapped__");if(x||M){var $=x?e.value():e,P=M?t.value():t;return o||(o=new jn),i($,P,n,r,o)}}if(!T)return!1;return o||(o=new jn),function(e,t,n,r,i,o){var a=1&n,s=qi(e),l=s.length,c=qi(t).length;if(l!=c&&!a)return!1;var u=l;for(;u--;){var d=s[u];if(!(a?d in t:Se.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);var m=a;for(;++u<l;){d=s[u];var v=e[d],g=t[d];if(r)var y=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(!(void 0===y?v===g||i(v,g,n,r,o):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o)}(e,t,n,r,wr,i))}function kr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=pe(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new jn;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?wr(u,c,3,r,d):h))return!1}}return!0}function Sr(e){return!(!za(e)||(t=e,Ce&&Ce in t))&&(Fa(e)?$e:ae).test(Mo(e));var t}function Er(e){return"function"==typeof e?e:null==e?Ws:"object"==typeof e?Ia(e)?Pr(e[0],e[1]):$r(e):nl(e)}function Cr(e){if(!fo(e))return an(e);var t=[];for(var n in pe(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Tr(e){if(!za(e))return function(e){var t=[];if(null!=e)for(var n in pe(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function xr(e,t){return e<t}function Mr(e,t){var n=-1,i=Na(e)?r(e.length):[];return tr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function $r(e){var t=Zi(e);return 1==t.length&&t[0][2]?mo(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Pr(e,t){return co(e)&&po(t)?mo(xo(e),t):function(n){var r=vs(n,e);return void 0===r&&r===t?gs(n,e):wr(t,r,3)}}function Or(e,t,n,r,i){e!==t&&sr(t,(function(o,a){if(i||(i=new jn),za(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),l=bo(t,n),c=a.get(l);if(c)return void Un(e,n,c);var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Ia(l),f=!h&&ja(l),p=!h&&!f&&Za(l);u=l,h||f||p?Ia(s)?u=s:Ra(s)?u=yi(s):f?(d=!1,u=hi(l,!0)):p?(d=!1,u=pi(l,!0)):u=[]:Ga(l)||Aa(l)?(u=s,Aa(s)?u=ss(s):za(s)&&!Fa(s)||(u=oo(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l));Un(e,n,u)}(e,t,a,n,Or,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Un(e,a,s)}}),ks)}function Lr(e,t){var n=e.length;if(n)return so(t+=t<0?n:0,n)?e[t]:void 0}function Ar(e,t,n){t=t.length?ft(t,(function(e){return Ia(e)?function(t){return hr(t,1===e.length?e[0]:e)}:e})):[Ws];var r=-1;return t=ft(t,Ot(Xi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Mr(e,(function(e,n,i){return{criteria:ft(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=mi(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=hr(e,a);n(s,a)&&Hr(o,li(a,e),s)}return o}function Dr(e,t,n,r){var i=r?kt:wt,o=-1,a=t.length,s=e;for(e===t&&(t=yi(t)),n&&(s=ft(e,Ot(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?Ge.call(e,i,1):ei(e,i)}}return e}function Rr(e,t){return e+en(dn()*(t-e+1))}function jr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Br(e,t){return ko(vo(e,t,Ws),e+"")}function Yr(e){return Yn(Ps(e))}function Fr(e,t){var n=Ps(e);return Co(n,Jn(t,0,n.length))}function Hr(e,t,n,r){if(!za(e))return e;for(var i=-1,o=(t=li(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=xo(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=za(u)?u:so(t[i+1])?[]:{})}zn(s,l,c),s=s[l]}return e}var Ur=bn?function(e,t){return bn.set(e,t),e}:Ws,zr=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:zs(t),writable:!0})}:Ws;function Vr(e){return Co(Ps(e))}function qr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Wr(e,t){var n;return tr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Gr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Qa(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Kr(e,t,Ws,n)}function Kr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,l=Qa(t),c=void 0===t;i<o;){var u=en((i+o)/2),d=n(e[u]),h=void 0!==d,f=null===d,p=d==d,m=Qa(d);if(a)var v=r||p;else v=c?p&&(r||h):s?p&&h&&(r||!f):l?p&&h&&!f&&(r||!m):!f&&!m&&(r?d<=t:d<t);v?i=u+1:o=u}return ln(o,4294967294)}function Jr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Pa(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Xr(e){return"number"==typeof e?e:Qa(e)?NaN:+e}function Qr(e){if("string"==typeof e)return e;if(Ia(e))return ft(e,Qr)+"";if(Qa(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zr(e,t,n){var r=-1,i=dt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=ht;else if(o>=200){var c=t?null:ji(e);if(c)return zt(c);a=!1,i=At,l=new Rn}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ei(e,t){return null==(e=go(e,t=li(t,e)))||delete e[xo(Yo(t))]}function ti(e,t,n,r){return Hr(e,t,n(hr(e,t)),r)}function ni(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?qr(e,r?0:o,r?o+1:i):qr(e,r?o+1:0,r?i:o)}function ri(e,t){var n=e;return n instanceof An&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ii(e,t,n){var i=e.length;if(i<2)return i?Zr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=er(a[o]||s,e[l],t,n));return Zr(ar(a,1),t,n)}function oi(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function ai(e){return Ra(e)?e:[]}function si(e){return"function"==typeof e?e:Ws}function li(e,t){return Ia(e)?e:co(e,t)?[e]:To(ls(e))}var ci=Br;function ui(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var di=Tt||function(e){return We.clearTimeout(e)};function hi(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Ie(t).set(new Ie(e)),t}function pi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Qa(e),a=void 0!==t,s=null===t,l=t==t,c=Qa(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function vi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=sn(a-s,0),d=r(c+u),h=!i;++l<c;)d[l]=t[l];for(;++o<s;)(h||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function gi(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=sn(a-l,0),h=r(d+u),f=!i;++o<d;)h[o]=e[o];for(var p=o;++c<u;)h[p+c]=t[c];for(;++s<l;)(f||o<a)&&(h[p+n[s]]=e[o++]);return h}function yi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Gn(n,s,l):zn(n,s,l)}return n}function _i(e,t){return function(n,r){var i=Ia(n)?at:qn,o=t?t():{};return i(n,e,Xi(r,2),o)}}function wi(e){return Br((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&lo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=pe(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function ki(e,t){return function(n,r){if(null==n)return n;if(!Na(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=pe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Si(e){return function(t,n,r){for(var i=-1,o=pe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Ei(e){return function(t){var n=Yt(t=ls(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ui(n,1).join(""):t.slice(1);return r[e]()+i}}function Ci(e){return function(t){return mt(Fs(As(t).replace(Le,"")),e,"")}}function Ti(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Pn(e.prototype),r=e.apply(n,t);return za(r)?r:n}}function xi(e){return function(t,n,r){var i=pe(t);if(!Na(t)){var o=Xi(n,3);t=ws(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Mi(e){return Vi((function(t){var n=t.length,r=n,i=Ln.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ge(o);if(i&&!s&&"wrapper"==Ki(a))var s=new Ln([],!0)}for(r=s?r:n;++r<n;){var l=Ki(a=t[r]),c="wrapper"==l?Gi(a):void 0;s=c&&uo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Ki(c[0])].apply(s,c[3]):1==a.length&&uo(a)?s[l]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function $i(e,t,n,i,o,a,s,l,c,u){var d=128&t,h=1&t,f=2&t,p=24&t,m=512&t,v=f?void 0:Ti(e);return function g(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(p)var w=Ji(g),k=Nt(b,w);if(i&&(b=vi(b,i,o,p)),a&&(b=gi(b,a,s,p)),y-=k,p&&y<u){var S=Ut(b,w);return Ni(e,t,$i,g.placeholder,n,b,S,l,c,u-y)}var E=h?n:this,C=f?E[e]:e;return y=b.length,l?b=yo(b,l):m&&y>1&&b.reverse(),d&&c<y&&(b.length=c),this&&this!==We&&this instanceof g&&(C=v||Ti(C)),C.apply(E,b)}}function Pi(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Qr(n),r=Qr(r)):(n=Xr(n),r=Xr(r)),i=e(n,r)}return i}}function Li(e){return Vi((function(t){return t=ft(t,Ot(Xi())),Br((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ai(e,t){var n=(t=void 0===t?" ":Qr(t)).length;if(n<2)return n?jr(t,e):t;var r=jr(t,Zt(e/qt(t)));return Yt(t)?ui(Wt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&lo(t,n,i)&&(n=i=void 0),t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n,i){for(var o=-1,a=sn(Zt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:rs(i),e)}}function Di(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=as(t),n=as(n)),e(t,n)}}function Ni(e,t,n,r,i,o,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,l,c],h=n.apply(void 0,d);return uo(e)&&_o(h,d),h.placeholder=r,So(h,e,t)}function Ri(e){var t=fe[e];return function(e,n){if(e=as(e),(n=null==n?0:ln(is(n),292))&&rn(e)){var r=(ls(e)+"e").split("e");return+((r=(ls(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ji=vn&&1/zt(new vn([,-0]))[1]==1/0?function(e){return new vn(e)}:Qs;function Bi(e){return function(t){var n=ro(t);return n==m?Ft(t):n==b?Vt(t):function(e,t){return ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yi(e,t,n,i,s,l,c,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ge(o);var h=i?i.length:0;if(h||(t&=-97,i=s=void 0),c=void 0===c?c:sn(is(c),0),u=void 0===u?u:is(u),h-=s?s.length:0,64&t){var f=i,p=s;i=s=void 0}var m=d?void 0:Gi(e),v=[e,t,n,i,s,f,p,l,c,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?vi(c,l,t[4]):l,e[4]=c?Ut(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?gi(c,l,t[6]):l,e[6]=c?Ut(e[5],a):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:sn(v[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=Ti(e);return function o(){for(var a=arguments.length,s=r(a),l=a,c=Ji(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:Ut(s,c);if((a-=u.length)<n)return Ni(e,t,$i,o.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==We&&this instanceof o?i:e;return ot(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?$i.apply(void 0,v):function(e,t,n,i){var o=1&t,a=Ti(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),h=this&&this!==We&&this instanceof t?a:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return ot(h,o?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=Ti(e);return function t(){var o=this&&this!==We&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return So((m?Ur:_o)(g,v),e,t)}function Fi(e,t,n,r){return void 0===e||Pa(e,_e[n])&&!Se.call(r,n)?t:e}function Hi(e,t,n,r,i,o){return za(e)&&za(t)&&(o.set(t,e),Or(e,t,void 0,Hi,o),o.delete(t)),e}function Ui(e){return Ga(e)?void 0:e}function zi(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var v=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!gt(t,(function(e,t){if(!At(f,t)&&(p===e||i(p,e,n,r,o)))return f.push(t)}))){h=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Vi(e){return ko(vo(e,void 0,Do),e+"")}function qi(e){return fr(e,ws,to)}function Wi(e){return fr(e,ks,no)}var Gi=bn?function(e){return bn.get(e)}:Qs;function Ki(e){for(var t=e.name+"",n=_n[t],r=Se.call(_n,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ji(e){return(Se.call($n,"placeholder")?$n:e).placeholder}function Xi(){var e=$n.iteratee||Gs;return e=e===Gs?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Qi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Zi(e){for(var t=ws(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,po(i)]}return t}function eo(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Sr(n)?n:void 0}var to=tn?function(e){return null==e?[]:(e=pe(e),ut(tn(e),(function(t){return qe.call(e,t)})))}:ol,no=tn?function(e){for(var t=[];e;)pt(t,to(e)),e=He(e);return t}:ol,ro=pr;function io(e,t,n){for(var r=-1,i=(t=li(t,e)).length,o=!1;++r<i;){var a=xo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ua(i)&&so(a,i)&&(Ia(e)||Aa(e))}function oo(e){return"function"!=typeof e.constructor||fo(e)?{}:Pn(He(e))}function ao(e){return Ia(e)||Aa(e)||!!(Ke&&e&&e[Ke])}function so(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function lo(e,t,n){if(!za(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&so(t,n.length):"string"==r&&t in n)&&Pa(n[t],e)}function co(e,t){if(Ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Qa(e))||(z.test(e)||!U.test(e)||null!=t&&e in pe(t))}function uo(e){var t=Ki(e),n=$n[t];if("function"!=typeof n||!(t in An.prototype))return!1;if(e===n)return!0;var r=Gi(n);return!!r&&e===r[0]}(fn&&ro(new fn(new ArrayBuffer(1)))!=E||pn&&ro(new pn)!=m||mn&&"[object Promise]"!=ro(mn.resolve())||vn&&ro(new vn)!=b||gn&&ro(new gn)!=k)&&(ro=function(e){var t=pr(e),n=t==g?e.constructor:void 0,r=n?Mo(n):"";if(r)switch(r){case wn:return E;case kn:return m;case Sn:return"[object Promise]";case En:return b;case Cn:return k}return t});var ho=we?Fa:al;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_e)}function po(e){return e==e&&!za(e)}function mo(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in pe(n)))}}function vo(e,t,n){return t=sn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=sn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),ot(e,this,l)}}function go(e,t){return t.length<2?e:hr(e,qr(t,0,-1))}function yo(e,t){for(var n=e.length,r=ln(t.length,n),i=yi(e);r--;){var o=t[r];e[r]=so(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var _o=Eo(Ur),wo=Qt||function(e,t){return We.setTimeout(e,t)},ko=Eo(zr);function So(e,t,n){var r=t+"";return ko(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Q):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Co(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Rr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var To=function(e){var t=Ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(V,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function xo(e){if("string"==typeof e||Qa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $o(e){if(e instanceof An)return e.clone();var t=new Ln(e.__wrapped__,e.__chain__);return t.__actions__=yi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Po=Br((function(e,t){return Ra(e)?er(e,ar(t,1,Ra,!0)):[]})),Oo=Br((function(e,t){var n=Yo(t);return Ra(n)&&(n=void 0),Ra(e)?er(e,ar(t,1,Ra,!0),Xi(n,2)):[]})),Lo=Br((function(e,t){var n=Yo(t);return Ra(n)&&(n=void 0),Ra(e)?er(e,ar(t,1,Ra,!0),void 0,n):[]}));function Ao(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),_t(e,Xi(t,3),i)}function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?sn(r+i,0):ln(i,r-1)),_t(e,Xi(t,3),i,!0)}function Do(e){return(null==e?0:e.length)?ar(e,1):[]}function No(e){return e&&e.length?e[0]:void 0}var Ro=Br((function(e){var t=ft(e,ai);return t.length&&t[0]===e[0]?yr(t):[]})),jo=Br((function(e){var t=Yo(e),n=ft(e,ai);return t===Yo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yr(n,Xi(t,2)):[]})),Bo=Br((function(e){var t=Yo(e),n=ft(e,ai);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yr(n,void 0,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Fo=Br(Ho);function Ho(e,t){return e&&e.length&&t&&t.length?Dr(e,t):e}var Uo=Vi((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Nr(e,ft(t,(function(e){return so(e,n)?+e:e})).sort(mi)),r}));function zo(e){return null==e?e:hn.call(e)}var Vo=Br((function(e){return Zr(ar(e,1,Ra,!0))})),qo=Br((function(e){var t=Yo(e);return Ra(t)&&(t=void 0),Zr(ar(e,1,Ra,!0),Xi(t,2))})),Wo=Br((function(e){var t=Yo(e);return t="function"==typeof t?t:void 0,Zr(ar(e,1,Ra,!0),void 0,t)}));function Go(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ra(e))return t=sn(e.length,t),!0})),$t(t,(function(t){return ft(e,Ct(t))}))}function Ko(e,t){if(!e||!e.length)return[];var n=Go(e);return null==t?n:ft(n,(function(e){return ot(t,void 0,e)}))}var Jo=Br((function(e,t){return Ra(e)?er(e,t):[]})),Xo=Br((function(e){return ii(ut(e,Ra))})),Qo=Br((function(e){var t=Yo(e);return Ra(t)&&(t=void 0),ii(ut(e,Ra),Xi(t,2))})),Zo=Br((function(e){var t=Yo(e);return t="function"==typeof t?t:void 0,ii(ut(e,Ra),void 0,t)})),ea=Br(Go);var ta=Br((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ko(e,n)}));function na(e){var t=$n(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Vi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Ln(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=_i((function(e,t,n){Se.call(e,n)?++e[n]:Gn(e,n,1)}));var aa=xi(Ao),sa=xi(Io);function la(e,t){return(Ia(e)?st:tr)(e,Xi(t,3))}function ca(e,t){return(Ia(e)?lt:nr)(e,Xi(t,3))}var ua=_i((function(e,t,n){Se.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var da=Br((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),ha=_i((function(e,t,n){Gn(e,n,t)}));function fa(e,t){return(Ia(e)?ft:Mr)(e,Xi(t,3))}var pa=_i((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ma=Br((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,ar(t,1),[])})),va=Xt||function(){return We.Date.now()};function ga(e,t,n){return t=n?void 0:t,Yi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new ge(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Br((function(e,t,n){var r=1;if(n.length){var i=Ut(n,Ji(ba));r|=32}return Yi(e,r,t,n,i)})),_a=Br((function(e,t,n){var r=3;if(n.length){var i=Ut(n,Ji(_a));r|=32}return Yi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,l,c,u=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new ge(o);function p(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,l=wo(g,t),d?p(e):s}function v(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=a}function g(){var e=va();if(v(e))return y(e);l=wo(g,function(e){var n=t-(e-c);return h?ln(n,a-(e-u)):n}(e))}function y(e){return l=void 0,f&&r?p(e):(r=i=void 0,s)}function b(){var e=va(),n=v(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return m(c);if(h)return di(l),l=wo(g,t),p(c)}return void 0===l&&(l=wo(g,t)),s}return t=as(t)||0,za(n)&&(d=!!n.leading,a=(h="maxWait"in n)?sn(as(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==l&&di(l),u=0,r=c=i=l=void 0},b.flush=function(){return void 0===l?s:y(va())},b}var ka=Br((function(e,t){return Zn(e,1,t)})),Sa=Br((function(e,t,n){return Zn(e,as(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Nn),n}function Ca(e){if("function"!=typeof e)throw new ge(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Nn;var Ta=ci((function(e,t){var n=(t=1==t.length&&Ia(t[0])?ft(t[0],Ot(Xi())):ft(ar(t,1),Ot(Xi()))).length;return Br((function(r){for(var i=-1,o=ln(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),xa=Br((function(e,t){return Yi(e,32,void 0,t,Ut(t,Ji(xa)))})),Ma=Br((function(e,t){return Yi(e,64,void 0,t,Ut(t,Ji(Ma)))})),$a=Vi((function(e,t){return Yi(e,256,void 0,void 0,void 0,t)}));function Pa(e,t){return e===t||e!=e&&t!=t}var Oa=Di(mr),La=Di((function(e,t){return e>=t})),Aa=_r(function(){return arguments}())?_r:function(e){return Va(e)&&Se.call(e,"callee")&&!qe.call(e,"callee")},Ia=r.isArray,Da=Ze?Ot(Ze):function(e){return Va(e)&&pr(e)==S};function Na(e){return null!=e&&Ua(e.length)&&!Fa(e)}function Ra(e){return Va(e)&&Na(e)}var ja=nn||al,Ba=et?Ot(et):function(e){return Va(e)&&pr(e)==d};function Ya(e){if(!Va(e))return!1;var t=pr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ga(e)}function Fa(e){if(!za(e))return!1;var t=pr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ha(e){return"number"==typeof e&&e==is(e)}function Ua(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var qa=tt?Ot(tt):function(e){return Va(e)&&ro(e)==m};function Wa(e){return"number"==typeof e||Va(e)&&pr(e)==v}function Ga(e){if(!Va(e)||pr(e)!=g)return!1;var t=He(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==xe}var Ka=nt?Ot(nt):function(e){return Va(e)&&pr(e)==y};var Ja=rt?Ot(rt):function(e){return Va(e)&&ro(e)==b};function Xa(e){return"string"==typeof e||!Ia(e)&&Va(e)&&pr(e)==_}function Qa(e){return"symbol"==typeof e||Va(e)&&pr(e)==w}var Za=it?Ot(it):function(e){return Va(e)&&Ua(e.length)&&!!Ye[pr(e)]};var es=Di(xr),ts=Di((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Na(e))return Xa(e)?Wt(e):yi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ro(e);return(t==m?Ft:t==b?zt:Ps)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Jn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Qa(e))return NaN;if(za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pt(e);var n=oe.test(e);return n||se.test(e)?ze(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return bi(e,ks(e))}function ls(e){return null==e?"":Qr(e)}var cs=wi((function(e,t){if(fo(t)||Na(t))bi(t,ws(t),e);else for(var n in t)Se.call(t,n)&&zn(e,n,t[n])})),us=wi((function(e,t){bi(t,ks(t),e)})),ds=wi((function(e,t,n,r){bi(t,ks(t),e,r)})),hs=wi((function(e,t,n,r){bi(t,ws(t),e,r)})),fs=Vi(Kn);var ps=Br((function(e,t){e=pe(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ks(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||Pa(u,_e[c])&&!Se.call(e,c))&&(e[c]=o[c])}return e})),ms=Br((function(e){return e.push(void 0,Hi),ot(Es,void 0,e)}));function vs(e,t,n){var r=null==e?void 0:hr(e,t);return void 0===r?n:r}function gs(e,t){return null!=e&&io(e,t,gr)}var ys=Pi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=n}),zs(Ws)),bs=Pi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Xi),_s=Br(br);function ws(e){return Na(e)?Bn(e):Cr(e)}function ks(e){return Na(e)?Bn(e,!0):Tr(e)}var Ss=wi((function(e,t,n){Or(e,t,n)})),Es=wi((function(e,t,n,r){Or(e,t,n,r)})),Cs=Vi((function(e,t){var n={};if(null==e)return n;var r=!1;t=ft(t,(function(t){return t=li(t,e),r||(r=t.length>1),t})),bi(e,Wi(e),n),r&&(n=Xn(n,7,Ui));for(var i=t.length;i--;)ei(n,t[i]);return n}));var Ts=Vi((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return gs(e,n)}))}(e,t)}));function xs(e,t){if(null==e)return{};var n=ft(Wi(e),(function(e){return[e]}));return t=Xi(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Ms=Bi(ws),$s=Bi(ks);function Ps(e){return null==e?[]:Lt(e,ws(e))}var Os=Ci((function(e,t,n){return t=t.toLowerCase(),e+(n?Ls(t):t)}));function Ls(e){return Ys(ls(e).toLowerCase())}function As(e){return(e=ls(e))&&e.replace(ce,Rt).replace(Ae,"")}var Is=Ci((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ds=Ci((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ei("toLowerCase");var Rs=Ci((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var js=Ci((function(e,t,n){return e+(n?" ":"")+Ys(t)}));var Bs=Ci((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Ei("toUpperCase");function Fs(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Re.test(e)}(e)?function(e){return e.match(De)||[]}(e):function(e){return e.match(Z)||[]}(e):e.match(t)||[]}var Hs=Br((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ya(e)?e:new K(e)}})),Us=Vi((function(e,t){return st(t,(function(t){t=xo(t),Gn(e,t,ba(e[t],e))})),e}));function zs(e){return function(){return e}}var Vs=Mi(),qs=Mi(!0);function Ws(e){return e}function Gs(e){return Er("function"==typeof e?e:Xn(e,1))}var Ks=Br((function(e,t){return function(n){return br(n,e,t)}})),Js=Br((function(e,t){return function(n){return br(e,n,t)}}));function Xs(e,t,n){var r=ws(t),i=dr(t,r);null!=n||za(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=dr(t,ws(t)));var o=!(za(n)&&"chain"in n&&!n.chain),a=Fa(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Qs(){}var Zs=Li(ft),el=Li(ct),tl=Li(gt);function nl(e){return co(e)?Ct(xo(e)):function(e){return function(t){return hr(t,e)}}(e)}var rl=Ii(),il=Ii(!0);function ol(){return[]}function al(){return!1}var sl=Oi((function(e,t){return e+t}),0),ll=Ri("ceil"),cl=Oi((function(e,t){return e/t}),1),ul=Ri("floor");var dl,hl=Oi((function(e,t){return e*t}),1),fl=Ri("round"),pl=Oi((function(e,t){return e-t}),0);return $n.after=function(e,t){if("function"!=typeof t)throw new ge(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=ga,$n.assign=cs,$n.assignIn=us,$n.assignInWith=ds,$n.assignWith=hs,$n.at=fs,$n.before=ya,$n.bind=ba,$n.bindAll=Us,$n.bindKey=_a,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},$n.chain=na,$n.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Zt(i/t));o<i;)s[a++]=qr(e,o,o+=t);return s},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Ia(n)?yi(n):[n],ar(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=Xi();return e=t?ft(e,(function(e){if("function"!=typeof e[1])throw new ge(o);return[n(e[0]),e[1]]})):[],Br((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},$n.conforms=function(e){return function(e){var t=ws(e);return function(n){return Qn(n,e,t)}}(Xn(e,1))},$n.constant=zs,$n.countBy=oa,$n.create=function(e,t){var n=Pn(e);return null==t?n:Wn(n,t)},$n.curry=function e(t,n,r){var i=Yi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},$n.curryRight=function e(t,n,r){var i=Yi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},$n.debounce=wa,$n.defaults=ps,$n.defaultsDeep=ms,$n.defer=ka,$n.delay=Sa,$n.difference=Po,$n.differenceBy=Oo,$n.differenceWith=Lo,$n.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:is(t))<0?0:t,r):[]},$n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!0):[]},$n.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&lo(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},$n.filter=function(e,t){return(Ia(e)?ut:or)(e,Xi(t,3))},$n.flatMap=function(e,t){return ar(fa(e,t),1)},$n.flatMapDeep=function(e,t){return ar(fa(e,t),1/0)},$n.flatMapDepth=function(e,t,n){return n=void 0===n?1:is(n),ar(fa(e,t),n)},$n.flatten=Do,$n.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},$n.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:is(t)):[]},$n.flip=function(e){return Yi(e,512)},$n.flow=Vs,$n.flowRight=qs,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},$n.functions=function(e){return null==e?[]:dr(e,ws(e))},$n.functionsIn=function(e){return null==e?[]:dr(e,ks(e))},$n.groupBy=ua,$n.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},$n.intersection=Ro,$n.intersectionBy=jo,$n.intersectionWith=Bo,$n.invert=ys,$n.invertBy=bs,$n.invokeMap=da,$n.iteratee=Gs,$n.keyBy=ha,$n.keys=ws,$n.keysIn=ks,$n.map=fa,$n.mapKeys=function(e,t){var n={};return t=Xi(t,3),cr(e,(function(e,r,i){Gn(n,t(e,r,i),e)})),n},$n.mapValues=function(e,t){var n={};return t=Xi(t,3),cr(e,(function(e,r,i){Gn(n,r,t(e,r,i))})),n},$n.matches=function(e){return $r(Xn(e,1))},$n.matchesProperty=function(e,t){return Pr(e,Xn(t,1))},$n.memoize=Ea,$n.merge=Ss,$n.mergeWith=Es,$n.method=Ks,$n.methodOf=Js,$n.mixin=Xs,$n.negate=Ca,$n.nthArg=function(e){return e=is(e),Br((function(t){return Lr(t,e)}))},$n.omit=Cs,$n.omitBy=function(e,t){return xs(e,Ca(Xi(t)))},$n.once=function(e){return ya(2,e)},$n.orderBy=function(e,t,n,r){return null==e?[]:(Ia(t)||(t=null==t?[]:[t]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Ar(e,t,n))},$n.over=Zs,$n.overArgs=Ta,$n.overEvery=el,$n.overSome=tl,$n.partial=xa,$n.partialRight=Ma,$n.partition=pa,$n.pick=Ts,$n.pickBy=xs,$n.property=nl,$n.propertyOf=function(e){return function(t){return null==e?void 0:hr(e,t)}},$n.pull=Fo,$n.pullAll=Ho,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,Xi(n,2)):e},$n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,void 0,n):e},$n.pullAt=Uo,$n.range=rl,$n.rangeRight=il,$n.rearg=$a,$n.reject=function(e,t){return(Ia(e)?ut:or)(e,Ca(Xi(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Xi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Nr(e,i),n},$n.rest=function(e,t){if("function"!=typeof e)throw new ge(o);return Br(e,t=void 0===t?t:is(t))},$n.reverse=zo,$n.sampleSize=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),(Ia(e)?Fn:Fr)(e,t)},$n.set=function(e,t,n){return null==e?e:Hr(e,t,n)},$n.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Hr(e,t,n,r)},$n.shuffle=function(e){return(Ia(e)?Hn:Vr)(e)},$n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&lo(e,t,n)?(t=0,n=r):(t=null==t?0:is(t),n=void 0===n?r:is(n)),qr(e,t,n)):[]},$n.sortBy=ma,$n.sortedUniq=function(e){return e&&e.length?Jr(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?Jr(e,Xi(t,2)):[]},$n.split=function(e,t,n){return n&&"number"!=typeof n&&lo(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!Ka(t))&&!(t=Qr(t))&&Yt(e)?ui(Wt(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new ge(o);return t=null==t?0:sn(is(t),0),Br((function(n){var r=n[t],i=ui(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},$n.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},$n.takeRightWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?ni(e,Xi(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ge(o);return za(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},$n.thru=ra,$n.toArray=ns,$n.toPairs=Ms,$n.toPairsIn=$s,$n.toPath=function(e){return Ia(e)?ft(e,xo):Qa(e)?[e]:yi(To(ls(e)))},$n.toPlainObject=ss,$n.transform=function(e,t,n){var r=Ia(e),i=r||ja(e)||Za(e);if(t=Xi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:za(e)&&Fa(o)?Pn(He(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},$n.unary=function(e){return ga(e,1)},$n.union=Vo,$n.unionBy=qo,$n.unionWith=Wo,$n.uniq=function(e){return e&&e.length?Zr(e):[]},$n.uniqBy=function(e,t){return e&&e.length?Zr(e,Xi(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zr(e,void 0,t):[]},$n.unset=function(e,t){return null==e||ei(e,t)},$n.unzip=Go,$n.unzipWith=Ko,$n.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},$n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},$n.values=Ps,$n.valuesIn=function(e){return null==e?[]:Lt(e,ks(e))},$n.without=Jo,$n.words=Fs,$n.wrap=function(e,t){return xa(si(t),e)},$n.xor=Xo,$n.xorBy=Qo,$n.xorWith=Zo,$n.zip=ea,$n.zipObject=function(e,t){return oi(e||[],t||[],zn)},$n.zipObjectDeep=function(e,t){return oi(e||[],t||[],Hr)},$n.zipWith=ta,$n.entries=Ms,$n.entriesIn=$s,$n.extend=us,$n.extendWith=ds,Xs($n,$n),$n.add=sl,$n.attempt=Hs,$n.camelCase=Os,$n.capitalize=Ls,$n.ceil=ll,$n.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Jn(as(e),t,n)},$n.clone=function(e){return Xn(e,4)},$n.cloneDeep=function(e){return Xn(e,5)},$n.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},$n.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},$n.conformsTo=function(e,t){return null==t||Qn(e,t,ws(t))},$n.deburr=As,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=cl,$n.endsWith=function(e,t,n){e=ls(e),t=Qr(t);var r=e.length,i=n=void 0===n?r:Jn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},$n.eq=Pa,$n.escape=function(e){return(e=ls(e))&&B.test(e)?e.replace(R,jt):e},$n.escapeRegExp=function(e){return(e=ls(e))&&W.test(e)?e.replace(q,"\\$&"):e},$n.every=function(e,t,n){var r=Ia(e)?ct:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Xi(t,3))},$n.find=aa,$n.findIndex=Ao,$n.findKey=function(e,t){return bt(e,Xi(t,3),cr)},$n.findLast=sa,$n.findLastIndex=Io,$n.findLastKey=function(e,t){return bt(e,Xi(t,3),ur)},$n.floor=ul,$n.forEach=la,$n.forEachRight=ca,$n.forIn=function(e,t){return null==e?e:sr(e,Xi(t,3),ks)},$n.forInRight=function(e,t){return null==e?e:lr(e,Xi(t,3),ks)},$n.forOwn=function(e,t){return e&&cr(e,Xi(t,3))},$n.forOwnRight=function(e,t){return e&&ur(e,Xi(t,3))},$n.get=vs,$n.gt=Oa,$n.gte=La,$n.has=function(e,t){return null!=e&&io(e,t,vr)},$n.hasIn=gs,$n.head=No,$n.identity=Ws,$n.includes=function(e,t,n,r){e=Na(e)?e:Ps(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Xa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},$n.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e<sn(t,n)}(e=as(e),t,n)},$n.invoke=_s,$n.isArguments=Aa,$n.isArray=Ia,$n.isArrayBuffer=Da,$n.isArrayLike=Na,$n.isArrayLikeObject=Ra,$n.isBoolean=function(e){return!0===e||!1===e||Va(e)&&pr(e)==u},$n.isBuffer=ja,$n.isDate=Ba,$n.isElement=function(e){return Va(e)&&1===e.nodeType&&!Ga(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Na(e)&&(Ia(e)||"string"==typeof e||"function"==typeof e.splice||ja(e)||Za(e)||Aa(e)))return!e.length;var t=ro(e);if(t==m||t==b)return!e.size;if(fo(e))return!Cr(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return wr(e,t)},$n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?wr(e,t,void 0,n):!!r},$n.isError=Ya,$n.isFinite=function(e){return"number"==typeof e&&rn(e)},$n.isFunction=Fa,$n.isInteger=Ha,$n.isLength=Ua,$n.isMap=qa,$n.isMatch=function(e,t){return e===t||kr(e,t,Zi(t))},$n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,kr(e,t,Zi(t),n)},$n.isNaN=function(e){return Wa(e)&&e!=+e},$n.isNative=function(e){if(ho(e))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sr(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=Wa,$n.isObject=za,$n.isObjectLike=Va,$n.isPlainObject=Ga,$n.isRegExp=Ka,$n.isSafeInteger=function(e){return Ha(e)&&e>=-9007199254740991&&e<=9007199254740991},$n.isSet=Ja,$n.isString=Xa,$n.isSymbol=Qa,$n.isTypedArray=Za,$n.isUndefined=function(e){return void 0===e},$n.isWeakMap=function(e){return Va(e)&&ro(e)==k},$n.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==pr(e)},$n.join=function(e,t){return null==e?"":on.call(e,t)},$n.kebabCase=Is,$n.last=Yo,$n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,St,i,!0)},$n.lowerCase=Ds,$n.lowerFirst=Ns,$n.lt=es,$n.lte=ts,$n.max=function(e){return e&&e.length?ir(e,Ws,mr):void 0},$n.maxBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),mr):void 0},$n.mean=function(e){return Et(e,Ws)},$n.meanBy=function(e,t){return Et(e,Xi(t,2))},$n.min=function(e){return e&&e.length?ir(e,Ws,xr):void 0},$n.minBy=function(e,t){return e&&e.length?ir(e,Xi(t,2),xr):void 0},$n.stubArray=ol,$n.stubFalse=al,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=hl,$n.nth=function(e,t){return e&&e.length?Lr(e,is(t)):void 0},$n.noConflict=function(){return We._===this&&(We._=Me),this},$n.noop=Qs,$n.now=va,$n.pad=function(e,t,n){e=ls(e);var r=(t=is(t))?qt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ai(en(i),n)+e+Ai(Zt(i),n)},$n.padEnd=function(e,t,n){e=ls(e);var r=(t=is(t))?qt(e):0;return t&&r<t?e+Ai(t-r,n):e},$n.padStart=function(e,t,n){e=ls(e);var r=(t=is(t))?qt(e):0;return t&&r<t?Ai(t-r,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(ls(e).replace(G,""),t||0)},$n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&lo(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=rs(e),void 0===t?(t=e,e=0):t=rs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=dn();return ln(e+i*(t-e+Ue("1e-"+((i+"").length-1))),t)}return Rr(e,t)},$n.reduce=function(e,t,n){var r=Ia(e)?mt:xt,i=arguments.length<3;return r(e,Xi(t,4),n,i,tr)},$n.reduceRight=function(e,t,n){var r=Ia(e)?vt:xt,i=arguments.length<3;return r(e,Xi(t,4),n,i,nr)},$n.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),jr(ls(e),t)},$n.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[xo(t[r])];void 0===o&&(r=i,o=n),e=Fa(o)?o.call(e):o}return e},$n.round=fl,$n.runInContext=e,$n.sample=function(e){return(Ia(e)?Yn:Yr)(e)},$n.size=function(e){if(null==e)return 0;if(Na(e))return Xa(e)?qt(e):e.length;var t=ro(e);return t==m||t==b?e.size:Cr(e).length},$n.snakeCase=Rs,$n.some=function(e,t,n){var r=Ia(e)?gt:Wr;return n&&lo(e,t,n)&&(t=void 0),r(e,Xi(t,3))},$n.sortedIndex=function(e,t){return Gr(e,t)},$n.sortedIndexBy=function(e,t,n){return Kr(e,t,Xi(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Gr(e,t);if(r<n&&Pa(e[r],t))return r}return-1},$n.sortedLastIndex=function(e,t){return Gr(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Xi(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Gr(e,t,!0)-1;if(Pa(e[n],t))return n}return-1},$n.startCase=js,$n.startsWith=function(e,t,n){return e=ls(e),n=null==n?0:Jn(is(n),0,e.length),t=Qr(t),e.slice(n,n+t.length)==t},$n.subtract=pl,$n.sum=function(e){return e&&e.length?Mt(e,Ws):0},$n.sumBy=function(e,t){return e&&e.length?Mt(e,Xi(t,2)):0},$n.template=function(e,t,n){var r=$n.templateSettings;n&&lo(e,t,n)&&(t=void 0),e=ls(e),t=ds({},t,r,Fi);var i,o,a=ds({},t.imports,r.imports,Fi),s=ws(a),l=Lt(a,s),c=0,u=t.interpolate||ue,d="__p += '",h=me((t.escape||ue).source+"|"+u.source+"|"+(u===H?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),f="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(c,l).replace(de,Bt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var p=Se.call(t,"variable")&&t.variable;if(p){if(ee.test(p))throw new K("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(A,""):d).replace(I,"$1").replace(D,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Hs((function(){return he(s,f+"return "+d).apply(void 0,l)}));if(m.source=d,Ya(m))throw m;return m},$n.times=function(e,t){if((e=is(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=$t(r,t=Xi(t));++n<e;)t(n);return i},$n.toFinite=rs,$n.toInteger=is,$n.toLength=os,$n.toLower=function(e){return ls(e).toLowerCase()},$n.toNumber=as,$n.toSafeInteger=function(e){return e?Jn(is(e),-9007199254740991,9007199254740991):0===e?e:0},$n.toString=ls,$n.toUpper=function(e){return ls(e).toUpperCase()},$n.trim=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return Pt(e);if(!e||!(t=Qr(t)))return e;var r=Wt(e),i=Wt(t);return ui(r,It(r,i),Dt(r,i)+1).join("")},$n.trimEnd=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return e.slice(0,Gt(e)+1);if(!e||!(t=Qr(t)))return e;var r=Wt(e);return ui(r,0,Dt(r,Wt(t))+1).join("")},$n.trimStart=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Qr(t)))return e;var r=Wt(e);return ui(r,It(r,Wt(t))).join("")},$n.truncate=function(e,t){var n=30,r="...";if(za(t)){var i="separator"in t?t.separator:i;n="length"in t?is(t.length):n,r="omission"in t?Qr(t.omission):r}var o=(e=ls(e)).length;if(Yt(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-qt(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Ka(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=me(i.source,ls(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Qr(i),s)!=s){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},$n.unescape=function(e){return(e=ls(e))&&j.test(e)?e.replace(N,Kt):e},$n.uniqueId=function(e){var t=++Ee;return ls(e)+t},$n.upperCase=Bs,$n.upperFirst=Ys,$n.each=la,$n.eachRight=ca,$n.first=No,Xs($n,(dl={},cr($n,(function(e,t){Se.call($n.prototype,t)||(dl[t]=e)})),dl),{chain:!1}),$n.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$n[e].placeholder=$n})),st(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Ws)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Br((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return br(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Ca(Xi(e)))},An.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},cr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=$n[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&($n.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof An,l=a[0],c=s||Ia(t),u=function(e){var t=i.apply($n,pt([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,f=o&&!d,p=s&&!h;if(!o&&c){t=p?t:new An(this);var m=e.apply(t,a);return m.__actions__.push({func:ra,args:[u],thisArg:void 0}),new Ln(m,d)}return f&&p?e.apply(this,a):(m=this.thru(u),f?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),cr(An.prototype,(function(e,t){var n=$n[t];if(n){var r=n.name+"";Se.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[$i(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ln(t,e+a);break;case"takeRight":e=sn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,f=ln(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return ri(e,this.__actions__);var p=[];e:for(;l--&&h<f;){for(var m=-1,v=e[c+=t];++m<d;){var g=u[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}p[h++]=v}return p},$n.prototype.at=ia,$n.prototype.chain=function(){return na(this)},$n.prototype.commit=function(){return new Ln(this.value(),this.__chain__)},$n.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var r=$o(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ra,args:[zo],thisArg:void 0}),new Ln(t,this.__chain__)}return this.thru(zo)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Xe&&($n.prototype[Xe]=function(){return this}),$n}();We._=Jt,void 0===(i=function(){return Jt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(10),n(37)(e))},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=null},function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){var e,t,n,r,i,o={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in o)if((s="function"==typeof o[i].regexps.unformat?o[i].regexps.unformat():o[i].regexps.unformat)&&n.match(s)){a=o[i].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var i,o,s,l,c,u,d,h,f=a[e.options.currentLocale],p=!1,m=!1,v="",g="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),s>=1e12&&!o||"t"===o?(v+=f.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!o||"b"===o?(v+=f.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!o||"m"===o?(v+=f.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!o||"k"===o)&&(v+=f.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],c=n.split(".")[1],d=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),g=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):g=e._.toFixed(t,c.length,r),l=g.split(".")[0],g=e._.includes(g,".")?f.delimiters.decimal+g.split(".")[1]:"",m&&0===Number(g.slice(1))&&(g="")):l=e._.toFixed(t,0,r),v&&!o&&Number(l)>=1e3&&v!==f.abbreviations.trillion)switch(l=String(Number(l)/1e3),v){case f.abbreviations.thousand:v=f.abbreviations.million;break;case f.abbreviations.million:v=f.abbreviations.billion;break;case f.abbreviations.billion:v=f.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length<i)for(var b=i-l.length;b>0;b--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(l=""),h=l+g+(v||""),p?h=(p&&y?"(":"")+h+(p&&y?")":""):u>=0?h=0===u?(y?"-":"+")+h:h+(y?"-":"+"):y&&(h="-"+h),h},stringToNumber:function(e){var t,n,r,i=a[l.currentLocale],o=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),o.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=l,e.formats=o,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==o)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,a,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in o)if(c.match(o[r].regexps.format)){a=o[r].format;break}i=(a=a||e._.numberToFormat)(s,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,i){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,i){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,o){var a,s,l,c=e._.includes(i,"ib")?r:n,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===t||0===t||t>=s&&t<l){u+=c.suffixes[a],s>0&&(t/=s);break}return e._.numberToFormat(t,i,o)+u},unformat:function(t){var i,o,a=e._.stringToNumber(t);if(a){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){o=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){o=Math.pow(r.base,i);break}}a*=o||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],(function(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";var r=n(8),i=n(230),o=n(9).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,i,o,a){return l(e+(t&n|~t&r)+i+o|0,a)+t|0}function u(e,t,n,r,i,o,a){return l(e+(t&r|n&~r)+i+o|0,a)+t|0}function d(e,t,n,r,i,o,a){return l(e+(t^n^r)+i+o|0,a)+t|0}function h(e,t,n,r,i,o,a){return l(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=u(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,n,r,i,e[6],3225465664,9),i=u(i,o,n,r,e[11],643717713,14),r=u(r,i,o,n,e[0],3921069994,20),n=u(n,r,i,o,e[5],3593408605,5),o=u(o,n,r,i,e[10],38016083,9),i=u(i,o,n,r,e[15],3634488961,14),r=u(r,i,o,n,e[4],3889429448,20),n=u(n,r,i,o,e[9],568446438,5),o=u(o,n,r,i,e[14],3275163606,9),i=u(i,o,n,r,e[3],4107603335,14),r=u(r,i,o,n,e[8],1163531501,20),n=u(n,r,i,o,e[13],2850285829,5),o=u(o,n,r,i,e[2],4243563512,9),i=u(i,o,n,r,e[7],1735328473,14),n=d(n,r=u(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,n,r,i,e[8],2272392833,11),i=d(i,o,n,r,e[11],1839030562,16),r=d(r,i,o,n,e[14],4259657740,23),n=d(n,r,i,o,e[1],2763975236,4),o=d(o,n,r,i,e[4],1272893353,11),i=d(i,o,n,r,e[7],4139469664,16),r=d(r,i,o,n,e[10],3200236656,23),n=d(n,r,i,o,e[13],681279174,4),o=d(o,n,r,i,e[0],3936430074,11),i=d(i,o,n,r,e[3],3572445317,16),r=d(r,i,o,n,e[6],76029189,23),n=d(n,r,i,o,e[9],3654602809,4),o=d(o,n,r,i,e[12],3873151461,11),i=d(i,o,n,r,e[15],530742520,16),n=h(n,r=d(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,n,r,i,e[7],1126891415,10),i=h(i,o,n,r,e[14],2878612391,15),r=h(r,i,o,n,e[5],4237533241,21),n=h(n,r,i,o,e[12],1700485571,6),o=h(o,n,r,i,e[3],2399980690,10),i=h(i,o,n,r,e[10],4293915773,15),r=h(r,i,o,n,e[1],2240044497,21),n=h(n,r,i,o,e[8],1873313359,6),o=h(o,n,r,i,e[15],4264355552,10),i=h(i,o,n,r,e[6],2734768916,15),r=h(r,i,o,n,e[13],1309151649,21),n=h(n,r,i,o,e[4],4149444226,6),o=h(o,n,r,i,e[11],3174756917,10),i=h(i,o,n,r,e[2],718787259,15),r=h(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){e.exports=i;var r=n(88).EventEmitter;function i(){r.call(this)}n(8)(i,r),i.Readable=n(30),i.Writable=n(317),i.Duplex=n(318),i.Transform=n(319),i.PassThrough=n(320),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";(function(t,r,i){var o=n(38);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;y.WritableState=g;var c=Object.create(n(31));c.inherits=n(8);var u={deprecate:n(315)},d=n(232),h=n(9).Buffer,f=i.Uint8Array||function(){};var p,m=n(233);function v(){}function g(e,t){s=s||n(25),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),E(e,t))}(e,n,r,t,i);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(25),!(p.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),E(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,h.isBuffer(r)||r instanceof f);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(13),n(18).setImmediate,n(10))},function(e,t,n){"use strict";var r=n(9).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(11).Buffer,i=n(8),o=n(230),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,o,a,s){return p(e+(t^n^r)+o+a|0,s)+i|0}function v(e,t,n,r,i,o,a,s){return p(e+(t&n|~t&r)+o+a|0,s)+i|0}function g(e,t,n,r,i,o,a,s){return p(e+((t|~n)^r)+o+a|0,s)+i|0}function y(e,t,n,r,i,o,a,s){return p(e+(t&r|n&~r)+o+a|0,s)+i|0}function b(e,t,n,r,i,o,a,s){return p(e+(t^(n|~r))+o+a|0,s)+i|0}i(f,o),f.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,f=0|this._e,_=0|this._a,w=0|this._b,k=0|this._c,S=0|this._d,E=0|this._e,C=0;C<80;C+=1){var T,x;C<16?(T=m(n,r,i,o,f,e[s[C]],d[0],c[C]),x=b(_,w,k,S,E,e[l[C]],h[0],u[C])):C<32?(T=v(n,r,i,o,f,e[s[C]],d[1],c[C]),x=y(_,w,k,S,E,e[l[C]],h[1],u[C])):C<48?(T=g(n,r,i,o,f,e[s[C]],d[2],c[C]),x=g(_,w,k,S,E,e[l[C]],h[2],u[C])):C<64?(T=y(n,r,i,o,f,e[s[C]],d[3],c[C]),x=v(_,w,k,S,E,e[l[C]],h[3],u[C])):(T=b(n,r,i,o,f,e[s[C]],d[4],c[C]),x=m(_,w,k,S,E,e[l[C]],h[4],u[C])),n=f,f=o,o=p(i,10),i=r,r=T,_=E,E=S,S=p(k,10),k=w,w=x}var M=this._b+i+S|0;this._b=this._c+o+E|0,this._c=this._d+f+_|0,this._d=this._e+n+w|0,this._e=this._a+r+k|0,this._a=M},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(321),t.sha1=n(322),t.sha224=n(323),t.sha256=n(235),t.sha384=n(324),t.sha512=n(236)},function(e,t,n){"use strict";var r=n(16);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){var r=n(333),i=n(341),o=n(248);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,n){var r={ECB:n(334),CBC:n(335),CFB:n(336),CFB8:n(337),CFB1:n(338),OFB:n(339),CTR:n(246),GCM:n(246)},i=n(248);for(var o in i)i[o].module=r[i[o].mode];e.exports=i},function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(345);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,n){(function(t){var r=n(12),i=n(27);function o(e,n){var i=function(e){var t=a(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),o=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(e).mul(i.blinder).umod(n.modulus)),l=s.toRed(r.mont(n.prime1)),c=s.toRed(r.mont(n.prime2)),u=n.coefficient,d=n.prime1,h=n.prime2,f=l.redPow(n.exponent1),p=c.redPow(n.exponent2);f=f.fromRed(),p=p.fromRed();var m=f.isub(p).imul(u).umod(d);return m.imul(h),p.iadd(m),new t(p.imul(i.unblinder).umod(n.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),n=new r(i(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(i(t));return n}e.exports=o,o.getr=a}).call(this,n(11).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(350).version,r.utils=n(17),r.rand=n(96),r.curve=n(254),r.curves=n(99),r.ec=n(361),r.eddsa=n(365)},function(e,t,n){"use strict";var r,i=t,o=n(100),a=n(254),s=n(17).assert;function l(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(360)}catch(e){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(20),r.common=n(33),r.sha=n(354),r.ripemd=n(358),r.hmac=n(359),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";(function(e){var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function i(e){return null!==e&&"object"==typeof e}var o=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(e,t){this._children[e]=t},o.prototype.removeChild=function(e){delete this._children[e]},o.prototype.getChild=function(e){return this._children[e]},o.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},o.prototype.forEachChild=function(e){r(this._children,e)},o.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},o.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},o.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(o.prototype,a);var s=function(e){this.register([],e,!1)};s.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},s.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},s.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},s.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var a=new o(t,n);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&r(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},s.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var l;var c=function(e){var t=this;void 0===e&&(e={}),!l&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,c=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return c.call(o,e,t,n)},this.strict=i;var u=this._modules.root.state;p(this,u,[],this._modules.root),f(this,u),r.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:l.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)})))}(this)},u={state:{configurable:!0}};function d(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;p(e,n,[],e._modules.root,!0),f(e,n,t)}function f(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};r(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:a}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),l.nextTick((function(){return i.$destroy()})))}function p(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=m(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=v(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,r,i,u)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,u)})),r.forEachChild((function(r,o){p(e,t,n.concat(o),r,i)}))}function m(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,n){return i(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){l&&e===l||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l=e)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(e){0},c.prototype.commit=function(e,t,n){var r=this,i=v(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},c.prototype.dispatch=function(e,t){var n=this,r=v(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){0}return(s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o)).then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){0}return e}))}},c.prototype.subscribe=function(e){return d(e,this._subscribers)},c.prototype.subscribeAction=function(e){return d("function"==typeof e?{before:e}:e,this._actionSubscribers)},c.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},c.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},c.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),n.preserveState),f(this,this.state)},c.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},c.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},c.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(c.prototype,u);var y=S((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=E(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=S((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=E(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),_=S((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||E(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),w=S((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=E(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function k(e){return function(e){return Array.isArray(e)||i(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function S(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function E(e,t,n){return e._modulesNamespaceMap[n]}var C={Store:c,install:g,version:"3.1.3",mapState:y,mapMutations:b,mapGetters:_,mapActions:w,createNamespacedHelpers:function(e){return{mapState:y.bind(null,e),mapGetters:_.bind(null,e),mapMutations:b.bind(null,e),mapActions:w.bind(null,e)}}};t.a=C}).call(this,n(10))},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,a){var s=r(t),l=i[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,o){var a="";switch(i){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":a=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return a=function(e,r){return e<10?r?n[e]:t[e]:e}(e,o)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(r(e)?i(o)[1]:i(o)[0]):a?s+i(o)[1]:s+(r(e)?i(o)[1]:i(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var o=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}(e);switch(r){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(2))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(2))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(9).Buffer,i=n(87).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(8)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,n){"use strict";(function(t,r){var i=n(38);e.exports=b;var o,a=n(229);b.ReadableState=y;n(88).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(232),c=n(9).Buffer,u=t.Uint8Array||function(){};var d=Object.create(n(31));d.inherits=n(8);var h=n(312),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=n(313),v=n(233);d.inherits(b,l);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(o=o||n(25));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(90).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(25),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):C(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&S(e)),C(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=n(90).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(E,e):E(e))}function E(e){f("emit readable"),e.emit("readable"),$(e)}function C(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function x(e){f("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&O(this),null;var r,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&O(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function c(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){f("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,$(e))}}(n);e.on("drain",d);var h=!1;var p=!1;function m(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==A(o.pipes,e))&&!h&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){f("onerror",t),b(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){f("onfinish"),e.removeListener("close",g),b()}function b(){f("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",y),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=A(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&S(this):i.nextTick(x,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),this},b.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(f("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=P}).call(this,n(10),n(13))},function(e,t,n){e.exports=n(88).EventEmitter},function(e,t,n){"use strict";var r=n(38);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=a;var r=n(25),i=Object.create(n(31));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){l(e,t,n)})):l(this,null,null)}function l(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(8),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(8),i=n(28),o=n(9).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)n[g]=e.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((t=n[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[g-7]+f(n[g-15])+n[g-16];for(var y=0;y<64;++y){var b=v+h(l)+c(l,p,m)+a[y]+n[y]|0,_=d(r)+u(r,i,o)|0;v=m,m=p,p=l,l=s+b|0,s=o,o=i,i=r,r=b+_|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},function(e,t,n){var r=n(8),i=n(28),o=n(9).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}r(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,l=0|this._fh,y=0|this._gh,b=0|this._hh,_=0|this._al,w=0|this._bl,k=0|this._cl,S=0|this._dl,E=0|this._el,C=0|this._fl,T=0|this._gl,x=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var $=t[M-30],P=t[M-30+1],O=f($,P),L=p(P,$),A=m($=t[M-4],P=t[M-4+1]),I=v(P,$),D=t[M-14],N=t[M-14+1],R=t[M-32],j=t[M-32+1],B=L+N|0,Y=O+D+g(B,L)|0;Y=(Y=Y+A+g(B=B+I|0,I)|0)+R+g(B=B+j|0,j)|0,t[M]=Y,t[M+1]=B}for(var F=0;F<160;F+=2){Y=t[F],B=t[F+1];var H=u(n,r,i),U=u(_,w,k),z=d(n,_),V=d(_,n),q=h(s,E),W=h(E,s),G=a[F],K=a[F+1],J=c(s,l,y),X=c(E,C,T),Q=x+W|0,Z=b+q+g(Q,x)|0;Z=(Z=(Z=Z+J+g(Q=Q+X|0,X)|0)+G+g(Q=Q+K|0,K)|0)+Y+g(Q=Q+B|0,B)|0;var ee=V+U|0,te=z+H+g(ee,V)|0;b=y,x=T,y=l,T=C,l=s,C=E,s=o+Z+g(E=S+Q|0,S)|0,o=i,S=k,i=r,k=w,r=n,w=_,n=Z+te+g(_=Q+ee|0,Q)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+E|0,this._fl=this._fl+C|0,this._gl=this._gl+T|0,this._hl=this._hl+x|0,this._ah=this._ah+n+g(this._al,_)|0,this._bh=this._bh+r+g(this._bl,w)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+o+g(this._dl,S)|0,this._eh=this._eh+s+g(this._el,E)|0,this._fh=this._fh+l+g(this._fl,C)|0,this._gh=this._gh+y+g(this._gl,T)|0,this._hh=this._hh+b+g(this._hl,x)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},function(e,t,n){"use strict";var r=n(8),i=n(325),o=n(21),a=n(9).Buffer,s=n(238),l=n(91),c=n(92),u=a.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<n&&(t=a.concat([t,u],n));for(var r=this._ipad=a.allocUnsafe(n),i=this._opad=a.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(r)}r(d,o),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},function(e,t,n){var r=n(86);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){t.pbkdf2=n(327),t.pbkdf2Sync=n(243)},function(e,t,n){(function(t){var n=Math.pow(2,30)-1;function r(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}e.exports=function(e,t,i,o){if(r(e,"Password"),r(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>n||o!=o)throw new TypeError("Bad key length")}}).call(this,n(11).Buffer)},function(e,t,n){(function(t){var n;t.browser?n="utf-8":n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=n}).call(this,n(13))},function(e,t,n){var r=n(238),i=n(91),o=n(92),a=n(241),s=n(242),l=n(9).Buffer,c=l.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var a=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length<s&&(t=l.concat([t,c],s));for(var d=l.allocUnsafe(s+u[e]),h=l.allocUnsafe(s+u[e]),f=0;f<s;f++)d[f]=54^t[f],h[f]=92^t[f];var p=l.allocUnsafe(s+n+4);d.copy(p,0,0,s),this.ipad1=p,this.ipad2=d,this.opad=h,this.alg=e,this.blocksize=s,this.hash=a,this.size=u[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){a(e,t,n,r),l.isBuffer(e)||(e=l.from(e,s)),l.isBuffer(t)||(t=l.from(t,s));var o=new d(i=i||"sha1",e,t.length),c=l.allocUnsafe(r),h=l.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var f=0,p=u[i],m=Math.ceil(r/p),v=1;v<=m;v++){h.writeUInt32BE(v,t.length);for(var g=o.run(h,o.ipad1),y=g,b=1;b<n;b++){y=o.run(y,o.ipad2);for(var _=0;_<p;_++)g[_]^=y[_]}g.copy(c,f),f+=p}return c}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},t.rip=function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.pc1=function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,l=0;l<s;l++)o<<=1,o|=e>>>r[l]&1;for(l=s;l<r.length;l++)a<<=1,a|=t>>>r[l]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<o.length;n++)t<<=1,t|=e>>>o[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],o=0;o<t;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(16),i=n(8),o=n(244),a=n(93);function s(){this.tmp=new Array(2),this.keys=null}function l(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(l,a),e.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,e.keys,a)}},l.prototype._update=function(e,t,n,r){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},l.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,n,r,i){for(var a=t,s=n,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];o.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),h=s;s=(a^o.permute(d))>>>0,a=h}o.rip(s,a,r,i)},l.prototype._decrypt=function(e,t,n,r,i){for(var a=n,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];o.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),h=a;a=(s^o.permute(d))>>>0,s=h}o.rip(a,s,r,i)}},function(e,t,n){var r=n(32),i=n(9).Buffer,o=n(247);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var l=a(e),c=o+16*s;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(39),i=n(9).Buffer,o=n(21),a=n(8),s=n(340),l=n(32),c=n(247);function u(e,t,n,a){o.call(this);var l=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),o=t.length,a=o%16;r.update(t),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var l=8*o,u=i.alloc(8);u.writeUIntBE(l,0,8),r.update(u),e._finID=r.state;var d=i.from(e._finID);return c(d),d}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(u,o),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,n){var r=n(39),i=n(9).Buffer,o=n(21);function a(e,t,n,a){o.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}n(8)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},function(e,t,n){var r=n(27);e.exports=y,y.simpleSieve=v,y.fermatTest=g;var i=n(12),o=new i(24),a=new(n(252)),s=new i(1),l=new i(2),c=new i(5),u=(new i(16),new i(8),new i(10)),d=new i(3),h=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return p=e,e}function v(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function g(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,p;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;n.mod(u).cmp(d);)n.iadd(f)}else for(;n.mod(o).cmp(h);)n.iadd(f);if(v(p=n.shrn(1))&&v(n)&&g(p)&&g(n)&&a.test(p)&&a.test(n))return n}}},function(e,t,n){var r=n(12),i=n(96);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},o.prototype.test=function(e,t,n){var i=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(o);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(u)){for(var f=1;f<l;f++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(u))break}if(f===l)return!1}}return!0},o.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),c=a.toRed(i);t>0;t--){var u=this._randrange(new r(2),a),d=e.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(i).redPow(l);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var f=1;f<s;f++){if(0===(h=h.redSqr()).cmp(o))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(f===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(41),r.short=n(351),r.mont=n(352),r.edwards=n(353)},function(e,t,n){"use strict";var r=n(20).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(20),i=n(33),o=n(255),a=n(16),s=r.sum32,l=r.sum32_4,c=r.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=l(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],v=this.h[2],g=this.h[3],y=this.h[4],b=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var k=c(w,f(y),u(y,b,_),this.k[r],n[r]),S=s(h(i),d(i,o,v));w=_,_=b,b=y,y=s(g,k),g=v,v=o,o=i,i=s(k,S)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(20),i=n(33),o=n(16),a=r.rotr64_hi,s=r.rotr64_lo,l=r.shr64_hi,c=r.shr64_lo,u=r.sum64,d=r.sum64_hi,h=r.sum64_lo,f=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,v=r.sum64_5_lo,g=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function _(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function k(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function S(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function E(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function C(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function x(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function M(e,t){var n=a(e,t,1)^a(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function $(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function P(e,t){var n=a(e,t,19)^a(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function O(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,g),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=P(n[r-4],n[r-3]),o=O(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],l=M(n[r-30],n[r-29]),c=$(n[r-30],n[r-29]),u=n[r-32],d=n[r-31];n[r]=f(i,o,a,s,l,c,u,d),n[r+1]=p(i,o,a,s,l,c,u,d)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],f=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],b=this.h[10],M=this.h[11],$=this.h[12],P=this.h[13],O=this.h[14],L=this.h[15];o(this.k.length===n.length);for(var A=0;A<n.length;A+=2){var I=O,D=L,N=T(g,y),R=x(g,y),j=_(g,y,b,M,$),B=w(g,y,b,M,$,P),Y=this.k[A],F=this.k[A+1],H=n[A],U=n[A+1],z=m(I,D,N,R,j,B,Y,F,H,U),V=v(I,D,N,R,j,B,Y,F,H,U);I=E(r,i),D=C(r,i),N=k(r,i,a,s,l),R=S(r,i,a,s,l,c);var q=d(I,D,N,R),W=h(I,D,N,R);O=$,L=P,$=b,P=M,b=g,M=y,g=d(f,p,z,V),y=h(p,p,z,V),f=l,p=c,l=a,c=s,a=r,s=i,r=d(z,V,q,W),i=h(z,V,q,W)}u(this.h,0,r,i),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,f,p),u(this.h,8,g,y),u(this.h,10,b,M),u(this.h,12,$,P),u(this.h,14,O,L)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){var r=n(8),i=n(35).Reporter,o=n(11).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(a,i),t.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(373)},function(e,t,n){var r=n(8),i=n(34),o=i.base,a=i.bignum,s=i.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var o=n;for(n=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var o=0;o<i;o++){r<<=8;var a=e.readUInt8(n);if(e.isError(a))return a;r|=a}return r}e.exports=l,l.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(c,o.Node),c.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},c.prototype._decodeTag=function(e,t,n){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=d(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r,i=d(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=n.decode(e,"der",r);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<r.length/2;o++)i+=String.fromCharCode(r.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,n){for(var r,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,l=i[0]%40;if(r=n?i:[s,l].concat(i.slice(1)),t){var c=t[r.join(" ")];void 0===c&&(c=t[r.join(".")]),void 0!==c&&(r=c)}return r},c.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),l=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,s,l,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var n=e.raw(),r=new a(n);return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(8),i=n(11).Buffer,o=n(34),a=o.base,s=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,a.Node),c.prototype._encodeComposite=function(e,t,n,r){var o,a=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(o=new i(2))[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r]);for(var l=1,c=r.length;c>=256;c>>=8)l++;(o=new i(2+l))[0]=a,o[1]=128|l;c=1+l;for(var u=r.length;u>0;c--,u>>=8)o[c]=255&u;return this._createEncoderBuffer([o,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(r=0;r<e.length;r++){var a=e[r];for(o++;a>=128;a>>=7)o++}var s=new i(o),l=s.length-1;for(r=e.length-1;r>=0;r--){a=e[r];for(s[l--]=127&a;(a>>=7)>0;)s[l--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var o=new i(r);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var a=e;a>=256;a>>=8)r++;for(a=(o=new Array(r)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==i.defaultBuffer[r])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){var r=n(29),i=n(9).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,a=i.alloc(0),s=0;a.length<t;)n=o(s++),a=i.concat([a,r("sha1").update(e).update(n).digest()]);return a.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(12),i=n(9).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){var r=n(415),i=n(271),o=e.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var o=void 0!==e.ArrayBuffer,a=o&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||o&&i("arraybuffer"),t.msstream=!t.fetch&&a&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n(10))},function(e,t,n){(function(e,r,i){var o=n(269),a=n(8),s=n(30),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),o.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){c._destroyed?n():c.push(new r(e))?t():c._resumeFetch=t}))},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(u).catch((function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)}))}catch(e){}}var d=n.body.getReader();!function e(){d.read().then((function(t){if(!c._destroyed){if(t.done)return i.clearTimeout(l),void c.push(null);c.push(new r(t.value)),e()}})).catch((function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)}))}()}else{if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!o.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var f=h.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;n=t.response,e.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==l.LOADING||!n)break;e.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==l.LOADING)break;var c=new i.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(13),n(11).Buffer,n(10))},function(e,t,n){"use strict";var r=n(420),i=n(421);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(422);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===b.substr(0,2);!S||w&&v[w]||(b=b.substr(2),this.slashes=!0)}if(!v[w]&&(S||w&&!g[w])){for(var E,C,T=-1,x=0;x<h.length;x++){-1!==(M=b.indexOf(h[x]))&&(-1===T||M<T)&&(T=M)}-1!==(C=-1===T?b.lastIndexOf("@"):b.lastIndexOf("@",T))&&(E=b.slice(0,C),b=b.slice(C+1),this.auth=decodeURIComponent(E)),T=-1;for(x=0;x<d.length;x++){var M;-1!==(M=b.indexOf(d[x]))&&(-1===T||M<T)&&(T=M)}-1===T&&(T=b.length),this.host=b.slice(0,T),b=b.slice(T),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var P=this.hostname.split(/\./),O=(x=0,P.length);x<O;x++){var L=P[x];if(L&&!L.match(f)){for(var A="",I=0,D=L.length;I<D;I++)L.charCodeAt(I)>127?A+="x":A+=L[I];if(!A.match(f)){var N=P.slice(0,x),R=P.slice(x+1),j=L.match(p);j&&(N.push(j[1]),R.unshift(j[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",Y=this.hostname||"";this.host=Y+B,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])for(x=0,O=u.length;x<O;x++){var F=u[x];if(-1!==b.indexOf(F)){var H=encodeURIComponent(F);H===F&&(H=escape(F)),b=b.split(F).join(H)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var z=b.indexOf("?");if(-1!==z?(this.search=b.substr(z),this.query=b.substr(z+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,z)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var V=this.search||"";this.path=B+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var f=d[h];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,k=w,S=n.pathname&&n.pathname.split("/")||[],E=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===S[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(E)n.hostname=n.host=S.shift(),($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=S.slice(-1)[0],T=(n.host||e.host||S.length>1)&&("."===C||".."===C)||""===C,x=0,M=S.length;M>=0;M--)"."===(C=S[M])?S.splice(M,1):".."===C?(S.splice(M,1),x++):x&&(S.splice(M,1),x--);if(!w&&!k)for(;x--;x)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),T&&"/"!==S.join("/").substr(-1)&&S.push("");var $,P=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(n.hostname=n.host=P?"":S.length?S.shift():"",($=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=$.shift(),n.host=n.hostname=$.shift()));return(w=w||n.host&&S.length)&&!P&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),m=n("6718"),v=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),_=n("241e"),w=n("36c3"),k=n("1bc3"),S=n("aebd"),E=n("a159"),C=n("0395"),T=n("bf0b"),x=n("9aa9"),M=n("d9f6"),$=n("c3a1"),P=T.f,O=M.f,L=C.f,A=r.Symbol,I=r.JSON,D=I&&I.stringify,N=f("_hidden"),R=f("toPrimitive"),j={}.propertyIsEnumerable,B=u("symbol-registry"),Y=u("symbols"),F=u("op-symbols"),H=Object.prototype,U="function"==typeof A&&!!x.f,z=r.QObject,V=!z||!z.prototype||!z.prototype.findChild,q=o&&c((function(){return 7!=E(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(H,t);r&&delete H[t],O(e,t,n),r&&e!==H&&O(H,t,r)}:O,W=function(e){var t=Y[e]=E(A.prototype);return t._k=e,t},G=U&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},K=function(e,t,n){return e===H&&K(F,t,n),y(e),t=k(t,!0),y(n),i(Y,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=E(n,{enumerable:S(0,!1)})):(i(e,N)||O(e,N,S(1,{})),e[N][t]=!0),q(e,t,n)):O(e,t,n)},J=function(e,t){y(e);for(var n,r=v(t=w(t)),i=0,o=r.length;o>i;)K(e,n=r[i++],t[n]);return e},X=function(e){var t=j.call(this,e=k(e,!0));return!(this===H&&i(Y,e)&&!i(F,e))&&(!(t||!i(this,e)||!i(Y,e)||i(this,N)&&this[N][e])||t)},Q=function(e,t){if(e=w(e),t=k(t,!0),e!==H||!i(Y,t)||i(F,t)){var n=P(e,t);return!n||!i(Y,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=L(w(e)),r=[],o=0;n.length>o;)i(Y,t=n[o++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=L(n?F:w(e)),o=[],a=0;r.length>a;)!i(Y,t=r[a++])||n&&!i(H,t)||o.push(Y[t]);return o};U||(s((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(F,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),q(this,e,S(1,n))};return o&&V&&q(H,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),T.f=Q,M.f=K,n("6abf").f=C.f=Z,n("355d").f=X,x.f=ee,o&&!n("b8e3")&&s(H,"propertyIsEnumerable",X,!0),p.f=function(e){return W(f(e))}),a(a.G+a.W+a.F*!U,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var re=$(f.store),ie=0;re.length>ie;)m(re[ie++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=A(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?E(e):J(E(e),t)},defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var oe=c((function(){x.f(1)}));a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return x.f(_(e))}}),I&&a(a.S+a.F*(!U||c((function(){var e=A();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!G(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,D.apply(I,r)}}),A.prototype[R]||n("35e8")(A.prototype,R,A.prototype.valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,v,g){l(n,t,p);var y,b,_,w=function(e){if(!h&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",S="values"==m,E=!1,C=e.prototype,T=C[d]||C["@@iterator"]||m&&C[m],x=T||w(m),M=m?S?w("entries"):x:void 0,$="Array"==t&&C.entries||T;if($&&(_=u($.call(new e)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[d]||a(_,d,f)),S&&T&&"values"!==T.name&&(E=!0,x=function(){return T.call(this)}),r&&!g||!h&&!E&&C[d]||a(C,d,x),s[t]=x,s[k]=f,m)if(y={values:S?x:w("values"),keys:v?x:w("keys"),entries:M},g)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(h||E),t,y);return y}},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},"0750":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"transparent"}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,v,g=o(t),y=i(g),b=r(s,p,3),_=a(y.length),w=0,k=n?f(t,_):l?f(t,0):void 0;_>w;w++)if((h||w in y)&&(v=b(m=y[w],w,g),e))if(n)k[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},1173:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1c15":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t=1)=>{if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)){let n=e.substring(1).split("");3===n.length&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]);const r=`0x${n.join("")}`;return`rgba(${[r>>16&255,r>>8&255,255&r].join(", ")}, ${t})`}throw new Error("Bad Hex")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"20d6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"24c5":function(e,t,n){"use strict";var r,i,o,a,s=n("b8e3"),l=n("e53d"),c=n("d864"),u=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),m=n("a22a"),v=n("f201"),g=n("4178").set,y=n("aba2")(),b=n("656e"),_=n("4439"),w=n("bc13"),k=n("cd78"),S=l.TypeError,E=l.process,C=E&&E.versions,T=C&&C.v8||"",x=l.Promise,M="process"==u(E),$=function(){},P=i=b.f,O=!!function(){try{var e=x.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e($,$)};return(M||"function"==typeof PromiseRejectionEvent)&&e.then($)instanceof t&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},A=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?c(S("Promise-chain cycle")):(o=L(n))?o.call(n,l,c):l(n)):c(r)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&I(e)}))}},I=function(e){g.call(l,(function(){var t,n,r,i=e._v,o=D(e);if(o&&(t=_((function(){M?E.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=M||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){g.call(l,(function(){var t;M?E.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),A(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=L(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(j,r,1),c(R,r,1))}catch(e){R.call(r,e)}})):(n._v=e,n._s=1,A(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};O||(x=function(e){p(this,x,"Promise","_h"),f(e),r.call(this);try{e(c(j,this,1),c(R,this,1))}catch(e){R.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("5c95")(x.prototype,{then:function(e,t){var n=P(v(this,x));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=M?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(j,e,1),this.reject=c(R,e,1)},b.f=P=function(e){return e===x||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!O,{Promise:x}),n("45f2")(x,"Promise"),n("4c95")("Promise"),a=n("584a").Promise,d(d.S+d.F*!O,"Promise",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!O),"Promise",{resolve:function(e){return k(s&&this===a?x:this,e)}}),d(d.S+d.F*!(O&&n("4ee1")((function(e){x.all(e).catch($)}))),"Promise",{all:function(e){var t=this,n=P(t),r=n.resolve,i=n.reject,o=_((function(){var n=[],o=0,a=1;m(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=P(t),r=n.reject,i=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"252c":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=void 0;function i(){i.init||(i.init=!0,r=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;i(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",r&&this.$el.appendChild(t),t.data="about:blank",r||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};var a={version:"0.4.5",install:function(e){e.component("resize-observer",o),e.component("ResizeObserver",o)}},s=null;"undefined"!=typeof window?s=window.Vue:void 0!==e&&(s=e.Vue),s&&s.use(a)}).call(this,n("c8ba"))},"25eb":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"292a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{if(e.length<7)throw new Error(`[shade-color] color must be formatted "#FFFFFF" not like this "#FFF" - (${e})`);if(!e.includes("#"))throw new Error(`[shade-color] color must be an HEX - ex: "#FFFFFF" - (${e})`);let n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return n=parseInt(String(n*(100+t)/100)),r=parseInt(String(r*(100+t)/100)),i=parseInt(String(i*(100+t)/100)),n=n<255?n:255,r=r<255?r:255,i=i<255?i:255,"#"+(1===n.toString(16).length?"0"+n.toString(16):n.toString(16))+(1===r.toString(16).length?"0"+r.toString(16):r.toString(16))+(1===i.toString(16).length?"0"+i.toString(16):i.toString(16))}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l=function(){var e,t=n("230e")("iframe"),r=o.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,v,g){l(n,t,p);var y,b,_,w=function(e){if(!h&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",S="values"==m,E=!1,C=e.prototype,T=C[d]||C["@@iterator"]||m&&C[m],x=T||w(m),M=m?S?w("entries"):x:void 0,$="Array"==t&&C.entries||T;if($&&(_=u($.call(new e)))!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[d]||a(_,d,f)),S&&T&&"values"!==T.name&&(E=!0,x=function(){return T.call(this)}),r&&!g||!h&&!E&&C[d]||a(C,d,x),s[t]=x,s[k]=f,m)if(y={values:S?x:w("values"),keys:v?x:w("keys"),entries:M},g)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(h||E),t,y);return y}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},4178:function(e,t,n){var r,i,o,a=n("d864"),s=n("3024"),l=n("32fc"),c=n("1ec9"),u=n("e53d"),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},f=function(e){delete g[e]},"process"==n("6b4c")(d)?r=function(e){d.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45d0":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("0750"));t.default=e=>{if(!e)throw new Error("is-color-name: No color provided");return Object.keys(i.default).includes(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},"481b":function(e,t){e.exports={}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),a=n("8e60"),s=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),a=n("b0dc"),s=n("3702"),l=n("b447"),c=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(h);if(v&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(t=l(h.length));t>g;g++)c(n,g,v?m(h[g],g):h[g]);else for(d=y.call(h),n=new f;!(i=d.next()).done;g++)c(n,g,v?a(d,m,[i.value,g],!0):i.value);return n.length=g,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,h,f=e&l.F,p=e&l.G,m=e&l.S,v=e&l.P,g=e&l.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=p?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});for(c in p&&(n=t),n)d=((u=!f&&y&&void 0!==y[c])?y:n)[c],h=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),b[c]!=d&&o(b,c,h),v&&_[c]!=d&&(_[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},6038:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgba=t.colorNameToHex=t.isColorName=t.shadeColor=void 0;const i=r(n("292a"));t.shadeColor=i.default;const o=r(n("45d0"));t.isColorName=o.default;const a=r(n("1c15"));t.hexToRgba=a.default;const s=r(n("c3b0"));t.colorNameToHex=s.default},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l=function(e,t,n){var c,u,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,v=e&l.B,g=e&l.W,y=f?i:i[t]||(i[t]={}),b=y.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!h&&_&&void 0!==_[c])&&s(y,c)||(d=u?_[c]:n[c],y[c]=f&&"function"!=typeof _[c]?n[c]:v&&u?o(d,r):g&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&a(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),a=/./.toString,s=function(e){n("2aba")(RegExp.prototype,"toString",e,!0)};n("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=r[c],d=u&&u.prototype;d&&!d[a]&&i(d,a,c),o[c]=o.Array}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("find")},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(e,t,n){e.exports=n("696e")},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n("9e1e")&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},"7f9a":function(e,t,n){},8378:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("454f")},"85fe":function(e,t,n){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return c}));var a=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}var t,n,r;return t=e,(n=[{key:"createObserver",value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){var r;if(this.options="function"==typeof(r=e)?{callback:r}:r,this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=function(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];if(i=c,!n||s!==r){var d=a.leading;"function"==typeof d&&(d=d(s,r)),n&&s===r||!d||e.apply(void 0,[s].concat(o(i))),r=s,clearTimeout(n),n=setTimeout((function(){e.apply(void 0,[s].concat(o(i))),n=0}),t)}};return s._clear=function(){clearTimeout(n),n=null},s}(this.callback,this.options.throttle,{leading:function(e){return"both"===i||"visible"===i&&e||"hidden"===i&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(e){var t=e[0];if(e.length>1){var r=e.find((function(e){return e.isIntersecting}));r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}}),this.options.intersection),t.context.$nextTick((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}])&&i(t.prototype,n),r&&i(t,r),e}();function s(e,t,n){var r=t.value;if(r)if("undefined"==typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new a(e,r,n);e._vue_visibilityState=i}}function l(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var c={bind:s,update:function(e,t,n){var i=t.value;if(!function e(t,n){if(t===n)return!0;if("object"===r(t)){for(var i in t)if(!e(t[i],n[i]))return!1;return!0}return!1}(i,t.oldValue)){var o=e._vue_visibilityState;i?o?o.createObserver(i,n):s(e,{value:i},n):l(e)}},unbind:l};var u={version:"0.4.6",install:function(e){e.directive("observe-visibility",c)}},d=null;"undefined"!=typeof window?d=window.Vue:void 0!==e&&(d=e.Vue),d&&d.use(u)}).call(this,n("c8ba"))},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},8875:function(e,t,n){var r,i,o;"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){return function(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(c){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(c.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(c.stack),i=r&&r[1]||!1,o=r&&r[2]||!1,a=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");i===a&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(o-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<s.length;l++){if("interactive"===s[l].readyState)return s[l];if(s[l].src===i)return s[l];if(i===a&&s[l].innerHTML&&s[l].innerHTML.trim()===n)return s[l]}return null}}})?r.apply(t,i):r)||(e.exports=o)},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(e,t){e.exports=n(5)},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=l(r,t=c[d++]))&&s(u,t,n);return u}})},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9138:function(e,t,n){e.exports=n("35e8")},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},"96cf":function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function d(){}function h(){}function f(){}var p={};s(p,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==t&&n.call(v,i)&&(p=v);var g=f.prototype=d.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=f,s(g,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(g),s(g,a,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l=function(){var e,t=n("1ec9")("iframe"),r=o.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),a=n("e4ae"),s=n("b447"),l=n("7cd6"),c={},u={};(t=e.exports=function(e,t,n,d,h){var f,p,m,v,g=h?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(f=s(e.length);f>b;b++)if((v=t?y(a(p=e[b])[0],p[1]):y(e[b]))===c||v===u)return v}else for(m=g.call(e);!(p=m.next()).done;)if((v=i(m,y,p.value,t))===c||v===u)return v}).BREAK=c,t.RETURN=u},a745:function(e,t,n){e.exports=n("f410")},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var i={},s=o((function(){return!!a[e]()||"​…"!="​…"[e]()})),l=i[e]=s?t(d):a[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},d=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("6b4c")(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(l&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={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(f),m=0;m<p.length;m++){var v,g=p[m],y=f[g],b=a[g],_=b&&b.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,g),l[g]=h,y))for(v in r)_[v]||o(_,v,r[v],!0)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},bc13:function(e,t,n){var r=n("e53d").navigator;e.exports=r&&r.userAgent||""},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;t.f=n("8e60")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c3b0:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("0750"));t.default=e=>{if(!e)throw new Error("color-name-to-hex: No color name provided");const t=i.default[e.toLowerCase()];if(void 0!==t)return t;throw new Error(`No hex found for ${e}`)}},c50b:function(e,t,n){},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),l=n("79e5"),c=n("9093").f,u=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f=r.Number,p=f,m=f.prototype,v="Number"==o(n("2aeb")(m)),g="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=g?t.trim():h(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,l=t.slice(2),c=0,u=l.length;c<u;c++)if((a=l.charCodeAt(c))<48||a>i)return NaN;return parseInt(l,r)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(v?l((function(){m.valueOf.call(n)})):"Number"!=o(n))?a(new p(y(t)),n,f):y(t)};for(var b,_=n("9e1e")?c(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(","),w=0;_.length>w;w++)i(p,b=_[w])&&!i(f,b)&&d(f,b,u(p,b));f.prototype=m,m.constructor=f,n("2aba")(r,"Number",f)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),o=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d391:function(e){e.exports=JSON.parse('{"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"43012345","BH":"36001234","BI":"79561234","BJ":"90011234","BL":"690001234","BM":"4413701234","BN":"7123456","BO":"71234567","BQ":"3181234","BR":"11961234567","BS":"2423591234","BT":"17123456","BW":"71123456","BY":"294911911","BZ":"6221234","CA":"5062345678","CC":"412345678","CD":"991234567","CF":"70012345","CG":"061234567","CH":"781234567","CI":"0123456789","CK":"71234","CL":"221234567","CM":"671234567","CN":"13123456789","CO":"3211234567","CR":"83123456","CU":"51234567","CV":"9911234","CW":"95181234","CX":"412345678","CY":"96123456","CZ":"601123456","DE":"15123456789","DJ":"77831001","DK":"32123456","DM":"7672251234","DO":"8092345678","DZ":"551234567","EC":"991234567","EE":"51234567","EG":"1001234567","EH":"650123456","ER":"7123456","ES":"612345678","ET":"911234567","FI":"412345678","FJ":"7012345","FK":"51234","FM":"3501234","FO":"211234","FR":"612345678","GA":"06031234","GB":"7400123456","GD":"4734031234","GE":"555123456","GF":"694201234","GG":"7781123456","GH":"231234567","GI":"57123456","GL":"221234","GM":"3012345","GN":"601123456","GP":"690001234","GQ":"222123456","GR":"6912345678","GT":"51234567","GU":"6713001234","GW":"955012345","GY":"6091234","HK":"51234567","HN":"91234567","HR":"921234567","HT":"34101234","HU":"201234567","ID":"812345678","IE":"850123456","IL":"502345678","IM":"7924123456","IN":"8123456789","IO":"3801234","IQ":"7912345678","IR":"9123456789","IS":"6111234","IT":"3123456789","JE":"7797712345","JM":"8762101234","JO":"790123456","JP":"9012345678","KE":"712123456","KG":"700123456","KH":"91234567","KI":"72001234","KM":"3212345","KN":"8697652917","KP":"1921234567","KR":"1020000000","KW":"50012345","KY":"3453231234","KZ":"7710009998","LA":"2023123456","LB":"71123456","LC":"7582845678","LI":"660234567","LK":"712345678","LR":"770123456","LS":"50123456","LT":"61234567","LU":"628123456","LV":"21234567","LY":"912345678","MA":"650123456","MC":"612345678","MD":"62112345","ME":"67622901","MF":"690001234","MG":"321234567","MH":"2351234","MK":"72345678","ML":"65012345","MM":"92123456","MN":"88123456","MO":"66123456","MP":"6702345678","MQ":"696201234","MR":"22123456","MS":"6644923456","MT":"96961234","MU":"52512345","MV":"7712345","MW":"991234567","MX":"12221234567","MY":"123456789","MZ":"821234567","NA":"811234567","NC":"751234","NE":"93123456","NF":"381234","NG":"8021234567","NI":"81234567","NL":"612345678","NO":"40612345","NP":"9841234567","NR":"5551234","NU":"8884012","NZ":"211234567","OM":"92123456","PA":"61234567","PE":"912345678","PF":"87123456","PG":"70123456","PH":"9051234567","PK":"3012345678","PL":"512345678","PM":"551234","PR":"7872345678","PS":"599123456","PT":"912345678","PW":"6201234","PY":"961456789","QA":"33123456","RE":"692123456","RO":"712034567","RS":"601234567","RU":"9123456789","RW":"720123456","SA":"512345678","SB":"7421234","SC":"2510123","SD":"911231234","SE":"701234567","SG":"81234567","SH":"51234","SI":"31234567","SJ":"41234567","SK":"912123456","SL":"25123456","SM":"66661212","SN":"701234567","SO":"71123456","SR":"7412345","SS":"977123456","ST":"9812345","SV":"70123456","SX":"7215205678","SY":"944567890","SZ":"76123456","TA":"8999","TC":"6492311234","TD":"63012345","TG":"90112345","TH":"812345678","TJ":"917123456","TK":"7290","TL":"77212345","TM":"66123456","TN":"20123456","TO":"7715123","TR":"5012345678","TT":"8682911234","TV":"901234","TW":"912345678","TZ":"621234567","UA":"501234567","UG":"712345678","US":"2015550123","UY":"94231234","UZ":"912345678","VA":"3123456789","VC":"7844301234","VE":"4121234567","VG":"2843001234","VI":"3406421234","VN":"912345678","VU":"5912345","WF":"821234","WS":"7212345","XK":"43201234","YE":"712345678","YT":"639012345","ZA":"711234567","ZM":"955123456","ZW":"712345678"}')},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d499:function(e,t,n){"use strict";n("7f9a")},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},db06:function(e,t,n){},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e214:function(e,t,n){"use strict";n("db06")},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e508:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r=n("252c"),i=n("85fe"),o=n("ed83"),a=n.n(o),s=(n("8bbf"),{itemsLimit:1e3});function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var p={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}}};function m(){return this.items.length&&"object"!==l(this.items[0])}var v=!1;if("undefined"!=typeof window){v=!1;try{var g=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("test",null,g)}catch(e){}}var y=0;function b(e,t,n,r,i,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),o?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=d):t&&(d=a?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}const _={name:"RecycleScroller",components:{ResizeObserver:r.a},directives:{ObserveVisibility:i.a},props:d({},p,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(null===this.itemSize){for(var e,t={"-1":{accumulator:0}},n=this.items,r=this.sizeField,i=this.minItemSize,o=1e4,a=0,s=0,l=n.length;s<l;s++)(e=n[s][r]||i)<o&&(o=e),a+=e,t[s]={accumulator:a,size:e};return this.$_computedMinItemSize=o,t}return[]},simpleArray:m},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var e=this;this.applyPageMode(),this.$nextTick((function(){e.$_prerender=!1,e.updateVisibleItems(!0),e.ready=!0}))},beforeDestroy:function(){this.removeListeners()},methods:{addView:function(e,t,n,r,i){var o={item:n,position:0},a={id:y++,index:t,used:!0,key:r,type:i};return Object.defineProperty(o,"nr",{configurable:!1,value:a}),e.push(o),o},unuseView:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(e){var t=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame((function(){t.$_scrollDirty=!1,t.updateVisibleItems(!1,!0).continuous||(clearTimeout(t.$_refreshTimout),t.$_refreshTimout=setTimeout(t.handleScroll,100))})))},handleVisibilityChange:function(e,t){var n=this;this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame((function(){n.updateVisibleItems(!1)}))):this.$emit("hidden"))},updateVisibleItems:function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.itemSize,l=this.$_computedMinItemSize,c=this.typeField,u=this.simpleArray?null:this.keyField,d=this.items,h=d.length,f=this.sizes,p=this.$_views,m=this.$_unusedViews,v=this.pool;if(h)if(this.$_prerender)t=0,n=this.prerender,r=null;else{var g=this.getScroll();if(o){var y=g.start-this.$_lastUpdateScrollPosition;if(y<0&&(y=-y),null===a&&y<l||y<a)return{continuous:!0}}this.$_lastUpdateScrollPosition=g.start;var b=this.buffer;if(g.start-=b,g.end+=b,null===a){var _,w=0,k=h-1,S=~~(h/2);do{_=S,f[S].accumulator<g.start?w=S:S<h-1&&f[S+1].accumulator>g.start&&(k=S),S=~~((w+k)/2)}while(S!==_);for(S<0&&(S=0),t=S,r=f[h-1].accumulator,n=S;n<h&&f[n].accumulator<g.end;n++);-1===n?n=d.length-1:++n>h&&(n=h)}else(t=~~(g.start/a))<0&&(t=0),(n=Math.ceil(g.end/a))>h&&(n=h),r=h*a}else t=n=r=0;n-t>s.itemsLimit&&this.itemsLimitError(),this.totalSize=r;var E=t<=this.$_endIndex&&n>=this.$_startIndex;if(this.$_continuous!==E){if(E){p.clear(),m.clear();for(var C=0,T=v.length;C<T;C++)i=v[C],this.unuseView(i)}this.$_continuous=E}else if(E)for(var x=0,M=v.length;x<M;x++)(i=v[x]).nr.used&&(e&&(i.nr.index=d.findIndex((function(e){return u?e[u]===i.item[u]:e===i.item}))),(-1===i.nr.index||i.nr.index<t||i.nr.index>=n)&&this.unuseView(i));for(var $,P,O,L,A=E?null:new Map,I=t;I<n;I++){$=d[I];var D=u?$[u]:$;if(null==D)throw new Error("Key is ".concat(D," on item (keyField is '").concat(u,"')"));i=p.get(D),a||f[I].size?(i?(i.nr.used=!0,i.item=$):(P=$[c],O=m.get(P),E?O&&O.length?((i=O.pop()).item=$,i.nr.used=!0,i.nr.index=I,i.nr.key=D,i.nr.type=P):i=this.addView(v,I,$,D,P):(L=A.get(P)||0,(!O||L>=O.length)&&(i=this.addView(v,I,$,D,P),this.unuseView(i,!0),O=m.get(P)),(i=O[L]).item=$,i.nr.used=!0,i.nr.index=I,i.nr.key=D,i.nr.type=P,A.set(P,L+1),L++),p.set(D,i)),i.position=null===a?f[I-1].accumulator:I*a):i&&this.unuseView(i)}return this.$_startIndex=t,this.$_endIndex=n,this.emitUpdate&&this.$emit("update",t,n),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:E}},getListenerTarget:function(){var e=a()(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll:function(){var e,t=this.$el,n="vertical"===this.direction;if(this.pageMode){var r=t.getBoundingClientRect(),i=n?r.height:r.width,o=-(n?r.top:r.left),a=n?window.innerHeight:window.innerWidth;o<0&&(a+=o,o=0),o+a>i&&(a=i-o),e={start:o,end:o+a}}else e=n?{start:t.scrollTop,end:t.scrollTop+t.clientHeight}:{start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return e},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!v&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(e){var t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition:function(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError:function(){var e=this;throw setTimeout((function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",e.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")})),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort((function(e,t){return e.nr.index-t.nr.index}))}}};var w=function(){var e,t,n=this,r=n.$createElement,i=n._self._c||r;return i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:n.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(e={ready:n.ready,"page-mode":n.pageMode},e["direction-"+n.direction]=!0,e),on:{"&scroll":function(e){return n.handleScroll(e)}}},[n.$slots.before?i("div",{staticClass:"vue-recycle-scroller__slot"},[n._t("before")],2):n._e(),n._v(" "),i("div",{ref:"wrapper",staticClass:"vue-recycle-scroller__item-wrapper",style:(t={},t["vertical"===n.direction?"minHeight":"minWidth"]=n.totalSize+"px",t)},n._l(n.pool,(function(e){return i("div",{key:e.nr.id,staticClass:"vue-recycle-scroller__item-view",class:{hover:n.hoverKey===e.nr.key},style:n.ready?{transform:"translate"+("vertical"===n.direction?"Y":"X")+"("+e.position+"px)"}:null,on:{mouseenter:function(t){n.hoverKey=e.nr.key},mouseleave:function(e){n.hoverKey=null}}},[n._t("default",null,{item:e.item,index:e.nr.index,active:e.nr.used})],2)})),0),n._v(" "),n.$slots.after?i("div",{staticClass:"vue-recycle-scroller__slot"},[n._t("after")],2):n._e(),n._v(" "),i("ResizeObserver",{on:{notify:n.handleResize}})],1)};w._withStripped=!0;const k=b({render:w,staticRenderFns:[]},void 0,_,void 0,!1,void 0,!1,void 0,void 0,void 0);const S={name:"DynamicScroller",components:{RecycleScroller:k},inheritAttrs:!1,provide:function(){return"undefined"!=typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver((function(e){var t,n=f(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.target){var i=new CustomEvent("resize",{detail:{contentRect:r.contentRect}});r.target.dispatchEvent(i)}}}catch(e){n.e(e)}finally{n.f()}}))),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},props:d({},p,{minItemSize:{type:[Number,String],required:!0}}),data:function(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:m,itemsWithSize:function(){for(var e=[],t=this.items,n=this.keyField,r=this.simpleArray,i=this.vscrollData.sizes,o=0;o<t.length;o++){var a=t[o],s=r?o:a[n],l=i[s];void 0!==l||this.$_undefinedMap[s]||(l=0),e.push({item:a,id:s,size:l})}return e},listeners:function(){var e={};for(var t in this.$listeners)"resize"!==t&&"visible"!==t&&(e[t]=this.$listeners[t]);return e}},watch:{items:function(){this.forceUpdate(!1)},simpleArray:{handler:function(e){this.vscrollData.simpleArray=e},immediate:!0},direction:function(e){this.forceUpdate(!0)}},created:function(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated:function(){this.vscrollData.active=!0},deactivated:function(){this.vscrollData.active=!1},methods:{onScrollerResize:function(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible:function(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(e||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem:function(e){var t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this.simpleArray?null!=t?t:this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom:function(){var e=this;if(!this.$_scrollingToBottom){this.$_scrollingToBottom=!0;var t=this.$el;this.$nextTick((function(){t.scrollTop=t.scrollHeight+5e3;requestAnimationFrame((function n(){t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame((function(){t.scrollTop=t.scrollHeight+5e3,0===e.$_undefinedSizes?e.$_scrollingToBottom=!1:requestAnimationFrame(n)}))}))}))}}}};var E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("RecycleScroller",e._g(e._b({ref:"scroller",attrs:{items:e.itemsWithSize,"min-item-size":e.minItemSize,direction:e.direction,"key-field":"id"},on:{resize:e.onScrollerResize,visible:e.onScrollerVisible},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.item,r=t.index,i=t.active;return[e._t("default",null,null,{item:n.item,index:r,active:i,itemWithSize:n})]}}],null,!0)},"RecycleScroller",e.$attrs,!1),e.listeners),[e._v(" "),n("template",{slot:"before"},[e._t("before")],2),e._v(" "),n("template",{slot:"after"},[e._t("after")],2)],2)};E._withStripped=!0;const C=b({render:E,staticRenderFns:[]},void 0,S,void 0,!1,void 0,!1,void 0,void 0,void 0);const T=b({},void 0,{name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id:function(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size:function(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive:function(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id:function(){this.size||this.onDataUpdate()},finalActive:function(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created:function(){var e=this;if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){var t=function(t){e.$watch((function(){return e.sizeDependencies[t]}),e.onDataUpdate)};for(var n in this.sizeDependencies)t(n);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted:function(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy:function(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize:function(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData:function(){var e=this;this.watchData?this.$_watchData=this.$watch("data",(function(){e.onDataUpdate()}),{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate:function(e){var t=e.force;!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!t&&this.size||this.updateSize()},onDataUpdate:function(){this.updateSize()},computeSize:function(e){var t=this;this.$nextTick((function(){if(t.id===e){var n=t.$el.offsetWidth,r=t.$el.offsetHeight;t.applySize(n,r)}t.$_pendingSizeUpdate=null}))},applySize:function(e,t){var n=Math.round("vertical"===this.vscrollParent.direction?t:e);n&&this.size!==n&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,n),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize:function(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize:function(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize:function(e){var t=e.detail.contentRect,n=t.width,r=t.height;this.applySize(n,r)}},render:function(e){return e(this.tag,this.$slots.default)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);var x={version:"1.0.10",install:function(e,t){var n=Object.assign({},{installComponents:!0,componentsPrefix:""},t);for(var r in n)void 0!==n[r]&&(s[r]=n[r]);n.installComponents&&function(e,t){e.component("".concat(t,"recycle-scroller"),k),e.component("".concat(t,"RecycleScroller"),k),e.component("".concat(t,"dynamic-scroller"),C),e.component("".concat(t,"DynamicScroller"),C),e.component("".concat(t,"dynamic-scroller-item"),T),e.component("".concat(t,"DynamicScrollerItem"),T)}(e,n.componentsPrefix)}},M=null;"undefined"!=typeof window?M=window.Vue:void 0!==e&&(M=e.Vue),M&&M.use(x)}).call(this,n("c8ba"))},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},e71e:function(e,t,n){"use strict";n("c50b")},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!o(e,r)&&u(e),e}}},ed83:function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){var e=/(auto|scroll)/,t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(t){return e.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),i=0;i<n.length;i+=1)if(r(n[i]))return n[i];return document.scrollingElement||document.documentElement}}})?r.apply(t,i):r)||(e.exports=o)},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="".startsWith;r(r.P+r.F*n("5147")("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("8e6e"),n("ac6a"),n("cadf"),n("456d"),n("6b54"),n("96cf");var a=n("795b"),s=n.n(a);function l(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void n(e)}l.done?t(c):s.a.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new s.a((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)}))}}var u=n("85f2"),d=n.n(u);function h(e,t,n){return t in e?d()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("c5f6"),n("6762"),n("2fdb");var f=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]],p=f.map((function(e){return e[1].toUpperCase()})),m=f.map((function(e){return{name:e[0],iso2:e[1].toUpperCase(),dialCode:e[2],priority:e[3]||0,areaCodes:e[4]||null}})),v=n("d391"),g={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-7]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0(4(?:[14]4|56)|[579])?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-289]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[89]|389)","5(?:29[89]|389)0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","976\\d{6}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-5]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|5[25]|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function y(e,t){var n=Array.prototype.slice.call(t);return n.push(g),e.apply(this,n)}var b=function(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0};function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var E=/^\d+$/,C=function(){function e(t){w(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!O(e)||!O(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(O(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+L(e)+": "+e,"."))}(t),this.metadata=t,I.call(this,t)}return S(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&E.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new T(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new T(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),T=function(){function e(t,n){w(this,e),this.globalMetadataObject=n,this.metadata=t,I.call(this,n.metadata)}return S(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new x(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&P(this.types(),e))return new $(P(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?" ext. ":this.metadata[13]||" ext. "}}]),e}(),x=function(){function e(t,n){w(this,e),this._format=t,this.metadata=n}return S(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||M.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),M=/^\(?\$1\)?$/,$=function(){function e(t,n){w(this,e),this.type=t,this.metadata=n}return S(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function P(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var O=function(e){return"object"===_(e)},L=function(e){return _(e)};function A(e,t){if((t=new C(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function I(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===b(t,"1.2.0")?this.v2=!0:-1===b(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function D(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){return function e(t,n,r){var i=r.type(n),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===n){if(!r.type("FIXED_LINE"))return e(t,"MOBILE",r);var a=r.type("MOBILE");a&&(o=function(e,t){for(var n,r=e.slice(),i=D(t);!(n=i()).done;){var o=n.value;e.indexOf(o)<0&&r.push(o)}return r.sort((function(e,t){return e-t}))}(o,a.possibleLengths()))}else if(n&&!i)return"INVALID_LENGTH";var s=t.length,l=o[0];if(l===s)return"IS_POSSIBLE";if(l>s)return"TOO_SHORT";if(o[o.length-1]<s)return"TOO_LONG";return o.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t)}function j(e,t){switch(R(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function B(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function U(e,t,n){if(t=t||{},e.country){(n=new C(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(B(r,n.nationalNumberPattern())){if(z(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?z(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var i,o=Y(H);!(i=o()).done;){var a=i.value;if(z(r,a,n))return a}}}}function z(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&B(e,t.pattern()))}var V="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~");function q(e){return e.replace(new RegExp("[".concat(V,"]+"),"g")," ").trim()}var W=/(\$\d)/;function G(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,o=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(W,t.nationalPrefixFormattingRule()):t.format()));return r?q(o):o}var K=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;var J=function(e){return"([".concat("0-90-9٠-٩۰-۹","]{1,").concat(e,"})")};function X(e){return";ext="+J("20")+"|"+("[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*"+J("20")+"#?")+"|"+("[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*"+J("9")+"#?")+"|"+("[- ]+"+J("6")+"#")+"|"+("[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*"+J("15")+"#?")+"|"+("[  \\t]*(?:,)+[:\\..]?[  \\t,-]*"+J("9")+"#?")}var Q="[++]{0,1}(?:["+V+"]*[0-90-9٠-٩۰-۹]){3,}["+V+"0-90-9٠-٩۰-۹]*",Z=new RegExp("^[++]{0,1}(?:["+V+"]*[0-90-9٠-٩۰-۹]){1,2}$","i"),ee=Q+"(?:"+X()+")?",te=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^"+ee+"$","i");function ne(e){return e.length>=2&&te.test(e)}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||ie(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ae(e){for(var t,n,r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=ie(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}((e=e.replace(/^tel:/,"tel=")).split(";"));!(r=i()).done;){var o=re(r.value.split("="),2),a=o[0],s=o[1];switch(a){case"tel":t=s;break;case"ext":n=s;break;case"phone-context":"+"===s[0]&&(t=s+t)}}if(!ne(t))return{};var l={number:t};return n&&(l.ext=n),l}function se(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return le(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function fe(e,t,n,r){if(n=n?ue(ue({},he),n):he,r=new C(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i,o=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return a?me(i=pe(a,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return a?(i=pe(a,null,"INTERNATIONAL",r,n),me(i="+".concat(o," ").concat(i),e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(o).concat(a),ext:e.ext});case"IDD":if(!n.fromCountry)return;return me(function(e,t,n,r,i){if(A(r,i.metadata)===n){var o=pe(e,t,"NATIONAL",i);return"1"===n?n+" "+o:o}var a=function(e,t,n){var r=new C(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():K.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,i.metadata);if(a)return"".concat(a," ").concat(n," ").concat(pe(e,null,"INTERNATIONAL",i))}(a,e.carrierCode,o,n.fromCountry,r),e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function pe(e,t,n,r,i){var o=function(e,t){for(var n,r=se(e);!(n=r()).done;){var i=n.value;if(i.leadingDigitsPatterns().length>0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(0!==t.search(o))continue}if(B(t,i.pattern()))return i}}(r.formats(),e);return o?G(e,o,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function me(e,t,n,r){return t?r(e,t,n):e}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _e=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var i=new C(r);we(t)&&(this.country=t,i.country(t),t=i.countryCallingCode()),this.countryCallingCode=t,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.metadata=r}var t,n,r;return t=e,(n=[{key:"setExt",value:function(e){this.ext=e}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new C(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return j(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.metadata)}},{key:"isValid",value:function(){return e=this,t={v2:!0},n=this.metadata,t=t||{},n=new C(n),!!e.country&&(n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==U(e,t,n.metadata):B(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern()));var e,t,n}},{key:"isNonGeographic",value:function(){return new C(this.metadata).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return U(this,{v2:!0},this.metadata)}},{key:"format",value:function(e,t){return fe(this,e,t?ge(ge({},t),{},{v2:!0}):{v2:!0},this.metadata)}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&be(t.prototype,n),r&&be(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),we=function(e){return/^[A-Z]{2}$/.test(e)};function ke(e,t,n){if(t[e])return new _e(e,t[e],n)}function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Te(e)}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(e){var t="function"==typeof Map?new Map:void 0;return(xe=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Me(e,arguments,Oe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pe(r,e)})(e)}function Me(e,t,n){return(Me=$e()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Pe(i,n.prototype),i}).apply(null,arguments)}function $e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(s,e);var t,n,r,i,o,a=(t=s,n=$e(),function(){var e,r=Oe(t);if(n){var i=Oe(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Ce(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),t=a.call(this,e),Object.setPrototypeOf(Te(t),s.prototype),t.name=t.constructor.name,t}return r=s,i&&Ee(r.prototype,i),o&&Ee(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}(xe(Error)),Ae=new RegExp("(?:"+X()+")$","i");function Ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return De(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ne={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Re(e){return Ne[e]}function je(e){for(var t,n="",r=Ie(e.split(""));!(t=r()).done;){var i=Re(t.value);i&&(n+=i)}return n}function Be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fe(e){for(var t,n="",r=Be(e.split(""));!(t=r()).done;){n+=He(t.value,n)||""}return n}function He(e,t){if("+"===e){if(t)return;return"+"}return Re(e)}var Ue=new RegExp("([0-90-9٠-٩۰-۹])");function ze(e,t,n,r){if(t){var i=new C(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(Ue);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}function Ve(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var c=r[0];i=e.slice(c.length),l&&(o=r[1])}if(l){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}function qe(e,t){var n=Ve(e,t),r=n.carrierCode,i=n.nationalNumber;if(i!==e){if(!function(e,t,n){if(B(e,n.nationalNumberPattern())&&!B(t,n.nationalNumberPattern()))return!1;return!0}(e,i,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(R(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(i,t))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:r}}function We(e,t,n,r){var i=t?A(t,r):n;if(0===e.indexOf(i)){(r=new C(r)).selectNumberingPlan(t,n);var o=e.slice(i.length),a=qe(o,r).nationalNumber,s=qe(e,r).nationalNumber;if(!B(s,r.nationalNumberPattern())&&B(a,r.nationalNumberPattern())||"TOO_LONG"===R(s,r))return{countryCallingCode:i,number:o}}return{number:e}}function Ge(e,t,n,r){if(!e)return{};if("+"!==e[0]){var i=ze(e,t,n,r);if(!i||i===e){if(t||n){var o=We(e,t,n,r),a=o.countryCallingCode,s=o.number;if(a)return{countryCallingCode:a,number:s}}return{number:e}}e="+"+i}if("0"===e[1])return{};r=new C(r);for(var l=2;l-1<=3&&l<=e.length;){var c=e.slice(1,l);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCode:c,number:e.slice(l)};l++}return{}}function Ke(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Je(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r)return 1===r.length?r[0]:function(e,t,n){n=new C(n);for(var r,i=Ke(e);!(r=i()).done;){var o=r.value;if(n.country(o),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return o}else if(U({phone:t,country:o},void 0,n.metadata))return o}}(r,t,n.metadata)}var Qe=new RegExp("[++0-90-9٠-٩۰-۹]"),Ze=new RegExp("[^0-90-9٠-٩۰-۹#]+$");function et(e,t,n){if(t=t||{},n=new C(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Le("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){if(e&&0===e.indexOf("tel:"))return ae(e);var r=function(e,t,n){if(!e)return;if(e.length>250){if(n)throw new Le("TOO_LONG");return}if(!1===t)return e;var r=e.search(Qe);if(r<0)return;return e.slice(r).replace(Ze,"")}(e,n,t);if(!r)return{};if(!ne(r))return function(e){return Z.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(Ae);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Ae),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);if(i.ext)return i;return{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext,a=r.error;if(!i){if(t.v2){if("TOO_SHORT"===a)throw new Le("TOO_SHORT");throw new Le("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var i,o=Ge(Fe(e),t,n,r.metadata),a=o.countryCallingCode,s=o.number;if(a)r.selectNumberingPlan(a);else{if(!s||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),a=n||A(t,r.metadata)}if(!s)return{countryCallingCode:a};var l=qe(Fe(s),r),c=l.nationalNumber,u=l.carrierCode,d=Xe(a,c,r);d&&(i=d,"001"===d||r.country(i));return{country:i,countryCallingCode:a,nationalNumber:c,carrierCode:u}}(i,t.defaultCountry,t.defaultCallingCode,n),l=s.country,c=s.nationalNumber,u=s.countryCallingCode,d=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Le("INVALID_COUNTRY");return{}}if(!c||c.length<2){if(t.v2)throw new Le("TOO_SHORT");return{}}if(c.length>17){if(t.v2)throw new Le("TOO_LONG");return{}}if(t.v2){var h=new _e(u,c,n.metadata);return l&&(h.country=l),d&&(h.carrierCode=d),o&&(h.ext=o),h}var f=!!(t.extended?n.hasSelectedNumberingPlan():l)&&B(c,n.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:u,carrierCode:d,valid:f,possible:!!f||!(!0!==t.extended||!n.possibleLengths()||!j(c,n)),phone:c,ext:o}:f?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(l,c,o):{}}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t,n){return et(e,nt(nt({},t),{},{v2:!0}),n)}function ot(e){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ct(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ut(e){var t,n,r,i=lt(Array.prototype.slice.call(e),4),o=i[0],a=i[1],s=i[2],l=i[3];if("string"!=typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!dt(a))throw new Error("Invalid second argument: ".concat(a));s?(n=a,r=s):r=a}else l?(n=s,r=l):(n=void 0,r=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}var dt=function(e){return"object"===ot(e)};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t,n){t&&t.defaultCountry&&!function(e,t){return void 0!==t.countries[e]}(t.defaultCountry,n)&&(t=ft(ft({},t),{},{defaultCountry:void 0}));try{return it(e,t,n)}catch(e){if(!(e instanceof Le))throw e}}function vt(){var e=ut(arguments),t=e.text,n=e.options,r=e.metadata;return mt(t,n,r)}function gt(){return y(vt,arguments)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bt=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}var t,n,r;return t=e,(n=[{key:"reset",value:function(e,t){this.international=!1,this.IDDPrefix=void 0,this.missingPlus=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(e,t)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&yt(t.prototype,n),r&&yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kt=new RegExp("x");function St(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Et(e,t){return")"===e[t]&&t++,function(e){var t=[],n=0;for(;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var o=0,a=t;o<a.length;o++){var s=a[o];i+=e.slice(r,s),r=s+1}return i}(e.slice(0,t))}function Ct(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode;if(i(t)){var a=Tt(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:o,metadata:r});if(a)return a}return Tt(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:o,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:o})}function Tt(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix,a=G(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?a=e.nationalPrefix+o(t)+a:e.complexPrefixBeforeNationalSignificantNumber&&(a=e.complexPrefixBeforeNationalSignificantNumber+" "+a)),function(e,t){return je(e)===t.getNationalDigits()}(a,e))return a}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Mt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:"|",args:n.concat([Lt(r)])};if(0===r.length)throw new Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(Ot);if(t){var n=t[1],r=e.slice(0,t.index),i=e.slice(t.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext().branches;o.push(Lt(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:o});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(Lt(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:$t(r)});break;default:throw new Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}else{if(Pt.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])&&xt(t.prototype,n),r&&xt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $t(e){for(var t=[],n=0;n<e.length;){if("-"===e[n]){if(0===n||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,o=r;o<=i;)t.push(String.fromCharCode(o)),o++}else t.push(e[n]);n++}return t}var Pt=/[\(\)\[\]\?\:\|]/,Ot=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Lt(e){return 1===e.length?e[0]:e}function At(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return It(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return It(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Nt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new Mt).parse(t)}var t,n,r;return t=e,(n=[{key:"match",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowOverflow;if(!e)throw new Error("String is required");var r=Rt(e.split(""),this.matchTree,!0);if(r&&r.match&&delete r.matchedChars,!r||!r.overflow||n)return r}}])&&Dt(t.prototype,n),r&&Dt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rt(e,t,n){if("string"==typeof t){var r=e.join("");return 0===t.indexOf(r)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===r.indexOf(t)?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),o=0;o<t.length;){var a=Rt(i,t[o],n&&o===t.length-1);if(!a)return;if(a.overflow)return a;if(!a.match){if(a.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(a,null,2)))}if(0===(i=i.slice(a.matchedChars.length)).length)return o===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};o++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var s,l,c=At(t.args);!(l=c()).done;){var u=Rt(e,l.value,n);if(u){if(u.overflow)return u;if(u.match)return{match:!0,matchedChars:u.matchedChars};if(!u.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(u,null,2)));s=!0}}return s?{partialMatch:!0}:void 0;case"[]":for(var d,h=At(t.args);!(d=h()).done;){var f=d.value;if(e[0]===f)return 1===e.length?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[f]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ft=St("9",15),Ht=/[- ]/,Ut=function(){return/\[([^\[\]])*\]/g},zt=function(){return/\d(?=[^,}][^,}])/g},Vt=new RegExp("["+V+"]*\\$1["+V+"]*(\\$\\d["+V+"]*)*$"),qt=function(){function e(t){t.state;var n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=n,this.resetFormat()}var t,n,r;return t=e,(n=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var n,r,i=this;if(n=t.nationalSignificantNumber,r=this.metadata,"IS_POSSIBLE"===R(n,r))for(var o,a=jt(this.matchingFormats);!(o=a()).done;){var s=o.value,l=Ct(t,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return i.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return i.getSeparatorAfterNationalPrefix(e)}});if(l)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(l.replace(/\d/g,"x"),t),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf("x"),l}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,i=e.international,o=n,a=o.length-3;a<0&&(a=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,o,a)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var i=e.leadingDigitsPatterns()[n];if(t.length<3)try{return void 0!==new Nt(i).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(i,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,n=this,r=function(){var r=t.value;return n.chosenFormat===r?"break":Vt.test(n.getFormatFormat(r,e.international))?n.createTemplateForFormat(r,e)?(n.chosenFormat=r,"break"):(n.matchingFormats=n.matchingFormats.filter((function(e){return e!==r})),"continue"):"continue"},i=jt(this.matchingFormats.slice());!(t=i()).done;){var o=r();if("break"===o)break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(e,t);return n?(this.setNationalNumberTemplate(n,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&Ht.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&!1===t.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf("x",t+1),n++;return Et(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,"x")+St("x",t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,i=t.nationalPrefix,o=t.complexPrefixBeforeNationalSignificantNumber,a=e.pattern();a=a.replace(Ut(),"\\d").replace(zt(),"\\d");var s=Ft.match(a)[0];if(!(n.length>s.length)){var l=new RegExp("^"+a+"$"),c=n.replace(/\d/g,"9");l.test(c)&&(s=c);var u,d=this.getFormatFormat(e,r);if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:i})){var h=d.replace(W,e.nationalPrefixFormattingRule());if(je(e.nationalPrefixFormattingRule())===(i||"")+je("$1")&&(d=h,u=!0,i))for(var f=i.length;f>0;)d=d.replace(/\d/,"x"),f--}var p=s.replace(new RegExp(a),d).replace(new RegExp("9","g"),"x");return u||(o?p=St("x",o.length)+" "+p:i&&(p=St("x",i.length)+this.getSeparatorAfterNationalPrefix(e)+p)),r&&(p=q(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,i=_t(n.split(""));!(r=i()).done;){var o=r.value;if(e.slice(t+1).search(kt)<0)return;t=e.search(kt),e=e.replace(kt,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],Et(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}])&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Jt=new RegExp("^"+("["+V+"0-90-9٠-٩۰-۹]+")+"$","i"),Xt="(?:[++]["+V+"0-90-9٠-٩۰-۹]*|["+V+"0-90-9٠-٩۰-۹]+)",Qt=new RegExp("[^"+V+"0-90-9٠-٩۰-۹]+.*$"),Zt=/[^\d\[\]]/,en=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,o=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=o}var t,n,r;return t=e,(n=[{key:"input",value:function(e,t){var n,r=function(e){var t=Wt(function(e){var t=function(e){var t,n=e.search(Xt);if(!(n<0))return"+"===(e=e.slice(n))[0]&&(t=!0,e=e.slice("+".length)),e=e.replace(Qt,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice("+".length),!0]:[t]}(e),2),n=t[0],r=t[1];return Jt.test(n)||(n=""),[n,r]}(e),i=Wt(r,2),o=i[0],a=i[1],s=je(o);return a&&(t.digits||(t.startInternationalNumber(),s||(n=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:n}}},{key:"inputDigits",value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:"extractCountryCallingCode",value:function(e){var t=Ge("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&Zt.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=Ve(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,o=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,o,i,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=Ve(e,this.metadata),i=r.nationalPrefix,o=r.nationalNumber,a=r.carrierCode;if(o!==t)return this.onExtractedNationalNumber(i,a,o,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,i){var o,a,s=r.lastIndexOf(n);if(s>=0&&s===r.length-n.length){a=!0;var l=r.slice(0,s);l!==e&&(o=l)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:a,complexPrefixBeforeNationalSignificantNumber:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,(function(t){return e.update(t)}))||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!t&&!n){var i=ze(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==i&&i!==r?(e.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=We(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode;if(t.number,n)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}}])&&Kt(t.prototype,n),r&&Kt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var an=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new C(n);var r=nn(this.getCountryAndCallingCode(t),2),i=r[0],o=r[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()}var t,n,r;return t=e,(n=[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&("object"===tn(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,n]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(n){var r;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new bt({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new qt({state:this.state,metadata:this.metadata}),this.parser=new en({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset(this.defaultCountry,this.defaultCallingCode),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){var e=this.state.country;return e}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?"".concat(r," ").concat(e):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.complexPrefixBeforeNationalSignificantNumber,r=e.nationalPrefix,i=t,o=n||r;return o&&(i=o+i),i}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,"x")}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Xe(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,i=e.nationalSignificantNumber;if(t)return this.isInternational()?n?"+"+n+i:"+"+t:r||n?"+"+(r?this.metadata.countryCallingCode():n)+i:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode,i=this._getCountry();if(t&&(i||r)){var o=new _e(i||r,t,this.metadata.metadata);return n&&(o.carrierCode=n),o}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])&&on(t.prototype,n),r&&on(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sn(e){return an.call(this,e,g)}sn.prototype=Object.create(an.prototype,{}),sn.prototype.constructor=sn;var ln={props:{theme:{type:Object,required:!0}},computed:{labelColorStyle:function(){return this.error?this.theme.errorColor:this.valid?this.theme.validColor:this.isFocus?this.theme.color:this.dark?this.theme.textDarkColor:null},inputBorderStyle:function(){return this.error?this.theme.borderErrorColor:this.valid?this.theme.borderValidColor:this.isHover||this.isFocus?this.theme.borderColor:null},inputBoxShadowStyle:function(){return this.isFocus?this.error?this.theme.boxShadowError:this.valid?this.theme.boxShadowValid:this.theme.boxShadowColor:null},inputBgColor:function(){return this.dark?this.theme.bgDarkColor:null},textColor:function(){return this.dark?this.theme.textDarkColor:null},inputCaretStyle:function(){return{caretColor:this.theme.colorValue}},radiusStyle:function(){return this.theme.borderRadius},radiusLeftStyle:function(){return this.theme.borderLeftRadius},radiusRightStyle:function(){return this.theme.borderRightRadius},bgItemSelectedStyle:function(){return this.theme.bgColor},loaderBgColor:function(){return this.theme.bgColor}}},cn={name:"InputTel",mixins:[ln],props:{value:{type:[String,Number],default:null},label:{type:String,default:"Enter text"},hint:{type:String,default:null},error:{type:Boolean,default:Boolean},disabled:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},id:{type:String,default:"InputTel"},size:{type:String,default:null},type:{type:String,default:"tel"},readonly:{type:Boolean,default:!1},valid:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loader:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,isHover:!1}},computed:{inputValue:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},labelValue:function(){var e=this.label;return this.required&&e?"".concat(e," *"):e},hintValue:function(){var e=this.hint;return this.required&&e?"".concat(e," *"):e}},methods:{updateHoverState:function(e){this.isHover=e},focusInput:function(){this.$refs.InputTel.focus()},onFocus:function(){this.$emit("focus"),this.isFocus=!0},onBlur:function(){this.$emit("blur"),this.isFocus=!1},clear:function(){this.$emit("input",null),this.$emit("clear")},keyUp:function(e){this.$emit("keyup",e)},keyDown:function(e){this.$emit("keydown",e)}}};n("d499");function un(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var dn=un(cn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"parent",staticClass:"input-tel",class:[{"is-focused":e.isFocus,"is-valid":e.valid,"has-value":e.value,"has-error":e.error,"is-disabled":e.disabled,"is-dark":e.dark,"has-hint":e.hint},e.size],on:{click:e.focusInput,mouseenter:function(t){return e.updateHoverState(!0)},mouseleave:function(t){return e.updateHoverState(!1)}}},["checkbox"===e.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.inputValue)?e._i(e.inputValue,null)>-1:e.inputValue},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},change:function(t){var n=e.inputValue,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.inputValue=n.concat([null])):o>-1&&(e.inputValue=n.slice(0,o).concat(n.slice(o+1)))}else e.inputValue=i}}},"input",e.$attrs,!1)):"radio"===e.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:"radio"},domProps:{checked:e._q(e.inputValue,null)},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},change:function(t){e.inputValue=null}}},"input",e.$attrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"InputTel",staticClass:"input-tel__input",class:{"no-country-selector":e.noCountrySelector},style:[e.noCountrySelector?e.radiusStyle:e.radiusRightStyle,e.inputCaretStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor,e.textColor],attrs:{id:e.id,placeholder:e.labelValue,disabled:e.disabled,required:e.required,type:e.type},domProps:{value:e.inputValue},on:{keydown:e.keyDown,keyup:e.keyUp,focus:e.onFocus,blur:e.onBlur,click:function(t){return e.$emit("click",t)},input:function(t){t.target.composing||(e.inputValue=t.target.value)}}},"input",e.$attrs,!1)),n("label",{ref:"label",staticClass:"input-tel__label",class:e.error?"text-danger":null,style:[e.labelColorStyle],attrs:{for:e.id},on:{click:e.focusInput}},[e._v(" "+e._s(e.hintValue||e.labelValue)+" ")]),e.clearable&&e.inputValue?n("button",{staticClass:"input-tel__clear",attrs:{title:"clear",type:"button",tabindex:"-1"},on:{click:e.clear}},[n("span",{staticClass:"input-tel__clear__effect"}),n("span",[e._v(" ✕ ")])]):e._e(),e.loader?n("div",{staticClass:"input-tel__loader"},[n("div",{staticClass:"input-tel__loader__progress-bar",style:[e.loaderBgColor]})]):e._e()])}),[],!1,null,"e59be3b4",null).exports,hn=(n("7f7f"),n("f559"),n("20d6"),n("a745")),fn=n.n(hn);function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mn=n("774e"),vn=n.n(mn),gn=n("c8bb"),yn=n.n(gn),bn=n("67bb"),_n=n.n(bn);function wn(e){return function(e){if(fn()(e))return pn(e)}(e)||function(e){if(void 0!==_n.a&&yn()(Object(e)))return vn()(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?vn()(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("7514");var kn,Sn={name:"CountrySelector",components:{RecycleScroller:n("e508").a},mixins:[ln],props:{id:{type:String,default:"CountrySelector"},value:{type:[String,Object],default:null},label:{type:String,default:"Choose country"},hint:{type:String,default:String},size:{type:String,default:String},error:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},valid:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},items:{type:Array,default:Array,required:!0},preferredCountries:{type:Array,default:null},onlyCountries:{type:Array,default:null},ignoredCountries:{type:Array,default:null},noFlags:{type:Boolean,default:!1},countriesHeight:{type:Number,default:35},showCodeOnList:{type:Boolean,default:!1}},data:function(){return{isFocus:!1,hasListOpen:!1,selectedIndex:null,tmpValue:this.value,query:"",indexItemToShow:0,isHover:!1}},computed:{itemHeight:function(){return{height:"".concat(this.countriesHeight,"px")}},listHeight:function(){return{height:"".concat(7*(this.countriesHeight+1),"px"),maxHeight:"".concat(7*(this.countriesHeight+1),"px")}},countriesList:function(){var e=this;return this.items.filter((function(t){return!e.ignoredCountries.includes(t.iso2)}))},countriesFiltered:function(){var e=this;return(this.onlyCountries||this.preferredCountries).map((function(t){return e.countriesList.find((function(e){return e.iso2.includes(t)}))}))},otherCountries:function(){var e=this;return this.countriesList.filter((function(t){return!e.preferredCountries.includes(t.iso2)}))},countriesSorted:function(){return this.preferredCountries?[].concat(wn(this.countriesFiltered),wn(this.otherCountries)):this.onlyCountries?this.countriesFiltered:this.countriesList},selectedValueIndex:function(){var e=this;return this.value?this.countriesSorted.findIndex((function(t){return t.iso2===e.value})):null},tmpValueIndex:function(){var e=this;return this.countriesSorted.findIndex((function(t){return t.iso2===e.tmpValue}))},callingCode:function(){return this.value?"+".concat(function(){return y(A,arguments)}(this.value)):null}},methods:{updateHoverState:function(e){this.isHover=e},handleBlur:function(e){this.$el.contains(e.relatedTarget)||(this.isFocus=!1,this.closeList())},toggleList:function(){this.$refs.countriesList.offsetParent?this.closeList():this.openList()},openList:function(){this.disabled||(this.$refs.CountrySelector.focus(),this.$emit("open"),this.isFocus=!0,this.hasListOpen=!0,this.value&&this.scrollToSelectedOnFocus(this.selectedValueIndex))},closeList:function(){this.$emit("close"),this.hasListOpen=!1},updateValue:(kn=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.tmpValue=t,this.$emit("input",t||null),e.next=4,this.$nextTick();case 4:this.closeList();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return kn.apply(this,arguments)}),scrollToSelectedOnFocus:function(e){var t=this;this.$nextTick((function(){t.$refs.countriesList.scrollTop=e*(t.countriesHeight+1)-3*(t.countriesHeight+1)}))},keyboardNav:function(e){var t=e.keyCode;if(40===t||38===t){e.view&&e.view.event&&e.view.event.preventDefault(),this.hasListOpen||this.openList();var n=40===t?this.tmpValueIndex+1:this.tmpValueIndex-1;(-1===n||n>=this.countriesSorted.length)&&(n=-1===n?this.countriesSorted.length-1:0),this.tmpValue=this.countriesSorted[n].iso2,this.scrollToSelectedOnFocus(n)}else 13===t?this.hasListOpen?this.updateValue(this.tmpValue):this.openList():27===t?this.closeList():this.searching(e)},searching:function(e){var t=this,n=e.keyCode;clearTimeout(this.queryTimer),this.queryTimer=setTimeout((function(){t.query=""}),1e3);var r=String.fromCharCode(n);if(8===n&&""!==this.query)this.query=this.query.substring(0,this.query.length-1);else if(/[a-zA-Z-e ]/.test(r)){this.hasListOpen||this.openList(),this.query+=e.key;var i=(this.preferredCountries?this.countriesSorted.slice(this.preferredCountries.length):this.countriesSorted).findIndex((function(e){return t.tmpValue=e.iso2,e.name.toLowerCase().startsWith(t.query)}));-1!==i&&this.scrollToSelectedOnFocus(i+(this.preferredCountries?this.preferredCountries.length:0))}}}},En=(n("e71e"),un(Sn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"parent",staticClass:"country-selector",class:[{"is-focused":e.isFocus,"has-value":e.value,"has-hint":e.hint,"has-error":e.error,"is-disabled":e.disabled,"is-dark":e.dark,"no-flags":e.noFlags,"has-list-open":e.hasListOpen,"is-valid":e.valid},e.size],on:{"!blur":function(t){return e.handleBlur.apply(null,arguments)},mouseenter:function(t){return e.updateHoverState(!0)},mouseleave:function(t){return e.updateHoverState(!1)}}},[e.value&&!e.noFlags?n("div",{staticClass:"country-selector__country-flag",on:{click:function(t){return t.stopPropagation(),e.toggleList.apply(null,arguments)}}},[n("div",{class:"iti-flag-small iti-flag "+e.value.toLowerCase()})]):e._e(),n("input",{ref:"CountrySelector",staticClass:"country-selector__input",style:[e.radiusLeftStyle,e.inputBorderStyle,e.inputBoxShadowStyle,e.inputBgColor],attrs:{id:e.id,placeholder:e.label,disabled:e.disabled,readonly:""},domProps:{value:e.callingCode},on:{focus:function(t){e.isFocus=!0},keydown:e.keyboardNav,click:function(t){return t.stopPropagation(),e.toggleList.apply(null,arguments)}}}),n("div",{staticClass:"country-selector__toggle",on:{click:function(t){return t.stopPropagation(),e.toggleList.apply(null,arguments)}}},[e._t("arrow",(function(){return[n("svg",{staticClass:"country-selector__toggle__arrow",attrs:{mlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{staticClass:"arrow",attrs:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}),n("path",{attrs:{fill:"none",d:"M0 0h24v24H0V0z"}})])]}))],2),n("label",{ref:"label",staticClass:"country-selector__label",style:[e.labelColorStyle],on:{click:function(t){return t.stopPropagation(),e.toggleList.apply(null,arguments)}}},[e._v(" "+e._s(e.hint||e.label)+" ")]),n("Transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasListOpen,expression:"hasListOpen"}],ref:"countriesList",staticClass:"country-selector__list",class:{"has-calling-code":e.showCodeOnList},style:[e.radiusStyle,e.listHeight,e.inputBgColor]},[n("RecycleScroller",{attrs:{items:e.countriesSorted,"item-size":1,"key-field":"iso2"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.item;return[n("button",{key:"item-"+r.code,staticClass:"flex align-center country-selector__list__item",class:[{selected:e.value===r.iso2},{"keyboard-selected":e.value!==r.iso2&&e.tmpValue===r.iso2}],style:[e.itemHeight,e.value===r.iso2?e.bgItemSelectedStyle:null],attrs:{tabindex:"-1",type:"button"},on:{click:function(t){return t.stopPropagation(),e.updateValue(r.iso2)}}},[e.noFlags?e._e():n("div",{staticClass:"country-selector__list__item__flag-container"},[n("div",{class:"iti-flag-small iti-flag "+r.iso2.toLowerCase()})]),e.showCodeOnList?n("span",{staticClass:"country-selector__list__item__calling-code flex-fixed"},[e._v("+"+e._s(r.dialCode))]):e._e(),n("div",{staticClass:"dots-text"},[e._v(" "+e._s(r.name)+" ")])])]}}])})],1)])],1)}),[],!1,null,"46e105de",null).exports),Cn={countrySelectorLabel:"Country code",countrySelectorError:"Choose country",phoneNumberLabel:"Phone number",example:"Example:"},Tn=n("6038");function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $n,Pn,On=function(e){return Object(Tn.isColorName)(e)?Object(Tn.hexToRgba)(Object(Tn.colorNameToHex)(e),.7):Object(Tn.hexToRgba)(e,.7)},Ln=function(){if(!window)return null;var e=window.navigator.userLanguage||window.navigator.language,t=e?e.substr(3,4).toUpperCase():null;return""===t&&(t=e.substr(0,2).toUpperCase()),t},An={name:"VuePhoneNumberInput",components:{InputTel:dn,CountrySelector:En},props:{value:{type:String,default:null},id:{type:String,default:"MazPhoneNumberInput"},color:{type:String,default:"dodgerblue"},validColor:{type:String,default:"yellowgreen"},errorColor:{type:String,default:"orangered"},darkColor:{type:String,default:"#424242"},disabled:{type:Boolean,default:!1},defaultCountryCode:{type:String,default:null},size:{type:String,default:null},preferredCountries:{type:Array,default:null},onlyCountries:{type:Array,default:null},ignoredCountries:{type:Array,default:Array},translations:{type:Object,default:null},noValidatorState:{type:Boolean,default:!1},noFlags:{type:Boolean,default:!1},error:{type:Boolean,default:!1},noExample:{type:Boolean,default:!1},required:{type:Boolean,default:!1},countriesHeight:{type:Number,default:30},noUseBrowserLocale:{type:Boolean,default:!1},fetchCountry:{type:Boolean,default:!1},noCountrySelector:{type:Boolean,default:!1},showCodeOnList:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},borderRadius:{type:Number,default:4}},data:function(){return{results:{},userLocale:this.defaultCountryCode,lastKeyPressed:null}},computed:{uniqueId:function(){return"".concat(this.id,"-").concat(this._uid)},t:function(){return Mn(Mn({},Cn),this.translations)},codesCountries:function(){return m},countryCode:{get:function(){return this.userLocale||this.results.countryCode},set:function(e){this.setLocale(e),this.$refs.PhoneNumberInput.$el.querySelector("input").focus()}},phoneNumber:{get:function(){return this.value},set:function(e){this.emitValues({countryCode:this.countryCode,phoneNumber:e})}},shouldChooseCountry:function(){return!this.countryCode&&!!this.phoneNumber},phoneFormatted:function(){return this.results.formatInternational},isValid:function(){return this.results.isValid},phoneNumberExample:function(){var e=this.countryCode?function(){return y(ke,arguments)}(this.countryCode,v):null;return e?e.formatNational():null},hasEmptyPhone:function(){return""===this.phoneNumber||null===this.phoneNumber},hintValue:function(){return this.noExample||!this.phoneNumberExample||this.hasEmptyPhone||this.isValid?null:"".concat(this.t.example," ").concat(this.phoneNumberExample)},theme:function(){return{colorValue:this.color,color:{color:this.color},textColor:{color:"#747474"},textDarkColor:{color:"rgba(255, 255, 255, 0.7)"},validColor:{color:this.validColor},errorColor:{color:this.errorColor},darkColor:{color:this.darkColor},bgColor:{backgroundColor:this.color},bgValidColor:{backgroundColor:this.validColor},bgErrorColor:{backgroundColor:this.errorColor},bgDarkColor:{backgroundColor:this.darkColor},borderColor:{borderColor:this.color},borderValidColor:{borderColor:this.validColor},borderErrorColor:{borderColor:this.errorColor},borderDarkColor:{borderColor:this.darkColor},boxShadowColor:{boxShadow:"0 0 0 0.125rem ".concat(On(this.color))},boxShadowValid:{boxShadow:"0 0 0 0.125rem ".concat(On(this.validColor))},boxShadowError:{boxShadow:"0 0 0 0.125rem ".concat(On(this.errorColor))},borderRadius:{borderRadius:"".concat(this.borderRadius,"px")},borderLeftRadius:{borderTopLeftRadius:"".concat(this.borderRadius,"px"),borderBottomLeftRadius:"".concat(this.borderRadius,"px")},borderRightRadius:{borderTopRightRadius:"".concat(this.borderRadius,"px"),borderBottomRightRadius:"".concat(this.borderRadius,"px")}}}},watch:{defaultCountryCode:function(e,t){e!==t&&this.setLocale(e)},phoneNumber:{handler:function(e,t){if(e&&e!==t){var n=gt(e);n&&this.emitValues({phoneNumber:n.nationalNumber,countryCode:this.countryCode?this.countryCode:n.country})}},immediate:!0}},mounted:(Pn=c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.phoneNumber&&this.defaultCountryCode&&this.emitValues({countryCode:this.defaultCountryCode,phoneNumber:this.phoneNumber}),!this.defaultCountryCode||!this.fetchCountry){e.next=4;break}throw new Error('MazPhoneNumberInput: Do not use "fetch-country" and "default-country-code" options in the same time');case 4:if(!this.defaultCountryCode||!this.noUseBrowserLocale){e.next=6;break}throw new Error('MazPhoneNumberInput: If you use a "default-country-code", do not use "no-use-browser-locale" options');case 6:if(!this.defaultCountryCode){e.next=8;break}return e.abrupt("return");case 8:this.fetchCountry?this.fetchCountryCode():!this.noUseBrowserLocale&&this.setLocale(Ln()),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),new Error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return Pn.apply(this,arguments)}),methods:{getAsYouTypeFormat:function(e){var t=e.countryCode,n=e.phoneNumber,r=new sn(t);return n?r.input(n):null},getParsePhoneNumberFromString:function(e){var t=e.phoneNumber,n=e.countryCode,r=t&&n?gt(t,n):null;return Mn(Mn({countryCode:n,isValid:!1},t&&""!==t?{phoneNumber:t}:null),r?{countryCallingCode:r.countryCallingCode,formattedNumber:r.number,nationalNumber:r.nationalNumber,isValid:r.isValid(),type:r.getType(),formatInternational:r.formatInternational(),formatNational:r.formatNational(),uri:r.getURI(),e164:r.format("E.164")}:null)},emitValues:function(e){var t=this,n=this.getAsYouTypeFormat(e),r=8===this.lastKeyPressed;this.$nextTick((function(){var i=!!t.phoneNumber&&t.phoneNumber.trim().slice(-1);r&&i&&")"===i.slice(-1)&&(n=t.phoneNumber.slice(0,-2),e.phoneNumber=t.phoneNumber.slice(0,-2)),t.results=t.getParsePhoneNumberFromString(e),t.$emit("update",t.results),t.$emit("input",n)}))},setLocale:function(e){var t=function(e){return p.includes(e)}(e);t&&e?(this.userLocale=t?e:null,this.emitValues({countryCode:e,phoneNumber:this.phoneNumber})):!t&&e&&window.console.warn("The locale ".concat(e," is not available"))},fetchCountryCode:($n=c(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://ip2c.org/s");case 3:return t=e.sent,e.next=6,t.text();case 6:n=e.sent,(r=(n||"").toString())&&"1"===r[0]&&this.setLocale(r.substr(2,2)),e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(0),new Error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return $n.apply(this,arguments)})}},In=(n("e214"),un(An,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-phone-number-input flex",class:[{dark:e.dark},e.size],attrs:{id:e.id}},[e.noCountrySelector?e._e():n("div",{staticClass:"select-country-container"},[n("CountrySelector",{ref:"CountrySelector",staticClass:"input-country-selector",attrs:{id:e.uniqueId+"_country_selector",items:e.codesCountries,"countries-height":e.countriesHeight,error:e.shouldChooseCountry,hint:e.shouldChooseCountry?e.t.countrySelectorError:null,disabled:e.disabled,valid:e.isValid&&!e.noValidatorState,"preferred-countries":e.preferredCountries,"only-countries":e.onlyCountries,"ignored-countries":e.ignoredCountries,label:e.t.countrySelectorLabel,"no-flags":e.noFlags,"show-code-on-list":e.showCodeOnList,size:e.size,dark:e.dark,theme:e.theme},model:{value:e.countryCode,callback:function(t){e.countryCode=t},expression:"countryCode"}},[e._t("arrow",null,{slot:"arrow"})],2)],1),n("div",{staticClass:"flex-1"},[n("InputTel",e._b({ref:"PhoneNumberInput",staticClass:"input-phone-number",attrs:{id:e.uniqueId+"_phone_number",label:e.t.phoneNumberLabel,hint:e.hintValue,dark:e.dark,disabled:e.disabled,size:e.size,error:e.error,valid:e.isValid&&!e.noValidatorState,required:e.required,"no-country-selector":e.noCountrySelector,theme:e.theme},on:{keydown:function(t){e.lastKeyPressed=t.keyCode},focus:function(t){return e.$emit("phone-number-focused")},blur:function(t){return e.$emit("phone-number-blur")}},model:{value:e.phoneNumber,callback:function(t){e.phoneNumber=t},expression:"phoneNumber"}},"InputTel",e.$attrs,!1))],1)])}),[],!1,null,"19351537",null).exports);t.default=In},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}).default},function(e,t,n){window,e.exports=function(){return n={},e.m=t=[function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5).default)("7ce5ac5d",r,!0,{})},function(e,t,n){"use strict";n(0)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.payButton{\n    color: #61DAFB;\n    width: 250px;\n    height: 50px;\n    font-weight: 800;\n}\n",""])},function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e))));return"/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t)," */")}(r),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}return""+n}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var a=0;a<e.length;a++){var s=e[a];null!=s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),t.push(s))}},t}},function(e,t,n){"use strict";n.r(t);var r={props:{styleClass:{type:String,default:"payButton"},email:{type:String,required:!0},amount:{type:Number,required:!0},raveKey:{type:String,required:!0},reference:{type:String,required:!0},callback:{type:Function,required:!0,default:function(){}},close:{type:Function,required:!0,default:function(){}},metadata:{type:Array,default:function(){return[]}},currency:{type:String,default:"NGN"},country:{type:String,default:"NG"},customerFirstname:{type:String,default:""},customerLastname:{type:String,default:""},customTitle:{type:String,default:""},customDescription:{type:String,default:""},customLogo:{type:String,default:""},redirectUrl:{type:String,default:""},paymentOptions:{type:String,default:"card"},paymentPlan:{type:Number,default:0},hostedPayment:{type:Number,default:0},subaccounts:{type:Array,default:function(){return[]}}},created:function(){var e=document.createElement("script");e.src="https://api.ravepay.co/flwv3-pug/getpaidx/api/flwpbf-inline.js",document.getElementsByTagName("head")[0].appendChild(e)},methods:{payWithRave:function(){var e=this;window.getpaidSetup({customer_email:this.email,amount:this.amount,txref:this.reference,PBFPubKey:this.raveKey,onclose:function(){return e.close()},callback:function(t){return e.callback(t)},meta:this.metadata,currency:this.currency,country:this.country,customer_firstname:this.customerFirstname,customer_lastname:this.customerLastname,custom_title:this.customTitle,custom_logo:this.customLogo,redirect_url:this.redirectUrl,payment_plan:this.paymentPlan,payment_options:this.paymentOptions,subaccounts:this.subaccounts,hosted_payment:this.hostedPayment})}}},i=(n(1),function(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=[],c._compiled=!0),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}(r,(function(){var e=this;return(e._self._c||e.$createElement)("button",{class:e.styleClass,on:{click:e.payWithRave}},[e._t("default",[e._v("Make Payment")])],2)})));t.default=i.exports},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function i(e,t,n,i){m=n,g=i||{};var a=r(e,t);return o(a),function(t){for(var n=[],i=0;i<a.length;i++)(s=d[a[i].id]).refs--,n.push(s);for(t?o(a=r(e,t)):a=[],i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}}function o(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(s(n.parts[i]));n.parts.length<r.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(s(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:o}}}}function a(){var e=document.createElement("style");return e.type="text/css",h.appendChild(e),e}function s(e){var t,n,r=document.querySelector("style["+y+'~="'+e.id+'"]');if(r){if(m)return v;r.parentNode.removeChild(r)}if(b){var i=p++;r=f=f||a(),t=l.bind(null,r,i,!1),n=l.bind(null,r,i,!0)}else r=a(),t=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(y,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}n.r(t),n.d(t,"default",(function(){return i}));var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u,d={},h=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,m=!1,v=function(){},g=null,y="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),_=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")})}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/dist/",e(e.s=4);function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t,n}()},function(e,t,n){var r=n(412),i=n(413),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){e.exports=n(425)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,c={},u=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[l]=i,r(l),l++},h.clearImmediate=f}function f(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(10),n(13))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),function(e){var t=n(6),r=n.n(t);(function(){var t,n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var i=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e,t];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}return globalThis}(this);function o(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function a(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:o(e)}}!function(e,t){if(t){var r=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];a in r||(r[a]={}),r=r[a]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.a=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var o=i.setTimeout;n.prototype.c=function(e){o(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.f(e)}}}this.a=null},n.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.u(e):this.h(e)}},t.prototype.u=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.s=function(e){var t=this.f();e.Oa(t.resolve,t.reject)},t.prototype.w=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){o(e)}}:t}var i,o,a=new t((function(e,t){i=e,o=t}));return this.Oa(r(e,i),r(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Oa=function(e,t){function n(){switch(r.b){case 1:e(r.c);break;case 2:t(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?s.b(n):this.a.push(n)},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=a(e),o=i.next();!o.done;o=i.next())r(o.value).Oa(t,n)}))},t.all=function(e){var n=a(e),i=n.next();return i.done?r([]):new t((function(e,t){function o(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Oa(o(a.length-1),t),i=n.next()}while(!i.done)}))},t}));var s=s||{},l=this||self,c=/^[\w+/_-]+[=]{0,2}$/,u=null;function d(){}function h(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function f(e){var t=h(e);return"array"==t||"object"==t&&"number"==typeof e.length}function p(e){return"function"==h(e)}function m(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function v(e){return Object.prototype.hasOwnProperty.call(e,g)&&e[g]||(e[g]=++y)}var g="closure_uid_"+(1e9*Math.random()>>>0),y=0;function b(e,t,n){return e.call.apply(e.bind,arguments)}function _(e,t,n){if(!e)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),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function w(e,t,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:_).apply(null,arguments)}function k(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var S=Date.now||function(){return+new Date};function E(e,t){function n(){}n.prototype=t.prototype,e.Za=t.prototype,e.prototype=new n,e.prototype.constructor=e}function C(e,t,n){this.code=M+e,this.message=t||$[e]||"",this.a=n||null}function T(e){var t=e&&e.code;return t?new C(t.substring(M.length),e.message,e.serverResponse):null}E(C,Error),C.prototype.v=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},C.prototype.toJSON=function(){return this.v()};var x,M="auth/",$={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},P={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function O(e){for(var t in P)if(P[t].id===e)return{firebaseEndpoint:(e=P[t]).Ra,secureTokenEndpoint:e.Xa,identityPlatformEndpoint:e.Ua};return null}function L(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function A(e){if(Error.captureStackTrace)Error.captureStackTrace(this,A);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function I(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");A.call(this,n+e[r])}function D(e,t){throw new I("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function N(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function R(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function j(){this.b=this.a=null}x=O("__EID__")?"__EID__":void 0,E(A,Error),A.prototype.name="CustomError",E(I,A),I.prototype.name="AssertionError",N.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var B=new N((function(){return new F}),(function(e){e.reset()}));function Y(){var e=yt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function F(){this.next=this.b=this.a=null}j.prototype.add=function(e,t){var n=B.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},F.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},F.prototype.reset=function(){this.next=this.b=this.a=null};var H=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},U=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};var z=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=[],i=0,o="string"==typeof e?e.split(""):e,a=0;a<n;a++)if(a in o){var s=o[a];t.call(void 0,s,a,e)&&(r[i++]=s)}return r},V=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),i="string"==typeof e?e.split(""):e,o=0;o<n;o++)o in i&&(r[o]=t.call(void 0,i[o],o,e));return r},q=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e))return!0;return!1};function W(e,t){return 0<=H(e,t)}function G(e,t){var n;return(n=0<=(t=H(e,t)))&&Array.prototype.splice.call(e,t,1),n}function K(e,t){!function(e,t){for(var n="string"==typeof e?e.split(""):e,r=e.length-1;0<=r;--r)r in n&&t.call(void 0,n[r],r,e)}(e,(function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0}))}function J(e){return Array.prototype.concat.apply([],arguments)}function X(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}var Q,Z=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=/</g,ne=/>/g,re=/"/g,ie=/'/g,oe=/\x00/g,ae=/[\x00&<>"']/;function se(e,t){return-1!=e.indexOf(t)}function le(e,t){return e<t?-1:e>t?1:0}e:{var ce=l.navigator;if(ce){var ue=ce.userAgent;if(ue){Q=ue;break e}}Q=""}function de(e){return se(Q,e)}function he(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function fe(e){for(var t in e)return!1;return!0}function pe(e){var t,n={};for(t in e)n[t]=e[t];return n}var me="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ve(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<me.length;o++)n=me[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ge(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||l).Element&&r.Location){var i=r;break e}}catch(e){}i=null}if(i&&void 0!==i[t]&&(!e||!(e instanceof i[t])&&(e instanceof i.Location||e instanceof i.Element))){if(m(e))try{var o=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){o="<object could not be stringified>"}else o=void 0===e?"undefined":null===e?"null":typeof e;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,o)}}function ye(e,t){this.a=e===we&&t||"",this.b=_e}function be(e){return e instanceof ye&&e.constructor===ye&&e.b===_e?e.a:(D("expected object of type Const, got '"+e+"'"),"type_error:Const")}ye.prototype.ra=!0,ye.prototype.qa=function(){return this.a},ye.prototype.toString=function(){return"Const{"+this.a+"}"};var _e={},we={},ke=new ye(we,"");function Se(e,t){this.a=e===$e&&t||"",this.b=Me}function Ee(e){return e instanceof Se&&e.constructor===Se&&e.b===Me?e.a:(D("expected object of type TrustedResourceUrl, got '"+e+"' of type "+h(e)),"type_error:TrustedResourceUrl")}function Ce(e,t){var n=be(e);if(!xe.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Te,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof ye?be(e):encodeURIComponent(String(e))})),new Se($e,e)}Se.prototype.ra=!0,Se.prototype.qa=function(){return this.a.toString()},Se.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Te=/%{(\w+)}/g,xe=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Me={},$e={};function Pe(e,t){this.a=e===De&&t||"",this.b=Ie}function Oe(e){return e instanceof Pe&&e.constructor===Pe&&e.b===Ie?e.a:(D("expected object of type SafeUrl, got '"+e+"' of type "+h(e)),"type_error:SafeUrl")}Pe.prototype.ra=!0,Pe.prototype.qa=function(){return this.a.toString()},Pe.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Le=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ae(e){return e instanceof Pe?e:(e="object"==typeof e&&e.ra?e.qa():String(e),Le.test(e)||(e="about:invalid#zClosurez"),new Pe(De,e))}var Ie={},De={};function Ne(){this.a="",this.b=je}function Re(e){return e instanceof Ne&&e.constructor===Ne&&e.b===je?e.a:(D("expected object of type SafeHtml, got '"+e+"' of type "+h(e)),"type_error:SafeHtml")}Ne.prototype.ra=!0,Ne.prototype.qa=function(){return this.a.toString()},Ne.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var je={};function Be(e){var t=new Ne;return t.a=e,t}Be("<!DOCTYPE html>");var Ye=Be("");function Fe(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function He(e){return ae.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(te,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(ne,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(re,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(ie,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(oe,"&#0;"))),e}function Ue(e){return Ue[" "](e),e}Be("<br>"),Ue[" "]=d;var ze,Ve,qe=de("Opera"),We=de("Trident")||de("MSIE"),Ge=de("Edge"),Ke=Ge||We,Je=de("Gecko")&&!(se(Q.toLowerCase(),"webkit")&&!de("Edge"))&&!(de("Trident")||de("MSIE"))&&!de("Edge"),Xe=se(Q.toLowerCase(),"webkit")&&!de("Edge");function Qe(){var e=l.document;return e?e.documentMode:void 0}e:{var Ze="",et=(Ve=Q,Je?/rv:([^\);]+)(\)|;)/.exec(Ve):Ge?/Edge\/([\d\.]+)/.exec(Ve):We?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Ve):Xe?/WebKit\/(\S+)/.exec(Ve):qe?/(?:Version)[ \/]?(\S+)/.exec(Ve):void 0);if(et&&(Ze=et?et[1]:""),We){var tt=Qe();if(null!=tt&&tt>parseFloat(Ze)){ze=String(tt);break e}}ze=Ze}var nt,rt={};function it(e){return function(e,t){var n=rt;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=Z(String(ze)).split("."),r=Z(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=le(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||le(0==a[2].length,0==s[2].length)||le(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}nt=l.document&&We?Qe():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Ve){}var ot=!We||9<=Number(nt);function at(e){var t=document;return"string"==typeof e?t.getElementById(e):e}function st(e,t){he(t,(function(t,n){t&&"object"==typeof t&&t.ra&&(t=t.qa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:ut.hasOwnProperty(n)?e.setAttribute(ut[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var lt,ct,ut={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function dt(e,t,n){function r(n){n&&t.appendChild("string"==typeof n?e.createTextNode(n):n)}for(var i=2;i<n.length;i++){var o=n[i];!f(o)||m(o)&&0<o.nodeType?r(o):U(ft(o)?X(o):o,r)}}function ht(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function ft(e){if(e&&"number"==typeof e.length){if(m(e))return"function"==typeof e.item||"string"==typeof e.item;if(p(e))return"function"==typeof e.item}return!1}function pt(e){l.setTimeout((function(){throw e}),0)}function mt(){var e=l.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!de("Presto")&&(e=function(){var e=ht(document,"IFRAME");e.style.display="none",function(e){var t=new Se($e,be(ke));ge(e,"HTMLIFrameElement"),e.src=Ee(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Re(Ye)),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=w((function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),void 0!==e&&!de("Trident")&&!de("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Db;n.Db=null,e()}},function(e){r.next={Db:e},r=r.next,t.port2.postMessage(0)}}return function(e){l.setTimeout(e,0)}}function vt(e,t){ct||function(){if(l.Promise&&l.Promise.resolve){var e=l.Promise.resolve(void 0);ct=function(){e.then(bt)}}else ct=function(){var e=bt;!p(l.setImmediate)||l.Window&&l.Window.prototype&&!de("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(lt||(lt=mt()),lt(e)):l.setImmediate(e)}}(),gt||(ct(),gt=!0),yt.add(e,t)}var gt=!1,yt=new j;function bt(){for(var e;e=Y();){try{e.a.call(e.b)}catch(e){pt(e)}R(B,e)}gt=!1}function _t(e,t){if(this.a=wt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){At(n,kt,e)}),(function(e){if(!(e instanceof Yt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}At(n,St,e)}))}catch(e){At(this,St,e)}}var wt=0,kt=2,St=3;function Et(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Et.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ct=new N((function(){return new Et}),(function(e){e.reset()}));function Tt(e,t,n){var r=Ct.get();return r.g=e,r.b=t,r.f=n,r}function xt(e){if(e instanceof _t)return e;var t=new _t(d);return At(t,kt,e),t}function Mt(e){return new _t((function(t,n){n(e)}))}function $t(e,t,n){It(e,t,n,null)||vt(k(t,e))}function Pt(e){return new _t((function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,o){n--,r[e]=i?{Mb:!0,value:o}:{Mb:!1,reason:o},0==n&&t(r)},o=0;o<e.length;o++)$t(e[o],k(i,o,!0),k(i,o,!1));else t(r)}))}function Ot(e,t){e.b||e.a!=kt&&e.a!=St||Dt(e),e.f?e.f.next=t:e.b=t,e.f=t}function Lt(e,t,n,r){var i=Tt(null,null,null);return i.a=new _t((function(e,o){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(e){o(e)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof Yt?o(t):e(i)}catch(e){o(e)}}:o})),i.a.c=e,Ot(e,i),i.a}function At(e,t,n){e.a==wt&&(e===n&&(t=St,n=new TypeError("Promise cannot resolve to itself")),e.a=1,It(n,e.Yc,e.Zc,e)||(e.i=n,e.a=t,e.c=null,Dt(e),t!=St||n instanceof Yt||function(e,t){e.g=!0,vt((function(){e.g&&Bt.call(null,t)}))}(e,n)))}function It(e,t,n,r){if(e instanceof _t)return Ot(e,Tt(t||d,n||null,r)),!0;if(L(e))return e.then(t,n,r),!0;if(m(e))try{var i=e.then;if(p(i))return function(e,t,n,r,i){function o(e){a||(a=!0,r.call(i,e))}var a=!1;try{t.call(e,(function(e){a||(a=!0,n.call(i,e))}),o)}catch(e){o(e)}}(e,i,t,n,r),!0}catch(e){return n.call(r,e),!0}return!1}function Dt(e){e.h||(e.h=!0,vt(e.ec,e))}function Nt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Rt(e,t,n,r){if(n==St&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,jt(t,n,r);else try{t.c?t.g.call(t.f):jt(t,n,r)}catch(e){Bt.call(null,e)}R(Ct,t)}function jt(e,t,n){t==kt?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}_t.prototype.then=function(e,t,n){return Lt(this,p(e)?e:null,p(t)?t:null,n)},_t.prototype.$goog_Thenable=!0,(t=_t.prototype).ma=function(e,t){return(e=Tt(e,e,t)).c=!0,Ot(this,e),this},t.o=function(e,t){return Lt(this,null,e,t)},t.cancel=function(e){if(this.a==wt){var t=new Yt(e);vt((function(){!function e(t,n){if(t.a==wt)if(t.c){var r=t.c;if(r.b){for(var i=0,o=null,a=null,s=r.b;s&&(s.c||(i++,s.a==t&&(o=s),!(o&&1<i)));s=s.next)o||(a=s);o&&(r.a==wt&&1==i?e(r,n):(a?((i=a).next==r.f&&(r.f=i),i.next=i.next.next):Nt(r),Rt(r,o,St,n)))}t.c=null}else At(t,St,n)}(this,t)}),this)}},t.Yc=function(e){this.a=wt,At(this,kt,e)},t.Zc=function(e){this.a=wt,At(this,St,e)},t.ec=function(){for(var e;e=Nt(this);)Rt(this,e,this.a,this.i);this.h=!1};var Bt=pt;function Yt(e){A.call(this,e)}function Ft(){0!=Ht&&(Ut[v(this)]=this),this.wa=this.wa,this.na=this.na}E(Yt,A),Yt.prototype.name="cancel";var Ht=0,Ut={};function zt(e){if(!e.wa&&(e.wa=!0,e.Ba(),0!=Ht)){var t=v(e);if(0!=Ht&&e.na&&0<e.na.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ut[t]}}Ft.prototype.wa=!1,Ft.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var Vt=Object.freeze||function(e){return e},qt=!We||9<=Number(nt),Wt=We&&!it("9"),Gt=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{l.addEventListener("test",d,t),l.removeEventListener("test",d,t)}catch(e){}return e}();function Kt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Jt(e,t){if(Kt.call(this,e?e.type:""),this.relatedTarget=this.b=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.a=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Je){e:{try{Ue(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,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!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Xt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Kt.prototype.preventDefault=function(){this.defaultPrevented=!0},E(Jt,Kt);var Xt=Vt({2:"touch",3:"pen",4:"mouse"});Jt.prototype.preventDefault=function(){Jt.Za.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Wt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},Jt.prototype.f=function(){return this.a};var Qt="closure_listenable_"+(1e6*Math.random()|0),Zt=0;function en(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Ta=i,this.key=++Zt,this.ua=this.Na=!1}function tn(e){e.ua=!0,e.listener=null,e.proxy=null,e.src=null,e.Ta=null}function nn(e){this.src=e,this.a={},this.b=0}function rn(e,t){var n=t.type;n in e.a&&G(e.a[n],t)&&(tn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function on(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.ua&&o.listener==t&&o.capture==!!n&&o.Ta==r)return i}return-1}nn.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=on(e,t,r,i);return-1<a?(t=e[a],n||(t.Na=!1)):((t=new en(t,this.src,o,!!r,i)).Na=n,e.push(t)),t};var an="closure_lm_"+(1e6*Math.random()|0),sn={};function ln(e,t,n,r,i){if(r&&r.once)un(e,t,n,r,i);else if(Array.isArray(t))for(var o=0;o<t.length;o++)ln(e,t[o],n,r,i);else n=bn(n),e&&e[Qt]?wn(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!1,r,i)}function cn(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=m(i)?!!i.capture:!!i,s=gn(e);if(s||(e[an]=s=new nn(e)),!(n=s.add(t,n,r,a,o)).proxy){if(r=function(){var e=vn,t=qt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Gt||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(fn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function un(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)un(e,t[o],n,r,i);else n=bn(n),e&&e[Qt]?kn(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!0,r,i)}function dn(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)dn(e,t[o],n,r,i);else r=m(r)?!!r.capture:!!r,n=bn(n),e&&e[Qt]?(e=e.u,(t=String(t).toString())in e.a&&(-1<(n=on(o=e.a[t],n,r,i))&&(tn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=gn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=on(t,n,r,i)),(n=-1<e?t[e]:null)&&hn(n))}function hn(e){if("number"!=typeof e&&e&&!e.ua){var t=e.src;if(t&&t[Qt])rn(t.u,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(fn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=gn(t))?(rn(n,e),0==n.b&&(n.src=null,t[an]=null)):tn(e)}}}function fn(e){return e in sn?sn[e]:sn[e]="on"+e}function pn(e,t,n,r){var i=!0;if((e=gn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.ua&&(o=mn(o,r),i=i&&!1!==o)}return i}function mn(e,t){var n=e.listener,r=e.Ta||e.src;return e.Na&&hn(e),n.call(r,t)}function vn(e,t){if(e.ua)return!0;if(!qt){if(!t)e:{t=["window","event"];for(var n=l,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(t=new Jt(r=t,this),n=!0,!(0>r.keyCode||null!=r.returnValue)){e:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(e){i=!0}(i||null==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=t.b;i;i=i.parentNode)r.push(i);for(e=e.type,i=r.length-1;0<=i;i--){t.b=r[i];var o=pn(r[i],e,!0,t);n=n&&o}for(i=0;i<r.length;i++)t.b=r[i],o=pn(r[i],e,!1,t),n=n&&o}return n}return mn(e,new Jt(t,this))}function gn(e){return(e=e[an])instanceof nn?e:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(e){return p(e)?e:(e[yn]||(e[yn]=function(t){return e.handleEvent(t)}),e[yn])}function _n(){Ft.call(this),this.u=new nn(this),this.Yb=this,this.eb=null}function wn(e,t,n,r,i){e.u.add(String(t),n,!1,r,i)}function kn(e,t,n,r,i){e.u.add(String(t),n,!0,r,i)}function Sn(e,t,n,r){if(!(t=e.u.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.ua&&a.capture==n){var s=a.listener,l=a.Ta||a.src;a.Na&&rn(e.u,a),i=!1!==s.call(l,r)&&i}}return i&&!r.defaultPrevented}function En(e,t,n){if(p(e))n&&(e=w(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=w(e.handleEvent,e)}return 2147483647<Number(t)?-1:l.setTimeout(e,t||0)}function Cn(e){var t=null;return new _t((function(n,r){-1==(t=En((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).o((function(e){throw l.clearTimeout(t),e}))}function Tn(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"==typeof e)return e.split("");if(f(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function xn(e){if(e.X&&"function"==typeof e.X)return e.X();if(!e.V||"function"!=typeof e.V){if(f(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function Mn(e,t){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(e)if(e instanceof Mn)for(n=e.X(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function $n(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Pn(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Pn(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Pn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}E(_n,Ft),_n.prototype[Qt]=!0,_n.prototype.addEventListener=function(e,t,n,r){ln(this,e,t,n,r)},_n.prototype.removeEventListener=function(e,t,n,r){dn(this,e,t,n,r)},_n.prototype.dispatchEvent=function(e){var t,n=this.eb;if(n)for(t=[];n;n=n.eb)t.push(n);n=this.Yb;var r=e.type||e;if("string"==typeof e)e=new Kt(e,n);else if(e instanceof Kt)e.target=e.target||n;else{var i=e;ve(e=new Kt(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.b=t[o];i=Sn(a,r,!0,e)&&i}if(i=Sn(a=e.b=n,r,!0,e)&&i,i=Sn(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=Sn(a=e.b=t[o],r,!1,e)&&i;return i},_n.prototype.Ba=function(){if(_n.Za.Ba.call(this),this.u){var e,t=this.u;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)tn(n[r]);delete t.a[e],t.b--}}this.eb=null},(t=Mn.prototype).V=function(){$n(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},t.X=function(){return $n(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(e,t){return Pn(this.b,e)?this.b[e]:t},t.set=function(e,t){Pn(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},t.forEach=function(e,t){for(var n=this.X(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var On=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ln(e,t){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,e instanceof Ln?(this.h=void 0!==t?t:e.h,An(this,e.f),this.i=e.i,this.b=e.b,In(this,e.l),this.c=e.c,Dn(this,er(e.a)),this.g=e.g):e&&(n=String(e).match(On))?(this.h=!!t,An(this,n[1]||"",!0),this.i=Yn(n[2]||""),this.b=Yn(n[3]||"",!0),In(this,n[4]),this.c=Yn(n[5]||"",!0),Dn(this,n[6]||"",!0),this.g=Yn(n[7]||"")):(this.h=!!t,this.a=new Gn(null,this.h))}function An(e,t,n){e.f=n?Yn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function In(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.l=t}else e.l=null}function Dn(e,t,n){t instanceof Gn?(e.a=t,function(e,t){t&&!e.f&&(Kn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Xn(this,t),Zn(this,n,e))}),e)),e.f=t}(e.a,e.h)):(n||(t=Fn(t,qn)),e.a=new Gn(t,e.h))}function Nn(e,t,n){e.a.set(t,n)}function Rn(e,t){return e.a.get(t)}function jn(e){return e instanceof Ln?new Ln(e):new Ln(e,void 0)}function Bn(e,t){var n=new Ln(null,void 0);return An(n,"https"),e&&(n.b=e),t&&(n.c=t),n}function Yn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Fn(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,Hn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Hn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Ln.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Fn(t,Un,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.i)&&e.push(Fn(t,Un,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&e.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(Fn(n,"/"==n.charAt(0)?Vn:zn,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.g)&&e.push("#",Fn(n,Wn)),e.join("")},Ln.prototype.resolve=function(e){var t=new Ln(this),n=!!e.f;n?An(t,e.f):n=!!e.i,n?t.i=e.i:n=!!e.b,n?t.b=e.b:n=null!=e.l;var r=e.c;if(n)In(t,e.l);else if(n=!!e.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var i=t.c.lastIndexOf("/");-1!=i&&(r=t.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(se(i,"./")||se(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?t.c=r:n=""!==e.a.toString(),n?Dn(t,er(e.a)):n=!!e.g,n&&(t.g=e.g),t};var Un=/[#\/\?@]/g,zn=/[#\?:]/g,Vn=/[#\?]/g,qn=/[#\?@]/g,Wn=/#/g;function Gn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Kn(e){e.a||(e.a=new Mn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Jn(e){var t=xn(e);if(void 0===t)throw Error("Keys are undefined");var n=new Gn(null,void 0);e=Tn(e);for(var r=0;r<t.length;r++){var i=t[r],o=e[r];Array.isArray(o)?Zn(n,i,o):n.add(i,o)}return n}function Xn(e,t){Kn(e),t=tr(e,t),Pn(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Pn((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&$n(e)))}function Qn(e,t){return Kn(e),t=tr(e,t),Pn(e.a.b,t)}function Zn(e,t,n){Xn(e,t),0<n.length&&(e.c=null,e.a.set(tr(e,t),X(n)),e.b+=n.length)}function er(e){var t=new Gn;return t.c=e.c,e.a&&(t.a=new Mn(e.a),t.b=e.b),t}function tr(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nr(e){var t=[];return function e(t,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var i=n;n=i.length,r.push("[");for(var o="",a=0;a<n;a++)r.push(o),e(t,i[a],r),o=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,i)&&("function"!=typeof(a=n[i])&&(r.push(o),ar(i,r),r.push(":"),e(t,a,r),o=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":ar(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new rr,e,t),t.join("")}function rr(){}(t=Gn.prototype).add=function(e,t){Kn(this),this.c=null,e=tr(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(e,t){Kn(this),this.a.forEach((function(n,r){U(n,(function(n){e.call(t,n,r,this)}),this)}),this)},t.X=function(){Kn(this);for(var e=this.a.V(),t=this.a.X(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},t.V=function(e){Kn(this);var t=[];if("string"==typeof e)Qn(this,e)&&(t=J(t,this.a.get(tr(this,e))));else{e=this.a.V();for(var n=0;n<e.length;n++)t=J(t,e[n])}return t},t.set=function(e,t){return Kn(this),this.c=null,Qn(this,e=tr(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},t.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.X(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.V(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var ir={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},or=/\uffff/.test("￿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ar(e,t){t.push('"',e.replace(or,(function(e){var t=ir[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ir[e]=t),t})),'"')}function sr(){var e=Tr();return We&&!!nt&&11==nt||/Edge\/\d+/.test(e)}function lr(){return l.window&&l.window.location.href||self&&self.location&&self.location.href||""}function cr(e,t){t=t||l.window;var n="about:blank";e&&(n=Oe(Ae(e))),t.location.href=n}function ur(e){return!!((e=(e||Tr()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function dr(e){e=e||l.window;try{e.close()}catch(e){}}function hr(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;for(a in t={width:t,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Tr().toLowerCase(),r&&(t.target=r,se(n,"crios/")&&(t.target="_blank")),Sr(Tr())==wr&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Pe?n:Ae(void 0!==n.href?n.href:String(n)),n=e.target||n.target,i=[],e)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(e[a]?1:0))}var a=i.join(",");if((de("iPhone")&&!de("iPod")&&!de("iPad")||de("iPad")||de("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ge(a=ht(document,"A"),"HTMLAnchorElement"),t instanceof Pe||t instanceof Pe||(t="object"==typeof t&&t.ra?t.qa():String(t),Le.test(t)||(t="about:invalid#zClosurez"),t=new Pe(De,t)),a.href=Oe(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=r.open("",n,a),e=Oe(t),a&&(Ke&&se(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,e=Be('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+He(e)+'">'),r=a.document)&&(r.write(Re(e)),r.close())):(a=r.open(Oe(t),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(e){}return a}var fr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pr=/^[^@]+@[^@]+$/;function mr(){var e=null;return new _t((function(t){"complete"==l.document.readyState?t():(e=function(){t()},un(window,"load",e))})).o((function(t){throw dn(window,"load",e),t}))}function vr(e){return e=e||Tr(),!("file:"!==Or()&&"ionic:"!==Or()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function gr(){var e=l.window;try{return!(!e||e==e.top)}catch(e){return!1}}function yr(){return void 0!==l.WorkerGlobalScope&&"function"==typeof l.importScripts}function br(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":yr()?"Worker":"Browser"}function _r(){var e=br();return"ReactNative"===e||"Node"===e}var wr="Firefox",kr="Chrome";function Sr(e){var t=e.toLowerCase();return se(t,"opera/")||se(t,"opr/")||se(t,"opios/")?"Opera":se(t,"iemobile")?"IEMobile":se(t,"msie")||se(t,"trident/")?"IE":se(t,"edge/")?"Edge":se(t,"firefox/")?wr:se(t,"silk/")?"Silk":se(t,"blackberry")?"Blackberry":se(t,"webos")?"Webos":!se(t,"safari/")||se(t,"chrome/")||se(t,"crios/")||se(t,"android")?!se(t,"chrome/")&&!se(t,"crios/")||se(t,"edge/")?se(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":kr:"Safari"}var Er={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Cr(e,t){t=t||[];var n,r=[],i={};for(n in Er)i[Er[n]]=!0;for(n=0;n<t.length;n++)void 0!==i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=br())?r=Sr(i=Tr()):"Worker"===r&&(r=Sr(i=Tr())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function Tr(){return l.navigator&&l.navigator.userAgent||""}function xr(e,t){e=e.split("."),t=t||l;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function Mr(){try{var e=l.localStorage,t=Nr();if(e)return e.setItem(t,"1"),e.removeItem(t),!sr()||!!l.indexedDB}catch(e){return yr()&&!!l.indexedDB}return!1}function $r(){return(Pr()||"chrome-extension:"===Or()||vr())&&!_r()&&Mr()&&!yr()}function Pr(){return"http:"===Or()||"https:"===Or()}function Or(){return l.location&&l.location.protocol||null}function Lr(e){return!ur(e=e||Tr())&&Sr(e)!=wr}function Ar(e){return void 0===e?null:nr(e)}function Ir(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Dr(e){if(null!==e)return JSON.parse(e)}function Nr(e){return e||Math.floor(1e9*Math.random()).toString()}function Rr(e){return"Safari"!=Sr(e=e||Tr())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function jr(){var e=l.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function Br(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=Tr(),t=br(),this.b=ur(e)||"ReactNative"===t}function Yr(){var e=l.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function Fr(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function Hr(){return!(!xr("fireauth.oauthhelper",l)&&!xr("fireauth.iframe",l))}Br.prototype.get=function(){var e=l.navigator;return!e||"boolean"!=typeof e.onLine||!Pr()&&"chrome-extension:"!==Or()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Ur,zr={};function Vr(e){zr[e]||(zr[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var qr={};Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:2}),Ur=2==qr.abcd}catch(Ve){Ur=!1}function Wr(e,t,n){Ur?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Gr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Wr(e,n,t[n])}function Kr(e){var t={};return Gr(t,e),t}function Jr(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Wr(t,n,Jr(e[n]));return t}function Xr(e){var t=e&&(e[ni]?"phone":null);if(!(t&&e&&e[ti]))throw new C("internal-error","Internal assert: invalid MultiFactorInfo object");Wr(this,"uid",e[ti]),Wr(this,"displayName",e[Zr]||null);var n=null;e[ei]&&(n=new Date(e[ei]).toUTCString()),Wr(this,"enrollmentTime",n),Wr(this,"factorId",t)}function Qr(e){try{var t=new ri(e)}catch(e){t=null}return t}Xr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Zr="displayName",ei="enrolledAt",ti="mfaEnrollmentId",ni="phoneInfo";function ri(e){Xr.call(this,e),Wr(this,"phoneNumber",e[ni])}function ii(e){var t={},n=e[li],r=e[ui],i=e[di];if(e=Qr(e[ci]),!i||i!=ai&&i!=si&&!n||i==si&&!r||i==oi&&!e)throw Error("Invalid checkActionCode response!");i==si?(t[fi]=n||null,t[mi]=n||null,t[hi]=r):(t[fi]=r||null,t[mi]=r||null,t[hi]=n||null),t[pi]=e||null,Wr(this,gi,i),Wr(this,vi,Jr(t))}E(ri,Xr),ri.prototype.v=function(){var e=ri.Za.v.call(this);return e.phoneNumber=this.phoneNumber,e};var oi="REVERT_SECOND_FACTOR_ADDITION",ai="EMAIL_SIGNIN",si="VERIFY_AND_CHANGE_EMAIL",li="email",ci="mfaInfo",ui="newEmail",di="requestType",hi="email",fi="fromEmail",pi="multiFactorInfo",mi="previousEmail",vi="data",gi="operation";function yi(e){var t=Rn(e=jn(e),bi)||null,n=Rn(e,_i)||null,r=Rn(e,Si)||null;if(r=r&&Ci[r]||null,!t||!n||!r)throw new C("argument-error",bi+", "+_i+"and "+Si+" are required in a valid action code URL.");Gr(this,{apiKey:t,operation:r,code:n,continueUrl:Rn(e,wi)||null,languageCode:Rn(e,ki)||null,tenantId:Rn(e,Ei)||null})}var bi="apiKey",_i="oobCode",wi="continueUrl",ki="languageCode",Si="mode",Ei="tenantId",Ci={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:oi,signIn:ai,verifyAndChangeEmail:si,verifyEmail:"VERIFY_EMAIL"};function Ti(e){try{return new yi(e)}catch(e){return null}}function xi(e){var t=e[Li];if(void 0===t)throw new C("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new C("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[Mi];if(n&&"object"==typeof n){t=n[Di];var r=n[Ai];if(n=n[Ii],"string"==typeof t&&t.length){if(this.a=t,void 0!==r&&"boolean"!=typeof r)throw new C("argument-error",Ai+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new C("argument-error",Ii+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new C("argument-error",Di+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new C("missing-android-pkg-name")}}else if(void 0!==n)throw new C("argument-error",Mi+" property must be a non null object when specified.");if(this.f=null,(t=e[Oi])&&"object"==typeof t){if("string"==typeof(t=t[Ni])&&t.length)this.f=t;else if(void 0!==t)throw new C("argument-error",Ni+" property must be a non empty string when specified.")}else if(void 0!==t)throw new C("argument-error",Oi+" property must be a non null object when specified.");if(void 0!==(t=e[Pi])&&"boolean"!=typeof t)throw new C("argument-error",Pi+" property must be a boolean when specified.");if(this.c=!!t,void 0!==(e=e[$i])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new C("argument-error",$i+" property must be a non empty string when specified.");this.i=e||null}var Mi="android",$i="dynamicLinkDomain",Pi="handleCodeInApp",Oi="iOS",Li="url",Ai="installApp",Ii="minimumVersion",Di="packageName",Ni="bundleId";function Ri(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var ji=null;function Bi(e){var t="";return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=ji[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!ji){ji={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=e.concat(t[n].split("")),i=0;i<r.length;i++){var o=r[i];void 0===ji[o]&&(ji[o]=i)}}}();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|o>>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(e,(function(e){t+=String.fromCharCode(e)})),t}function Yi(e){var t=Hi(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.g=e,this.c=t.exp,this.h=t.sub,S(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Fi(e){try{return new Yi(e)}catch(e){return null}}function Hi(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Bi(e))}catch(e){}return null}Yi.prototype.S=function(){return this.f},Yi.prototype.i=function(){return this.b},Yi.prototype.toString=function(){return this.g};var Ui="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),zi=["client_id","response_type","scope","redirect_uri","state"],Vi={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:zi},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:zi},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:zi},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Ui},gd:{Ha:"locale",ta:600,sa:600,ea:"apple.com",Va:[]}};function qi(e){for(var t in Vi)if(Vi[t].ea==e)return Vi[t];return null}function Wi(e){var t={};t["facebook.com"]=Qi,t["google.com"]=eo,t["github.com"]=Zi,t["twitter.com"]=to;var n=e&&e[Ki];try{if(n)return t[n]?new t[n](e):new Xi(e);if(void 0!==e[Gi])return new Ji(e)}catch(e){}return null}var Gi="idToken",Ki="providerId";function Ji(e){var t=e[Ki];if(!t&&e[Gi]){var n=Fi(e[Gi]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Wr(this,"providerId",t),Wr(this,"isNewUser",n)}function Xi(e){Ji.call(this,e),Wr(this,"profile",Jr((e=Dr(e.rawUserInfo||"{}"))||{}))}function Qi(e){if(Xi.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Zi(e){if(Xi.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",this.profile&&this.profile.login||null)}function eo(e){if(Xi.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function to(e){if(Xi.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",e.screenName||null)}function no(e){var t=jn(e),n=Rn(t,"link"),r=Rn(jn(n),"link");return t=Rn(t,"deep_link_id"),Rn(jn(t),"link")||t||r||n||e}function ro(e,t){if(!e&&!t)throw new C("internal-error","Internal assert: no raw session string available");if(e&&t)throw new C("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?io:oo}E(Xi,Ji),E(Qi,Xi),E(Zi,Xi),E(eo,Xi),E(to,Xi);var io="enroll",oo="signin";function ao(){}function so(e,t){return e.then((function(e){if(e[Ka]){var n=Fi(e[Ka]);if(!n||t!=n.h)throw new C("user-mismatch");return e}throw new C("user-mismatch")})).o((function(e){throw e&&e.code&&e.code==M+"user-not-found"?new C("user-mismatch"):e}))}function lo(e,t){if(!t)throw new C("internal-error","failed to construct a credential");this.a=t,Wr(this,"providerId",e),Wr(this,"signInMethod",e)}function co(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function uo(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new lo(e.providerId,e.pendingToken)}catch(e){}return null}function ho(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Wr(this,"idToken",t.idToken),t.accessToken&&Wr(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Wr(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new C("internal-error","failed to construct a credential");Wr(this,"accessToken",t.oauthToken),Wr(this,"secret",t.oauthTokenSecret)}Wr(this,"providerId",e),Wr(this,"signInMethod",n)}function fo(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Jn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function po(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new ho(e.providerId,t,e.signInMethod)}catch(e){}}return null}function mo(e,t){this.Oc=t||[],Gr(this,{providerId:e,isOAuthProvider:!0}),this.Fb={},this.lb=(qi(e)||{}).Ha||null,this.kb=null}function vo(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new C("argument-error",'SAML provider IDs must be prefixed with "saml."');mo.call(this,e,[])}function go(e){mo.call(this,e,zi),this.a=[]}function yo(){go.call(this,"facebook.com")}function bo(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new yo).credential({accessToken:t})}function _o(){go.call(this,"github.com")}function wo(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new _o).credential({accessToken:t})}function ko(){go.call(this,"google.com"),this.Aa("profile")}function So(e,t){var n=e;return m(e)&&(n=e.idToken,t=e.accessToken),(new ko).credential({idToken:n,accessToken:t})}function Eo(){mo.call(this,"twitter.com",Ui)}function Co(e,t){var n=e;if(m(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new C("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new ho("twitter.com",n,"twitter.com")}function To(e,t,n){this.a=e,this.f=t,Wr(this,"providerId","password"),Wr(this,"signInMethod",n===Mo.EMAIL_LINK_SIGN_IN_METHOD?Mo.EMAIL_LINK_SIGN_IN_METHOD:Mo.EMAIL_PASSWORD_SIGN_IN_METHOD)}function xo(e){return e&&e.email&&e.password?new To(e.email,e.password,e.signInMethod):null}function Mo(){Gr(this,{providerId:"password",isOAuthProvider:!1})}function $o(e,t){if(!(t=Po(t)))throw new C("argument-error","Invalid email link!");return new To(e,t.code,Mo.EMAIL_LINK_SIGN_IN_METHOD)}function Po(e){return(e=Ti(e=no(e)))&&e.operation===ai?e:null}function Oo(e){if(!(e.bb&&e.ab||e.Ja&&e.da))throw new C("internal-error");this.a=e,Wr(this,"providerId","phone"),this.ea="phone",Wr(this,"signInMethod","phone")}function Lo(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return U(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new Oo(t)}return null}function Ao(e){return e.a.Ja&&e.a.da?{temporaryProof:e.a.Ja,phoneNumber:e.a.da}:{sessionInfo:e.a.bb,code:e.a.ab}}function Io(e){try{this.a=e||r.a.auth()}catch(e){throw new C("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Gr(this,{providerId:"phone",isOAuthProvider:!1})}function Do(e,t){if(!e)throw new C("missing-verification-id");if(!t)throw new C("missing-verification-code");return new Oo({bb:e,ab:t})}function No(e){if(e.temporaryProof&&e.phoneNumber)return new Oo({Ja:e.temporaryProof,da:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret,i=e&&e.nonce,o=e&&e.oauthIdToken,a=e&&e.pendingToken;try{switch(t){case"google.com":return So(o,n);case"facebook.com":return bo(n);case"github.com":return wo(n);case"twitter.com":return Co(n,r);default:return n||r||o||a?a?0==t.indexOf("saml.")?new lo(t,a):new ho(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new go(t).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(e){return null}}function Ro(e){if(!e.isOAuthProvider)throw new C("invalid-oauth-provider")}function jo(e,t,n,r,i,o,a){if(this.c=e,this.b=t||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new C("invalid-auth-event");if(this.g&&this.a)throw new C("invalid-auth-event");if(this.g&&!this.f)throw new C("invalid-auth-event")}function Bo(e){return(e=e||{}).type?new jo(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&T(e.error),e.postBody,e.tenantId):null}function Yo(){this.b=null,this.a=[]}ro.prototype.Fa=function(){return this.a?xt(this.a):xt(this.b)},ro.prototype.v=function(){return this.type==io?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},ao.prototype.ia=function(){},ao.prototype.b=function(){},ao.prototype.c=function(){},ao.prototype.v=function(){},lo.prototype.ia=function(e){return ms(e,co(this))},lo.prototype.b=function(e,t){var n=co(this);return n.idToken=t,vs(e,n)},lo.prototype.c=function(e,t){return so(gs(e,co(this)),t)},lo.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},ho.prototype.ia=function(e){return ms(e,fo(this))},ho.prototype.b=function(e,t){var n=fo(this);return n.idToken=t,vs(e,n)},ho.prototype.c=function(e,t){return so(gs(e,fo(this)),t)},ho.prototype.v=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},mo.prototype.Ia=function(e){return this.Fb=pe(e),this},E(vo,mo),E(go,mo),go.prototype.Aa=function(e){return W(this.a,e)||this.a.push(e),this},go.prototype.Nb=function(){return X(this.a)},go.prototype.credential=function(e,t){var n;if(!(n=m(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new C("argument-error","credential failed: must provide the ID token and/or the access token.");return new ho(this.providerId,n,this.providerId)},E(yo,go),Wr(yo,"PROVIDER_ID","facebook.com"),Wr(yo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),E(_o,go),Wr(_o,"PROVIDER_ID","github.com"),Wr(_o,"GITHUB_SIGN_IN_METHOD","github.com"),E(ko,go),Wr(ko,"PROVIDER_ID","google.com"),Wr(ko,"GOOGLE_SIGN_IN_METHOD","google.com"),E(Eo,mo),Wr(Eo,"PROVIDER_ID","twitter.com"),Wr(Eo,"TWITTER_SIGN_IN_METHOD","twitter.com"),To.prototype.ia=function(e){return this.signInMethod==Mo.EMAIL_LINK_SIGN_IN_METHOD?Qs(e,Cs,{email:this.a,oobCode:this.f}):Qs(e,Ws,{email:this.a,password:this.f})},To.prototype.b=function(e,t){return this.signInMethod==Mo.EMAIL_LINK_SIGN_IN_METHOD?Qs(e,Ts,{idToken:t,email:this.a,oobCode:this.f}):Qs(e,Bs,{idToken:t,email:this.a,password:this.f})},To.prototype.c=function(e,t){return so(this.ia(e),t)},To.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Gr(Mo,{PROVIDER_ID:"password"}),Gr(Mo,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Gr(Mo,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Oo.prototype.ia=function(e){return e.cb(Ao(this))},Oo.prototype.b=function(e,t){var n=Ao(this);return n.idToken=t,Qs(e,Ks,n)},Oo.prototype.c=function(e,t){var n=Ao(this);return n.operation="REAUTH",so(e=Qs(e,Js,n),t)},Oo.prototype.v=function(){var e={providerId:"phone"};return this.a.bb&&(e.verificationId=this.a.bb),this.a.ab&&(e.verificationCode=this.a.ab),this.a.Ja&&(e.temporaryProof=this.a.Ja),this.a.da&&(e.phoneNumber=this.a.da),e},Io.prototype.cb=function(e,t){var n=this.a.b;return xt(t.verify()).then((function(r){if("string"!=typeof r)throw new C("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":var i=m(e)?e.session:null,o=m(e)?e.phoneNumber:e;return(i&&i.type==io?i.Fa().then((function(e){return function(e,t){return Qs(e,Fs,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})})):i&&i.type==oo?i.Fa().then((function(t){return function(e,t){return Qs(e,Hs,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(e,t){return Qs(e,Rs,t)}(n,{phoneNumber:o,recaptchaToken:r})).then((function(e){return"function"==typeof t.reset&&t.reset(),e}),(function(e){throw"function"==typeof t.reset&&t.reset(),e}));default:throw new C("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Gr(Io,{PROVIDER_ID:"phone"}),Gr(Io,{PHONE_SIGN_IN_METHOD:"phone"}),jo.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},jo.prototype.S=function(){return this.h},jo.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var Fo,Ho=null;function Uo(e){var t="unauthorized-domain",n=void 0,r=jn(e);e=r.b,"chrome-extension"==(r=r.f)?n=Fe("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=Fe("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",C.call(this,t,n)}function zo(e,t,n){C.call(this,e,n),(e=t||{}).Gb&&Wr(this,"email",e.Gb),e.da&&Wr(this,"phoneNumber",e.da),e.credential&&Wr(this,"credential",e.credential),e.Wb&&Wr(this,"tenantId",e.Wb)}function Vo(e){if(e.code){var t=e.code||"";0==t.indexOf(M)&&(t=t.substring(M.length));var n={credential:No(e),Wb:e.tenantId};if(e.email)n.Gb=e.email;else if(e.phoneNumber)n.da=e.phoneNumber;else if(!n.credential)return new C(t,e.message||void 0);return new zo(t,n,e.message)}return null}function qo(){}function Wo(e){return e.c||(e.c=e.b())}function Go(){}function Ko(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Jo(){}function Xo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.oc,this),this.a.onerror=w(this.Pb,this),this.a.onprogress=w(this.pc,this),this.a.ontimeout=w(this.tc,this)}function Qo(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function Zo(e,t,n){this.reset(e,t,n,void 0,void 0)}E(Uo,C),E(zo,C),zo.prototype.v=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.v();return t&&ve(e,t),e},zo.prototype.toJSON=function(){return this.v()},qo.prototype.c=null,E(Go,qo),Go.prototype.a=function(){var e=Ko(this);return e?new ActiveXObject(e):new XMLHttpRequest},Go.prototype.b=function(){var e={};return Ko(this)&&(e[0]=!0,e[1]=!0),e},Fo=new Go,E(Jo,qo),Jo.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Xo;throw Error("Unsupported browser")},Jo.prototype.b=function(){return{}},(t=Xo.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},t.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},t.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Qo(this,4)},t.Pb=function(){this.status=500,this.response=this.responseText="",Qo(this,4)},t.tc=function(){this.Pb()},t.pc=function(){this.status=200,Qo(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Zo.prototype.a=null;function ea(e){this.f=e,this.b=this.c=this.a=null}function ta(e,t){this.name=e,this.value=t}Zo.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||S(),delete this.a},ta.prototype.toString=function(){return this.name};var na=new ta("SEVERE",1e3),ra=new ta("WARNING",900),ia=new ta("CONFIG",700),oa=new ta("FINE",500);ea.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(D("Root logger has no level set."),null)}(this).value)for(p(t)&&(t=t()),e=new Zo(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var aa={},sa=null;function la(e){var t;if(sa||(sa=new ea(""),aa[""]=sa,sa.c=ia),!(t=aa[e])){t=new ea(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=la(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,aa[e]=t}return t}function ca(e,t){e&&e.log(oa,t,void 0)}function ua(e){this.f=e}function da(e){_n.call(this),this.s=e,this.readyState=ha,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=la("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}E(ua,qo),ua.prototype.a=function(){return new da(this.f)},ua.prototype.b=function(e){return function(){return e}}({}),E(da,_n);var ha=0;function fa(e){e.c.read().then(e.nc.bind(e)).catch(e.Sa.bind(e))}function pa(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,ma(e)}function ma(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function va(e){_n.call(this),this.headers=new Mn,this.D=e||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=ga,this.w=this.R=!1}(t=da.prototype).open=function(e,t){if(this.readyState!=ha)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,ma(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};e&&(t.body=e),this.s.fetch(new Request(this.g,t)).then(this.sc.bind(this),this.Sa.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,pa(this,!1)),this.readyState=ha},t.sc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,ma(this)),this.a&&(this.readyState=3,ma(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==l.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,fa(this)):e.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?pa(this,!0):ma(this),3==this.readyState&&fa(this)}},t.rc=function(e){this.a&&(this.response=this.responseText=e,pa(this,!0))},t.qc=function(e){this.a&&(this.response=e,pa(this,!0))},t.Sa=function(e){var t=this.h;t&&t.log(ra,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&pa(this,!0)},t.setRequestHeader=function(e,t){this.i.append(e,t)},t.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(ra,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(ra,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},E(va,_n);var ga="";va.prototype.b=la("goog.net.XhrIo");var ya=/^https?$/i,ba=["POST","PUT"];function _a(e,t,n,r,i){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.N=!1,e.c=!0,e.a=e.D?e.D.a():Fo.a(),e.B=e.D?Wo(e.D):Wo(Fo),e.a.onreadystatechange=w(e.Sb,e);try{ca(e.b,$a(e,"Opening Xhr")),e.O=!0,e.a.open(n,String(t),!0),e.O=!1}catch(t){return ca(e.b,$a(e,"Error opening Xhr: "+t.message)),void ka(e,t)}t=r||"";var o=new Mn(e.headers);i&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(f(e)||"string"==typeof e)U(e,t,void 0);else for(var n=xn(e),r=Tn(e),i=r.length,o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}(i,(function(e,t){o.set(t,e)})),i=function(e){e:{for(var t=wa,n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"==typeof e?e.charAt(t):e[t]}(o.X()),r=l.FormData&&t instanceof l.FormData,!W(ba,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{Ta(e),0<e.g&&(e.w=function(e){return We&&it(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),ca(e.b,$a(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.w)),e.w?(e.a.timeout=e.g,e.a.ontimeout=w(e.Ka,e)):e.s=En(e.Ka,e.g,e)),ca(e.b,$a(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){ca(e.b,$a(e,"Send error: "+t.message)),ka(e,t)}}function wa(e){return"content-type"==e.toLowerCase()}function ka(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Sa(e),Ca(e)}function Sa(e){e.N||(e.N=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Ea(e){if(e.c&&void 0!==s)if(e.B[1]&&4==xa(e)&&2==Ma(e))ca(e.b,$a(e,"Local request error detected and ignored"));else if(e.i&&4==xa(e))En(e.Sb,0,e);else if(e.dispatchEvent("readystatechange"),4==xa(e)){ca(e.b,$a(e,"Request complete")),e.c=!1;try{var t,n=Ma(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.l).match(On)[1]||null;if(!o&&l.self&&l.self.location){var a=l.self.location.protocol;o=a.substr(0,a.length-1)}i=!ya.test(o?o.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<xa(e)?e.a.statusText:""}catch(t){ca(e.b,"Can not get status: "+t.message),c=""}e.h=c+" ["+Ma(e)+"]",Sa(e)}}finally{Ca(e)}}}function Ca(e,t){if(e.a){Ta(e);var n=e.a,r=e.B[0]?d:null;e.a=null,e.B=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){(e=e.b)&&e.log(na,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function Ta(e){e.a&&e.w&&(e.a.ontimeout=null),e.s&&(l.clearTimeout(e.s),e.s=null)}function xa(e){return e.a?e.a.readyState:0}function Ma(e){try{return 2<xa(e)?e.a.status:-1}catch(e){return-1}}function $a(e,t){return t+" ["+e.P+" "+e.l+" "+Ma(e)+"]"}function Pa(e){var t=Fa;this.g=[],this.w=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function Oa(e,t,n){e.a=!0,e.c=n,e.f=!t,Da(e)}function La(e){if(e.a){if(!e.u)throw new Na(e);e.u=!1}}function Aa(e,t,n,r){e.g.push([t,n,r]),e.a&&Da(e)}function Ia(e){return q(e.g,(function(e){return p(e[1])}))}function Da(e){if(e.h&&e.a&&Ia(e)){var t=e.h,n=Ba[t];n&&(l.clearTimeout(n.a),delete Ba[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var i=e.g.shift(),o=i[0],a=i[1];if(i=i[2],o=e.f?a:o)try{var s=o.call(i||e.s,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(L(t)||"function"==typeof l.Promise&&t instanceof l.Promise)&&(r=!0,e.i=!0)}catch(r){t=r,e.f=!0,Ia(e)||(n=!0)}}e.c=t,r&&(s=w(e.m,e,!0),r=w(e.m,e,!1),t instanceof Pa?(Aa(t,s,r),t.B=!0):t.then(s,r)),n&&(t=new ja(t),Ba[t.a]=t,e.h=t.a)}function Na(){A.call(this)}function Ra(){A.call(this)}function ja(e){this.a=l.setTimeout(w(this.c,this),0),this.b=e}(t=va.prototype).Ka=function(){void 0!==s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ca(this.b,$a(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(ca(this.b,$a(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ca(this))},t.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Ca(this,!0)),va.Za.Ba.call(this)},t.Sb=function(){this.wa||(this.O||this.i||this.f?Ea(this):this.Hc())},t.Hc=function(){Ea(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ga:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(na,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return ca(this.b,"Can not get response: "+e.message),null}},Pa.prototype.cancel=function(e){if(this.a)this.c instanceof Pa&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(e=new Ra(this),La(this),Oa(this,!1,e))}},Pa.prototype.m=function(e,t){this.i=!1,Oa(this,e,t)},Pa.prototype.then=function(e,t,n){var r,i,o=new _t((function(e,t){r=e,i=t}));return Aa(this,r,(function(e){e instanceof Ra?o.cancel():i(e)})),o.then(e,t,n)},Pa.prototype.$goog_Thenable=!0,E(Na,A),Na.prototype.message="Deferred has already fired",Na.prototype.name="AlreadyCalledError",E(Ra,A),Ra.prototype.message="Deferred was canceled",Ra.prototype.name="CanceledError",ja.prototype.c=function(){throw delete Ba[this.a],this.b};var Ba={};function Ya(e){var t={},n=t.document||document,r=Ee(e).toString(),i=ht(document,"SCRIPT"),o={Tb:i,Ka:void 0},a=new Pa(o),s=null,d=null!=t.timeout?t.timeout:5e3;return 0<d&&(s=window.setTimeout((function(){Ha(i,!0);var e=new Va(za,"Timeout reached for loading script "+r);La(a),Oa(a,!1,e)}),d),o.Ka=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(Ha(i,t.ud||!1,s),La(a),Oa(a,!0,null))},i.onerror=function(){Ha(i,!0,s);var e=new Va(Ua,"Error while loading script "+r);La(a),Oa(a,!1,e)},ve(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),st(i,o),function(e,t){ge(e,"HTMLScriptElement"),e.src=Ee(t),null===u&&(u=(t=(t=l.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""),(t=u)&&e.setAttribute("nonce",t)}(i,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(i),a}function Fa(){if(this&&this.Tb){var e=this.Tb;e&&"SCRIPT"==e.tagName&&Ha(e,!0,this.Ka)}}function Ha(e,t,n){null!=n&&l.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var Ua=0,za=1;function Va(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),A.call(this,n),this.code=e}function qa(e){this.f=e}function Wa(e,t,n){if(this.c=e,e=t||{},this.u=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||Ja,this.g=pe(e.secureTokenHeaders||Xa),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=e.firebaseTimeout||Qa,this.a=pe(e.firebaseHeaders||Za),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==br(),!(n=l.XMLHttpRequest||n&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!yr())throw new C("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yr()?this.f=new ua(self):_r()?this.f=new qa(n):this.f=new Jo,this.b=null}E(Va,A),E(qa,qo),qa.prototype.a=function(){return new this.f},qa.prototype.b=function(){return{}};var Ga,Ka="idToken",Ja=new Br(3e4,6e4),Xa={"Content-Type":"application/x-www-form-urlencoded"},Qa=new Br(3e4,6e4),Za={"Content-Type":"application/json"};function es(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function ts(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function ns(e,t,n,r,i,o,a){(function(){var e=Tr();return!((e=Sr(e)!=kr?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!We||!nt||9<nt)})()||yr()?e=w(e.w,e):(Ga||(Ga=new _t((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{l[is]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){Aa(e,null,t,void 0)}(Ya(Ce(rs,{onload:is})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=w(e.s,e)),e(t,n,r,i,o,a)}Wa.prototype.S=function(){return this.b},Wa.prototype.w=function(e,t,n,r,i,o){if(yr()&&(void 0===l.fetch||void 0===l.Headers||void 0===l.Request))throw new C("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new va(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}wn(a,"complete",(function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return ca(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(t){e=null}t&&t(e)})),kn(a,"ready",(function(){s&&clearTimeout(s),zt(this)})),kn(a,"timeout",(function(){s&&clearTimeout(s),zt(this),t&&t(null)})),_a(a,e,n,r,i)};var rs=new ye(we,"https://apis.google.com/js/client.js?onload=%{onload}"),is="__fcb"+Math.floor(1e6*Math.random()).toString();function os(e,t,n,r,i,o,a){var s=jn(t+n);Nn(s,"key",e.c),a&&Nn(s,"cb",S().toString());var l="GET"==r;if(l)for(var c in i)i.hasOwnProperty(c)&&Nn(s,c,i[c]);return new _t((function(t,n){ns(e,s.toString(),(function(e){e?e.error?n(el(e,o||{})):t(e):n(new C("network-request-failed"))}),r,l?void 0:nr(Ir(i)),e.a,e.i.get())}))}function as(e){if("string"!=typeof(e=e.email)||!pr.test(e))throw new C("invalid-email")}function ss(e){"email"in e&&as(e)}function ls(e){if(!e[Ka]){if(e.mfaPendingCredential)throw new C("multi-factor-auth-required",null,pe(e));throw new C("internal-error")}}function cs(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new C("internal-error")}else{if(!e.sessionInfo)throw new C("missing-verification-id");if(!e.code)throw new C("missing-verification-code")}}Wa.prototype.s=function(e,t,n,r,i){var o=this;Ga.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})})).o((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},Wa.prototype.vb=function(){return Qs(this,Ys,{})},Wa.prototype.xb=function(e,t){return Qs(this,js,{idToken:e,email:t})},Wa.prototype.yb=function(e,t){return Qs(this,Bs,{idToken:e,password:t})};var us={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ds(e){if(!e.phoneVerificationInfo)throw new C("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new C("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new C("missing-verification-code")}function hs(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new C("internal-error")}function fs(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(Qn(e=new Gn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function ps(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=Vo(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=Vo(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=Vo(e)):e.errorMessage&&(t=Zs(e.errorMessage)),t)throw t;ls(e)}function ms(e,t){return t.returnIdpCredential=!0,Qs(e,Us,t)}function vs(e,t){return t.returnIdpCredential=!0,Qs(e,Vs,t)}function gs(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,Qs(e,zs,t)}function ys(e){if(!e.oobCode)throw new C("invalid-action-code")}(t=Wa.prototype).zb=function(e,t){var n={idToken:e},r=[];return he(us,(function(e,i){var o=t[i];null===o?r.push(e):i in t&&(n[i]=o)})),r.length&&(n.deleteAttribute=r),Qs(this,js,n)},t.rb=function(e,t){return ve(e={requestType:"PASSWORD_RESET",email:e},t),Qs(this,As,e)},t.sb=function(e,t){return ve(e={requestType:"EMAIL_SIGNIN",email:e},t),Qs(this,Ps,e)},t.qb=function(e,t){return ve(e={requestType:"VERIFY_EMAIL",idToken:e},t),Qs(this,Os,e)},t.Ab=function(e,t,n){return ve(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),Qs(this,Ls,e)},t.cb=function(e){return Qs(this,Gs,e)},t.jb=function(e,t){return Qs(this,Ns,{oobCode:e,newPassword:t})},t.Pa=function(e){return Qs(this,_s,{oobCode:e})},t.fb=function(e){return Qs(this,bs,{oobCode:e})};var bs={endpoint:"setAccountInfo",A:ys,Y:"email",C:!0},_s={endpoint:"resetPassword",A:ys,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new C("internal-error")},C:!0},ws={endpoint:"signupNewUser",A:function(e){if(as(e),!e.password)throw new C("weak-password")},G:ls,U:!0,C:!0},ks={endpoint:"createAuthUri",C:!0},Ss={endpoint:"deleteAccount",M:["idToken"]},Es={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(e){if("array"!=h(e.deleteProvider))throw new C("internal-error")}},Cs={endpoint:"emailLinkSignin",M:["email","oobCode"],A:as,G:ls,U:!0,C:!0},Ts={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:as,G:ls,U:!0},xs={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:ds,G:ls,C:!0,La:!0},Ms={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:ds,G:ls,C:!0,La:!0},$s={endpoint:"getAccountInfo"},Ps={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new C("internal-error");as(e)},Y:"email",C:!0},Os={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new C("internal-error")},Y:"email",C:!0},Ls={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new C("internal-error")},Y:"email",C:!0},As={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new C("internal-error");as(e)},Y:"email",C:!0},Is={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},Ds={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new C("internal-error")}},Ns={endpoint:"resetPassword",A:ys,Y:"email",C:!0},Rs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},js={endpoint:"setAccountInfo",M:["idToken"],A:ss,U:!0},Bs={endpoint:"setAccountInfo",M:["idToken"],A:function(e){if(ss(e),!e.password)throw new C("weak-password")},G:ls,U:!0},Ys={endpoint:"signupNewUser",G:ls,U:!0,C:!0},Fs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(e){if(!e.phoneEnrollmentInfo)throw new C("internal-error");if(!e.phoneEnrollmentInfo.phoneNumber)throw new C("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new C("missing-app-credential")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new C("internal-error")},C:!0,La:!0},Hs={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new C("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new C("internal-error")},C:!0,La:!0},Us={endpoint:"verifyAssertion",A:hs,Wa:fs,G:ps,U:!0,C:!0},zs={endpoint:"verifyAssertion",A:hs,Wa:fs,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new C("user-not-found");if(e.errorMessage)throw Zs(e.errorMessage);ls(e)},U:!0,C:!0},Vs={endpoint:"verifyAssertion",A:function(e){if(hs(e),!e.idToken)throw new C("internal-error")},Wa:fs,G:ps,U:!0},qs={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new C("invalid-custom-token")},G:ls,U:!0,C:!0},Ws={endpoint:"verifyPassword",A:function(e){if(as(e),!e.password)throw new C("wrong-password")},G:ls,U:!0,C:!0},Gs={endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Ks={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new C("internal-error");cs(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",Vo(e);ls(e)}},Js={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Xs={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[Ka]^!!e.refreshToken)throw new C("internal-error")},C:!0,La:!0};function Qs(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(null==r||""===r)return!1}return!0}(n,t.M))return Mt(new C("internal-error"));var r,i=!!t.La,o=t.Rb||"POST";return xt(n).then(t.A).then((function(){return t.U&&(n.returnSecureToken=!0),t.C&&e.b&&void 0===n.tenantId&&(n.tenantId=e.b),os(e,i?e.l:e.h,t.endpoint,o,n,t.Eb,t.hb||!1)})).then((function(e){return r=e,t.Wa?t.Wa(n,r):r})).then(t.G).then((function(){if(!t.Y)return r;if(!(t.Y in r))throw new C("internal-error");return r[t.Y]}))}function Zs(e){return el({error:{errors:[{message:e}],code:400,message:e}})}function el(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new C(r[n]):null)return n;for(var i in n=e.error&&e.error.message||"",ve(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(i))return new C(r[i],t);return!t&&e&&(t=Ar(e)),new C("internal-error",t)}function tl(e){this.b=e,this.a=null,this.nb=function(e){return(ol||(ol=new _t((function(e,t){function n(){jr(),xr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){jr(),t(Error("Network Error"))},timeout:rl.get()})}if(xr("gapi.iframes.Iframe"))e();else if(xr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();l[r]=function(){xr("gapi.load")?n():t(Error("Network Error"))},xt(Ya(r=Ce(nl,{onload:r}))).o((function(){t(Error("Network Error"))}))}})).o((function(e){throw ol=null,e})))).then((function(){return new _t((function(t,n){xr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:xr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(o),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),il.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var nl=new ye(we,"https://apis.google.com/js/api.js?onload=%{onload}"),rl=new Br(3e4,6e4),il=new Br(5e3,15e3),ol=null;function al(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=Bn(this.i,"/__/auth/iframe"),Nn(this.a,"apiKey",this.g),Nn(this.a,"appName",this.h),this.b=null,this.c=[]}function sl(e,t,n,r,i){this.s=e,this.m=t,this.c=n,this.u=r,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function ll(e){try{return r.a.app(e).auth().Ea()}catch(e){return[]}}function cl(e,t,n,r,i){this.u=e,this.f=t,this.b=n,this.c=r||null,this.h=i||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function ul(e){var t=lr();return function(e){return Qs(e,Is,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=jn(t),r=n.f;n=n.b;for(var i=0;i<e.length;i++){var o=e[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=jn(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:fr.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new Uo(lr())}))}function dl(e){return e.l||(e.l=mr().then((function(){if(!e.s){var t=e.c,n=e.h,r=ll(e.b),i=new al(e.u,e.f,e.b);i.f=t,i.b=n,i.c=X(r||[]),e.s=i.toString()}e.i=new tl(e.s),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.nb.then((function(){e.a.register("authEvent",t,xr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.i,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=Bo(t.authEvent),n=0;n<e.g.length;n++)r=e.g[n](t)||r;return(n={}).status=r?"ACK":"ERROR",xt(n)}return n.status="ERROR",xt(n)}))}(e)}))),e.l}function hl(e){return e.m||(e.w=e.c?Cr(e.c,ll(e.b)):null,e.m=new Wa(e.f,O(e.h),e.w)),e.m}function fl(e,t,n,r,i,o,a,s,l,c,u){return(e=new sl(e,t,n,r,i)).l=o,e.g=a,e.i=s,e.b=pe(l||null),e.f=c,e.ub(u).toString()}function pl(e){if(this.a=e||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new C("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function ml(e){this.b=e,this.a={},this.f=w(this.c,this)}al.prototype.toString=function(){return this.f?Nn(this.a,"v",this.f):Xn(this.a.a,"v"),this.b?Nn(this.a,"eid",this.b):Xn(this.a.a,"eid"),this.c.length?Nn(this.a,"fw",this.c.join(",")):Xn(this.a.a,"fw"),this.a.toString()},sl.prototype.ub=function(e){return this.h=e,this},sl.prototype.toString=function(){var e=Bn(this.s,"/__/auth/handler");if(Nn(e,"apiKey",this.m),Nn(e,"appName",this.c),Nn(e,"authType",this.u),this.a.isOAuthProvider){var t=this.a;try{var n=r.a.app(this.c).auth().ja()}catch(e){n=null}for(var i in t.kb=n,Nn(e,"providerId",this.a.providerId),n=Ir((t=this.a).Fb))n[i]=n[i].toString();i=t.Oc,n=pe(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}t.lb&&t.kb&&!n[t.lb]&&(n[t.lb]=t.kb),fe(n)||Nn(e,"customParameters",Ar(n))}if("function"==typeof this.a.Nb&&((t=this.a.Nb()).length&&Nn(e,"scopes",t.join(","))),this.l?Nn(e,"redirectUrl",this.l):Xn(e.a,"redirectUrl"),this.g?Nn(e,"eventId",this.g):Xn(e.a,"eventId"),this.i?Nn(e,"v",this.i):Xn(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Rn(e,s)&&Nn(e,s,this.b[s]);return this.h?Nn(e,"tid",this.h):Xn(e.a,"tid"),this.f?Nn(e,"eid",this.f):Xn(e.a,"eid"),(s=ll(this.c)).length&&Nn(e,"fw",s.join(",")),e.toString()},(t=cl.prototype).Lb=function(e,t,n){var r=new C("popup-closed-by-user"),i=new C("web-storage-unsupported"),o=this,a=!1;return this.ka().then((function(){(function(e){var t={type:"webStorageSupport"};return dl(e).then((function(){return function(e,t){return e.nb.then((function(){return new _t((function(n){e.a.send(t.type,t,n,xr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.i,t)})).then((function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(o).then((function(n){n||(e&&dr(e),t(i),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(e){return new _t((function(t){return function n(){Cn(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!a)return Cn(n).then((function(){t(r)}))}))},t.Ub=function(){var e=Tr();return!Lr(e)&&!Rr(e)},t.Qb=function(){return!1},t.Jb=function(e,t,n,r,i,o,a,s){if(!e)return Mt(new C("popup-blocked"));if(a&&!Lr())return this.ka().o((function(t){dr(e),i(t)})),r(),xt();this.a||(this.a=ul(hl(this)));var l=this;return this.a.then((function(){var t=l.ka().o((function(t){throw dr(e),i(t),t}));return r(),t})).then((function(){(Ro(n),a)||cr(fl(l.u,l.f,l.b,t,n,null,o,l.c,void 0,l.h,s),e)})).o((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},t.Kb=function(e,t,n,r){this.a||(this.a=ul(hl(this)));var i=this;return this.a.then((function(){Ro(t),cr(fl(i.u,i.f,i.b,e,t,lr(),n,i.c,void 0,i.h,r))})).o((function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e}))},t.ka=function(){var e=this;return dl(this).then((function(){return e.i.nb})).o((function(){throw e.a=null,new C("network-request-failed")}))},t.Xb=function(){return!0},t.Ca=function(e){this.g.push(e)},t.Qa=function(e){K(this.g,(function(t){return t==e}))},(t=pl.prototype).get=function(e){return xt(this.a.getItem(e)).then((function(e){return e&&Dr(e)}))},t.set=function(e,t){return xt(this.a.setItem(e,Ar(t)))},t.T=function(e){return xt(this.a.removeItem(e))},t.ba=function(){},t.ha=function(){};var vl,gl=[];function yl(e,t,n){fe(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function bl(e){this.a=e}function _l(e){this.c=e,this.b=!1,this.a=[]}function wl(e,t,n,r){var i,o,a,s,l=n||{},c=null;if(e.b)return Mt(Error("connection_unavailable"));var u=r?800:50,d="undefined"!=typeof MessageChannel?new MessageChannel:null;return new _t((function(n,r){d?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),a=setTimeout((function(){r(Error("unsupported_event"))}),u),c={messageChannel:d,onMessage:o=function(e){e.data.eventId===i&&("ack"===e.data.status?(clearTimeout(a),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(s),void 0!==e.data.response?n(e.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))}},e.a.push(c),d.port1.addEventListener("message",o),e.c.postMessage({eventType:t,eventId:i,data:l},[d.port2])):r(Error("connection_unavailable"))})).then((function(t){return kl(e,c),t})).o((function(t){throw kl(e,c),t}))}function kl(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),K(e.a,(function(e){return e==t}))}}function Sl(){if(!Tl())throw new C("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=l.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var e=this;yr()&&self?(this.l=function(){var e=yr()?self:null;if(U(gl,(function(n){n.b==e&&(t=n)})),!t){var t=new ml(e);gl.push(t)}return t}(),yl(this.l,"keyChanged",(function(t,n){return Ol(e).then((function(t){return 0<t.length&&U(e.a,(function(e){e(t)})),{keyProcessed:W(t,n.key)}}))})),yl(this.l,"ping",(function(){return xt(["keyChanged"])}))):function(){var e=l.navigator;return e&&e.serviceWorker?xt().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).o((function(){return null})):xt(null)}().then((function(t){(e.h=t)&&(e.g=new _l(new bl(t)),wl(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&W(t[0].value,"keyChanged")&&(e.s=!0)})).o((function(){})))}))}function El(e){return new _t((function(t,n){var r=e.u.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(e){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new _t((function(t,n){var r=e.u.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return El(e)})).then((function(e){t(e)})).o((function(e){n(e)}))}}))}function Cl(e){return e.m||(e.m=El(e)),e.m}function Tl(){try{return!!l.indexedDB}catch(e){return!1}}function xl(e){return e.objectStore("firebaseLocalStorage")}function Ml(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function $l(e){return new _t((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Pl(e,t){return e.g&&e.h&&function(){var e=l.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?wl(e.g,"keyChanged",{key:t},e.s).then((function(){})).o((function(){})):xt()}function Ol(e){return Cl(e).then((function(e){var t=xl(Ml(e,!1));return t.getAll?$l(t.getAll()):new _t((function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=function e(t,n){var r,i=[];for(r in t)r in n?typeof t[r]!=typeof n[r]?i.push(r):"object"==typeof t[r]&&null!=t[r]&&null!=n[r]?0<e(t[r],n[r]).length&&i.push(r):t[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in t||i.push(r);return i}(e.c,n),e.c=n}return r}))}function Ll(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Al(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=xt().then((function(){if(Tl()){var e=Nr(),r="__sak"+e;return vl||(vl=new Sl),(n=vl).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.T(r)})).then((function(){return n})).o((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ba((function(e){U(t.a,(function(t){t(e)}))})),e}))}function Il(){this.a={},this.type="inMemory"}function Dl(){if(!function(){var e="Node"==br();if(!(e=Nl()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new C("internal-error","The LocalStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Nl()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Nl(){try{var e=l.localStorage,t=Nr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function Rl(){this.type="nullStorage"}function jl(){if(!function(){var e="Node"==br();if(!(e=Bl()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new C("internal-error","The SessionStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Bl()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Bl(){try{var e=l.sessionStorage,t=Nr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function Yl(){var e={};e.Browser=Ul,e.Node=zl,e.ReactNative=Vl,e.Worker=ql,this.a=e[br()]}ml.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,r=this.a[t];if(r&&0<r.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var i=[];U(r,(function(t){i.push(xt().then((function(){return t(e.origin,e.data.data)})))})),Pt(i).then((function(r){var i=[];U(r,(function(e){i.push({fulfilled:e.Mb,value:e.value,reason:e.reason?e.reason.message:void 0})})),U(i,(function(e){for(var t in e)void 0===e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:i})}))}},bl.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},_l.prototype.close=function(){for(;0<this.a.length;)kl(this,this.a[0]);this.b=!0},(t=Sl.prototype).set=function(e,t){var n,r=!1,i=this;return Cl(this).then((function(t){return $l((t=xl(Ml(n=t,!0))).get(e))})).then((function(o){var a=xl(Ml(n,!0));return o?(o.value=t,$l(a.put(o))):(i.b++,r=!0,(o={}).fbase_key=e,o.value=t,$l(a.add(o)))})).then((function(){return i.c[e]=t,Pl(i,e)})).ma((function(){r&&i.b--}))},t.get=function(e){return Cl(this).then((function(t){return $l(xl(Ml(t,!1)).get(e))})).then((function(e){return e&&e.value}))},t.T=function(e){var t=!1,n=this;return Cl(this).then((function(r){return t=!0,n.b++,$l(xl(Ml(r,!0)).delete(e))})).then((function(){return delete n.c[e],Pl(n,e)})).ma((function(){t&&n.b--}))},t.ba=function(e){0==this.a.length&&function(e){Ll(e),function t(){e.f=setTimeout((function(){e.i=Ol(e).then((function(t){0<t.length&&U(e.a,(function(e){e(t)}))})).then((function(){t()})).o((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}()}(this),this.a.push(e)},t.ha=function(e){K(this.a,(function(t){return t==e})),0==this.a.length&&Ll(this)},(t=Al.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},t.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},t.T=function(e){return this.b.then((function(t){return t.T(e)}))},t.ba=function(e){this.a.push(e)},t.ha=function(e){K(this.a,(function(t){return t==e}))},(t=Il.prototype).get=function(e){return xt(this.a[e])},t.set=function(e,t){return this.a[e]=t,xt()},t.T=function(e){return delete this.a[e],xt()},t.ba=function(){},t.ha=function(){},(t=Dl.prototype).get=function(e){var t=this;return xt().then((function(){return Dr(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return xt().then((function(){var r=Ar(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return xt().then((function(){t.a.removeItem(e)}))},t.ba=function(e){l.window&&ln(l.window,"storage",e)},t.ha=function(e){l.window&&dn(l.window,"storage",e)},(t=Rl.prototype).get=function(){return xt(null)},t.set=function(){return xt()},t.T=function(){return xt()},t.ba=function(){},t.ha=function(){},(t=jl.prototype).get=function(e){var t=this;return xt().then((function(){return Dr(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return xt().then((function(){var r=Ar(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return xt().then((function(){t.a.removeItem(e)}))},t.ba=function(){},t.ha=function(){};var Fl,Hl,Ul={F:Dl,$a:jl},zl={F:Dl,$a:jl},Vl={F:pl,$a:Rl},ql={F:Dl,$a:Rl},Wl={od:"local",NONE:"none",qd:"session"};function Gl(){var e=!(Rr(Tr())||!gr()),t=Lr(),n=Mr();this.m=e,this.h=t,this.l=n,this.a={},Fl||(Fl=new Yl),e=Fl;try{this.g=!sr()&&Hr()||!l.indexedDB?new e.a.F:new Al(yr()?new Il:new e.a.F)}catch(e){this.g=new Il,this.h=!0}try{this.i=new e.a.$a}catch(e){this.i=new Il}this.u=new Il,this.f=w(this.Vb,this),this.b={}}function Kl(){return Hl||(Hl=new Gl),Hl}function Jl(e,t){switch(t){case"session":return e.i;case"none":return e.u;default:return e.g}}function Xl(e,t){return"firebase:"+e.name+(t?":"+t:"")}function Ql(e,t,n){return n=Xl(t,n),"local"==t.F&&(e.b[n]=null),Jl(e,t.F).T(n)}function Zl(e){e.c&&(clearInterval(e.c),e.c=null)}function ec(e){this.a=e,this.b=Kl()}(t=Gl.prototype).get=function(e,t){return Jl(this,e.F).get(Xl(e,t))},t.set=function(e,t,n){var r=Xl(e,n),i=this,o=Jl(this,e.F);return o.set(r,t).then((function(){return o.get(r)})).then((function(t){"local"==e.F&&(i.b[r]=t)}))},t.addListener=function(e,t,n){e=Xl(e,t),this.l&&(this.b[e]=l.localStorage.getItem(e)),fe(this.a)&&(Jl(this,"local").ba(this.f),this.h||(sr()||!Hr())&&l.indexedDB||!this.l||function(e){Zl(e),e.c=setInterval((function(){for(var t in e.a){var n=l.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new Jt({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Vb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},t.removeListener=function(e,t,n){e=Xl(e,t),this.a[e]&&(K(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),fe(this.a)&&(Jl(this,"local").ha(this.f),Zl(this))},t.Vb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];void 0===r&&(r=null);var i=l.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.ib(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?Jl(this,"local").ha(this.f):Zl(this),this.m)if(n=l.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?l.localStorage.setItem(t,r):l.localStorage.removeItem(t);else if(this.b[t]===r&&void 0===e.a.a)return;var o=this;n=function(){void 0===e.a.a&&o.b[t]===l.localStorage.getItem(t)||(o.b[t]=l.localStorage.getItem(t),o.ib(t))},We&&nt&&10==nt&&l.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else U(e,w(this.ib,this))},t.ib=function(e){this.a[e]&&U(this.a[e],(function(e){e()}))};var tc,nc={name:"authEvent",F:"local"};function rc(){this.a=Kl()}function ic(e,t){this.b=oc,this.f=l.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=l.Int32Array?new Int32Array(64):Array(64),void 0===tc&&(tc=l.Int32Array?new Int32Array(hc):hc),this.reset()}E(ic,(function(){this.b=-1}));for(var oc=64,ac=oc-1,sc=[],lc=0;lc<ac;lc++)sc[lc]=0;var cc=J(128,sc);function uc(e){for(var t=e.f,n=e.l,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var o=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=o+a|0}r=0|e.a[0],i=0|e.a[1];var s=0|e.a[2],l=0|e.a[3],c=0|e.a[4],u=0|e.a[5],d=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&u^~c&d)+(0|tc[t])|0)+(0|n[t])|0)|0,o=d,d=u,u=c,c=l+a|0,l=s,s=i,i=r,r=a+h|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+u|0,e.a[6]=e.a[6]+d|0,e.a[7]=e.a[7]+o|0}function dc(e,t,n){void 0===n&&(n=t.length);var r=0,i=e.c;if("string"==typeof t)for(;r<n;)e.f[i++]=t.charCodeAt(r++),i==e.b&&(uc(e),i=0);else{if(!f(t))throw Error("message must be string or array");for(;r<n;){var o=t[r++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");e.f[i++]=o,i==e.b&&(uc(e),i=0)}}e.c=i,e.g+=n}ic.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):X(this.h)};var hc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function fc(){ic.call(this,8,pc)}E(fc,ic);var pc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function mc(e,t,n,r,i){this.u=e,this.i=t,this.l=n,this.m=r||null,this.s=i||null,this.h=t+":"+n,this.w=new rc,this.g=new ec(this.h),this.f=null,this.b=[],this.a=this.c=null}function vc(e){return new C("invalid-cordova-configuration",e)}function gc(e){var t=new fc;dc(t,e),e=[];var n=8*t.g;56>t.c?dc(t,cc,56-t.c):dc(t,cc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(uc(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return function(e){return V(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function yc(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function bc(e){return e.f||(e.f=e.ka().then((function(){return new _t((function(t){e.Ca((function n(r){return t(r),e.Qa(n),!1})),function(e){function t(t){r=!0,i&&i.cancel(),_c(e).then((function(r){var i=n;if(r&&t&&t.url){var o=null;-1!=(i=no(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Dr(Rn(o=jn(i),"firebaseError")||null))?T(o):null)?new jo(r.c,r.b,null,null,o,null,r.S()):new jo(r.c,r.b,i,r.f,null,null,r.S())),i=o||n}yc(e,i)}))}var n=new jo("unknown",null,null,null,new C("no-auth-event")),r=!1,i=Cn(500).then((function(){return _c(e).then((function(){r||yc(e,n)}))})),o=l.handleOpenURL;l.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(xr("BuildInfo.packageName",l).toLowerCase()+"://")&&t({url:e}),"function"==typeof o)try{o(e)}catch(e){console.error(e)}},Ho||(Ho=new Yo),function(e){var t=Ho;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"==typeof(e=xr("universalLinks.subscribe",l))&&e(null,t.b))}(t)}(e)}))}))),e.f}function _c(e){var t=null;return function(e){return e.b.get(nc,e.a).then((function(e){return Bo(e)}))}(e.g).then((function(n){return t=n,Ql((n=e.g).b,nc,n.a)})).then((function(){return t}))}function wc(e){this.a=e,this.b=Kl()}(t=mc.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(vr(void 0)?mr().then((function(){return new _t((function(e,t){var n=l.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):Mt(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof xr("universalLinks.subscribe",l))throw vc("cordova-universal-links-plugin-fix is not installed");if(void 0===xr("BuildInfo.packageName",l))throw vc("cordova-plugin-buildinfo is not installed");if("function"!=typeof xr("cordova.plugins.browsertab.openUrl",l))throw vc("cordova-plugin-browsertab is not installed");if("function"!=typeof xr("cordova.InAppBrowser.open",l))throw vc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new C("cordova-not-ready")}))},t.Lb=function(e,t){return t(new C("operation-not-supported-in-this-environment")),xt()},t.Jb=function(){return Mt(new C("operation-not-supported-in-this-environment"))},t.Xb=function(){return!1},t.Ub=function(){return!0},t.Qb=function(){return!0},t.Kb=function(e,t,n,r){if(this.c)return Mt(new C("redirect-operation-pending"));var i=this,o=l.document,a=null,s=null,c=null,u=null;return this.c=xt().then((function(){return Ro(t),bc(i)})).then((function(){return function(e,t,n,r,i){var o=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new jo(t,r,null,o,new C("no-auth-event"),null,i),s=xr("BuildInfo.packageName",l);if("string"!=typeof s)throw new C("invalid-cordova-configuration");var c=xr("BuildInfo.displayName",l),u={};if(Tr().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=s;else{if(!Tr().toLowerCase().match(/android/))return Mt(new C("operation-not-supported-in-this-environment"));u.apn=s}c&&(u.appDisplayName=c),o=gc(o),u.sessionId=o;var d=fl(e.u,e.i,e.l,t,n,null,r,e.m,u,e.s,i);return e.ka().then((function(){var t=e.h;return e.w.a.set(nc,a.v(),t)})).then((function(){var t=xr("cordova.plugins.browsertab.isAvailable",l);if("function"!=typeof t)throw new C("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!=typeof(n=xr("cordova.plugins.browsertab.openUrl",l)))throw new C("invalid-cordova-configuration");n(d)}else{if("function"!=typeof(n=xr("cordova.InAppBrowser.open",l)))throw new C("invalid-cordova-configuration");t=Tr(),e.a=n(d,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,e,t,n,r)})).then((function(){return new _t((function(e,t){s=function(){var t=xr("cordova.plugins.browsertab.close",l);return e(),"function"==typeof t&&t(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(s),c=function(){a||(a=Cn(2e3).then((function(){t(new C("redirect-cancelled-by-user"))})))},u=function(){Yr()&&c()},o.addEventListener("resume",c,!1),Tr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",u,!1)})).o((function(e){return _c(i).then((function(){throw e}))}))})).ma((function(){c&&o.removeEventListener("resume",c,!1),u&&o.removeEventListener("visibilitychange",u,!1),a&&a.cancel(),s&&i.Qa(s),i.c=null}))},t.Ca=function(e){this.b.push(e),bc(this).o((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new jo("unknown",null,null,null,new C("no-auth-event")),e(t))}))},t.Qa=function(e){K(this.b,(function(t){return t==e}))};var kc={name:"pendingRedirect",F:"session"};function Sc(e){return Ql(e.b,kc,e.a)}function Ec(e,t,n){this.i={},this.w=0,this.D=e,this.u=t,this.m=n,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new jc,this.B=new Uc,this.g=new wc(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=Cc(this.D,this.u,this.m,x)}function Cc(e,t,n,i){var o=r.a.SDK_VERSION||null;return vr()?new mc(e,t,n,o,i):new cl(e,t,n,o,i)}function Tc(e){e.f||(e.f=!0,e.a.Ca(e.l));var t=e.a;return e.a.ka().o((function(n){throw e.a==t&&e.reset(),n}))}function xc(e){e.a.Ub()&&Tc(e).o((function(t){var n=new jo("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));Ac(t)&&e.s(n)})),e.a.Qb()||Bc(e.b)}function Mc(e,t){W(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(kc,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Sc(e.g).then((function(){Tc(e).o((function(t){var n=new jo("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));Ac(t)&&e.s(n)}))})):xc(e)})).o((function(){xc(e)}))}function $c(e,t){K(e.h,(function(e){return e==t}))}Ec.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=Cc(this.D,this.u,this.m),this.i={}},Ec.prototype.s=function(e){if(!e)throw new C("invalid-auth-event");if(6e5<=S()-this.w&&(this.i={},this.w=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Cb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,r),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.w=S())),t=!0;break}}return Bc(this.b),t};var Pc=new Br(2e3,1e4),Oc=new Br(3e4,6e4);function Lc(e,t,n,r,i,o,a){return e.a.Jb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ca(e.l))}),(function(){e.reset()}),i,o,a)}function Ac(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Ic(e,t,n,r,i){var o;return function(e){return e.b.set(kc,"pending",e.a)}(e.g).then((function(){return e.a.Kb(t,n,r,i).o((function(t){if(Ac(t))throw new C("operation-not-supported-in-this-environment");return o=t,Sc(e.g).then((function(){throw o}))})).then((function(){return e.a.Xb()?new _t((function(){})):Sc(e.g).then((function(){return e.pa()})).then((function(){})).o((function(){}))}))}))}function Dc(e,t,n,r,i){return e.a.Lb(r,(function(e){t.la(n,null,e,i)}),Pc.get())}Ec.prototype.pa=function(){return this.b.pa()};var Nc={};function Rc(e,t,n){var r=t+":"+n;return Nc[r]||(Nc[r]=new Ec(e,t,n)),Nc[r]}function jc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Bc(e){e.g||(e.g=!0,Hc(e,!1,null,null))}function Yc(e){e.g&&!e.i&&Hc(e,!1,null,null)}function Fc(e,t){if(e.b=function(){return xt(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function Hc(e,t,n,r){t?r?function(e,t){if(e.b=function(){return Mt(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):Fc(e,n):Fc(e,{user:null}),e.f=[],e.c=[]}function Uc(){}function zc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(e){this.Bb=e},enumerable:!1})}function Vc(e,t){this.a=t,Wr(this,"verificationId",e)}function qc(e,t,n,r){return new Io(e).cb(t,n).then((function(e){return new Vc(e,r)}))}function Wc(e){var t=Hi(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new C("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Gr(this,{token:e,expirationTime:Fr(1e3*t.exp),authTime:Fr(1e3*t.auth_time),issuedAtTime:Fr(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function Gc(e,t,n){var r=t&&t[Jc];if(!r)throw new C("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=pe(t),this.g=n,this.c=new ro(null,r),this.b=[];var i=this;U(t[Kc]||[],(function(e){(e=Qr(e))&&i.b.push(e)})),Wr(this,"auth",this.a),Wr(this,"session",this.c),Wr(this,"hints",this.b)}jc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},jc.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,r=e.b,i=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?e.a?(Hc(this,!0,null,e.a),xt()):t.Da(n,r)?function(e,t,n){n=n.Da(t.c,t.b);var r=t.g,i=t.f,o=t.i,a=t.S(),s=!!t.c.match(/Redirect$/);n(r,i,a,o).then((function(t){Hc(e,s,t,null)})).o((function(t){Hc(e,s,null,t)}))}(this,e,t):Mt(new C("invalid-auth-event")):(Hc(this,!1,null,null),xt())}else Mt(new C("invalid-auth-event"))},jc.prototype.pa=function(){var e=this;return new _t((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new C("timeout");e.a&&e.a.cancel(),e.a=Cn(Oc.get()).then((function(){e.b||(e.g=!0,Hc(e,!0,null,t))}))}(e))}))},Uc.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.la(e.c,null,e.a,e.b),xt()):t.Da(n,r)?function(e,t){var n=e.b,r=e.c;t.Da(r,n)(e.g,e.f,e.S(),e.i).then((function(e){t.la(r,e,null,n)})).o((function(e){t.la(r,null,e,n)}))}(e,t):Mt(new C("invalid-auth-event"))}else Mt(new C("invalid-auth-event"))},Vc.prototype.confirm=function(e){return e=Do(this.verificationId,e),this.a(e)};var Kc="mfaInfo",Jc="mfaPendingCredential";function Xc(e,t,n,r){C.call(this,"multi-factor-auth-required",r,t),this.b=new Gc(e,t,n),Wr(this,"resolver",this.b)}function Qc(e,t,n){if(e&&m(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new Xc(t,e.serverResponse,n,e.message)}catch(e){}return null}function Zc(){}function eu(e){Wr(this,"factorId",e.ea),this.a=e}function tu(e){if(eu.call(this,e),this.a.ea!=Io.PROVIDER_ID)throw new C("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function nu(e,t){for(var n in Kt.call(this,e),t)this[n]=t[n]}function ru(e,t){this.a=e,this.b=[],this.c=w(this.wc,this),ln(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&U(t.multiFactor.enrolledFactors,(function(e){var t=null,r={};if(e){e.uid&&(r[ti]=e.uid),e.displayName&&(r[Zr]=e.displayName),e.enrollmentTime&&(r[ei]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[ni]=e.phoneNumber);try{t=new ri(r)}catch(e){}e=t}else e=null;e&&n.push(e)})),iu(this,n)}function iu(e,t){e.b=t,Wr(e,"enrolledFactors",t)}function ou(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function au(e){this.c=e,this.b=this.a=null}function su(e){return e.b&&1e3*e.b.c||0}function lu(e,t){var n=t.refreshToken;e.b=Fi(t[Ka]||""),e.a=n}function cu(e,t){return function(e,t){return new _t((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?ns(e,e.u+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(el(e)):e.access_token&&e.refresh_token?n(e):r(new C("internal-error")):r(new C("network-request-failed"))}),"POST",Jn(t).toString(),e.g,e.m.get()):r(new C("internal-error"))}))}(e.c,t).then((function(t){return e.b=Fi(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function uu(e,t){this.a=e||null,this.b=t||null,Gr(this,{lastSignInTime:Fr(t||null),creationTime:Fr(e||null)})}function du(e,t,n,r,i,o){Gr(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:t})}function hu(e,t,n){this.N=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null,e=r.a.SDK_VERSION?Cr(r.a.SDK_VERSION):null,this.a=new Wa(this.l,O(x),e),this.b=new au(this.a),bu(this,t[Ka]),lu(this.b,t),Wr(this,"refreshToken",this.b.a),ku(this,n||{}),_n.call(this),this.P=!1,this.s&&$r()&&(this.i=Rc(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(e){return new ou((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=su(e.b)-S()-3e5;return 0<t?t:0}))}(this),this.Z=w(this.Ma,this);var i=this;this.oa=null,this.za=function(e){i.va(e.g)},this.aa=null,this.W=[],this.ya=function(e){pu(i,e.c)},this.$=null,this.O=new ru(this,n),Wr(this,"multiFactor",this.O)}function fu(e,t){e.aa&&dn(e.aa,"languageCodeChanged",e.za),(e.aa=t)&&ln(t,"languageCodeChanged",e.za)}function pu(e,t){e.W=t,ts(e.a,r.a.SDK_VERSION?Cr(r.a.SDK_VERSION,e.W):null)}function mu(e,t){e.$&&dn(e.$,"frameworkChanged",e.ya),(e.$=t)&&ln(t,"frameworkChanged",e.ya)}function vu(e){try{return r.a.app(e.m).auth()}catch(t){throw new C("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function gu(e){e.D||e.B.b||(e.B.start(),dn(e,"tokenChanged",e.Z),ln(e,"tokenChanged",e.Z))}function yu(e){dn(e,"tokenChanged",e.Z),e.B.stop()}function bu(e,t){e.xa=t,Wr(e,"_lat",t)}function _u(e){for(var t=[],n=0;n<e.R.length;n++)t.push(e.R[n](e));return Pt(t).then((function(){return e}))}function wu(e){e.i&&!e.P&&(e.P=!0,Mc(e.i,e))}function ku(e,t){Gr(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new uu(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Su(){}function Eu(e){return xt().then((function(){if(e.D)throw new C("app-deleted")}))}function Cu(e){return V(e.providerData,(function(e){return e.providerId}))}function Tu(e,t){t&&(xu(e,t.providerId),e.providerData.push(t))}function xu(e,t){K(e.providerData,(function(e){return e.providerId==t}))}function Mu(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Wr(e,t,n)}function $u(e,t){e!=t&&(Gr(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?Wr(e,"metadata",function(e){return new uu(e.a,e.b)}(t.metadata)):Wr(e,"metadata",new uu),U(t.providerData,(function(t){Tu(e,t)})),function(e,t){e.b=t.b,e.a=t.a}(e.b,t.b),Wr(e,"refreshToken",e.b.a),iu(e.O,t.O.b))}function Pu(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return Qs(e.a,$s,{idToken:t}).then(w(e.Ic,e))}(e,t).then((function(){return n||Mu(e,"isAnonymous",!1),t}))}))}function Ou(e,t){t[Ka]&&e.xa!=t[Ka]&&(lu(e.b,t),e.dispatchEvent(new nu("tokenChanged")),bu(e,t[Ka]),Mu(e,"refreshToken",e.b.a))}function Lu(e,t){return Pu(e).then((function(){if(W(Cu(e),t))return _u(e).then((function(){throw new C("provider-already-linked")}))}))}function Au(e,t,n){return Kr({user:e,credential:No(t),additionalUserInfo:t=Wi(t),operationType:n})}function Iu(e,t){return Ou(e,t),e.reload().then((function(){return e}))}function Du(e,t,n,i,o){if(!$r())return Mt(new C("operation-not-supported-in-this-environment"));if(e.h&&!o)return Mt(e.h);var a=qi(n.providerId),s=Nr(e.uid+":::"),l=null;(!Lr()||gr())&&e.s&&n.isOAuthProvider&&(l=fl(e.s,e.l,e.m,t,n,null,s,r.a.SDK_VERSION||null,null,null,e.tenantId));var c=hr(l,a&&a.ta,a&&a.sa);return i=i().then((function(){if(Ru(e),!o)return e.I().then((function(){}))})).then((function(){return Lc(e.i,c,t,n,s,!!l,e.tenantId)})).then((function(){return new _t((function(n,r){e.la(t,null,new C("cancelled-popup-request"),e.g||null),e.f=n,e.w=r,e.g=s,e.c=Dc(e.i,e,t,c,s)}))})).then((function(e){return c&&dr(c),e?Kr(e):null})).o((function(e){throw c&&dr(c),e})),ju(e,i,o)}function Nu(e,t,n,r,i){if(!$r())return Mt(new C("operation-not-supported-in-this-environment"));if(e.h&&!i)return Mt(e.h);var o=null,a=Nr(e.uid+":::");return r=r().then((function(){if(Ru(e),!i)return e.I().then((function(){}))})).then((function(){return e.fa=a,_u(e)})).then((function(t){return e.ga&&(t=(t=e.ga).b.set(Fu,e.v(),t.a)),t})).then((function(){return Ic(e.i,t,n,a,e.tenantId)})).o((function(t){if(o=t,e.ga)return Hu(e.ga);throw o})).then((function(){if(o)throw o})),ju(e,r,i)}function Ru(e){if(!e.i||!e.P){if(e.i&&!e.P)throw new C("internal-error");throw new C("auth-domain-config-required")}}function ju(e,t,n){var r=function(e,t,n){return e.h&&!n?(t.cancel(),Mt(e.h)):t.o((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.h||e.dispatchEvent(new nu("userInvalidated")),e.h=t),t}))}(e,t,n);return e.N.push(r),r.ma((function(){G(e.N,r)})),r.o((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=Qc(t.v(),vu(e),w(e.hc,e))),n||t}))}function Bu(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[Ka]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=new hu(t,n,e);return e.providerData&&U(e.providerData,(function(e){e&&Tu(r,Kr(e))})),e.redirectEventId&&(r.fa=e.redirectEventId),r}function Yu(e){this.a=e,this.b=Kl()}Gc.prototype.Pc=function(e){var t=this;return e.ob(this.a.b,this.c).then((function(e){var n=pe(t.f);return delete n[Kc],delete n[Jc],ve(n,e),t.g(n)}))},E(Xc,C),Zc.prototype.ob=function(e,t,n){return t.type==io?function(e,t,n,r){return n.Fa().then((function(n){return n={idToken:n},void 0!==r&&(n.displayName=r),ve(n,{phoneVerificationInfo:Ao(e.a)}),Qs(t,xs,n)}))}(this,e,t,n):function(e,t,n){return n.Fa().then((function(n){return ve(n={mfaPendingCredential:n},{phoneVerificationInfo:Ao(e.a)}),Qs(t,Ms,n)}))}(this,e,t)},E(eu,Zc),E(tu,eu),E(nu,Kt),(t=ru.prototype).wc=function(e){iu(this,function(e){var t=[];return U(e.mfaInfo||[],(function(e){(e=Qr(e))&&t.push(e)})),t}(e.ed))},t.Ob=function(){return this.a.I().then((function(e){return new ro(e,null)}))},t.dc=function(e,t){var n=this,r=this.a.a;return this.Ob().then((function(n){return e.ob(r,n,t)})).then((function(e){return Ou(n.a,e),n.a.reload()}))},t.$c=function(e){var t=this,n="string"==typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return Qs(r,Xs,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=z(t.b,(function(e){return e.uid!=n}));return iu(t,r),Ou(t.a,e),t.a.reload().o((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},t.v=function(){return{multiFactor:{enrolledFactors:V(this.b,(function(e){return e.v()}))}}},ou.prototype.start=function(){this.a=this.c,function e(t,n){t.stop(),t.b=Cn(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then((function(){return function(){var e=l.document,t=null;return Yr()||!e?xt():new _t((function(n){t=function(){Yr()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).o((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return t.h()})).then((function(){e(t,!0)})).o((function(n){t.i(n)&&e(t,!1)}))}(this,!0)},ou.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},au.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:su(this)}},au.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?Mt(new C("user-token-expired")):e||!this.b||S()>su(this)-3e4?this.a?cu(this,{grant_type:"refresh_token",refresh_token:this.a}):xt(null):xt({accessToken:this.b.toString(),refreshToken:this.a})},uu.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},E(hu,_n),hu.prototype.va=function(e){this.oa=e,es(this.a,e)},hu.prototype.ja=function(){return this.oa},hu.prototype.Ea=function(){return X(this.W)},hu.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Wr(hu.prototype,"providerId","firebase"),(t=hu.prototype).reload=function(){var e=this;return ju(this,Eu(this).then((function(){return Pu(e).then((function(){return _u(e)})).then(Su)})))},t.mc=function(e){return this.I(e).then((function(e){return new Wc(e)}))},t.I=function(e){var t=this;return ju(this,Eu(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new C("internal-error");return e.accessToken!=t.xa&&(bu(t,e.accessToken),t.dispatchEvent(new nu("tokenChanged"))),Mu(t,"refreshToken",e.refreshToken),e.accessToken})))},t.Ic=function(e){if(!(e=e.users)||!e.length)throw new C("internal-error");ku(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?V(e,(function(e){return new du(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Tu(this,t[n]);Mu(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new nu("userReloaded",{ed:e}))},t.Jc=function(e){return Vr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(e)},t.pb=function(e){var t=this,n=null;return ju(this,e.c(this.a,this.uid).then((function(e){return Ou(t,e),n=Au(t,e,"reauthenticate"),t.h=null,t.reload()})).then((function(){return n})),!0)},t.Ac=function(e){return Vr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(e)},t.mb=function(e){var t=this,n=null;return ju(this,Lu(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=Au(t,e,"link"),Iu(t,e)})).then((function(){return n})))},t.Bc=function(e,t){var n=this;return ju(this,Lu(this,"phone").then((function(){return qc(vu(n),e,t,w(n.mb,n))})))},t.Kc=function(e,t){var n=this;return ju(this,xt().then((function(){return qc(vu(n),e,t,w(n.pb,n))})),!0)},t.xb=function(e){var t=this;return ju(this,this.I().then((function(n){return t.a.xb(n,e)})).then((function(e){return Ou(t,e),t.reload()})))},t.cd=function(e){var t=this;return ju(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Ou(t,e),t.reload()})))},t.yb=function(e){var t=this;return ju(this,this.I().then((function(n){return t.a.yb(n,e)})).then((function(e){return Ou(t,e),t.reload()})))},t.zb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Eu(this);var t=this;return ju(this,this.I().then((function(n){return t.a.zb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Ou(t,e),Mu(t,"displayName",e.displayName||null),Mu(t,"photoURL",e.photoUrl||null),U(t.providerData,(function(e){"password"===e.providerId&&(Wr(e,"displayName",t.displayName),Wr(e,"photoURL",t.photoURL))})),_u(t)})).then(Su))},t.ad=function(e){var t=this;return ju(this,Pu(this).then((function(n){return W(Cu(t),e)?function(e,t,n){return Qs(e,Es,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return U(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),U(Cu(t),(function(e){n[e]||xu(t,e)})),n[Io.PROVIDER_ID]||Wr(t,"phoneNumber",null),_u(t)})):_u(t).then((function(){throw new C("no-such-provider")}))})))},t.delete=function(){var e=this;return ju(this,this.I().then((function(t){return Qs(e.a,Ss,{idToken:t})})).then((function(){e.dispatchEvent(new nu("userDeleted"))}))).then((function(){for(var t=0;t<e.N.length;t++)e.N[t].cancel("app-deleted");fu(e,null),mu(e,null),e.N=[],e.D=!0,yu(e),Wr(e,"refreshToken",null),e.i&&$c(e.i,e)}))},t.Cb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.fa||null)==t||"reauthViaRedirect"==e&&(this.fa||null)==t)},t.la=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?w(this.Hb,this):"reauthViaPopup"==e&&t==(this.g||null)?w(this.Ib,this):"linkViaRedirect"==e&&(this.fa||null)==t?w(this.Hb,this):"reauthViaRedirect"==e&&(this.fa||null)==t?w(this.Ib,this):null},t.Cc=function(e){var t=this;return Du(this,"linkViaPopup",e,(function(){return Lu(t,e.providerId).then((function(){return _u(t)}))}),!1)},t.Lc=function(e){return Du(this,"reauthViaPopup",e,(function(){return xt()}),!0)},t.Dc=function(e){var t=this;return Nu(this,"linkViaRedirect",e,(function(){return Lu(t,e.providerId)}),!1)},t.Mc=function(e){return Nu(this,"reauthViaRedirect",e,(function(){return xt()}),!0)},t.Hb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return ju(this,this.I().then((function(n){return vs(i.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return o=Au(i,e,"link"),Iu(i,e)})).then((function(){return o})))},t.Ib=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return ju(this,xt().then((function(){return so(gs(i.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),i.uid)})).then((function(e){return o=Au(i,e,"reauthenticate"),Ou(i,e),i.h=null,i.reload()})).then((function(){return o})),!0)},t.qb=function(e){var t=this,n=null;return ju(this,this.I().then((function(t){return n=t,void 0===e||fe(e)?{}:Ri(new xi(e))})).then((function(e){return t.a.qb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},t.Ab=function(e,t){var n=this,r=null;return ju(this,this.I().then((function(e){return r=e,void 0===t||fe(t)?{}:Ri(new xi(t))})).then((function(t){return n.a.Ab(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},t.hc=function(e){var t=null,n=this;return ju(this,e=so(xt(e),n.uid).then((function(e){return t=Au(n,e,"reauthenticate"),Ou(n,e),n.h=null,n.reload()})).then((function(){return t})),!0)},t.toJSON=function(){return this.v()},t.v=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&ve(e,this.metadata.v()),U(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),ve(e,this.O.v()),e};var Fu={name:"redirectUser",F:"session"};function Hu(e){return Ql(e.b,Fu,e.a)}function Uu(e){this.a=e,this.b=Kl(),this.c=null,this.f=function(e){var t=qu("local"),n=qu("session"),r=qu("none");return function(e,t,n){var r=Xl(t,n),i=Jl(e,t.F);return e.get(t,n).then((function(o){var a=null;try{a=Dr(l.localStorage.getItem(r))}catch(e){}if(a&&!o)return l.localStorage.removeItem(r),e.set(t,a,n);a&&o&&"localStorage"!=i.type&&l.localStorage.removeItem(r)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(i){return i?n:e.b.get(r,e.a).then((function(n){return n?r:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(Vu,e.a).then((function(e){return e?qu(e):t}))}))}))})).then((function(t){return e.c=t,zu(e,t.F)})).o((function(){e.c||(e.c=t)}))}(this),this.b.addListener(qu("local"),this.a,w(this.g,this))}function zu(e,t){var n,r=[];for(n in Wl)Wl[n]!==t&&r.push(Ql(e.b,qu(Wl[n]),e.a));return r.push(Ql(e.b,Vu,e.a)),function(e){return new _t((function(t,n){var r=e.length,i=[];if(r)for(var o=function(e,n){r--,i[e]=n,0==r&&t(i)},a=function(e){n(e)},s=0;s<e.length;s++)$t(e[s],k(o,s),a);else t(i)}))}(r)}Uu.prototype.g=function(){var e=this,t=qu("local");Ju(this,(function(){return xt().then((function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null})).then((function(n){if(n)return zu(e,"local").then((function(){e.c=t}))}))}))};var Vu={name:"persistence",F:"session"};function qu(e){return{name:"authUser",F:e}}function Wu(e,t){return Ju(e,(function(){return e.b.set(e.c,t.v(),e.a)}))}function Gu(e){return Ju(e,(function(){return Ql(e.b,e.c,e.a)}))}function Ku(e,t){return Ju(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),Bu(e||{})}))}))}function Ju(e,t){return e.f=e.f.then(t,t),e.f}function Xu(e){if(this.l=!1,Wr(this,"settings",new zc),Wr(this,"app",e),!od(this).options||!od(this).options.apiKey)throw new C("invalid-api-key");e=r.a.SDK_VERSION?Cr(r.a.SDK_VERSION):null,this.b=new Wa(od(this).options&&od(this).options.apiKey,O(x),e),this.P=[],this.m=[],this.O=[],this.$b=r.a.INTERNAL.createSubscribe(w(this.xc,this)),this.W=void 0,this.ac=r.a.INTERNAL.createSubscribe(w(this.yc,this)),rd(this,null),this.i=new Uu(od(this).options.apiKey+":"+od(this).name),this.B=new Yu(od(this).options.apiKey+":"+od(this).name),this.Z=cd(this,function(e){var t=od(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(Fu,e.a).then((function(e){return e&&t&&(e.authDomain=t),Bu(e||{})}))}(e.B,od(e).options.authDomain).then((function(t){return(e.D=t)&&(t.ga=e.B),Hu(e.B)}));return cd(e,t)}(e).then((function(){return Ku(e.i,t)})).then((function(t){return t?(t.ga=e.B,e.D&&(e.D.fa||null)==(t.fa||null)?t:t.reload().then((function(){return Wu(e.i,t).then((function(){return t}))})).o((function(n){return"auth/network-request-failed"==n.code?t:Gu(e.i)}))):null})).then((function(t){rd(e,t||null)}));return cd(e,n)}(this)),this.h=cd(this,function(e){return e.Z.then((function(){return td(e)})).o((function(){})).then((function(){if(!e.l)return e.oa()})).o((function(){})).then((function(){if(!e.l){e.aa=!0;var t=e.i;t.b.addListener(qu("local"),t.a,e.oa)}}))}(this)),this.aa=!1,this.oa=w(this.Xc,this),this.Ma=w(this.ca,this),this.xa=w(this.jc,this),this.ya=w(this.uc,this),this.za=w(this.vc,this),this.a=null,function(e){var t=od(e).options.authDomain,n=od(e).options.apiKey;t&&$r()&&(e.Zb=e.Z.then((function(){if(!e.l){if(e.a=Rc(t,n,od(e).name),Mc(e.a,e),ad(e)&&wu(ad(e)),e.D){wu(e.D);var r=e.D;r.va(e.ja()),fu(r,e),pu(r=e.D,e.N),mu(r,e),e.D=null}return e.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Ec,this),this.s=0,_n.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ja()},set:function(e){this.va(e)},enumerable:!1}),e.$=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(e){this.ub(e)},enumerable:!1}),e.R=null}(this),this.N=[]}function Qu(e){Kt.call(this,"languageCodeChanged"),this.g=e}function Zu(e){Kt.call(this,"frameworkChanged"),this.c=e}function ed(e){return e.Zb||Mt(new C("auth-domain-config-required"))}function td(e){if(!$r())return Mt(new C("operation-not-supported-in-this-environment"));var t=ed(e).then((function(){return e.a.pa()})).then((function(e){return e?Kr(e):null}));return cd(e,t)}function nd(e,t){var n={};return n.apiKey=od(e).options.apiKey,n.authDomain=od(e).options.authDomain,n.appName=od(e).name,e.Z.then((function(){return function(e,t,n,r){var i=new hu(e,t);return n&&(i.ga=n),r&&pu(i,r),i.reload().then((function(){return i}))}(n,t,e.B,e.Ea())})).then((function(t){return ad(e)&&t.uid==ad(e).uid?($u(ad(e),t),e.ca(t)):(rd(e,t),wu(t),e.ca(t))})).then((function(){ld(e)}))}function rd(e,t){ad(e)&&(function(e,t){K(e.R,(function(e){return e==t}))}(ad(e),e.Ma),dn(ad(e),"tokenChanged",e.xa),dn(ad(e),"userDeleted",e.ya),dn(ad(e),"userInvalidated",e.za),yu(ad(e))),t&&(t.R.push(e.Ma),ln(t,"tokenChanged",e.xa),ln(t,"userDeleted",e.ya),ln(t,"userInvalidated",e.za),0<e.s&&gu(t)),Wr(e,"currentUser",t),t&&(t.va(e.ja()),fu(t,e),pu(t,e.N),mu(t,e))}function id(e,t){var n=null,r=null;return cd(e,t.then((function(t){return n=No(t),r=Wi(t),nd(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=Qc(t.v(),e,w(e.ic,e))),n||t})).then((function(){return Kr({user:ad(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function od(e){return e.app}function ad(e){return e.currentUser}function sd(e){return ad(e)&&ad(e)._lat||null}function ld(e){if(e.aa){for(var t=0;t<e.m.length;t++)e.m[t]&&e.m[t](sd(e));if(e.W!==e.getUid()&&e.O.length)for(e.W=e.getUid(),t=0;t<e.O.length;t++)e.O[t]&&e.O[t](sd(e))}}function cd(e,t){return e.P.push(t),t.ma((function(){G(e.P,t)})),t}function ud(){}function dd(){this.a={},this.b=1e12}Uu.prototype.tb=function(e){var t=null,n=this;return function(e){var t=new C("invalid-persistence-type"),n=new C("unsupported-persistence-type");e:{for(r in Wl)if(Wl[r]==e){var r=!0;break e}r=!1}if(!r||"string"!=typeof e)throw t;switch(br()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;default:if(!Mr()&&"none"!==e)throw n}}(e),Ju(this,(function(){return e!=n.c.F?n.b.get(n.c,n.a).then((function(r){return t=r,zu(n,e)})).then((function(){if(n.c=qu(e),t)return n.b.set(n.c,t,n.a)})):xt()}))},E(Xu,_n),E(Qu,Kt),E(Zu,Kt),(t=Xu.prototype).tb=function(e){return cd(this,e=this.i.tb(e))},t.va=function(e){this.$===e||this.l||(this.$=e,es(this.b,this.$),this.dispatchEvent(new Qu(this.ja())))},t.ja=function(){return this.$},t.dd=function(){var e=l.navigator;this.va(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},t.Ec=function(e){this.N.push(e),ts(this.b,r.a.SDK_VERSION?Cr(r.a.SDK_VERSION,this.N):null),this.dispatchEvent(new Zu(this.N))},t.Ea=function(){return X(this.N)},t.ub=function(e){this.R===e||this.l||(this.R=e,this.b.b=this.R)},t.S=function(){return this.R},t.toJSON=function(){return{apiKey:od(this).options.apiKey,authDomain:od(this).options.authDomain,appName:od(this).name,currentUser:ad(this)&&ad(this).v()}},t.Cb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},t.la=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?w(this.gc,this):null},t.gc=function(e,t,n,r){var i=this,o={requestUri:e,postBody:r,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.Z.then((function(){return id(i,ms(i.b,o))}))},t.Vc=function(e){if(!$r())return Mt(new C("operation-not-supported-in-this-environment"));var t=this,n=qi(e.providerId),i=Nr(),o=null;(!Lr()||gr())&&od(this).options.authDomain&&e.isOAuthProvider&&(o=fl(od(this).options.authDomain,od(this).options.apiKey,od(this).name,"signInViaPopup",e,null,i,r.a.SDK_VERSION||null,null,null,this.S()));var a=hr(o,n&&n.ta,n&&n.sa);return cd(this,n=ed(this).then((function(n){return Lc(n,a,"signInViaPopup",e,i,!!o,t.S())})).then((function(){return new _t((function(e,n){t.la("signInViaPopup",null,new C("cancelled-popup-request"),t.g),t.f=e,t.w=n,t.g=i,t.c=Dc(t.a,t,"signInViaPopup",a,i)}))})).then((function(e){return a&&dr(a),e?Kr(e):null})).o((function(e){throw a&&dr(a),e})))},t.Wc=function(e){if(!$r())return Mt(new C("operation-not-supported-in-this-environment"));var t=this;return cd(this,ed(this).then((function(){return function(e){return Ju(e,(function(){return e.b.set(Vu,e.c.F,e.a)}))}(t.i)})).then((function(){return Ic(t.a,"signInViaRedirect",e,void 0,t.S())})))},t.pa=function(){var e=this;return td(this).then((function(t){return e.a&&Yc(e.a.b),t})).o((function(t){throw e.a&&Yc(e.a.b),t}))},t.bd=function(e){if(!e)return Mt(new C("null-user"));if(this.R!=e.tenantId)return Mt(new C("tenant-id-mismatch"));var t=this,n={};n.apiKey=od(this).options.apiKey,n.authDomain=od(this).options.authDomain,n.appName=od(this).name;var r=function(e,t,n,r){var i=e.b,o={};return o[Ka]=i.b&&i.b.toString(),o.refreshToken=i.a,t=new hu(t||{apiKey:e.l,authDomain:e.s,appName:e.m},o),n&&(t.ga=n),r&&pu(t,r),$u(t,e),t}(e,n,t.B,t.Ea());return cd(this,this.h.then((function(){if(od(t).options.apiKey!=e.l)return r.reload()})).then((function(){return ad(t)&&e.uid==ad(t).uid?($u(ad(t),e),t.ca(e)):(rd(t,r),wu(r),t.ca(r))})).then((function(){ld(t)})))},t.wb=function(){var e=this;return cd(this,this.h.then((function(){return e.a&&Yc(e.a.b),ad(e)?(rd(e,null),Gu(e.i).then((function(){ld(e)}))):xt()})))},t.Xc=function(){var e=this;return Ku(this.i,od(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=ad(e)&&t){n=ad(e).uid;var r=t.uid;n=null!=n&&""!==n&&null!=r&&""!==r&&n==r}if(n)return $u(ad(e),t),ad(e).I();(ad(e)||t)&&(rd(e,t),t&&(wu(t),t.ga=e.B),e.a&&Mc(e.a,e),ld(e))}}))},t.ca=function(e){return Wu(this.i,e)},t.jc=function(){ld(this),this.ca(ad(this))},t.uc=function(){this.wb()},t.vc=function(){this.wb()},t.ic=function(e){var t=this;return this.h.then((function(){return id(t,xt(e))}))},t.xc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(ad(t))}))},t.yc=function(e){var t=this;!function(e,t){e.O.push(t),cd(e,e.h.then((function(){!e.l&&W(e.O,t)&&e.W!==e.getUid()&&(e.W=e.getUid(),t(sd(e)))})))}(this,(function(){e.next(ad(t))}))},t.Gc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){p(e)?e(ad(r)):p(e.next)&&e.next(ad(r))})),this.$b(e,t,n)},t.Fc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){r.W=r.getUid(),p(e)?e(ad(r)):p(e.next)&&e.next(ad(r))})),this.ac(e,t,n)},t.kc=function(e){var t=this;return cd(this,this.h.then((function(){return ad(t)?ad(t).I(e).then((function(e){return{accessToken:e}})):null})))},t.Rc=function(e){var t=this;return this.h.then((function(){return id(t,Qs(t.b,qs,{token:e}))})).then((function(e){var n=e.user;return Mu(n,"isAnonymous",!1),t.ca(n),e}))},t.Sc=function(e,t){var n=this;return this.h.then((function(){return id(n,Qs(n.b,Ws,{email:e,password:t}))}))},t.cc=function(e,t){var n=this;return this.h.then((function(){return id(n,Qs(n.b,ws,{email:e,password:t}))}))},t.Ya=function(e){var t=this;return this.h.then((function(){return id(t,e.ia(t.b))}))},t.Qc=function(e){return Vr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(e)},t.vb=function(){var e=this;return this.h.then((function(){var t=ad(e);if(t&&t.isAnonymous){var n=Kr({providerId:null,isNewUser:!1});return Kr({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return id(e,e.b.vb()).then((function(t){var n=t.user;return Mu(n,"isAnonymous",!0),e.ca(n),t}))}))},t.getUid=function(){return ad(this)&&ad(this).uid||null},t.bc=function(e){this.addAuthTokenListener(e),this.s++,0<this.s&&ad(this)&&gu(ad(this))},t.Nc=function(e){var t=this;U(this.m,(function(n){n==e&&t.s--})),0>this.s&&(this.s=0),0==this.s&&ad(this)&&yu(ad(this)),this.removeAuthTokenListener(e)},t.addAuthTokenListener=function(e){var t=this;this.m.push(e),cd(this,this.h.then((function(){t.l||W(t.m,e)&&e(sd(t))})))},t.removeAuthTokenListener=function(e){K(this.m,(function(t){return t==e}))},t.delete=function(){this.l=!0;for(var e=0;e<this.P.length;e++)this.P[e].cancel("app-deleted");return this.P=[],this.i&&(e=this.i).b.removeListener(qu("local"),e.a,this.oa),this.a&&($c(this.a,this),Yc(this.a.b)),Promise.resolve()},t.fc=function(e){return cd(this,function(e,t){return Qs(e,ks,{identifier:t,continueUri:Pr()?lr():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.b,e))},t.zc=function(e){return!!Po(e)},t.sb=function(e,t){var n=this;return cd(this,xt().then((function(){var e=new xi(t);if(!e.c)throw new C("argument-error",Pi+" must be true when sending sign in link to email");return Ri(e)})).then((function(t){return n.b.sb(e,t)})).then((function(){})))},t.fd=function(e){return this.Pa(e).then((function(e){return e.data.email}))},t.jb=function(e,t){return cd(this,this.b.jb(e,t).then((function(){})))},t.Pa=function(e){return cd(this,this.b.Pa(e).then((function(e){return new ii(e)})))},t.fb=function(e){return cd(this,this.b.fb(e).then((function(){})))},t.rb=function(e,t){var n=this;return cd(this,xt().then((function(){return void 0===t||fe(t)?{}:Ri(new xi(t))})).then((function(t){return n.b.rb(e,t)})).then((function(){})))},t.Uc=function(e,t){return cd(this,qc(this,e,t,w(this.Ya,this)))},t.Tc=function(e,t){var n=this;return cd(this,xt().then((function(){var r=t||lr(),i=$o(e,r);if(!(r=Po(r)))throw new C("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new C("tenant-id-mismatch");return n.Ya(i)})))},ud.prototype.render=function(){},ud.prototype.reset=function(){},ud.prototype.getResponse=function(){},ud.prototype.execute=function(){};var hd=null;function fd(e,t){return(t=pd(t))&&e.a[t]||null}function pd(e){return(e=void 0===e?1e12:e)?e.toString():null}function md(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=at(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():ln(this.f,"click",this.i)}function vd(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function gd(){}function yd(){}dd.prototype.render=function(e,t){return this.a[this.b.toString()]=new md(e,t),this.b++},dd.prototype.reset=function(e){var t=fd(this,e);e=pd(e),t&&e&&(t.delete(),delete this.a[e])},dd.prototype.getResponse=function(e){return(e=fd(this,e))?e.getResponse():null},dd.prototype.execute=function(e){(e=fd(this,e))&&e.execute()},md.prototype.getResponse=function(){return vd(this),this.b},md.prototype.execute=function(){vd(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()}),6e4)}),500))},md.prototype.delete=function(){vd(this),this.g=!0,clearTimeout(this.a),this.a=null,dn(this.f,"click",this.i)},Wr(gd,"FACTOR_ID","phone"),yd.prototype.g=function(){return hd||(hd=new dd),xt(hd)},yd.prototype.c=function(){};var bd=null;function _d(){this.b=l.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var wd=new ye(we,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),kd=new Br(3e4,6e4);_d.prototype.g=function(e){var t=this;return new _t((function(n,r){var i=setTimeout((function(){r(new C("network-request-failed"))}),kd.get());!l.grecaptcha||e!==t.f&&!t.b?(l[t.a]=function(){if(l.grecaptcha){t.f=e;var o=l.grecaptcha.render;l.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(i),n(l.grecaptcha)}else clearTimeout(i),r(new C("internal-error"));delete l[t.a]},xt(Ya(Ce(wd,{onload:t.a,hl:e||""}))).o((function(){clearTimeout(i),r(new C("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(l.grecaptcha))}))},_d.prototype.c=function(){this.b--};var Sd=null;function Ed(e,t,n,r,i,o,a){if(Wr(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=t,this.g=null,a?(bd||(bd=new yd),a=bd):(Sd||(Sd=new _d),a=Sd),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[xd])throw new C("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Md],!l.document)throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!at(t)||!this.i&&at(t).hasChildNodes())throw new C("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Wa(e,o||null,i||null),this.w=r||function(){return null};var s=this;this.l=[];var c=this.a[Cd];this.a[Cd]=function(e){if($d(s,e),"function"==typeof c)c(e);else if("string"==typeof c){var t=xr(c,l);"function"==typeof t&&t(e)}};var u=this.a[Td];this.a[Td]=function(){if($d(s,null),"function"==typeof u)u();else if("string"==typeof u){var e=xr(u,l);"function"==typeof e&&e()}}}var Cd="callback",Td="expired-callback",xd="sitekey",Md="size";function $d(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(e){}}function Pd(e,t){return e.h.push(t),t.ma((function(){G(e.h,t)})),t}function Od(e){if(e.D)throw new C("internal-error","RecaptchaVerifier instance has been destroyed.")}function Ld(e,t,n){var i=!1;try{this.b=n||r.a.app()}catch(e){throw new C("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new C("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ea()}catch(e){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}a=r.a.SDK_VERSION?Cr(r.a.SDK_VERSION,a):null,Ed.call(this,n,e,t,(function(){try{var e=o.b.auth().ja()}catch(t){e=null}return e}),a,O(x),i)}function Ad(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<t.length;a++)if(t[a].optional)o=!0;else{if(o)throw new C("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=t.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=t[i].optional&&void 0===n[i],!t[i].K(n[i])&&!o){if(t=t[i],0>i||i>=Id.length)throw new C("internal-error","Argument validator received an unsupported number of arguments.");n=Id[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.J+".";break e}r=null}}if(r)throw new C("argument-error",e+" failed: "+r)}(t=Ed.prototype).Ga=function(){var e=this;return this.f?this.f:this.f=Pd(this,xt().then((function(){if(Pr()&&!yr())return mr();throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.w())})).then((function(t){return e.g=t,Qs(e.s,Ds,{})})).then((function(t){e.a[xd]=t.recaptchaSiteKey})).o((function(t){throw e.f=null,t})))},t.render=function(){Od(this);var e=this;return Pd(this,this.Ga().then((function(){if(null===e.c){var t=e.u;if(!e.i){var n=at(t);t=function(e,t,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!ot&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',He(a.name),'"'),a.type){o.push(' type="',He(a.type),'"');var s={};ve(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=ht(i,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):st(o,a)),2<r.length&&dt(i,o,r),o}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},t.verify=function(){Od(this);var e=this;return Pd(this,this.render().then((function(t){return new _t((function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(function(e,t){K(e.l,(function(e){return e==t}))}(e,i),n(t))};e.l.push(i),e.i&&e.g.execute(e.c)}}))})))},t.reset=function(){Od(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Od(this),this.D=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=at(this.u);for(var t;t=e.firstChild;)e.removeChild(t)}},E(Ld,Ed);var Id="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Dd(e,t){return{name:e||"",J:"a valid string",optional:!!t,K:function(e){return"string"==typeof e}}}function Nd(e,t){return{name:e||"",J:"a boolean",optional:!!t,K:function(e){return"boolean"==typeof e}}}function Rd(e,t){return{name:e||"",J:"a valid object",optional:!!t,K:m}}function jd(e,t){return{name:e||"",J:"a function",optional:!!t,K:p}}function Bd(e,t){return{name:e||"",J:"null",optional:!!t,K:function(e){return null===e}}}function Yd(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ia||!n)}}}function Fd(e,t){return m(e)&&"string"==typeof e.type&&e.type===t&&p(e.Fa)}function Hd(e){return m(e)&&"string"==typeof e.uid}function Ud(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||!p(e.verify))}}}function zd(e,t,n,r){return{name:n||"",J:e.J+" or "+t.J,optional:!!r,K:function(n){return e.K(n)||t.K(n)}}}function Vd(e,t){for(var n in t){var r=t[n].name;e[r]=Gd(r,e[n],t[n].j)}}function qd(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:k((function(e){return this[e]}),n),set:k((function(e,t,n,r){Ad(e,[n],[r],!0),this[t]=r}),r,n,t[n].gb),enumerable:!0})}}function Wd(e,t,n,r){e[t]=Gd(t,n,r)}function Gd(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Ad(o,n,e),t.apply(this,e)}if(!n)return t;var i,o=function(e){return(e=e.split("."))[e.length-1]}(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}Vd(Xu.prototype,{fb:{name:"applyActionCode",j:[Dd("code")]},Pa:{name:"checkActionCode",j:[Dd("code")]},jb:{name:"confirmPasswordReset",j:[Dd("code"),Dd("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Dd("email"),Dd("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Dd("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Dd("emailLink")]},Fc:{name:"onAuthStateChanged",j:[zd(Rd(),jd(),"nextOrObserver"),jd("opt_error",!0),jd("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[zd(Rd(),jd(),"nextOrObserver"),jd("opt_error",!0),jd("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Dd("email"),zd(Rd("opt_actionCodeSettings",!0),Bd(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Dd("email"),Rd("actionCodeSettings")]},tb:{name:"setPersistence",j:[Dd("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[Yd()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[Yd()]},Rc:{name:"signInWithCustomToken",j:[Dd("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Dd("email"),Dd("password")]},Tc:{name:"signInWithEmailLink",j:[Dd("email"),Dd("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Dd("phoneNumber"),Ud()]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[zd({name:"user",J:"an instance of Firebase User",optional:!1,K:function(e){return!!(e&&e instanceof hu)}},Bd(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Dd(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Dd("code")]}}),qd(Xu.prototype,{lc:{name:"languageCode",gb:zd(Dd(),Bd(),"languageCode")},ti:{name:"tenantId",gb:zd(Dd(),Bd(),"tenantId")}}),Xu.Persistence=Wl,Xu.Persistence.LOCAL="local",Xu.Persistence.SESSION="session",Xu.Persistence.NONE="none",Vd(hu.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[Nd("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Nd("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[Yd()]},mb:{name:"linkWithCredential",j:[Yd()]},Bc:{name:"linkWithPhoneNumber",j:[Dd("phoneNumber"),Ud()]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Yd()]},pb:{name:"reauthenticateWithCredential",j:[Yd()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Dd("phoneNumber"),Ud()]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[zd(Rd("opt_actionCodeSettings",!0),Bd(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Dd(null,!0)]},ad:{name:"unlink",j:[Dd("provider")]},xb:{name:"updateEmail",j:[Dd("email")]},yb:{name:"updatePassword",j:[Dd("password")]},cd:{name:"updatePhoneNumber",j:[Yd("phone")]},zb:{name:"updateProfile",j:[Rd("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Dd("email"),zd(Rd("opt_actionCodeSettings",!0),Bd(null,!0),"opt_actionCodeSettings",!0)]}}),Vd(dd.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Vd(ud.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Vd(_t.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),qd(zc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Nd("appVerificationDisabledForTesting")}}),Vd(Vc.prototype,{confirm:{name:"confirm",j:[Dd("verificationCode")]}}),Wd(ao,"fromJSON",(function(e){e="string"==typeof e?JSON.parse(e):e;for(var t,n=[po,xo,Lo,uo],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[zd(Dd(),Rd(),"json")]),Wd(Mo,"credential",(function(e,t){return new To(e,t)}),[Dd("email"),Dd("password")]),Vd(To.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(yo.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(yo,"credential",bo,[zd(Dd(),Rd(),"token")]),Wd(Mo,"credentialWithLink",$o,[Dd("email"),Dd("emailLink")]),Vd(_o.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(_o,"credential",wo,[zd(Dd(),Rd(),"token")]),Vd(ko.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(ko,"credential",So,[zd(Dd(),zd(Rd(),Bd()),"idToken"),zd(Dd(),Bd(),"accessToken",!0)]),Vd(Eo.prototype,{Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Wd(Eo,"credential",Co,[zd(Dd(),Rd(),"token"),Dd("secret",!0)]),Vd(go.prototype,{Aa:{name:"addScope",j:[Dd("scope")]},credential:{name:"credential",j:[zd(Dd(),zd(Rd(),Bd()),"optionsOrIdToken"),zd(Dd(),Bd(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Rd("customOAuthParameters")]}}),Vd(ho.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(lo.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Wd(Io,"credential",Do,[Dd("verificationId"),Dd("verificationCode")]),Vd(Io.prototype,{cb:{name:"verifyPhoneNumber",j:[zd(Dd(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(e){return!!e&&(e.session&&e.phoneNumber?Fd(e.session,io)&&"string"==typeof e.phoneNumber:e.session&&e.multiFactorHint?Fd(e.session,oo)&&Hd(e.multiFactorHint):e.session&&e.multiFactorUid?Fd(e.session,oo)&&"string"==typeof e.multiFactorUid:!!e.phoneNumber&&"string"==typeof e.phoneNumber)}},"phoneInfoOptions"),Ud()]}}),Vd(Oo.prototype,{v:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(C.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(zo.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Uo.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Xc.prototype,{toJSON:{name:"toJSON",j:[Dd(null,!0)]}}),Vd(Gc.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}}]}}),Vd(ru.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}},Dd("displayName",!0)]},$c:{name:"unenroll",j:[zd({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Hd},Dd(),"multiFactorInfoIdentifier")]}}),Vd(Ld.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Wd(yi,"parseLink",Ti,[Dd("link")]),Wd(gd,"assertion",(function(e){return new tu(e)}),[Yd("phone")]),function(){if(void 0===r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ai,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:oi,VERIFY_AND_CHANGE_EMAIL:si,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Xu,AuthCredential:ao,Error:C};Wd(e,"EmailAuthProvider",Mo,[]),Wd(e,"FacebookAuthProvider",yo,[]),Wd(e,"GithubAuthProvider",_o,[]),Wd(e,"GoogleAuthProvider",ko,[]),Wd(e,"TwitterAuthProvider",Eo,[]),Wd(e,"OAuthProvider",go,[Dd("providerId")]),Wd(e,"SAMLAuthProvider",vo,[Dd("providerId")]),Wd(e,"PhoneAuthProvider",Io,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof Xu)}}]),Wd(e,"RecaptchaVerifier",Ld,[zd(Dd(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Rd("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof r.a.app.App)}}]),Wd(e,"ActionCodeURL",yi,[]),Wd(e,"PhoneMultiFactorGenerator",gd,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new Xu(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),r.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:w((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:w(e.kc,e),addAuthTokenListener:w(e.bc,e),removeAuthTokenListener:w(e.Nc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.a.registerVersion("@firebase/auth","0.14.1"),r.a.INTERNAL.extendNamespace({User:hu})}()}).apply(void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}.call(this,n(10))},function(e,t,n){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=(i=n(6))&&"object"==typeof i&&"default"in i?i.default:i,s=n(4),l=n(15),c=n(26),u=n(14),d=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),l.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:l.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),h=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return l.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),f=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new d(t)}}catch(e){}return new h},p=f("localStorage"),m=f("sessionStorage"),v=new c.Logger("@firebase/database"),g=(o=1,function(){return o++}),y=function(e){var t=l.stringToByteArray(e),n=new l.Sha1;n.update(t);var r=n.digest();return l.base64.encodeByteArray(r)},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var i=e[r];Array.isArray(i)||i&&"object"==typeof i&&"number"==typeof i.length?n+=b.apply(null,i):n+="object"==typeof i?l.stringify(i):i,n+=" "}return n},_=null,w=!0,k=function(e,t){l.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(v.logLevel=c.LogLevel.VERBOSE,_=v.log.bind(v),t&&m.set("logging_enabled",!0)):"function"==typeof e?_=e:(_=null,m.remove("logging_enabled"))},S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===w&&(w=!1,null===_&&!0===m.get("logging_enabled")&&k(!0)),_){var n=b.apply(null,e);_(n)}},E=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];S.apply(void 0,s.__spread([e],t))}},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+b.apply(void 0,s.__spread(e));v.error(n)},T=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+b.apply(void 0,s.__spread(e));throw v.error(n),new Error(n)},x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+b.apply(void 0,s.__spread(e));v.warn(n)},M=function(e){return"number"==typeof e&&(e!=e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},$="[MIN_NAME]",P="[MAX_NAME]",O=function(e,t){if(e===t)return 0;if(e===$||t===P)return-1;if(t===$||e===P)return 1;var n=B(e),r=B(t);return null!==n?null!==r?n-r==0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},L=function(e,t){return e===t?0:e<t?-1:1},A=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+l.stringify(t))},I=function(e){if("object"!=typeof e||null===e)return l.stringify(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",i=0;i<t.length;i++)0!==i&&(r+=","),r+=l.stringify(t[i]),r+=":",r+=I(e[t[i]]);return r+="}"},D=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function N(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var R=function(e){l.assert(!M(e),"Invalid JSON number");var t,n,r,i,o;0===e?(n=0,r=0,t=1/e==-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var a=[];for(o=52;o;o-=1)a.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)a.push(n%2?1:0),n=Math.floor(n/2);a.push(t?1:0),a.reverse();var s=a.join(""),c="";for(o=0;o<64;o+=8){var u=parseInt(s.substr(o,8),2).toString(16);1===u.length&&(u="0"+u),c+=u}return c.toLowerCase()},j=new RegExp("^-?(0*)\\d{1,10}$"),B=function(e){if(j.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},Y=function(e){try{e()}catch(e){setTimeout((function(){var t=e.stack||"";throw x("Exception was thrown by user callback.",t),e}),Math.floor(0))}},F=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n},H=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var i=t.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),i=0;i<n.length&&i<r.length;i++){var o=O(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),U=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=l.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=l.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=l.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),z=function(){function e(e,t,n,r,i,o){void 0===i&&(i=""),void 0===o&&(o=!1),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=i,this.includeNamespaceInQueryParams=o,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=p.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&p.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(l.assert("string"==typeof e,"typeof type must == string"),l.assert("object"==typeof t,"typeof params must == object"),"websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==e)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return N(t,(function(e,t){r.push(e+"="+t)})),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var V,q,W,G,K,J=function(e){var t=X(e),n=t.namespace;"firebase"===t.domain&&T(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!==n||"localhost"===t.domain||T("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&x("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new z(t.host,t.secure,n,r,"",n!==t.subdomain),path:new H(t.pathString)}},X=function(e){var t="",n="",r="",i="",o="",a=!0,l="https",c=443;if("string"==typeof e){var u=e.indexOf("//");u>=0&&(l=e.substring(0,u-1),e=e.substring(u+2));var d=e.indexOf("/");-1===d&&(d=e.length);var h=e.indexOf("?");-1===h&&(h=e.length),t=e.substring(0,Math.min(d,h)),d<h&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(e){}t+="/"+i}return t}(e.substring(d,h)));var f=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=s.__values(e.split("&")),o=i.next();!o.done;o=i.next()){var a=o.value;if(0!==a.length){var l=a.split("=");2===l.length?r[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):x("Invalid query segment '"+a+"' in query '"+e+"'")}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.substring(Math.min(e.length,h)));(u=t.indexOf(":"))>=0?(a="https"===l||"wss"===l,c=parseInt(t.substring(u+1),10)):u=e.length;var p=t.split(".");3===p.length?(n=p[1],o=r=p[0].toLowerCase()):2===p.length?n=p[0]:"localhost"===p[0].slice(0,u).toLowerCase()&&(n="localhost"),"ns"in f&&(o=f.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:a,scheme:l,pathString:i,namespace:o}},Q=/[\[\].#$\/\u0000-\u001F\u007F]/,Z=/[\[\].#$\u0000-\u001F\u007F]/,ee=function(e){return"string"==typeof e&&0!==e.length&&!Q.test(e)},te=function(e){return"string"==typeof e&&0!==e.length&&!Z.test(e)},ne=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!M(e)||e&&"object"==typeof e&&l.contains(e,".sv")},re=function(e,t,n,r,i){i&&void 0===n||ie(l.errorPrefix(e,t,i),n,r)},ie=function(e,t,n){var r=n instanceof H?new U(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"==typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(M(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"==typeof t&&t.length>10485760/3&&l.stringLength(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){var i=!1,o=!1;if(N(t,(function(t,n){if(".value"===t)i=!0;else if(".priority"!==t&&".sv"!==t&&(o=!0,!ee(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),ie(e,n,r),r.pop()})),i&&o)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},oe=function(e,t,n,r,i){if(!i||void 0!==n){var o=l.errorPrefix(e,t,i);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var a=[];N(n,(function(e,t){var n=new H(e);if(ie(o,t,r.child(n)),".priority"===n.getBack()&&!ne(t))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");a.push(n)})),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=(r=t[n]).slice(),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);else if(!ee(i[o]))throw new Error(e+"contains an invalid key ("+i[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(H.comparePaths);var a=null;for(n=0;n<t.length;n++){if(r=t[n],null!==a&&a.contains(r))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}}(o,a)}},ae=function(e,t,n,r){if(!r||void 0!==n){if(M(n))throw new Error(l.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!ne(n))throw new Error(l.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},se=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(l.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},le=function(e,t,n,r){if(!(r&&void 0===n||ee(n)))throw new Error(l.errorPrefix(e,t,r)+'was an invalid key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ce=function(e,t,n,r){if(!(r&&void 0===n||te(n)))throw new Error(l.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},ue=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ce(e,t,n,r)},de=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},he=function(e,t,n){var r=n.path.toString();if("string"!=typeof n.repoInfo.host||0===n.repoInfo.host.length||!ee(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),te(e)}(r))throw new Error(l.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},fe=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!=typeof n)throw new Error(l.errorPrefix(e,t,r)+"must be a boolean.")},pe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){l.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),l.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new l.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){l.validateArgCount("OnDisconnect.remove",0,1,arguments.length),de("OnDisconnect.remove",this.path_),l.validateCallback("OnDisconnect.remove",1,e,!0);var t=new l.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){l.validateArgCount("OnDisconnect.set",1,2,arguments.length),de("OnDisconnect.set",this.path_),re("OnDisconnect.set",1,e,this.path_,!1),l.validateCallback("OnDisconnect.set",2,t,!0);var n=new l.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){l.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),de("OnDisconnect.setWithPriority",this.path_),re("OnDisconnect.setWithPriority",1,e,this.path_,!1),ae("OnDisconnect.setWithPriority",2,t,!1),l.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new l.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(l.validateArgCount("OnDisconnect.update",1,2,arguments.length),de("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,x("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}oe("OnDisconnect.update",1,e,this.path_,!1),l.validateCallback("OnDisconnect.update",2,t,!0);var i=new l.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,i.wrapCallback(t)),i.promise},e}(),me=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return l.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),ve=(V="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",q=0,W=[],function(e){var t,n=e===q;q=e;var r=new Array(8);for(t=7;t>=0;t--)r[t]=V.charAt(e%64),e=Math.floor(e/64);l.assert(0===e,"Cannot push at time == 0");var i=r.join("");if(n){for(t=11;t>=0&&63===W[t];t--)W[t]=0;W[t]++}else for(t=0;t<12;t++)W[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)i+=V.charAt(W[t]);return l.assert(20===i.length,"nextPushId: Length should be 20."),i}),ge=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ye=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new ge($,e),r=new ge($,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return ge.MIN},e}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return G},set:function(e){G=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return O(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw l.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return new ge(P,G)},t.prototype.makePost=function(e,t){return l.assert("string"==typeof e,"KeyIndex indexValue must always be a string."),new ge(e,G)},t.prototype.toString=function(){return".key"},t}(ye),_e=new be;var we,ke,Se,Ee=function(e){return"number"==typeof e?"number:"+R(e):"string:"+e},Ce=function(e){if(e.isLeafNode()){var t=e.val();l.assert("string"==typeof t||"number"==typeof t||"object"==typeof t&&l.contains(t,".sv"),"Priority must be a string or number.")}else l.assert(e===K||e.isEmpty(),"priority of unexpected type.");l.assert(e===K||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Te=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,l.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Ce(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return we},set:function(e){we=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(l.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+Ee(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?R(this.value_):this.value_,this.lazyHash_=y(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(l.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(r);return l.assert(i>=0,"Unknown leaf type: "+n),l.assert(o>=0,"Unknown leaf type: "+r),i===o?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var xe,Me,$e=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?O(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return new ge(P,new Te("[PRIORITY-POST]",Se))},t.prototype.makePost=function(e,t){var n=ke(e);return new ge(t,new Te("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ye)),Pe=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var o=1;!e.isEmpty();)if(e=e,o=t?n(e.key,t):1,r&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Oe=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:Ae.EMPTY_NODE,this.right=null!=o?o:Ae.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Ae.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Ae.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Le=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new Oe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Ae=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Oe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Oe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Pe(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Pe(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Pe(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Pe(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Le,e}(),Ie=Math.log(2),De=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Ie,10)),this.current_=this.count-1;var n,r=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&r}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Ne=function(e,t,n,r){e.sort(t);var i=function(t,r){var o,a,s=r-t;if(0===s)return null;if(1===s)return o=e[t],a=n?n(o):o,new Oe(a,o.node,Oe.BLACK,null,null);var l=parseInt(s/2,10)+t,c=i(t,l),u=i(l+1,r);return o=e[l],a=n?n(o):o,new Oe(a,o.node,Oe.BLACK,c,u)},o=function(t){for(var r=null,o=null,a=e.length,s=function(t,r){var o=a-t,s=a;a-=t;var c=i(o+1,s),u=e[o],d=n?n(u):u;l(new Oe(d,u.node,r,null,c))},l=function(e){r?(r.left=e,r=e):(o=e,r=e)},c=0;c<t.count;++c){var u=t.nextBitIsOne(),d=Math.pow(2,t.count-(c+1));u?s(d,Oe.BLACK):(s(d,Oe.BLACK),s(d,Oe.RED))}return o}(new De(e.length));return new Ae(r||t,o)},Re={},je=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return l.assert(Re&&$e,"ChildrenNode.ts has not been loaded"),xe=xe||new e({".priority":Re},{".priority":$e})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=l.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Ae?t:null},e.prototype.hasIndex=function(e){return l.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){l.assert(t!==_e,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,i=[],o=!1,a=n.getIterator(ge.Wrap),c=a.getNext();c;)o=o||t.isDefinedOn(c.node),i.push(c),c=a.getNext();r=o?Ne(i,t.getCompare()):Re;var u=t.toString(),d=s.__assign({},this.indexSet_);d[u]=t;var h=s.__assign({},this.indexes_);return h[u]=r,new e(h,d)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(l.map(this.indexes_,(function(e,i){var o=l.safeGet(r.indexSet_,i);if(l.assert(o,"Missing index implementation for "+i),e===Re){if(o.isDefinedOn(t.node)){for(var a=[],s=n.getIterator(ge.Wrap),c=s.getNext();c;)c.name!==t.name&&a.push(c),c=s.getNext();return a.push(t),Ne(a,o.getCompare())}return Re}var u=n.get(t.name),d=e;return u&&(d=d.remove(new ge(t.name,u))),d.insert(t,t.node)})),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(l.map(this.indexes_,(function(e){if(e===Re)return e;var r=n.get(t.name);return r?e.remove(new ge(t.name,r)):e})),this.indexSet_)},e}();function Be(e,t){return O(e.name,t.name)}function Ye(e,t){return O(e,t)}var Fe=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Ce(this.priorityNode_),this.children_.isEmpty()&&l.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Me||(Me=new e(new Ae(Ye),null,je.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Me},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Me:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(l.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new ge(t,n),i=void 0,o=void 0;n.isEmpty()?(i=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_));var a=i.isEmpty()?Me:this.priorityNode_;return new e(i,a,o)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;l.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,o=!0;if(this.forEachChild($e,(function(a,s){n[a]=s.val(t),r++,o&&e.INTEGER_REGEXP_.test(a)?i=Math.max(i,Number(a)):o=!1})),!t&&o&&i<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+Ee(this.getPriority().val())+":"),this.forEachChild($e,(function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":y(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new ge(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new ge(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new ge(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getIteratorFrom(e.name,ge.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getReverseIteratorFrom(e.name,ge.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===He?-1:0},e.prototype.withIndex=function(t){if(t===_e||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===_e||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator($e),r=t.getIterator($e),i=n.getNext(),o=r.getNext();i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===_e?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),He=new(function(e){function t(){return e.call(this,new Ae(Ye),Fe.EMPTY_NODE,je.Default)||this}return s.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Fe.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Fe));Object.defineProperties(ge,{MIN:{value:new ge($,Fe.EMPTY_NODE)},MAX:{value:new ge(P,He)}}),be.__EMPTY_NODE=Fe.EMPTY_NODE,Te.__childrenNodeConstructor=Fe,K=He,function(e){Se=e}(He);function Ue(e,t){if(void 0===t&&(t=null),null===e)return Fe.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),l.assert(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new Te(e,Ue(t));if(e instanceof Array){var n=Fe.EMPTY_NODE;return N(e,(function(t,r){if(l.contains(e,t)&&"."!==t.substring(0,1)){var i=Ue(r);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(t,i))}})),n.updatePriority(Ue(t))}var r=[],i=!1;if(N(e,(function(e,t){if("."!==e.substring(0,1)){var n=Ue(t);n.isEmpty()||(i=i||!n.getPriority().isEmpty(),r.push(new ge(e,n)))}})),0===r.length)return Fe.EMPTY_NODE;var o=Ne(r,Be,(function(e){return e.name}),Ye);if(i){var a=Ne(r,$e.getCompare());return new Fe(o,Ue(t),new je({".priority":a},{".priority":$e}))}return new Fe(o,Ue(t),je.Default)}!function(e){ke=e}(Ue);var ze,Ve,qe=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?O(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return ge.MIN},t.prototype.maxPost=function(){return ge.MAX},t.prototype.makePost=function(e,t){var n=Ue(e);return new ge(t,n)},t.prototype.toString=function(){return".value"},t}(ye)),We=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,l.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return s.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?O(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=Ue(e),r=Fe.EMPTY_NODE.updateChild(this.indexPath_,n);return new ge(t,r)},t.prototype.maxPost=function(){var e=Fe.EMPTY_NODE.updateChild(this.indexPath_,He);return new ge(P,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ye),Ge=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return l.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return l.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return l.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return l.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){l.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ce("DataSnapshot.child",1,t,!1);var n=new H(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,$e)},e.prototype.hasChild=function(e){l.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ce("DataSnapshot.hasChild",1,e,!1);var t=new H(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return l.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;if(l.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),l.validateCallback("DataSnapshot.forEach",1,t,!1),this.node_.isLeafNode())return!1;var r=this.node_;return!!r.forEachChild(this.index_,(function(r,i){return t(new e(i,n.ref_.child(r),$e))}))},e.prototype.hasChildren=function(){return l.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return l.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return l.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ke=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+l.stringify(this.snapshot.exportVal())},e}(),Je=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),Xe=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new Ke("value",this,new Ge(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){l.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Je(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),Qe=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,l.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Je(this,e,t):null},e.prototype.createEvent=function(e,t){l.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new Ke(e.type,this,new Ge(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){l.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var r=Object.keys(t.callbacks_),i=Object.keys(this.callbacks_),o=r.length;if(o===i.length){if(1===o){var a=r[0],s=i[0];return!(s!==a||t.callbacks_[a]&&this.callbacks_[s]&&t.callbacks_[a]!==this.callbacks_[s])}return i.every((function(e){return t.callbacks_[e]===n.callbacks_[e]}))}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Ze=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return l.assert(ze,"Reference.ts has not been loaded"),ze},set:function(e){ze=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===_e){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==$)throw new Error(r);if("string"!=typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==P)throw new Error(r);if("string"!=typeof n)throw new Error(i)}}else if(e.getIndex()===$e){if(null!=t&&!ne(t)||null!=n&&!ne(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(l.assert(e.getIndex()instanceof We||e.getIndex()===qe,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return l.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,i){l.validateArgCount("Query.on",2,4,arguments.length),se("Query.on",1,t,!1),l.validateCallback("Query.on",2,n,!1);var o=e.getCancelAndContextArgs_("Query.on",r,i);if("value"===t)this.onValueEvent(n,o.cancel,o.context);else{var a={};a[t]=n,this.onChildEvent(a,o.cancel,o.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new Xe(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new Qe(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){l.validateArgCount("Query.off",0,3,arguments.length),se("Query.off",1,e,!0),l.validateCallback("Query.off",2,t,!0),l.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===e){var o=t||null;r=new Xe(o,null,n||null)}else e&&(t&&((i={})[e]=t),r=new Qe(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,i){var o=this;l.validateArgCount("Query.once",1,4,arguments.length),se("Query.once",1,t,!1),l.validateCallback("Query.once",2,n,!0);var a=e.getCancelAndContextArgs_("Query.once",r,i),s=!0,c=new l.Deferred;c.promise.catch((function(){}));var u=function(e){s&&(s=!1,o.off(t,u),n&&n.bind(a.context)(e),c.resolve(e))};return this.on(t,u,(function(e){o.off(t,u),a.cancel&&a.cancel.bind(a.context)(e),c.reject(e)})),c.promise},e.prototype.limitToFirst=function(t){if(l.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(l.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(l.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid.  Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');ce("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new H(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var r=new We(n),i=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(i),new e(this.repo,this.path,i,!0)},e.prototype.orderByKey=function(){l.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(_e);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){l.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy($e);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){l.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(qe);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),l.validateArgCount("Query.startAt",0,2,arguments.length),re("Query.startAt",1,t,this.path,!0),le("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),l.validateArgCount("Query.endAt",0,2,arguments.length),re("Query.endAt",1,t,this.path,!0),le("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(l.validateArgCount("Query.equalTo",1,2,arguments.length),re("Query.equalTo",1,e,this.path,!1),le("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return l.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return l.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=I(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(l.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var r=this.repo===t.repo,i=this.path.equals(t.path),o=this.queryIdentifier()===t.queryIdentifier();return r&&i&&o},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,l.validateCallback(e,3,r.cancel,!0),r.context=n,l.validateContextObject(e,4,r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error(l.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),et=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var r=t.getFront();this.children.has(r)||this.children.set(r,new e);var i=this.children.get(r);t=t.popFront(),i.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild($e,(function(e,t){n.remember(new H(e),t)})),this.forget(e)}if(this.children.size>0){var r=e.getFront();if(e=e.popFront(),this.children.has(r))this.children.get(r).forget(e)&&this.children.delete(r);return 0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild((function(n,r){var i=new H(e.toString()+"/"+n);r.forEachTree(i,t)}))},e.prototype.forEachChild=function(e){this.children.forEach((function(t,n){e(n,t)}))},e}(),tt=function(e,t){return e&&"object"==typeof e?(l.assert(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e},nt=function(e,t){var n,r=e.getPriority().val(),i=tt(r,t);if(e.isLeafNode()){var o=e,a=tt(o.getValue(),t);return a!==o.getValue()||i!==o.getPriority().val()?new Te(a,Ue(i)):e}var s=e;return n=s,i!==s.getPriority().val()&&(n=n.updatePriority(new Te(i))),s.forEachChild($e,(function(e,r){var i=nt(r,t);i!==r&&(n=n.updateImmediateChild(e,i))})),n};!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(Ve||(Ve={}));var rt,it,ot=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,l.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),at=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=Ve.ACK_USER_WRITE,this.source=ot.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return l.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new H(t));return new e(H.Empty,n,this.revert)}return l.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),st=function(){function e(e,t){void 0===t&&(rt||(rt=new Ae(L)),t=rt),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return N(t,(function(e,t){n=n.set(new H(e),t)})),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:H.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=i?{path:new H(n).child(i.path),value:i.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),i=(this.children.get(r)||e.Empty).set(t.popFront(),n),o=this.children.insert(r,i);return new e(this.value,o)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var i=r.remove(t.popFront()),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?e.Empty:new e(this.value,o)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),i=(this.children.get(r)||e.Empty).setTree(t.popFront(),n),o=void 0;return o=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,o)},e.prototype.fold=function(e){return this.fold_(H.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(e.child(r),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,H.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var i=e.getFront(),o=this.children.get(i);return o?o.findOnPath_(e.popFront(),t.child(i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,H.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var i=t.getFront(),o=this.children.get(i);return o?o.foreachOnPath_(t.popFront(),n.child(i),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(H.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,r){r.foreach_(e.child(n),t)})),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))},e.Empty=new e(null),e}(),lt=function(){function e(e,t){this.source=e,this.path=t,this.type=Ve.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,H.Empty):new e(this.source,this.path.popFront())},e}(),ct=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=Ve.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,H.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),ut=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=Ve.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new H(t));return n.isEmpty()?null:n.value?new ct(this.source,H.Empty,n.value):new e(this.source,H.Empty,n)}return l.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),dt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),ht=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new dt(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new dt(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new dt(Fe.EMPTY_NODE,!1,!1),new dt(Fe.EMPTY_NODE,!1,!1)),e}(),ft=function(){function e(e,t,n,r,i){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=i}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),pt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,o){l.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=e.getImmediateChild(t);return a.getChild(r).equals(n.getChild(r))&&a.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(ft.childRemovedChange(t,a)):l.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(ft.childAddedChange(t,n)):o.trackChildChange(ft.childChangedChange(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild($e,(function(e,r){t.hasChild(e)||n.trackChildChange(ft.childRemovedChange(e,r))})),t.isLeafNode()||t.forEachChild($e,(function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(ft.childChangedChange(t,r,i))}else n.trackChildChange(ft.childAddedChange(t,r))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Fe.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),mt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;l.assert(t===ft.CHILD_ADDED||t===ft.CHILD_CHANGED||t===ft.CHILD_REMOVED,"Only child changes supported for tracking"),l.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if(t===ft.CHILD_ADDED&&i===ft.CHILD_REMOVED)this.changeMap.set(n,ft.childChangedChange(n,e.snapshotNode,r.snapshotNode));else if(t===ft.CHILD_REMOVED&&i===ft.CHILD_ADDED)this.changeMap.delete(n);else if(t===ft.CHILD_REMOVED&&i===ft.CHILD_CHANGED)this.changeMap.set(n,ft.childRemovedChange(n,r.oldSnap));else if(t===ft.CHILD_CHANGED&&i===ft.CHILD_ADDED)this.changeMap.set(n,ft.childAddedChange(n,e.snapshotNode));else{if(t!==ft.CHILD_CHANGED||i!==ft.CHILD_CHANGED)throw l.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,ft.childChangedChange(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),vt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),gt=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new dt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===i.length?null:i[0]},e}(),yt=function(e,t){this.viewCache=e,this.changes=t},bt=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){l.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),l.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,i){var o,a,s=new mt;if(n.type===Ve.OVERWRITE){var c=n;c.source.fromUser?o=this.applyUserOverwrite_(t,c.path,c.snap,r,i,s):(l.assert(c.source.fromServer,"Unknown source."),a=c.source.tagged||t.getServerCache().isFiltered()&&!c.path.isEmpty(),o=this.applyServerOverwrite_(t,c.path,c.snap,r,i,a,s))}else if(n.type===Ve.MERGE){var u=n;u.source.fromUser?o=this.applyUserMerge_(t,u.path,u.children,r,i,s):(l.assert(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.getServerCache().isFiltered(),o=this.applyServerMerge_(t,u.path,u.children,r,i,a,s))}else if(n.type===Ve.ACK_USER_WRITE){var d=n;o=d.revert?this.revertUserWrite_(t,d.path,r,i,s):this.ackUserWrite_(t,d.path,d.affectedTree,r,i,s)}else{if(n.type!==Ve.LISTEN_COMPLETE)throw l.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(t,n.path,r,s)}var h=s.getChanges();return e.maybeAddValueEvent_(t,o,h),new yt(o,h)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(ft.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var o=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var a=void 0,s=void 0;if(t.isEmpty())if(l.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var c=e.getCompleteServerSnap(),u=c instanceof Fe?c:Fe.EMPTY_NODE,d=n.calcCompleteEventChildren(u);a=this.filter_.updateFullNode(e.getEventCache().getNode(),d,i)}else{var h=n.calcCompleteEventCache(e.getCompleteServerSnap());a=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var f=t.getFront();if(".priority"===f){l.assert(1===t.getLength(),"Can't have a priority with additional path components");var p=o.getNode();s=e.getServerCache().getNode();var m=n.calcEventCacheAfterServerOverwrite(t,p,s);a=null!=m?this.filter_.updatePriority(p,m):o.getNode()}else{var v=t.popFront(),g=void 0;if(o.isCompleteForChild(f)){s=e.getServerCache().getNode();var y=n.calcEventCacheAfterServerOverwrite(t,o.getNode(),s);g=null!=y?o.getNode().getImmediateChild(f).updateChild(v,y):o.getNode().getImmediateChild(f)}else g=n.calcCompleteChild(f,e.getServerCache());a=null!=g?this.filter_.updateChild(o.getNode(),f,g,v,r,i):o.getNode()}}return e.updateEventSnap(a,o.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,i,o,a){var s,l=e.getServerCache(),c=o?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(l.getNode(),n,null);else if(c.filtersNodes()&&!l.isFiltered()){var u=l.getNode().updateChild(t,n);s=c.updateFullNode(l.getNode(),u,null)}else{var d=t.getFront();if(!l.isCompleteForPath(t)&&t.getLength()>1)return e;var h=t.popFront(),f=l.getNode().getImmediateChild(d).updateChild(h,n);s=".priority"===d?c.updatePriority(l.getNode(),f):c.updateChild(l.getNode(),d,f,h,vt,null)}var p=e.updateServerSnap(s,l.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),m=new gt(r,p,i);return this.generateEventCacheAfterServerEvent_(p,t,r,m,a)},e.prototype.applyUserOverwrite_=function(e,t,n,r,i,o){var a,s,l=e.getEventCache(),c=new gt(r,e,i);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,o),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var u=t.getFront();if(".priority"===u)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,l.isFullyInitialized(),l.isFiltered());else{var d=t.popFront(),h=l.getNode().getImmediateChild(u),f=void 0;if(d.isEmpty())f=n;else{var p=c.getCompleteChild(u);f=null!=p?".priority"===d.getBack()&&p.getChild(d.parent()).isEmpty()?p:p.updateChild(d,n):Fe.EMPTY_NODE}if(h.equals(f))a=e;else{var m=this.filter_.updateChild(l.getNode(),u,f,d,c,o);a=e.updateEventSnap(m,l.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,i,o,a){var s=this,l=t;return r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())&&(l=s.applyUserOverwrite_(l,u,c,i,o,a))})),r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())||(l=s.applyUserOverwrite_(l,u,c,i,o,a))})),l},e.prototype.applyMerge_=function(e,t){return t.foreach((function(t,n){e=e.updateChild(t,n)})),e},e.prototype.applyServerMerge_=function(e,t,n,r,i,o,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var l,c=e;l=t.isEmpty()?n:st.Empty.setTree(t,n);var u=e.getServerCache().getNode();return l.children.inorderTraversal((function(t,n){if(u.hasChild(t)){var l=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(l,n);c=s.applyServerOverwrite_(c,new H(t),d,r,i,o,a)}})),l.children.inorderTraversal((function(t,n){var l=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!u.hasChild(t)&&!l){var d=e.getServerCache().getNode().getImmediateChild(t),h=s.applyMerge_(d,n);c=s.applyServerOverwrite_(c,new H(t),h,r,i,o,a)}})),c},e.prototype.ackUserWrite_=function(e,t,n,r,i,o){if(null!=r.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,i,a,o);if(t.isEmpty()){var l=st.Empty;return s.getNode().forEachChild(_e,(function(e,t){l=l.set(new H(e),t)})),this.applyServerMerge_(e,t,l,r,i,a,o)}return e}var c=st.Empty;return n.foreach((function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(c=c.set(e,s.getNode().getChild(r)))})),this.applyServerMerge_(e,t,c,r,i,a,o)},e.prototype.listenComplete_=function(e,t,n,r){var i=e.getServerCache(),o=e.updateServerSnap(i.getNode(),i.isFullyInitialized()||t.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(o,t,n,vt,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var o;if(null!=n.shadowingWrite(t))return e;var a=new gt(n,e,r),s=e.getEventCache().getNode(),c=void 0;if(t.isEmpty()||".priority"===t.getFront()){var u=void 0;if(e.getServerCache().isFullyInitialized())u=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();l.assert(d instanceof Fe,"serverChildren would be complete if leaf node"),u=n.calcCompleteEventChildren(d)}u=u,c=this.filter_.updateFullNode(s,u,i)}else{var h=t.getFront(),f=n.calcCompleteChild(h,e.getServerCache());null==f&&e.getServerCache().isCompleteForChild(h)&&(f=s.getImmediateChild(h)),(c=null!=f?this.filter_.updateChild(s,h,f,t.popFront(),a,i):e.getEventCache().getNode().hasChild(h)?this.filter_.updateChild(s,h,Fe.EMPTY_NODE,t.popFront(),a,i):s).isEmpty()&&e.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,o,i))}return o=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(H.Empty),e.updateEventSnap(c,o,this.filter_.filtersNodes())},e}(),_t=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],o=[];return e.forEach((function(e){e.type===ft.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&o.push(ft.childMovedChange(e.childName,e.snapshotNode))})),this.generateEventsForType_(i,ft.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,ft.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,ft.CHILD_MOVED,o,n,t),this.generateEventsForType_(i,ft.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,ft.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,i){var o=this,a=n.filter((function(e){return e.type===t}));a.sort(this.compareChanges_.bind(this)),a.forEach((function(t){var n=o.materializeSingleChange_(t,i);r.forEach((function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,o.query_))}))}))},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_)),e},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw l.assertionError("Should only compare child_ events.");var n=new ge(e.childName,e.snapshotNode),r=new ge(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),wt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new pt(n.getIndex()),i=n.getNodeFilter();this.processor_=new bt(i);var o=t.getServerCache(),a=t.getEventCache(),s=r.updateFullNode(Fe.EMPTY_NODE,o.getNode(),null),l=i.updateFullNode(Fe.EMPTY_NODE,a.getNode(),null),c=new dt(s,o.isFullyInitialized(),r.filtersNodes()),u=new dt(l,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=new ht(u,c),this.eventGenerator_=new _t(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){l.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach((function(e){t=t;var i=e.createCancelEvent(t,r);i&&n.push(i)}))}if(e){for(var i=[],o=0;o<this.eventRegistrations_.length;++o){var a=this.eventRegistrations_[o];if(a.matches(e)){if(e.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(o+1));break}}else i.push(a)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===Ve.MERGE&&null!==e.source.queryId&&(l.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),l.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(i.viewCache),l.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild($e,(function(e,t){n.push(ft.childAddedChange(e,t))}));return t.isFullyInitialized()&&n.push(ft.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),kt=function(){function e(){this.views=new Map}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return l.assert(it,"Reference.ts has not been loaded"),it},set:function(e){l.assert(!it,"__referenceConstructor has already been defined"),it=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this.views.size},e.prototype.applyOperation=function(e,t,n){var r,i,o=e.source.queryId;if(null!==o){var a=this.views.get(o);return l.assert(null!=a,"SyncTree gave us an op for an invalid query."),a.applyOperation(e,t,n)}var c=[];try{for(var u=s.__values(this.views.values()),d=u.next();!d.done;d=u.next()){a=d.value;c=c.concat(a.applyOperation(e,t,n))}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return c},e.prototype.addEventRegistration=function(e,t,n,r,i){var o=e.queryIdentifier(),a=this.views.get(o);if(!a){var s=n.calcCompleteEventCache(i?r:null),l=!1;s?l=!0:r instanceof Fe?(s=n.calcCompleteEventChildren(r),l=!1):(s=Fe.EMPTY_NODE,l=!1);var c=new ht(new dt(s,l,!1),new dt(r,i,!1));a=new wt(e,c),this.views.set(o,a)}return a.addEventRegistration(t),a.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i,o,a=t.queryIdentifier(),l=[],c=[],u=this.hasCompleteView();if("default"===a)try{for(var d=s.__values(this.views.entries()),h=d.next();!h.done;h=d.next()){var f=s.__read(h.value,2),p=f[0],m=f[1];c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(p),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery()))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}else(m=this.views.get(a))&&(c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(a),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery())));return u&&!this.hasCompleteView()&&l.push(new e.__referenceConstructor(t.repo,t.path)),{removed:l,events:c}},e.prototype.getQueryViews=function(){var e,t,n=[];try{for(var r=s.__values(this.views.values()),i=r.next();!i.done;i=r.next()){var o=i.value;o.getQuery().getQueryParams().loadsAllData()||n.push(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.getCompleteServerCache=function(e){var t,n,r=null;try{for(var i=s.__values(this.views.values()),o=i.next();!o.done;o=i.next()){var a=o.value;r=r||a.getCompleteServerCache(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return this.views.get(t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){var e,t;try{for(var n=s.__values(this.views.values()),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getQuery().getQueryParams().loadsAllData())return i}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},e}(),St=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new st(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,o=r.value,a=H.relativePath(i,t);return o=o.updateChild(a,n),new e(this.writeTree_.set(i,o))}var s=new st(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return N(t,(function(t,r){n=n.addWrite(e.child(t),r)})),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,st.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(H.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild($e,(function(t,n){e.push(new ge(t,n))})):this.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new ge(t,n.value))})),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new st(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(e){return function e(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var i=null;return n.children.inorderTraversal((function(n,o){".priority"===n?(l.assert(null!==o.value,"Priority writes must always be leaf nodes"),i=o.value):r=e(t.child(n),o,r)})),r.getChild(t).isEmpty()||null===i||(r=r.updateChild(t.child(".priority"),i)),r}(H.Empty,this.writeTree_,e)},e.Empty=new e(new st(null)),e}();var Et=function(){function e(){this.visibleWrites_=St.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new Ct(e,this)},e.prototype.addOverwrite=function(e,t,n,r){l.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){l.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex((function(t){return t.writeId===e}));l.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,o=!1,a=this.allWrites_.length-1;i&&a>=0;){var s=this.allWrites_[a];s.visible&&(a>=n&&this.recordContainsPath_(s,r.path)?i=!1:r.path.contains(s.path)&&(o=!0)),a--}if(i){if(o)return this.resetTree_(),!0;r.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(r.path):N(r.children,(function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))}));return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,i){if(r||i){var o=this.visibleWrites_.childCompoundWrite(t);if(!i&&o.isEmpty())return n;if(i||null!=n||o.hasCompleteWrite(H.Empty)){var a=e.layerTree_(this.allWrites_,(function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))}),t);c=n||Fe.EMPTY_NODE;return a.apply(c)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var l=this.visibleWrites_.childCompoundWrite(t);if(l.isEmpty())return n;if(null!=n||l.hasCompleteWrite(H.Empty)){var c=n||Fe.EMPTY_NODE;return l.apply(c)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Fe.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild($e,(function(e,t){n=n.updateImmediateChild(e,t)})),n;if(t){var i=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild($e,(function(e,t){var r=i.childCompoundWrite(new H(e)).apply(t);n=n.updateImmediateChild(e,r)})),i.getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){l.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var o=this.visibleWrites_.childCompoundWrite(i);return o.isEmpty()?r.getChild(t):o.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),i=this.visibleWrites_.getCompleteNode(r);return null!=i?i:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,i,o){var a,s=this.visibleWrites_.childCompoundWrite(e),l=s.getCompleteNode(H.Empty);if(null!=l)a=l;else{if(null==t)return[];a=s.apply(t)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var c=[],u=o.getCompare(),d=i?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),h=d.getNext();h&&c.length<r;)0!==u(h,n)&&c.push(h),h=d.getNext();return c},e.prototype.recordContainsPath_=function(e,t){if(e.snap)return e.path.contains(t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&e.path.child(n).contains(t))return!0;return!1},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,H.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=St.Empty,i=0;i<e.length;++i){var o=e[i];if(t(o)){var a=o.path,s=void 0;if(o.snap)n.contains(a)?(s=H.relativePath(n,a),r=r.addWrite(s,o.snap)):a.contains(n)&&(s=H.relativePath(a,n),r=r.addWrite(H.Empty,o.snap.getChild(s)));else{if(!o.children)throw l.assertionError("WriteRecord should have .snap or .children");if(n.contains(a))s=H.relativePath(n,a),r=r.addWrites(s,o.children);else if(a.contains(n))if((s=H.relativePath(a,n)).isEmpty())r=r.addWrites(H.Empty,o.children);else{var c=l.safeGet(o.children,s.getFront());if(c){var u=c.getChild(s.popFront());r=r.addWrite(H.Empty,u)}}}}}return r},e}(),Ct=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,i)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),Tt=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=st.Empty,this.pendingWriteTree_=new Et,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new ct(ot.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=st.fromObject(t);return this.applyOperationToSyncPoints_(new ut(ot.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=st.Empty;return null!=n.snap?r=r.set(H.Empty,!0):N(n.children,(function(e,t){r=r.set(new H(e),t)})),this.applyOperationToSyncPoints_(new at(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new ct(ot.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=st.fromObject(t);return this.applyOperationToSyncPoints_(new ut(ot.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new lt(ot.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,l=H.relativePath(a,t),c=new ct(ot.forServerTaggedQuery(s),l,n);return this.applyTaggedOperation_(a,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var i=this.queryKeyForTag_(r);if(i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,l=H.relativePath(a,t),c=st.fromObject(n),u=new ut(ot.forServerTaggedQuery(s),l,c);return this.applyTaggedOperation_(a,u)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var i=e.parseQueryKey_(r),o=i.path,a=i.queryId,s=H.relativePath(o,t),l=new lt(ot.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(o,l)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,i=null,o=!1;this.syncPointTree_.foreachOnPath(r,(function(e,t){var n=H.relativePath(e,r);i=i||t.getCompleteServerCache(n),o=o||t.hasCompleteView()}));var a,s=this.syncPointTree_.get(r);(s?(o=o||s.hasCompleteView(),i=i||s.getCompleteServerCache(H.Empty)):(s=new kt,this.syncPointTree_=this.syncPointTree_.set(r,s)),null!=i)?a=!0:(a=!1,i=Fe.EMPTY_NODE,this.syncPointTree_.subtree(r).foreachChild((function(e,t){var n=t.getCompleteServerCache(H.Empty);n&&(i=i.updateImmediateChild(e,n))})));var c=s.viewExistsForQuery(t);if(!c&&!t.getQueryParams().loadsAllData()){var u=e.makeQueryKey_(t);l.assert(!this.queryToTagMap.has(u),"View does not exist, but we have a tag");var d=e.getNextQueryTag_();this.queryToTagMap.set(u,d),this.tagToQueryMap.set(d,u)}var h=this.pendingWriteTree_.childWrites(r),f=s.addEventRegistration(t,n,h,i,a);if(!c&&!o){var p=s.viewForQuery(t);f=f.concat(this.setupListener_(t,p))}return f},e.prototype.removeEventRegistration=function(t,n,r){var i=this,o=t.path,a=this.syncPointTree_.get(o),s=[];if(a&&("default"===t.queryIdentifier()||a.viewExistsForQuery(t))){var l=a.removeEventRegistration(t,n,r);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(o));var c=l.removed;s=l.events;var u=-1!==c.findIndex((function(e){return e.getQueryParams().loadsAllData()})),d=this.syncPointTree_.findOnPath(o,(function(e,t){return t.hasCompleteView()}));if(u&&!d){var h=this.syncPointTree_.subtree(o);if(!h.isEmpty())for(var f=this.collectDistinctViewsForSubTree_(h),p=0;p<f.length;++p){var m=f[p],v=m.getQuery(),g=this.createListenerForView_(m);this.listenProvider_.startListening(e.queryForListening_(v),this.tagForQuery_(v),g.hashFn,g.onComplete)}}if(!d&&c.length>0&&!r)if(u){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach((function(t){var n=i.queryToTagMap.get(e.makeQueryKey_(t));i.listenProvider_.stopListening(e.queryForListening_(t),n)}));this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,(function(t,n){var r=H.relativePath(t,e),i=n.getCompleteServerCache(r);if(i)return i}));return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold((function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),N(n,(function(e,t){r=r.concat(t)})),r}))},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var i=e.makeQueryKey_(r),o=this.queryToTagMap.get(i);this.queryToTagMap.delete(i),this.tagToQueryMap.delete(o)}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,i=this.tagForQuery_(t),o=this.createListenerForView_(n),a=this.listenProvider_.startListening(e.queryForListening_(t),i,o.hashFn,o.onComplete),s=this.syncPointTree_.subtree(r);if(i)l.assert(!s.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=s.fold((function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map((function(e){return e.getQuery()})))),N(n,(function(e,t){r=r.concat(t)})),r})),u=0;u<c.length;++u){var d=c[u];this.listenProvider_.stopListening(e.queryForListening_(d),this.tagForQuery_(d))}return a},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Fe.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r}(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return l.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new H(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap.get(e)},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return this.queryToTagMap.get(n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);l.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(H.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var i=t.get(H.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(H.Empty));var o=[],a=e.path.getFront(),s=e.operationForChild(a),l=t.children.get(a);if(l&&s){var c=n?n.getImmediateChild(a):null,u=r.child(a);o=o.concat(this.applyOperationHelper_(s,l,c,u))}return i&&(o=o.concat(i.applyOperation(e,r,n))),o},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var i=this,o=t.get(H.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(H.Empty));var a=[];return t.children.inorderTraversal((function(t,o){var s=n?n.getImmediateChild(t):null,l=r.child(t),c=e.operationForChild(t);c&&(a=a.concat(i.applyOperationDescendantsHelper_(c,o,s,l)))})),o&&(a=a.concat(o.applyOperation(e,r,n))),a},e.nextQueryTag_=1,e}(),xt=function(){function e(){this.rootNode_=Fe.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),Mt=function(){function e(e,t){var n=this;this.app_=e,this.authProvider_=t,this.auth_=null,this.auth_=t.getImmediate({optional:!0}),this.auth_||t.get().then((function(e){return n.auth_=e}))}return e.prototype.getToken=function(e){return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(S("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})):Promise.resolve(null)},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):(setTimeout((function(){return e(null)}),0),this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)})))},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',x(e)},e}(),$t=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),l.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return l.deepCopy(this.counters_)},e}(),Pt=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new $t),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),Ot=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=s.__assign({},e);return this.last_&&N(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),Lt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Ot(e);var n=1e4+2e4*Math.random();F(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;N(t,(function(t,i){i>0&&l.contains(e.statsToReport_,t)&&(n[t]=i,r=!0)})),r&&this.server_.reportStats(n),F(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),At=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.getPath();null===t||i.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new It(i)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.equals(e)}))},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.contains(e)||e.contains(t)}))},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r)e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),It=function(){function e(e){this.path_=e,this.events_=[]}return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();_&&S("event: "+t.toString()),Y(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Dt=function(){function e(e){this.allowedEvents_=e,this.listeners_={},l.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=s.__spread(this.listeners_[e]),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){l.assert(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),Nt=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",t="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,(function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))}),!1),r}return s.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return l.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Dt),Rt=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||l.isMobileCordova()||(window.addEventListener("online",(function(){t.online_||(t.online_=!0,t.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){t.online_&&(t.online_=!1,t.trigger("online",!1))}),!1)),t}return s.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return l.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Dt),jt=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var t=function(t){e[t]&&Y((function(){n.onMessage_(e[t])}))},r=0;r<e.length;++r)t(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;this.pendingResponses[this.currentResponseNum];){if("break"===r())break}},e}(),Bt=function(){function e(e,t,n,r){this.connId=e,this.repoInfo=t,this.transportSessionId=n,this.lastSessionId=r,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=E(e),this.stats_=Pt.getCollection(t),this.urlFn=function(e){return t.connectionURL("long_polling",e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new jt(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(l.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new Yt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.__read(e,5),i=r[0],o=r[1],a=r[2];r[3],r[4];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===i)n.id=o,n.password=a;else{if("close"!==i)throw new Error("Unrecognized command received: "+i);o?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(o,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.__read(e,2),i=r[0],o=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,o)}),(function(){n.onClosed_()}),n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!l.isNodeSdk()&&(!!e.forceAllow_||!(e.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=l.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=l.base64Encode(t),r=D(n,1840),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!l.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=l.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),Yt=function(){function e(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,l.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=g(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var o="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))o='<script>document.domain="'+document.domain+'";<\/script>';var a="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(e){S("frame writing exception"),e.stack&&S(e.stack),S(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||S("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var r=function(){n.outstandingRequests.delete(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(i),r()}))},e.prototype.addTag=function(e,t){var n=this;l.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){S("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(e){}}),Math.floor(1))},e}(),Ft="";var Ht=null;"undefined"!=typeof MozWebSocket?Ht=MozWebSocket:"undefined"!=typeof WebSocket&&(Ht=WebSocket);var Ut=function(){function e(t,n,r,i){this.connId=t,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=E(this.connId),this.stats_=Pt.getCollection(n),this.connURL=e.connectionURL_(n,r,i)}return e.connectionURL_=function(e,t,n){var r={v:"5"};return!l.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL("websocket",r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.set("previous_websocket_failure",!0);try{if(l.isNodeSdk()){var i=l.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",o={headers:{"User-Agent":"Firebase/5/"+Ft+"/"+r.platform+"/"+i}},a=r.env,s=0===this.connURL.indexOf("wss://")?a.HTTPS_PROXY||a.https_proxy:a.HTTP_PROXY||a.http_proxy;s&&(o.proxy={origin:s}),this.mySock=new Ht(this.connURL,[],o)}else this.mySock=new Ht(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var c=e.message||e.data;return c&&this.log_(c),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Ht&&!e.forceDisallow_},e.previouslyFailed=function(){return p.isInMemoryStorage||!0===p.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){p.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=l.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(l.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=l.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=D(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),zt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Bt,Ut]},enumerable:!0,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=Ut&&Ut.isAvailable(),o=i&&!Ut.previouslyFailed();if(t.webSocketOnly&&(i||x("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),o=!0),o)this.transports_=[Ut];else{var a=this.transports_=[];try{for(var l=s.__values(e.ALL_TRANSPORTS),c=l.next();!c.done;c=l.next()){var u=c.value;u&&u.isAvailable()&&a.push(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Vt=function(){function e(e,t,n,r,i,o,a){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=r,this.onDisconnect_=i,this.onKill_=o,this.lastSessionId=a,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=E("c:"+this.id+":"),this.transportManager_=new zt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,r)}),Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=F((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes.  Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes.  Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=A("t",e),n=A("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=A("t",e),n=A("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=A("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?C("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):C("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&x("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),F((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):F((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(p.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),qt=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),Wt=function(e){function t(n,r,i,o,a,s){var c=e.call(this)||this;if(c.repoInfo_=n,c.onDataUpdate_=r,c.onConnectStatus_=i,c.onServerInfoUpdate_=o,c.authTokenProvider_=a,c.authOverride_=s,c.id=t.nextPersistentConnectionId_++,c.log_=E("p:"+c.id+":"),c.interruptReasons_={},c.listens=new Map,c.outstandingPuts_=[],c.outstandingPutCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=1e3,c.maxReconnectDelay_=3e5,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,s&&!l.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return c.scheduleConnect_(0),Nt.getInstance().on("visible",c.onVisible_,c),-1===n.host.indexOf("fblocal")&&Rt.getInstance().on("online",c.onOnline_,c),c}return s.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(l.stringify(i)),l.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var i=e.queryIdentifier(),o=e.path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),l.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),l.assert(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");var a={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(o).set(i,a),this.connected_&&this.sendListen_(a)},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r.path.toString(),o=r.queryIdentifier();this.log_("Listen on "+i+" for "+o);var a={p:i};e.tag&&(a.q=r.queryObject(),a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,(function(a){var s=a.d,l=a.s;t.warnOnListenWarnings_(s,r),(n.listens.get(i)&&n.listens.get(i).get(o))===e&&(n.log_("listen response",a),"ok"!==l&&n.removeListen_(i,o),e.onComplete&&e.onComplete(l,s))}))},t.warnOnListenWarnings_=function(e,t){if(e&&"object"==typeof e&&l.contains(e,"w")){var n=l.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',i=t.path.toString();x("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||l.isAdmin(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=l.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"==typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,(function(n){var r=n.s,i=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))}))}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),l.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(function(e){r&&setTimeout((function(){r(e.s,e.d)}),Math.floor(0))}))},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){var o={p:t,d:n};void 0!==i&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,(function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)}))},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+l.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):C("Unrecognized action received from server: "+l.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;l.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,o=this,a=this.lastSessionId,s=!1,c=null,u=function(){c?c.close():(s=!0,r())};this.realtime_={close:u,sendRequest:function(e){l.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)}};var d=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(d).then((function(t){s?S("getToken() completed but was canceled"):(S("getToken() completed. Creating connection."),o.authToken_=t&&t.accessToken,c=new Vt(i,o.repoInfo_,e,n,r,(function(e){x(e+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")}),a))})).then(null,(function(e){o.log_("Failed to get token: "+e),s||(l.CONSTANTS.NODE_ADMIN&&x(e),u())}))}},t.prototype.interrupt=function(e){S("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){S("Resuming connection for reason: "+e),delete this.interruptReasons_[e],l.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map((function(e){return I(e)})).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new H(e).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(t),i.delete(t),0===i.size&&this.listens.delete(r)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){S("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,r;this.tryAuth();try{for(var i=s.__values(this.listens.values()),o=i.next();!o.done;o=i.next()){var a=o.value;try{for(var l=(n=void 0,s.__values(a.values())),c=l.next();!c.done;c=l.next()){var u=c.value;this.sendListen_(u)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var d=0;d<this.outstandingPuts_.length;d++)this.outstandingPuts_[d]&&this.sendPut_(d);for(;this.onDisconnectRequestQueue_.length;){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";l.CONSTANTS.NODE_ADMIN?t="admin_node":l.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+Ft.replace(/\./g,"-")]=1,l.isMobileCordova()?e["framework.cordova"]=1:l.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=Rt.getInstance().currentlyOnline();return l.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(qt),Gt=function(e){function t(t,n,r){var i=e.call(this)||this;return i.repoInfo_=t,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=E("p:rest:"),i.listens_={},i}return s.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(l.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,i){var o=this,a=e.path.toString();this.log_("Listen called for "+a+" "+e.queryIdentifier());var s=t.getListenId_(e,r),c={};this.listens_[s]=c;var u=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(a+".json",u,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&o.onDataUpdate_(a,n,!1,r),l.safeGet(o.listens_,s)===c)&&i(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then((function(i){var o=i&&i.accessToken;o&&(t.auth=o);var a=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+l.querystring(t);r.log_("Sending REST request for "+a);var s=new XMLHttpRequest;s.onreadystatechange=function(){if(n&&4===s.readyState){r.log_("REST Response for "+a+" received. status:",s.status,"response:",s.responseText);var e=null;if(s.status>=200&&s.status<300){try{e=l.jsonEval(s.responseText)}catch(e){x("Failed to parse JSON response for "+a+": "+s.responseText)}n(null,e)}else 401!==s.status&&404!==s.status&&x("Got unsuccessful REST response for "+a+" Status: "+s.status),n(s.status);n=null}},s.open("GET",a,!0),s.send()}))},t}(qt),Kt=function(){function e(e,t,n,r){var i=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new At,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new et,this.persistentConnection_=null;var o=new Mt(n,r);if(this.stats_=Pt.getCollection(e),t||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new Gt(this.repoInfo_,this.onDataUpdate_.bind(this),o),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var a=n.options.databaseAuthVariableOverride;if(null!=a){if("object"!=typeof a)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{l.stringify(a)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new Wt(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),o,a),this.server_=this.persistentConnection_}o.addTokenChangeListener((function(e){i.server_.refreshAuthToken(e)})),this.statsReporter_=Pt.getOrCreateReporter(e,(function(){return new Lt(i.stats_,i.server_)})),this.transactionsInit_(),this.infoData_=new xt,this.infoSyncTree_=new Tt({startListening:function(e,t,n,r){var o=[],a=i.infoData_.getNode(e.path);return a.isEmpty()||(o=i.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout((function(){r("ok")}),0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Tt({startListening:function(e,t,n,r){return i.server_.listen(e,n,t,(function(t,n){var o=r(t,n);i.eventQueue_.raiseEventsForChangedPath(e.path,o)})),[]},stopListening:function(e,t){i.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new H(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var i=new H(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var o=[];if(r)if(n){var a=l.map(t,(function(e){return Ue(e)}));o=this.serverSyncTree_.applyTaggedQueryMerge(i,a,r)}else{var s=Ue(t);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,s,r)}else if(n){var c=l.map(t,(function(e){return Ue(e)}));o=this.serverSyncTree_.applyServerMerge(i,c)}else{var u=Ue(t);o=this.serverSyncTree_.applyServerOverwrite(i,u)}var d=i;o.length>0&&(d=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(d,o)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;N(e,(function(e,n){t.updateInfo_(e,n)}))},e.prototype.updateInfo_=function(e,t){var n=new H("/.info/"+e),r=Ue(t);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var i=this;this.log_("set",{path:e.toString(),value:t,priority:n});var o=this.generateServerValues(),a=Ue(t,n),s=nt(a,o),l=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserOverwrite(e,s,l,!0);this.eventQueue_.queueEvents(c),this.server_.put(e.toString(),a.val(!0),(function(t,n){var o="ok"===t;o||x("set at "+e+" failed: "+t);var a=i.serverSyncTree_.ackUserWrite(l,!o);i.eventQueue_.raiseEventsForChangedPath(e,a),i.callOnCompleteCallback(r,t,n)}));var u=this.abortTransactions_(e);this.rerunTransactions_(u),this.eventQueue_.raiseEventsForChangedPath(u,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var i=!0,o=this.generateServerValues(),a={};if(N(t,(function(e,t){i=!1;var n=Ue(t);a[e]=nt(n,o)})),i)S("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,a,s);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,(function(t,i){var o="ok"===t;o||x("update at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(s,!o),l=a.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(l,a),r.callOnCompleteCallback(n,t,i)})),N(t,(function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=function(e,t){var n=new et;return e.forEachTree(new H(""),(function(e,r){n.remember(e,nt(r,t))})),n}(this.onDisconnect_,t),r=[];n.forEachTree(H.Empty,(function(t,n){r=r.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var i=e.abortTransactions_(t);e.rerunTransactions_(i)})),this.onDisconnect_=new et,this.eventQueue_.raiseEventsForChangedPath(H.Empty,r)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),(function(r,i){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,i)}))},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=Ue(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),(function(t,o){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,o)}))},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,o=Ue(t,n);this.server_.onDisconnectPut(e.toString(),o.val(!0),(function(t,n){"ok"===t&&i.onDisconnect_.remember(e,o),i.callOnCompleteCallback(r,t,n)}))},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(l.isEmpty(t))return S("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,(function(i,o){"ok"===i&&N(t,(function(t,n){var i=Ue(n);r.onDisconnect_.remember(e.child(t),i)})),r.callOnCompleteCallback(n,i,o)}))},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Ot(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce((function(e,t){return Math.max(t.length,e)}),0);N(t,(function(e,t){for(var r=e,i=e.length;i<n+2;i++)r+=" ";console.log(r+t)}))}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),S.apply(void 0,s.__spread([n],e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&Y((function(){if("ok"===t)e(null);else{var r=(t||"error").toUpperCase(),i=r;n&&(i+=": "+n);var o=new Error(i);o.code=r,e(o)}}))},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new an(this))},enumerable:!0,configurable:!0}),e}(),Jt=function(){function e(t){this.indexedFilter_=new pt(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,o){return this.matches(new ge(t,n))||(n=Fe.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Fe.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Fe.EMPTY_NODE);var i=this;return t.forEachChild($e,(function(e,t){i.matches(new ge(e,t))||(r=r.updateImmediateChild(e,Fe.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),Xt=function(){function e(e){this.rangedFilter_=new Jt(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,o){return this.rangedFilter_.matches(new ge(t,n))||(n=Fe.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,o):this.fullLimitUpdateChild_(e,t,n,i,o)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Fe.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Fe.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var o=0;i.hasNext()&&o<this.limit_;){var a=i.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(a.name,a.node),o++}}else{r=(r=t.withIndex(this.index_)).updatePriority(Fe.EMPTY_NODE);var s=void 0,l=void 0,c=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var u=this.index_.getCompare();c=function(e,t){return u(t,e)}}else i=r.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();o=0;for(var d=!1;i.hasNext();){a=i.getNext();!d&&c(s,a)<=0&&(d=!0),d&&o<this.limit_&&c(a,l)<=0?o++:r=r.updateImmediateChild(a.name,Fe.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,i){var o;if(this.reverse_){var a=this.index_.getCompare();o=function(e,t){return a(t,e)}}else o=this.index_.getCompare();var s=e;l.assert(s.numChildren()===this.limit_,"");var c=new ge(t,n),u=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),d=this.rangedFilter_.matches(c);if(s.hasChild(t)){for(var h=s.getImmediateChild(t),f=r.getChildAfterChild(this.index_,u,this.reverse_);null!=f&&(f.name===t||s.hasChild(f.name));)f=r.getChildAfterChild(this.index_,f,this.reverse_);var p=null==f?1:o(f,c);if(d&&!n.isEmpty()&&p>=0)return null!=i&&i.trackChildChange(ft.childChangedChange(t,n,h)),s.updateImmediateChild(t,n);null!=i&&i.trackChildChange(ft.childRemovedChange(t,h));var m=s.updateImmediateChild(t,Fe.EMPTY_NODE);return null!=f&&this.rangedFilter_.matches(f)?(null!=i&&i.trackChildChange(ft.childAddedChange(f.name,f.node)),m.updateImmediateChild(f.name,f.node)):m}return n.isEmpty()?e:d&&o(u,c)>=0?(null!=i&&(i.trackChildChange(ft.childRemovedChange(u.name,u.node)),i.trackChildChange(ft.childAddedChange(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(u.name,Fe.EMPTY_NODE)):e},e}(),Qt=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=$e}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return l.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return l.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:$},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return l.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return l.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:P},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return l.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==$e&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===$e},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new pt(this.getIndex()):this.hasLimit()?new Xt(this):new Jt(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,r={};return this.isDefault()||(this.index_===$e?t=n.PRIORITY_INDEX:this.index_===qe?t=n.VALUE_INDEX:this.index_===_e?t=n.KEY_INDEX:(l.assert(this.index_ instanceof We,"Unrecognized index type!"),t=this.index_.toString()),r[n.ORDER_BY]=l.stringify(t),this.startSet_&&(r[n.START_AT]=l.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+l.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=l.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+l.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_)),r},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),Zt=function(e){function t(t,n){if(!(t instanceof Kt))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,Qt.DEFAULT,!1)||this}return s.__extends(t,e),t.prototype.getKey=function(){return l.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return l.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof e?e=String(e):e instanceof H||(null===this.path.getFront()?ue("Reference.child",1,e,!1):ce("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){l.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){l.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){l.validateArgCount("Reference.set",1,2,arguments.length),de("Reference.set",this.path),re("Reference.set",1,e,this.path,!1),l.validateCallback("Reference.set",2,t,!0);var n=new l.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(l.validateArgCount("Reference.update",1,2,arguments.length),de("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,x("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}oe("Reference.update",1,e,this.path,!1),l.validateCallback("Reference.update",2,t,!0);var i=new l.Deferred;return this.repo.update(this.path,e,i.wrapCallback(t)),i.promise},t.prototype.setWithPriority=function(e,t,n){if(l.validateArgCount("Reference.setWithPriority",2,3,arguments.length),de("Reference.setWithPriority",this.path),re("Reference.setWithPriority",1,e,this.path,!1),ae("Reference.setWithPriority",2,t,!1),l.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new l.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return l.validateArgCount("Reference.remove",0,1,arguments.length),de("Reference.remove",this.path),l.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(l.validateArgCount("Reference.transaction",1,3,arguments.length),de("Reference.transaction",this.path),l.validateCallback("Reference.transaction",1,e,!1),l.validateCallback("Reference.transaction",2,t,!0),fe("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new l.Deferred;"function"==typeof t&&r.promise.catch((function(){}));var i=function(e,n,i){e?r.reject(e):r.resolve(new me(n,i)),"function"==typeof t&&t(e,n,i)};return this.repo.startTransaction(this.path,e,i,n),r.promise},t.prototype.setPriority=function(e,t){l.validateArgCount("Reference.setPriority",1,2,arguments.length),de("Reference.setPriority",this.path),ae("Reference.setPriority",1,e,!1),l.validateCallback("Reference.setPriority",2,t,!0);var n=new l.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){l.validateArgCount("Reference.push",0,2,arguments.length),de("Reference.push",this.path),re("Reference.push",1,e,this.path,!0),l.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),i=ve(r),o=this.child(i),a=this.child(i);return n=null!=e?o.set(e,t).then((function(){return a})):Promise.resolve(a),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),"function"==typeof t&&n.catch((function(){})),o},t.prototype.onDisconnect=function(){return de("Reference.onDisconnect",this.path),new pe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),t}(Ze);Ze.__referenceConstructor=Zt,kt.__referenceConstructor=Zt;var en,tn=function(){this.children={},this.childCount=0,this.value=null},nn=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new tn),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n=t instanceof H?t:new H(t),r=this,i=n.getFront();null!==i;){r=new e(i,r,l.safeGet(r.node_.children,i)||new tn),i=(n=n.popFront()).getFront()}return r},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){l.assert(void 0!==e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;N(this.node_.children,(function(r,i){t(new e(r,n,i))}))},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild((function(t){t.forEachDescendant(e,!0,n)})),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild((function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)}))},e.prototype.path=function(){return new H(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=l.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(en||(en={})),Kt.MAX_TRANSACTION_RETRIES_=25,Kt.prototype.transactionsInit_=function(){this.transactionQueueTree_=new nn},Kt.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var i=function(){},o=new Zt(this,e);o.on("value",i);var a={path:e,update:t,onComplete:n,status:null,order:g(),applyLocally:r,retryCount:0,unwatcher:function(){o.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},s=this.getLatestState_(e);a.currentInputSnapshot=s;var c=a.update(s.val());if(void 0===c){if(a.unwatcher(),a.currentOutputSnapshotRaw=null,a.currentOutputSnapshotResolved=null,a.onComplete){var u=new Ge(a.currentInputSnapshot,new Zt(this,a.path),$e);a.onComplete(null,!1,u)}}else{ie("transaction failed: Data returned ",c,a.path),a.status=en.RUN;var d=this.transactionQueueTree_.subTree(e),h=d.getValue()||[];h.push(a),d.setValue(h);var f=void 0;if("object"==typeof c&&null!==c&&l.contains(c,".priority"))f=l.safeGet(c,".priority"),l.assert(ne(f),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else f=(this.serverSyncTree_.calcCompleteEventCache(e)||Fe.EMPTY_NODE).getPriority().val();f=f;var p=this.generateServerValues(),m=Ue(c,f),v=nt(m,p);a.currentOutputSnapshotRaw=m,a.currentOutputSnapshotResolved=v,a.currentWriteId=this.getNextWriteId_();var y=this.serverSyncTree_.applyUserOverwrite(e,v,a.currentWriteId,a.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,y),this.sendReadyTransactions_()}},Kt.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Fe.EMPTY_NODE},Kt.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);l.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return e.status===en.RUN}))&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild((function(e){t.sendReadyTransactions_(e)}))},Kt.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map((function(e){return e.currentWriteId})),i=this.getLatestState_(e,r),o=i,a=i.hash(),s=0;s<t.length;s++){var c=t[s];l.assert(c.status===en.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=en.SENT,c.retryCount++;var u=H.relativePath(e,c.path);o=o.updateChild(u,c.currentOutputSnapshotRaw)}var d=o.val(!0),h=e;this.server_.put(h.toString(),d,(function(r){n.log_("transaction put response",{path:h.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=0;a<t.length;a++){if(t[a].status=en.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(t[a].currentWriteId)),t[a].onComplete){var s=t[a].currentOutputSnapshotResolved,l=new Zt(n,t[a].path),c=new Ge(s,l,$e);o.push(t[a].onComplete.bind(null,null,!0,c))}t[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,i);for(a=0;a<o.length;a++)Y(o[a])}else{if("datastale"===r)for(a=0;a<t.length;a++)t[a].status===en.SENT_NEEDS_ABORT?t[a].status=en.NEEDS_ABORT:t[a].status=en.RUN;else{x("transaction at "+h.toString()+" failed: "+r);for(a=0;a<t.length;a++)t[a].status=en.NEEDS_ABORT,t[a].abortReason=r}n.rerunTransactions_(e)}}),a)},Kt.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},Kt.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,r=[],i=[],o=e.filter((function(e){return e.status===en.RUN})).map((function(e){return e.currentWriteId})),a=0;a<e.length;a++){var s=e[a],c=H.relativePath(t,s.path),u=!1,d=void 0;if(l.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),s.status===en.NEEDS_ABORT)u=!0,d=s.abortReason,i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else if(s.status===en.RUN)if(s.retryCount>=Kt.MAX_TRANSACTION_RETRIES_)u=!0,d="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else{var h=this.getLatestState_(s.path,o);s.currentInputSnapshot=h;var f=e[a].update(h.val());if(void 0!==f){ie("transaction failed: Data returned ",f,s.path);var p=Ue(f);"object"==typeof f&&null!=f&&l.contains(f,".priority")||(p=p.updatePriority(h.getPriority()));var m=s.currentWriteId,v=this.generateServerValues(),g=nt(p,v);s.currentOutputSnapshotRaw=p,s.currentOutputSnapshotResolved=g,s.currentWriteId=this.getNextWriteId_(),o.splice(o.indexOf(m),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(s.path,g,s.currentWriteId,s.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(m,!0))}else u=!0,d="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,i),i=[],u&&(e[a].status=en.COMPLETED,n=e[a].unwatcher,setTimeout(n,Math.floor(0)),e[a].onComplete))if("nodata"===d){var y=new Zt(this,e[a].path),b=e[a].currentInputSnapshot,_=new Ge(b,y,$e);r.push(e[a].onComplete.bind(null,null,!1,_))}else r.push(e[a].onComplete.bind(null,new Error(d),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(a=0;a<r.length;a++)Y(r[a]);this.sendReadyTransactions_()}},Kt.prototype.getAncestorTransactionNode_=function(e){var t,n=this.transactionQueueTree_;for(t=e.getFront();null!==t&&null===n.getValue();)n=n.subTree(t),t=(e=e.popFront()).getFront();return n},Kt.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort((function(e,t){return e.order-t.order})),t},Kt.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var i=0;i<r.length;i++)t.push(r[i]);e.forEachChild((function(e){n.aggregateTransactionQueuesForNode_(e,t)}))},Kt.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==en.COMPLETED&&(n[r]=n[i],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild((function(e){t.pruneCompletedTransactionsBelowNode_(e)}))},Kt.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor((function(e){t.abortTransactionsOnNode_(e)})),this.abortTransactionsOnNode_(r),r.forEachDescendant((function(e){t.abortTransactionsOnNode_(e)})),n},Kt.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,o=0;o<t.length;o++)if(t[o].status===en.SENT_NEEDS_ABORT);else if(t[o].status===en.SENT)l.assert(i===o-1,"All SENT items should be at beginning of queue."),i=o,t[o].status=en.SENT_NEEDS_ABORT,t[o].abortReason="set";else if(l.assert(t[o].status===en.RUN,"Unexpected transaction status in abort"),t[o].unwatcher(),r=r.concat(this.serverSyncTree_.ackUserWrite(t[o].currentWriteId,!0)),t[o].onComplete){n.push(t[o].onComplete.bind(null,new Error("set"),!1,null))}-1===i?e.setValue(null):t.length=i+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(o=0;o<n.length;o++)Y(n[o])}};var rn,on=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return rn||(rn=new e),rn},e.prototype.interrupt=function(){var e,t,n,r;try{for(var i=s.__values(Object.keys(this.repos_)),o=i.next();!o.done;o=i.next()){var a=o.value;try{for(var l=(n=void 0,s.__values(Object.keys(this.repos_[a]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[a][u].interrupt()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.resume=function(){var e,t,n,r;try{for(var i=s.__values(Object.keys(this.repos_)),o=i.next();!o.done;o=i.next()){var a=o.value;try{for(var l=(n=void 0,s.__values(Object.keys(this.repos_[a]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[a][u].resume()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.databaseFromApp=function(e,t,n){var i=n||e.options.databaseURL;void 0===i&&T("Can't determine Firebase Database URL.  Be sure to include databaseURL option when calling firebase.initializeApp().");var o=J(i),a=o.repoInfo,s=void 0;return void 0!==r&&(s=r.env.FIREBASE_DATABASE_EMULATOR_HOST),s&&(i="http://"+s+"?ns="+a.namespace,a=(o=J(i)).repoInfo),he("Invalid Firebase Database URL",1,o),o.path.isEmpty()||T("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(a,e,t).database},e.prototype.deleteRepo=function(e){var t=l.safeGet(this.repos_,e.app.name);t&&l.safeGet(t,e.repoInfo_.toURLString())===e||T("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t,n){var r=l.safeGet(this.repos_,t.name);r||(r={},this.repos_[t.name]=r);var i=l.safeGet(r,e.toURLString());return i&&T("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new Kt(e,this.useRestClient_,t,n),r[e.toURLString()]=i,i},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),an=function(){function e(e){this.repo_=e,e instanceof Kt||T("Don't call new Database() directly - please use firebase.database()."),this.root_=new Zt(e,H.Empty),this.INTERNAL=new sn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),l.validateArgCount("database.ref",0,1,arguments.length),e instanceof Zt?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),l.validateArgCount(t,1,1,arguments.length);var n=J(e);he(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&T(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&T("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){l.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){l.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"}},e}(),sn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return s.__awaiter(this,void 0,void 0,(function(){return s.__generator(this,(function(e){return this.database.checkDeleted_("delete"),on.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}))},e}(),ln=Object.freeze({__proto__:null,forceLongPolling:function(){Ut.forceDisallow(),Bt.forceAllow()},forceWebSockets:function(){Bt.forceDisallow()},isWebSocketsAvailable:function(){return Ut.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),cn=Wt;Wt.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Wt.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var un=Vt,dn=z,hn=Object.freeze({__proto__:null,DataConnection:cn,RealTimeConnection:un,hijackHash:function(e){var t=Wt.prototype.put;return Wt.prototype.put=function(n,r,i,o){void 0!==o&&(o=e()),t.call(this,n,r,i,o)},function(){Wt.prototype.put=t}},ConnectionTarget:dn,queryIdentifier:function(e){return e.queryIdentifier()},forceRestClient:function(e){on.getInstance().forceRestClient(e)}}),fn=an.ServerValue;function pn(t){!function(e){Ft=e}(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new u.Component("database",(function(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return on.getInstance().databaseFromApp(n,r,t)}),"PUBLIC").setServiceProps({Reference:Zt,Query:Ze,Database:an,DataSnapshot:Ge,enableLogging:k,INTERNAL:ln,ServerValue:fn,TEST_ACCESS:hn}).setMultipleInstances(!0));t.registerVersion("@firebase/database","0.5.24"),l.isNodeSdk()&&(e.exports=n)}pn(a),t.DataSnapshot=Ge,t.Database=an,t.OnDisconnect=pe,t.Query=Ze,t.Reference=Zt,t.ServerValue=fn,t.enableLogging=k,t.registerDatabase=pn}).call(this,n(13))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(6))&&"object"==typeof r&&"default"in r?r.default:r,o=n(4),a=n(26),s=n(15),l=n(14),c=n(283),u=i.SDK_VERSION,d=new a.Logger("@firebase/firestore");function h(){return d.logLevel===a.LogLevel.DEBUG?0:d.logLevel===a.LogLevel.SILENT?2:1}function f(e){switch(e){case 0:d.logLevel=a.LogLevel.DEBUG;break;case 1:d.logLevel=a.LogLevel.ERROR;break;case 2:d.logLevel=a.LogLevel.SILENT;break;default:d.error("Firestore ("+u+"): Invalid value passed to `setLogLevel`")}}function p(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(d.logLevel<=a.LogLevel.DEBUG){var i=n.map(v);d.debug.apply(d,o.__spreadArrays(["Firestore ("+u+") ["+e+"]: "+t],i))}}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(d.logLevel<=a.LogLevel.ERROR){var r=t.map(v);d.error.apply(d,o.__spreadArrays(["Firestore ("+u+"): "+e],r))}}function v(e){if("string"==typeof e)return e;var t=an.t();try{return t.i(e)}catch(t){return e}}function g(e){var t="FIRESTORE ("+u+") INTERNAL ASSERTION FAILED: "+e;throw m(t),new Error(t)}function y(e,t){e||g(t)}var b=function(){function e(){}return e.u=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return y(20===t.length,"Invalid auto ID: "+t),t},e}();function _(e,t){return e<t?-1:e>t?1:0}function w(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}function k(e){return e+"\0"}var S=function(e,t,n,r,i){this.s=e,this.persistenceKey=t,this.host=n,this.ssl=r,this.forceLongPolling=i},E=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"o",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.h=function(e){return _(this.projectId,e.projectId)||_(this.database,e.database)},e}(),C=function(){function e(e){this.uid=e}return e.prototype.l=function(){return null!=this.uid},e.prototype.v=function(){return this.l()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e.UNAUTHENTICATED=new e(null),e.m=new e("google-credentials-uid"),e.p=new e("first-party-uid"),e}(),T={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"},x=function(e){function t(t,n){var r=e.call(this,n)||this;return r.code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return o.__extends(t,e),t}(Error),M=function(e,t){this.user=t,this.type="OAuth",this.g={},this.g.Authorization="Bearer "+e},$=function(){function e(){this._=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype.I=function(){},e.prototype.T=function(e){y(!this._,"Can only call setChangeListener() once."),this._=e,e(C.UNAUTHENTICATED)},e.prototype.D=function(){y(null!==this._,"removeChangeListener() when no listener registered"),this._=null},e}(),P=function(){function e(e){var t=this;this.S=null,this.currentUser=C.UNAUTHENTICATED,this.R=!1,this.C=0,this._=null,this.forceRefresh=!1,this.S=function(){t.C++,t.currentUser=t.A(),t.R=!0,t._&&t._(t.currentUser)},this.C=0,this.auth=e.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.S):(this.S(null),e.get().then((function(e){t.auth=e,t.S&&t.auth.addAuthTokenListener(t.S)}),(function(){})))}return e.prototype.getToken=function(){var e=this;y(null!=this.S,"getToken cannot be called after listener removed.");var t=this.C,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(e.C!==t)throw new x(T.ABORTED,"getToken aborted due to token change.");return n?(y("string"==typeof n.accessToken,"Invalid tokenData returned from getToken():"+n),new M(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype.I=function(){this.forceRefresh=!0},e.prototype.T=function(e){y(!this._,"Can only call setChangeListener() once."),this._=e,this.R&&e(this.currentUser)},e.prototype.D=function(){y(null!=this.S,"removeChangeListener() called twice"),y(null!==this._,"removeChangeListener() called when no listener registered"),this.auth&&this.auth.removeAuthTokenListener(this.S),this.S=null,this._=null},e.prototype.A=function(){var e=this.auth&&this.auth.getUid();return y(null===e||"string"==typeof e,"Received invalid UID: "+e),new C(e)},e}(),O=function(){function e(e,t){this.P=e,this.k=t,this.type="FirstParty",this.user=C.p}return Object.defineProperty(e.prototype,"g",{get:function(){var e={"X-Goog-AuthUser":this.k},t=this.P.auth.N([]);return t&&(e.Authorization=t),e},enumerable:!0,configurable:!0}),e}(),L=function(){function e(e,t){this.P=e,this.k=t}return e.prototype.getToken=function(){return Promise.resolve(new O(this.P,this.k))},e.prototype.T=function(e){e(C.p)},e.prototype.D=function(){},e.prototype.I=function(){},e}();function A(e){if(!e)return new $;switch(e.type){case"gapi":var t=e.O;return y(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty),"unexpected gapi interface"),new L(t,e.k||"0");case"provider":return e.O;default:throw new x(T.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function D(e,t){return void 0!==e?e:t}function N(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Number(n);isNaN(r)||t(r,e[n])}}function R(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function j(e){for(var t in y(null!=e&&"object"==typeof e,"isEmpty() expects object parameter."),e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function B(e,t){if(0!==t.length)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() does not support arguments, but was called with "+ie(t.length,"argument")+".")}function Y(e,t,n){if(t.length!==n)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires "+ie(n,"argument")+", but was called with "+ie(t.length,"argument")+".")}function F(e,t,n){if(t.length<n)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires at least "+ie(n,"argument")+", but was called with "+ie(t.length,"argument")+".")}function H(e,t,n,r){if(t.length<n||t.length>r)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+r+" arguments, but was called with "+ie(t.length,"argument")+".")}function U(e,t,n,r){if(!(t instanceof Array)||t.length<r)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" argument to be an array with at least "+ie(r,"element")+".")}function z(e,t,n,r){J(e,t,re(n)+" argument",r)}function V(e,t,n,r){void 0!==r&&z(e,t,n,r)}function q(e,t,n,r){J(e,t,n+" option",r)}function W(e,t,n,r){void 0!==r&&q(e,t,n,r)}function G(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var l=s[a];if(l===r)return;o.push(Q(l))}var c=Q(r);throw new x(T.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(e,0,n,r,i)}function K(e,t,n,r){if(!t.some((function(e){return e===r})))throw new x(T.INVALID_ARGUMENT,"Invalid value "+Q(r)+" provided to function "+e+"() for its "+re(n)+" argument. Acceptable values: "+t.join(", "))}function J(e,t,n,r){if(!("object"===t?X(r):"non-empty string"===t?"string"==typeof r&&""!==r:typeof r===t)){var i=Q(r);throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+i)}}function X(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function Q(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":g("Unknown wrong type: "+typeof e)}function Z(e,t,n){if(void 0===n)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+re(t)+" argument, but it was undefined.")}function ee(e,t,n){R(t,(function(t,r){if(n.indexOf(t)<0)throw new x(T.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))}))}function te(e,t,n,r){var i=Q(r);return new x(T.INVALID_ARGUMENT,"Function "+e+"() requires its "+re(n)+" argument to be a "+t+", but it was: "+i)}function ne(e,t,n){if(n<=0)throw new x(T.INVALID_ARGUMENT,'Function "'+e+'()" requires its '+re(t)+" argument to be a positive number, but it was: "+n+".")}function re(e){switch(e){case 1:return"first";case 2:return"second";case 3:return"third";default:return e+"th"}}function ie(e,t){return e+" "+t+(1===e?"":"s")}var oe=function(){function e(e,t){if(Y("GeoPoint",arguments,2),z("GeoPoint","number",1,e),z("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new x(T.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new x(T.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this.F=e,this.V=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this.F},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.V},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this.F===e.F&&this.V===e.V},e.prototype.U=function(e){return _(this.F,e.F)||_(this.V,e.V)},e}(),ae=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new x(T.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new x(T.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new x(T.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new x(T.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype.U=function(e){return this.seconds===e.seconds?_(this.nanoseconds,e.nanoseconds):_(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e.prototype.valueOf=function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},e}(),se=function(){function e(e){this.timestamp=e}return e.j=function(t){var n=Math.floor(t/1e6);return new e(new ae(n,t%1e6*1e3))},e.L=function(t){return new e(t)},e.q=function(){return e.MIN},e.prototype.h=function(e){return this.timestamp.U(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.B=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.M=function(){return this.timestamp},e.MIN=new e(new ae(0,0)),e}(),le=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&g("offset "+t+" out of range "+e.length),void 0===n?n=e.length-t:n>e.length-t&&g("length "+n+" out of range "+(e.length-t)),this.segments=e,this.offset=t,this.len=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.G(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.W(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.K=function(e){return e=void 0===e?1:e,y(this.length>=e,"Can't call popFirst() with less segments"),this.W(this.segments,this.offset+e,this.length-e)},e.prototype.H=function(){return y(!this.J(),"Can't call popLast() on empty path"),this.W(this.segments,this.offset,this.length-1)},e.prototype.Y=function(){return y(!this.J(),"Can't call firstSegment() on empty path"),this.segments[this.offset]},e.prototype.X=function(){return this.get(this.length-1)},e.prototype.get=function(e){return y(e<this.length,"Index out of range"),this.segments[this.offset+e]},e.prototype.J=function(){return 0===this.length},e.prototype.$=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.Z=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.tt=function(){return this.segments.slice(this.offset,this.limit())},e.G=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.W=function(e,n,r){return new t(e,n,r)},t.prototype.nt=function(){return this.tt().join("/")},t.prototype.toString=function(){return this.nt()},t.it=function(e){if(e.indexOf("//")>=0)throw new x(T.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter((function(e){return e.length>0})))},t.et=new t([]),t}(le),ue=/^[_a-zA-Z][_a-zA-Z0-9]*$/,de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.W=function(e,n,r){return new t(e,n,r)},t.rt=function(e){return ue.test(e)},t.prototype.nt=function(){return this.tt().map((function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.rt(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.nt()},t.prototype.ut=function(){return 1===this.length&&"__name__"===this.get(0)},t.st=function(){return new t(["__name__"])},t.ot=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new x(T.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new x(T.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new x(T.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new x(T.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.et=new t([]),t}(le),he=function(){function e(t){this.path=t,y(e.ht(t),"Invalid DocumentKey with an odd number of segments: "+t.tt().join("/"))}return e.prototype.ct=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===ce.G(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.G=function(e,t){return ce.G(e.path,t.path)},e.ht=function(e){return e.length%2==0},e.at=function(t){return new e(new ce(t.slice()))},e.ft=function(t){return new e(ce.it(t))},e.EMPTY=new e(new ce([])),e}(),fe=function(){function e(e,t){this.G=e,this.root=t||me.EMPTY}return e.prototype.lt=function(t,n){return new e(this.G,this.root.lt(t,n,this.G).copy(null,null,me.dt,null,null))},e.prototype.remove=function(t){return new e(this.G,this.root.remove(t,this.G).copy(null,null,me.dt,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.J();){var n=this.G(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.J();){var r=this.G(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.J=function(){return this.root.J()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.vt=function(){return this.root.vt()},e.prototype.wt=function(){return this.root.wt()},e.prototype.pt=function(e){return this.root.pt(e)},e.prototype.forEach=function(e){this.pt((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.pt((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.gt=function(e){return this.root.gt(e)},e.prototype.bt=function(){return new pe(this.root,null,this.G,!1)},e.prototype.yt=function(e){return new pe(this.root,e,this.G,!1)},e.prototype._t=function(){return new pe(this.root,null,this.G,!0)},e.prototype.It=function(e){return new pe(this.root,e,this.G,!0)},e}(),pe=function(){function e(e,t,n,r){this.Tt=r,this.Et=[];for(var i=1;!e.J();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.Tt?e.left:e.right;else{if(0===i){this.Et.push(e);break}this.Et.push(e),e=this.Tt?e.right:e.left}}return e.prototype.Dt=function(){y(this.Et.length>0,"getNext() called on iterator when hasNext() is false.");var e=this.Et.pop(),t={key:e.key,value:e.value};if(this.Tt)for(e=e.left;!e.J();)this.Et.push(e),e=e.right;else for(e=e.right;!e.J();)this.Et.push(e),e=e.left;return t},e.prototype.St=function(){return this.Et.length>0},e.prototype.Rt=function(){if(0===this.Et.length)return null;var e=this.Et[this.Et.length-1];return{key:e.key,value:e.value}},e}(),me=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.J=function(){return!1},e.prototype.pt=function(e){return this.left.pt(e)||e(this.key,this.value)||this.right.pt(e)},e.prototype.gt=function(e){return this.right.gt(e)||e(this.key,this.value)||this.left.gt(e)},e.prototype.min=function(){return this.left.J()?this:this.left.min()},e.prototype.vt=function(){return this.min().key},e.prototype.wt=function(){return this.right.J()?this.key:this.right.wt()},e.prototype.lt=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.lt(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.lt(e,t,n))).Ct()},e.prototype.At=function(){if(this.left.J())return e.EMPTY;var t=this;return t.left.Pt()||t.left.left.Pt()||(t=t.kt()),(t=t.copy(null,null,null,t.left.At(),null)).Ct()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.J()||i.left.Pt()||i.left.left.Pt()||(i=i.kt()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.Pt()&&(i=i.Nt()),i.right.J()||i.right.Pt()||i.right.left.Pt()||(i=i.Ot()),0===n(t,i.key)){if(i.right.J())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.At())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.Ct()},e.prototype.Pt=function(){return this.color},e.prototype.Ct=function(){var e=this;return e.right.Pt()&&!e.left.Pt()&&(e=e.Ft()),e.left.Pt()&&e.left.left.Pt()&&(e=e.Nt()),e.left.Pt()&&e.right.Pt()&&(e=e.Vt()),e},e.prototype.kt=function(){var e=this.Vt();return e.right.left.Pt()&&(e=(e=(e=e.copy(null,null,null,null,e.right.Nt())).Ft()).Vt()),e},e.prototype.Ot=function(){var e=this.Vt();return e.left.left.Pt()&&(e=(e=e.Nt()).Vt()),e},e.prototype.Ft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.Nt=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.Vt=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.Ut=function(){var e=this.xt();return Math.pow(2,e)<=this.size+1},e.prototype.xt=function(){if(this.Pt()&&this.left.Pt())throw g("Red node has red child("+this.key+","+this.value+")");if(this.right.Pt())throw g("Right child of ("+this.key+","+this.value+") is red");var e=this.left.xt();if(e!==this.right.xt())throw g("Black depths differ");return e+(this.Pt()?0:1)},e.EMPTY=null,e.RED=!0,e.dt=!1,e}(),ve=function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw g("LLRBEmptyNode has no key.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw g("LLRBEmptyNode has no value.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw g("LLRBEmptyNode has no color.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw g("LLRBEmptyNode has no left child.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw g("LLRBEmptyNode has no right child.")},enumerable:!0,configurable:!0}),e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.lt=function(e,t,n){return new me(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.J=function(){return!0},e.prototype.pt=function(e){return!1},e.prototype.gt=function(e){return!1},e.prototype.vt=function(){return null},e.prototype.wt=function(){return null},e.prototype.Pt=function(){return!1},e.prototype.Ut=function(){return!0},e.prototype.xt=function(){return 0},e}();me.EMPTY=new ve;var ge=function(){function e(e){this.G=e,this.data=new fe(this.G)}return e.jt=function(t){var n=new e(t.G);return t.forEach((function(e){n=n.add(e)})),n},e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.vt()},e.prototype.last=function(){return this.data.wt()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.pt((function(t,n){return e(t),!1}))},e.prototype.Lt=function(e,t){for(var n=this.data.yt(e[0]);n.St();){var r=n.Dt();if(this.G(r.key,e[1])>=0)return;t(r.key)}},e.prototype.qt=function(e,t){var n;for(n=void 0!==t?this.data.yt(t):this.data.bt();n.St();)if(!e(n.Dt().key))return},e.prototype.Bt=function(e){var t=this.data.yt(e);return t.St()?t.Dt().key:null},e.prototype.bt=function(){return new ye(this.data.bt())},e.prototype.yt=function(e){return new ye(this.data.yt(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).lt(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.J=function(){return this.data.J()},e.prototype.Mt=function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.bt(),r=t.data.bt();n.St();){var i=n.Dt().key,o=r.Dt().key;if(0!==this.G(i,o))return!1}return!0},e.prototype.tt=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},e.prototype.toString=function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.G);return n.data=t,n},e}(),ye=function(){function e(e){this.Qt=e}return e.prototype.Dt=function(){return this.Qt.Dt().key},e.prototype.St=function(){return this.Qt.St()},e}(),be=function(){function e(){}return e.prototype.Gt=function(e,t){return new ze(t,e)},e.prototype.Wt=function(e,t){return t},e.prototype.zt=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e},e.instance=new e,e}(),_e=function(){function e(e){this.elements=e}return e.prototype.Gt=function(e,t){return this.apply(e)},e.prototype.Wt=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=Se(e),n=function(e){t.find((function(t){return t.isEqual(e)}))||t.push(e)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return new Je(t)},e.prototype.zt=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&w(t.elements,this.elements)},e}(),we=function(){function e(e){this.elements=e}return e.prototype.Gt=function(e,t){return this.apply(e)},e.prototype.Wt=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=Se(e),n=function(e){t=t.filter((function(t){return!t.isEqual(e)}))},r=0,i=this.elements;r<i.length;r++)n(i[r]);return new Je(t)},e.prototype.zt=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&w(t.elements,this.elements)},e}(),ke=function(){function e(e){this.Kt=e}return e.prototype.Gt=function(e,t){var n=this.zt(e);if(n instanceof Ye&&this.Kt instanceof Ye){var r=n.Ht+this.Kt.Ht;return new Ye(r)}return r=n.Ht+this.Kt.Ht,new Fe(r)},e.prototype.Wt=function(e,t){return y(null!==t,"Didn't receive transformResult for NUMERIC_ADD transform"),t},e.prototype.zt=function(e){return e instanceof je?e:new Ye(0)},e.prototype.isEqual=function(t){return t instanceof e&&this.Kt.isEqual(t.Kt)},e}();function Se(e){return e instanceof Je?e.Ht.slice():[]}var Ee=function(){function e(e){this.fields=e}return e.Jt=function(t){return new e(t)},e.Yt=function(t){var n=new ge(de.G);return t.forEach((function(e){return n=n.add(e)})),new e(n)},e.prototype.Xt=function(e){var t=!1;return this.fields.forEach((function(n){n.$(e)&&(t=!0)})),t},e.prototype.isEqual=function(e){return this.fields.isEqual(e.fields)},e}(),Ce=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),Te=function(e,t){this.version=e,this.transformResults=t},xe=function(){function e(e,t){this.updateTime=e,this.exists=t,y(void 0===e||void 0===t,'Precondition can specify "exists" or "updateTime" but not both')}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"$t",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.Zt=function(e){return void 0!==this.updateTime?e instanceof Qe&&e.version.isEqual(this.updateTime):void 0!==this.exists?this.exists===e instanceof Qe:(y(this.$t,"Precondition should be empty"),!0)},e.prototype.isEqual=function(e){return t=this.updateTime,n=e.updateTime,(null!=t?!(!n||!t.isEqual(n)):t===n)&&this.exists===e.exists;var t,n},e.NONE=new e,e}(),Me=function(){function e(){}return e.prototype.tn=function(e){null!=e&&y(e.key.isEqual(this.key),"Can only apply a mutation to a document with the same key")},e.nn=function(e){return e instanceof Qe?e.version:se.MIN},e}(),$e=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.value=n,i.in=r,i.type=0,i}return o.__extends(t,e),t.prototype.Wt=function(e,t){this.tn(e),y(null==t.transformResults,"Transform results received by SetMutation.");var n=t.version;return new Qe(this.key,n,{hasCommittedMutations:!0},this.value)},t.prototype.Gt=function(e,t,n){if(this.tn(e),!this.in.Zt(e))return e;var r=Me.nn(e);return new Qe(this.key,r,{en:!0},this.value)},t.prototype.rn=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.in.isEqual(e.in)},t}(Me),Pe=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.key=t,o.data=n,o.un=r,o.in=i,o.type=1,o}return o.__extends(t,e),t.prototype.Wt=function(e,t){if(this.tn(e),y(null==t.transformResults,"Transform results received by PatchMutation."),!this.in.Zt(e))return new et(this.key,t.version);var n=this.sn(e);return new Qe(this.key,t.version,{hasCommittedMutations:!0},n)},t.prototype.Gt=function(e,t,n){if(this.tn(e),!this.in.Zt(e))return e;var r=Me.nn(e),i=this.sn(e);return new Qe(this.key,r,{en:!0},i)},t.prototype.rn=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.un.isEqual(e.un)&&this.in.isEqual(e.in)},t.prototype.sn=function(e){var t;return t=e instanceof Qe?e.data():Ge.EMPTY,this.on(t)},t.prototype.on=function(e){var t=this,n=e.hn();return this.un.fields.forEach((function(e){if(!e.J()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}})),n.cn()},t}(Me),Oe=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.fieldTransforms=n,r.type=2,r.in=xe.exists(!0),r}return o.__extends(t,e),t.prototype.Wt=function(e,t){if(this.tn(e),y(null!=t.transformResults,"Transform results missing for TransformMutation."),!this.in.Zt(e))return new et(this.key,t.version);var n=this.an(e),r=this.fn(e,t.transformResults),i=t.version,o=this.ln(n.data(),r);return new Qe(this.key,i,{hasCommittedMutations:!0},o)},t.prototype.Gt=function(e,t,n){if(this.tn(e),!this.in.Zt(e))return e;var r=this.an(e),i=this.dn(n,e,t),o=this.ln(r.data(),i);return new Qe(this.key,r.version,{en:!0},o)},t.prototype.rn=function(e){for(var t=null,n=0,r=this.fieldTransforms;n<r.length;n++){var i=r[n],o=e instanceof Qe?e.field(i.field):void 0,a=i.transform.zt(o||null);null!=a&&(t=null==t?Ge.vn().set(i.field,a):t.set(i.field,a))}return t?t.cn():null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&w(this.fieldTransforms,e.fieldTransforms)&&this.in.isEqual(e.in)},t.prototype.an=function(e){return y(e instanceof Qe,"Unknown MaybeDocument type "+e),y(e.key.isEqual(this.key),"Can only transform a document with the same key"),e},t.prototype.fn=function(e,t){var n=[];y(this.fieldTransforms.length===t.length,"server transform result count ("+t.length+") should match field transform count ("+this.fieldTransforms.length+")");for(var r=0;r<t.length;r++){var i=this.fieldTransforms[r],o=i.transform,a=null;e instanceof Qe&&(a=e.field(i.field)),n.push(o.Wt(a,t[r]))}return n},t.prototype.dn=function(e,t,n){for(var r=[],i=0,o=this.fieldTransforms;i<o.length;i++){var a=o[i],s=a.transform,l=null;t instanceof Qe&&(l=t.field(a.field)),null===l&&n instanceof Qe&&(l=n.field(a.field)),r.push(s.Gt(l,e))}return r},t.prototype.ln=function(e,t){y(t.length===this.fieldTransforms.length,"TransformResults length mismatch.");for(var n=e.hn(),r=0;r<this.fieldTransforms.length;r++){var i=this.fieldTransforms[r].field;n.set(i,t[r])}return n.cn()},t}(Me),Le=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.in=n,r.type=3,r}return o.__extends(t,e),t.prototype.Wt=function(e,t){return this.tn(e),y(null==t.transformResults,"Transform results received by DeleteMutation."),new Ze(this.key,t.version,{hasCommittedMutations:!0})},t.prototype.Gt=function(e,t,n){return this.tn(e),this.in.Zt(e)?(e&&y(e.key.isEqual(this.key),"Can only apply mutation to document with same key"),new Ze(this.key,se.q())):e},t.prototype.rn=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.in.isEqual(e.in)},t}(Me),Ae=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.in=n,r.type=4,r}return o.__extends(t,e),t.prototype.Wt=function(e,t){g("VerifyMutation should only be used in Transactions.")},t.prototype.Gt=function(e,t,n){g("VerifyMutation should only be used in Transactions.")},t.prototype.rn=function(e){g("VerifyMutation should only be used in Transactions.")},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.in.isEqual(e.in)},t}(Me),Ie=function(){function e(e,t){this.wn=e,this.timestampsInSnapshots=t}return e.mn=function(t,n){switch(t.serverTimestamps){case"estimate":return new e(1,n);case"previous":return new e(2,n);case"none":case void 0:return new e(0,n);default:return g("fromSnapshotOptions() called with invalid options.")}},e}(),De=function(){function e(){}return e.prototype.toString=function(){var e=this.value();return null===e?"null":e.toString()},e.prototype.pn=function(e){return y(this.gn!==e.gn,"Default compareTo should not be used for values of same type."),_(this.gn,e.gn)},e}(),Ne=function(e){function t(){var t=e.call(this)||this;return t.gn=0,t.Ht=null,t}return o.__extends(t,e),t.prototype.value=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t},t.prototype.h=function(e){return e instanceof t?0:this.pn(e)},t.prototype.bn=function(){return 4},t.yn=new t,t}(De),Re=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=1,n}return o.__extends(t,e),t.prototype.value=function(e){return this.Ht},t.prototype.isEqual=function(e){return e instanceof t&&this.Ht===e.Ht},t.prototype.h=function(e){return e instanceof t?_(this.Ht,e.Ht):this.pn(e)},t.prototype.bn=function(){return 4},t.of=function(e){return e?t._n:t.In},t._n=new t(!0),t.In=new t(!1),t}(De),je=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=2,n}return o.__extends(t,e),t.prototype.value=function(e){return this.Ht},t.prototype.h=function(e){return e instanceof t?(n=this.Ht)<(r=e.Ht)?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1:this.pn(e);var n,r},t.prototype.bn=function(){return 8},t}(De);function Be(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var Ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&Be(this.Ht,e.Ht)},t}(je),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&Be(this.Ht,e.Ht)},t.Tn=new t(NaN),t.POSITIVE_INFINITY=new t(1/0),t.NEGATIVE_INFINITY=new t(-1/0),t}(je),He=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=4,n}return o.__extends(t,e),t.prototype.value=function(e){return this.Ht},t.prototype.isEqual=function(e){return e instanceof t&&this.Ht===e.Ht},t.prototype.h=function(e){return e instanceof t?_(this.Ht,e.Ht):this.pn(e)},t.prototype.bn=function(){return 2*this.Ht.length},t}(De),Ue=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=3,n}return o.__extends(t,e),t.prototype.value=function(e){return!e||e.timestampsInSnapshots?this.Ht:this.Ht.toDate()},t.prototype.isEqual=function(e){return e instanceof t&&this.Ht.isEqual(e.Ht)},t.prototype.h=function(e){return e instanceof t?this.Ht.U(e.Ht):e instanceof ze?-1:this.pn(e)},t.prototype.bn=function(){return 16},t}(De),ze=function(e){function t(t,n){var r=e.call(this)||this;return r.En=t,r.previousValue=n,r.gn=3,r}return o.__extends(t,e),t.prototype.value=function(e){return e&&1===e.wn?new Ue(this.En).value(e):e&&2===e.wn&&this.previousValue?this.previousValue.value(e):null},t.prototype.isEqual=function(e){return e instanceof t&&this.En.isEqual(e.En)},t.prototype.h=function(e){return e instanceof t?this.En.U(e.En):e instanceof Ue?1:this.pn(e)},t.prototype.toString=function(){return"<ServerTimestamp localTime="+this.En.toString()+">"},t.prototype.bn=function(){return 16+(this.previousValue?this.previousValue.bn():0)},t}(De),Ve=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=5,n}return o.__extends(t,e),t.prototype.value=function(e){return this.Ht},t.prototype.isEqual=function(e){return e instanceof t&&this.Ht.isEqual(e.Ht)},t.prototype.h=function(e){return e instanceof t?this.Ht.U(e.Ht):this.pn(e)},t.prototype.bn=function(){return this.Ht.Dn()},t}(De),qe=function(e){function t(t,n){var r=e.call(this)||this;return r.s=t,r.key=n,r.gn=6,r}return o.__extends(t,e),t.prototype.value=function(e){return this.key},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.s.isEqual(e.s)},t.prototype.h=function(e){if(e instanceof t){var n=this.s.h(e.s);return 0!==n?n:he.G(this.key,e.key)}return this.pn(e)},t.prototype.bn=function(){return this.s.projectId.length+this.s.database.length+this.key.toString().length},t}(De),We=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=7,n}return o.__extends(t,e),t.prototype.value=function(e){return this.Ht},t.prototype.isEqual=function(e){return e instanceof t&&this.Ht.isEqual(e.Ht)},t.prototype.h=function(e){return e instanceof t?this.Ht.U(e.Ht):this.pn(e)},t.prototype.bn=function(){return 16},t}(De),Ge=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=9,n}return o.__extends(t,e),t.vn=function(){return new Ke(t.EMPTY.Ht)},t.prototype.value=function(e){var t={};return this.Ht.pt((function(n,r){t[n]=r.value(e)})),t},t.prototype.forEach=function(e){this.Ht.pt(e)},t.prototype.isEqual=function(e){if(e instanceof t){for(var n=this.Ht.bt(),r=e.Ht.bt();n.St()&&r.St();){var i=n.Dt(),o=r.Dt();if(i.key!==o.key||!i.value.isEqual(o.value))return!1}return!n.St()&&!r.St()}return!1},t.prototype.h=function(e){if(e instanceof t){for(var n=this.Ht.bt(),r=e.Ht.bt();n.St()&&r.St();){var i=n.Dt(),o=r.Dt(),a=_(i.key,o.key)||i.value.h(o.value);if(a)return a}return _(n.St(),r.St())}return this.pn(e)},t.prototype.contains=function(e){return null!==this.field(e)},t.prototype.field=function(e){y(!e.J(),"Can't get field of empty path");var n=this;return e.forEach((function(e){n=n instanceof t?n.Ht.get(e):null})),n},t.prototype.un=function(){var e=new ge(de.G);return this.Ht.forEach((function(n,r){var i=new de([n]);if(r instanceof t){var o=r.un().fields;o.J()?e=e.add(i):o.forEach((function(t){e=e.add(i.child(t))}))}else e=e.add(i)})),Ee.Jt(e)},t.prototype.bn=function(){var e=0;return this.Ht.pt((function(t,n){e+=t.length+n.bn()})),e},t.prototype.toString=function(){return this.Ht.toString()},t.prototype.hn=function(){return new Ke(this.Ht)},t.EMPTY=new t(new fe(_)),t}(De),Ke=function(){function e(e){this.Ht=e}return e.prototype.set=function(e,t){y(!e.J(),"Cannot set field for empty path on ObjectValue");var n=e.Y();if(1===e.length)this.Ht=this.Ht.lt(n,t);else{var r=this.Ht.get(n),i=(r instanceof Ge?r:Ge.EMPTY).hn().set(e.K(),t).cn();this.Ht=this.Ht.lt(n,i)}return this},e.prototype.delete=function(e){y(!e.J(),"Cannot delete field for empty path on ObjectValue");var t=e.Y();if(1===e.length)this.Ht=this.Ht.remove(t);else{var n=this.Ht.get(t);if(n instanceof Ge){var r=n.hn().delete(e.K()).cn();this.Ht=this.Ht.lt(e.Y(),r)}}return this},e.prototype.cn=function(){return new Ge(this.Ht)},e}(),Je=function(e){function t(t){var n=e.call(this)||this;return n.Ht=t,n.gn=8,n}return o.__extends(t,e),t.prototype.value=function(e){return this.Ht.map((function(t){return t.value(e)}))},t.prototype.contains=function(e){for(var t=0,n=this.Ht;t<n.length;t++)if(n[t].isEqual(e))return!0;return!1},t.prototype.forEach=function(e){this.Ht.forEach(e)},t.prototype.isEqual=function(e){if(e instanceof t){if(this.Ht.length!==e.Ht.length)return!1;for(var n=0;n<this.Ht.length;n++)if(!this.Ht[n].isEqual(e.Ht[n]))return!1;return!0}return!1},t.prototype.h=function(e){if(e instanceof t){for(var n=Math.min(this.Ht.length,e.Ht.length),r=0;r<n;r++){var i=this.Ht[r].h(e.Ht[r]);if(i)return i}return _(this.Ht.length,e.Ht.length)}return this.pn(e)},t.prototype.bn=function(){return this.Ht.reduce((function(e,t){return e+t.bn()}),0)},t.prototype.toString=function(){return"["+this.Ht.map((function(e){return e.toString()})).join(",")+"]"},t}(De),Xe=function(){function e(e,t){this.key=e,this.version=t}return e.Sn=function(e,t){return he.G(e.key,t.key)},e}(),Qe=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n)||this;return s.Rn=i,s.proto=o,s.converter=a,y(void 0!==s.Rn||void 0!==s.proto&&void 0!==s.converter,"If objectValue is not defined, proto and converter need to be set."),s.en=!!r.en,s.hasCommittedMutations=!!r.hasCommittedMutations,s}return o.__extends(t,e),t.prototype.field=function(e){if(this.Rn)return this.Rn.field(e);this.Cn||(this.Cn=new Map);var t=e.nt(),n=this.Cn.get(t);if(void 0===n){var r=this.An(e);n=void 0===r?null:this.converter(r),this.Cn.set(t,n)}return n},t.prototype.data=function(){var e=this;if(!this.Rn){var t=Ge.vn();R(this.proto.fields||{},(function(n,r){t.set(new de([n]),e.converter(r))})),this.Rn=t.cn(),this.Cn=void 0}return this.Rn},t.prototype.value=function(){return this.data().value()},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.en===e.en&&this.hasCommittedMutations===e.hasCommittedMutations&&this.data().isEqual(e.data())},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.data().toString()+", {hasLocalMutations: "+this.en+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.en||this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.prototype.An=function(e){y(void 0!==this.proto,"Can only call getProtoField() when proto is defined");for(var t=this.proto.fields?this.proto.fields[e.Y()]:void 0,n=1;n<e.length;++n){if(!t||!t.mapValue||!t.mapValue.fields)return;t=t.mapValue.fields[e.get(n)]}return t},t.Pn=function(e,t,n){var r=t.field(e),i=n.field(e);return null!==r&&null!==i?r.h(i):g("Trying to compare documents on fields that don't exist")},t}(Xe),Ze=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return o.__extends(t,e),t.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.hasCommittedMutations===this.hasCommittedMutations&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(Xe),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(Xe);function tt(e){return null==e}function nt(e){return-0===e&&1/e==-1/0}function rt(e){return"number"==typeof e&&Number.isInteger(e)&&!nt(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var it=function(){function e(e,t,n,r,i,o,a){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.kn=null}return e.prototype.canonicalId=function(){if(null===this.kn){var e=this.path.nt();null!==this.collectionGroup&&(e+="|cg:"+this.collectionGroup),e+="|f:";for(var t=0,n=this.filters;t<n.length;t++)e+=n[t].canonicalId(),e+=",";e+="|ob:";for(var r=0,i=this.orderBy;r<i.length;r++)e+=i[r].canonicalId(),e+=",";tt(this.limit)||(e+="|l:",e+=this.limit),this.startAt&&(e+="|lb:",e+=this.startAt.canonicalId()),this.endAt&&(e+="|ub:",e+=this.endAt.canonicalId()),this.kn=e}return this.kn},e.prototype.toString=function(){var e=this.path.nt();return null!==this.collectionGroup&&(e+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(e+=", filters: ["+this.filters.join(", ")+"]"),tt(this.limit)||(e+=", limit: "+this.limit),this.orderBy.length>0&&(e+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),"Target("+e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t<this.orderBy.length;t++)if(!this.orderBy[t].isEqual(e.orderBy[t]))return!1;if(this.filters.length!==e.filters.length)return!1;for(t=0;t<this.filters.length;t++)if(!this.filters[t].isEqual(e.filters[t]))return!1;return this.collectionGroup===e.collectionGroup&&!!this.path.isEqual(e.path)&&!(null!==this.startAt?!this.startAt.isEqual(e.startAt):null!==e.startAt)&&(null!==this.endAt?this.endAt.isEqual(e.endAt):null===e.endAt)},e.prototype.Nn=function(){return he.ht(this.path)&&null===this.collectionGroup&&0===this.filters.length},e}(),ot=function(){function e(e,t,n,r,i,o,a,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===a&&(a=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.On=n,this.filters=r,this.limit=i,this.Fn=o,this.startAt=a,this.endAt=s,this.Vn=null,this.Un=null,this.startAt&&this.xn(this.startAt),this.endAt&&this.xn(this.endAt)}return e.jn=function(t){return new e(t)},Object.defineProperty(e.prototype,"orderBy",{get:function(){if(null===this.Vn){var e=this.Ln(),t=this.qn();if(null!==e&&null===t)e.ut()?this.Vn=[vt]:this.Vn=[new mt(e),vt];else{y(null===e||null!==t&&e.isEqual(t),"First orderBy should match inequality field."),this.Vn=[];for(var n=!1,r=0,i=this.On;r<i.length;r++){var o=i[r];this.Vn.push(o),o.field.ut()&&(n=!0)}if(!n){var a=this.On.length>0?this.On[this.On.length-1].dir:ft.ASCENDING;this.Vn.push(a===ft.ASCENDING?vt:gt)}}}return this.Vn},enumerable:!0,configurable:!0}),e.prototype.Bn=function(t){y(null==this.Ln()||!(t instanceof st)||!t.Mn()||t.field.isEqual(this.Ln()),"Query must only have one inequality field."),y(!this.Nn(),"No filtering allowed for document query");var n=this.filters.concat([t]);return new e(this.path,this.collectionGroup,this.On.slice(),n,this.limit,this.Fn,this.startAt,this.endAt)},e.prototype.Qn=function(t){y(!this.startAt&&!this.endAt,"Bounds must be set after orderBy");var n=this.On.concat([t]);return new e(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.Fn,this.startAt,this.endAt)},e.prototype.Gn=function(t){return new e(this.path,this.collectionGroup,this.On.slice(),this.filters.slice(),t,"F",this.startAt,this.endAt)},e.prototype.Wn=function(t){return new e(this.path,this.collectionGroup,this.On.slice(),this.filters.slice(),t,"L",this.startAt,this.endAt)},e.prototype.zn=function(t){return new e(this.path,this.collectionGroup,this.On.slice(),this.filters.slice(),this.limit,this.Fn,t,this.endAt)},e.prototype.Kn=function(t){return new e(this.path,this.collectionGroup,this.On.slice(),this.filters.slice(),this.limit,this.Fn,this.startAt,t)},e.prototype.Hn=function(t){return new e(t,null,this.On.slice(),this.filters.slice(),this.limit,this.Fn,this.startAt,this.endAt)},e.prototype.Jn=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.On.length||1===this.On.length&&this.On[0].field.ut())},e.prototype.canonicalId=function(){return this.Yn().canonicalId()+"|lt:"+this.Fn},e.prototype.toString=function(){return"Query(target="+this.Yn().toString()+"; limitType="+this.Fn+")"},e.prototype.isEqual=function(e){return this.Yn().isEqual(e.Yn())&&this.Fn===e.Fn},e.prototype.Xn=function(e,t){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],a=o.compare(e,t);if(0!==a)return a;n=n||o.field.ut()}return y(n,"orderBy used that doesn't compare on key field"),0},e.prototype.matches=function(e){return this.$n(e)&&this.Zn(e)&&this.ti(e)&&this.ni(e)},e.prototype.ii=function(){return!tt(this.limit)&&"F"===this.Fn},e.prototype.ei=function(){return!tt(this.limit)&&"L"===this.Fn},e.prototype.qn=function(){return this.On.length>0?this.On[0].field:null},e.prototype.Ln=function(){for(var e=0,t=this.filters;e<t.length;e++){var n=t[e];if(n instanceof st&&n.Mn())return n.field}return null},e.prototype.ri=function(e){for(var t=0,n=this.filters;t<n.length;t++){var r=n[t];if(r instanceof st&&e.indexOf(r.op)>=0)return r.op}return null},e.prototype.Nn=function(){return this.Yn().Nn()},e.prototype.ui=function(){return null!==this.collectionGroup},e.prototype.Yn=function(){if(!this.Un)if("F"===this.Fn)this.Un=new it(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var e=[],t=0,n=this.orderBy;t<n.length;t++){var r=n[t],i=r.dir===ft.DESCENDING?ft.ASCENDING:ft.DESCENDING;e.push(new mt(r.field,i))}var o=this.endAt?new pt(this.endAt.position,!this.endAt.before):null,a=this.startAt?new pt(this.startAt.position,!this.startAt.before):null;this.Un=new it(this.path,this.collectionGroup,e,this.filters,this.limit,o,a)}return this.Un},e.prototype.$n=function(e){var t=e.key.path;return null!==this.collectionGroup?e.key.ct(this.collectionGroup)&&this.path.$(t):he.ht(this.path)?this.path.isEqual(t):this.path.Z(t)},e.prototype.Zn=function(e){for(var t=0,n=this.On;t<n.length;t++){var r=n[t];if(!r.field.ut()&&null===e.field(r.field))return!1}return!0},e.prototype.ti=function(e){for(var t=0,n=this.filters;t<n.length;t++)if(!n[t].matches(e))return!1;return!0},e.prototype.ni=function(e){return!(this.startAt&&!this.startAt.si(this.orderBy,e)||this.endAt&&this.endAt.si(this.orderBy,e))},e.prototype.xn=function(e){y(e.position.length<=this.orderBy.length,"Bound is longer than orderBy")},e}(),at=function(){function e(e){this.name=e}return e.it=function(t){switch(t){case"<":return e.LESS_THAN;case"<=":return e.LESS_THAN_OR_EQUAL;case"==":return e.EQUAL;case">=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;case"in":return e.IN;case"array-contains-any":return e.ARRAY_CONTAINS_ANY;default:return g("Unknown FieldFilter operator: "+t)}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e.LESS_THAN=new e("<"),e.LESS_THAN_OR_EQUAL=new e("<="),e.EQUAL=new e("=="),e.GREATER_THAN=new e(">"),e.GREATER_THAN_OR_EQUAL=new e(">="),e.ARRAY_CONTAINS=new e("array-contains"),e.IN=new e("in"),e.ARRAY_CONTAINS_ANY=new e("array-contains-any"),e}(),st=function(e){function t(t,n,r){var i=e.call(this)||this;return i.field=t,i.op=n,i.value=r,i}return o.__extends(t,e),t.create=function(e,n,r){if(e.ut())return n===at.IN?(y(r instanceof Je,"Comparing on key with IN, but filter value not an ArrayValue"),y(r.Ht.every((function(e){return e instanceof qe})),"Comparing on key with IN, but an array value was not a RefValue"),new ct(e,r)):(y(r instanceof qe,"Comparing on key, but filter value not a RefValue"),y(n!==at.ARRAY_CONTAINS&&n!==at.ARRAY_CONTAINS_ANY,"'"+n.toString()+"' queries don't make sense on document keys."),new lt(e,n,r));if(r.isEqual(Ne.yn)){if(n!==at.EQUAL)throw new x(T.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new t(e,n,r)}if(r.isEqual(Fe.Tn)){if(n!==at.EQUAL)throw new x(T.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new t(e,n,r)}return n===at.ARRAY_CONTAINS?new ut(e,r):n===at.IN?(y(r instanceof Je,"IN filter has invalid value: "+r.toString()),new dt(e,r)):n===at.ARRAY_CONTAINS_ANY?(y(r instanceof Je,"ARRAY_CONTAINS_ANY filter has invalid value: "+r.toString()),new ht(e,r)):new t(e,n,r)},t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&this.value.gn===t.gn&&this.oi(t.h(this.value))},t.prototype.oi=function(e){switch(this.op){case at.LESS_THAN:return e<0;case at.LESS_THAN_OR_EQUAL:return e<=0;case at.EQUAL:return 0===e;case at.GREATER_THAN:return e>0;case at.GREATER_THAN_OR_EQUAL:return e>=0;default:return g("Unknown FieldFilter operator: "+this.op)}},t.prototype.Mn=function(){return[at.LESS_THAN,at.LESS_THAN_OR_EQUAL,at.GREATER_THAN,at.GREATER_THAN_OR_EQUAL].indexOf(this.op)>=0},t.prototype.canonicalId=function(){return this.field.nt()+this.op.toString()+this.value.toString()},t.prototype.isEqual=function(e){return e instanceof t&&this.op.isEqual(e.op)&&this.field.isEqual(e.field)&&this.value.isEqual(e.value)},t.prototype.toString=function(){return this.field.nt()+" "+this.op+" "+this.value.value()},t}((function(){})),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.matches=function(e){var t=this.value,n=he.G(e.key,t.key);return this.oi(n)},t}(st),ct=function(e){function t(t,n){var r=e.call(this,t,at.IN,n)||this;return r.value=n,r}return o.__extends(t,e),t.prototype.matches=function(e){return this.value.Ht.some((function(t){return e.key.isEqual(t.key)}))},t}(st),ut=function(e){function t(t,n){return e.call(this,t,at.ARRAY_CONTAINS,n)||this}return o.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return t instanceof Je&&t.contains(this.value)},t}(st),dt=function(e){function t(t,n){var r=e.call(this,t,at.IN,n)||this;return r.value=n,r}return o.__extends(t,e),t.prototype.matches=function(e){var t=this.value,n=e.field(this.field);return null!==n&&t.contains(n)},t}(st),ht=function(e){function t(t,n){var r=e.call(this,t,at.ARRAY_CONTAINS_ANY,n)||this;return r.value=n,r}return o.__extends(t,e),t.prototype.matches=function(e){var t=this,n=e.field(this.field);return n instanceof Je&&n.Ht.some((function(e){return t.value.contains(e)}))},t}(st),ft=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e.ASCENDING=new e("asc"),e.DESCENDING=new e("desc"),e}(),pt=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){for(var e=this.before?"b:":"a:",t=0,n=this.position;t<n.length;t++)e+=n[t].toString();return e},e.prototype.si=function(e,t){y(this.position.length<=e.length,"Bound has more components than query's orderBy");for(var n=0,r=0;r<this.position.length;r++){var i=e[r],o=this.position[r];if(i.field.ut())y(o instanceof qe,"Bound has a non-key value where the key path is being used."),n=he.G(o.key,t.key);else{var a=t.field(i.field);y(null!==a,"Field should exist since document matched the orderBy already."),n=o.h(a)}if(i.dir===ft.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},e.prototype.isEqual=function(e){if(null===e)return!1;if(this.before!==e.before||this.position.length!==e.position.length)return!1;for(var t=0;t<this.position.length;t++){var n=this.position[t],r=e.position[t];if(!n.isEqual(r))return!1}return!0},e}(),mt=function(){function e(e,t){this.field=e,void 0===t&&(t=ft.ASCENDING),this.dir=t,this.hi=e.ut()}return e.prototype.compare=function(e,t){var n=this.hi?Qe.Sn(e,t):Qe.Pn(this.field,e,t);switch(this.dir){case ft.ASCENDING:return n;case ft.DESCENDING:return-1*n;default:return g("Unknown direction: "+this.dir)}},e.prototype.canonicalId=function(){return this.field.nt()+this.dir.toString()},e.prototype.toString=function(){return this.field.nt()+" ("+this.dir+")"},e.prototype.isEqual=function(e){return this.dir===e.dir&&this.field.isEqual(e.field)},e}(),vt=new mt(de.st(),ft.ASCENDING),gt=new mt(de.st(),ft.DESCENDING),yt=function(){function e(e){this.ci=e}return e.fromBase64String=function(t){return new e(an.t().atob(t))},e.fromUint8Array=function(t){return new e(bt(t))},e.prototype.toBase64=function(){return an.t().btoa(this.ci)},e.prototype.toUint8Array=function(){return _t(this.ci)},e.prototype.bn=function(){return 2*this.ci.length},e.prototype.isEqual=function(e){return this.ci===e.ci},e.ai=new e(""),e}();function bt(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}function _t(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}var wt,kt,St=function(){function e(e,t,n,r,i,o,a){void 0===i&&(i=se.MIN),void 0===o&&(o=se.MIN),void 0===a&&(a=yt.ai),this.target=e,this.targetId=t,this.fi=n,this.sequenceNumber=r,this.li=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return e.prototype.di=function(t){return new e(this.target,this.targetId,this.fi,t,this.li,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.vi=function(t,n){return new e(this.target,this.targetId,this.fi,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.wi=function(t){return new e(this.target,this.targetId,this.fi,this.sequenceNumber,this.li,t,this.resumeToken)},e.prototype.isEqual=function(e){return this.targetId===e.targetId&&this.fi===e.fi&&this.sequenceNumber===e.sequenceNumber&&this.li.isEqual(e.li)&&this.lastLimboFreeSnapshotVersion.isEqual(e.lastLimboFreeSnapshotVersion)&&this.resumeToken.isEqual(e.resumeToken)&&this.target.isEqual(e.target)},e}(),Et=function(){function e(e){this.count=e}return e.prototype.isEqual=function(e){return e&&e.count===this.count},e}();function Ct(e){switch(e){case T.OK:return g("Treated status OK as error");case T.CANCELLED:case T.UNKNOWN:case T.DEADLINE_EXCEEDED:case T.RESOURCE_EXHAUSTED:case T.INTERNAL:case T.UNAVAILABLE:case T.UNAUTHENTICATED:return!1;case T.INVALID_ARGUMENT:case T.NOT_FOUND:case T.ALREADY_EXISTS:case T.PERMISSION_DENIED:case T.FAILED_PRECONDITION:case T.ABORTED:case T.OUT_OF_RANGE:case T.UNIMPLEMENTED:case T.DATA_LOSS:return!0;default:return g("Unknown status code: "+e)}}function Tt(e){if(void 0===e)return m("GRPC error has no .code"),T.UNKNOWN;switch(e){case wt.OK:return T.OK;case wt.CANCELLED:return T.CANCELLED;case wt.UNKNOWN:return T.UNKNOWN;case wt.DEADLINE_EXCEEDED:return T.DEADLINE_EXCEEDED;case wt.RESOURCE_EXHAUSTED:return T.RESOURCE_EXHAUSTED;case wt.INTERNAL:return T.INTERNAL;case wt.UNAVAILABLE:return T.UNAVAILABLE;case wt.UNAUTHENTICATED:return T.UNAUTHENTICATED;case wt.INVALID_ARGUMENT:return T.INVALID_ARGUMENT;case wt.NOT_FOUND:return T.NOT_FOUND;case wt.ALREADY_EXISTS:return T.ALREADY_EXISTS;case wt.PERMISSION_DENIED:return T.PERMISSION_DENIED;case wt.FAILED_PRECONDITION:return T.FAILED_PRECONDITION;case wt.ABORTED:return T.ABORTED;case wt.OUT_OF_RANGE:return T.OUT_OF_RANGE;case wt.UNIMPLEMENTED:return T.UNIMPLEMENTED;case wt.DATA_LOSS:return T.DATA_LOSS;default:return g("Unknown status code: "+e)}}function xt(e){if(void 0===e)return wt.OK;switch(e){case T.OK:return wt.OK;case T.CANCELLED:return wt.CANCELLED;case T.UNKNOWN:return wt.UNKNOWN;case T.DEADLINE_EXCEEDED:return wt.DEADLINE_EXCEEDED;case T.RESOURCE_EXHAUSTED:return wt.RESOURCE_EXHAUSTED;case T.INTERNAL:return wt.INTERNAL;case T.UNAVAILABLE:return wt.UNAVAILABLE;case T.UNAUTHENTICATED:return wt.UNAUTHENTICATED;case T.INVALID_ARGUMENT:return wt.INVALID_ARGUMENT;case T.NOT_FOUND:return wt.NOT_FOUND;case T.ALREADY_EXISTS:return wt.ALREADY_EXISTS;case T.PERMISSION_DENIED:return wt.PERMISSION_DENIED;case T.FAILED_PRECONDITION:return wt.FAILED_PRECONDITION;case T.ABORTED:return wt.ABORTED;case T.OUT_OF_RANGE:return wt.OUT_OF_RANGE;case T.UNIMPLEMENTED:return wt.UNIMPLEMENTED;case T.DATA_LOSS:return wt.DATA_LOSS;default:return g("Unknown status code: "+e)}}(kt=wt||(wt={}))[kt.OK=0]="OK",kt[kt.CANCELLED=1]="CANCELLED",kt[kt.UNKNOWN=2]="UNKNOWN",kt[kt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",kt[kt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",kt[kt.NOT_FOUND=5]="NOT_FOUND",kt[kt.ALREADY_EXISTS=6]="ALREADY_EXISTS",kt[kt.PERMISSION_DENIED=7]="PERMISSION_DENIED",kt[kt.UNAUTHENTICATED=16]="UNAUTHENTICATED",kt[kt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",kt[kt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",kt[kt.ABORTED=10]="ABORTED",kt[kt.OUT_OF_RANGE=11]="OUT_OF_RANGE",kt[kt.UNIMPLEMENTED=12]="UNIMPLEMENTED",kt[kt.INTERNAL=13]="INTERNAL",kt[kt.UNAVAILABLE=14]="UNAVAILABLE",kt[kt.DATA_LOSS=15]="DATA_LOSS";var Mt=new fe(he.G);function $t(){return Mt}function Pt(){return $t()}var Ot=new fe(he.G);function Lt(){return Ot}var At=new fe(he.G);function It(){return At}var Dt=new ge(he.G);function Nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Dt,r=0,i=e;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Rt=new ge(_);function jt(){return Rt}var Bt=function(){function e(e){this.G=e?function(t,n){return e(t,n)||he.G(t.key,n.key)}:function(e,t){return he.G(e.key,t.key)},this.mi=Lt(),this.pi=new fe(this.G)}return e.gi=function(t){return new e(t.G)},e.prototype.has=function(e){return null!=this.mi.get(e)},e.prototype.get=function(e){return this.mi.get(e)},e.prototype.first=function(){return this.pi.vt()},e.prototype.last=function(){return this.pi.wt()},e.prototype.J=function(){return this.pi.J()},e.prototype.indexOf=function(e){var t=this.mi.get(e);return t?this.pi.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.pi.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.pi.pt((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.mi.lt(e.key,e),t.pi.lt(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.mi.remove(e),this.pi.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.pi.bt(),r=t.pi.bt();n.St();){var i=n.Dt().key,o=r.Dt().key;if(!i.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"},e.prototype.copy=function(t,n){var r=new e;return r.G=this.G,r.mi=t,r.pi=n,r},e}(),Yt=function(){function e(){this.bi=new fe(he.G)}return e.prototype.track=function(e){var t=e.doc.key,n=this.bi.get(t);n?0!==e.type&&3===n.type?this.bi=this.bi.lt(t,e):3===e.type&&1!==n.type?this.bi=this.bi.lt(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.bi=this.bi.lt(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.bi=this.bi.lt(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.bi=this.bi.remove(t):1===e.type&&2===n.type?this.bi=this.bi.lt(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.bi=this.bi.lt(t,{type:2,doc:e.doc}):g("unsupported combination of changes: "+JSON.stringify(e)+" after "+JSON.stringify(n)):this.bi=this.bi.lt(t,e)},e.prototype.yi=function(){var e=[];return this.bi.pt((function(t,n){e.push(n)})),e},e}(),Ft=function(){function e(e,t,n,r,i,o,a,s){this.query=e,this.docs=t,this._i=n,this.docChanges=r,this.Ii=i,this.fromCache=o,this.Ti=a,this.Ei=s}return e.Di=function(t,n,r,i){var o=[];return n.forEach((function(e){o.push({type:0,doc:e})})),new e(t,n,Bt.gi(n),o,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.Ii.J()},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.Ti===e.Ti&&this.Ii.isEqual(e.Ii)&&this.query.isEqual(e.query)&&this.docs.isEqual(e.docs)&&this._i.isEqual(e._i)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),Ht=function(){function e(e,t,n,r,i){this.li=e,this.Si=t,this.Ri=n,this.Ci=r,this.Ai=i}return e.Pi=function(t,n){var r,i=((r={})[t]=Ut.ki(t,n),r);return new e(se.MIN,i,jt(),$t(),Nt())},e}(),Ut=function(){function e(e,t,n,r,i){this.resumeToken=e,this.Ni=t,this.Oi=n,this.Fi=r,this.Vi=i}return e.ki=function(t,n){return new e(yt.ai,n,Nt(),Nt(),Nt())},e}(),zt=function(e,t,n,r){this.Ui=e,this.removedTargetIds=t,this.key=n,this.xi=r},Vt=function(e,t){this.targetId=e,this.ji=t},qt=function(e,t,n,r){void 0===n&&(n=yt.ai),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},Wt=function(){function e(){this.Li=0,this.qi=Jt(),this.Bi=yt.ai,this.Mi=!1,this.Qi=!0}return Object.defineProperty(e.prototype,"Ni",{get:function(){return this.Mi},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.Bi},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Gi",{get:function(){return 0!==this.Li},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Wi",{get:function(){return this.Qi},enumerable:!0,configurable:!0}),e.prototype.zi=function(e){e.bn()>0&&(this.Qi=!0,this.Bi=e)},e.prototype.Ki=function(){var e=Nt(),t=Nt(),n=Nt();return this.qi.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:g("Encountered invalid change type: "+i)}})),new Ut(this.Bi,this.Mi,e,t,n)},e.prototype.Hi=function(){this.Qi=!1,this.qi=Jt()},e.prototype.Ji=function(e,t){this.Qi=!0,this.qi=this.qi.lt(e,t)},e.prototype.Yi=function(e){this.Qi=!0,this.qi=this.qi.remove(e)},e.prototype.Xi=function(){this.Li+=1},e.prototype.$i=function(){this.Li-=1},e.prototype.Zi=function(){this.Qi=!0,this.Mi=!0},e}(),Gt=function(){function e(e){this.te=e,this.ne={},this.ie=$t(),this.ee=Kt(),this.re=new ge(_)}return e.prototype.ue=function(e){for(var t=0,n=e.Ui;t<n.length;t++){var r=n[t];e.xi instanceof Qe?this.se(r,e.xi):e.xi instanceof Ze&&this.oe(r,e.key,e.xi)}for(var i=0,o=e.removedTargetIds;i<o.length;i++)r=o[i],this.oe(r,e.key,e.xi)},e.prototype.he=function(e){var t=this;this.ce(e,(function(n){var r=t.ae(n);switch(e.state){case 0:t.fe(n)&&r.zi(e.resumeToken);break;case 1:r.$i(),r.Gi||r.Hi(),r.zi(e.resumeToken);break;case 2:r.$i(),r.Gi||t.removeTarget(n),y(!e.cause,"WatchChangeAggregator does not handle errored targets");break;case 3:t.fe(n)&&(r.Zi(),r.zi(e.resumeToken));break;case 4:t.fe(n)&&(t.le(n),r.zi(e.resumeToken));break;default:g("Unknown target watch change state: "+e.state)}}))},e.prototype.ce=function(e,t){e.targetIds.length>0?e.targetIds.forEach(t):N(this.ne,t)},e.prototype.de=function(e){var t=e.targetId,n=e.ji.count,r=this.ve(t);if(r){var i=r.target;if(i.Nn())if(0===n){var o=new he(i.path);this.oe(t,o,new Ze(o,se.q()))}else y(1===n,"Single document existence filter with count: "+n);else this.we(t)!==n&&(this.le(t),this.re=this.re.add(t))}},e.prototype.me=function(e){var t=this,n={};N(this.ne,(function(r,i){var o=t.ve(r);if(o){if(i.Ni&&o.target.Nn()){var a=new he(o.target.path);null!==t.ie.get(a)||t.pe(r,a)||t.oe(r,a,new Ze(a,e))}i.Wi&&(n[r]=i.Ki(),i.Hi())}}));var r=Nt();this.ee.forEach((function(e,n){var i=!0;n.qt((function(e){var n=t.ve(e);return!n||2===n.fi||(i=!1,!1)})),i&&(r=r.add(e))}));var i=new Ht(e,n,this.re,this.ie,r);return this.ie=$t(),this.ee=Kt(),this.re=new ge(_),i},e.prototype.se=function(e,t){if(this.fe(e)){var n=this.pe(e,t.key)?2:0;this.ae(e).Ji(t.key,n),this.ie=this.ie.lt(t.key,t),this.ee=this.ee.lt(t.key,this.ge(t.key).add(e))}},e.prototype.oe=function(e,t,n){if(this.fe(e)){var r=this.ae(e);this.pe(e,t)?r.Ji(t,1):r.Yi(t),this.ee=this.ee.lt(t,this.ge(t).delete(e)),n&&(this.ie=this.ie.lt(t,n))}},e.prototype.removeTarget=function(e){delete this.ne[e]},e.prototype.we=function(e){var t=this.ae(e).Ki();return this.te.be(e).size+t.Oi.size-t.Vi.size},e.prototype.Xi=function(e){this.ae(e).Xi()},e.prototype.ae=function(e){return this.ne[e]||(this.ne[e]=new Wt),this.ne[e]},e.prototype.ge=function(e){var t=this.ee.get(e);return t||(t=new ge(_),this.ee=this.ee.lt(e,t)),t},e.prototype.fe=function(e){var t=null!==this.ve(e);return t||p("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ve=function(e){var t=this.ne[e];return t&&t.Gi?null:this.te.ye(e)},e.prototype.le=function(e){var t=this;y(!this.ne[e].Gi,"Should only reset active targets"),this.ne[e]=new Wt,this.te.be(e).forEach((function(n){t.oe(e,n,null)}))},e.prototype.pe=function(e,t){return this.te.be(e).has(t)},e}();function Kt(){return new fe(he.G)}function Jt(){return new fe(he.G)}var Xt,Qt,Zt=((Xt={})[ft.ASCENDING.name]="ASCENDING",Xt[ft.DESCENDING.name]="DESCENDING",Xt),en=((Qt={})[at.LESS_THAN.name]="LESS_THAN",Qt[at.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",Qt[at.GREATER_THAN.name]="GREATER_THAN",Qt[at.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",Qt[at.EQUAL.name]="EQUAL",Qt[at.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",Qt[at.IN.name]="IN",Qt[at.ARRAY_CONTAINS_ANY.name]="ARRAY_CONTAINS_ANY",Qt),tn=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function nn(e,t){y(!tt(e),t+" is missing")}function rn(e){return"number"==typeof e?e:"string"==typeof e?Number(e):g("can't parse "+e)}var on=function(){function e(e,t){this.s=e,this.options=t}return e.prototype._e=function(e){var t=void 0===e.code?T.UNKNOWN:Tt(e.code);return new x(t,e.message||"")},e.prototype.Ie=function(e){return this.options.Te||tt(e)?e:{value:e}},e.prototype.Ee=function(e){var t;return tt(t="object"==typeof e?e.value:e)?null:t},e.prototype.M=function(e){return this.options.Te?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}},e.prototype.L=function(e){if("string"==typeof e)return this.De(e);y(!!e,"Cannot deserialize null or undefined timestamp.");var t=rn(e.seconds||"0"),n=e.nanos||0;return new ae(t,n)},e.prototype.De=function(e){var t=0,n=tn.exec(e);if(y(!!n,"invalid timestamp: "+e),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e),o=Math.floor(i.getTime()/1e3);return new ae(o,t)},e.prototype.Se=function(e){return this.options.Te?e.toBase64():e.toUint8Array()},e.prototype.Re=function(e){return this.options.Te?(y(void 0===e||"string"==typeof e,"value must be undefined or a string when using proto3 Json"),yt.fromBase64String(e||"")):(y(void 0===e||e instanceof Uint8Array,"value must be undefined or Uint8Array"),yt.fromUint8Array(e||new Uint8Array))},e.prototype.Ce=function(e){return"string"==typeof e?(y(this.options.Te,"Expected bytes to be passed in as Uint8Array, but got a string instead."),un.fromBase64String(e)):(y(!this.options.Te,"Expected bytes to be passed in as Uint8Array, but got a string instead."),un.fromUint8Array(e))},e.prototype.toVersion=function(e){return this.M(e.M())},e.prototype.fromVersion=function(e){return y(!!e,"Trying to deserialize version that isn't set"),se.L(this.L(e))},e.prototype.Ae=function(e,t){return this.Pe(e).child("documents").child(t).nt()},e.prototype.ke=function(e){var t=ce.it(e);return y(this.Ne(t),"Tried to deserialize invalid key "+t.toString()),t},e.prototype.Oe=function(e){return this.Ae(this.s,e.path)},e.prototype.Fe=function(e){var t=this.ke(e);return y(t.get(1)===this.s.projectId,"Tried to deserialize key from different project: "+t.get(1)+" vs "+this.s.projectId),y(!t.get(3)&&!this.s.database||t.get(3)===this.s.database,"Tried to deserialize key from different database: "+t.get(3)+" vs "+this.s.database),new he(this.Ve(t))},e.prototype.Ue=function(e){return this.Ae(this.s,e)},e.prototype.xe=function(e){var t=this.ke(e);return 4===t.length?ce.et:this.Ve(t)},Object.defineProperty(e.prototype,"je",{get:function(){return new ce(["projects",this.s.projectId,"databases",this.s.database]).nt()},enumerable:!0,configurable:!0}),e.prototype.Pe=function(e){return new ce(["projects",e.projectId,"databases",e.database])},e.prototype.Ve=function(e){return y(e.length>4&&"documents"===e.get(4),"tried to deserialize invalid key "+e.toString()),e.K(5)},e.prototype.Ne=function(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)},e.prototype.Le=function(e){if(e instanceof Ne)return{nullValue:"NULL_VALUE"};if(e instanceof Re)return{booleanValue:e.value()};if(e instanceof Ye)return{integerValue:""+e.value()};if(e instanceof Fe){var t=e.value();if(this.options.Te){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"};if(nt(t))return{doubleValue:"-0"}}return{doubleValue:e.value()}}return e instanceof He?{stringValue:e.value()}:e instanceof Ge?{mapValue:this.qe(e)}:e instanceof Je?{arrayValue:this.Be(e)}:e instanceof Ue?{timestampValue:this.M(e.Ht)}:e instanceof We?{geoPointValue:{latitude:e.value().latitude,longitude:e.value().longitude}}:e instanceof Ve?{bytesValue:this.Se(e.value())}:e instanceof qe?{referenceValue:this.Ae(e.s,e.key.path)}:g("Unknown FieldValue "+JSON.stringify(e))},e.prototype.Me=function(e){var t=this;if("nullValue"in e)return Ne.yn;if("booleanValue"in e)return Re.of(e.booleanValue);if("integerValue"in e)return new Ye(rn(e.integerValue));if("doubleValue"in e){if(this.options.Te){if("NaN"===e.doubleValue)return Fe.Tn;if("Infinity"===e.doubleValue)return Fe.POSITIVE_INFINITY;if("-Infinity"===e.doubleValue)return Fe.NEGATIVE_INFINITY;if("-0"===e.doubleValue)return new Fe(-0)}return new Fe(e.doubleValue)}if("stringValue"in e)return new He(e.stringValue);if("mapValue"in e)return this.Qe(e.mapValue.fields||{});if("arrayValue"in e){nn(e.arrayValue,"arrayValue");var n=e.arrayValue.values||[];return new Je(n.map((function(e){return t.Me(e)})))}if("timestampValue"in e)return nn(e.timestampValue,"timestampValue"),new Ue(this.L(e.timestampValue));if("geoPointValue"in e){nn(e.geoPointValue,"geoPointValue");var r=e.geoPointValue.latitude||0,i=e.geoPointValue.longitude||0;return new We(new oe(r,i))}if("bytesValue"in e){nn(e.bytesValue,"bytesValue");var o=this.Ce(e.bytesValue);return new Ve(o)}if("referenceValue"in e){nn(e.referenceValue,"referenceValue");var a=this.ke(e.referenceValue),s=new E(a.get(1),a.get(3)),l=new he(this.Ve(a));return new qe(s,l)}return g("Unknown Value proto "+JSON.stringify(e))},e.prototype.Ge=function(e,t){return{name:this.Oe(e),fields:this.We(t)}},e.prototype.ze=function(e){return y(!e.en,"Can't serialize documents with mutations."),{name:this.Oe(e.key),fields:this.We(e.data()),updateTime:this.M(e.version.M())}},e.prototype.Ke=function(e,t){var n=this,r=this.Fe(e.name),i=this.fromVersion(e.updateTime);return new Qe(r,i,{hasCommittedMutations:!!t},void 0,e,(function(e){return n.Me(e)}))},e.prototype.We=function(e){var t=this,n={};return e.forEach((function(e,r){n[e]=t.Le(r)})),n},e.prototype.Qe=function(e){var t=this,n=e,r=Ge.vn();return R(n,(function(e,n){r.set(new de([e]),t.Me(n))})),r.cn()},e.prototype.qe=function(e){return{fields:this.We(e)}},e.prototype.Be=function(e){var t=this,n=[];return e.forEach((function(e){n.push(t.Le(e))})),{values:n}},e.prototype.He=function(e){var t=this;y(!!e.found,"Tried to deserialize a found document from a missing document."),nn(e.found.name,"doc.found.name"),nn(e.found.updateTime,"doc.found.updateTime");var n=this.Fe(e.found.name),r=this.fromVersion(e.found.updateTime);return new Qe(n,r,{},void 0,e.found,(function(e){return t.Me(e)}))},e.prototype.Je=function(e){y(!!e.missing,"Tried to deserialize a missing document from a found document."),y(!!e.readTime,"Tried to deserialize a missing document without a read time.");var t=this.Fe(e.missing),n=this.fromVersion(e.readTime);return new Ze(t,n)},e.prototype.Ye=function(e){return"found"in e?this.He(e):"missing"in e?this.Je(e):g("invalid batch get response: "+JSON.stringify(e))},e.prototype.Xe=function(e){switch(e){case 1:return"ADD";case 3:return"CURRENT";case 0:return"NO_CHANGE";case 2:return"REMOVE";case 4:return"RESET";default:return g("Unknown WatchTargetChangeState: "+e)}},e.prototype.$e=function(e){if(e instanceof Vt)return{filter:{count:e.ji.count,targetId:e.targetId}};if(e instanceof zt){if(e.xi instanceof Qe){var t=e.xi;return{documentChange:{document:{name:this.Oe(t.key),fields:this.We(t.data()),updateTime:this.toVersion(t.version)},targetIds:e.Ui,removedTargetIds:e.removedTargetIds}}}if(e.xi instanceof Ze)return t=e.xi,{documentDelete:{document:this.Oe(t.key),readTime:this.toVersion(t.version),removedTargetIds:e.removedTargetIds}};if(null===e.xi)return{documentRemove:{document:this.Oe(e.key),removedTargetIds:e.removedTargetIds}}}if(e instanceof qt){var n=void 0;return e.cause&&(n={code:xt(e.cause.code),message:e.cause.message}),{targetChange:{targetChangeType:this.Xe(e.state),targetIds:e.targetIds,resumeToken:this.Se(e.resumeToken),cause:n}}}return g("Unrecognized watch change: "+JSON.stringify(e))},e.prototype.Ze=function(e){var t,n=this;if("targetChange"in e){nn(e.targetChange,"targetChange");var r=this.tr(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=this.Re(e.targetChange.resumeToken),a=e.targetChange.cause,s=a&&this._e(a);t=new qt(r,i,o,s||null)}else if("documentChange"in e){nn(e.documentChange,"documentChange");var l=e.documentChange;nn(l.document,"documentChange.name"),nn(l.document.name,"documentChange.document.name"),nn(l.document.updateTime,"documentChange.document.updateTime");var c=this.Fe(l.document.name),u=this.fromVersion(l.document.updateTime),d=new Qe(c,u,{},void 0,l.document,(function(e){return n.Me(e)})),h=l.targetIds||[],f=l.removedTargetIds||[];t=new zt(h,f,d.key,d)}else if("documentDelete"in e){nn(e.documentDelete,"documentDelete");var p=e.documentDelete;nn(p.document,"documentDelete.document"),c=this.Fe(p.document),u=p.readTime?this.fromVersion(p.readTime):se.q(),d=new Ze(c,u),f=p.removedTargetIds||[],t=new zt([],f,d.key,d)}else if("documentRemove"in e){nn(e.documentRemove,"documentRemove");var m=e.documentRemove;nn(m.document,"documentRemove"),c=this.Fe(m.document),f=m.removedTargetIds||[],t=new zt([],f,c,null)}else{if(!("filter"in e))return g("Unknown change type "+JSON.stringify(e));nn(e.filter,"filter");var v=e.filter;nn(v.targetId,"filter.targetId");var y=v.count||0,b=new Et(y),_=v.targetId;t=new Vt(_,b)}return t},e.prototype.tr=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:g("Got unexpected TargetChange.state: "+e)},e.prototype.nr=function(e){if(!("targetChange"in e))return se.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?se.MIN:t.readTime?this.fromVersion(t.readTime):se.MIN},e.prototype.ir=function(e){var t,n=this;if(e instanceof $e)t={update:this.Ge(e.key,e.value)};else if(e instanceof Le)t={delete:this.Oe(e.key)};else if(e instanceof Pe)t={update:this.Ge(e.key,e.data),updateMask:this.er(e.un)};else if(e instanceof Oe)t={transform:{document:this.Oe(e.key),fieldTransforms:e.fieldTransforms.map((function(e){return n.rr(e)}))}};else{if(!(e instanceof Ae))return g("Unknown mutation type "+e.type);t={verify:this.Oe(e.key)}}return e.in.$t||(t.currentDocument=this.ur(e.in)),t},e.prototype.sr=function(e){var t=this,n=e.currentDocument?this.or(e.currentDocument):xe.NONE;if(e.update){nn(e.update.name,"name");var r=this.Fe(e.update.name),i=this.Qe(e.update.fields||{});if(e.updateMask){var o=this.hr(e.updateMask);return new Pe(r,i,o,n)}return new $e(r,i,n)}if(e.delete)return r=this.Fe(e.delete),new Le(r,n);if(e.transform){r=this.Fe(e.transform.document);var a=e.transform.fieldTransforms.map((function(e){return t.cr(e)}));return y(!0===n.exists,'Transforms only support precondition "exists == true"'),new Oe(r,a)}return e.verify?(r=this.Fe(e.verify),new Ae(r,n)):g("unknown mutation proto: "+JSON.stringify(e))},e.prototype.ur=function(e){return y(!e.$t,"Can't serialize an empty precondition"),void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:g("Unknown precondition")},e.prototype.or=function(e){return void 0!==e.updateTime?xe.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?xe.exists(e.exists):xe.NONE},e.prototype.ar=function(e,t){var n=this,r=e.updateTime?this.fromVersion(e.updateTime):this.fromVersion(t);r.isEqual(se.MIN)&&(r=this.fromVersion(t));var i=null;return e.transformResults&&e.transformResults.length>0&&(i=e.transformResults.map((function(e){return n.Me(e)}))),new Te(r,i)},e.prototype.lr=function(e,t){var n=this;return e&&e.length>0?(y(void 0!==t,"Received a write result without a commit time"),e.map((function(e){return n.ar(e,t)}))):[]},e.prototype.rr=function(e){var t=this,n=e.transform;if(n instanceof be)return{fieldPath:e.field.nt(),setToServerValue:"REQUEST_TIME"};if(n instanceof _e)return{fieldPath:e.field.nt(),appendMissingElements:{values:n.elements.map((function(e){return t.Le(e)}))}};if(n instanceof we)return{fieldPath:e.field.nt(),removeAllFromArray:{values:n.elements.map((function(e){return t.Le(e)}))}};if(n instanceof ke)return{fieldPath:e.field.nt(),increment:this.Le(n.Kt)};throw g("Unknown transform: "+e.transform)},e.prototype.cr=function(e){var t=this,n=null;if("setToServerValue"in e)y("REQUEST_TIME"===e.setToServerValue,"Unknown server value transform proto: "+JSON.stringify(e)),n=be.instance;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new _e(r.map((function(e){return t.Me(e)})))}else if("removeAllFromArray"in e)r=e.removeAllFromArray.values||[],n=new we(r.map((function(e){return t.Me(e)})));else if("increment"in e){var i=this.Me(e.increment);y(i instanceof je,"NUMERIC_ADD transform requires a NumberValue"),n=new ke(i)}else g("Unknown transform proto: "+JSON.stringify(e));var o=de.ot(e.fieldPath);return new Ce(o,n)},e.prototype.dr=function(e){return{documents:[this.Ue(e.path)]}},e.prototype.vr=function(e){var t=e.documents.length;y(1===t,"DocumentsTarget contained other than 1 document: "+t);var n=e.documents[0];return ot.jn(this.xe(n)).Yn()},e.prototype.wr=function(e){var t={structuredQuery:{}},n=e.path;null!==e.collectionGroup?(y(n.length%2==0,"Collection Group queries should be within a document path or root."),t.parent=this.Ue(n),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(y(n.length%2!=0,"Document queries with filters are not supported."),t.parent=this.Ue(n.H()),t.structuredQuery.from=[{collectionId:n.X()}]);var r=this.mr(e.filters);r&&(t.structuredQuery.where=r);var i=this.pr(e.orderBy);i&&(t.structuredQuery.orderBy=i);var o=this.Ie(e.limit);return null!==o&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt=this.gr(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.gr(e.endAt)),t},e.prototype.br=function(e){var t=this.xe(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){y(1===r,"StructuredQuery.from with more than one collection is not supported.");var o=n.from[0];o.allDescendants?i=o.collectionId:t=t.child(o.collectionId)}var a=[];n.where&&(a=this.yr(n.where));var s=[];n.orderBy&&(s=this._r(n.orderBy));var l=null;n.limit&&(l=this.Ee(n.limit));var c=null;n.startAt&&(c=this.Ir(n.startAt));var u=null;return n.endAt&&(u=this.Ir(n.endAt)),new ot(t,i,s,a,l,"F",c,u).Yn()},e.prototype.Tr=function(e){var t=this.Er(e.fi);return null==t?null:{"goog-listen-tags":t}},e.prototype.Er=function(e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return g("Unrecognized query purpose: "+e)}},e.prototype.Yn=function(e){var t,n=e.target;return(t=n.Nn()?{documents:this.dr(n)}:{query:this.wr(n)}).targetId=e.targetId,e.resumeToken.bn()>0&&(t.resumeToken=this.Se(e.resumeToken)),t},e.prototype.mr=function(e){var t=this;if(0!==e.length){var n=e.map((function(e){return e instanceof st?t.Dr(e):g("Unrecognized filter: "+JSON.stringify(e))}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.yr=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.Sr(e)]:void 0!==e.fieldFilter?[this.Rr(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t.yr(e)})).reduce((function(e,t){return e.concat(t)})):g("Unknown filter: "+JSON.stringify(e)):[]},e.prototype.pr=function(e){var t=this;if(0!==e.length)return e.map((function(e){return t.Cr(e)}))},e.prototype._r=function(e){var t=this;return e.map((function(e){return t.Ar(e)}))},e.prototype.gr=function(e){var t=this;return{before:e.before,values:e.position.map((function(e){return t.Le(e)}))}},e.prototype.Ir=function(e){var t=this,n=!!e.before,r=e.values.map((function(e){return t.Me(e)}));return new pt(r,n)},e.prototype.Pr=function(e){return Zt[e.name]},e.prototype.kr=function(e){switch(e){case"ASCENDING":return ft.ASCENDING;case"DESCENDING":return ft.DESCENDING;default:return}},e.prototype.Nr=function(e){return en[e.name]},e.prototype.Or=function(e){switch(e){case"EQUAL":return at.EQUAL;case"GREATER_THAN":return at.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return at.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return at.LESS_THAN;case"LESS_THAN_OR_EQUAL":return at.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return at.ARRAY_CONTAINS;case"IN":return at.IN;case"ARRAY_CONTAINS_ANY":return at.ARRAY_CONTAINS_ANY;case"OPERATOR_UNSPECIFIED":return g("Unspecified operator");default:return g("Unknown operator")}},e.prototype.Fr=function(e){return{fieldPath:e.nt()}},e.prototype.Vr=function(e){return de.ot(e.fieldPath)},e.prototype.Cr=function(e){return{field:this.Fr(e.field),direction:this.Pr(e.dir)}},e.prototype.Ar=function(e){return new mt(this.Vr(e.field),this.kr(e.direction))},e.prototype.Rr=function(e){return st.create(this.Vr(e.fieldFilter.field),this.Or(e.fieldFilter.op),this.Me(e.fieldFilter.value))},e.prototype.Dr=function(e){if(e.op===at.EQUAL){if(e.value.isEqual(Fe.Tn))return{unaryFilter:{field:this.Fr(e.field),op:"IS_NAN"}};if(e.value.isEqual(Ne.yn))return{unaryFilter:{field:this.Fr(e.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.Fr(e.field),op:this.Nr(e.op),value:this.Le(e.value)}}},e.prototype.Sr=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.Vr(e.unaryFilter.field);return st.create(t,at.EQUAL,Fe.Tn);case"IS_NULL":var n=this.Vr(e.unaryFilter.field);return st.create(n,at.EQUAL,Ne.yn);case"OPERATOR_UNSPECIFIED":return g("Unspecified filter");default:return g("Unknown filter")}},e.prototype.er=function(e){var t=[];return e.fields.forEach((function(e){return t.push(e.nt())})),{fieldPaths:t}},e.prototype.hr=function(e){var t=(e.fieldPaths||[]).map((function(e){return de.ot(e)}));return Ee.Yt(t)},e}(),an=function(){function e(){}return e.Ur=function(t){e.platform&&g("Platform already defined"),e.platform=t},e.t=function(){return e.platform||g("Platform not set"),e.platform},e}();function sn(e,t){function n(){var e="This constructor is private.";throw t&&(e+=" ",e+=t),new x(T.INVALID_ARGUMENT,e)}return n.prototype=e.prototype,Object.assign(n,e),n}function ln(){if("undefined"==typeof Uint8Array)throw new x(T.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function cn(){if(!an.t().xr)throw new x(T.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var un=function(){function e(e){cn(),this.ci=e}return e.fromBase64String=function(t){Y("Blob.fromBase64String",arguments,1),z("Blob.fromBase64String","string",1,t),cn();try{var n=an.t().atob(t);return new e(n)}catch(e){throw new x(T.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},e.fromUint8Array=function(t){if(Y("Blob.fromUint8Array",arguments,1),ln(),!(t instanceof Uint8Array))throw te("Blob.fromUint8Array","Uint8Array",1,t);var n=bt(t);return new e(n)},e.prototype.toBase64=function(){return Y("Blob.toBase64",arguments,0),cn(),an.t().btoa(this.ci)},e.prototype.toUint8Array=function(){Y("Blob.toUint8Array",arguments,0),ln();var e=_t(this.ci);return e},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this.ci===e.ci},e.prototype.Dn=function(){return 2*this.ci.length},e.prototype.U=function(e){return _(this.ci,e.ci)},e}(),dn=sn(un,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),hn=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.jr=function(e){return n.Lr(e)},this.qr=function(e){return t.Br(e)})}return e.prototype.Lr=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.qr&&this.qr(e),e},e.Mr=-1,e}(),fn=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))},pn=function(){function e(e,t,n,r,i){this.Qr=e,this.Gr=t,this.Wr=n,this.op=r,this.zr=i,this.Kr=new fn,this.then=this.Kr.promise.then.bind(this.Kr.promise),this.catch=this.Kr.promise.catch.bind(this.Kr.promise),this.Kr.promise.catch((function(e){}))}return e.Hr=function(t,n,r,i,o){var a=new e(t,n,Date.now()+r,i,o);return a.start(r),a},e.prototype.start=function(e){var t=this;this.Jr=setTimeout((function(){return t.Yr()}),e)},e.prototype.Xr=function(){return this.Yr()},e.prototype.cancel=function(e){null!==this.Jr&&(this.clearTimeout(),this.Kr.reject(new x(T.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.Yr=function(){var e=this;this.Qr.$r((function(){return null!==e.Jr?(e.clearTimeout(),e.op().then((function(t){return e.Kr.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.Jr&&(this.zr(this),clearTimeout(this.Jr),this.Jr=null)},e}(),mn=function(){function e(){this.Zr=Promise.resolve(),this.tu=!1,this.nu=[],this.iu=null,this.eu=!1,this.ru=[]}return Object.defineProperty(e.prototype,"uu",{get:function(){return this.tu},enumerable:!0,configurable:!0}),e.prototype.$r=function(e){this.enqueue(e)},e.prototype.su=function(e){this.ou(),this.hu(e)},e.prototype.cu=function(e){return this.ou(),this.hu(e)},e.prototype.au=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return this.ou(),this.tu?[3,2]:(this.tu=!0,[4,this.cu(e)]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.enqueue=function(e){return this.ou(),this.tu?new Promise((function(e){})):this.hu(e)},e.prototype.hu=function(e){var t=this,n=this.Zr.then((function(){return t.eu=!0,e().catch((function(e){t.iu=e,t.eu=!1;var n=e.stack||e.message||"";throw m("INTERNAL UNHANDLED ERROR: ",n),n.indexOf("Firestore Test Simulated Error")<0&&setTimeout((function(){throw e}),0),e})).then((function(e){return t.eu=!1,e}))}));return this.Zr=n,n},e.prototype.fu=function(e,t,n){var r=this;this.ou(),y(t>=0,"Attempted to schedule an operation with a negative delay of "+t),this.ru.indexOf(e)>-1&&(t=0);var i=pn.Hr(this,e,t,n,(function(e){return r.lu(e)}));return this.nu.push(i),i},e.prototype.ou=function(){this.iu&&g("AsyncQueue is already failed: "+(this.iu.stack||this.iu.message))},e.prototype.du=function(){y(this.eu,"verifyOpInProgress() called when no op in progress on this queue.")},e.prototype.vu=function(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){switch(t.label){case 0:return[4,e=this.Zr];case 1:t.sent(),t.label=2;case 2:if(e!==this.Zr)return[3,0];t.label=3;case 3:return[2]}}))}))},e.prototype.wu=function(e){for(var t=0,n=this.nu;t<n.length;t++)if(n[t].Gr===e)return!0;return!1},e.prototype.mu=function(e){var t=this;return this.vu().then((function(){y("all"===e||t.wu(e),"Attempted to drain to missing operation "+e),t.nu.sort((function(e,t){return e.Wr-t.Wr}));for(var n=0,r=t.nu;n<r.length;n++){var i=r[n];if(i.Xr(),"all"!==e&&i.Gr===e)break}return t.vu()}))},e.prototype.pu=function(e){this.ru.push(e)},e.prototype.lu=function(e){var t=this.nu.indexOf(e);y(t>=0,"Delayed operation not found."),this.nu.splice(t,1)},e}();function vn(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=yn(t)),t=gn(e.get(n),t);return yn(t)}function gn(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var o=e.charAt(i);switch(o){case"\0":n+="";break;case"":n+="";break;default:n+=o}}return n}function yn(e){return e+""}function bn(e){var t=e.length;if(y(t>=2,"Invalid path "+e),2===t)return y(""===e.charAt(0)&&""===e.charAt(1),"Non-empty path "+e+" had length 2"),ce.et;for(var n=t-2,r=[],i="",o=0;o<t;){var a=e.indexOf("",o);switch((a<0||a>n)&&g('Invalid encoded resource path: "'+e+'"'),e.charAt(a+1)){case"":var s=e.substring(o,a),l=void 0;0===i.length?l=s:(l=i+=s,i=""),r.push(l);break;case"":i+=e.substring(o,a),i+="\0";break;case"":i+=e.substring(o,a+1);break;default:g('Invalid encoded resource path: "'+e+'"')}o=a+2}return new ce(r)}var _n=function(){function e(e,t,n,r){this.batchId=e,this.En=t,this.baseMutations=n,this.mutations=r,y(r.length>0,"Cannot create an empty mutation batch")}return e.prototype.Wt=function(e,t,n){t&&y(t.key.isEqual(e),"applyToRemoteDocument: key "+e+" should match maybeDoc key\n        "+t.key);var r=n.gu;y(r.length===this.mutations.length,"Mismatch between mutations length\n      ("+this.mutations.length+") and mutation results length\n      ("+r.length+").");for(var i=0;i<this.mutations.length;i++){var o=this.mutations[i];if(o.key.isEqual(e)){var a=r[i];t=o.Wt(t,a)}}return t},e.prototype.Gt=function(e,t){t&&y(t.key.isEqual(e),"applyToLocalDocument: key "+e+" should match maybeDoc key\n        "+t.key);for(var n=0,r=this.baseMutations;n<r.length;n++)(s=r[n]).key.isEqual(e)&&(t=s.Gt(t,t,this.En));for(var i=t,o=0,a=this.mutations;o<a.length;o++){var s;(s=a[o]).key.isEqual(e)&&(t=s.Gt(t,i,this.En))}return t},e.prototype.bu=function(e){var t=this,n=e;return this.mutations.forEach((function(r){var i=t.Gt(r.key,e.get(r.key));i&&(n=n.lt(r.key,i))})),n},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Nt())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&w(this.mutations,e.mutations)&&w(this.baseMutations,e.baseMutations)},e}(),wn=function(){function e(e,t,n,r,i){this.batch=e,this.yu=t,this.gu=n,this.streamToken=r,this._u=i}return e.from=function(t,n,r,i){y(t.mutations.length===r.length,"Mutations sent "+t.mutations.length+" must equal results received "+r.length);for(var o=It(),a=t.mutations,s=0;s<a.length;s++)o=o.lt(a[s].key,r[s].version);return new e(t,n,r,i,o)},e}(),kn=function(){function e(){this.Iu=new ge(Sn.Sn),this.Tu=new ge(Sn.Eu)}return e.prototype.J=function(){return this.Iu.J()},e.prototype.Du=function(e,t){var n=new Sn(e,t);this.Iu=this.Iu.add(n),this.Tu=this.Tu.add(n)},e.prototype.Su=function(e,t){var n=this;e.forEach((function(e){return n.Du(e,t)}))},e.prototype.Ru=function(e,t){this.Cu(new Sn(e,t))},e.prototype.Au=function(e,t){var n=this;e.forEach((function(e){return n.Ru(e,t)}))},e.prototype.Pu=function(e){var t=this,n=he.EMPTY,r=new Sn(n,e),i=new Sn(n,e+1),o=[];return this.Tu.Lt([r,i],(function(e){t.Cu(e),o.push(e.key)})),o},e.prototype.ku=function(){var e=this;this.Iu.forEach((function(t){return e.Cu(t)}))},e.prototype.Cu=function(e){this.Iu=this.Iu.delete(e),this.Tu=this.Tu.delete(e)},e.prototype.Nu=function(e){var t=he.EMPTY,n=new Sn(t,e),r=new Sn(t,e+1),i=Nt();return this.Tu.Lt([n,r],(function(e){i=i.add(e.key)})),i},e.prototype.Ou=function(e){var t=new Sn(e,0),n=this.Iu.Bt(t);return null!==n&&e.isEqual(n.key)},e}(),Sn=function(){function e(e,t){this.key=e,this.Fu=t}return e.Sn=function(e,t){return he.G(e.key,t.key)||_(e.Fu,t.Fu)},e.Eu=function(e,t){return _(e.Fu,t.Fu)||he.G(e.key,t.key)},e}(),En=function(){function e(e){this.Vu=e,this.Uu={}}return e.prototype.get=function(e){var t=this.Vu(e),n=this.Uu[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(a.isEqual(e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.Vu(e),r=this.Uu[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(e))return void(r[i]=[e,t]);r.push([e,t])}else this.Uu[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.Vu(e),n=this.Uu[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(e))return 1===n.length?delete this.Uu[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){R(this.Uu,(function(t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];e(a,s)}}))},e.prototype.J=function(){return j(this.Uu)},e}(),Cn=function(){function e(e){var t=this;this.xu=null,this.ju=null,this.result=void 0,this.error=void 0,this.Lu=!1,this.qu=!1,e((function(e){t.Lu=!0,t.result=e,t.xu&&t.xu(e)}),(function(e){t.Lu=!0,t.error=e,t.ju&&t.ju(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.qu&&g("Called next() or catch() twice for PersistencePromise"),this.qu=!0,this.Lu?this.error?this.Bu(n,this.error):this.Mu(t,this.result):new e((function(e,i){r.xu=function(n){r.Mu(t,n).next(e,i)},r.ju=function(t){r.Bu(n,t).next(e,i)}}))},e.prototype.Qu=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.Gu=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.Mu=function(t,n){return t?this.Gu((function(){return t(n)})):e.resolve(n)},e.prototype.Bu=function(t,n){return t?this.Gu((function(){return t(n)})):e.reject(n)},e.resolve=function(t){return new e((function(e,n){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.Wu=function(t){return new e((function(e,n){var r=0,i=0,o=!1;t.forEach((function(t){++r,t.next((function(){++i,o&&i===r&&e()}),(function(e){return n(e)}))})),o=!0,i===r&&e()}))},e.zu=function(t){for(var n=e.resolve(!1),r=function(t){n=n.next((function(n){return n?e.resolve(n):t()}))},i=0,o=t;i<o.length;i++)r(o[i]);return n},e.forEach=function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.Wu(r)},e}(),Tn=function(){function e(){this.Ku=new En((function(e){return e.toString()})),this.Hu=!1}return Object.defineProperty(e.prototype,"readTime",{get:function(){return y(void 0!==this.Ju,"Read time is not set. All removeEntry() calls must include a readTime if `trackRemovals` is used."),this.Ju},set:function(e){y(void 0===this.Ju||this.Ju.isEqual(e),"All changes in a RemoteDocumentChangeBuffer must have the same read time"),this.Ju=e},enumerable:!0,configurable:!0}),e.prototype.Yu=function(e,t){this.Xu(),this.readTime=t,this.Ku.set(e.key,e)},e.prototype.$u=function(e,t){this.Xu(),t&&(this.readTime=t),this.Ku.set(e,null)},e.prototype.Zu=function(e,t){this.Xu();var n=this.Ku.get(t);return void 0!==n?Cn.resolve(n):this.ts(e,t)},e.prototype.getEntries=function(e,t){return this.ns(e,t)},e.prototype.apply=function(e){return this.Xu(),this.Hu=!0,this.es(e)},e.prototype.Xu=function(){y(!this.Hu,"Changes have already been applied.")},e}(),xn="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Mn=function(){function e(){this.rs=[]}return e.prototype.us=function(e){this.rs.push(e)},e.prototype.ss=function(){this.rs.forEach((function(e){return e()}))},e}(),$n=function(){function t(e){this.db=e,12.2===t.os(s.getUA())&&m("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 t.hs=function(e,n,r){return y(t.cs(),"IndexedDB not supported in current environment."),p("SimpleDb","Opening database:",e),new Cn((function(i,o){var a=window.indexedDB.open(e,n);a.onsuccess=function(e){var n=e.target.result;i(new t(n))},a.onblocked=function(){o(new x(T.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},a.onerror=function(e){var t=e.target.error;"VersionError"===t.name?o(new x(T.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.")):o(t)},a.onupgradeneeded=function(t){p("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion);var n=t.target.result;r.createOrUpgrade(n,a.transaction,t.oldVersion,dr).next((function(){p("SimpleDb","Database upgrade to version "+dr+" complete")}))}})).Qu()},t.delete=function(e){return p("SimpleDb","Removing database:",e),An(window.indexedDB.deleteDatabase(e)).Qu()},t.cs=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(t.as())return!0;if(void 0===window.navigator)return!1;var e=s.getUA(),n=t.os(e),r=0<n&&n<10,i=t.fs(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.as=function(){var t;return void 0!==e&&"YES"===(null===(t=e.env)||void 0===t?void 0:t.ls)},t.ds=function(e,t){return e.store(t)},t.os=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.fs=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.vs=function(e){this.db.onversionchange=function(t){return e(t)}},t.prototype.runTransaction=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var r,i,a,s,l,c;return o.__generator(this,(function(u){switch(u.label){case 0:r=e.startsWith("readonly"),i=e.endsWith("idempotent"),a=0,s=function(){var e,s,c,u;return o.__generator(this,(function(o){switch(o.label){case 0:++a,e=On.open(l.db,r?"readonly":"readwrite",t),o.label=1;case 1:return o.trys.push([1,3,,4]),(s=n(e).catch((function(t){return e.abort(t),Cn.reject(t)})).Qu()).catch((function(){})),[4,e.ws];case 2:return o.sent(),[2,{value:s}];case 3:return c=o.sent(),u=i&&"FirebaseError"!==c.name&&a<3,p("SimpleDb","Transaction failed with error: %s. Retrying: %s.",c.message,u),u?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}))},l=this,u.label=1;case 1:return[5,s()];case 2:return"object"==typeof(c=u.sent())?[2,c.value]:[3,1];case 3:return[2]}}))}))},t.prototype.close=function(){this.db.close()},t}(),Pn=function(){function e(e){this.ms=e,this.ps=!1,this.gs=null}return Object.defineProperty(e.prototype,"Lu",{get:function(){return this.ps},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bs",{get:function(){return this.gs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.ms=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.ps=!0},e.prototype.ys=function(e){this.gs=e},e.prototype.delete=function(){return An(this.ms.delete())},e}(),On=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this._s=new fn,this.transaction.oncomplete=function(){t._s.resolve()},this.transaction.onabort=function(){e.error?t._s.reject(e.error):t._s.resolve()},this.transaction.onerror=function(e){var n=Dn(e.target.error);t._s.reject(n)}}return e.open=function(t,n,r){return new e(t.transaction(r,n))},Object.defineProperty(e.prototype,"ws",{get:function(){return this._s.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this._s.reject(e),this.aborted||(p("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return y(!!t,"Object store not part of transaction: "+e),new Ln(t)},e}(),Ln=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(p("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(p("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),An(n)},e.prototype.add=function(e){return p("SimpleDb","ADD",this.store.name,e,e),An(this.store.add(e))},e.prototype.get=function(e){var t=this;return An(this.store.get(e)).next((function(n){return void 0===n&&(n=null),p("SimpleDb","GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return p("SimpleDb","DELETE",this.store.name,e),An(this.store.delete(e))},e.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),An(this.store.count())},e.prototype.Is=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.Ts(n,(function(e,t){r.push(t)})).next((function(){return r}))},e.prototype.Es=function(e,t){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.Ds=!1;var r=this.cursor(n);return this.Ts(r,(function(e,t,n){return n.delete()}))},e.prototype.Ss=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.Ts(r,t)},e.prototype.Rs=function(e){var t=this.cursor({});return new Cn((function(n,r){t.onerror=function(e){var t=Dn(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next((function(e){e?r.continue():n()})):n()}}))},e.prototype.Ts=function(e,t){var n=[];return new Cn((function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var o=new Pn(i),a=t(i.primaryKey,i.value,o);if(a instanceof Cn){var s=a.catch((function(e){return o.done(),Cn.reject(e)}));n.push(s)}o.Lu?r():null===o.bs?i.continue():i.continue(o.bs)}else r()}})).next((function(){return Cn.Wu(n)}))},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:(y(void 0===t,"3rd argument must not be defined if 2nd is a range."),t=e)),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.Ds?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function An(e){return new Cn((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=Dn(e.target.error);n(t)}}))}var In=!1;function Dn(e){var t=$n.os(s.getUA());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new x("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 In||(In=!0,setTimeout((function(){throw r}),0)),r}}return e}var Nn=function(){function e(e,t,n,r){this.userId=e,this.serializer=t,this.Cs=n,this.As=r,this.Ps={}}return e.ks=function(t,n,r,i){return y(""!==t.uid,"UserID must not be an empty string."),new e(t.l()?t.uid:"",n,r,i)},e.prototype.Ns=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Bn(e).Ss({index:vr.userMutationsIndex,range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))},e.prototype.Os=function(e,t,n){return this.Fs(e).next((function(t){return t.lastStreamToken=n.toBase64(),Fn(e).put(t)}))},e.prototype.Vs=function(e){return this.Fs(e).next((function(e){return yt.fromBase64String(e.lastStreamToken)}))},e.prototype.Us=function(e,t){return this.Fs(e).next((function(n){return n.lastStreamToken=t.toBase64(),Fn(e).put(n)}))},e.prototype.xs=function(e,t,n,r){var i=this,o=Yn(e),a=Bn(e);return a.add({}).next((function(s){y("number"==typeof s,"Auto-generated key is not a number");for(var l=new _n(s,t,n,r),c=i.serializer.js(i.userId,l),u=[],d=new ge((function(e,t){return _(e.nt(),t.nt())})),h=0,f=r;h<f.length;h++){var p=f[h],m=gr.key(i.userId,p.key.path,s);d=d.add(p.key.path.H()),u.push(a.put(c)),u.push(o.put(m,gr.PLACEHOLDER))}return d.forEach((function(t){u.push(i.Cs.Ls(e,t))})),e.us((function(){i.Ps[s]=l.keys()})),Cn.Wu(u).next((function(){return l}))}))},e.prototype.qs=function(e,t){var n=this;return Bn(e).get(t).next((function(e){return e?(y(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+t),n.serializer.Bs(e)):null}))},e.prototype.Ms=function(e,t){var n=this;return this.Ps[t]?Cn.resolve(this.Ps[t]):this.qs(e,t).next((function(e){if(e){var r=e.keys();return n.Ps[t]=r,r}return null}))},e.prototype.Qs=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return Bn(e).Ss({index:vr.userMutationsIndex,range:i},(function(e,t,i){t.userId===n.userId&&(y(t.batchId>=r,"Should have found mutation after "+r),o=n.serializer.Bs(t)),i.done()})).next((function(){return o}))},e.prototype.Gs=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Bn(e).Ss({index:vr.userMutationsIndex,range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))},e.prototype.Ws=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Bn(e).Is(vr.userMutationsIndex,n).next((function(e){return e.map((function(e){return t.serializer.Bs(e)}))}))},e.prototype.zs=function(e,t){var n=this,r=gr.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return Yn(e).Ss({range:i},(function(r,i,a){var s=r[0],l=r[1],c=r[2],u=bn(l);if(s===n.userId&&t.path.isEqual(u))return Bn(e).get(c).next((function(e){if(!e)throw g("Dangling document-mutation reference found: "+r+" which points to "+c);y(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+c),o.push(n.serializer.Bs(e))}));a.done()})).next((function(){return o}))},e.prototype.Ks=function(e,t){var n=this,r=new ge(_),i=[];return t.forEach((function(t){var o=gr.prefixForPath(n.userId,t.path),a=IDBKeyRange.lowerBound(o),s=Yn(e).Ss({range:a},(function(e,i,o){var a=e[0],s=e[1],l=e[2],c=bn(s);a===n.userId&&t.path.isEqual(c)?r=r.add(l):o.done()}));i.push(s)})),Cn.Wu(i).next((function(){return n.Hs(e,r)}))},e.prototype.Js=function(e,t){var n=this;y(!t.Nn(),"Document queries shouldn't go down this path"),y(!t.ui(),"CollectionGroup queries should be handled in LocalDocumentsView");var r=t.path,i=r.length+1,o=gr.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new ge(_);return Yn(e).Ss({range:a},(function(e,t,o){var a=e[0],l=e[1],c=e[2],u=bn(l);a===n.userId&&r.$(u)?u.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.Hs(e,s)}))},e.prototype.Hs=function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(Bn(e).get(t).next((function(e){if(null===e)throw g("Dangling document-mutation reference found, which points to "+t);y(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+t),r.push(n.serializer.Bs(e))})))})),Cn.Wu(i).next((function(){return r}))},e.prototype.Ys=function(e,t){var n=this;return jn(e.Xs,this.userId,t).next((function(r){return e.us((function(){n.$s(t.batchId)})),Cn.forEach(r,(function(t){return n.As.Zs(e,t)}))}))},e.prototype.$s=function(e){delete this.Ps[e]},e.prototype.to=function(e){var t=this;return this.Ns(e).next((function(n){if(!n)return Cn.resolve();var r=IDBKeyRange.lowerBound(gr.prefixForUser(t.userId)),i=[];return Yn(e).Ss({range:r},(function(e,n,r){if(e[0]===t.userId){var o=bn(e[1]);i.push(o)}else r.done()})).next((function(){y(0===i.length,"Document leak -- detected dangling mutation references when queue is empty. Dangling keys: "+i.map((function(e){return e.nt()})))}))}))},e.prototype.Ou=function(e,t){return Rn(e,this.userId,t)},e.prototype.Fs=function(e){var t=this;return Fn(e).get(this.userId).next((function(e){return e||new mr(t.userId,-1,"")}))},e}();function Rn(e,t,n){var r=gr.prefixForPath(t,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Yn(e).Ss({range:o,Ds:!0},(function(e,n,r){var o=e[0],s=e[1];e[2],o===t&&s===i&&(a=!0),r.done()})).next((function(){return a}))}function jn(e,t,n){var r=e.store(vr.store),i=e.store(gr.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,l=r.Ss({range:a},(function(e,t,n){return s++,n.delete()}));o.push(l.next((function(){y(1===s,"Dangling document-mutation reference found: Missing batch "+n.batchId)})));for(var c=[],u=0,d=n.mutations;u<d.length;u++){var h=d[u],f=gr.key(t,h.key.path,n.batchId);o.push(i.delete(f)),c.push(h.key)}return Cn.Wu(o).next((function(){return c}))}function Bn(e){return Rr.ds(e,vr.store)}function Yn(e){return Rr.ds(e,gr.store)}function Fn(e){return Rr.ds(e,mr.store)}var Hn=function(){function e(e,t){this.no=e,y((1&e)===e,"Generator ID "+e+" contains more than 1 reserved bits"),this.io(void 0!==t?t:this.no)}return e.prototype.next=function(){var e=this.eo;return this.eo+=2,e},e.prototype.after=function(e){return this.io(e+2),this.next()},e.prototype.io=function(e){y((1&e)===this.no,"Cannot supply target ID from different generator ID"),this.eo=e},e.ro=function(){return new e(0,2)},e.uo=function(){return new e(1)},e}(),Un=function(){function e(e,t,n){this.so=e,this.oo=t,this.Cs=n}return e.prototype.ho=function(e,t){var n=this;return this.oo.zs(e,t).next((function(r){return n.co(e,t,r)}))},e.prototype.co=function(e,t,n){return this.so.Zu(e,t).next((function(e){for(var r=0,i=n;r<i.length;r++)e=i[r].Gt(t,e);return e}))},e.prototype.ao=function(e,t,n){var r=Pt();return t.forEach((function(e,t){for(var i=0,o=n;i<o.length;i++)t=o[i].Gt(e,t);r=r.lt(e,t)})),r},e.prototype.fo=function(e,t){var n=this;return this.so.getEntries(e,t).next((function(t){return n.lo(e,t)}))},e.prototype.lo=function(e,t){var n=this;return this.oo.Ks(e,t).next((function(r){var i=n.ao(e,t,r),o=$t();return i.forEach((function(e,t){t||(t=new Ze(e,se.q())),o=o.lt(e,t)})),o}))},e.prototype.do=function(e,t,n){return t.Nn()?this.vo(e,t.path):t.ui()?this.wo(e,t,n):this.mo(e,t,n)},e.prototype.vo=function(e,t){return this.ho(e,new he(t)).next((function(e){var t=Lt();return e instanceof Qe&&(t=t.lt(e.key,e)),t}))},e.prototype.wo=function(e,t,n){var r=this;y(t.path.J(),"Currently we only support collection group queries at the root.");var i=t.collectionGroup,o=Lt();return this.Cs.po(e,i).next((function(a){return Cn.forEach(a,(function(a){var s=t.Hn(a.child(i));return r.mo(e,s,n).next((function(e){e.forEach((function(e,t){o=o.lt(e,t)}))}))})).next((function(){return o}))}))},e.prototype.mo=function(e,t,n){var r,i,o=this;return this.so.do(e,t,n).next((function(n){return r=n,o.oo.Js(e,t)})).next((function(t){return i=t,o.bo(e,i,r).next((function(e){r=e;for(var t=0,n=i;t<n.length;t++)for(var o=n[t],a=0,s=o.mutations;a<s.length;a++){var l=s[a],c=l.key,u=r.get(c),d=l.Gt(u,u,o.En);r=d instanceof Qe?r.lt(c,d):r.remove(c)}}))})).next((function(){return r.forEach((function(e,n){t.matches(n)||(r=r.remove(e))})),r}))},e.prototype.bo=function(e,t,n){for(var r=Nt(),i=0,o=t;i<o.length;i++)for(var a=0,s=o[i].mutations;a<s.length;a++){var l=s[a];l instanceof Pe&&null===n.get(l.key)&&(r=r.add(l.key))}var c=n;return this.so.getEntries(e,r).next((function(e){return e.forEach((function(e,t){null!==t&&t instanceof Qe&&(c=c.lt(e,t))})),c}))},e}(),zn=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.yo=n,this._o=r}return e.Io=function(t,n){for(var r=Nt(),i=Nt(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new e(t,n.fromCache,r,i)},e}(),Vn=function(){function e(e,t,n){this.persistence=e,this.To=t,this.Eo=new kn,this.Do=new fe(_),this.So=new En((function(e){return e.canonicalId()})),this.Ro=se.MIN,y(e.Co,"LocalStore was passed an unstarted persistence implementation"),this.persistence.As.Ao(this.Eo),this.oo=e.Po(n),this.ko=e.No(),this.Oo=e.Fo(),this.Vo=new Un(this.ko,this.oo,this.persistence.Uo()),this.To.xo(this.Vo)}return e.prototype.start=function(){return this.jo()},e.prototype.Lo=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i=this;return o.__generator(this,(function(o){switch(o.label){case 0:return t=this.oo,n=this.Vo,[4,this.persistence.runTransaction("Handle user change","readonly-idempotent",(function(r){var o;return i.oo.Ws(r).next((function(a){return o=a,t=i.persistence.Po(e),n=new Un(i.ko,t,i.persistence.Uo()),t.Ws(r)})).next((function(e){for(var t=[],i=[],a=Nt(),s=0,l=o;s<l.length;s++){var c=l[s];t.push(c.batchId);for(var u=0,d=c.mutations;u<d.length;u++){var h=d[u];a=a.add(h.key)}}for(var f=0,p=e;f<p.length;f++){c=p[f],i.push(c.batchId);for(var m=0,v=c.mutations;m<v.length;m++)h=v[m],a=a.add(h.key)}return n.fo(r,a).next((function(e){return{qo:e,Bo:t,Mo:i}}))}))}))];case 1:return r=o.sent(),this.oo=t,this.Vo=n,this.To.xo(this.Vo),[2,r]}}))}))},e.prototype.Qo=function(e){var t,n=this,r=ae.now(),i=e.reduce((function(e,t){return e.add(t.key)}),Nt());return this.persistence.runTransaction("Locally write mutations","readwrite-idempotent",(function(o){return n.Vo.fo(o,i).next((function(i){t=i;for(var a=[],s=0,l=e;s<l.length;s++){var c=l[s],u=c.rn(t.get(c.key));null!=u&&a.push(new Pe(c.key,u,u.un(),xe.exists(!0)))}return n.oo.xs(o,r,a,e)}))})).then((function(e){var n=e.bu(t);return{batchId:e.batchId,Ku:n}}))},e.prototype.Go=function(e){var t=this;return this.persistence.runTransaction("Lookup mutation documents","readonly-idempotent",(function(n){return t.oo.Ms(n,e).next((function(e){return e?t.Vo.fo(n,e):Cn.resolve(null)}))}))},e.prototype.Os=function(e){var t=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary-idempotent",(function(n){var r=e.batch.keys(),i=t.ko.Wo({zo:!0});return t.oo.Os(n,e.batch,e.streamToken).next((function(){return t.Ko(n,e,i)})).next((function(){return i.apply(n)})).next((function(){return t.oo.to(n)})).next((function(){return t.Vo.fo(n,r)}))}))},e.prototype.Ho=function(e){var t=this;return this.persistence.runTransaction("Reject batch","readwrite-primary-idempotent",(function(n){var r;return t.oo.qs(n,e).next((function(e){return y(null!==e,"Attempt to reject nonexistent batch!"),r=e.keys(),t.oo.Ys(n,e)})).next((function(){return t.oo.to(n)})).next((function(){return t.Vo.fo(n,r)}))}))},e.prototype.Gs=function(){var e=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly-idempotent",(function(t){return e.oo.Gs(t)}))},e.prototype.Vs=function(){var e=this;return this.persistence.runTransaction("Get last stream token","readonly-idempotent",(function(t){return e.oo.Vs(t)}))},e.prototype.Us=function(e){var t=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary-idempotent",(function(n){return t.oo.Us(n,e)}))},e.prototype.Jo=function(){var e=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly-idempotent",(function(t){return e.Oo.Jo(t)}))},e.prototype.Yo=function(t){var n=this,r=t.li,i=this.Do;return this.persistence.runTransaction("Apply remote event","readwrite-primary-idempotent",(function(o){var a=n.ko.Wo({zo:!0});i=n.Do;var s=[];N(t.Si,(function(t,a){var l=i.get(t);if(l){s.push(n.Oo.Xo(o,a.Vi,t).next((function(){return n.Oo.$o(o,a.Oi,t)})));var c=a.resumeToken;if(c.bn()>0){var u=l.vi(c,r).di(o.Zo);i=i.lt(t,u),e.th(l,u,a)&&s.push(n.Oo.nh(o,u))}}}));var l=$t(),c=Nt();if(t.Ci.forEach((function(e,t){c=c.add(e)})),s.push(a.getEntries(o,c).next((function(e){t.Ci.forEach((function(i,c){var u=e.get(i);c instanceof Ze&&c.version.isEqual(se.MIN)?(a.$u(i,r),l=l.lt(i,c)):null==u||c.version.h(u.version)>0||0===c.version.h(u.version)&&u.hasPendingWrites?(y(!se.MIN.isEqual(r),"Cannot add a document when the remote version is zero"),a.Yu(c,r),l=l.lt(i,c)):p("LocalStore","Ignoring outdated watch update for ",i,". Current version:",u.version," Watch version:",c.version),t.Ai.has(i)&&s.push(n.persistence.As.ih(o,i))}))}))),!r.isEqual(se.MIN)){var u=n.Oo.Jo(o).next((function(e){return y(r.h(e)>=0,"Watch stream reverted to previous snapshot?? "+r+" < "+e),n.Oo.eh(o,o.Zo,r)}));s.push(u)}return Cn.Wu(s).next((function(){return a.apply(o)})).next((function(){return n.Vo.lo(o,l)}))})).then((function(e){return n.Do=i,e}))},e.th=function(e,t,n){return y(t.resumeToken.bn()>0,"Attempted to persist target data with no resume token"),0===e.resumeToken.bn()||t.li.B()-e.li.B()>=this.rh||n.Oi.size+n.Fi.size+n.Vi.size>0},e.prototype.uh=function(e){for(var t=this,n=0,r=e;n<r.length;n++){var i=r[n],o=i.targetId;if(this.Eo.Su(i.yo,o),this.Eo.Au(i._o,o),!i.fromCache){var a=this.Do.get(o);y(null!==a,"Can't set limbo-free snapshot version for unknown target: "+o);var s=a.li,l=a.wi(s);this.Do=this.Do.lt(o,l)}}return this.persistence.runTransaction("notifyLocalViewChanges","readwrite-idempotent",(function(n){return Cn.forEach(e,(function(e){return Cn.forEach(e._o,(function(e){return t.persistence.As.Ru(n,e)}))}))}))},e.prototype.sh=function(e){var t=this;return this.persistence.runTransaction("Get next mutation batch","readonly-idempotent",(function(n){return void 0===e&&(e=-1),t.oo.Qs(n,e)}))},e.prototype.oh=function(e){var t=this;return this.persistence.runTransaction("read document","readonly-idempotent",(function(n){return t.Vo.ho(n,e)}))},e.prototype.hh=function(e){var t=this;return this.persistence.runTransaction("Allocate target","readwrite-idempotent",(function(n){var r;return t.Oo.ah(n,e).next((function(i){return i?(r=i,Cn.resolve(r)):t.Oo.fh(n).next((function(i){return r=new St(e,i,0,n.Zo),t.Oo.lh(n,r).next((function(){return r}))}))}))})).then((function(n){return null===t.Do.get(n.targetId)&&(t.Do=t.Do.lt(n.targetId,n),t.So.set(e,n.targetId)),n}))},e.prototype.ah=function(e,t){var n=this.So.get(t);return void 0!==n?Cn.resolve(this.Do.get(n)):this.Oo.ah(e,t)},e.prototype.dh=function(e,t){var n=this,r=this.Do.get(e);y(null!==r,"Tried to release nonexistent target: "+e);var i=t?"readwrite-idempotent":"readwrite-primary-idempotent";return this.persistence.runTransaction("Release target",i,(function(i){var o=n.Eo.Pu(e);return t?Cn.resolve():Cn.forEach(o,(function(e){return n.persistence.As.Ru(i,e)})).next((function(){n.persistence.As.removeTarget(i,r)}))})).then((function(){n.Do=n.Do.remove(e),n.So.delete(r.target)}))},e.prototype.vh=function(e,t){var n=this,r=se.MIN,i=Nt();return this.persistence.runTransaction("Execute query","readonly-idempotent",(function(o){return n.ah(o,e.Yn()).next((function(e){if(e)return r=e.lastLimboFreeSnapshotVersion,n.Oo.wh(o,e.targetId).next((function(e){i=e}))})).next((function(){return n.To.do(o,e,t?r:se.MIN,t?i:Nt())})).next((function(e){return{documents:e,mh:i}}))}))},e.prototype.ph=function(e){var t=this;return this.persistence.runTransaction("Remote document keys","readonly-idempotent",(function(n){return t.Oo.wh(n,e)}))},e.prototype.gh=function(){return this.persistence.gh()},e.prototype.bh=function(e){this.oo.$s(e)},e.prototype.yh=function(e){this.persistence.yh(e)},e.prototype.Ko=function(e,t,n){var r=this,i=t.batch,o=i.keys(),a=Cn.resolve();return o.forEach((function(r){a=a.next((function(){return n.Zu(e,r)})).next((function(e){var o=e,a=t._u.get(r);y(null!==a,"ackVersions should contain every doc in the write."),(!o||o.version.h(a)<0)&&((o=i.Wt(r,o,t))?n.Yu(o,t.yu):y(!e,"Mutation batch "+i+" applied to document "+e+" resulted in null"))}))})),a.next((function(){return r.oo.Ys(e,i)}))},e.prototype._h=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary-idempotent",(function(n){return e.Ih(n,t.Do)}))},e.prototype.Th=function(e){var t=this,n=this.Do.get(e);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly-idempotent",(function(n){return t.Oo.ye(n,e).next((function(e){return e?e.target:null}))}))},e.prototype.Eh=function(){var e=this;return this.persistence.runTransaction("Get new document changes","readonly-idempotent",(function(t){return e.ko.Eh(t,e.Ro)})).then((function(t){var n=t.Dh,r=t.readTime;return e.Ro=r,n}))},e.prototype.jo=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t=this;return o.__generator(this,(function(n){switch(n.label){case 0:return e=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly-idempotent",(function(e){return t.ko.Sh(e)}))];case 1:return e.Ro=n.sent(),[2]}}))}))},e.rh=3e8,e}();function qn(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){if(e.code!==T.FAILED_PRECONDITION||e.message!==xn)throw e;return p("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function Wn(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],a=_(n,i);return 0===a?_(r,o):a}var Gn=function(){function e(e){this.Rh=e,this.buffer=new ge(Wn),this.Ch=0}return e.prototype.Ah=function(){return++this.Ch},e.prototype.Ph=function(e){var t=[e,this.Ah()];if(this.buffer.size<this.Rh)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();Wn(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),e}(),Kn={kh:!1,Nh:0,Oh:0,Fh:0},Jn=function(){function e(e,t,n){this.Vh=e,this.Uh=t,this.xh=n}return e.jh=function(t){return new e(t,e.Lh,e.qh)},e.Bh=-1,e.Mh=1048576,e.Qh=41943040,e.Lh=10,e.qh=1e3,e.Gh=new e(e.Qh,e.Lh,e.qh),e.DISABLED=new e(e.Bh,0,0),e}(),Xn=function(){function e(e,t,n){this.Wh=e,this.Qr=t,this.zh=n,this.Kh=!1,this.Hh=null}return e.prototype.start=function(){y(null===this.Hh,"Cannot start an already started LruScheduler"),this.Wh.params.Vh!==Jn.Bh&&this.Jh()},e.prototype.stop=function(){this.Hh&&(this.Hh.cancel(),this.Hh=null)},Object.defineProperty(e.prototype,"Co",{get:function(){return null!==this.Hh},enumerable:!0,configurable:!0}),e.prototype.Jh=function(){var e=this;y(null===this.Hh,"Cannot schedule GC while a task is pending");var t=this.Kh?3e5:6e4;p("LruGarbageCollector","Garbage collection scheduled in "+t+"ms"),this.Hh=this.Qr.fu("lru_garbage_collection",t,(function(){return e.Hh=null,e.Kh=!0,e.zh._h(e.Wh).then((function(){return e.Jh()})).catch(qn)}))},e}(),Qn=function(){function e(e,t){this.Yh=e,this.params=t}return e.prototype.Xh=function(e,t){return this.Yh.$h(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.Zh=function(e,t){var n=this;if(0===t)return Cn.resolve(hn.Mr);var r=new Gn(t);return this.Yh.ce(e,(function(e){return r.Ph(e.sequenceNumber)})).next((function(){return n.Yh.tc(e,(function(e){return r.Ph(e)}))})).next((function(){return r.maxValue}))},e.prototype.nc=function(e,t,n){return this.Yh.nc(e,t,n)},e.prototype.ic=function(e,t){return this.Yh.ic(e,t)},e.prototype.Ih=function(e,t){var n=this;return this.params.Vh===Jn.Bh?(p("LruGarbageCollector","Garbage collection skipped; disabled"),Cn.resolve(Kn)):this.ec(e).next((function(r){return r<n.params.Vh?(p("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.Vh),Kn):n.rc(e,t)}))},e.prototype.ec=function(e){return this.Yh.ec(e)},e.prototype.rc=function(e,t){var n,r,i,o,a,s,l,c=this,u=Date.now();return this.Xh(e,this.params.Uh).next((function(t){return t>c.params.xh?(p("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.xh+" from "+t),r=c.params.xh):r=t,o=Date.now(),c.Zh(e,r)})).next((function(r){return n=r,a=Date.now(),c.nc(e,n,t)})).next((function(t){return i=t,s=Date.now(),c.ic(e,n)})).next((function(e){return l=Date.now(),h()<=0&&p("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-u)+"ms\n\tDetermined least recently used "+r+" in "+(a-o)+"ms\n\tRemoved "+i+" targets in "+(s-a)+"ms\n\tRemoved "+e+" documents in "+(l-s)+"ms\nTotal Duration: "+(l-u)+"ms"),Cn.resolve({kh:!0,Nh:r,Oh:i,Fh:e})}))},e}(),Zn=function(){function e(e,t){this.As=e,this.serializer=t,this.uc=Hn.ro()}return e.prototype.fh=function(e){var t=this;return this.sc(e).next((function(n){return n.highestTargetId=t.uc.after(n.highestTargetId),t.oc(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.Jo=function(e){return this.sc(e).next((function(e){return se.L(new ae(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.hc=function(e){return nr(e.Xs)},e.prototype.eh=function(e,t,n){var r=this;return this.sc(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.M()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.oc(e,i)}))},e.prototype.lh=function(e,t){var n=this;return this.cc(e,t).next((function(){return n.sc(e).next((function(r){return r.targetCount+=1,n.ac(t,r),n.oc(e,r)}))}))},e.prototype.nh=function(e,t){return this.cc(e,t)},e.prototype.fc=function(e,t){var n=this;return this.lc(e,t.targetId).next((function(){return er(e).delete(t.targetId)})).next((function(){return n.sc(e)})).next((function(t){return y(t.targetCount>0,"Removing from an empty target cache"),t.targetCount-=1,n.oc(e,t)}))},e.prototype.nc=function(e,t,n){var r=this,i=0,o=[];return er(e).Ss((function(a,s){var l=r.serializer.dc(s);l.sequenceNumber<=t&&null===n.get(l.targetId)&&(i++,o.push(r.fc(e,l)))})).next((function(){return Cn.Wu(o)})).next((function(){return i}))},e.prototype.ce=function(e,t){var n=this;return er(e).Ss((function(e,r){var i=n.serializer.dc(r);t(i)}))},e.prototype.sc=function(e){return tr(e.Xs)},e.prototype.oc=function(e,t){return(n=e,Rr.ds(n,Er.store)).put(Er.key,t);var n},e.prototype.cc=function(e,t){return er(e).put(this.serializer.vc(t))},e.prototype.ac=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.wc=function(e){return this.sc(e).next((function(e){return e.targetCount}))},e.prototype.ah=function(e,t){var n=this,r=t.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return er(e).Ss({range:i,index:kr.queryTargetsIndexName},(function(e,r,i){var a=n.serializer.dc(r);t.isEqual(a.target)&&(o=a,i.done())})).next((function(){return o}))},e.prototype.$o=function(e,t,n){var r=this,i=[],o=rr(e);return t.forEach((function(t){var a=vn(t.path);i.push(o.put(new Sr(n,a))),i.push(r.As.Du(e,t))})),Cn.Wu(i)},e.prototype.Xo=function(e,t,n){var r=this,i=rr(e);return Cn.forEach(t,(function(t){var o=vn(t.path);return Cn.Wu([i.delete([n,o]),r.As.Ru(e,t)])}))},e.prototype.lc=function(e,t){var n=rr(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.wh=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=rr(e),i=Nt();return r.Ss({range:n,Ds:!0},(function(e,t,n){var r=bn(e[1]),o=new he(r);i=i.add(o)})).next((function(){return i}))},e.prototype.Ou=function(e,t){var n=vn(t.path),r=IDBKeyRange.bound([n],[k(n)],!1,!0),i=0;return rr(e).Ss({index:Sr.documentTargetsIndex,Ds:!0,range:r},(function(e,t,n){var r=e[0];e[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},e.prototype.ye=function(e,t){var n=this;return er(e).get(t).next((function(e){return e?n.serializer.dc(e):null}))},e}();function er(e){return Rr.ds(e,kr.store)}function tr(e){return $n.ds(e,Er.store).get(Er.key).next((function(e){return y(null!==e,"Missing metadata row."),e}))}function nr(e){return tr(e).next((function(e){return e.highestListenSequenceNumber}))}function rr(e){return Rr.ds(e,Sr.store)}var ir=function(){function e(e,t){this.serializer=e,this.Cs=t}return e.prototype.Yu=function(e,t,n){return ar(e).put(sr(t),n)},e.prototype.$u=function(e,t){var n=ar(e),r=sr(t);return n.delete(r)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next((function(r){return r.byteSize+=t,n.mc(e,r)}))},e.prototype.Zu=function(e,t){var n=this;return ar(e).get(sr(t)).next((function(e){return n.pc(e)}))},e.prototype.gc=function(e,t){var n=this;return ar(e).get(sr(t)).next((function(e){var t=n.pc(e);return t?{bc:t,size:lr(e)}:null}))},e.prototype.getEntries=function(e,t){var n=this,r=Pt();return this.yc(e,t,(function(e,t){var i=n.pc(t);r=r.lt(e,i)})).next((function(){return r}))},e.prototype._c=function(e,t){var n=this,r=Pt(),i=new fe(he.G);return this.yc(e,t,(function(e,t){var o=n.pc(t);o?(r=r.lt(e,o),i=i.lt(e,lr(t))):(r=r.lt(e,null),i=i.lt(e,0))})).next((function(){return{Ic:r,Tc:i}}))},e.prototype.yc=function(e,t,n){if(t.J())return Cn.resolve();var r=IDBKeyRange.bound(t.first().path.tt(),t.last().path.tt()),i=t.bt(),o=i.Dt();return ar(e).Ss({range:r},(function(e,t,r){for(var a=he.at(e);o&&he.G(o,a)<0;)n(o,null),o=i.Dt();o&&o.isEqual(a)&&(n(o,t),o=i.St()?i.Dt():null),o?r.ys(o.path.tt()):r.done()})).next((function(){for(;o;)n(o,null),o=i.St()?i.Dt():null}))},e.prototype.do=function(e,t,n){var r=this;y(!t.ui(),"CollectionGroup queries should be handled in LocalDocumentsView");var i=Lt(),o=t.path.length+1,a={};if(n.isEqual(se.MIN)){var s=t.path.tt();a.range=IDBKeyRange.lowerBound(s)}else{var l=t.path.tt(),c=this.serializer.Ec(n);a.range=IDBKeyRange.lowerBound([l,c],!0),a.index=_r.collectionReadTimeIndex}return ar(e).Ss(a,(function(e,n,a){if(e.length===o){var s=r.serializer.Dc(n);t.path.$(s.key.path)?s instanceof Qe&&t.matches(s)&&(i=i.lt(s.key,s)):a.done()}})).next((function(){return i}))},e.prototype.Eh=function(e,t){var n=this,r=$t(),i=this.serializer.Ec(t),o=ar(e),a=IDBKeyRange.lowerBound(i,!0);return o.Ss({index:_r.readTimeIndex,range:a},(function(e,t){var o=n.serializer.Dc(t);r=r.lt(o.key,o),i=t.readTime})).next((function(){return{Dh:r,readTime:n.serializer.Sc(i)}}))},e.prototype.Sh=function(e){var t=this,n=ar(e),r=se.MIN;return n.Ss({index:_r.readTimeIndex,reverse:!0},(function(e,n,i){n.readTime&&(r=t.serializer.Sc(n.readTime)),i.done()})).next((function(){return r}))},e.prototype.Wo=function(t){return new e.Rc(this,!!t&&t.zo)},e.prototype.Cc=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return or(e).get(wr.key).next((function(e){return y(!!e,"Missing document cache metadata"),e}))},e.prototype.mc=function(e,t){return or(e).put(wr.key,t)},e.prototype.pc=function(e){if(e){var t=this.serializer.Dc(e);return t instanceof Ze&&t.version.isEqual(se.q())?null:t}return null},e.Rc=function(e){function t(t,n){var r=e.call(this)||this;return r.Ac=t,r.zo=n,r.Pc=new En((function(e){return e.toString()})),r}return o.__extends(t,e),t.prototype.es=function(e){var t=this,n=[],r=0,i=new ge((function(e,t){return _(e.nt(),t.nt())}));return this.Ku.forEach((function(o,a){var s=t.Pc.get(o);if(y(void 0!==s,"Cannot modify a document that wasn't read (for "+o+")"),a){y(!t.readTime.isEqual(se.MIN),"Cannot add a document with a read time of zero");var l=t.Ac.serializer.kc(a,t.readTime);i=i.add(o.path.H());var c=lr(l);r+=c-s,n.push(t.Ac.Yu(e,o,l))}else if(r-=s,t.zo){var u=t.Ac.serializer.kc(new Ze(o,se.q()),t.readTime);n.push(t.Ac.Yu(e,o,u))}else n.push(t.Ac.$u(e,o))})),i.forEach((function(r){n.push(t.Ac.Cs.Ls(e,r))})),n.push(this.Ac.updateMetadata(e,r)),Cn.Wu(n)},t.prototype.ts=function(e,t){var n=this;return this.Ac.gc(e,t).next((function(e){return null===e?(n.Pc.set(t,0),null):(n.Pc.set(t,e.size),e.bc)}))},t.prototype.ns=function(e,t){var n=this;return this.Ac._c(e,t).next((function(e){var t=e.Ic;return e.Tc.forEach((function(e,t){n.Pc.set(e,t)})),t}))},t}(Tn),e}();function or(e){return Rr.ds(e,wr.store)}function ar(e){return Rr.ds(e,_r.store)}function sr(e){return e.path.tt()}function lr(e){var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw g("Unknown remote document type");t=e.noDocument}return JSON.stringify(t).length}var cr=function(){function e(){this.Nc=new ur}return e.prototype.Ls=function(e,t){return this.Nc.add(t),Cn.resolve()},e.prototype.po=function(e,t){return Cn.resolve(this.Nc.getEntries(t))},e}(),ur=function(){function e(){this.index={}}return e.prototype.add=function(e){y(e.length%2==1,"Expected a collection path.");var t=e.X(),n=e.H(),r=this.index[t]||new ge(ce.G),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e.X(),n=e.H(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new ge(ce.G)).tt()},e}(),dr=9,hr=function(){function e(e){this.serializer=e}return e.prototype.createOrUpgrade=function(e,t,n,r){var i=this;y(n<r&&n>=0&&r<=dr,"Unexpected schema upgrade from v"+n+" to v{toVersion}.");var o=new On(t);n<1&&r>=1&&(function(e){e.createObjectStore(pr.store)}(e),function(e){e.createObjectStore(mr.store,{keyPath:mr.keyPath}),e.createObjectStore(vr.store,{keyPath:vr.keyPath,autoIncrement:!0}).createIndex(vr.userMutationsIndex,vr.userMutationsKeyPath,{unique:!0}),e.createObjectStore(gr.store)}(e),Tr(e),function(e){e.createObjectStore(_r.store)}(e));var a=Cn.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Sr.store),e.deleteObjectStore(kr.store),e.deleteObjectStore(Er.store)}(e),Tr(e)),a=a.next((function(){return function(e){var t=e.store(Er.store),n=new Er(0,0,se.MIN.M(),0);return t.put(Er.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(e,t){return t.store(vr.store).Is().next((function(n){e.deleteObjectStore(vr.store),e.createObjectStore(vr.store,{keyPath:vr.keyPath,autoIncrement:!0}).createIndex(vr.userMutationsIndex,vr.userMutationsKeyPath,{unique:!0});var r=t.store(vr.store),i=n.map((function(e){return r.put(e)}));return Cn.Wu(i)}))}(e,o)}))),a=a.next((function(){!function(e){e.createObjectStore(xr.store,{keyPath:xr.keyPath})}(e)}))),n<5&&r>=5&&(a=a.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(e){e.createObjectStore(wr.store)}(e),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.createCollectionParentIndex(e,o)}))),n<9&&r>=9&&(a=a.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(_r.store);t.createIndex(_r.readTimeIndex,_r.readTimeIndexPath,{unique:!1}),t.createIndex(_r.collectionReadTimeIndex,_r.collectionReadTimeIndexPath,{unique:!1})}(t)}))),a},e.prototype.addDocumentGlobal=function(e){var t=0;return e.store(_r.store).Ss((function(e,n){t+=lr(n)})).next((function(){var n=new wr(t);return e.store(wr.store).put(wr.key,n)}))},e.prototype.removeAcknowledgedMutations=function(e){var t=this,n=e.store(mr.store),r=e.store(vr.store);return n.Is().next((function(n){return Cn.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Is(vr.userMutationsIndex,i).next((function(r){return Cn.forEach(r,(function(r){y(r.userId===n.userId,"Cannot process batch "+r.batchId+" from unexpected user");var i=t.serializer.Bs(r);return jn(e,n.userId,i).next((function(){}))}))}))}))}))},e.prototype.ensureSequenceNumbers=function(e){var t=e.store(Sr.store),n=e.store(_r.store);return nr(e).next((function(e){var r=[];return n.Ss((function(n,i){var o=new ce(n),a=function(e){return[0,vn(e)]}(o);r.push(t.get(a).next((function(n){return n?Cn.resolve():function(n){return t.put(new Sr(0,vn(n),e))}(o)})))})).next((function(){return Cn.Wu(r)}))}))},e.prototype.createCollectionParentIndex=function(e,t){e.createObjectStore(Cr.store,{keyPath:Cr.keyPath});var n=t.store(Cr.store),r=new ur,i=function(e){if(r.add(e)){var t=e.X(),i=e.H();return n.put({collectionId:t,parent:vn(i)})}};return t.store(_r.store).Ss({Ds:!0},(function(e,t){var n=new ce(e);return i(n.H())})).next((function(){return t.store(gr.store).Ss({Ds:!0},(function(e,t){e[0];var n=e[1],r=(e[2],bn(n));return i(r.H())}))}))},e}(),fr=function(e,t){this.seconds=e,this.nanoseconds=t},pr=function(){function e(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n}return e.store="owner",e.key="owner",e}(),mr=function(){function e(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n}return e.store="mutationQueues",e.keyPath="userId",e}(),vr=function(){function e(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i}return e.store="mutations",e.keyPath="batchId",e.userMutationsIndex="userMutationsIndex",e.userMutationsKeyPath=["userId","batchId"],e}(),gr=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,vn(t)]},e.key=function(e,t,n){return[e,vn(t),n]},e.store="documentMutations",e.PLACEHOLDER=new e,e}(),yr=function(e,t){this.path=e,this.readTime=t},br=function(e,t){this.path=e,this.version=t},_r=function(){function e(e,t,n,r,i,o){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o}return e.store="remoteDocuments",e.readTimeIndex="readTimeIndex",e.readTimeIndexPath="readTime",e.collectionReadTimeIndex="collectionReadTimeIndex",e.collectionReadTimeIndexPath=["parentPath","readTime"],e}(),wr=function(){function e(e){this.byteSize=e}return e.store="remoteDocumentGlobal",e.key="remoteDocumentGlobalKey",e}(),kr=function(){function e(e,t,n,r,i,o,a){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a}return e.store="targets",e.keyPath="targetId",e.queryTargetsIndexName="queryTargetsIndex",e.queryTargetsKeyPath=["canonicalId","targetId"],e}(),Sr=function(){function e(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n,y(0===e==(void 0!==n),"A target-document row must either have targetId == 0 and a defined sequence number, or a non-zero targetId and no sequence number")}return e.store="targetDocuments",e.keyPath=["targetId","path"],e.documentTargetsIndex="documentTargetsIndex",e.documentTargetsKeyPath=["path","targetId"],e}(),Er=function(){function e(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r}return e.key="targetGlobalKey",e.store="targetGlobal",e}(),Cr=function(){function e(e,t){this.collectionId=e,this.parent=t}return e.store="collectionParents",e.keyPath=["collectionId","parent"],e}();function Tr(e){e.createObjectStore(Sr.store,{keyPath:Sr.keyPath}).createIndex(Sr.documentTargetsIndex,Sr.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(kr.store,{keyPath:kr.keyPath}).createIndex(kr.queryTargetsIndexName,kr.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(Er.store)}var xr=function(){function e(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r}return e.store="clientMetadata",e.keyPath="clientId",e}(),Mr=[mr.store,vr.store,gr.store,_r.store,kr.store,pr.store,Er.store,Sr.store],$r=o.__spreadArrays(Mr,[xr.store]),Pr=o.__spreadArrays($r,[wr.store]),Or=o.__spreadArrays(Pr,[Cr.store]),Lr=function(){function e(){this.Oc=new ur}return e.prototype.Ls=function(e,t){var n=this;if(y(t.length%2==1,"Expected a collection path."),!this.Oc.has(t)){var r=t.X(),i=t.H();e.us((function(){n.Oc.add(t)}));var o={collectionId:r,parent:vn(i)};return Ar(e).put(o)}return Cn.resolve()},e.prototype.po=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[k(t),""],!1,!0);return Ar(e).Is(r).next((function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.collectionId!==t)break;n.push(bn(o.parent))}return n}))},e}();function Ar(e){return Rr.ds(e,Cr.store)}var Ir=function(){function e(e){this.Fc=e}return e.prototype.Dc=function(e){if(e.document)return this.Fc.Ke(e.document,!!e.hasCommittedMutations);if(e.noDocument){var t=he.at(e.noDocument.path),n=this.Vc(e.noDocument.readTime);return new Ze(t,n,{hasCommittedMutations:!!e.hasCommittedMutations})}return e.unknownDocument?(t=he.at(e.unknownDocument.path),n=this.Vc(e.unknownDocument.version),new et(t,n)):g("Unexpected DbRemoteDocument")},e.prototype.kc=function(e,t){var n=this.Ec(t),r=e.key.path.H().tt();if(e instanceof Qe){var i=e.proto?e.proto:this.Fc.ze(e),o=e.hasCommittedMutations;return new _r(null,null,i,o,n,r)}if(e instanceof Ze){var a=e.key.path.tt(),s=this.Uc(e.version);return o=e.hasCommittedMutations,new _r(null,new yr(a,s),null,o,n,r)}if(e instanceof et){a=e.key.path.tt();var l=this.Uc(e.version);return new _r(new br(a,l),null,null,!0,n,r)}return g("Unexpected MaybeDocument")},e.prototype.Ec=function(e){var t=e.M();return[t.seconds,t.nanoseconds]},e.prototype.Sc=function(e){var t=new ae(e[0],e[1]);return se.L(t)},e.prototype.Uc=function(e){var t=e.M();return new fr(t.seconds,t.nanoseconds)},e.prototype.Vc=function(e){var t=new ae(e.seconds,e.nanoseconds);return se.L(t)},e.prototype.js=function(e,t){var n=this,r=t.baseMutations.map((function(e){return n.Fc.ir(e)})),i=t.mutations.map((function(e){return n.Fc.ir(e)}));return new vr(e,t.batchId,t.En.toMillis(),r,i)},e.prototype.Bs=function(e){var t=this,n=(e.baseMutations||[]).map((function(e){return t.Fc.sr(e)})),r=e.mutations.map((function(e){return t.Fc.sr(e)})),i=ae.fromMillis(e.localWriteTimeMs);return new _n(e.batchId,i,n,r)},e.prototype.xc=function(e){var t=[];return e.forEach((function(e){t.push(vn(e.path))})),t},e.prototype.jc=function(e){for(var t=Nt(),n=0,r=e;n<r.length;n++){var i=r[n];t=t.add(new he(bn(i)))}return t},e.prototype.dc=function(e){var t,n=this.Vc(e.readTime),r=void 0!==e.lastLimboFreeSnapshotVersion?this.Vc(e.lastLimboFreeSnapshotVersion):se.MIN;return t=void 0!==e.query.documents?this.Fc.vr(e.query):this.Fc.br(e.query),new St(t,e.targetId,0,e.lastListenSequenceNumber,n,r,yt.fromBase64String(e.resumeToken))},e.prototype.vc=function(e){y(0===e.fi,"Only queries with purpose 0 may be stored, got "+e.fi);var t,n=this.Uc(e.li),r=this.Uc(e.lastLimboFreeSnapshotVersion);t=e.target.Nn()?this.Fc.dr(e.target):this.Fc.wr(e.target);var i=e.resumeToken.toBase64();return new kr(e.targetId,e.target.canonicalId(),n,i,e.sequenceNumber,r,t)},e}(),Dr="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Nr=function(e){function t(t,n){var r=e.call(this)||this;return r.Xs=t,r.Zo=n,r}return o.__extends(t,e),t}(Mn),Rr=function(){function e(t,n,r,i,o,a,s,l){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Lc=a,this.qc=l,this.Bc=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Mc=null,this.inForeground=!1,this.Qc=null,this.Gc=null,this.Wc=Number.NEGATIVE_INFINITY,this.zc=function(e){return Promise.resolve()},this.As=new Yr(this,o),this.Kc=n+e.Hc,this.serializer=new Ir(s),this.document=i.document,this.Oo=new Zn(this.As,this.serializer),this.Cs=new Lr,this.so=new ir(this.serializer,this.Cs),!i.window||!i.window.localStorage)throw new x(T.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=i.window,this.Jc=this.window.localStorage}return e.ds=function(e,t){if(e instanceof Nr)return $n.ds(e.Xs,t);throw g("IndexedDbPersistence must use instances of IndexedDbTransaction")},e.Yc=function(t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:if(!e.cs())throw new x(T.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");return[4,(n=new e(t.allowTabSynchronization,t.persistenceKey,t.clientId,t.platform,t.Xc,t.Lc,t.serializer,t.qc)).start()];case 1:return r.sent(),[2,n]}}))}))},e.prototype.start=function(){var e=this;return y(!this.Co,"IndexedDbPersistence double-started!"),y(null!==this.window,"Expected 'window' to be defined"),$n.hs(this.Kc,dr,new hr(this.serializer)).then((function(t){return e.$c=t,e.Zc()})).then((function(){return e.ta(),e.na(),e.ia(),e.$c.runTransaction("readonly-idempotent",[Er.store],(function(e){return nr(e)}))})).then((function(t){e.ea=new hn(t,e.qc)})).then((function(){e.Bc=!0})).catch((function(t){return e.$c&&e.$c.close(),Promise.reject(t)}))},e.prototype.ra=function(e){var t=this;return this.zc=function(n){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(t){return this.Co?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.ua=function(e){var t=this;this.$c.vs((function(n){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return null!==n.newVersion?[3,2]:[4,e()];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))},e.prototype.yh=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Lc.$r((function(){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.Co?[4,this.Zc()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.Zc=function(){var e=this;return this.$c.runTransaction("readwrite-idempotent",Or,(function(t){return Br(t).put(new xr(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.sa(t).next((function(t){t||(e.isPrimary=!1,e.Lc.$r((function(){return e.zc(!1)})))}))})).next((function(){return e.oa(t)})).next((function(n){return e.isPrimary&&!n?e.ha(t).next((function(){return!1})):!!n&&e.ca(t).next((function(){return!0}))}))})).catch((function(t){if(!e.allowTabSynchronization)throw t;return p("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Lc.$r((function(){return e.zc(t)})),e.isPrimary=t}))},e.prototype.sa=function(e){var t=this;return jr(e).get(pr.key).next((function(e){return Cn.resolve(t.aa(e))}))},e.prototype.fa=function(e){return Br(e).delete(this.clientId)},e.prototype.la=function(){return o.__awaiter(this,void 0,void 0,(function(){var t=this;return o.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.da(this.Wc,18e5)?[3,2]:(this.Wc=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary-idempotent",(function(n){var r=e.ds(n,xr.store);return r.Is().next((function(e){var n=t.va(e,18e5),i=e.filter((function(e){return-1===n.indexOf(e)}));return Cn.forEach(i,(function(e){return r.delete(e.clientId)})).next((function(){return i}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(e){t.window.localStorage.removeItem(t.wa(e.clientId))})),n.label=2;case 2:return[2]}}))}))},e.prototype.ia=function(){var e=this;this.Gc=this.Lc.fu("client_metadata_refresh",4e3,(function(){return e.Zc().then((function(){return e.la()})).then((function(){return e.ia()}))}))},e.prototype.aa=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.oa=function(e){var t=this;return jr(e).get(pr.key).next((function(n){if(null!==n&&t.da(n.leaseTimestampMs,5e3)&&!t.ma(n.ownerId)){if(t.aa(n)&&t.networkEnabled)return!0;if(!t.aa(n)){if(!n.allowTabSynchronization)throw new x(T.FAILED_PRECONDITION,Dr);return!1}}return!(!t.networkEnabled||!t.inForeground)||Br(e).Is().next((function(e){return void 0===t.va(e,5e3).find((function(e){if(t.clientId!==e.clientId){var n=!t.networkEnabled&&e.networkEnabled,r=!t.inForeground&&e.inForeground,i=t.networkEnabled===e.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(e){return t.isPrimary!==e&&p("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.shutdown=function(){return o.__awaiter(this,void 0,void 0,(function(){var e=this;return o.__generator(this,(function(t){switch(t.label){case 0:return this.Bc=!1,this.pa(),this.Gc&&(this.Gc.cancel(),this.Gc=null),this.ga(),this.ba(),[4,this.$c.runTransaction("readwrite-idempotent",[pr.store,xr.store],(function(t){return e.ha(t).next((function(){return e.fa(t)}))}))];case 1:return t.sent(),this.$c.close(),this.ya(),[2]}}))}))},e.prototype.va=function(e,t){var n=this;return e.filter((function(e){return n.da(e.updateTimeMs,t)&&!n.ma(e.clientId)}))},e.prototype.gh=function(){var e=this;return this.$c.runTransaction("readonly-idempotent",[xr.store],(function(t){return Br(t).Is().next((function(t){return e.va(t,18e5).map((function(e){return e.clientId}))}))}))},e.clearPersistence=function(t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:return e.cs()?(n=t+e.Hc,[4,$n.delete(n)]):[2,Promise.resolve()];case 1:return r.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"Co",{get:function(){return this.Bc},enumerable:!0,configurable:!0}),e.prototype.Po=function(e){return y(this.Co,"Cannot initialize MutationQueue before persistence is started."),Nn.ks(e,this.serializer,this.Cs,this.As)},e.prototype.Fo=function(){return y(this.Co,"Cannot initialize TargetCache before persistence is started."),this.Oo},e.prototype.No=function(){return y(this.Co,"Cannot initialize RemoteDocumentCache before persistence is started."),this.so},e.prototype.Uo=function(){return y(this.Co,"Cannot initialize IndexManager before persistence is started."),this.Cs},e.prototype.runTransaction=function(e,t,n){var r=this;p("IndexedDbPersistence","Starting transaction:",e);var i,o=t.endsWith("idempotent"),a=t.startsWith("readonly")?o?"readonly-idempotent":"readonly":o?"readwrite-idempotent":"readwrite";return this.$c.runTransaction(a,Or,(function(o){return i=new Nr(o,r.ea.next()),"readwrite-primary"===t||"readwrite-primary-idempotent"===t?r.sa(o).next((function(e){return!!e||r.oa(o)})).next((function(t){if(!t)throw m("Failed to obtain primary lease for action '"+e+"'."),r.isPrimary=!1,r.Lc.$r((function(){return r.zc(!1)})),new x(T.FAILED_PRECONDITION,xn);return n(i)})).next((function(e){return r.ca(o).next((function(){return e}))})):r._a(o).next((function(){return n(i)}))})).then((function(e){return i.ss(),e}))},e.prototype._a=function(e){var t=this;return jr(e).get(pr.key).next((function(e){if(null!==e&&t.da(e.leaseTimestampMs,5e3)&&!t.ma(e.ownerId)&&!t.aa(e)&&!e.allowTabSynchronization)throw new x(T.FAILED_PRECONDITION,Dr)}))},e.prototype.ca=function(e){var t=new pr(this.clientId,this.allowTabSynchronization,Date.now());return jr(e).put(pr.key,t)},e.cs=function(){return $n.cs()},e.Ia=function(e){var t=e.s.projectId;return e.s.o||(t+="."+e.s.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.ha=function(e){var t=this,n=jr(e);return n.get(pr.key).next((function(e){return t.aa(e)?(p("IndexedDbPersistence","Releasing primary lease."),n.delete(pr.key)):Cn.resolve()}))},e.prototype.da=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(m("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.ta=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Qc=function(){e.Lc.$r((function(){return e.inForeground="visible"===e.document.visibilityState,e.Zc()}))},this.document.addEventListener("visibilitychange",this.Qc),this.inForeground="visible"===this.document.visibilityState)},e.prototype.ga=function(){this.Qc&&(y(null!==this.document&&"function"==typeof this.document.addEventListener,"Expected 'document.addEventListener' to be a function"),this.document.removeEventListener("visibilitychange",this.Qc),this.Qc=null)},e.prototype.na=function(){var e=this;"function"==typeof this.window.addEventListener&&(this.Mc=function(){e.pa(),e.Lc.$r((function(){return e.shutdown()}))},this.window.addEventListener("unload",this.Mc))},e.prototype.ba=function(){this.Mc&&(y("function"==typeof this.window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),this.window.removeEventListener("unload",this.Mc),this.Mc=null)},e.prototype.ma=function(e){try{var t=null!==this.Jc.getItem(this.wa(e));return p("IndexedDbPersistence","Client '"+e+"' "+(t?"is":"is not")+" zombied in LocalStorage"),t}catch(e){return m("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype.pa=function(){try{this.Jc.setItem(this.wa(this.clientId),String(Date.now()))}catch(e){m("Failed to set zombie client id.",e)}},e.prototype.ya=function(){try{this.Jc.removeItem(this.wa(this.clientId))}catch(e){}},e.prototype.wa=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e.Hc="main",e}();function jr(e){return e.store(pr.store)}function Br(e){return e.store(xr.store)}var Yr=function(){function e(e,t){this.db=e,this.Ta=null,this.Wh=new Qn(this,t)}return e.prototype.$h=function(e){var t=this.Ea(e);return this.db.Fo().wc(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.Ea=function(e){var t=0;return this.tc(e,(function(e){t++})).next((function(){return t}))},e.prototype.ce=function(e,t){return this.db.Fo().ce(e,t)},e.prototype.tc=function(e,t){return this.Da(e,(function(e,n){return t(n)}))},e.prototype.Ao=function(e){this.Ta=e},e.prototype.Du=function(e,t){return Fr(e,t)},e.prototype.Ru=function(e,t){return Fr(e,t)},e.prototype.nc=function(e,t,n){return this.db.Fo().nc(e,t,n)},e.prototype.Zs=function(e,t){return Fr(e,t)},e.prototype.Sa=function(e,t){return this.Ta.Ou(t)?Cn.resolve(!0):function(e,t){var n=!1;return Fn(e).Rs((function(r){return Rn(e,r,t).next((function(e){return e&&(n=!0),Cn.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.ic=function(e,t){var n=this,r=this.db.No().Wo(),i=[],o=0;return this.Da(e,(function(a,s){if(s<=t){var l=n.Sa(e,a).next((function(t){if(!t)return o++,r.Zu(e,a).next((function(){return r.$u(a),rr(e).delete([0,vn(a.path)])}))}));i.push(l)}})).next((function(){return Cn.Wu(i)})).next((function(){return r.apply(e)})).next((function(){return o}))},e.prototype.removeTarget=function(e,t){var n=t.di(e.Zo);return this.db.Fo().nh(e,n)},e.prototype.ih=function(e,t){return Fr(e,t)},e.prototype.Da=function(e,t){var n,r=rr(e),i=hn.Mr;return r.Ss({index:Sr.documentTargetsIndex},(function(e,r){var o=e[0],a=(e[1],r.path),s=r.sequenceNumber;0===o?(i!==hn.Mr&&t(new he(bn(n)),i),i=s,n=a):i=hn.Mr})).next((function(){i!==hn.Mr&&t(new he(bn(n)),i)}))},e.prototype.ec=function(e){return this.db.No().Cc(e)},e}();function Fr(e,t){return rr(e).put(function(e,t){return new Sr(0,vn(e.path),t)}(t,e.Zo))}var Hr=function(){function e(){}return e.prototype.xo=function(e){this.Ra=e},e.prototype.do=function(e,t,n,r){var i=this;return y(void 0!==this.Ra,"setLocalDocumentsView() not called"),t.Jn()||n.isEqual(se.MIN)?this.Ca(e,t):this.Ra.fo(e,r).next((function(o){var a=i.Aa(t,o);return(t.ii()||t.ei())&&i.Pa(t.Fn,a,r,n)?i.Ca(e,t):(h()<=0&&p("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),t.toString()),i.Ra.do(e,t,n).next((function(e){return a.forEach((function(t){e=e.lt(t.key,t)})),e})))}))},e.prototype.Aa=function(e,t){var n=new ge((function(t,n){return e.Xn(t,n)}));return t.forEach((function(t,r){r instanceof Qe&&e.matches(r)&&(n=n.add(r))})),n},e.prototype.Pa=function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.h(r)>0)},e.prototype.Ca=function(e,t){return h()<=0&&p("IndexFreeQueryEngine","Using full collection scan to execute query: %s",t.toString()),this.Ra.do(e,t,se.MIN)},e}(),Ur=function(){function e(e,t){this.Cs=e,this.As=t,this.oo=[],this.ka=1,this.lastStreamToken=yt.ai,this.Na=new ge(Sn.Sn)}return e.prototype.Ns=function(e){return Cn.resolve(0===this.oo.length)},e.prototype.Os=function(e,t,n){var r=t.batchId,i=this.Oa(r,"acknowledged");y(0===i,"Can only acknowledge the first batch in the mutation queue");var o=this.oo[i];return y(r===o.batchId,"Queue ordering failure: expected batch "+r+", got batch "+o.batchId),this.lastStreamToken=n,Cn.resolve()},e.prototype.Vs=function(e){return Cn.resolve(this.lastStreamToken)},e.prototype.Us=function(e,t){return this.lastStreamToken=t,Cn.resolve()},e.prototype.xs=function(e,t,n,r){y(0!==r.length,"Mutation batches should not be empty");var i=this.ka;this.ka++,this.oo.length>0&&y(this.oo[this.oo.length-1].batchId<i,"Mutation batchIDs must be monotonically increasing order");var o=new _n(i,t,n,r);this.oo.push(o);for(var a=0,s=r;a<s.length;a++){var l=s[a];this.Na=this.Na.add(new Sn(l.key,i)),this.Cs.Ls(e,l.key.path.H())}return Cn.resolve(o)},e.prototype.qs=function(e,t){return Cn.resolve(this.Fa(t))},e.prototype.Ms=function(e,t){var n=this.Fa(t);return y(null!=n,"Failed to find local mutation batch."),Cn.resolve(n.keys())},e.prototype.Qs=function(e,t){var n=t+1,r=this.Va(n),i=r<0?0:r;return Cn.resolve(this.oo.length>i?this.oo[i]:null)},e.prototype.Gs=function(){return Cn.resolve(0===this.oo.length?-1:this.ka-1)},e.prototype.Ws=function(e){return Cn.resolve(this.oo.slice())},e.prototype.zs=function(e,t){var n=this,r=new Sn(t,0),i=new Sn(t,Number.POSITIVE_INFINITY),o=[];return this.Na.Lt([r,i],(function(e){y(t.isEqual(e.key),"Should only iterate over a single key's batches");var r=n.Fa(e.Fu);y(null!==r,"Batches in the index must exist in the main table"),o.push(r)})),Cn.resolve(o)},e.prototype.Ks=function(e,t){var n=this,r=new ge(_);return t.forEach((function(e){var t=new Sn(e,0),i=new Sn(e,Number.POSITIVE_INFINITY);n.Na.Lt([t,i],(function(t){y(e.isEqual(t.key),"For each key, should only iterate over a single key's batches"),r=r.add(t.Fu)}))})),Cn.resolve(this.Ua(r))},e.prototype.Js=function(e,t){y(!t.ui(),"CollectionGroup queries should be handled in LocalDocumentsView");var n=t.path,r=n.length+1,i=n;he.ht(i)||(i=i.child(""));var o=new Sn(new he(i),0),a=new ge(_);return this.Na.qt((function(e){var t=e.key.path;return!!n.$(t)&&(t.length===r&&(a=a.add(e.Fu)),!0)}),o),Cn.resolve(this.Ua(a))},e.prototype.Ua=function(e){var t=this,n=[];return e.forEach((function(e){var r=t.Fa(e);null!==r&&n.push(r)})),n},e.prototype.Ys=function(e,t){var n=this;y(0===this.Oa(t.batchId,"removed"),"Can only remove the first entry of the mutation queue"),this.oo.shift();var r=this.Na;return Cn.forEach(t.mutations,(function(i){var o=new Sn(i.key,t.batchId);return r=r.delete(o),n.As.Zs(e,i.key)})).next((function(){n.Na=r}))},e.prototype.$s=function(e){},e.prototype.Ou=function(e,t){var n=new Sn(t,0),r=this.Na.Bt(n);return Cn.resolve(t.isEqual(r&&r.key))},e.prototype.to=function(e){return 0===this.oo.length&&y(this.Na.J(),"Document leak -- detected dangling mutation references when queue is empty."),Cn.resolve()},e.prototype.Oa=function(e,t){var n=this.Va(e);return y(n>=0&&n<this.oo.length,"Batches must exist to be "+t),n},e.prototype.Va=function(e){return 0===this.oo.length?0:e-this.oo[0].batchId},e.prototype.Fa=function(e){var t=this.Va(e);if(t<0||t>=this.oo.length)return null;var n=this.oo[t];return y(n.batchId===e,"If found batch must match"),n},e}(),zr=function(){function e(e,t){this.Cs=e,this.xa=t,this.docs=new fe(he.G),this.size=0}return e.prototype.Yu=function(e,t,n){y(!n.isEqual(se.MIN),"Cannot add a document with a read time of zero");var r=t.key,i=this.docs.get(r),o=i?i.size:0,a=this.xa(t);return this.docs=this.docs.lt(r,{bc:t,size:a,readTime:n}),this.size+=a-o,this.Cs.Ls(e,r.path.H())},e.prototype.$u=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.Zu=function(e,t){var n=this.docs.get(t);return Cn.resolve(n?n.bc:null)},e.prototype.getEntries=function(e,t){var n=this,r=Pt();return t.forEach((function(e){var t=n.docs.get(e);r=r.lt(e,t?t.bc:null)})),Cn.resolve(r)},e.prototype.do=function(e,t,n){y(!t.ui(),"CollectionGroup queries should be handled in LocalDocumentsView");for(var r=Lt(),i=new he(t.path.child("")),o=this.docs.yt(i);o.St();){var a=o.Dt(),s=a.key,l=a.value,c=l.bc,u=l.readTime;if(!t.path.$(s.path))break;u.h(n)<=0||c instanceof Qe&&t.matches(c)&&(r=r.lt(c.key,c))}return Cn.resolve(r)},e.prototype.ja=function(e,t){return Cn.forEach(this.docs,(function(e){return t(e)}))},e.prototype.Eh=function(e,t){throw new Error("getNewDocumentChanges() is not supported with MemoryPersistence")},e.prototype.Sh=function(e){return Cn.resolve(se.MIN)},e.prototype.Wo=function(t){return new e.Rc(this)},e.prototype.Cc=function(e){return Cn.resolve(this.size)},e.Rc=function(e){function t(t){var n=e.call(this)||this;return n.Ac=t,n}return o.__extends(t,e),t.prototype.es=function(e){var t=this,n=[];return this.Ku.forEach((function(r,i){i?n.push(t.Ac.Yu(e,i,t.readTime)):t.Ac.$u(r)})),Cn.Wu(n)},t.prototype.ts=function(e,t){return this.Ac.Zu(e,t)},t.prototype.ns=function(e,t){return this.Ac.getEntries(e,t)},t}(Tn),e}(),Vr=function(){function e(e){this.persistence=e,this.La=new En((function(e){return e.canonicalId()})),this.lastRemoteSnapshotVersion=se.MIN,this.highestTargetId=0,this.qa=0,this.Ba=new kn,this.targetCount=0,this.uc=Hn.ro()}return e.prototype.ce=function(e,t){return this.La.forEach((function(e,n){return t(n)})),Cn.resolve()},e.prototype.Jo=function(e){return Cn.resolve(this.lastRemoteSnapshotVersion)},e.prototype.hc=function(e){return Cn.resolve(this.qa)},e.prototype.fh=function(e){var t=this.uc.after(this.highestTargetId);return this.highestTargetId=t,Cn.resolve(t)},e.prototype.eh=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.qa&&(this.qa=t),Cn.resolve()},e.prototype.cc=function(e){this.La.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.highestTargetId=t),e.sequenceNumber>this.qa&&(this.qa=e.sequenceNumber)},e.prototype.lh=function(e,t){return y(!this.La.has(t.target),"Adding a target that already exists"),this.cc(t),this.targetCount+=1,Cn.resolve()},e.prototype.nh=function(e,t){return y(this.La.has(t.target),"Updating a non-existent target"),this.cc(t),Cn.resolve()},e.prototype.fc=function(e,t){return y(this.targetCount>0,"Removing a target from an empty cache"),y(this.La.has(t.target),"Removing a non-existent target from the cache"),this.La.delete(t.target),this.Ba.Pu(t.targetId),this.targetCount-=1,Cn.resolve()},e.prototype.nc=function(e,t,n){var r=this,i=0,o=[];return this.La.forEach((function(a,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.La.delete(a),o.push(r.lc(e,s.targetId)),i++)})),Cn.Wu(o).next((function(){return i}))},e.prototype.wc=function(e){return Cn.resolve(this.targetCount)},e.prototype.ah=function(e,t){var n=this.La.get(t)||null;return Cn.resolve(n)},e.prototype.ye=function(e,t){return g("Not yet implemented.")},e.prototype.$o=function(e,t,n){this.Ba.Su(t,n);var r=this.persistence.As,i=[];return r&&t.forEach((function(t){i.push(r.Du(e,t))})),Cn.Wu(i)},e.prototype.Xo=function(e,t,n){this.Ba.Au(t,n);var r=this.persistence.As,i=[];return r&&t.forEach((function(t){i.push(r.Ru(e,t))})),Cn.Wu(i)},e.prototype.lc=function(e,t){return this.Ba.Pu(t),Cn.resolve()},e.prototype.wh=function(e,t){var n=this.Ba.Nu(t);return Cn.resolve(n)},e.prototype.Ou=function(e,t){return Cn.resolve(this.Ba.Ou(t))},e}(),qr=function(){function e(e,t){var n=this;this.clientId=e,this.Ma={},this.ea=new hn(0),this.Bc=!1,this.Bc=!0,this.As=t(this),this.Oo=new Vr(this),this.Cs=new cr,this.so=new zr(this.Cs,(function(e){return n.As.Qa(e)}))}return e.Ga=function(t,n){return new e(t,(function(e){return new Kr(e,n)}))},e.Wa=function(t){return new e(t,(function(e){return new Gr(e)}))},e.prototype.shutdown=function(){return this.Bc=!1,Promise.resolve()},Object.defineProperty(e.prototype,"Co",{get:function(){return this.Bc},enumerable:!0,configurable:!0}),e.prototype.gh=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return[2,[this.clientId]]}))}))},e.prototype.ra=function(e){return e(!0)},e.prototype.ua=function(){},e.prototype.yh=function(e){},e.prototype.Uo=function(){return this.Cs},e.prototype.Po=function(e){var t=this.Ma[e.v()];return t||(t=new Ur(this.Cs,this.As),this.Ma[e.v()]=t),t},e.prototype.Fo=function(){return this.Oo},e.prototype.No=function(){return this.so},e.prototype.runTransaction=function(e,t,n){var r=this;p("MemoryPersistence","Starting transaction:",e);var i=new Wr(this.ea.next());return this.As.za(),n(i).next((function(e){return r.As.Ka(i).next((function(){return e}))})).Qu().then((function(e){return i.ss(),e}))},e.prototype.Ha=function(e,t){return Cn.zu((n=this.Ma,r=[],R(n,(function(e,t){return r.push(t)})),r).map((function(n){return function(){return n.Ou(e,t)}})));var n,r},e}(),Wr=function(e){function t(t){var n=e.call(this)||this;return n.Zo=t,n}return o.__extends(t,e),t}(Mn),Gr=function(){function e(e){this.persistence=e,this.Ta=null,this.Ja=null}return Object.defineProperty(e.prototype,"Ya",{get:function(){if(this.Ja)return this.Ja;throw g("orphanedDocuments is only valid during a transaction.")},enumerable:!0,configurable:!0}),e.prototype.Ao=function(e){this.Ta=e},e.prototype.Du=function(e,t){return this.Ya.delete(t),Cn.resolve()},e.prototype.Ru=function(e,t){return this.Ya.add(t),Cn.resolve()},e.prototype.Zs=function(e,t){return this.Ya.add(t),Cn.resolve()},e.prototype.removeTarget=function(e,t){var n=this,r=this.persistence.Fo();return r.wh(e,t.targetId).next((function(e){e.forEach((function(e){return n.Ya.add(e)}))})).next((function(){return r.fc(e,t)}))},e.prototype.za=function(){this.Ja=new Set},e.prototype.Ka=function(e){var t=this,n=this.persistence.No().Wo();return Cn.forEach(this.Ya,(function(r){return t.Xa(e,r).next((function(e){e||n.$u(r)}))})).next((function(){return t.Ja=null,n.apply(e)}))},e.prototype.ih=function(e,t){var n=this;return this.Xa(e,t).next((function(e){e?n.Ya.delete(t):n.Ya.add(t)}))},e.prototype.Qa=function(e){return 0},e.prototype.Xa=function(e,t){var n=this;return Cn.zu([function(){return n.persistence.Fo().Ou(e,t)},function(){return n.persistence.Ha(e,t)},function(){return Cn.resolve(n.Ta.Ou(t))}])},e}(),Kr=function(){function e(e,t){this.persistence=e,this.Ta=null,this.$a=new En((function(e){return vn(e.path)})),this.Wh=new Qn(this,t)}return e.prototype.za=function(){},e.prototype.Ka=function(e){return Cn.resolve()},e.prototype.ce=function(e,t){return this.persistence.Fo().ce(e,t)},e.prototype.$h=function(e){var t=this.Za(e);return this.persistence.Fo().wc(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.Za=function(e){var t=0;return this.tc(e,(function(e){t++})).next((function(){return t}))},e.prototype.tc=function(e,t){var n=this;return Cn.forEach(this.$a,(function(r,i){return n.Sa(e,r,i).next((function(e){return e?Cn.resolve():t(i)}))}))},e.prototype.Ao=function(e){this.Ta=e},e.prototype.nc=function(e,t,n){return this.persistence.Fo().nc(e,t,n)},e.prototype.ic=function(e,t){var n=this,r=0,i=this.persistence.No(),o=i.Wo();return i.ja(e,(function(i){return n.Sa(e,i,t).next((function(e){e||(r++,o.$u(i))}))})).next((function(){return o.apply(e)})).next((function(){return r}))},e.prototype.Zs=function(e,t){return this.$a.set(t,e.Zo),Cn.resolve()},e.prototype.removeTarget=function(e,t){var n=t.di(e.Zo);return this.persistence.Fo().nh(e,n)},e.prototype.Du=function(e,t){return this.$a.set(t,e.Zo),Cn.resolve()},e.prototype.Ru=function(e,t){return this.$a.set(t,e.Zo),Cn.resolve()},e.prototype.ih=function(e,t){return this.$a.set(t,e.Zo),Cn.resolve()},e.prototype.Qa=function(e){var t=e.key.toString().length;return e instanceof Qe&&(t+=e.data().bn()),t},e.prototype.Sa=function(e,t,n){var r=this;return Cn.zu([function(){return r.persistence.Ha(e,t)},function(){return Cn.resolve(r.Ta.Ou(t))},function(){return r.persistence.Fo().Ou(e,t)},function(){var e=r.$a.get(t);return Cn.resolve(void 0!==e&&e>n)}])},e.prototype.ec=function(e){return this.persistence.No().Cc(e)},e}(),Jr=function(){function e(e,t,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Lc=e,this.Gr=t,this.tf=n,this.nf=r,this.if=i,this.ef=0,this.rf=null,this.uf=Date.now(),this.reset()}return e.prototype.reset=function(){this.ef=0},e.prototype.sf=function(){this.ef=this.if},e.prototype.hf=function(e){var t=this;this.cancel();var n=Math.floor(this.ef+this.cf()),r=Math.max(0,Date.now()-this.uf),i=Math.max(0,n-r);this.ef>0&&p("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.ef+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.rf=this.Lc.fu(this.Gr,i,(function(){return t.uf=Date.now(),e()})),this.ef*=this.nf,this.ef<this.tf&&(this.ef=this.tf),this.ef>this.if&&(this.ef=this.if)},e.prototype.cancel=function(){null!==this.rf&&(this.rf.cancel(),this.rf=null)},e.prototype.cf=function(){return(Math.random()-.5)*this.ef},e}(),Xr=function(){function e(e,t,n,r,i,o){this.Lc=e,this.af=n,this.connection=r,this.ff=i,this.listener=o,this.state=0,this.lf=0,this.df=null,this.stream=null,this.vf=new Jr(e,t)}return e.prototype.wf=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.mf=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?(y(0===this.state,"Already started"),this.auth()):this.pf()},e.prototype.stop=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.wf()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.gf=function(){y(!this.wf(),"Can only inhibit backoff in a stopped state"),this.state=0,this.vf.reset()},e.prototype.bf=function(){var e=this;this.mf()&&null===this.df&&(this.df=this.Lc.fu(this.af,6e4,(function(){return e.yf()})))},e.prototype._f=function(e){this.If(),this.stream.send(e)},e.prototype.yf=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.mf()?[2,this.close(0)]:[2]}))}))},e.prototype.If=function(){this.df&&(this.df.cancel(),this.df=null)},e.prototype.close=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(n){switch(n.label){case 0:return y(this.wf(),"Only started streams should be closed."),y(3===e||tt(t),"Can't provide an error when not in an error state."),this.If(),this.vf.cancel(),this.lf++,3!==e?this.vf.reset():t&&t.code===T.RESOURCE_EXHAUSTED?(m(t.toString()),m("Using maximum backoff delay to prevent overloading the backend."),this.vf.sf()):t&&t.code===T.UNAUTHENTICATED&&this.ff.I(),null!==this.stream&&(this.Tf(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.Ef(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.Tf=function(){},e.prototype.auth=function(){var e=this;y(0===this.state,"Must be in initial state to auth"),this.state=1;var t=this.Df(this.lf),n=this.lf;this.ff.getToken().then((function(t){e.lf===n&&e.Sf(t)}),(function(n){t((function(){var t=new x(T.UNKNOWN,"Fetching auth token failed: "+n.message);return e.Rf(t)}))}))},e.prototype.Sf=function(e){var t=this;y(1===this.state,"Trying to start stream in a non-starting state");var n=this.Df(this.lf);this.stream=this.Cf(e),this.stream.Af((function(){n((function(){return y(1===t.state,"Expected stream to be in state Starting, but was "+t.state),t.state=2,t.listener.Af()}))})),this.stream.Ef((function(e){n((function(){return t.Rf(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.pf=function(){var e=this;y(3===this.state,"Should only perform backoff when in Error state"),this.state=4,this.vf.hf((function(){return o.__awaiter(e,void 0,void 0,(function(){return o.__generator(this,(function(e){return y(4===this.state,"Backoff elapsed but state is now: "+this.state),this.state=0,this.start(),y(this.wf(),"PersistentStream should have started"),[2]}))}))}))},e.prototype.Rf=function(e){return y(this.wf(),"Can't handle server close on non-started stream"),p("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.Df=function(e){var t=this;return function(n){t.Lc.$r((function(){return t.lf===e?n():(p("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),Qr=function(e){function t(t,n,r,i,o){var a=e.call(this,t,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this;return a.serializer=i,a}return o.__extends(t,e),t.prototype.Cf=function(e){return this.connection.Pf("Listen",e)},t.prototype.onMessage=function(e){this.vf.reset();var t=this.serializer.Ze(e),n=this.serializer.nr(e);return this.listener.kf(t,n)},t.prototype.watch=function(e){var t={};t.database=this.serializer.je,t.addTarget=this.serializer.Yn(e);var n=this.serializer.Tr(e);n&&(t.labels=n),this._f(t)},t.prototype.Nf=function(e){var t={};t.database=this.serializer.je,t.removeTarget=e,this._f(t)},t}(Xr),Zr=function(e){function t(t,n,r,i,o){var a=e.call(this,t,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this;return a.serializer=i,a.Of=!1,a.lastStreamToken=yt.ai,a}return o.__extends(t,e),Object.defineProperty(t.prototype,"Ff",{get:function(){return this.Of},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.Of=!1,e.prototype.start.call(this)},t.prototype.Tf=function(){this.Of&&this.Vf([])},t.prototype.Cf=function(e){return this.connection.Pf("Write",e)},t.prototype.onMessage=function(e){if(y(!!e.streamToken,"Got a write response without a stream token"),this.lastStreamToken=this.serializer.Re(e.streamToken),this.Of){this.vf.reset();var t=this.serializer.lr(e.writeResults,e.commitTime),n=this.serializer.fromVersion(e.commitTime);return this.listener.Uf(n,t)}return y(!e.writeResults||0===e.writeResults.length,"Got mutation results for handshake"),this.Of=!0,this.listener.xf()},t.prototype.jf=function(){y(this.mf(),"Writing handshake requires an opened stream"),y(!this.Of,"Handshake already completed");var e={};e.database=this.serializer.je,this._f(e)},t.prototype.Vf=function(e){var t=this;y(this.mf(),"Writing mutations requires an opened stream"),y(this.Of,"Handshake must be complete before writing mutations"),y(this.lastStreamToken.bn()>0,"Trying to write mutation without a token");var n={streamToken:this.serializer.Se(this.lastStreamToken),writes:e.map((function(e){return t.serializer.ir(e)}))};this._f(n)},t}(Xr),ei=function(){function e(e,t,n,r){this.Lc=e,this.connection=t,this.credentials=n,this.serializer=r}return e.prototype.Lf=function(e){return new Zr(this.Lc,this.connection,this.credentials,this.serializer,e)},e.prototype.qf=function(e){return new Qr(this.Lc,this.connection,this.credentials,this.serializer,e)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.je,writes:e.map((function(e){return t.serializer.ir(e)}))};return this.Bf("Commit",n).then((function(e){return t.serializer.lr(e.writeResults,e.commitTime)}))},e.prototype.lookup=function(e){var t=this,n={database:this.serializer.je,documents:e.map((function(e){return t.serializer.Oe(e)}))};return this.Mf("BatchGetDocuments",n).then((function(n){var r=$t();n.forEach((function(e){var n=t.serializer.Ye(e);r=r.lt(n.key,n)}));var i=[];return e.forEach((function(e){var t=r.get(e);y(!!t,"Missing entity in write response for "+e),i.push(t)})),i}))},e.prototype.Bf=function(e,t){var n=this;return this.credentials.getToken().then((function(r){return n.connection.Bf(e,t,r)})).catch((function(e){throw e.code===T.UNAUTHENTICATED&&n.credentials.I(),e}))},e.prototype.Mf=function(e,t){var n=this;return this.credentials.getToken().then((function(r){return n.connection.Mf(e,t,r)})).catch((function(e){throw e.code===T.UNAUTHENTICATED&&n.credentials.I(),e}))},e}(),ti=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];U("FieldPath",e,"fieldNames",1);for(var n=0;n<e.length;++n)if(z("FieldPath","string",n,e[n]),0===e[n].length)throw new x(T.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.Qf=new de(e)}return e.documentId=function(){return e.Gf},e.prototype.isEqual=function(t){if(!(t instanceof e))throw te("isEqual","FieldPath",1,t);return this.Qf.isEqual(t.Qf)},e.Gf=new e(de.st().nt()),e}(),ni=new RegExp("[~\\*/\\[\\]]"),ri=function(){function e(e){this.Wf=e}return e.delete=function(){return B("FieldValue.delete",arguments),ii.instance},e.serverTimestamp=function(){return B("FieldValue.serverTimestamp",arguments),oi.instance},e.arrayUnion=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F("FieldValue.arrayUnion",arguments,1),new ai(e)},e.arrayRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F("FieldValue.arrayRemove",arguments,1),new si(e)},e.increment=function(e){return z("FieldValue.increment","number",1,e),Y("FieldValue.increment",arguments,1),new li(e)},e.prototype.isEqual=function(e){return this===e},e}(),ii=function(e){function t(){return e.call(this,"FieldValue.delete")||this}return o.__extends(t,e),t.instance=new t,t}(ri),oi=function(e){function t(){return e.call(this,"FieldValue.serverTimestamp")||this}return o.__extends(t,e),t.instance=new t,t}(ri),ai=function(e){function t(t){var n=e.call(this,"FieldValue.arrayUnion")||this;return n.zf=t,n}return o.__extends(t,e),t}(ri),si=function(e){function t(t){var n=e.call(this,"FieldValue.arrayRemove")||this;return n.zf=t,n}return o.__extends(t,e),t}(ri),li=function(e){function t(t){var n=e.call(this,"FieldValue.increment")||this;return n.Kf=t,n}return o.__extends(t,e),t}(ri),ci=sn(ri,"Use FieldValue.<field>() instead."),ui=/^__.*__$/,di=function(){function e(e,t,n){this.data=e,this.un=t,this.fieldTransforms=n}return e.prototype.Hf=function(e,t){var n=[];return null!==this.un?n.push(new Pe(e,this.data,this.un,t)):n.push(new $e(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new Oe(e,this.fieldTransforms)),n},e}(),hi=function(){function e(e,t,n){this.data=e,this.un=t,this.fieldTransforms=n}return e.prototype.Hf=function(e,t){var n=[new Pe(e,this.data,this.un,t)];return this.fieldTransforms.length>0&&n.push(new Oe(e,this.fieldTransforms)),n},e}();function fi(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw g("Unexpected case for UserDataSource: "+e)}}var pi=function(){function e(e,t,n,r,i,o){this.Jf=e,this.methodName=t,this.path=n,this.Yf=r,void 0===i&&this.Xf(),this.Yf=void 0!==r&&r,this.fieldTransforms=i||[],this.un=o||[]}return e.prototype.$f=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.Jf,this.methodName,n,!1,this.fieldTransforms,this.un);return r.Zf(t),r},e.prototype.tl=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.Jf,this.methodName,n,!1,this.fieldTransforms,this.un);return r.Xf(),r},e.prototype.nl=function(t){return new e(this.Jf,this.methodName,null,!0,this.fieldTransforms,this.un)},e.prototype.il=function(e){var t=null===this.path||this.path.J()?"":" (found in field "+this.path.toString()+")";return new x(T.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.un.find((function(t){return e.$(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.$(t.field)}))},e.prototype.Xf=function(){if(null!==this.path)for(var e=0;e<this.path.length;e++)this.Zf(this.path.get(e))},e.prototype.Zf=function(e){if(0===e.length)throw this.il("Document fields must not be empty");if(fi(this.Jf)&&ui.test(e))throw this.il('Document fields cannot begin and end with "__"')},e}(),mi=function(e,t){this.s=e,this.key=t},vi=function(){function e(e){this.el=e}return e.prototype.rl=function(e,t){var n=new pi(0,e,de.et);yi("Data must be an object, but it was:",n,t);var r=this.ul(t,n);return new di(r,null,n.fieldTransforms)},e.prototype.sl=function(e,t,n){var r=new pi(2,e,de.et);yi("Data must be an object, but it was:",r,t);var i,o,a=this.ul(t,r);if(n){for(var s=new ge(de.G),l=0,c=n;l<c.length;l++){var u=c[l],d=void 0;if(u instanceof ti)d=u.Qf;else{if("string"!=typeof u)throw g("Expected stringOrFieldPath to be a string or a FieldPath");d=_i(e,u)}if(!r.contains(d))throw new x(T.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");s=s.add(d)}i=Ee.Jt(s),o=r.fieldTransforms.filter((function(e){return i.Xt(e.field)}))}else i=Ee.Yt(r.un),o=r.fieldTransforms;return new di(a,i,o)},e.prototype.ol=function(e,t){var n=this,r=new pi(1,e,de.et);yi("Data must be an object, but it was:",r,t);var i=new ge(de.G),o=Ge.vn();R(t,(function(t,a){var s=_i(e,t),l=r.tl(s);if((a=n.hl(a,l))instanceof ii)i=i.add(s);else{var c=n.ul(a,l);null!=c&&(i=i.add(s),o.set(s,c))}}));var a=Ee.Jt(i);return new hi(o.cn(),a,r.fieldTransforms)},e.prototype.cl=function(e,t,n,r){var i=new pi(1,e,de.et),o=[bi(e,t)],a=[n];if(r.length%2!=0)throw new x(T.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)o.push(bi(e,r[s])),a.push(r[s+1]);var l=new ge(de.G),c=Ge.vn();for(s=0;s<o.length;++s){var u=o[s],d=i.tl(u),h=this.hl(a[s],d);if(h instanceof ii)l=l.add(u);else{var f=this.ul(h,d);null!=f&&(l=l.add(u),c.set(u,f))}}var p=Ee.Jt(l);return new hi(c.cn(),p,i.fieldTransforms)},e.prototype.al=function(e,t,n){void 0===n&&(n=!1);var r=new pi(n?4:3,e,de.et),i=this.ul(t,r);return y(null!=i,"Parsed data should not be null."),y(0===r.fieldTransforms.length,"Field transforms should have been disallowed."),i},e.prototype.hl=function(e,t){try{return this.el(e)}catch(e){var n=wi(e);throw t.il(n)}},e.prototype.ul=function(e,t){if(gi(e=this.hl(e,t)))return yi("Unsupported field value:",t,e),this.fl(e,t);if(e instanceof ri)return this.ll(e,t),null;if(t.path&&t.un.push(t.path),e instanceof Array){if(t.Yf&&4!==t.Jf)throw t.il("Nested arrays are not supported");return this.dl(e,t)}return this.vl(e,t)},e.prototype.fl=function(e,t){var n=this,r=new fe(_);return j(e)?t.path&&t.path.length>0&&t.un.push(t.path):R(e,(function(e,i){var o=n.ul(i,t.$f(e));null!=o&&(r=r.lt(e,o))})),new Ge(r)},e.prototype.dl=function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var a=o[i],s=this.ul(a,t.nl(r));null==s&&(s=Ne.yn),n.push(s),r++}return new Je(n)},e.prototype.ll=function(e,t){if(!fi(t.Jf))throw t.il(e.Wf+"() can only be used with update() and set()");if(null===t.path)throw t.il(e.Wf+"() is not currently supported inside arrays");if(e instanceof ii){if(2!==t.Jf)throw 1===t.Jf?(y(t.path.length>0,"FieldValue.delete() at the top level should have already been handled."),t.il("FieldValue.delete() can only appear at the top level of your update data")):t.il("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.un.push(t.path)}else if(e instanceof oi)t.fieldTransforms.push(new Ce(t.path,be.instance));else if(e instanceof ai){var n=this.wl(e.Wf,e.zf),r=new _e(n);t.fieldTransforms.push(new Ce(t.path,r))}else if(e instanceof si){n=this.wl(e.Wf,e.zf);var i=new we(n);t.fieldTransforms.push(new Ce(t.path,i))}else if(e instanceof li){var o=this.al("FieldValue.increment",e.Kf),a=new ke(o);t.fieldTransforms.push(new Ce(t.path,a))}else g("Unknown FieldValue type: "+e)},e.prototype.vl=function(e,t){if(null===e)return Ne.yn;if("number"==typeof e)return rt(e)?new Ye(e):new Fe(e);if("boolean"==typeof e)return Re.of(e);if("string"==typeof e)return new He(e);if(e instanceof Date)return new Ue(ae.fromDate(e));if(e instanceof ae)return new Ue(new ae(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)));if(e instanceof oe)return new We(e);if(e instanceof un)return new Ve(e);if(e instanceof mi)return new qe(e.s,e.key);throw t.il("Unsupported field value: "+Q(e))},e.prototype.wl=function(e,t){var n=this;return t.map((function(t,r){var i=new pi(3,e,de.et);return n.ul(t,i.nl(r))}))},e}();function gi(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof ae||e instanceof oe||e instanceof un||e instanceof mi||e instanceof ri)}function yi(e,t,n){if(!gi(n)||!X(n)){var r=Q(n);throw"an object"===r?t.il(e+" a custom object"):t.il(e+" "+r)}}function bi(e,t){if(t instanceof ti)return t.Qf;if("string"==typeof t)return _i(e,t);throw new x(T.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function _i(e,t){try{return function(e){if(e.search(ni)>=0)throw new x(T.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(ti.bind.apply(ti,o.__spreadArrays([void 0],e.split("."))))}catch(t){throw new x(T.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t).Qf}catch(t){var n=wi(t);throw new x(T.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function wi(e){return e instanceof Error?e.message:e.toString()}var ki=function(){function e(e){this.ml=e,this.pl=It(),this.mutations=[],this.gl=!1,this.bl=null,this.yl=new Set}return e.prototype.lookup=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){switch(r.label){case 0:if(this._l(),this.mutations.length>0)throw new x(T.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,this.ml.lookup(e)];case 1:return(t=r.sent()).forEach((function(e){e instanceof Ze||e instanceof Qe?n.Il(e):g("Document in a transaction was a "+e.constructor.name)})),[2,t]}}))}))},e.prototype.set=function(e,t){this.write(t.Hf(e,this.in(e))),this.yl.add(e)},e.prototype.update=function(e,t){try{this.write(t.Hf(e,this.Tl(e)))}catch(e){this.bl=e}this.yl.add(e)},e.prototype.delete=function(e){this.write([new Le(e,this.in(e))]),this.yl.add(e)},e.prototype.commit=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t=this;return o.__generator(this,(function(n){switch(n.label){case 0:if(this._l(),this.bl)throw this.bl;return e=this.pl,this.mutations.forEach((function(t){e=e.remove(t.key)})),e.forEach((function(e,n){t.mutations.push(new Ae(e,t.in(e)))})),[4,this.ml.commit(this.mutations)];case 1:return n.sent(),this.gl=!0,[2]}}))}))},e.prototype.Il=function(e){var t;if(e instanceof Qe)t=e.version;else{if(!(e instanceof Ze))throw g("Document in a transaction was a "+e.constructor.name);t=se.q()}var n=this.pl.get(e.key);if(null!==n){if(!t.isEqual(n))throw new x(T.ABORTED,"Document version changed between two reads.")}else this.pl=this.pl.lt(e.key,t)},e.prototype.in=function(e){var t=this.pl.get(e);return!this.yl.has(e)&&t?xe.updateTime(t):xe.NONE},e.prototype.Tl=function(e){var t=this.pl.get(e);if(!this.yl.has(e)&&t){if(t.isEqual(se.q()))throw new x(T.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return xe.updateTime(t)}return xe.exists(!0)},e.prototype.write=function(e){this._l(),this.mutations=this.mutations.concat(e)},e.prototype._l=function(){y(!this.gl,"A transaction object cannot be used after its update callback has been invoked.")},e}(),Si=function(){function e(e,t){this.Qr=e,this.El=t,this.state="Unknown",this.Dl=0,this.Sl=null,this.Rl=!0}return e.prototype.Cl=function(){var e=this;0===this.Dl&&(this.Al("Unknown"),y(null===this.Sl,"onlineStateTimer shouldn't be started yet"),this.Sl=this.Qr.fu("online_state_timeout",1e4,(function(){return e.Sl=null,y("Unknown"===e.state,"Timer should be canceled if we transitioned to a different state."),e.Pl("Backend didn't respond within 10 seconds."),e.Al("Offline"),Promise.resolve()})))},e.prototype.kl=function(e){"Online"===this.state?(this.Al("Unknown"),y(0===this.Dl,"watchStreamFailures must be 0"),y(null===this.Sl,"onlineStateTimer must be null")):(this.Dl++,this.Dl>=1&&(this.Nl(),this.Pl("Connection failed 1 times. Most recent error: "+e.toString()),this.Al("Offline")))},e.prototype.set=function(e){this.Nl(),this.Dl=0,"Online"===e&&(this.Rl=!1),this.Al(e)},e.prototype.Al=function(e){e!==this.state&&(this.state=e,this.El(e))},e.prototype.Pl=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\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.Rl?(m(t),this.Rl=!1):p("OnlineStateTracker",t)},e.prototype.Nl=function(){null!==this.Sl&&(this.Sl.cancel(),this.Sl=null)},e}(),Ei=function(){function e(e,t,n,r,i){var a=this;this.zh=e,this.ml=t,this.Ol=[],this.Fl={},this.Vl=null,this.networkEnabled=!1,this.isPrimary=!1,this.Ul=i,this.Ul.xl((function(e){n.$r((function(){return o.__awaiter(a,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.jl()?(p("RemoteStore","Restarting streams for network reachability change."),[4,this.Ll()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))})),this.ql=new Si(n,r),this.Bl=this.ml.qf({Af:this.Ml.bind(this),Ef:this.Ql.bind(this),kf:this.Gl.bind(this)}),this.Wl=this.ml.Lf({Af:this.zl.bind(this),Ef:this.Kl.bind(this),xf:this.Hl.bind(this),Uf:this.Uf.bind(this)})}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.enableNetwork=function(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!0,this.jl()?(e=this.Wl,[4,this.zh.Vs()]):[3,3];case 1:return e.lastStreamToken=t.sent(),this.Jl()?this.Yl():this.ql.set("Unknown"),[4,this.Xl()];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.disableNetwork=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this.$l()];case 1:return e.sent(),this.ql.set("Offline"),[2]}}))}))},e.prototype.$l=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return[4,this.Wl.stop()];case 1:return e.sent(),[4,this.Bl.stop()];case 2:return e.sent(),this.Ol.length>0&&(p("RemoteStore","Stopping write stream with "+this.Ol.length+" pending writes"),this.Ol=[]),this.Zl(),[2]}}))}))},e.prototype.shutdown=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return p("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.$l()];case 1:return e.sent(),this.Ul.shutdown(),this.ql.set("Unknown"),[2]}}))}))},e.prototype.listen=function(e){I(this.Fl,e.targetId)||(this.Fl[e.targetId]=e,this.Jl()?this.Yl():this.Bl.mf()&&this.td(e))},e.prototype.nd=function(e){y(I(this.Fl,e),"unlisten called on target no currently watched: "+e),delete this.Fl[e],this.Bl.mf()&&this.ed(e),j(this.Fl)&&(this.Bl.mf()?this.Bl.bf():this.jl()&&this.ql.set("Unknown"))},e.prototype.ye=function(e){return this.Fl[e]||null},e.prototype.be=function(e){return this.rd.be(e)},e.prototype.td=function(e){this.Vl.Xi(e.targetId),this.Bl.watch(e)},e.prototype.ed=function(e){this.Vl.Xi(e),this.Bl.Nf(e)},e.prototype.Yl=function(){y(this.Jl(),"startWatchStream() called when shouldStartWatchStream() is false."),this.Vl=new Gt(this),this.Bl.start(),this.ql.Cl()},e.prototype.Jl=function(){return this.jl()&&!this.Bl.wf()&&!j(this.Fl)},e.prototype.jl=function(){return this.isPrimary&&this.networkEnabled},e.prototype.Zl=function(){this.Vl=null},e.prototype.Ml=function(){return o.__awaiter(this,void 0,void 0,(function(){var e=this;return o.__generator(this,(function(t){return N(this.Fl,(function(t,n){e.td(n)})),[2]}))}))},e.prototype.Ql=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){return void 0===e&&y(!this.Jl(),"Watch stream was stopped gracefully while still needed."),this.Zl(),this.Jl()?(this.ql.kl(e),this.Yl()):this.ql.set("Unknown"),[2]}))}))},e.prototype.Gl=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:return this.ql.set("Online"),e instanceof qt&&2===e.state&&e.cause?[2,this.ud(e)]:(e instanceof zt?this.Vl.ue(e):e instanceof Vt?this.Vl.de(e):(y(e instanceof qt,"Expected watchChange to be an instance of WatchTargetChange"),this.Vl.he(e)),t.isEqual(se.MIN)?[3,3]:[4,this.zh.Jo()]);case 1:return n=r.sent(),t.h(n)>=0?[4,this.sd(t)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},e.prototype.sd=function(e){var t=this;y(!e.isEqual(se.MIN),"Can't raise event for unknown SnapshotVersion");var n=this.Vl.me(e);return N(n.Si,(function(n,r){if(r.resumeToken.bn()>0){var i=t.Fl[n];i&&(t.Fl[n]=i.vi(r.resumeToken,e))}})),n.Ri.forEach((function(e){var n=t.Fl[e];if(n){t.Fl[e]=n.vi(yt.ai,n.li),t.ed(e);var r=new St(n.target,e,1,n.sequenceNumber);t.td(r)}})),this.rd.Yo(n)},e.prototype.ud=function(e){var t=this;y(!!e.cause,"Handling target error without a cause");var n=e.cause,r=Promise.resolve();return e.targetIds.forEach((function(e){r=r.then((function(){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(t){return I(this.Fl,e)?(delete this.Fl[e],this.Vl.removeTarget(e),[2,this.rd.od(e,n)]):[2]}))}))}))})),r},e.prototype.Xl=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t;return o.__generator(this,(function(n){switch(n.label){case 0:return this.hd()?(e=this.Ol.length>0?this.Ol[this.Ol.length-1].batchId:-1,[4,this.zh.sh(e)]):[3,4];case 1:return null!==(t=n.sent())?[3,2]:(0===this.Ol.length&&this.Wl.bf(),[3,4]);case 2:return this.ad(t),[4,this.Xl()];case 3:n.sent(),n.label=4;case 4:return this.fd()&&this.ld(),[2]}}))}))},e.prototype.hd=function(){return this.jl()&&this.Ol.length<10},e.prototype.dd=function(){return this.Ol.length},e.prototype.ad=function(e){y(this.hd(),"addToWritePipeline called when pipeline is full"),this.Ol.push(e),this.Wl.mf()&&this.Wl.Ff&&this.Wl.Vf(e.mutations)},e.prototype.fd=function(){return this.jl()&&!this.Wl.wf()&&this.Ol.length>0},e.prototype.ld=function(){y(this.fd(),"startWriteStream() called when shouldStartWriteStream() is false."),this.Wl.start()},e.prototype.zl=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.Wl.jf(),[2]}))}))},e.prototype.Hl=function(){var e=this;return this.zh.Us(this.Wl.lastStreamToken).then((function(){for(var t=0,n=e.Ol;t<n.length;t++){var r=n[t];e.Wl.Vf(r.mutations)}})).catch(qn)},e.prototype.Uf=function(e,t){var n=this;y(this.Ol.length>0,"Got result for empty write pipeline");var r=this.Ol.shift(),i=wn.from(r,e,t,this.Wl.lastStreamToken);return this.rd.vd(i).then((function(){return n.Xl()}))},e.prototype.Kl=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t=this;return o.__generator(this,(function(n){return void 0===e&&y(!this.fd(),"Write stream was stopped gracefully while still needed."),e&&this.Ol.length>0?[2,(this.Wl.Ff?this.wd(e):this.md(e)).then((function(){t.fd()&&t.ld()}))]:[2]}))}))},e.prototype.md=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){return Ct(e.code)?(p("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.Wl.lastStreamToken),this.Wl.lastStreamToken=yt.ai,[2,this.zh.Us(yt.ai).catch(qn)]):[2]}))}))},e.prototype.wd=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){return Ct(i=e.code)&&i!==T.ABORTED?(t=this.Ol.shift(),this.Wl.gf(),[2,this.rd.pd(t.batchId,e).then((function(){return n.Xl()}))]):[2];var i}))}))},e.prototype.gd=function(){return new ki(this.ml)},e.prototype.Ll=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this.$l()];case 1:return e.sent(),this.ql.set("Unknown"),[4,this.enableNetwork()];case 2:return e.sent(),[2]}}))}))},e.prototype.bd=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.jl()?(p("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.Ll()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.yd=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return this.isPrimary=e,e&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return t.sent(),[3,4];case 2:return e?[3,4]:[4,this.$l()];case 3:t.sent(),this.ql.set("Unknown"),t.label=4;case 4:return[2]}}))}))},e}();function Ci(e,t){return y(-1===t.indexOf("_"),"Client key cannot contain '_', but was '"+t+"'"),"firestore_clients_"+e+"_"+t}function Ti(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.l()&&(r+="_"+t.uid),r}function xi(e,t){return"firestore_targets_"+e+"_"+t}var Mi=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r,y(void 0!==r==("rejected"===n),"MutationMetadata must contain an error iff state is 'rejected'")}return e._d=function(t,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),a=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(a=new x(i.error.code,i.error.message)),o?new e(t,n,i.state,a):(m("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.Id=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),$i=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n,y(void 0!==n==("rejected"===t),"QueryTargetMetadata must contain an error iff state is 'rejected'")}return e._d=function(t,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 x(r.error.code,r.error.message)),i?new e(t,r.state,o):(m("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.Id=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),Pi=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e._d=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=jt(),a=0;i&&a<r.activeTargetIds.length;++a)i=rt(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new e(t,o):(m("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),Oi=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e._d=function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(m("SharedClientState","Failed to parse online state: "+t),null)},e}(),Li=function(){function e(){this.activeTargetIds=jt()}return e.prototype.Td=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.Ed=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.Id=function(){var e={activeTargetIds:this.activeTargetIds.tt(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),Ai=function(){function e(t,n,r,i,o){if(this.Lc=t,this.platform=n,this.persistenceKey=r,this.Dd=i,this.rd=null,this.El=null,this.jr=null,this.Sd={},this.Rd=this.Cd.bind(this),this.Co=!1,this.Ad=[],!e.cs(this.platform))throw new x(T.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.Pd=Ci(this.persistenceKey,this.Dd),this.kd=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.Sd[this.Dd]=new Li,this.Nd=new RegExp("^firestore_clients_"+a+"_([^_]*)$"),this.Od=new RegExp("^firestore_mutations_"+a+"_(\\d+)(?:_(.*))?$"),this.Fd=new RegExp("^firestore_targets_"+a+"_(\\d+)$"),this.Vd=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Rd)}return e.cs=function(e){return!(!e.window||null==e.window.localStorage)},e.prototype.start=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,s,l,c,u,d,h=this;return o.__generator(this,(function(o){switch(o.label){case 0:return y(!this.Co,"WebStorageSharedClientState already started"),y(null!==this.rd,"syncEngine property must be set before calling start()"),y(null!==this.El,"onlineStateHandler property must be set before calling start()"),[4,this.rd.gh()];case 1:for(e=o.sent(),t=0,n=e;t<n.length;t++)(r=n[t])!==this.Dd&&(i=this.getItem(Ci(this.persistenceKey,r)))&&(a=Pi._d(r,i))&&(this.Sd[a.clientId]=a);for(this.Ud(),(s=this.storage.getItem(this.Vd))&&(l=this.xd(s))&&this.jd(l),c=0,u=this.Ad;c<u.length;c++)d=u[c],this.Cd(d);return this.Ad=[],this.platform.window.addEventListener("unload",(function(){return h.shutdown()})),this.Co=!0,[2]}}))}))},e.prototype.Br=function(e){this.setItem(this.kd,JSON.stringify(e))},e.prototype.Ld=function(){var e=jt();return R(this.Sd,(function(t,n){e=e.Mt(n.activeTargetIds)})),e},e.prototype.qd=function(e){for(var t in this.Sd)if(this.Sd.hasOwnProperty(t)&&this.Sd[t].activeTargetIds.has(e))return!0;return!1},e.prototype.Bd=function(e){this.Md(e,"pending")},e.prototype.Qd=function(e,t,n){this.Md(e,t,n),this.Gd(e)},e.prototype.Wd=function(e){var t="not-current";if(this.qd(e)){var n=this.storage.getItem(xi(this.persistenceKey,e));if(n){var r=$i._d(e,n);r&&(t=r.state)}}return this.zd.Td(e),this.Ud(),t},e.prototype.Kd=function(e){this.zd.Ed(e),this.Ud()},e.prototype.Hd=function(e){return this.zd.activeTargetIds.has(e)},e.prototype.Jd=function(e){this.removeItem(xi(this.persistenceKey,e))},e.prototype.Yd=function(e,t,n){this.Xd(e,t,n)},e.prototype.Lo=function(e,t,n){var r=this;t.forEach((function(e){r.Gd(e)})),this.currentUser=e,n.forEach((function(e){r.Bd(e)}))},e.prototype.$d=function(e){this.Zd(e)},e.prototype.shutdown=function(){this.Co&&(this.platform.window.removeEventListener("storage",this.Rd),this.removeItem(this.Pd),this.Co=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return p("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){p("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){p("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.Cd=function(e){var t=this;if(e.storageArea===this.storage){if(p("SharedClientState","EVENT",e.key,e.newValue),e.key===this.Pd)return void m("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Lc.$r((function(){return o.__awaiter(t,void 0,void 0,(function(){var t,n,r,i,a,s;return o.__generator(this,(function(o){if(!this.Co)return this.Ad.push(e),[2];if(null===e.key)return[2];if(this.Nd.test(e.key)){if(null==e.newValue)return n=this.tv(e.key),[2,this.nv(n,null)];if(t=this.iv(e.key,e.newValue))return[2,this.nv(t.clientId,t)]}else if(this.Od.test(e.key)){if(null!==e.newValue&&(r=this.ev(e.key,e.newValue)))return[2,this.rv(r)]}else if(this.Fd.test(e.key)){if(null!==e.newValue&&(i=this.uv(e.key,e.newValue)))return[2,this.sv(i)]}else if(e.key===this.Vd){if(null!==e.newValue&&(a=this.xd(e.newValue)))return[2,this.jd(a)]}else e.key===this.kd&&(y(!!this.jr,"Missing sequenceNumberHandler"),(s=function(e){var t=hn.Mr;if(null!=e)try{var n=JSON.parse(e);y("number"==typeof n,"Found non-numeric sequence number"),t=n}catch(e){m("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(e.newValue))!==hn.Mr&&this.jr(s));return[2]}))}))}))}},Object.defineProperty(e.prototype,"zd",{get:function(){return this.Sd[this.Dd]},enumerable:!0,configurable:!0}),e.prototype.Ud=function(){this.setItem(this.Pd,this.zd.Id())},e.prototype.Md=function(e,t,n){var r=new Mi(this.currentUser,e,t,n),i=Ti(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Id())},e.prototype.Gd=function(e){var t=Ti(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.Zd=function(e){var t={clientId:this.Dd,onlineState:e};this.storage.setItem(this.Vd,JSON.stringify(t))},e.prototype.Xd=function(e,t,n){var r=xi(this.persistenceKey,e),i=new $i(e,t,n);this.setItem(r,i.Id())},e.prototype.tv=function(e){var t=this.Nd.exec(e);return t?t[1]:null},e.prototype.iv=function(e,t){var n=this.tv(e);return y(null!==n,"Cannot parse client state key '"+e+"'"),Pi._d(n,t)},e.prototype.ev=function(e,t){var n=this.Od.exec(e);y(null!==n,"Cannot parse mutation batch key '"+e+"'");var r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return Mi._d(new C(i),r,t)},e.prototype.uv=function(e,t){var n=this.Fd.exec(e);y(null!==n,"Cannot parse query target key '"+e+"'");var r=Number(n[1]);return $i._d(r,t)},e.prototype.xd=function(e){return Oi._d(e)},e.prototype.rv=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){return e.user.uid!==this.currentUser.uid?(p("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2]):[2,this.rd.ov(e.batchId,e.state,e.error)]}))}))},e.prototype.sv=function(e){return this.rd.hv(e.targetId,e.state,e.error)},e.prototype.nv=function(e,t){var n=this,r=this.Ld();t?this.Sd[e]=t:delete this.Sd[e];var i=this.Ld(),a=[],s=[];return i.forEach((function(e){return o.__awaiter(n,void 0,void 0,(function(){return o.__generator(this,(function(t){return r.has(e)||a.push(e),[2]}))}))})),r.forEach((function(e){return o.__awaiter(n,void 0,void 0,(function(){return o.__generator(this,(function(t){return i.has(e)||s.push(e),[2]}))}))})),this.rd.cv(a,s)},e.prototype.jd=function(e){this.Sd[e.clientId]&&this.El(e.onlineState)},e}(),Ii=function(){function e(){this.av=new Li,this.fv={},this.rd=null,this.El=null,this.jr=null}return e.prototype.Bd=function(e){},e.prototype.Qd=function(e,t,n){},e.prototype.Wd=function(e){return this.av.Td(e),this.fv[e]||"not-current"},e.prototype.Yd=function(e,t,n){this.fv[e]=t},e.prototype.Kd=function(e){this.av.Ed(e)},e.prototype.Hd=function(e){return this.av.activeTargetIds.has(e)},e.prototype.Jd=function(e){delete this.fv[e]},e.prototype.Ld=function(){return this.av.activeTargetIds},e.prototype.qd=function(e){return this.av.activeTargetIds.has(e)},e.prototype.start=function(){return this.av=new Li,Promise.resolve()},e.prototype.Lo=function(e,t,n){},e.prototype.$d=function(e){},e.prototype.shutdown=function(){},e.prototype.Br=function(e){},e}(),Di=function(e){this.key=e},Ni=function(e){this.key=e},Ri=function(){function e(e,t){this.query=e,this.lv=t,this.dv=null,this.Ni=!1,this.vv=Nt(),this.Ii=Nt(),this.wv=new Bt(e.Xn.bind(e))}return Object.defineProperty(e.prototype,"mv",{get:function(){return this.lv},enumerable:!0,configurable:!0}),e.prototype.pv=function(e,t){var n=this,r=t?t.gv:new Yt,i=t?t.wv:this.wv,o=t?t.Ii:this.Ii,a=i,s=!1,l=this.query.ii()&&i.size===this.query.limit?i.last():null,c=this.query.ei()&&i.size===this.query.limit?i.first():null;if(e.pt((function(e,t){var u=i.get(e),d=t instanceof Qe?t:null;d&&(y(e.isEqual(d.key),"Mismatching keys found in document changes: "+e+" != "+d.key),d=n.query.matches(d)?d:null);var h=!!u&&n.Ii.has(u.key),f=!!d&&(d.en||n.Ii.has(d.key)&&d.hasCommittedMutations),p=!1;u&&d?u.data().isEqual(d.data())?h!==f&&(r.track({type:3,doc:d}),p=!0):n.bv(u,d)||(r.track({type:2,doc:d}),p=!0,(l&&n.query.Xn(d,l)>0||c&&n.query.Xn(d,c)<0)&&(s=!0)):!u&&d?(r.track({type:0,doc:d}),p=!0):u&&!d&&(r.track({type:1,doc:u}),p=!0,(l||c)&&(s=!0)),p&&(d?(a=a.add(d),o=f?o.add(e):o.delete(e)):(a=a.delete(e),o=o.delete(e)))})),this.query.ii()||this.query.ei())for(;a.size>this.query.limit;){var u=this.query.ii()?a.last():a.first();a=a.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return y(!s||!t,"View was refilled using docs that themselves needed refilling."),{wv:a,gv:r,Pa:s,Ii:o}},e.prototype.bv=function(e,t){return e.en&&t.hasCommittedMutations&&!t.en},e.prototype.es=function(e,t,n){var r=this;y(!e.Pa,"Cannot apply changes that need a refill");var i=this.wv;this.wv=e.wv,this.Ii=e.Ii;var o=e.gv.yi();o.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return g("Unknown ChangeType: "+e)}};return n(e)-n(t)}(e.type,t.type)||r.query.Xn(e.doc,t.doc)})),this.yv(n);var a=t?this._v():[],s=0===this.vv.size&&this.Ni?1:0,l=s!==this.dv;return this.dv=s,0!==o.length||l?{snapshot:new Ft(this.query,e.wv,i,o,e.Ii,0===s,l,!1),Iv:a}:{Iv:a}},e.prototype.Tv=function(e){return this.Ni&&"Offline"===e?(this.Ni=!1,this.es({wv:this.wv,gv:new Yt,Ii:this.Ii,Pa:!1},!1)):{Iv:[]}},e.prototype.Ev=function(e){return!this.lv.has(e)&&!!this.wv.has(e)&&!this.wv.get(e).en},e.prototype.yv=function(e){var t=this;e&&(e.Oi.forEach((function(e){return t.lv=t.lv.add(e)})),e.Fi.forEach((function(e){return y(t.lv.has(e),"Modified document "+e+" not found in view.")})),e.Vi.forEach((function(e){return t.lv=t.lv.delete(e)})),this.Ni=e.Ni)},e.prototype._v=function(){var e=this;if(!this.Ni)return[];var t=this.vv;this.vv=Nt(),this.wv.forEach((function(t){e.Ev(t.key)&&(e.vv=e.vv.add(t.key))}));var n=[];return t.forEach((function(t){e.vv.has(t)||n.push(new Ni(t))})),this.vv.forEach((function(e){t.has(e)||n.push(new Di(e))})),n},e.prototype.Dv=function(e){this.lv=e.mh,this.vv=Nt();var t=this.pv(e.documents);return this.es(t,!0)},e.prototype.Sv=function(){return Ft.Di(this.query,this.wv,this.Ii,0===this.dv)},e}(),ji=function(){function e(e,t,n,r){this.Qr=e,this.Rv=t,this.updateFunction=n,this.Kr=r,this.Cv=5,this.vf=new Jr(this.Qr,"retry_transaction")}return e.prototype.run=function(){this.Av()},e.prototype.Av=function(){var e=this;this.vf.hf((function(){return o.__awaiter(e,void 0,void 0,(function(){var e,t,n=this;return o.__generator(this,(function(r){return e=this.Rv.gd(),(t=this.Pv(e))&&t.then((function(t){n.Qr.$r((function(){return e.commit().then((function(){n.Kr.resolve(t)})).catch((function(e){n.kv(e)}))}))})).catch((function(e){n.kv(e)})),[2]}))}))}))},e.prototype.Pv=function(e){try{var t=this.updateFunction(e);return!tt(t)&&t.catch&&t.then?t:(this.Kr.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.Kr.reject(e),null}},e.prototype.kv=function(e){var t=this;this.Cv>0&&this.Nv(e)?(this.Cv-=1,this.Qr.$r((function(){return t.Av(),Promise.resolve()}))):this.Kr.reject(e)},e.prototype.Nv=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Ct(t)}return!1},e}(),Bi=function(e,t,n){this.query=e,this.targetId=t,this.view=n},Yi=function(e){this.key=e,this.Ov=!1},Fi=function(){function e(e,t,n,r){this.zh=e,this.Rv=t,this.Fv=n,this.currentUser=r,this.Vv=null,this.Uv=new En((function(e){return e.canonicalId()})),this.xv={},this.jv=new fe(he.G),this.Lv={},this.qv=new kn,this.Bv={},this.Mv=new Map,this.Qv=Hn.uo(),this.isPrimary=void 0,this.onlineState="Unknown"}return Object.defineProperty(e.prototype,"Gv",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),e.prototype.subscribe=function(e){y(null!==e,"SyncEngine listener cannot be null"),y(null===this.Vv,"SyncEngine already has a subscriber."),this.Vv=e},e.prototype.listen=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return this.Wv("listen()"),(r=this.Uv.get(e))?(t=r.targetId,this.Fv.Wd(t),n=r.view.Sv(),[3,4]):[3,1];case 1:return[4,this.zh.hh(e.Yn())];case 2:return i=o.sent(),a=this.Fv.Wd(i.targetId),t=i.targetId,[4,this.zv(e,t,"current"===a)];case 3:n=o.sent(),this.isPrimary&&this.Rv.listen(i),o.label=4;case 4:return this.Vv.kf([n]),[2,t]}}))}))},e.prototype.zv=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var r,i,a,s,l,c;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,this.zh.vh(e,!0)];case 1:return r=o.sent(),i=new Ri(e,r.mh),a=i.pv(r.documents),s=Ut.ki(t,n&&"Offline"!==this.onlineState),y(0===(l=i.es(a,!0===this.isPrimary,s)).Iv.length,"View returned limbo docs before target ack from the server."),y(!!l.snapshot,"applyChanges for new view should always return a snapshot"),c=new Bi(e,t,i),this.Uv.set(e,c),this.xv[t]||(this.xv[t]=[]),this.xv[t].push(e),[2,l.snapshot]}}))}))},e.prototype.Kv=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,this.zh.vh(e.query,!0)];case 1:return t=r.sent(),n=e.view.Dv(t),this.isPrimary&&this.Hv(e.targetId,n.Iv),[2,n]}}))}))},e.prototype.nd=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r=this;return o.__generator(this,(function(i){switch(i.label){case 0:return this.Wv("unlisten()"),y(!!(t=this.Uv.get(e)),"Trying to unlisten on query not found:"+e),(n=this.xv[t.targetId]).length>1?(this.xv[t.targetId]=n.filter((function(t){return!t.isEqual(e)})),this.Uv.delete(e),[2]):this.isPrimary?(this.Fv.Kd(t.targetId),this.Fv.qd(t.targetId)?[3,2]:[4,this.zh.dh(t.targetId,!1).then((function(){r.Fv.Jd(t.targetId),r.Rv.nd(t.targetId),r.Jv(t.targetId)})).catch(qn)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.Jv(t.targetId),[4,this.zh.dh(t.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.write=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:return this.Wv("write()"),[4,this.zh.Qo(e)];case 1:return n=r.sent(),this.Fv.Bd(n.batchId),this.Yv(n.batchId,t),[4,this.Xv(n.Ku)];case 2:return r.sent(),[4,this.Rv.Xl()];case 3:return r.sent(),[2]}}))}))},e.prototype.runTransaction=function(e,t,n){new ji(e,this.Rv,t,n).run()},e.prototype.Yo=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(r){switch(r.label){case 0:this.Wv("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.zh.Yo(e)];case 2:return t=r.sent(),R(e.Si,(function(e,t){var r=n.Lv[Number(e)];r&&(y(t.Oi.size+t.Fi.size+t.Vi.size<=1,"Limbo resolution for single document contains multiple changes."),t.Oi.size>0?r.Ov=!0:t.Fi.size>0?y(r.Ov,"Received change for limbo target document without add."):t.Vi.size>0&&(y(r.Ov,"Received remove for limbo target document without add."),r.Ov=!1))})),[4,this.Xv(t,e)];case 3:return r.sent(),[3,6];case 4:return[4,qn(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.Tv=function(e,t){if(this.isPrimary&&0===t||!this.isPrimary&&1===t){this.Wv("applyOnlineStateChange()");var n=[];this.Uv.forEach((function(t,r){var i=r.view.Tv(e);y(0===i.Iv.length,"OnlineState should not affect limbo documents."),i.snapshot&&n.push(i.snapshot)})),this.Vv.$v(e),this.Vv.kf(n),this.onlineState=e,this.isPrimary&&this.Fv.$d(e)}},e.prototype.od=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,r,i,a,s,l=this;return o.__generator(this,(function(o){switch(o.label){case 0:return this.Wv("rejectListens()"),this.Fv.Yd(e,"rejected",t),n=this.Lv[e],(r=n&&n.key)?(this.jv=this.jv.remove(r),delete this.Lv[e],i=(i=new fe(he.G)).lt(r,new Ze(r,se.q())),a=Nt().add(r),s=new Ht(se.MIN,{},new ge(_),i,a),[2,this.Yo(s)]):[3,1];case 1:return[4,this.zh.dh(e,!1).then((function(){return l.Jv(e,t)})).catch(qn)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},e.prototype.ov=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var r;return o.__generator(this,(function(i){switch(i.label){case 0:return this.Wv("applyBatchState()"),[4,this.zh.Go(e)];case 1:return null===(r=i.sent())?(p("SyncEngine","Cannot apply mutation batch with id: "+e),[2]):"pending"!==t?[3,3]:[4,this.Rv.Xl()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===t||"rejected"===t?(this.Zv(e,n||null),this.zh.bh(e)):g("Unknown batchState: "+t),i.label=4;case 4:return[4,this.Xv(r)];case 5:return i.sent(),[2]}}))}))},e.prototype.vd=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(r){switch(r.label){case 0:this.Wv("applySuccessfulWrite()"),t=e.batch.batchId,this.Zv(t,null),this.tw(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.zh.Os(e)];case 2:return n=r.sent(),this.Fv.Qd(t,"acknowledged"),[4,this.Xv(n)];case 3:return r.sent(),[3,6];case 4:return[4,qn(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.pd=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:this.Wv("rejectFailedWrite()"),this.Zv(e,t),this.tw(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.zh.Ho(e)];case 2:return n=r.sent(),this.Fv.Qd(e,"rejected",t),[4,this.Xv(n)];case 3:return r.sent(),[3,6];case 4:return[4,qn(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.nw=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return this.Rv.jl()||p("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.zh.Gs()];case 1:return-1===(t=r.sent())?(e.resolve(),[2]):((n=this.Mv.get(t)||[]).push(e),this.Mv.set(t,n),[2])}}))}))},e.prototype.tw=function(e){(this.Mv.get(e)||[]).forEach((function(e){e.resolve()})),this.Mv.delete(e)},e.prototype.iw=function(e){this.Mv.forEach((function(t){t.forEach((function(t){t.reject(new x(T.CANCELLED,e))}))})),this.Mv.clear()},e.prototype.Yv=function(e,t){var n=this.Bv[this.currentUser.v()];n||(n=new fe(_)),n=n.lt(e,t),this.Bv[this.currentUser.v()]=n},e.prototype.Zv=function(e,t){var n=this.Bv[this.currentUser.v()];if(n){var r=n.get(e);r&&(y(e===n.vt(),"Mutation callbacks processed out-of-order?"),t?r.reject(t):r.resolve(),n=n.remove(e)),this.Bv[this.currentUser.v()]=n}},e.prototype.Jv=function(e,t){var n=this;void 0===t&&(t=null),this.Fv.Kd(e),y(this.xv[e]&&0!==this.xv[e].length,"There are no queries mapped to target id "+e);for(var r=0,i=this.xv[e];r<i.length;r++){var o=i[r];this.Uv.delete(o),t&&this.Vv.ew(o,t)}if(delete this.xv[e],this.isPrimary){var a=this.qv.Nu(e);this.qv.Pu(e),a.forEach((function(e){n.qv.Ou(e)||n.rw(e)}))}},e.prototype.rw=function(e){var t=this.jv.get(e);null!==t&&(this.Rv.nd(t),this.jv=this.jv.remove(e),delete this.Lv[t])},e.prototype.Hv=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];i instanceof Di?(this.qv.Du(i.key,e),this.uw(i)):i instanceof Ni?(p("SyncEngine","Document no longer in limbo: "+i.key),this.qv.Ru(i.key,e),this.qv.Ou(i.key)||this.rw(i.key)):g("Unknown limbo change: "+JSON.stringify(i))}},e.prototype.uw=function(e){var t=e.key;if(!this.jv.get(t)){p("SyncEngine","New document in limbo: "+t);var n=this.Qv.next(),r=ot.jn(t.path);this.Lv[n]=new Yi(t),this.Rv.listen(new St(r.Yn(),n,2,hn.Mr)),this.jv=this.jv.lt(t,n)}},e.prototype.sw=function(){return this.jv},e.prototype.Xv=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,r,i,a=this;return o.__generator(this,(function(o){switch(o.label){case 0:return n=[],r=[],i=[],this.Uv.forEach((function(o,s){i.push(Promise.resolve().then((function(){var t=s.view.pv(e);return t.Pa?a.zh.vh(s.query,!1).then((function(e){var n=e.documents;return s.view.pv(n,t)})):t})).then((function(e){var i=t&&t.Si[s.targetId],o=s.view.es(e,!0===a.isPrimary,i);if(a.Hv(s.targetId,o.Iv),o.snapshot){a.isPrimary&&a.Fv.Yd(s.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var l=zn.Io(s.targetId,o.snapshot);r.push(l)}})))})),[4,Promise.all(i)];case 1:return o.sent(),this.Vv.kf(n),[4,this.zh.uh(r)];case 2:return o.sent(),[2]}}))}))},e.prototype.Wv=function(e){y(null!==this.Vv,"Trying to call "+e+" before calling subscribe().")},e.prototype.bd=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(r){switch(r.label){case 0:return t=!this.currentUser.isEqual(e),this.currentUser=e,t?(this.iw("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.zh.Lo(e)]):[3,3];case 1:return n=r.sent(),this.Fv.Lo(e,n.Bo,n.Mo),[4,this.Xv(n.qo)];case 2:r.sent(),r.label=3;case 3:return[4,this.Rv.bd()];case 4:return r.sent(),[2]}}))}))},e.prototype.yd=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a,s,l=this;return o.__generator(this,(function(o){switch(o.label){case 0:return!0!==e||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.Rv.yd(!0)]);case 1:return o.sent(),a=this.Fv.Ld(),[4,this.ow(a.tt())];case 2:for(t=o.sent(),n=0,r=t;n<r.length;n++)i=r[n],this.Rv.listen(i);return[3,7];case 3:return!1!==e||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,a=[],s=Promise.resolve(),N(this.xv,(function(e,t){l.Fv.Hd(e)?a.push(e):s=s.then((function(){return l.Jv(e),l.zh.dh(e,!0)})),l.Rv.nd(e)})),[4,s]);case 4:return o.sent(),[4,this.ow(a)];case 5:return o.sent(),this.hw(),[4,this.Rv.yd(!1)];case 6:o.sent(),o.label=7;case 7:return[2]}}))}))},e.prototype.hw=function(){var e=this;N(this.Lv,(function(t){e.Rv.nd(t)})),this.qv.ku(),this.Lv=[],this.jv=new fe(he.G)},e.prototype.ow=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,a,s,l,c,u,d,h,f,p;return o.__generator(this,(function(o){switch(o.label){case 0:t=[],n=[],r=0,i=e,o.label=1;case 1:return r<i.length?(a=i[r],s=void 0,(l=this.xv[a])&&0!==l.length?[4,this.zh.dh(a,!0)]:[3,8]):[3,14];case 2:return o.sent(),[4,this.zh.hh(l[0].Yn())];case 3:s=o.sent(),c=0,u=l,o.label=4;case 4:return c<u.length?(d=u[c],y(!!(h=this.Uv.get(d)),"No query view found for "+d),[4,this.Kv(h)]):[3,7];case 5:(f=o.sent()).snapshot&&n.push(f.snapshot),o.label=6;case 6:return c++,[3,4];case 7:return[3,12];case 8:return y(!0===this.isPrimary,"A secondary tab should never have an active target without an active query."),[4,this.zh.Th(a)];case 9:return y(!!(p=o.sent()),"Target for id "+a+" not found"),[4,this.zh.hh(p)];case 10:return s=o.sent(),[4,this.zv(this.cw(p),a,!1)];case 11:o.sent(),o.label=12;case 12:t.push(s),o.label=13;case 13:return r++,[3,1];case 14:return this.Vv.kf(n),[2,t]}}))}))},e.prototype.cw=function(e){return new ot(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)},e.prototype.gh=function(){return this.zh.gh()},e.prototype.hv=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var r,i;return o.__generator(this,(function(o){switch(o.label){case 0:if(this.isPrimary)return p("SyncEngine","Ignoring unexpected query state notification."),[2];if(!this.xv[e])return[3,7];switch(t){case"current":case"not-current":return[3,1];case"rejected":return[3,4]}return[3,6];case 1:return[4,this.zh.Eh()];case 2:return r=o.sent(),i=Ht.Pi(e,"current"===t),[4,this.Xv(r,i)];case 3:return o.sent(),[3,7];case 4:return[4,this.zh.dh(e,!0)];case 5:return o.sent(),this.Jv(e,n),[3,7];case 6:g("Unexpected target state: "+t),o.label=7;case 7:return[2]}}))}))},e.prototype.cv=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,r,i,a,s,l,c,u,d,h=this;return o.__generator(this,(function(f){switch(f.label){case 0:if(!this.isPrimary)return[2];n=0,r=e,f.label=1;case 1:return n<r.length?(d=r[n],y(!this.xv[d],"Trying to add an already active target"),[4,this.zh.Th(d)]):[3,6];case 2:return y(!!(i=f.sent()),"Query data for active target "+d+" not found"),[4,this.zh.hh(i)];case 3:return a=f.sent(),[4,this.zv(this.cw(i),a.targetId,!1)];case 4:f.sent(),this.Rv.listen(a),f.label=5;case 5:return n++,[3,1];case 6:s=function(e){return o.__generator(this,(function(t){switch(t.label){case 0:return l.xv[e]?[4,l.zh.dh(e,!1).then((function(){h.Rv.nd(e),h.Jv(e)})).catch(qn)]:[2,"continue"];case 1:return t.sent(),[2]}}))},l=this,c=0,u=t,f.label=7;case 7:return c<u.length?(d=u[c],[5,s(d)]):[3,10];case 8:f.sent(),f.label=9;case 9:return c++,[3,7];case 10:return[2]}}))}))},e.prototype.enableNetwork=function(){return this.zh.yh(!0),this.Rv.enableNetwork()},e.prototype.disableNetwork=function(){return this.zh.yh(!1),this.Rv.disableNetwork()},e.prototype.be=function(e){var t=this.Lv[e];if(t&&t.Ov)return Nt().add(t.key);var n=Nt(),r=this.xv[e];if(!r)return n;for(var i=0,o=r;i<o.length;i++){var a=o[i],s=this.Uv.get(a);y(!!s,"No query view found for "+a),n=n.Mt(s.view.mv)}return n},e}(),Hi=function(){this.aw=null,this.targetId=0,this.listeners=[]},Ui=function(){function e(e){this.rd=e,this.fw=new En((function(e){return e.canonicalId()})),this.onlineState="Unknown",this.lw=new Set,this.rd.subscribe(this)}return e.prototype.listen=function(e){var t=e.query,n=!1,r=this.fw.get(t);return r||(n=!0,r=new Hi,this.fw.set(t,r)),r.listeners.push(e),y(!e.Tv(this.onlineState),"applyOnlineStateChange() shouldn't raise an event for brand-new listeners."),r.aw&&e.dw(r.aw)&&this.vw(),n?this.rd.listen(t).then((function(e){return r.targetId=e,e})):Promise.resolve(r.targetId)},e.prototype.nd=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i;return o.__generator(this,(function(o){return t=e.query,n=!1,(r=this.fw.get(t))&&(i=r.listeners.indexOf(e))>=0&&(r.listeners.splice(i,1),n=0===r.listeners.length),n?(this.fw.delete(t),[2,this.rd.nd(t)]):[2]}))}))},e.prototype.kf=function(e){for(var t=!1,n=0,r=e;n<r.length;n++){var i=r[n],o=i.query,a=this.fw.get(o);if(a){for(var s=0,l=a.listeners;s<l.length;s++)l[s].dw(i)&&(t=!0);a.aw=i}}t&&this.vw()},e.prototype.ew=function(e,t){var n=this.fw.get(e);if(n)for(var r=0,i=n.listeners;r<i.length;r++)i[r].onError(t);this.fw.delete(e)},e.prototype.$v=function(e){this.onlineState=e;var t=!1;this.fw.forEach((function(n,r){for(var i=0,o=r.listeners;i<o.length;i++)o[i].Tv(e)&&(t=!0)})),t&&this.vw()},e.prototype.ww=function(e){this.lw.add(e),e.next()},e.prototype.mw=function(e){this.lw.delete(e)},e.prototype.vw=function(){this.lw.forEach((function(e){e.next()}))},e}(),zi=function(){function e(e,t,n){this.query=e,this.pw=t,this.gw=!1,this.bw=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.dw=function(e){if(y(e.docChanges.length>0||e.Ti,"We got a new snapshot with no changes?"),!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&t.push(i)}e=new Ft(e.query,e.docs,e._i,t,e.Ii,e.fromCache,e.Ti,!0)}var o=!1;return this.gw?this.yw(e)&&(this.pw.next(e),o=!0):this._w(e,this.onlineState)&&(this.Iw(e),o=!0),this.bw=e,o},e.prototype.onError=function(e){this.pw.error(e)},e.prototype.Tv=function(e){this.onlineState=e;var t=!1;return this.bw&&!this.gw&&this._w(this.bw,e)&&(this.Iw(this.bw),t=!0),t},e.prototype._w=function(e,t){if(y(!this.gw,"Determining whether to raise first event but already had first event"),!e.fromCache)return!0;var n="Offline"!==t;return this.options.Tw&&n?(y(e.fromCache,"Waiting for sync, but snapshot is not from cache"),!1):!e.docs.J()||"Offline"===t},e.prototype.yw=function(e){if(e.docChanges.length>0)return!0;var t=this.bw&&this.bw.hasPendingWrites!==e.hasPendingWrites;return!(!e.Ti&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.Iw=function(e){y(!this.gw,"Trying to raise initial events for second time"),e=Ft.Di(e.query,e.docs,e.Ii,e.fromCache),this.gw=!0,this.pw.next(e)},e}(),Vi=function(){function e(e,t){this.cacheSizeBytes=e,this.synchronizeTabs=t}return e.prototype.Xc=function(){return Jn.jh(this.cacheSizeBytes)},e}(),qi=function(){},Wi=function(){function e(e,t,n,r){this.platform=e,this.Ew=t,this.credentials=n,this.Qr=r,this.clientId=b.u()}return e.prototype.start=function(e){var t=this;this.Dw();var n=new fn,r=new fn,i=!1;return this.credentials.T((function(o){i?t.Qr.$r((function(){return t.bd(o)})):(i=!0,t.Sw(e,r,o).then((function(e){return t.Rw(o,e)})).then(n.resolve,n.reject))})),this.Qr.$r((function(){return n.promise})),r.promise},e.prototype.enableNetwork=function(){var e=this;return this.Dw(),this.Qr.enqueue((function(){return e.rd.enableNetwork()}))},e.prototype.Sw=function(e,t,n){var r=this;return e instanceof Vi?this.Cw(n,e).then((function(e){return t.resolve(),e})).catch((function(e){if(t.reject(e),!r.Aw(e))throw e;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+e),r.Pw()})):(t.resolve(),this.Pw())},e.prototype.Aw=function(e){return e instanceof x?e.code===T.FAILED_PRECONDITION||e.code===T.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code},e.prototype.Dw=function(){if(this.Qr.uu)throw new x(T.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Cw=function(e,t){var n=this,r=Rr.Ia(this.Ew),i=new on(this.Ew.s,{Te:!0});return Promise.resolve().then((function(){return o.__awaiter(n,void 0,void 0,(function(){var n,a;return o.__generator(this,(function(o){switch(o.label){case 0:if(t.synchronizeTabs&&!Ai.cs(this.platform))throw new x(T.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");return n=t.Xc(),this.Fv=t.synchronizeTabs?new Ai(this.Qr,this.platform,r,this.clientId,e):new Ii,[4,Rr.Yc({allowTabSynchronization:t.synchronizeTabs,persistenceKey:r,clientId:this.clientId,platform:this.platform,Lc:this.Qr,serializer:i,Xc:n,qc:this.Fv})];case 1:return a=o.sent(),this.persistence=a,[2,a.As.Wh]}}))}))}))},e.prototype.Pw=function(){return this.persistence=qr.Wa(this.clientId),this.Fv=new Ii,Promise.resolve(null)},e.prototype.Rw=function(e,t){var n=this;return p("FirestoreClient","Initializing. user=",e.uid),this.platform.kw(this.Ew).then((function(r){return o.__awaiter(n,void 0,void 0,(function(){var n,i,a,s,l,c,u=this;return o.__generator(this,(function(d){switch(d.label){case 0:return n=new Hr,this.zh=new Vn(this.persistence,n,e),[4,this.zh.start()];case 1:return d.sent(),t&&(this.Nw=new Xn(t,this.Qr,this.zh)),i=this.platform.Ow(),a=this.platform.Fw(this.Ew.s),s=new ei(this.Qr,r,this.credentials,a),l=function(e){return u.rd.Tv(e,0)},c=function(e){return u.rd.Tv(e,1)},this.Rv=new Ei(this.zh,s,this.Qr,l,i),this.rd=new Fi(this.zh,this.Rv,this.Fv,e),this.Fv.El=c,this.Rv.rd=this.rd,this.Fv.rd=this.rd,this.Vw=new Ui(this.rd),[4,this.Fv.start()];case 2:return d.sent(),[4,this.Rv.start()];case 3:return d.sent(),[4,this.persistence.ra((function(e){return o.__awaiter(u,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return[4,this.rd.yd(e)];case 1:return t.sent(),this.Nw&&(e&&!this.Nw.Co?this.Nw.start():e||this.Nw.stop()),[2]}}))}))}))];case 4:return d.sent(),[4,this.persistence.ua((function(){return o.__awaiter(u,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return[4,this.terminate()];case 1:return e.sent(),[2]}}))}))}))];case 5:return d.sent(),[2]}}))}))}))},e.prototype.bd=function(e){return this.Qr.du(),p("FirestoreClient","Credential Changed. Current user: "+e.uid),this.rd.bd(e)},e.prototype.disableNetwork=function(){var e=this;return this.Dw(),this.Qr.enqueue((function(){return e.rd.disableNetwork()}))},e.prototype.terminate=function(){var e=this;return this.Qr.au((function(){return o.__awaiter(e,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.Nw&&this.Nw.stop(),[4,this.Rv.shutdown()];case 1:return e.sent(),[4,this.Fv.shutdown()];case 2:return e.sent(),[4,this.persistence.shutdown()];case 3:return e.sent(),this.credentials.D(),[2]}}))}))}))},e.prototype.waitForPendingWrites=function(){var e=this;this.Dw();var t=new fn;return this.Qr.$r((function(){return e.rd.nw(t)})),t.promise},e.prototype.listen=function(e,t,n){var r=this;this.Dw();var i=new zi(e,t,n);return this.Qr.$r((function(){return r.Vw.listen(i)})),i},e.prototype.nd=function(e){var t=this;this.Uw||this.Qr.$r((function(){return t.Vw.nd(e)}))},e.prototype.xw=function(e){var t=this;return this.Dw(),this.Qr.enqueue((function(){return t.zh.oh(e)})).then((function(e){if(e instanceof Qe)return e;if(e instanceof Ze)return null;throw new x(T.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.)")}))},e.prototype.jw=function(e){var t=this;return this.Dw(),this.Qr.enqueue((function(){return o.__awaiter(t,void 0,void 0,(function(){var t,n,r;return o.__generator(this,(function(i){switch(i.label){case 0:return[4,this.zh.vh(e,!0)];case 1:return t=i.sent(),n=new Ri(e,t.mh),r=n.pv(t.documents),[2,n.es(r,!1).snapshot]}}))}))}))},e.prototype.write=function(e){var t=this;this.Dw();var n=new fn;return this.Qr.$r((function(){return t.rd.write(e,n)})),n.promise},e.prototype.s=function(){return this.Ew.s},e.prototype.ww=function(e){var t=this;this.Dw(),this.Qr.$r((function(){return t.Vw.ww(e),Promise.resolve()}))},e.prototype.mw=function(e){this.Uw||this.Vw.mw(e)},Object.defineProperty(e.prototype,"Uw",{get:function(){return this.Qr.uu},enumerable:!0,configurable:!0}),e.prototype.transaction=function(e){var t=this;this.Dw();var n=new fn;return this.Qr.$r((function(){return t.rd.runTransaction(t.Qr,e,n),Promise.resolve()})),n.promise},e}(),Gi=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.Lw(this.observer.next,e)},e.prototype.error=function(e){this.Lw(this.observer.error,e)},e.prototype.qw=function(){this.muted=!0},e.prototype.Lw=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}();function Ki(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,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}(e)}var Ji=Jn.Bh,Xi=function(){function e(e){if(void 0===e.host){if(void 0!==e.ssl)throw new x(T.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else q("settings","non-empty string","host",e.host),this.host=e.host,W("settings","boolean","ssl",e.ssl),this.ssl=D(e.ssl,!0);if(ee("settings",e,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),W("settings","object","credentials",e.credentials),this.credentials=e.credentials,W("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),!0===e.timestampsInSnapshots?m("\n  The timestampsInSnapshots setting now defaults to true and you no\n  longer need to explicitly set it. In a future release, the setting\n  will be removed entirely and so it is recommended that you remove it\n  from your firestore.settings() call now."):!1===e.timestampsInSnapshots&&m("\n  The timestampsInSnapshots setting will soon be removed. YOU MUST UPDATE\n  YOUR CODE.\n\n  To hide this warning, stop using the timestampsInSnapshots setting in your\n  firestore.settings({ ... }) call.\n\n  Once you remove the setting, Timestamps stored in Cloud Firestore will be\n  read back as Firebase Timestamp objects instead of as system Date objects.\n  So you will also need to update code expecting a Date to instead expect a\n  Timestamp. For example:\n\n  // Old:\n  const date = snapshot.get('created_at');\n  // New:\n  const timestamp = snapshot.get('created_at'); const date =\n  timestamp.toDate();\n\n  Please audit all existing usages of Date when you enable the new\n  behavior."),this.timestampsInSnapshots=D(e.timestampsInSnapshots,!0),W("settings","number","cacheSizeBytes",e.cacheSizeBytes),void 0===e.cacheSizeBytes)this.cacheSizeBytes=Jn.Qh;else{if(e.cacheSizeBytes!==Ji&&e.cacheSizeBytes<Jn.Mh)throw new x(T.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Jn.Mh);this.cacheSizeBytes=e.cacheSizeBytes}W("settings","boolean","experimentalForceLongPolling",e.experimentalForceLongPolling),this.forceLongPolling=void 0!==e.experimentalForceLongPolling&&e.experimentalForceLongPolling}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.forceLongPolling===e.forceLongPolling},e}(),Qi=function(){function e(t,n){var r=this;if(this.Bw=null,this.Mw=new mn,this.INTERNAL={delete:function(){return o.__awaiter(r,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.Qw(),[4,this.Gw.terminate()];case 1:return e.sent(),[2]}}))}))}},"object"==typeof t.options){var i=t;this.Bw=i,this.Ww=e.zw(i),this.Kw=i.name,this.Hw=new P(n)}else{var a=t;if(!a.projectId)throw new x(T.INVALID_ARGUMENT,"Must provide projectId");this.Ww=new E(a.projectId,a.database),this.Kw="[DEFAULT]",this.Hw=new $}this.Jw=new Xi({}),this.Yw=this.Xw(this.Ww)}return e.prototype.settings=function(e){if(Y("Firestore.settings",arguments,1),z("Firestore.settings","object",1,e),I(e,"persistence"))throw new x(T.INVALID_ARGUMENT,'"persistence" is now specified with a separate call to firestore.enablePersistence().');var t=new Xi(e);if(this.Gw&&!this.Jw.isEqual(t))throw new x(T.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.Jw=t,void 0!==t.credentials&&(this.Hw=A(t.credentials))},e.prototype.enableNetwork=function(){return this.Qw(),this.Gw.enableNetwork()},e.prototype.disableNetwork=function(){return this.Qw(),this.Gw.disableNetwork()},e.prototype.enablePersistence=function(e){if(this.Gw)throw new x(T.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 t=!1;return e&&(void 0!==e.experimentalTabSynchronization&&m("The 'experimentalTabSynchronization' setting has been renamed to 'synchronizeTabs'. In a future release, the setting will be removed and it is recommended that you update your firestore.enablePersistence() call to use 'synchronizeTabs'."),t=D(void 0!==e.synchronizeTabs?e.synchronizeTabs:e.experimentalTabSynchronization,!1)),this.$w(new Vi(this.Jw.cacheSizeBytes,t))},e.prototype.clearPersistence=function(){var e=this,t=Rr.Ia(this.Zw()),n=new fn;return this.Mw.su((function(){return o.__awaiter(e,void 0,void 0,(function(){var e;return o.__generator(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),void 0!==this.Gw&&!this.Gw.Uw)throw new x(T.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return[4,Rr.clearPersistence(t)];case 1:return r.sent(),n.resolve(),[3,3];case 2:return e=r.sent(),n.reject(e),[3,3];case 3:return[2]}}))}))})),n.promise},e.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(e.prototype,"tm",{get:function(){return this.Qw(),this.Gw.Uw},enumerable:!0,configurable:!0}),e.prototype.waitForPendingWrites=function(){return this.Qw(),this.Gw.waitForPendingWrites()},e.prototype.onSnapshotsInSync=function(e){if(this.Qw(),Ki(e))return this.nm(e);z("Firestore.onSnapshotsInSync","function",1,e);var t={next:e};return this.nm(t)},e.prototype.nm=function(e){var t=this,n=new Gi({next:function(){e.next&&e.next()},error:function(e){throw g("Uncaught Error in onSnapshotsInSync")}});return this.Gw.ww(n),function(){n.qw(),t.Gw.mw(n)}},e.prototype.Qw=function(){return this.Gw||this.$w(new qi),this.Gw},e.prototype.Zw=function(){return new S(this.Ww,this.Kw,this.Jw.host,this.Jw.ssl,this.Jw.forceLongPolling)},e.prototype.$w=function(e){y(!!this.Jw.host,"FirestoreSettings.host is not set"),y(!this.Gw,"configureClient() called multiple times");var t=this.Zw();return this.Gw=new Wi(an.t(),t,this.Hw,this.Mw),this.Gw.start(e)},e.prototype.Xw=function(e){return new vi((function(t){if(t instanceof to){var n=e,r=t.firestore.Ww;if(!r.isEqual(n))throw new x(T.INVALID_ARGUMENT,"Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return new mi(e,t.im)}return t}))},e.zw=function(e){var t=e.options;if(!I(t,"projectId"))throw new x(T.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var n=t.projectId;if(!n||"string"!=typeof n)throw new x(T.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new E(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.Bw)throw new x(T.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.Bw},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){return Y("Firestore.collection",arguments,1),z("Firestore.collection","non-empty string",1,e),this.Qw(),new so(ce.it(e),this)},e.prototype.doc=function(e){return Y("Firestore.doc",arguments,1),z("Firestore.doc","non-empty string",1,e),this.Qw(),to.em(ce.it(e),this)},e.prototype.collectionGroup=function(e){if(Y("Firestore.collectionGroup",arguments,1),z("Firestore.collectionGroup","non-empty string",1,e),e.indexOf("/")>=0)throw new x(T.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.Qw(),new oo(new ot(ce.et,e),this)},e.prototype.runTransaction=function(e){var t=this;return Y("Firestore.runTransaction",arguments,1),z("Firestore.runTransaction","function",1,e),this.Qw().transaction((function(n){return e(new Zi(t,n))}))},e.prototype.batch=function(){return this.Qw(),new eo(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(h()){case 0:return"debug";case 1:return"error";case 2:return"silent";default:return g("Unknown log level: "+h())}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(Y("Firestore.setLogLevel",arguments,1),z("Firestore.setLogLevel","non-empty string",1,e),e){case"debug":f(0);break;case"error":f(1);break;case"silent":f(2);break;default:throw new x(T.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype.rm=function(){return this.Jw.timestampsInSnapshots},e}(),Zi=function(){function e(e,t){this.um=e,this.sm=t}return e.prototype.get=function(e){var t=this;Y("Transaction.get",arguments,1);var n=ho("Transaction.get",e,this.um);return this.sm.lookup([n.im]).then((function(e){if(!e||1!==e.length)return g("Mismatch in docs returned from document lookup.");var r=e[0];if(r instanceof Ze)return new ro(t.um,n.im,null,!1,!1,n.om);if(r instanceof Qe)return new ro(t.um,n.im,r,!1,!1,n.om);throw g("BatchGetDocumentsRequest returned unexpected document type: "+r.constructor.name)}))},e.prototype.set=function(e,t,n){H("Transaction.set",arguments,2,3);var r=ho("Transaction.set",e,this.um);n=lo("Transaction.set",n);var i=po(r.om,t,"Transaction.set"),o=i[0],a=i[1],s=n.merge||n.mergeFields?this.um.Yw.sl(a,o,n.mergeFields):this.um.Yw.rl(a,o);return this.sm.set(r.im,s),this},e.prototype.update=function(e,t,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof t||t instanceof ti?(F("Transaction.update",arguments,3),r=ho("Transaction.update",e,this.um),i=this.um.Yw.cl("Transaction.update",t,n,o)):(Y("Transaction.update",arguments,2),r=ho("Transaction.update",e,this.um),i=this.um.Yw.ol("Transaction.update",t)),this.sm.update(r.im,i),this},e.prototype.delete=function(e){Y("Transaction.delete",arguments,1);var t=ho("Transaction.delete",e,this.um);return this.sm.delete(t.im),this},e}(),eo=function(){function e(e){this.um=e,this.hm=[],this.cm=!1}return e.prototype.set=function(e,t,n){H("WriteBatch.set",arguments,2,3),this.am();var r=ho("WriteBatch.set",e,this.um);n=lo("WriteBatch.set",n);var i=po(r.om,t,"WriteBatch.set"),o=i[0],a=i[1],s=n.merge||n.mergeFields?this.um.Yw.sl(a,o,n.mergeFields):this.um.Yw.rl(a,o);return this.hm=this.hm.concat(s.Hf(r.im,xe.NONE)),this},e.prototype.update=function(e,t,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.am(),"string"==typeof t||t instanceof ti?(F("WriteBatch.update",arguments,3),r=ho("WriteBatch.update",e,this.um),i=this.um.Yw.cl("WriteBatch.update",t,n,o)):(Y("WriteBatch.update",arguments,2),r=ho("WriteBatch.update",e,this.um),i=this.um.Yw.ol("WriteBatch.update",t)),this.hm=this.hm.concat(i.Hf(r.im,xe.exists(!0))),this},e.prototype.delete=function(e){Y("WriteBatch.delete",arguments,1),this.am();var t=ho("WriteBatch.delete",e,this.um);return this.hm=this.hm.concat(new Le(t.im,xe.NONE)),this},e.prototype.commit=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.am(),this.cm=!0,this.hm.length>0?[2,this.um.Qw().write(this.hm)]:[2]}))}))},e.prototype.am=function(){if(this.cm)throw new x(T.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),to=function(){function e(e,t,n){this.im=e,this.firestore=t,this.om=n,this.Gw=this.firestore.Qw()}return e.em=function(t,n,r){if(t.length%2!=0)throw new x(T.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.nt()+" has "+t.length);return new e(new he(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.im.path.X()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new so(this.im.path.H(),this.firestore,this.om)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.im.path.nt()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(Y("DocumentReference.collection",arguments,1),z("DocumentReference.collection","non-empty string",1,e),!e)throw new x(T.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=ce.it(e);return new so(this.im.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw te("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.im.isEqual(t.im)&&this.om===t.om},e.prototype.set=function(e,t){H("DocumentReference.set",arguments,1,2),t=lo("DocumentReference.set",t);var n=po(this.om,e,"DocumentReference.set"),r=n[0],i=n[1],o=t.merge||t.mergeFields?this.firestore.Yw.sl(i,r,t.mergeFields):this.firestore.Yw.rl(i,r);return this.Gw.write(o.Hf(this.im,xe.NONE))},e.prototype.update=function(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof e||e instanceof ti?(F("DocumentReference.update",arguments,2),n=this.firestore.Yw.cl("DocumentReference.update",e,t,r)):(Y("DocumentReference.update",arguments,1),n=this.firestore.Yw.ol("DocumentReference.update",e)),this.Gw.write(n.Hf(this.im,xe.exists(!0)))},e.prototype.delete=function(){return Y("DocumentReference.delete",arguments,0),this.Gw.write([new Le(this.im,xe.NONE)])},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];H("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof e[i]||Ki(e[i])||(ee("DocumentReference.onSnapshot",r=e[i],["includeMetadataChanges"]),W("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return Ki(e[i])?n=e[i]:(z("DocumentReference.onSnapshot","function",i,e[i]),V("DocumentReference.onSnapshot","function",i+1,e[i+1]),V("DocumentReference.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.fm(o,n)},e.prototype.fm=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Gi({next:function(e){if(t.next){y(e.docs.size<=1,"Too many documents returned on a document query");var r=e.docs.get(n.im);t.next(new ro(n.firestore,n.im,r,e.fromCache,e.hasPendingWrites,n.om))}},error:r}),o=this.Gw.listen(ot.jn(this.im.path),i,e);return function(){i.qw(),n.Gw.nd(o)}},e.prototype.get=function(e){var t=this;return H("DocumentReference.get",arguments,0,1),uo("DocumentReference.get",e),new Promise((function(n,r){e&&"cache"===e.source?t.firestore.Qw().xw(t.im).then((function(e){n(new ro(t.firestore,t.im,e,!0,e instanceof Qe&&e.en,t.om))}),r):t.lm(n,r,e)}))},e.prototype.lm=function(e,t,n){var r=this.fm({includeMetadataChanges:!0,Tw:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?t(new x(T.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?t(new x(T.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.)')):e(i)},error:t})},e.prototype.withConverter=function(t){return new e(this.im,this.firestore,t)},e}(),no=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),ro=function(){function e(e,t,n,r,i,o){this.um=e,this.im=t,this.dm=n,this.vm=r,this.wm=i,this.om=o}return e.prototype.data=function(e){if(H("DocumentSnapshot.data",arguments,0,1),e=co("DocumentSnapshot.data",e),this.dm){if(this.om){var t=new io(this.um,this.im,this.dm,this.vm,this.wm);return this.om.fromFirestore(t,e)}return this.mm(this.dm.data(),Ie.mn(e,this.um.rm()))}},e.prototype.get=function(e,t){if(H("DocumentSnapshot.get",arguments,1,2),t=co("DocumentSnapshot.get",t),this.dm){var n=this.dm.data().field(bi("DocumentSnapshot.get",e));if(null!==n)return this.pm(n,Ie.mn(t,this.um.rm()))}},Object.defineProperty(e.prototype,"id",{get:function(){return this.im.path.X()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new to(this.im,this.um,this.om)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this.dm},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new no(this.wm,this.vm)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw te("isEqual","DocumentSnapshot",1,t);return this.um===t.um&&this.vm===t.vm&&this.im.isEqual(t.im)&&(null===this.dm?null===t.dm:this.dm.isEqual(t.dm))&&this.om===t.om},e.prototype.mm=function(e,t){var n=this,r={};return e.forEach((function(e,i){r[e]=n.pm(i,t)})),r},e.prototype.pm=function(e,t){if(e instanceof Ge)return this.mm(e,t);if(e instanceof Je)return this.gm(e,t);if(e instanceof qe){var n=e.value(t),r=this.um.Qw().s();return e.s.isEqual(r)||m("Document "+this.im.path+" contains a document reference within a different database ("+e.s.projectId+"/"+e.s.database+") which is not supported. It will be treated as a reference in the current database ("+r.projectId+"/"+r.database+") instead."),new to(n,this.um,this.om)}return e.value(t)},e.prototype.gm=function(e,t){var n=this;return e.Ht.map((function(e){return n.pm(e,t)}))},e}(),io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.data=function(t){var n=e.prototype.data.call(this,t);return y(void 0!==n,"Document in a QueryDocumentSnapshot should exist"),n},t}(ro),oo=function(){function e(e,t,n){this.bm=e,this.firestore=t,this.om=n}return e.prototype.where=function(t,n,r){Y("Query.where",arguments,3),Z("Query.where",3,r);var i,o=["<","<=","==",">=",">","array-contains","in","array-contains-any"];K("Query.where",o,2,n);var a=bi("Query.where",t),s=at.it(n);if(a.ut()){if(s===at.ARRAY_CONTAINS||s===at.ARRAY_CONTAINS_ANY)throw new x(T.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+s.toString()+"' queries on FieldPath.documentId().");if(s===at.IN){this.ym(r,s);for(var l=[],c=0,u=r;c<u.length;c++){var d=u[c];l.push(this._m(d))}i=new Je(l)}else i=this._m(r)}else s!==at.IN&&s!==at.ARRAY_CONTAINS_ANY||this.ym(r,s),i=this.firestore.Yw.al("Query.where",r,s===at.IN);var h=st.create(a,s,i);return this.Im(h),new e(this.bm.Bn(h),this.firestore,this.om)},e.prototype.orderBy=function(t,n){var r;if(H("Query.orderBy",arguments,1,2),V("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r=ft.ASCENDING;else{if("desc"!==n)throw new x(T.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r=ft.DESCENDING}if(null!==this.bm.startAt)throw new x(T.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.bm.endAt)throw new x(T.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=bi("Query.orderBy",t),o=new mt(i,r);return this.Tm(o),new e(this.bm.Qn(o),this.firestore,this.om)},e.prototype.limit=function(t){return Y("Query.limit",arguments,1),z("Query.limit","number",1,t),ne("Query.limit",1,t),new e(this.bm.Gn(t),this.firestore,this.om)},e.prototype.limitToLast=function(t){return Y("Query.limitToLast",arguments,1),z("Query.limitToLast","number",1,t),ne("Query.limitToLast",1,t),new e(this.bm.Wn(t),this.firestore,this.om)},e.prototype.startAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];F("Query.startAt",arguments,1);var i=this.Em("Query.startAt",t,n,!0);return new e(this.bm.zn(i),this.firestore,this.om)},e.prototype.startAfter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];F("Query.startAfter",arguments,1);var i=this.Em("Query.startAfter",t,n,!1);return new e(this.bm.zn(i),this.firestore,this.om)},e.prototype.endBefore=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];F("Query.endBefore",arguments,1);var i=this.Em("Query.endBefore",t,n,!0);return new e(this.bm.Kn(i),this.firestore,this.om)},e.prototype.endAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];F("Query.endAt",arguments,1);var i=this.Em("Query.endAt",t,n,!1);return new e(this.bm.Kn(i),this.firestore,this.om)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw te("isEqual","Query",1,t);return this.firestore===t.firestore&&this.bm.isEqual(t.bm)},e.prototype.withConverter=function(t){return new e(this.bm,this.firestore,t)},e.prototype.Em=function(e,t,n,r){if(Z(e,1,t),t instanceof ro){if(n.length>0)throw new x(T.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var i=t;if(!i.exists)throw new x(T.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.Dm(e,i.dm,r)}var o=[t].concat(n);return this.Sm(e,o,r)},e.prototype.Dm=function(e,t,n){for(var r=[],i=0,o=this.bm.orderBy;i<o.length;i++){var a=o[i];if(a.field.ut())r.push(new qe(this.firestore.Ww,t.key));else{var s=t.field(a.field);if(s instanceof ze)throw new x(T.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+a.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===s){var l=a.field.nt();throw new x(T.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+l+"' (used as the orderBy) does not exist.")}r.push(s)}}return new pt(r,n)},e.prototype.Sm=function(e,t,n){var r=this.bm.On;if(t.length>r.length)throw new x(T.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<t.length;o++){var a=t[o];if(r[o].field.ut()){if("string"!=typeof a)throw new x(T.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+e+"(), but got a "+typeof a);if(!this.bm.ui()&&-1!==a.indexOf("/"))throw new x(T.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+e+"() must be a plain document ID, but '"+a+"' contains a slash.");var s=this.bm.path.child(ce.it(a));if(!he.ht(s))throw new x(T.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+e+"() must result in a valid document path, but '"+s+"' is not because it contains an odd number of segments.");var l=new he(s);i.push(new qe(this.firestore.Ww,l))}else{var c=this.firestore.Yw.al(e,a);i.push(c)}}return new pt(i,n)},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];H("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof e[i]||Ki(e[i])||(ee("Query.onSnapshot",r=e[i],["includeMetadataChanges"]),W("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Ki(e[i])?n=e[i]:(z("Query.onSnapshot","function",i,e[i]),V("Query.onSnapshot","function",i+1,e[i+1]),V("Query.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.Rm(this.bm),this.fm(r,n)},e.prototype.fm=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Gi({next:function(e){t.next&&t.next(new ao(n.firestore,n.bm,e,n.om))},error:r}),o=this.firestore.Qw(),a=o.listen(this.bm,i,e);return function(){i.qw(),o.nd(a)}},e.prototype.Rm=function(e){if(e.ei()&&0===e.On.length)throw new x(T.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},e.prototype.get=function(e){var t=this;return H("Query.get",arguments,0,1),uo("Query.get",e),this.Rm(this.bm),new Promise((function(n,r){e&&"cache"===e.source?t.firestore.Qw().jw(t.bm).then((function(e){n(new ao(t.firestore,t.bm,e,t.om))}),r):t.lm(n,r,e)}))},e.prototype.lm=function(e,t,n){var r=this.fm({includeMetadataChanges:!0,Tw:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?t(new x(T.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.)')):e(i)},error:t})},e.prototype._m=function(e){if("string"==typeof e){if(""===e)throw new x(T.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.bm.ui()&&-1!==e.indexOf("/"))throw new x(T.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+e+"' contains a '/' character.");var t=this.bm.path.child(ce.it(e));if(!he.ht(t))throw new x(T.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+t+"' is not because it has an odd number of segments ("+t.length+").");return new qe(this.firestore.Ww,new he(t))}if(e instanceof to){var n=e;return new qe(this.firestore.Ww,n.im)}throw new x(T.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Q(e)+".")},e.prototype.ym=function(e,t){if(!Array.isArray(e)||0===e.length)throw new x(T.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new x(T.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.");if(e.indexOf(null)>=0)throw new x(T.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'null' in the value array.");if(e.filter((function(e){return Number.isNaN(e)})).length>0)throw new x(T.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'NaN' in the value array.")},e.prototype.Im=function(e){if(e instanceof st){var t=[at.ARRAY_CONTAINS,at.ARRAY_CONTAINS_ANY],n=[at.IN,at.ARRAY_CONTAINS_ANY],r=t.indexOf(e.op)>=0,i=n.indexOf(e.op)>=0;if(e.Mn()){var o=this.bm.Ln();if(null!==o&&!o.isEqual(e.field))throw new x(T.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+e.field.toString()+"'");var a=this.bm.qn();null!==a&&this.Cm(e.field,a)}else if(i||r){var s=null;if(i&&(s=this.bm.ri(n)),null===s&&r&&(s=this.bm.ri(t)),null!=s)throw s===e.op?new x(T.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new x(T.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},e.prototype.Tm=function(e){if(null===this.bm.qn()){var t=this.bm.Ln();null!==t&&this.Cm(t,e.field)}},e.prototype.Cm=function(e,t){if(!t.isEqual(e))throw new x(T.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 Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),ao=function(){function e(e,t,n,r){this.um=e,this.Am=t,this.Pm=n,this.om=r,this.km=null,this.Nm=null,this.metadata=new no(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this.Pm.docs.J()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.Pm.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;H("QuerySnapshot.forEach",arguments,1,2),z("QuerySnapshot.forEach","function",1,e),this.Pm.docs.forEach((function(r){e.call(t,n.Om(r))}))},Object.defineProperty(e.prototype,"query",{get:function(){return new oo(this.Am,this.um,this.om)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){e&&(ee("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),W("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges));var t=!(!e||!e.includeMetadataChanges);if(t&&this.Pm.Ei)throw new x(T.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.km&&this.Nm===t||(this.km=function(e,t,n,r){if(n._i.J()){var i,o=0;return n.docChanges.map((function(t){var a=new io(e,t.doc.key,t.doc,n.fromCache,n.Ii.has(t.doc.key),r);return y(0===t.type,"Invalid event type for first snapshot"),y(!i||n.query.Xn(i,t.doc)<0,"Got added events in wrong order"),i=t.doc,{type:"added",doc:a,oldIndex:-1,newIndex:o++}}))}var a=n._i;return n.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var i=new io(e,t.doc.key,t.doc,n.fromCache,n.Ii.has(t.doc.key),r),o=-1,s=-1;return 0!==t.type&&(y((o=a.indexOf(t.doc.key))>=0,"Index for document not found"),a=a.delete(t.doc.key)),1!==t.type&&(s=(a=a.add(t.doc)).indexOf(t.doc.key)),{type:fo(t.type),doc:i,oldIndex:o,newIndex:s}}))}(this.um,t,this.Pm,this.om),this.Nm=t),this.km},e.prototype.isEqual=function(t){if(!(t instanceof e))throw te("isEqual","QuerySnapshot",1,t);return this.um===t.um&&this.Am.isEqual(t.Am)&&this.Pm.isEqual(t.Pm)&&this.om===t.om},e.prototype.Om=function(e){return new io(this.um,e.key,e,this.metadata.fromCache,this.Pm.Ii.has(e.key),this.om)},e}();o.__spreadArrays(["length","forEach","map"],"undefined"!=typeof Symbol?[Symbol.iterator]:[]).forEach((function(e){try{Object.defineProperty(ao.prototype.docChanges,e,{get:function(){return function(){throw new x(T.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}()}})}catch(e){}}));var so=function(e){function t(t,n,r){var i=e.call(this,ot.jn(t),n,r)||this;if(i.Fm=t,t.length%2!=1)throw new x(T.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.nt()+" has "+t.length);return i}return o.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.bm.path.X()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this.bm.path.H();return e.J()?null:new to(new he(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.bm.path.nt()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(H("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=b.u()),z("CollectionReference.doc","non-empty string",1,e),""===e)throw new x(T.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=ce.it(e);return to.em(this.bm.path.child(t),this.firestore,this.om)},t.prototype.add=function(e){Y("CollectionReference.add",arguments,1);var t=this.om?this.om.toFirestore(e):e;z("CollectionReference.add","object",1,t);var n=this.doc();return n.set(e).then((function(){return n}))},t.prototype.withConverter=function(e){return new t(this.Fm,this.firestore,e)},t}(oo);function lo(e,t){if(void 0===t)return{merge:!1};if(ee(e,t,["merge","mergeFields"]),W(e,"boolean","merge",t.merge),function(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){if(!(r instanceof Array))throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires its "+t+" option to be an array, but it was: "+Q(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new x(T.INVALID_ARGUMENT,"Function "+e+"() requires all "+t+" elements to be "+n+", but the value at index "+o+" was: "+Q(r[o]))}(e,t,n,r,i)}(e,"mergeFields","a string or a FieldPath",t.mergeFields,(function(e){return"string"==typeof e||e instanceof ti})),void 0!==t.mergeFields&&void 0!==t.merge)throw new x(T.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function co(e,t){return void 0===t?{}:(ee(e,t,["serverTimestamps"]),G(e,0,"serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function uo(e,t){V(e,"object",1,t),t&&(ee(e,t,["source"]),G(e,0,"source",t.source,["default","server","cache"]))}function ho(e,t,n){if(t instanceof to){if(t.firestore!==n)throw new x(T.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw te(e,"DocumentReference",1,t)}function fo(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return g("Unknown change type: "+e)}}function po(e,t,n){var r;return e?(r=e.toFirestore(t),n="toFirestore() in "+n):r=t,[r,n]}var mo=sn(Qi,"Use firebase.firestore() instead."),vo=sn(Zi,"Use firebase.firestore().runTransaction() instead."),go=sn(eo,"Use firebase.firestore().batch() instead."),yo=sn(to,"Use firebase.firestore().doc() instead."),bo=sn(ro),_o=sn(io),wo=sn(oo),ko=sn(ao),So=sn(so,"Use firebase.firestore().collection() instead."),Eo={Firestore:mo,GeoPoint:oe,Timestamp:ae,Blob:dn,Transaction:vo,WriteBatch:go,DocumentReference:yo,DocumentSnapshot:bo,Query:wo,QueryDocumentSnapshot:_o,QuerySnapshot:ko,CollectionReference:So,FieldPath:ti,FieldValue:ci,setLogLevel:Qi.setLogLevel,CACHE_SIZE_UNLIMITED:Ji};var Co=function(){function e(){}return e.prototype.xl=function(e){},e.prototype.shutdown=function(){},e}(),To=function(){function e(){var e=this;this.Vm=function(){return e.Um()},this.xm=function(){return e.jm()},this.Lm=[],this.qm()}return e.prototype.xl=function(e){this.Lm.push(e)},e.prototype.shutdown=function(){window.removeEventListener("online",this.Vm),window.removeEventListener("offline",this.xm)},e.prototype.qm=function(){window.addEventListener("online",this.Vm),window.addEventListener("offline",this.xm)},e.prototype.Um=function(){p("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.Lm;e<t.length;e++)(0,t[e])(0)},e.prototype.jm=function(){p("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.Lm;e<t.length;e++)(0,t[e])(1)},e.cs=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),xo=function(){function e(e){this.Bm=e.Bm,this.Mm=e.Mm}return e.prototype.Af=function(e){y(!this.Qm,"Called onOpen on stream twice!"),this.Qm=e},e.prototype.Ef=function(e){y(!this.Gm,"Called onClose on stream twice!"),this.Gm=e},e.prototype.onMessage=function(e){y(!this.Wm,"Called onMessage on stream twice!"),this.Wm=e},e.prototype.close=function(){this.Mm()},e.prototype.send=function(e){this.Bm(e)},e.prototype.zm=function(){y(void 0!==this.Qm,"Cannot call onOpen because no callback was set"),this.Qm()},e.prototype.Km=function(e){y(void 0!==this.Gm,"Cannot call onClose because no callback was set"),this.Gm(e)},e.prototype.Hm=function(e){y(void 0!==this.Wm,"Cannot call onMessage because no callback was set"),this.Wm(e)},e}(),Mo={BatchGetDocuments:"batchGet",Commit:"commit"},$o="gl-js/ fire/"+u,Po=function(){function e(e){this.s=e.s;var t=e.ssl?"https":"http";this.Jm=t+"://"+e.host,this.forceLongPolling=e.forceLongPolling}return e.prototype.Ym=function(e,t){if(t)for(var n in t.g)t.g.hasOwnProperty(n)&&(e[n]=t.g[n]);e["X-Goog-Api-Client"]=$o},e.prototype.Bf=function(e,t,n){var r=this,i=this.Xm(e);return new Promise((function(a,s){var l=new c.XhrIo;l.listenOnce(c.EventType.COMPLETE,(function(){try{switch(l.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var t=l.getResponseJson();p("Connection","XHR received:",JSON.stringify(t)),a(t);break;case c.ErrorCode.TIMEOUT:p("Connection",'RPC "'+e+'" timed out'),s(new x(T.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=l.getStatus();if(p("Connection",'RPC "'+e+'" failed with status:',n,"response text:",l.getResponseText()),n>0){var r=l.getResponseJson().error;if(r&&r.status&&r.message){var i=(o=r.status.toLowerCase().replace("_","-"),Object.values(T).indexOf(o)>=0?o:T.UNKNOWN);s(new x(i,r.message))}else s(new x(T.UNKNOWN,"Server responded with status "+l.getStatus()))}else p("Connection",'RPC "'+e+'" failed'),s(new x(T.UNAVAILABLE,"Connection failed."));break;default:g('RPC "'+e+'" failed with unanticipated webchannel error '+l.getLastErrorCode()+": "+l.getLastError()+", giving up.")}}finally{p("Connection",'RPC "'+e+'" completed.')}var o}));var u=o.__assign({},t);delete u.database;var d=JSON.stringify(u);p("Connection","XHR sending: ",i+" "+d);var h={"Content-Type":"text/plain"};r.Ym(h,n),l.send(i,"POST",d,h,15)}))},e.prototype.Mf=function(e,t,n){return this.Bf(e,t,n)},e.prototype.Pf=function(e,t){var n=[this.Jm,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=c.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.s.projectId+"/databases/"+this.s.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.Ym(i.initMessageHeaders,t),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 a=r.createWebChannel(o,i),l=!1,u=!1,d=new xo({Bm:function(e){u?p("Connection","Not sending because WebChannel is closed:",e):(l||(p("Connection","Opening WebChannel transport."),a.open(),l=!0),p("Connection","WebChannel sending:",e),a.send(e))},Mm:function(){return a.close()}}),h=function(e,t){a.listen(e,(function(e){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return h(c.WebChannel.EventType.OPEN,(function(){u||p("Connection","WebChannel transport opened.")})),h(c.WebChannel.EventType.CLOSE,(function(){u||(u=!0,p("Connection","WebChannel transport closed"),d.Km())})),h(c.WebChannel.EventType.ERROR,(function(e){u||(u=!0,p("Connection","WebChannel transport errored:",e),d.Km(new x(T.UNAVAILABLE,"The operation could not be completed")))})),h(c.WebChannel.EventType.MESSAGE,(function(e){var t;if(!u){var n=e.data[0];y(!!n,"Got a webchannel message without data.");var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){p("Connection","WebChannel received error:",i);var o=i.status,s=function(e){var t=wt[e];if(void 0!==t)return Tt(t)}(o),l=i.message;void 0===s&&(s=T.INTERNAL,l="Unknown error status: "+o+" with message "+i.message),u=!0,d.Km(new x(s,l)),a.close()}else p("Connection","WebChannel received:",n),d.Hm(n)}})),setTimeout((function(){d.zm()}),0),d},e.prototype.Xm=function(e){var t=Mo[e];return y(void 0!==t,"Unknown REST mapping for: "+e),this.Jm+"/v1/projects/"+this.s.projectId+"/databases/"+this.s.database+"/documents:"+t},e}(),Oo=function(){function e(){this.xr="undefined"!=typeof atob}return Object.defineProperty(e.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),e.prototype.kw=function(e){return Promise.resolve(new Po(e))},e.prototype.Ow=function(){return To.cs()?new To:new Co},e.prototype.Fw=function(e){return new on(e,{Te:!0})},e.prototype.i=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}();function Lo(e){(function(e){var t;e.INTERNAL.registerComponent(new l.Component("firestore",(function(e){var t=e.getProvider("app").getImmediate();return new Qi(t,e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps((y((t=Eo)&&"object"==typeof t,"shallowCopy() expects object parameter."),o.__assign({},t))))})(e),e.registerVersion("@firebase/firestore","1.12.2")}an.Ur(new Oo),Lo(i),t.__PRIVATE_registerFirestore=Lo}).call(this,n(13))},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ErrorCode",(function(){return cr})),n.d(t,"EventType",(function(){return ur})),n.d(t,"WebChannel",(function(){return dr})),n.d(t,"XhrIo",(function(){return hr})),n.d(t,"createWebChannelTransport",(function(){return lr}));var r,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},o=o||{},a=i;function s(e){return"string"==typeof e}function l(e){return"number"==typeof e}function c(e,t){e=e.split("."),t=t||a;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function u(){}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function h(e){return"array"==d(e)}function f(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function p(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var m="closure_uid_"+(1e9*Math.random()>>>0),v=0;function g(e,t,n){return e.call.apply(e.bind,arguments)}function y(e,t,n){if(!e)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),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function b(e,t,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g:y).apply(null,arguments)}function _(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var w=Date.now||function(){return+new Date};function k(e,t){function n(){}n.prototype=t.prototype,e.N=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.yb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function S(){this.j=this.j,this.i=this.i}S.prototype.j=!1,S.prototype.la=function(){if(!this.j&&(this.j=!0,this.G(),0))this[m]||(this[m]=++v)},S.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var E=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(s(e))return s(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},C=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=s(e)?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};function T(e){return Array.prototype.concat.apply([],arguments)}function x(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function M(e){return/^[\s\xa0]*$/.test(e)}var $,P=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function O(e,t){return-1!=e.indexOf(t)}function L(e,t){return e<t?-1:e>t?1:0}e:{var A=a.navigator;if(A){var I=A.userAgent;if(I){$=I;break e}}$=""}function D(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function N(e){var t,n={};for(t in e)n[t]=e[t];return n}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function j(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<R.length;o++)n=R[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function B(e){return B[" "](e),e}B[" "]=u;var Y,F,H=O($,"Opera"),U=O($,"Trident")||O($,"MSIE"),z=O($,"Edge"),V=z||U,q=O($,"Gecko")&&!(O($.toLowerCase(),"webkit")&&!O($,"Edge"))&&!(O($,"Trident")||O($,"MSIE"))&&!O($,"Edge"),W=O($.toLowerCase(),"webkit")&&!O($,"Edge");function G(){var e=a.document;return e?e.documentMode:void 0}e:{var K="",J=(F=$,q?/rv:([^\);]+)(\)|;)/.exec(F):z?/Edge\/([\d\.]+)/.exec(F):U?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F):W?/WebKit\/(\S+)/.exec(F):H?/(?:Version)[ \/]?(\S+)/.exec(F):void 0);if(J&&(K=J?J[1]:""),U){var X=G();if(null!=X&&X>parseFloat(K)){Y=String(X);break e}}Y=K}var Q,Z={};function ee(e){return function(e,t){var n=Z;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=P(String(Y)).split("."),r=P(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=L(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||L(0==a[2].length,0==s[2].length)||L(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}var te=a.document;Q=te&&U?G()||("CSS1Compat"==te.compatMode?parseInt(Y,10):5):void 0;var ne=!U||9<=Number(Q),re=U&&!ee("9"),ie=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{a.addEventListener("test",u,t),a.removeEventListener("test",u,t)}catch(e){}return e}();function oe(e,t){this.type=e,this.a=this.target=t,this.Ia=!0}function ae(e,t){if(oe.call(this,e?e.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,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(q){e:{try{B(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,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!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=s(e.pointerType)?e.pointerType:se[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}oe.prototype.b=function(){this.Ia=!1},k(ae,oe);var se={2:"touch",3:"pen",4:"mouse"};ae.prototype.b=function(){ae.N.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,re)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}};var le="closure_listenable_"+(1e6*Math.random()|0),ce=0;function ue(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.da=i,this.key=++ce,this.X=this.Z=!1}function de(e){e.X=!0,e.listener=null,e.proxy=null,e.src=null,e.da=null}function he(e){this.src=e,this.a={},this.b=0}function fe(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],o=E(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(de(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function pe(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.X&&o.listener==t&&o.capture==!!n&&o.da==r)return i}return-1}he.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=pe(e,t,r,i);return-1<a?(t=e[a],n||(t.Z=!1)):((t=new ue(t,this.src,o,!!r,i)).Z=n,e.push(t)),t};var me="closure_lm_"+(1e6*Math.random()|0),ve={};function ge(e,t,n,r,i){if(r&&r.once)return function e(t,n,r,i,o){if(h(n)){for(var a=0;a<n.length;a++)e(t,n[a],r,i,o);return null}return r=Ce(r),t&&t[le]?t.Aa(n,r,p(i)?!!i.capture:!!i,o):ye(t,n,r,!0,i,o)}(e,t,n,r,i);if(h(t)){for(var o=0;o<t.length;o++)ge(e,t[o],n,r,i);return null}return n=Ce(n),e&&e[le]?e.za(t,n,p(r)?!!r.capture:!!r,i):ye(e,t,n,!1,r,i)}function ye(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=p(i)?!!i.capture:!!i;if(a&&!ne)return null;var s=Se(e);if(s||(e[me]=s=new he(e)),(n=s.add(t,n,r,a,o)).proxy)return n;if(r=function(){var e=ke,t=ne?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ie||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(_e(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function be(e){if(!l(e)&&e&&!e.X){var t=e.src;if(t&&t[le])fe(t.c,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(_e(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Se(t))?(fe(n,e),0==n.b&&(n.src=null,t[me]=null)):de(e)}}}function _e(e){return e in ve?ve[e]:ve[e]="on"+e}function we(e,t){var n=e.listener,r=e.da||e.src;return e.Z&&be(e),n.call(r,t)}function ke(e,t){return!!e.X||(ne?we(e,new ae(t,this)):we(e,t=new ae(t||c("window.event"),this)))}function Se(e){return(e=e[me])instanceof he?e:null}var Ee="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ce(e){return"function"==d(e)?e:(e[Ee]||(e[Ee]=function(t){return e.handleEvent(t)}),e[Ee])}function Te(){S.call(this),this.c=new he(this),this.J=this,this.B=null}function xe(e,t,n,r){if(!(t=e.c.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.X&&a.capture==n){var s=a.listener,l=a.da||a.src;a.Z&&fe(e.c,a),i=!1!==s.call(l,r)&&i}}return i&&0!=r.Ia}k(Te,S),Te.prototype[le]=!0,(r=Te.prototype).addEventListener=function(e,t,n,r){ge(this,e,t,n,r)},r.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,o){if(h(n))for(var a=0;a<n.length;a++)e(t,n[a],r,i,o);else i=p(i)?!!i.capture:!!i,r=Ce(r),t&&t[le]?(t=t.c,(n=String(n).toString())in t.a&&(-1<(r=pe(a=t.a[n],r,i,o))&&(de(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete t.a[n],t.b--)))):t&&(t=Se(t))&&(n=t.a[n.toString()],t=-1,n&&(t=pe(n,r,i,o)),(r=-1<t?n[t]:null)&&be(r))}(this,e,t,n,r)},r.dispatchEvent=function(e){var t,n=this.B;if(n)for(t=[];n;n=n.B)t.push(n);n=this.J;var r=e.type||e;if(s(e))e=new oe(e,n);else if(e instanceof oe)e.target=e.target||n;else{var i=e;j(e=new oe(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.a=t[o];i=xe(a,r,!0,e)&&i}if(i=xe(a=e.a=n,r,!0,e)&&i,i=xe(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=xe(a=e.a=t[o],r,!1,e)&&i;return i},r.G=function(){if(Te.N.G.call(this),this.c){var e,t=this.c;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)de(n[r]);delete t.a[e],t.b--}}this.B=null},r.za=function(e,t,n,r){return this.c.add(String(e),t,!1,n,r)},r.Aa=function(e,t,n,r){return this.c.add(String(e),t,!0,n,r)};var Me=a.JSON.stringify;function $e(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function Pe(){this.b=this.a=null}$e.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Oe,Le=new $e((function(){return new Ie}),(function(e){e.reset()}));function Ae(){var e=je,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Ie(){this.next=this.b=this.a=null}function De(e){a.setTimeout((function(){throw e}),0)}function Ne(e,t){Oe||function(){var e=a.Promise.resolve(void 0);Oe=function(){e.then(Be)}}(),Re||(Oe(),Re=!0),je.add(e,t)}Pe.prototype.add=function(e,t){var n=Le.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Ie.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Ie.prototype.reset=function(){this.next=this.b=this.a=null};var Re=!1,je=new Pe;function Be(){for(var e;e=Ae();){try{e.a.call(e.b)}catch(e){De(e)}var t=Le;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Re=!1}function Ye(e,t){Te.call(this),this.b=e||1,this.a=t||a,this.f=b(this.gb,this),this.g=w()}function Fe(e){e.ba=!1,e.L&&(e.a.clearTimeout(e.L),e.L=null)}function He(e,t,n){if("function"==d(e))n&&(e=b(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=b(e.handleEvent,e)}return 2147483647<Number(t)?-1:a.setTimeout(e,t||0)}function Ue(e,t,n){S.call(this),this.f=null!=n?b(e,n):e,this.c=t,this.b=b(this.$a,this),this.a=[]}function ze(e){e.U=He(e.b,e.c),e.f.apply(null,e.a)}function Ve(e){S.call(this),this.b=e,this.a={}}k(Ye,Te),(r=Ye.prototype).ba=!1,r.L=null,r.gb=function(){if(this.ba){var e=w()-this.g;0<e&&e<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-e):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.ba&&(Fe(this),this.start()))}},r.start=function(){this.ba=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=w())},r.G=function(){Ye.N.G.call(this),Fe(this),delete this.a},k(Ue,S),(r=Ue.prototype).ea=!1,r.U=null,r.Ta=function(e){this.a=arguments,this.U?this.ea=!0:ze(this)},r.G=function(){Ue.N.G.call(this),this.U&&(a.clearTimeout(this.U),this.U=null,this.ea=!1,this.a=[])},r.$a=function(){this.U=null,this.ea&&(this.ea=!1,ze(this))},k(Ve,S);var qe=[];function We(e,t,n,r){h(n)||(n&&(qe[0]=n.toString()),n=qe);for(var i=0;i<n.length;i++){var o=ge(t,n[i],r||e.handleEvent,!1,e.b||e);if(!o)break;e.a[o.key]=o}}function Ge(e){D(e.a,(function(e,t){this.a.hasOwnProperty(t)&&be(e)}),e),e.a={}}function Ke(){}Ve.prototype.G=function(){Ve.N.G.call(this),Ge(this)},Ve.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Je=new Te;function Xe(e){oe.call(this,"serverreachability",e)}function Qe(e){Je.dispatchEvent(new Xe(Je,e))}function Ze(e){oe.call(this,"statevent",e)}function et(e){Je.dispatchEvent(new Ze(Je,e))}function tt(e){oe.call(this,"timingevent",e)}function nt(e,t){if("function"!=d(e))throw Error("Fn must not be null and must be a function");return a.setTimeout((function(){e()}),t)}k(Xe,oe),k(Ze,oe),k(tt,oe);var rt={NO_ERROR:0,hb:1,ob:2,nb:3,kb:4,mb:5,pb:6,La:7,TIMEOUT:8,sb:9},it={jb:"complete",wb:"success",Ma:"error",La:"abort",ub:"ready",vb:"readystatechange",TIMEOUT:"timeout",qb:"incrementaldata",tb:"progress",lb:"downloadprogress",xb:"uploadprogress"};function ot(){}function at(e){var t;return(t=e.a)||(t=e.a={}),t}function st(){}ot.prototype.a=null;var lt,ct={OPEN:"a",ib:"b",Ma:"c",rb:"d"};function ut(){oe.call(this,"d")}function dt(){oe.call(this,"c")}function ht(){}function ft(e,t,n){this.g=e,this.W=t,this.V=n||1,this.I=new Ve(this),this.O=pt,e=V?125:void 0,this.P=new Ye(e),this.h=null,this.b=!1,this.l=this.D=this.f=this.F=this.v=this.R=this.i=null,this.j=[],this.a=null,this.A=0,this.c=this.w=null,this.o=-1,this.m=!1,this.J=0,this.B=null,this.s=this.S=this.H=!1}k(ut,oe),k(dt,oe),k(ht,ot),lt=new ht;var pt=45e3,mt={},vt={};function gt(e,t,n){e.F=1,e.f=Ht(Dt(t)),e.l=n,e.H=!0,bt(e,null)}function yt(e,t,n,r){e.F=1,e.f=Ht(Dt(t)),e.l=null,e.H=n,bt(e,r)}function bt(e,t){e.v=w(),kt(e),e.D=Dt(e.f),Ft(e.D,"t",e.V),e.A=0,e.a=e.g.$(e.g.Y()?t:null),0<e.J&&(e.B=new Ue(b(e.Ja,e,e.a),e.J)),We(e.I,e.a,"readystatechange",e.cb),t=e.h?N(e.h):{},e.l?(e.w||(e.w="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.a.ca(e.D,e.w,e.l,t)):(e.w="GET",e.a.ca(e.D,e.w,null,t)),Qe(1)}function _t(e,t,n){for(var r=!0;!e.m&&e.A<n.length;){var i=wt(e,n);if(i==vt){4==t&&(e.c=4,et(14),r=!1);break}if(i==mt){e.c=4,et(15),r=!1;break}xt(e,i)}4==t&&0==n.length&&(e.c=1,et(16),r=!1),e.b=e.b&&r,r||(Tt(e),Ct(e))}function wt(e,t){var n=e.A,r=t.indexOf("\n",n);return-1==r?vt:(n=Number(t.substring(n,r)),isNaN(n)?mt:(r+=1)+n>t.length?vt:(t=t.substr(r,n),e.A=r+n,t))}function kt(e){e.R=w()+e.O,St(e,e.O)}function St(e,t){if(null!=e.i)throw Error("WatchDog timer not null");e.i=nt(b(e.ab,e),t)}function Et(e){e.i&&(a.clearTimeout(e.i),e.i=null)}function Ct(e){e.g.Ca()||e.m||e.g.na(e)}function Tt(e){Et(e);var t=e.B;t&&"function"==typeof t.la&&t.la(),e.B=null,Fe(e.P),Ge(e.I),e.a&&(t=e.a,e.a=null,t.abort(),t.la())}function xt(e,t){try{e.g.Fa(e,t),Qe(4)}catch(e){}}function Mt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(f(e)||s(e))C(e,t,void 0);else{if(e.K&&"function"==typeof e.K)var n=e.K();else if(e.C&&"function"==typeof e.C)n=void 0;else if(f(e)||s(e)){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;i=(r=function(e){if(e.C&&"function"==typeof e.C)return e.C();if(s(e))return e.split("");if(f(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e)).length;for(var o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}}function $t(e,t){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(e)if(e instanceof $t)for(n=e.K(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Pt(e,t){Lt(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Ot(e))}function Ot(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Lt(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Lt(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Lt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(r=ft.prototype).setTimeout=function(e){this.O=e},r.cb=function(e){e=e.target;var t=this.B;t&&3==Dn(e)?t.Ta():this.Ja(e)},r.Ja=function(e){try{if(e==this.a)e:{var t=Dn(this.a),n=this.a.ya(),r=this.a.T();if(!(3>t||3==t&&!V&&!this.a.aa())){this.m||4!=t||7==n||Qe(8==n||0>=r?3:2),Et(this);var i=this.a.T();this.o=i;var o=this.a.aa();if(this.b=200==i){if(this.S&&!this.s){t:{if(this.a){var a=Nn(this.a,"X-HTTP-Initial-Response");if(a&&!M(a)){var s=a;break t}}s=null}if(!s){this.b=!1,this.c=3,et(12),Tt(this),Ct(this);break e}this.s=!0,xt(this,s)}this.H?(_t(this,t,o),V&&this.b&&3==t&&(We(this.I,this.P,"tick",this.bb),this.P.start())):xt(this,o),4==t&&Tt(this),this.b&&!this.m&&(4==t?this.g.na(this):(this.b=!1,kt(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,et(12)):(this.c=0,et(13)),Tt(this),Ct(this)}}}catch(e){}},r.bb=function(){if(this.a){var e=Dn(this.a),t=this.a.aa();this.A<t.length&&(Et(this),_t(this,e,t),this.b&&4!=e&&kt(this))}},r.cancel=function(){this.m=!0,Tt(this)},r.ab=function(){this.i=null;var e=w();0<=e-this.R?(2!=this.F&&(Qe(3),et(17)),Tt(this),this.c=2,Ct(this)):St(this,this.R-e)},(r=$t.prototype).C=function(){Ot(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},r.K=function(){return Ot(this),this.a.concat()},r.get=function(e,t){return Lt(this.b,e)?this.b[e]:t},r.set=function(e,t){Lt(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},r.forEach=function(e,t){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var At=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function It(e,t){var n;this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1,e instanceof It?(this.h=void 0!==t?t:e.h,Nt(this,e.f),this.j=e.j,Rt(this,e.b),jt(this,e.i),this.a=e.a,Bt(this,nn(e.c)),this.g=e.g):e&&(n=String(e).match(At))?(this.h=!!t,Nt(this,n[1]||"",!0),this.j=Ut(n[2]||""),Rt(this,n[3]||"",!0),jt(this,n[4]),this.a=Ut(n[5]||"",!0),Bt(this,n[6]||"",!0),this.g=Ut(n[7]||"")):(this.h=!!t,this.c=new Xt(null,this.h))}function Dt(e){return new It(e)}function Nt(e,t,n){e.f=n?Ut(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Rt(e,t,n){e.b=n?Ut(t,!0):t}function jt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function Bt(e,t,n){t instanceof Xt?(e.c=t,function(e,t){t&&!e.f&&(Qt(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Zt(this,t),tn(this,n,e))}),e)),e.f=t}(e.c,e.h)):(n||(t=zt(t,Kt)),e.c=new Xt(t,e.h))}function Yt(e,t,n){e.c.set(t,n)}function Ft(e,t,n){h(n)||(n=[String(n)]),tn(e.c,t,n)}function Ht(e){return Yt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)),e}function Ut(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function zt(e,t,n){return s(e)?(e=encodeURI(e).replace(t,Vt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Vt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}It.prototype.toString=function(){var e=[],t=this.f;t&&e.push(zt(t,qt,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(zt(t,qt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(zt(n,"/"==n.charAt(0)?Gt:Wt,!0))),(n=this.c.toString())&&e.push("?",n),(n=this.g)&&e.push("#",zt(n,Jt)),e.join("")},It.prototype.resolve=function(e){var t=Dt(this),n=!!e.f;n?Nt(t,e.f):n=!!e.j,n?t.j=e.j:n=!!e.b,n?Rt(t,e.b):n=null!=e.i;var r=e.a;if(n)jt(t,e.i);else if(n=!!e.a){if("/"!=r.charAt(0))if(this.b&&!this.a)r="/"+r;else{var i=t.a.lastIndexOf("/");-1!=i&&(r=t.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(O(i,"./")||O(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?t.a=r:n=""!==e.c.toString(),n?Bt(t,nn(e.c)):n=!!e.g,n&&(t.g=e.g),t};var qt=/[#\/\?@]/g,Wt=/[#\?:]/g,Gt=/[#\?]/g,Kt=/[#\?@]/g,Jt=/#/g;function Xt(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qt(e){e.a||(e.a=new $t,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Zt(e,t){Qt(e),t=rn(e,t),Lt(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Pt(e.a,t))}function en(e,t){return Qt(e),t=rn(e,t),Lt(e.a.b,t)}function tn(e,t,n){Zt(e,t),0<n.length&&(e.c=null,e.a.set(rn(e,t),x(n)),e.b+=n.length)}function nn(e){var t=new Xt;return t.c=e.c,e.a&&(t.a=new $t(e.a),t.b=e.b),t}function rn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function on(e){this.a=e,this.b=this.h=null,this.g=!1,this.i=null,this.c=-1,this.l=this.f=null}function an(e){var t=e.a.F.a;if(null!=t)et(4),t?(et(10),Gn(e.a,e,!1)):(et(11),Gn(e.a,e,!0));else{e.b=new ft(e,void 0,void 0),e.b.h=e.h,t=Zn(t=e.a,t.Y()?e.f:null,e.i),et(4),Ft(t,"TYPE","xmlhttp");var n=e.a.j,r=e.a.I;n&&r&&Yt(t,n,r),yt(e.b,t,!1,e.f)}}function sn(){this.a=this.b=null}function ln(){this.a=new $t}function cn(e){var t=typeof e;return"object"==t&&e||"function"==t?"o"+(e[m]||(e[m]=++v)):t.charAt(0)+e}function un(e,t){this.b=e,this.a=t}function dn(e){this.g=e||hn,a.PerformanceNavigationTiming?e=0<(e=a.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(a.ka&&a.ka.Da&&a.ka.Da()&&a.ka.Da().zb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new ln),this.b=null,this.c=[]}(r=Xt.prototype).add=function(e,t){Qt(this),this.c=null,e=rn(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},r.forEach=function(e,t){Qt(this),this.a.forEach((function(n,r){C(n,(function(n){e.call(t,n,r,this)}),this)}),this)},r.K=function(){Qt(this);for(var e=this.a.C(),t=this.a.K(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},r.C=function(e){Qt(this);var t=[];if(s(e))en(this,e)&&(t=T(t,this.a.get(rn(this,e))));else{e=this.a.C();for(var n=0;n<e.length;n++)t=T(t,e[n])}return t},r.set=function(e,t){return Qt(this),this.c=null,en(this,e=rn(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},r.get=function(e,t){return e&&0<(e=this.C(e)).length?String(e[0]):t},r.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.K(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.C(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")},k((function(){}),(function(){})),(r=on.prototype).M=null,r.$=function(e){return this.a.$(e)},r.abort=function(){this.b&&(this.b.cancel(),this.b=null),this.c=-1},r.Ca=function(){return!1},r.Fa=function(e,t){if(this.c=e.o,0==this.M){if(!this.a.o&&(e=e.a)){var n=Nn(e,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&(e=Nn(e,"X-HTTP-Session-Id"))&&(this.a.I=e)}if(t){try{var r=this.a.ja.a.parse(t)}catch(e){return(t=this.a).m=this.c,void Xn(t,2)}this.f=r[0]}else(t=this.a).m=this.c,Xn(t,2)}else 1==this.M&&(this.g?et(6):"11111"==t?(et(5),this.g=!0,(!U||10<=Number(Q))&&(this.c=200,this.b.cancel(),et(11),Gn(this.a,this,!0))):(et(7),this.g=!1))},r.na=function(){if(this.c=this.b.o,this.b.b)0==this.M?(this.M=1,an(this)):1==this.M&&(this.g?(et(11),Gn(this.a,this,!0)):(et(10),Gn(this.a,this,!1)));else{0==this.M?et(8):1==this.M&&et(9);var e=this.a;e.m=this.c,Xn(e,2)}},r.Y=function(){return this.a.Y()},r.ma=function(){return this.a.ma()},ln.prototype.add=function(e){this.a.set(cn(e),e)},ln.prototype.C=function(){return this.a.C()};var hn=10;function fn(e,t){!e.a&&(O(t,"spdy")||O(t,"quic")||O(t,"h2"))&&(e.f=e.g,e.a=new ln,e.b&&(gn(e,e.b),e.b=null))}function pn(e){return!!e.b||!!e.a&&e.a.a.c>=e.f}function mn(e){return e.b?1:e.a?e.a.a.c:0}function vn(e,t){return e.b?e=e.b==t:e.a?(t=cn(t),e=Lt(e.a.a.b,t)):e=!1,e}function gn(e,t){e.a?e.a.add(t):e.b=t}function yn(e,t){var n;e.b&&e.b==t?e.b=null:((n=e.a)&&(n=cn(t),n=Lt(e.a.a.b,n)),n&&Pt(e.a.a,cn(t)))}function bn(e){if(null!=e.b)return e.c.concat(e.b.j);if(null!=e.a&&0!=e.a.a.c){var t=e.c;return C(e.a.C(),(function(e){t=t.concat(e.j)})),t}return x(e.c)}function _n(){}function wn(){this.a=new _n}function kn(e,t,n){var r=n||"";try{Mt(e,(function(e,n){var i=e;p(e)&&(i=Me(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}function Sn(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(e){}}dn.prototype.cancel=function(){this.c=bn(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&(C(this.a.C(),(function(e){e.cancel()})),function(e){e.b={},e.a.length=0,e.c=0}(this.a.a))},_n.prototype.stringify=function(e){return a.JSON.stringify(e,void 0)},_n.prototype.parse=function(e){return a.JSON.parse(e,void 0)};var En=a.JSON.parse;function Cn(e){Te.call(this),this.headers=new $t,this.H=e||null,this.b=!1,this.s=this.a=null,this.A="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.I=Tn,this.D=this.F=!1}k(Cn,Te);var Tn="",xn=/^https?$/i,Mn=["POST","PUT"];function $n(e){return"content-type"==e.toLowerCase()}function Pn(e,t){e.b=!1,e.a&&(e.g=!0,e.a.abort(),e.g=!1),e.f=t,e.h=5,On(e),An(e)}function On(e){e.v||(e.v=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Ln(e){if(e.b&&void 0!==o&&(!e.s[1]||4!=Dn(e)||2!=e.T()))if(e.l&&4==Dn(e))He(e.Ea,0,e);else if(e.dispatchEvent("readystatechange"),4==Dn(e)){e.b=!1;try{var t,n=e.T();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var s=String(e.A).match(At)[1]||null;if(!s&&a.self&&a.self.location){var l=a.self.location.protocol;s=l.substr(0,l.length-1)}i=!xn.test(s?s.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.h=6;try{var c=2<Dn(e)?e.a.statusText:""}catch(e){c=""}e.f=c+" ["+e.T()+"]",On(e)}}finally{An(e)}}}function An(e,t){if(e.a){In(e);var n=e.a,r=e.s[0]?u:null;e.a=null,e.s=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(e){}}}function In(e){e.a&&e.D&&(e.a.ontimeout=null),e.m&&(a.clearTimeout(e.m),e.m=null)}function Dn(e){return e.a?e.a.readyState:0}function Nn(e,t){return e.a?e.a.getResponseHeader(t):null}function Rn(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}if(r)return e;if(n=function(e){var t="";return D(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),s(e)){if(t=encodeURIComponent(String(t)),t+=n=null!=n?"="+encodeURIComponent(String(n)):""){if(0>(n=e.indexOf("#"))&&(n=e.length),0>(r=e.indexOf("?"))||r>n){r=n;var i=""}else i=e.substring(r+1,n);n=(e=[e.substr(0,r),i,e.substr(n)])[1],e[1]=t?n?n+"&"+t:t:n,e=e[0]+(e[1]?"?"+e[1]:"")+e[2]}return e}return Yt(e,t,n),e}function jn(e){this.f=[],this.F=new sn,this.ga=this.pa=this.B=this.ha=this.a=this.I=this.j=this.V=this.g=this.J=this.i=null,this.Qa=this.P=0,this.Oa=!!c("internalChannelParams.failFast",e),this.ia=this.w=this.s=this.l=this.h=this.c=null,this.oa=!0,this.m=this.ra=this.O=-1,this.S=this.v=this.A=0,this.Na=c("internalChannelParams.baseRetryDelayMs",e)||5e3,this.Ra=c("internalChannelParams.retryDelaySeedMs",e)||1e4,this.Pa=c("internalChannelParams.forwardChannelMaxRetries",e)||2,this.qa=c("internalChannelParams.forwardChannelRequestTimeoutMs",e)||2e4,this.Ka=e&&e.Ab||void 0,this.D=void 0,this.R=e&&e.supportsCrossDomainXhr||!1,this.H="",this.b=new dn(e&&e.concurrentRequestLimit),this.ja=new wn,this.o=!e||void 0===e.backgroundChannelTest||e.backgroundChannelTest,(this.W=e&&e.fastHandshake||!1)&&!this.o&&(this.o=!0),e&&e.forceLongPolling&&(this.oa=!1),this.fa=void 0}function Bn(e){if(Yn(e),3==e.u){var t=e.P++,n=Dt(e.B);Yt(n,"SID",e.H),Yt(n,"RID",t),Yt(n,"TYPE","terminate"),zn(e,n),(t=new ft(e,t,void 0)).F=2,t.f=Ht(Dt(n)),n=!1,a.navigator&&a.navigator.sendBeacon&&(n=a.navigator.sendBeacon(t.f.toString(),"")),!n&&a.Image&&((new Image).src=t.f,n=!0),n||(t.a=t.g.$(null),t.a.ca(t.f)),t.v=w(),kt(t)}Qn(e)}function Yn(e){e.w&&(e.w.abort(),e.w=null),e.a&&(e.a.cancel(),e.a=null),e.l&&(a.clearTimeout(e.l),e.l=null),Kn(e),e.b.cancel(),e.h&&(l(e.h)&&a.clearTimeout(e.h),e.h=null)}function Fn(e,t){e.f.push(new un(e.Qa++,t)),3==e.u&&Hn(e)}function Hn(e){pn(e.b)||e.h||(e.h=!0,Ne(e.Ha,e),e.A=0)}function Un(e,t){var n;n=t?t.W:e.P++;var r=Dt(e.B);Yt(r,"SID",e.H),Yt(r,"RID",n),Yt(r,"AID",e.O),zn(e,r),e.g&&e.i&&Rn(r,e.g,e.i),n=new ft(e,n,e.A+1),null===e.g&&(n.h=e.i),t&&(e.f=t.j.concat(e.f)),t=Vn(e,n,1e3),n.setTimeout(Math.round(.5*e.qa)+Math.round(.5*e.qa*Math.random())),gn(e.b,n),gt(n,r,t)}function zn(e,t){e.c&&Mt({},(function(e,n){Yt(t,n,e)}))}function Vn(e,t,n){n=Math.min(e.f.length,n);var r=e.c?b(e.c.Sa,e.c,e):null;e:for(var i=e.f,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].b,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,l=0;l<n;l++){var c=i[l].b,u=i[l].a;if(0>(c-=o))o=Math.max(0,i[l].b-100),s=!1;else try{kn(u,a,"req"+c+"_")}catch(e){r&&r(u)}}if(s){r=a.join("&");break e}}return e=e.f.splice(0,n),t.j=e,r}function qn(e){e.a||e.l||(e.S=1,Ne(e.Ga,e),e.v=0)}function Wn(e){return!(e.a||e.l||3<=e.v)&&(e.S++,e.l=nt(b(e.Ga,e),Jn(e,e.v)),e.v++,!0)}function Gn(e,t,n){var r=t.l;r&&fn(e.b,r),e.ia=e.oa&&n,e.m=t.c,e.B=Zn(e,null,e.ha),Hn(e)}function Kn(e){null!=e.s&&(a.clearTimeout(e.s),e.s=null)}function Jn(e,t){var n=e.Na+Math.floor(Math.random()*e.Ra);return e.ma()||(n*=2),n*t}function Xn(e,t){if(2==t){var n=null;e.c&&(n=null);var r=b(e.eb,e);n||(n=new It("//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||Nt(n,"https"),Ht(n)),function(e,t){var n=new Ke;if(a.Image){var r=new Image;r.onload=_(Sn,n,r,"TestLoadImage: loaded",!0,t),r.onerror=_(Sn,n,r,"TestLoadImage: error",!1,t),r.onabort=_(Sn,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=_(Sn,n,r,"TestLoadImage: timeout",!1,t),a.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else et(2);e.u=0,e.c&&e.c.ta(t),Qn(e),Yn(e)}function Qn(e){e.u=0,e.m=-1,e.c&&(0==bn(e.b).length&&0==e.f.length||(e.b.c.length=0,x(e.f),e.f.length=0),e.c.sa())}function Zn(e,t,n){var r=function(e){return e instanceof It?Dt(e):new It(e,void 0)}(n);if(""!=r.b)t&&Rt(r,t+"."+r.b),jt(r,r.i);else{var i,o=a.location;i=t?t+"."+o.hostname:o.hostname,r=function(e,t,n,r){var i=new It(null,void 0);return e&&Nt(i,e),t&&Rt(i,t),n&&jt(i,n),r&&(i.a=r),i}(o.protocol,i,+o.port,n)}return e.V&&D(e.V,(function(e,t){Yt(r,t,e)})),t=e.j,n=e.I,t&&n&&Yt(r,t,n),Yt(r,"VER",e.wa),zn(e,r),r}function er(){}function tr(){if(U&&!(10<=Number(Q)))throw Error("Environmental error: no available transport.")}function nr(e,t){Te.call(this),this.a=new jn(t),this.g=e,this.m=t&&t.fb?t.fb:function(e){for(var t=arguments[0],n=1;n<arguments.length;n++){var r,i=arguments[n];if(0==i.lastIndexOf("/",0))t=i;else(r=""==t)||(r=0<=(r=t.length-1)&&t.indexOf("/",r)==r),t+=r?i:"/"+i}return t}(this.g,"test"),this.b=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.i=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.xa&&(e?e["X-WebChannel-Client-Profile"]=t.xa:e={"X-WebChannel-Client-Profile":t.xa}),this.a.J=e,(e=t&&t.httpHeadersOverwriteParam)&&!M(e)&&(this.a.g=e),this.l=t&&t.supportsCrossDomainXhr||!1,this.h=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!M(t)&&(this.a.j=t,null!==(e=this.b)&&t in e&&(t in(e=this.b)&&delete e[t])),this.f=new or(this)}function rr(e){ut.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function ir(){dt.call(this),this.status=1}function or(e){this.a=e}(r=Cn.prototype).ca=function(e,t,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.A+"; newUri="+e);t=t?t.toUpperCase():"GET",this.A=e,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?at(this.H):at(lt),this.a.onreadystatechange=b(this.Ea,this);try{this.w=!0,this.a.open(t,String(e),!0),this.w=!1}catch(e){return void Pn(this,e)}e=n||"";var i=new $t(this.headers);r&&Mt(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=$n,n=e.length,r=s(e)?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:s(e)?e.charAt(t):e[t]}(i.K()),n=a.FormData&&e instanceof a.FormData,!(0<=E(Mn,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(e,t){this.a.setRequestHeader(t,e)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{In(this),0<this.o&&((this.D=function(e){return U&&ee(9)&&l(e.timeout)&&void 0!==e.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=b(this.Ba,this)):this.m=He(this.Ba,this.o,this)),this.l=!0,this.a.send(e),this.l=!1}catch(e){Pn(this,e)}},r.Ba=function(){void 0!==o&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},r.abort=function(e){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),An(this))},r.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),An(this,!0)),Cn.N.G.call(this)},r.Ea=function(){this.j||(this.w||this.l||this.g?Ln(this):this.Za())},r.Za=function(){Ln(this)},r.T=function(){try{return 2<Dn(this)?this.a.status:-1}catch(e){return-1}},r.aa=function(){try{return this.a?this.a.responseText:""}catch(e){return""}},r.Ua=function(e){if(this.a){var t=this.a.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),En(t)}},r.ya=function(){return this.h},r.Xa=function(){return s(this.f)?this.f:String(this.f)},(r=jn.prototype).wa=8,r.u=1,r.Ca=function(){return 0==this.u},r.Ha=function(e){if(this.h)if(this.h=null,1==this.u){if(!e){this.P=Math.floor(1e5*Math.random());var t,n=new ft(this,e=this.P++,void 0),r=this.i;if(this.J&&(r?j(r=N(r),this.J):r=this.J),null===this.g&&(n.h=r),this.W)e:{for(var i=t=0;i<this.f.length;i++){var o=this.f[i];if(void 0===(o="__data__"in o.a&&s(o=o.a.__data__)?o.length:void 0))break;if(4096<(t+=o)){t=i;break e}if(4096===t||i===this.f.length-1){t=i+1;break e}}t=1e3}else t=1e3;t=Vn(this,n,t),Yt(i=Dt(this.B),"RID",e),Yt(i,"CVER",22),this.o&&this.j&&Yt(i,"X-HTTP-Session-Id",this.j),zn(this,i),this.g&&r&&Rn(i,this.g,r),gn(this.b,n),this.W?(Yt(i,"$req",t),Yt(i,"SID","null"),n.S=!0,gt(n,i,null)):gt(n,i,t),this.u=2}}else 3==this.u&&(e?Un(this,e):0==this.f.length||pn(this.b)||Un(this))},r.Ga=function(){this.l=null,this.a=new ft(this,"rpc",this.S),null===this.g&&(this.a.h=this.i),this.a.J=0;var e=Dt(this.pa);Yt(e,"RID","rpc"),Yt(e,"SID",this.H),Yt(e,"CI",this.ia?"0":"1"),Yt(e,"AID",this.O),zn(this,e),Yt(e,"TYPE","xmlhttp"),this.g&&this.i&&Rn(e,this.g,this.i),this.D&&this.a.setTimeout(this.D),yt(this.a,e,!0,this.ga)},r.Fa=function(e,t){if(0!=this.u&&(this.a==e||vn(this.b,e)))if(this.m=e.o,!e.s&&vn(this.b,e)&&3==this.u){try{var n=this.ja.a.parse(t)}catch(e){n=null}if(h(n)&&3==n.length){if(0==(t=n)[0]){e:if(!this.l){if(this.a){if(!(this.a.v+3e3<e.v))break e;Kn(this),this.a.cancel(),this.a=null}Wn(this),et(18)}}else this.ra=t[1],0<this.ra-this.O&&37500>t[2]&&this.ia&&0==this.v&&!this.s&&(this.s=nt(b(this.Ya,this),6e3));if(1>=mn(this.b)&&this.fa){try{this.fa()}catch(e){}this.fa=void 0}}else Xn(this,11)}else if((e.s||this.a==e)&&Kn(this),!M(t))for(t=n=this.ja.a.parse(t),n=0;n<t.length;n++){var r=t[n];if(this.O=r[0],r=r[1],2==this.u)if("c"==r[0]){this.H=r[1],this.ga=r[2];var i=r[3];null!=i&&(this.wa=i),null!=(r=r[5])&&l(r)&&0<r&&(this.D=1.5*r),this.o&&(r=e.a)&&((i=Nn(r,"X-Client-Wire-Protocol"))&&fn(this.b,i),this.j&&(r=Nn(r,"X-HTTP-Session-Id")))&&(this.I=r,Yt(this.B,this.j,r)),this.u=3,this.c&&this.c.va(),r=e,this.pa=Zn(this,this.Y()?this.ga:null,this.ha),r.s?(yn(this.b,r),(i=this.D)&&r.setTimeout(i),r.i&&(Et(r),kt(r)),this.a=r):qn(this),0<this.f.length&&Hn(this)}else"stop"!=r[0]&&"close"!=r[0]||Xn(this,7);else 3==this.u&&("stop"==r[0]||"close"==r[0]?"stop"==r[0]?Xn(this,7):Bn(this):"noop"!=r[0]&&this.c&&this.c.ua(r),this.v=0)}},r.Ya=function(){null!=this.s&&(this.s=null,this.a.cancel(),this.a=null,Wn(this),et(19))},r.na=function(e){var t=null;if(this.a==e){Kn(this),this.a=null;var n=2}else{if(!vn(this.b,e))return;t=e.j,yn(this.b,e),n=1}if(this.m=e.o,0!=this.u)if(e.b)1==n?(t=w()-e.v,Je.dispatchEvent(new tt(Je,e.l?e.l.length:0,t,this.A)),Hn(this)):qn(this);else{var r=e.c;if(3==r||0==r&&0<this.m||!(1==n&&function(e,t){return!(mn(e.b)>=e.b.f-(e.h?1:0))&&(e.h?(e.f=t.j.concat(e.f),!0):!(1==e.u||2==e.u||e.A>=(e.Oa?0:e.Pa))&&(e.h=nt(b(e.Ha,e,t),Jn(e,e.A)),e.A++,!0))}(this,e)||2==n&&Wn(this)))switch(t&&0<t.length&&(e=this.b,e.c=e.c.concat(t)),r){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this,6);break;default:Xn(this,2)}}},r.eb=function(e){et(e?2:1)},r.$=function(e){if(e&&!this.R)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Cn(this.Ka)).F=this.R,e},r.ma=function(){return!!this.c&&!0},r.Y=function(){return this.R},(r=er.prototype).va=function(){},r.ua=function(){},r.ta=function(){},r.sa=function(){},r.Sa=function(){},tr.prototype.a=function(e,t){return new nr(e,t)},k(nr,Te),(r=nr.prototype).addEventListener=function(e,t,n,r){nr.N.addEventListener.call(this,e,t,n,r)},r.removeEventListener=function(e,t,n,r){nr.N.removeEventListener.call(this,e,t,n,r)},r.Va=function(){this.a.c=this.f,this.l&&(this.a.R=!0);var e=this.a,t=this.m,n=this.g,r=this.b||void 0;et(0),e.ha=n,e.V=r||{},e.o&&(e.F.b=[],e.F.a=!1),e.w=new on(e),null===e.g&&(e.w.h=e.i),n=t,e.g&&e.i&&(n=Rn(t,e.g,e.i)),(e=e.w).i=n,t=Zn(e.a,null,e.i),et(3),null!=(n=e.a.F.b)?(e.f=n[0],e.M=1,an(e)):(Ft(t,"MODE","init"),!e.a.o&&e.a.j&&Ft(t,"X-HTTP-Session-Id",e.a.j),e.b=new ft(e,void 0,void 0),e.b.h=e.h,yt(e.b,t,!1,null),e.M=0)},r.close=function(){Bn(this.a)},r.Wa=function(e){if(s(e)){var t={};t.__data__=e,Fn(this.a,t)}else this.h?((t={}).__data__=Me(e),Fn(this.a,t)):Fn(this.a,e)},r.G=function(){this.a.c=null,delete this.f,Bn(this.a),delete this.a,nr.N.G.call(this)},k(rr,ut),k(ir,dt),k(or,er),or.prototype.va=function(){this.a.dispatchEvent("a")},or.prototype.ua=function(e){this.a.dispatchEvent(new rr(e))},or.prototype.ta=function(e){this.a.dispatchEvent(new ir(e))},or.prototype.sa=function(){this.a.dispatchEvent("b")};var ar=_((function(e,t){function n(){}n.prototype=e.prototype;var r=new n;return e.apply(r,Array.prototype.slice.call(arguments,1)),r}),tr);tr.prototype.createWebChannel=tr.prototype.a,nr.prototype.send=nr.prototype.Wa,nr.prototype.open=nr.prototype.Va,nr.prototype.close=nr.prototype.close,rt.NO_ERROR=0,rt.TIMEOUT=8,rt.HTTP_ERROR=6,it.COMPLETE="complete",st.EventType=ct,ct.OPEN="a",ct.CLOSE="b",ct.ERROR="c",ct.MESSAGE="d",Te.prototype.listen=Te.prototype.za,Cn.prototype.listenOnce=Cn.prototype.Aa,Cn.prototype.getLastError=Cn.prototype.Xa,Cn.prototype.getLastErrorCode=Cn.prototype.ya,Cn.prototype.getStatus=Cn.prototype.T,Cn.prototype.getResponseJson=Cn.prototype.Ua,Cn.prototype.getResponseText=Cn.prototype.aa,Cn.prototype.send=Cn.prototype.ca;var sr={createWebChannelTransport:ar,ErrorCode:rt,EventType:it,WebChannel:st,XhrIo:Cn},lr=sr.createWebChannelTransport,cr=sr.ErrorCode,ur=sr.EventType,dr=sr.WebChannel,hr=sr.XhrIo;t.default=sr}.call(this,n(10))},function(e,t,n){"use strict";var r,i=(r=n(6))&&"object"==typeof r&&"default"in r?r.default:r,o=n(4),a=n(14),s={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"},l=function(e){function t(n,r,i){var o=e.call(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o.code=n,o.details=i,o}return o.__extends(t,e),t}(Error);var c=function(){function e(e,t){var n=this;this.auth=null,this.messaging=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((function(e){return n.auth=e}),(function(){})),this.messaging||t.get().then((function(e){return n.messaging=e}),(function(){}))}return e.prototype.getAuthToken=function(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){switch(t.label){case 0:if(!this.auth)return[2,void 0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 3:return t.sent(),[2,void 0];case 4:return[2]}}))}))},e.prototype.getInstanceIdToken=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(e){return[2,void 0]}return[2]}))}))},e.prototype.getContext=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t;return o.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}}))}))},e}();function u(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}var d=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map((function(e){return t.encode(e)}));if("function"==typeof e||"object"==typeof e)return u(e,(function(e){return t.encode(e)}));throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null==e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=Number(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((function(e){return t.decode(e)})):"function"==typeof e||"object"==typeof e?u(e,(function(e){return t.decode(e)})):e},e}();var h=function(){function e(e,t,n,r){var i=this;void 0===r&&(r="us-central1"),this.app_=e,this.region_=r,this.serializer=new d,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return i.deleteService()}},this.contextProvider=new c(t,n),this.cancelAllRequests=new Promise((function(e){i.deleteService=function(){return e()}}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId,n=this.region_;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+t+"/"+n+"/"+e:"https://"+n+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e,t){var n=this;return function(r){return n.call(e,r,t||{})}},e.prototype.postJSON=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var r,i;return o.__generator(this,(function(o){switch(o.label){case 0:n.append("Content-Type","application/json"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return r=o.sent(),[3,4];case 3:return o.sent(),[2,{status:0,json:null}];case 4:i=null,o.label=5;case 5:return o.trys.push([5,7,,8]),[4,r.json()];case 6:return i=o.sent(),[3,8];case 7:return o.sent(),[3,8];case 8:return[2,{status:r.status,json:i}]}}))}))},e.prototype.call=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var r,i,a,c,u,d,h,f;return o.__generator(this,(function(o){switch(o.label){case 0:return r=this._url(e),t=this.serializer.encode(t),i={data:t},a=new Headers,[4,this.contextProvider.getContext()];case 1:return(c=o.sent()).authToken&&a.append("Authorization","Bearer "+c.authToken),c.instanceIdToken&&a.append("Firebase-Instance-ID-Token",c.instanceIdToken),u=n.timeout||7e4,[4,Promise.race([this.postJSON(r,i,a),(p=u,new Promise((function(e,t){setTimeout((function(){t(new l("deadline-exceeded","deadline-exceeded"))}),p)}))),this.cancelAllRequests])];case 2:if(!(d=o.sent()))throw new l("cancelled","Firebase Functions instance was deleted.");if(h=function(e,t,n){var r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r,o=void 0;try{var a=t&&t.error;if(a){var c=a.status;if("string"==typeof c){if(!s[c])return new l("internal","internal");r=s[c],i=c}var u=a.message;"string"==typeof u&&(i=u),void 0!==(o=a.details)&&(o=n.decode(o))}}catch(e){}return"ok"===r?null:new l(r,i,o)}(d.status,d.json,this.serializer))throw h;if(!d.json)throw new l("internal","Response is not valid JSON object.");if(void 0===(f=d.json.data)&&(f=d.json.result),void 0===f)throw new l("internal","Response is missing data field.");return[2,{data:this.serializer.decode(f)}]}var p}))}))},e}();function f(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),i=e.getProvider("messaging");return new h(n,r,i,t)}var p;p={Functions:h},i.INTERNAL.registerComponent(new a.Component("functions",f,"PUBLIC").setServiceProps(p).setMultipleInstances(!0)),i.registerVersion("@firebase/functions","0.4.38")},function(e,t,n){"use strict";n.r(t);var r,i=n(6),o=n.n(i),a=(n(36),n(14)),s=n(4),l=n(15),c=n(24),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r),d=new l.ErrorFactory("messaging","Messaging",u);function h(e){return d.create("missing-app-config-values",{valueName:e})}function f(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function p(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=i.sent(),!t.map((function(e){return e.name})).includes("fcm_token_details_db"))return[2,null];i.label=2;case 2:return n=null,[4,Object(c.openDb)("fcm_token_details_db",5,(function(t){return Object(s.__awaiter)(r,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains("fcm_token_object_Store")?[4,(r=t.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(e)]:[2];case 1:return i=s.sent(),[4,r.clear()];case 2:if(s.sent(),!i)return[2];if(2===t.oldVersion){if(!(o=i).auth||!o.p256dh||!o.endpoint)return[2];n={token:o.fcmToken,createTime:null!==(a=o.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"==typeof o.vapidKey?o.vapidKey:f(o.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(n={token:(o=i).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:f(o.auth),p256dh:f(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:f(o.vapidKey)}});return[2]}}))}))}))];case 3:return i.sent().close(),[4,Object(c.deleteDb)("fcm_token_details_db")];case 4:return i.sent(),[4,Object(c.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,Object(c.deleteDb)("undefined")];case 6:return i.sent(),[2,m(n)?n:null]}}))}))}function m(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}var v="firebase-messaging-store",g=null;function y(){return g||(g=Object(c.openDb)("firebase-messaging-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(v)}}))),g}function b(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=k(e),[4,y()];case 1:return[4,i.sent().transaction(v).objectStore(v).get(t)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,p(e.appConfig.senderId)];case 4:return(r=i.sent())?[4,_(e,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}))}))}function _(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return n=k(e),[4,y()];case 1:return r=o.sent(),[4,(i=r.transaction(v,"readwrite")).objectStore(v).put(t,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,t]}}))}))}function w(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=k(e),[4,y()];case 1:return n=i.sent(),[4,(r=n.transaction(v,"readwrite")).objectStore(v).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function k(e){return e.appConfig.appId}var S="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";function E(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,M(e)];case 1:n=s.sent(),r=$(t),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig),i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),d.create("token-subscribe-failed",{errorInfo:a});case 6:if(o.error)throw l=o.error.message,d.create("token-subscribe-failed",{errorInfo:l});if(!o.token)throw d.create("token-subscribe-no-token");return[2,o.token]}}))}))}function C(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,M(e)];case 1:n=s.sent(),r=$(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig)+"/"+t.token,i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),d.create("token-update-failed",{errorInfo:a});case 6:if(o.error)throw l=o.error.message,d.create("token-update-failed",{errorInfo:l});if(!o.token)throw d.create("token-update-no-token");return[2,o.token]}}))}))}function T(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,M(e)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw o=i.error.message,d.create("token-unsubscribe-failed",{errorInfo:o});return[3,6];case 5:throw a=s.sent(),d.create("token-unsubscribe-failed",{errorInfo:a});case 6:return[2]}}))}))}function x(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function M(e){var t=e.appConfig,n=e.installations;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}}))}))}function $(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,o={web:{endpoint:r,auth:n,p256dh:t}};return i!==S&&(o.web.applicationPubKey=i),o}var P;function O(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw d.create("permission-blocked");return[4,D(t,n)];case 1:return r=s.sent(),[4,b(e)];case 2:return i=s.sent(),o={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:f(r.getKey("auth")),p256dh:f(r.getKey("p256dh"))},i?[3,3]:[2,I(e,o)];case 3:if(l=i.subscriptionOptions,u=(c=o).vapidKey===l.vapidKey,h=c.endpoint===l.endpoint,p=c.auth===l.auth,m=c.p256dh===l.p256dh,u&&h&&p&&m)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,T(e,i.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,I(e,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,A({token:i.token,createTime:Date.now(),subscriptionOptions:o},e,t)]:[2,i.token];case 9:return[2]}var l,c,u,h,p,m}))}))}function L(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,b(e)];case 1:return(n=i.sent())?[4,T(e,n.token)]:[3,4];case 2:return i.sent(),[4,w(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}}))}))}function A(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,C(t,e)];case 1:return r=a.sent(),i=Object(s.__assign)({token:r,createTime:Date.now()},e),[4,_(t,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,L(t,n)];case 4:throw a.sent(),o;case 5:return[2]}}))}))}function I(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,E(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,_(e,r)];case 2:return i.sent(),[2,r.token]}}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t})]}}))}))}function N(e){return"object"==typeof e&&!!e&&"google.c.a.c_id"in e}!function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(P||(P={}));var R=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(e){return t.messageEventListener(e)}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),e.prototype.getToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return this.vapidKey||(this.vapidKey=S),[4,this.getServiceWorkerRegistration()];case 1:return e=t.sent(),"default"!==Notification.permission?[3,3]:[4,Notification.requestPermission()];case 2:t.sent(),t.label=3;case 3:if("granted"!==Notification.permission)throw d.create("permission-blocked");return[2,O(this.firebaseDependencies,e,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.getServiceWorkerRegistration()];case 1:return e=t.sent(),[2,L(this.firebaseDependencies,e)]}}))}))},e.prototype.requestPermission=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?d.create("permission-blocked"):d.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw d.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw d.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw d.create("invalid-sw-registration");if(this.swRegistration)throw d.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback="function"==typeof e?e:e.next,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw d.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.getServiceWorkerRegistration=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:if(this.swRegistration)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 2:return e.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,4];case 3:throw t=n.sent(),d.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 4:return[2,this.swRegistration]}}))}))},e.prototype.messageEventListener=function(e){var t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return(null===(t=e.data)||void 0===t?void 0:t.firebaseMessaging)?(n=e.data.firebaseMessaging,r=n.type,i=n.payload,this.onMessageCallback&&r===P.PUSH_RECEIVED&&this.onMessageCallback(i),N(o=i.data)&&"1"===o["google.c.a.e"]?[4,this.logEvent(r,o)]:[3,2]):[2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},e.prototype.logEvent=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case P.NOTIFICATION_CLICKED:return"notification_open";case P.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t["google.c.a.c_id"],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},e}();var j=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(e){e.waitUntil(t.onPush(e))})),self.addEventListener("pushsubscriptionchange",(function(e){e.waitUntil(t.onSubChange(e))})),self.addEventListener("notificationclick",(function(e){e.waitUntil(t.onNotificationClick(e))}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw d.create("invalid-bg-handler");this.bgMessageHandler=e},e.prototype.getToken=function(){var e,t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,b(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null==n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:S,r.label=2;case 2:return[2,O(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return L(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw d.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw d.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw d.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw d.create("only-available-in-window")},e.prototype.onMessage=function(){throw d.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw d.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}(e))?[4,F()]:[2];case 1:return function(e){return e.some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))}(n=i.sent())?[2,Y(n,t)]:(r=function(e){var t;if(!e||"object"!=typeof e.notification)return;var n=Object(s.__assign)({},e.notification);return n.data=Object(s.__assign)(Object(s.__assign)({},e.notification.data),((t={}).FCM_MSG=e,t)),n}(t))?[4,U(r)]:[3,3];case 2:return i.sent(),[3,5];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e.newSubscription?[3,2]:[4,L(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,b(this.firebaseDependencies)];case 3:return r=i.sent(),[4,L(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,O(this.firebaseDependencies,self.registration,null!==(n=null===(t=null==r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:S)];case 5:return i.sent(),[2]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return(r=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n.FCM_MSG)?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(i=function(e){var t,n,r,i=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;if(i)return i;return N(e.data)?self.location.origin:null}(r))?[4,B(i)]:[2]):[2];case 1:return(o=s.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return o=s.sent(),[4,(l=3e3,new Promise((function(e){setTimeout(e,l)})))];case 3:return s.sent(),[3,6];case 4:return[4,o.focus()];case 5:o=s.sent(),s.label=6;case 6:return o?(a=H(P.NOTIFICATION_CLICKED,r),[2,o.postMessage(a)]):[2]}var l}))}))},e}();function B(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o,a,l;return Object(s.__generator)(this,(function(c){switch(c.label){case 0:return t=new URL(e,self.location.href).href,[4,F()];case 1:n=c.sent();try{for(r=Object(s.__values)(n),i=r.next();!i.done;i=r.next())if(o=i.value,new URL(o.url,self.location.href).href===t)return[2,o]}catch(e){a={error:e}}finally{try{i&&!i.done&&(l=r.return)&&l.call(r)}finally{if(a)throw a.error}}return[2,null]}}))}))}function Y(e,t){var n,r,i=H(P.PUSH_RECEIVED,t);try{for(var o=Object(s.__values)(e),a=o.next();!a.done;a=o.next()){a.value.postMessage(i)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function F(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function H(e,t){return{firebaseMessaging:{type:e,payload:t}}}function U(e){var t,n=null!==(t=e.title)&&void 0!==t?t:"",r=e.actions,i=Notification.maxActions;return r&&i&&r.length>i&&console.warn("This browser only supports "+i+" actions. The remaining actions will not be displayed."),self.registration.showNotification(n,e)}var z={isSupported:V};function V(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}o.a.INTERNAL.registerComponent(new a.Component("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw h("App Configuration Object");if(!e.name)throw h("App Name");var r=e.options;try{for(var i=Object(s.__values)(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var a=o.value;if(!r[a])throw h(a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!V())throw d.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new j(n):new R(n)}),"PUBLIC").setServiceProps(z))},function(e,t,n){"use strict";n.r(t),n.d(t,"registerStorage",(function(){return vt}));var r=n(6),i=n.n(r),o=n(4),a=n(14),s=function(){function e(e,t){this.code_=x(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return x(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}(),l="unknown",c="object-not-found",u="quota-exceeded",d="unauthenticated",h="unauthorized",f="retry-limit-exceeded",p="canceled",m="invalid-url",v="invalid-default-bucket",g="no-default-bucket",y="cannot-slice-blob",b="server-file-wrong-size",_="no-download-url",w="invalid-argument",k="invalid-argument-count",S="app-deleted",E="invalid-root-operation",C="invalid-format",T="internal-error";function x(e){return"storage/"+e}function M(){return new s(l,"An unknown error occurred, please check the error payload for server response.")}function $(){return new s(p,"User canceled the upload/download.")}function P(){return new s(y,"Cannot slice blob for upload. Please retry the upload.")}function O(){return new s(_,"The given file does not have any download URLs.")}function L(e,t,n){return new s(w,"Invalid argument in `"+t+"` at index "+e+": "+n)}function A(){return new s(S,"The Firebase app was deleted.")}function I(e,t){return new s(C,"String does not match format '"+e+"': "+t)}function D(e){throw new s(T,"Internal error: "+e)}var N={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function R(e){switch(e){case N.RAW:case N.BASE64:case N.BASE64URL:case N.DATA_URL:return;default:throw"Expected one of the event types: ["+N.RAW+", "+N.BASE64+", "+N.BASE64URL+", "+N.DATA_URL+"]."}}var j=function(e,t){this.data=e,this.contentType=t||null};function B(e,t){switch(e){case N.RAW:return new j(Y(t));case N.BASE64:case N.BASE64URL:return new j(F(e,t));case N.DATA_URL:return new j((n=new H(t)).base64?F(N.BASE64,n.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(e){throw I(N.DATA_URL,"Malformed data URL.")}return Y(t)}(n.rest),function(e){return new H(e).contentType}(t))}var n;throw M()}function Y(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296==(64512&r))if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function F(e,t){switch(e){case N.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw I(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case N.BASE64URL:var i=-1!==t.indexOf("+"),o=-1!==t.indexOf("/");if(i||o)throw I(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(t){throw I(e,"Invalid character found")}for(var s=new Uint8Array(a.length),l=0;l<a.length;l++)s[l]=a.charCodeAt(l);return s}var H=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw I(N.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(r=n,i=";base64",r.length>=i.length&&r.substring(r.length-i.length)===i),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var r,i};var U,z={STATE_CHANGED:"state_changed"},V="running",q="pausing",W="paused",G="success",K="canceling",J="canceled",X="error",Q={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Z(e){switch(e){case V:case q:case K:return Q.RUNNING;case W:return Q.PAUSED;case G:return Q.SUCCESS;case J:return Q.CANCELED;case X:default:return Q.ERROR}}function ee(e){return null!=e}function te(e){return void 0!==e}function ne(e){return"function"==typeof e}function re(e){return"object"==typeof e}function ie(e){return re(e)&&null!==e}function oe(e){return"string"==typeof e||e instanceof String}function ae(e){return se(e)&&Number.isInteger(e)}function se(e){return"number"==typeof e||e instanceof Number}function le(e){return ce()&&e instanceof Blob}function ce(){return"undefined"!=typeof Blob}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(U||(U={}));var ue=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=U.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=U.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=U.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,r){if(this.sent_)throw D("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),ee(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return ee(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw D("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw D("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw D("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){ee(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){ee(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),de=function(){function e(){}return e.prototype.createXhrIo=function(){return new ue},e}();function he(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=he();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(ce())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var pe=function(){function e(e,t){var n=0,r="";le(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(le(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(ce()){var r=t.map((function(t){return t instanceof e?t.data_:t}));return new e(fe.apply(null,r))}var i=t.map((function(e){return oe(e)?B(N.RAW,e).data:e.data_})),o=0;i.forEach((function(e){o+=e.byteLength}));var a=new Uint8Array(o),s=0;return i.forEach((function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]})),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}(),me=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(n){return new e(t,"")}if(""===n.path)return n;throw new s(v,"Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t){var n=null;var r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");for(var i="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),o=[{regex:r,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+i+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:function(e){e.path_=decodeURIComponent(e.path)}}],a=0;a<o.length;a++){var l=o[a],c=l.regex.exec(t);if(c){var u=c[l.indices.bucket],d=c[l.indices.path];d||(d=""),n=new e(u,d),l.postModify(n);break}}if(null==n)throw function(e){return new s(m,"Invalid URL '"+e+"'.")}(t);return n},e}();function ve(e){var t,n;try{t=JSON.parse(e)}catch(e){return null}return re(n=t)&&!Array.isArray(n)?t:null}function ge(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}function ye(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function be(e){return"https://firebasestorage.googleapis.com/v0"+e}function _e(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function we(e,t){return t}var ke=function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||we},Se=null;function Ee(){if(Se)return Se;var e=[];e.push(new ke("bucket")),e.push(new ke("generation")),e.push(new ke("metageneration")),e.push(new ke("name","fullPath",!0));var t=new ke("name");t.xform=function(e,t){return function(e){return!oe(e)||e.length<2?e:ye(e)}(t)},e.push(t);var n=new ke("size");return n.xform=function(e,t){return ee(t)?Number(t):t},e.push(n),e.push(new ke("timeCreated")),e.push(new ke("updated")),e.push(new ke("md5Hash",null,!0)),e.push(new ke("cacheControl",null,!0)),e.push(new ke("contentDisposition",null,!0)),e.push(new ke("contentEncoding",null,!0)),e.push(new ke("contentLanguage",null,!0)),e.push(new ke("contentType",null,!0)),e.push(new ke("metadata","customMetadata",!0)),Se=e}function Ce(e,t,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,t[a.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new me(n,r);return t.makeStorageReference(i)}})}(r,e),r}function Te(e,t,n){var r=ve(t);return null===r?null:Ce(e,r,n)}function xe(e,t){for(var n={},r=t.length,i=0;i<r;i++){var o=t[i];o.writable&&(n[o.server]=e[o.local])}return JSON.stringify(n)}function Me(e){if(!re(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("customMetadata"===t){if(!re(n))throw"Expected object for 'customMetadata' mapping."}else if(ie(n))throw"Mapping for '"+t+"' cannot be an object."}}function $e(e,t){var n={prefixes:[],items:[],nextPageToken:t.nextPageToken},r=e.bucket();if(null===r)throw new s(g,"No default bucket found. Did you set the 'storageBucket' property when initializing the app?");if(t.prefixes)for(var i=0,o=t.prefixes;i<o.length;i++){var a=o[i].replace(/\/$/,""),l=e.makeStorageReference(new me(r,a));n.prefixes.push(l)}if(t.items)for(var c=0,u=t.items;c<u.length;c++){var d=u[c];l=e.makeStorageReference(new me(r,d.name));n.items.push(l)}return n}function Pe(e){if(!re(e)||!e)throw"Expected ListOptions object.";for(var t in e)if("maxResults"===t){if(!ae(e.maxResults)||e.maxResults<=0)throw"Expected maxResults to be a positive number.";if(e.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==t)throw"Unknown option: "+t;if(e.pageToken&&!oe(e.pageToken))throw"Expected pageToken to be string."}}var Oe=function(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Le(e){if(!e)throw M()}function Ae(e,t){return function(n,r){var i=Te(e,r,t);return Le(null!==i),i}}function Ie(e){return function(t,n){var r=function(e,t){var n=ve(t);return null===n?null:$e(e,n)}(e,n);return Le(null!==r),r}}function De(e,t){return function(n,r){var i=Te(e,r,t);return Le(null!==i),function(e,t){var n=ve(t);if(null===n)return null;if(!oe(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(t){var n=e.bucket,r=e.fullPath;return be("/b/"+i(n)+"/o/"+i(r))+_e({alt:"media",token:t})}))[0]}(i,r)}}function Ne(e){return function(t,n){var r,i,o;return 401===t.getStatus()?r=new s(d,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new s(u,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new s(h,"User does not have permission to access '"+i+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function Re(e){var t=Ne(e);return function(n,r){var i,o=t(n,r);return 404===n.getStatus()&&(i=e.path,o=new s(c,"Object '"+i+"' does not exist.")),o.setServerResponseProp(r.serverResponseProp()),o}}function je(e,t,n){var r=be(t.fullServerUrl()),i=e.maxOperationRetryTime(),o=new Oe(r,"GET",Ae(e,n),i);return o.errorHandler=Re(t),o}function Be(e,t,n,r,i){var o={};t.isRoot?o.prefix="":o.prefix=t.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var a=be(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime(),l=new Oe(a,"GET",Ie(e),s);return l.urlParams=o,l.errorHandler=Ne(t),l}function Ye(e,t,n){var r=be(t.fullServerUrl()),i=e.maxOperationRetryTime(),o=new Oe(r,"GET",De(e,n),i);return o.errorHandler=Re(t),o}function Fe(e,t,n,r){var i=be(t.fullServerUrl()),o=xe(n,r),a=e.maxOperationRetryTime(),s=new Oe(i,"PATCH",Ae(e,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=Re(t),s}function He(e,t){var n=be(t.fullServerUrl()),r=e.maxOperationRetryTime();var i=new Oe(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=Re(t),i}function Ue(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}var ze=function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null};function Ve(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Le(!1)}return Le(!!n&&-1!==(t||["active"]).indexOf(n)),n}function qe(e,t,n,r,i,o,a,l){var c=new ze(0,0);if(a?(c.current=a.current,c.total=a.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new s(b,"Server recorded incorrect upload file size, please retry the upload.");var u=c.total-c.current,d=u;i>0&&(d=Math.min(d,i));var h=c.current,f=h+d,p={"X-Goog-Upload-Command":d===u?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},m=r.slice(h,f);if(null===m)throw P();var v=t.maxUploadRetryTime(),g=new Oe(n,"POST",(function(e,n){var i,a=Ve(e,["active","final"]),s=c.current+d,l=r.size();return i="final"===a?Ae(t,o)(e,n):null,new ze(s,l,"final"===a,i)}),v);return g.headers=p,g.body=m.uploadData(),g.progressCallback=l||null,g.errorHandler=Ne(e),g}var We=function(e,t,n){if(ne(e)||ee(t)||ee(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}},Ge=function(e,t,n,r,i,o){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=i,this.ref=o};function Ke(e,t,n){for(var r=t.length,i=t.length,o=0;o<t.length;o++)if(t[o].optional){r=o;break}var a,l,c,u,d,h;if(!(r<=n.length&&n.length<=i))throw a=r,l=i,c=e,u=n.length,a===l?(d=a,h=1===a?"argument":"arguments"):(d="between "+a+" and "+l,h="arguments"),new s(k,"Invalid argument count in `"+c+"`: Expected "+d+" "+h+", received "+u+".");for(o=0;o<n.length;o++)try{t[o].validator(n[o])}catch(t){throw t instanceof Error?L(o,e,t.message):L(o,e,t)}}var Je=function(e,t){var n=this;this.validator=function(t){n.optional&&!te(t)||e(t)},this.optional=!!t};function Xe(e,t){function n(e){if(!oe(e))throw"Expected string."}var r,i,o;return e?(i=n,o=e,r=function(e){i(e),o(e)}):r=n,new Je(r,t)}function Qe(){return new Je((function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||ce()&&e instanceof Blob))throw"Expected Blob or File."}))}function Ze(e){return new Je(Me,e)}function et(e){return new Je(Pe,e)}function tt(){return new Je((function(e){if(!(se(e)&&e>=0))throw"Expected a number 0 or greater."}))}function nt(e,t){return new Je((function(t){if(!(null===t||ee(t)&&t instanceof Object))throw"Expected an Object.";null!=e&&e(t)}),t)}function rt(e){return new Je((function(e){if(!(null===e||ne(e)))throw"Expected a Function."}),e)}function it(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Promise.resolve().then((function(){return e.apply(void 0,t)}))}}var ot=function(){function e(e,t,n,r,i,o){var a=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=V,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(p)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(X))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(p)?a.completeTransitions_():(a.error_=e,a.transition_(X))},this.promise_=new Promise((function(e,t){a.resolve_=e,a.reject_=t,a.start_()})),this.promise_.then(null,(function(){}))}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n){return e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===V&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then((function(n){switch(t.state_){case V:e(n);break;case K:t.transition_(J);break;case q:t.transition_(W)}}))},e.prototype.createResumable_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a=Ue(t,r,i),s={name:a.fullPath},l=be(o),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},u=xe(a,n),d=e.maxUploadRetryTime(),h=new Oe(l,"POST",(function(e){var t;Ve(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Le(!1)}return Le(oe(t)),t}),d);return h.urlParams=s,h.headers=c,h.body=u,h.errorHandler=Ne(t),h}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_((function(n){var r=function(e,t,n,r){var i=e.maxUploadRetryTime(),o=new Oe(n,"POST",(function(e){var t=Ve(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Le(!1)}n||Le(!1);var i=Number(n);return Le(!isNaN(i)),new ze(i,r.size(),"final"===t)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=Ne(t),o}(e.authWrapper_,e.location_,t,e.blob_),i=e.authWrapper_.makeRequest(r,n);e.request_=i,i.getPromise().then((function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new ze(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=qe(e.location_,e.authWrapper_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(X)}var a=e.authWrapper_.makeRequest(o,i);e.request_=a,a.getPromise().then((function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(G)):e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_((function(t){var n=je(e.authWrapper_,e.location_,e.mappings_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.transition_(G)}),e.metadataErrorHandler_)}))},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var l=Ue(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+xe(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+s+"--",d=pe.getBlob(c,r,u);if(null===d)throw P();var h={name:l.fullPath},f=be(o),p=e.maxUploadRetryTime(),m=new Oe(f,"POST",Ae(e,n),p);return m.urlParams=h,m.headers=a,m.body=d.uploadData(),m.errorHandler=Ne(t),m}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(G)}),e.errorHandler_)}))},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case K:case q:this.state_=e,null!==this.request_&&this.request_.cancel();break;case V:var t=this.state_===W;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case W:this.state_=e,this.notifyObservers_();break;case J:this.error_=$(),this.state_=e,this.notifyObservers_();break;case X:case G:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case q:this.transition_(W);break;case K:this.transition_(J);break;case V:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=Z(this.state_);return new Ge(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,r){function i(){if(e!==z.STATE_CHANGED)throw"Expected one of the event types: ["+z.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=rt(!0).validator,s=nt(null,!0).validator;function l(e){try{return void a(e)}catch(e){}try{if(s(e),!(te(e.next)||te(e.error)||te(e.complete)))throw"";return}catch(e){throw o}}var c=[Xe(i),nt(l,!0),rt(!0),rt(!0)];Ke("on",c,arguments);var u=this;function d(e){return function(t,n,i){null!==e&&Ke("on",e,arguments);var o=new We(t,n,r);return u.addObserver_(o),function(){u.removeObserver_(o)}}}function h(e){if(null===e)throw o;l(e)}var f=[nt(h),rt(!0),rt(!0)],p=!(te(t)||te(n)||te(r));return p?d(f):d(null)(t,n,r)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),this.observers_.slice().forEach((function(t){e.notifyObserver_(t)}))},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(Z(this.state_)){case Q.SUCCESS:it(this.resolve_.bind(null,this.snapshot))();break;case Q.CANCELED:case Q.ERROR:it(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(Z(this.state_)){case Q.RUNNING:case Q.PAUSED:e.next&&it(e.next.bind(e,this.snapshot))();break;case Q.SUCCESS:e.complete&&it(e.complete.bind(e))();break;case Q.CANCELED:case Q.ERROR:e.error&&it(e.error.bind(e,this.error_))();break;default:e.error&&it(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){Ke("resume",[],arguments);var e=this.state_===W||this.state_===q;return e&&this.transition_(V),e},e.prototype.pause=function(){Ke("pause",[],arguments);var e=this.state_===V;return e&&this.transition_(q),e},e.prototype.cancel=function(){Ke("cancel",[],arguments);var e=this.state_===V||this.state_===q;return e&&this.transition_(K),e},e}(),at=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof me?t:me.makeFromUrl(t)}return e.prototype.toString=function(){return Ke("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return Ee()},e.prototype.child=function(e){Ke("child",[Xe()],arguments);var t=ge(this.location.path,e),n=new me(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new me(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new me(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return ye(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),Ke("put",[Qe(),Ze(!0)],arguments),this.throwIfRoot_("put"),new ot(this,this.authWrapper,this.location,this.mappings(),new pe(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=N.RAW),Ke("putString",[Xe(),Xe(R,!0),Ze(!0)],arguments),this.throwIfRoot_("putString");var r=B(t,e),i=Object.assign({},n);return!ee(i.contentType)&&ee(r.contentType)&&(i.contentType=r.contentType),new ot(this,this.authWrapper,this.location,this.mappings(),new pe(r.data,!0),i)},e.prototype.delete=function(){var e=this;return Ke("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(t){var n=He(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()}))},e.prototype.listAll=function(){Ke("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then((function(){return e}))},e.prototype.listAllHelper=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return n={pageToken:t},[4,this.list(n)];case 1:return r=o.sent(),(i=e.prefixes).push.apply(i,r.prefixes),(a=e.items).push.apply(a,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(e,r.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},e.prototype.list=function(e){Ke("list",[et(!0)],arguments);var t=this;return this.authWrapper.getAuthToken().then((function(n){var r=e||{},i=Be(t.authWrapper,t.location,"/",r.pageToken,r.maxResults);return t.authWrapper.makeRequest(i,n).getPromise()}))},e.prototype.getMetadata=function(){var e=this;return Ke("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(t){var n=je(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()}))},e.prototype.updateMetadata=function(e){var t=this;return Ke("updateMetadata",[Ze()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=Fe(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(r,n).getPromise()}))},e.prototype.getDownloadURL=function(){var e=this;return Ke("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(t){var n=Ye(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then((function(e){if(null===e)throw O();return e}))}))},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new s(E,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),st=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}(),lt=function(){function e(){this.map=new Map,this.id=-9007199254740991}return e.prototype.addRequest=function(e){var t=this,n=this.id;this.id++,this.map.set(n,e),e.getPromise().then((function(){return t.map.delete(n)}),(function(){return t.map.delete(n)}))},e.prototype.clear=function(){this.map.forEach((function(e){e&&e.cancel(!0)})),this.map.clear()},e}(),ct=function(){function e(t,n,r,i,o,a){var s;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var l=this.app_.options;ee(l)&&(this.bucket_=e.extractBucket_(l),this.appId_=null!==(s=l.appId)&&void 0!==s?s:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=a,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new lt}return e.extractBucket_=function(e){var t=e.storageBucket||null;return null==t?null:me.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){var e=this.authProvider_.getImmediate({optional:!0});return e?e.getToken().then((function(e){return null!==e?e.accessToken:null}),(function(){return null})):Promise.resolve(null)},e.prototype.bucket=function(){if(this.deleted_)throw A();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new st(A());var n=this.requestMaker_(e,this.appId_,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}();var ut=function(){function e(e,t,n,r,i,o,a,s,l,c,u){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=l,this.pool_=u,this.promise_=new Promise((function(e,t){d.resolve_=e,d.reject_=t,d.start_()}))}return e.prototype.start_=function(){var e=this;function t(t,n){var r,i=e.resolve_,o=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var l=e.callback_(a,a.getResponseText());te(l)?i(l):i()}catch(e){o(e)}else null!==a?((r=M()).setServerResponseProp(a.getResponseText()),e.errorCallback_?o(e.errorCallback_(a,r)):o(r)):n.canceled?o(r=e.appDelete_?A():$()):o(r=new s(f,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new dt(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,a=!1,s=0;function l(){return 2===s}var c=!1;function u(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c||(c=!0,t.apply(null,e))}function d(t){i=setTimeout((function(){i=null,e(h,l())}),t)}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!c)if(e)u.call.apply(u,Object(o.__spreadArrays)([null,e],t));else{var i,h=l()||a;if(h)u.call.apply(u,Object(o.__spreadArrays)([null,e],t));else r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),d(i)}}var f=!1;function p(e){f||(f=!0,c||(null!==i?(e||(s=2),clearTimeout(i),d(0)):e||(s=1)))}return d(0),setTimeout((function(){a=!0,p(!0)}),n),p}((function(t,n){if(n)t(!1,new dt(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(i),e.pendingXhr_=null;var r=(n=n).getErrorCode()===U.NO_ERROR,o=n.getStatus();if(r&&!e.isRetryStatusCode_(o)){var a=-1!==e.successCodes_.indexOf(o);t(!0,new dt(a,n))}else{var s=n.getErrorCode()===U.ABORT;t(!1,new dt(!1,null,s))}}))}function i(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}}),t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),r=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||r},e}(),dt=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};function ht(e,t,n,r){var o=_e(e.urlParams),a=e.url+o,s=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(s,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(s,n),function(e){var t=void 0!==i.a?i.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(s),new ut(a,e.method,s,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,r)}var ft=function(){function e(e,t,n,r){if(this.bucket_=null,this.authWrapper_=new ct(e,t,(function(e,t){return new at(e,t)}),ht,this,n),this.app_=e,null!=r)this.bucket_=me.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new me(i,""))}this.internals_=new pt(this)}return e.prototype.ref=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(Ke("ref",[Xe(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new at(this.authWrapper_,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{me.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}}return Ke("refFromURL",[Xe(t,!1)],arguments),new at(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){Ke("setMaxUploadRetryTime",[tt()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},e.prototype.setMaxOperationRetryTime=function(e){Ke("setMaxOperationRetryTime",[tt()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),pt=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},e}();function mt(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return new ft(n,r,new de,t)}function vt(e){var t={TaskState:Q,TaskEvent:z,StringFormat:N,Storage:ft,Reference:at};e.INTERNAL.registerComponent(new a.Component("storage",mt,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.30")}vt(i.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(6))&&"object"==typeof r&&"default"in r?r.default:r;n(36);var o,a,s,l,c=n(4),u=n(15),d=n(26),h=n(14),f=((o={})["trace started"]="Trace {$traceName} was started before.",o["trace stopped"]="Trace {$traceName} is not running.",o["no window"]="Window is not available.",o["no app id"]="App id is not available.",o["no project id"]="Project id is not available.",o["no api key"]="Api key is not available.",o["invalid cc log"]="Attempted to queue invalid cc event",o["FB not default"]="Performance can only start when Firebase app instance is the default one.",o["RC response not ok"]="RC response is not ok",o["invalid attribute name"]="Attribute name {$attributeName} is invalid.",o["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",o["invalide custom metric name"]="Custom metric name {$customMetricName} is invalid",o),p=new u.ErrorFactory("performance","Performance",f),m=function(){function e(e){if(this.window=e,!e)throw p.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay)}return e.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},e.prototype.mark=function(e){this.performance&&this.performance.mark&&this.performance.mark(e)},e.prototype.measure=function(e,t,n){this.performance&&this.performance.measure&&this.performance.measure(e,t,n)},e.prototype.getEntriesByType=function(e){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(e):[]},e.prototype.getEntriesByName=function(e){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(e):[]},e.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},e.prototype.requiredApisAvailable=function(){return!!(fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled)},e.prototype.setupObserver=function(e,t){this.PerformanceObserver&&new this.PerformanceObserver((function(e){for(var n=0,r=e.getEntries();n<r.length;n++){var i=r[n];t(i)}})).observe({entryTypes:[e]})},e.getInstance=function(){return void 0===a&&(a=new e(s)),a},e}();var v,g,y=function(){function e(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return e.prototype.getAppId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!e)throw p.create("no app id");return e},e.prototype.getProjectId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!e)throw p.create("no project id");return e},e.prototype.getApiKey=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!e)throw p.create("no api key");return e},e.getInstance=function(){return void 0===l&&(l=new e),l},e}();function b(){return v}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"}(g||(g={}));var _=["firebase_","google_","ga_"],w=new RegExp("^[a-zA-Z]\\w*$");function k(){var e=m.getInstance().navigator;return"serviceWorker"in e?e.serviceWorker.controller?2:3:1}function S(){switch(m.getInstance().document.visibilityState){case"visible":return g.VISIBLE;case"hidden":return g.HIDDEN;default:return g.UNKNOWN}}function E(){var e=m.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var C=new d.Logger("Performance");C.logLevel=d.LogLevel.INFO;var T=!0;function x(e){var t=function(){var e=m.getInstance().localStorage;if(!e)return;var t=e.getItem("@firebase/performance/configexpire");if(!(t&&(n=t,Number(n)>Date.now())))return;var n;var r=e.getItem("@firebase/performance/config");if(!r)return;try{return JSON.parse(r)}catch(e){return}}();return t?(M(t),Promise.resolve()):function(e){return(t=y.getInstance().installationsService.getToken(),t.then((function(e){})),t).then((function(t){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+y.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+y.getInstance().getApiKey(),r=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+t},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:y.getInstance().getAppId(),app_version:"0.2.36",sdk_version:"0.0.1"})});return fetch(r).then((function(e){if(e.ok)return e.json();throw p.create("RC response not ok")}))})).catch((function(){C.info("Could not fetch config, will use default configs")}));var t}(e).then((function(e){return M(e)})).then((function(e){return function(e){var t=m.getInstance().localStorage;if(!e||!t)return;t.setItem("@firebase/performance/config",JSON.stringify(e)),t.setItem("@firebase/performance/configexpire",String(Date.now()+60*y.getInstance().configTimeToLive*60*1e3))}(e)}),(function(){}))}function M(e){if(!e)return e;var t=y.getInstance(),n=e.entries||{};return void 0!==n.fpr_enabled?t.loggingEnabled="true"===String(n.fpr_enabled):t.loggingEnabled=T,n.fpr_log_source&&(t.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(t.logEndPointUrl=n.fpr_log_endpoint_url),void 0!==n.fpr_vc_network_request_sampling_rate&&(t.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(t.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),t.logTraceAfterSampling=$(t.tracesSamplingRate),t.logNetworkAfterSampling=$(t.networkRequestsSamplingRate),e}function $(e){return Math.random()<=e}var P,O=1;function L(){return O=2,P=P||function(){var e=m.getInstance().document;return new Promise((function(t){if(e&&"complete"!==e.readyState){var n=function(){"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()}))}().then((function(){return(e=y.getInstance().installationsService.getId()).then((function(e){v=e})),e;var e})).then((function(e){return x(e)})).then((function(){return A()}),(function(){return A()}))}function A(){O=3}var I,D=3,N=[],R=!1;function j(){R||(!function e(t){setTimeout((function(){if(0!==D){if(!N.length)return e(1e4);var t=c.__spreadArrays(N);N=[];var n=t.map((function(e){return{source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)}})),r={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:y.getInstance().logSource,log_event:n};fetch(y.getInstance().logEndPointUrl,{method:"POST",body:JSON.stringify(r)}).then((function(e){return e.ok||C.info("Call to Firebase backend failed."),e.json()})).then((function(t){var n=Number(t.next_request_wait_millis),r=isNaN(n)?1e4:Math.max(1e4,n);D=3,e(r)})).catch((function(){N=c.__spreadArrays(t,N),D--,C.info("Tries left: "+D+"."),e(1e4)}))}}),t)}(5500),R=!0)}function B(e){if(!e.eventTime||!e.message)throw p.create("invalid cc log");N=c.__spreadArrays(N,[e])}function Y(e,t){I||(I=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(void 0,t);B({message:r,eventTime:Date.now()})}}(U)),I(e,t)}function F(e){var t=y.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&m.getInstance().requiredApisAvailable()&&(e.isAuto&&S()!==g.VISIBLE||t.loggingEnabled&&t.logTraceAfterSampling&&(3===O?H(e):L().then((function(){return H(e)}),(function(){return H(e)}))))}function H(e){b()&&setTimeout((function(){return Y(e,1)}),0)}function U(e,t){return 0===t?(r={url:(n=e).url,http_method:n.httpMethod||0,http_response_code:200,response_payload_bytes:n.responsePayloadBytes,client_start_time_us:n.startTimeUs,time_to_response_initiated_us:n.timeToResponseInitiatedUs,time_to_response_completed_us:n.timeToResponseCompletedUs},i={application_info:z(),network_request_metric:r},JSON.stringify(i)):function(e){var t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);var n=e.getAttributes();0!==Object.keys(n).length&&(t.custom_attributes=n);var r={application_info:z(),trace_metric:t};return JSON.stringify(r)}(e);var n,r,i}function z(){return{google_app_id:y.getInstance().getAppId(),app_instance_id:b(),web_app_info:{sdk_version:"0.2.36",page_url:m.getInstance().getUrl(),service_worker_status:k(),visibility_state:S(),effective_connection_type:E()},application_process_state:0}}var V=["_fp","_fcp","_fid"];var q=function(){function e(e,t,n){void 0===t&&(t=!1),this.name=e,this.isAuto=t,this.state=1,this.customAttributes={},this.counters={},this.api=m.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||"FB-PERF-TRACE-MEASURE-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return e.prototype.start=function(){if(1!==this.state)throw p.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},e.prototype.stop=function(){if(2!==this.state)throw p.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),F(this)},e.prototype.record=function(e,t,n){if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=c.__assign({},n.attributes)),n&&n.metrics)for(var r=0,i=Object.keys(n.metrics);r<i.length;r++){var o=i[r];isNaN(Number(n.metrics[o]))||(this.counters[o]=Number(Math.floor(n.metrics[o])))}F(this)},e.prototype.incrementMetric=function(e,t){void 0===t&&(t=1),void 0===this.counters[e]&&this.putMetric(e,0),this.counters[e]+=t},e.prototype.putMetric=function(e,t){if(!function(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith("_wt_")&&V.indexOf(e)>-1||!e.startsWith("_"))}(e,this.name))throw p.create("invalide custom metric name",{customMetricName:e});this.counters[e]=t},e.prototype.getMetric=function(e){return this.counters[e]||0},e.prototype.putAttribute=function(e,t){var n=function(e){return!(0===e.length||e.length>40)&&(!_.some((function(t){return e.startsWith(t)}))&&!!e.match(w))}(e),r=function(e){return 0!==e.length&&e.length<=100}(t);if(n&&r)this.customAttributes[e]=t;else{if(!n)throw p.create("invalid attribute name",{attributeName:e});if(!r)throw p.create("invalid attribute value",{attributeValue:t})}},e.prototype.getAttribute=function(e){return this.customAttributes[e]},e.prototype.removeAttribute=function(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]},e.prototype.getAttributes=function(){return c.__assign({},this.customAttributes)},e.prototype.setStartTime=function(e){this.startTimeUs=e},e.prototype.setDuration=function(e){this.durationUs=e},e.prototype.calculateTraceMetrics=function(){var e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor(1e3*(t.startTime+this.api.getTimeOrigin())))},e.createOobTrace=function(t,n,r){var i=m.getInstance().getUrl();if(i){var o=new e("_wt_"+i,!0),a=Math.floor(1e3*m.getInstance().getTimeOrigin());o.setStartTime(a),t&&t[0]&&(o.setDuration(Math.floor(1e3*t[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));if(n){var s=n.find((function(e){return"first-paint"===e.name}));s&&s.startTime&&o.putMetric("_fp",Math.floor(1e3*s.startTime));var l=n.find((function(e){return"first-contentful-paint"===e.name}));l&&l.startTime&&o.putMetric("_fcp",Math.floor(1e3*l.startTime)),r&&o.putMetric("_fid",Math.floor(1e3*r))}F(o)}},e.createUserTimingTrace=function(t){F(new e(t,!1,t))},e}();function W(e){var t=e;if(t&&void 0!==t.responseStart){var n=m.getInstance().getTimeOrigin(),r=Math.floor(1e3*(t.startTime+n)),i=t.responseStart?Math.floor(1e3*(t.responseStart-t.startTime)):void 0,o=Math.floor(1e3*(t.responseEnd-t.startTime));!function(e){var t=y.getInstance();t.instrumentationEnabled&&e.url!==t.logEndPointUrl.split("?")[0]&&t.loggingEnabled&&t.logNetworkAfterSampling&&setTimeout((function(){return Y(e,0)}),0)}({url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o})}}function G(){b()&&(setTimeout((function(){return function(){var e=m.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");if(e.onFirstInputDelay){var r=setTimeout((function(){q.createOobTrace(t,n),r=void 0}),5e3);e.onFirstInputDelay((function(e){r&&(clearTimeout(r),q.createOobTrace(t,n,e))}))}else q.createOobTrace(t,n)}()}),0),setTimeout((function(){return function(){for(var e=m.getInstance(),t=e.getEntriesByType("resource"),n=0,r=t;n<r.length;n++){W(r[n])}e.setupObserver("resource",W)}()}),0),setTimeout((function(){return function(){for(var e=m.getInstance(),t=e.getEntriesByType("measure"),n=0,r=t;n<r.length;n++){K(r[n])}e.setupObserver("measure",K)}()}),0))}function K(e){var t=e.name;"FB-PERF-TRACE-MEASURE"!==t.substring(0,"FB-PERF-TRACE-MEASURE".length)&&q.createUserTimingTrace(t)}var J=function(){function e(e){this.app=e,m.getInstance().requiredApisAvailable()?(j(),L().then(G,G)):C.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled.")}return e.prototype.trace=function(e){return new q(e)},Object.defineProperty(e.prototype,"instrumentationEnabled",{get:function(){return y.getInstance().instrumentationEnabled},set:function(e){y.getInstance().instrumentationEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataCollectionEnabled",{get:function(){return y.getInstance().dataCollectionEnabled},set:function(e){y.getInstance().dataCollectionEnabled=e},enumerable:!0,configurable:!0}),e}();function X(e){var t=function(e,t){if("[DEFAULT]"!==e.name)throw p.create("FB not default");if("undefined"==typeof window)throw p.create("no window");return function(e){s=e}(window),y.getInstance().firebaseAppInstance=e,y.getInstance().installationsService=t,new J(e)};e.INTERNAL.registerComponent(new h.Component("performance",(function(e){var n=e.getProvider("app").getImmediate(),r=e.getProvider("installations").getImmediate();return t(n,r)}),"PUBLIC")),e.registerVersion("@firebase/performance","0.2.36")}X(i),t.registerPerformance=X},function(e,t,n){"use strict";n.r(t),n.d(t,"factory",(function(){return T})),n.d(t,"getGlobalVars",(function(){return E})),n.d(t,"registerAnalytics",(function(){return x})),n.d(t,"resetGlobalVars",(function(){return S})),n.d(t,"settings",(function(){return C}));var r,i,o=n(6),a=n.n(o),s=(n(36),n(4)),l=n(26),c=n(15),u=n(14),d="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(r||(r={})),function(e){e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(i||(i={}));var h,f=new l.Logger("@firebase/analytics");function p(e,t,n){var i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];window[t].push(arguments)};return window[n]&&"function"==typeof window[n]&&(i=window[n]),window[n]=function(e,t){return function(n,i,o){if(n===r.EVENT){var a=[];if(o&&o.send_to){var s=o.send_to;Array.isArray(s)||(s=[s]);for(var l=0,c=s;l<c.length;l++){var u=c[l],d=t[u];if(!d){a=[];break}a.push(d)}}if(0===a.length)for(var h=0,p=Object.values(t);h<p.length;h++){var m=p[h];a.push(m)}Promise.all(a).then((function(){return e(r.EVENT,i,o||{})})).catch((function(e){return f.error(e)}))}else if(n===r.CONFIG){(t[i]||Promise.resolve()).then((function(){e(r.CONFIG,i,o)})).catch((function(e){return f.error(e)}))}else e(r.SET,i)}}(i,e),{gtagCore:i,wrappedGtag:window[n]}}var m,v,g=((h={})["no-ga-id"]='"measurementId" field is empty in Firebase config. Firebase Analytics requires this field to contain a valid measurement ID.',h["already-exists"]="A Firebase Analytics instance with the measurement ID ${id}  already exists. Only one Firebase Analytics instance can be created for each measurement ID.",h["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",h["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate",h),y=new c.ErrorFactory("analytics","Analytics",g),b={},_="dataLayer",w="gtag",k=!1;function S(e,t){void 0===e&&(e=!1),void 0===t&&(t={}),k=e,b=t,_="dataLayer",w="gtag"}function E(){return{initializedIdPromisesMap:b}}function C(e){if(k)throw y.create("already-initialized");e.dataLayerName&&(_=e.dataLayerName),e.gtagName&&(w=e.gtagName)}function T(e,t){var n=e.options.measurementId;if(!n)throw y.create("no-ga-id");if(null!=b[n])throw y.create("already-exists",{id:n});if(!k){(function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(r.src&&r.src.includes(d))return r}return null})()||function(e){var t=document.createElement("script");t.src=d+"?l="+e,t.async=!0,document.head.appendChild(t)}(_),function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(_);var i=p(b,_,w),o=i.wrappedGtag,a=i.gtagCore;v=o,m=a,k=!0}return b[n]=function(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return[4,t.getId()];case 1:return i=a.sent(),n("js",new Date),n(r.CONFIG,e.options.measurementId,((o={}).firebase_id=i,o.origin="firebase",o.update=!0,o)),[2]}}))}))}(e,t,m),{app:e,logEvent:function(e,t,i){return function(e,t,n,i,o){var a=i||{};o&&o.global||(a=Object(s.__assign)(Object(s.__assign)({},i),{send_to:t})),e(r.EVENT,n,a||{})}(v,n,e,t,i)},setCurrentScreen:function(e,t){return function(e,t,n,i){i&&i.global?e(r.SET,{screen_name:n}):e(r.CONFIG,t,{update:!0,screen_name:n})}(v,n,e,t)},setUserId:function(e,t){return function(e,t,n,i){i&&i.global?e(r.SET,{user_id:n}):e(r.CONFIG,t,{update:!0,user_id:n})}(v,n,e,t)},setUserProperties:function(e,t){return function(e,t,n,i){if(i&&i.global){for(var o={},a=0,s=Object.keys(n);a<s.length;a++){var l=s[a];o["user_properties."+l]=n[l]}e(r.SET,o)}else e(r.CONFIG,t,{update:!0,user_properties:n})}(v,n,e,t)},setAnalyticsCollectionEnabled:function(e){return function(e,t){window["ga-disable-"+e]=!t}(n,e)}}}function x(e){e.INTERNAL.registerComponent(new u.Component("analytics",(function(e){return T(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:C,EventName:i})),e.INTERNAL.registerComponent(new u.Component("analytics-internal",(function(e){try{return{logEvent:e.getProvider("analytics").getImmediate().logEvent}}catch(e){throw y.create("interop-component-reg-failed",{reason:e})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.2.18")}x(a.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(6))&&"object"==typeof r&&"default"in r?r.default:r;n(36);var o,a=n(4),s=n(15),l=n(26),c=n(14),u=function(){function e(e,t,n,r){this.client=e,this.storage=t,this.storageCache=n,this.logger=r}return e.prototype.isCachedDataFresh=function(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-t,r=n<=e;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+e+". Is cache hit: "+r+"."),r},e.prototype.fetch=function(e){return a.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,o;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return t=a.sent(),n=t[0],(r=t[1])&&this.isCachedDataFresh(e.cacheMaxAgeMillis,n)?[2,r]:(e.eTag=r&&r.eTag,[4,this.client.fetch(e)]);case 2:return i=a.sent(),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===i.status&&o.push(this.storage.setLastSuccessfulFetchResponse(i)),[4,Promise.all(o)];case 3:return a.sent(),[2,i]}}))}))},e}(),d=((o={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",o["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",o["registration-api-key"]="Undefined API key. Check Firebase app initialization.",o["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",o["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",o["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",o["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",o["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",o["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",o["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',o["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',o["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",o["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",o),h=new s.ErrorFactory("remoteconfig","Remote Config",d);var f=function(){function e(e,t,n,r,i,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=o}return e.prototype.fetch=function(e){return a.__awaiter(this,void 0,void 0,(function(){var t,n,r,i,o,s,l,c,u,d,f,p,m,v,g,y,b,_,w;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:t=a.sent(),n=t[0],r=t[1],i=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",o=i+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,s={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},l={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:(void 0===k&&(k=navigator),k.languages&&k.languages[0]||k.language)},c={method:"POST",headers:s,body:JSON.stringify(l)},u=fetch(o,c),d=new Promise((function(t,n){e.signal.addEventListener((function(){var e=new Error("The operation was aborted.");e.name="AbortError",n(e)}))})),a.label=2;case 2:return a.trys.push([2,5,,6]),[4,Promise.race([u,d])];case 3:return a.sent(),[4,u];case 4:return f=a.sent(),[3,6];case 5:throw p=a.sent(),m="fetch-client-network","AbortError"===p.name&&(m="fetch-timeout"),h.create(m,{originalErrorMessage:p.message});case 6:if(v=f.status,g=f.headers.get("ETag")||void 0,200!==f.status)return[3,11];_=void 0,a.label=7;case 7:return a.trys.push([7,9,,10]),[4,f.json()];case 8:return _=a.sent(),[3,10];case 9:throw w=a.sent(),h.create("fetch-client-parse",{originalErrorMessage:w.message});case 10:y=_.entries,b=_.state,a.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===b?v=500:"NO_CHANGE"===b?v=304:"NO_TEMPLATE"!==b&&"EMPTY_CONFIG"!==b||(y={}),304!==v&&200!==v)throw h.create("fetch-status",{httpStatus:v});return[2,{status:v,eTag:g,config:y}]}var k}))}))},e}(),p=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}(),m=["1","true","t","yes","y","on"],v=function(){function e(e,t){void 0===t&&(t=""),this._source=e,this._value=t}return e.prototype.asString=function(){return this._value},e.prototype.asBoolean=function(){return"static"!==this._source&&m.indexOf(this._value.toLowerCase())>=0},e.prototype.asNumber=function(){if("static"===this._source)return 0;var e=Number(this._value);return isNaN(e)&&(e=0),e},e.prototype.getSource=function(){return this._source},e}(),g=function(){function e(e,t,n,r,i){this.app=e,this._client=t,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return e.prototype.setLogLevel=function(e){switch(e){case"debug":this._logger.logLevel=l.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=l.LogLevel.SILENT;break;default:this._logger.logLevel=l.LogLevel.ERROR}},Object.defineProperty(e.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!0,configurable:!0}),e.prototype.activate=function(){return a.__awaiter(this,void 0,void 0,(function(){var e,t,n;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return e=r.sent(),t=e[0],n=e[1],t&&t.config&&t.eTag&&t.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(t.config),this._storage.setActiveConfigEtag(t.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}}))}))},e.prototype.ensureInitialized=function(){var e=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){e._isInitializationComplete=!0}))),this._initializePromise},e.prototype.fetch=function(){return a.__awaiter(this,void 0,void 0,(function(){var e,t,n,r=this;return a.__generator(this,(function(i){switch(i.label){case 0:e=new p,setTimeout((function(){return a.__awaiter(r,void 0,void 0,(function(){return a.__generator(this,(function(t){return e.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:e})];case 2:return i.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return i.sent(),[3,6];case 4:return t=i.sent(),l="fetch-throttle",n=(o=t)instanceof s.FirebaseError&&-1!==o.code.indexOf(l)?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw i.sent(),t;case 6:return[2]}var o,l}))}))},e.prototype.fetchAndActivate=function(){return a.__awaiter(this,void 0,void 0,(function(){return a.__generator(this,(function(e){switch(e.label){case 0:return[4,this.fetch()];case 1:return e.sent(),[2,this.activate()]}}))}))},e.prototype.getAll=function(){var e=this;return function(e,t){void 0===e&&(e={});void 0===t&&(t={});return Object.keys(a.__assign(a.__assign({},e),t))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce((function(t,n){return t[n]=e.getValue(n),t}),{})},e.prototype.getBoolean=function(e){return this.getValue(e).asBoolean()},e.prototype.getNumber=function(e){return this.getValue(e).asNumber()},e.prototype.getString=function(e){return this.getValue(e).asString()},e.prototype.getValue=function(e){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+e+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var t=this._storageCache.getActiveConfig();return t&&void 0!==t[e]?new v("remote",t[e]):this.defaultConfig&&void 0!==this.defaultConfig[e]?new v("default",String(this.defaultConfig[e])):(this._logger.debug('Returning static value for key "'+e+'". Define a default or remote value if this is unintentional.'),new v("static"))},e}();function y(e,t){var n=e.target.error||void 0;return h.create(t,{originalErrorMessage:n&&n.message})}var b=function(){function e(e,t,n,r){void 0===r&&(r=new Promise((function(e,t){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(e){t(y(e,"storage-open"))},n.onsuccess=function(t){e(t.target.result)},n.onupgradeneeded=function(e){var t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore("app_namespace_store",{keyPath:"compositeKey"})}}}))),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=r}return e.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},e.prototype.setLastFetchStatus=function(e){return this.set("last_fetch_status",e)},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.set("last_successful_fetch_timestamp_millis",e)},e.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},e.prototype.setLastSuccessfulFetchResponse=function(e){return this.set("last_successful_fetch_response",e)},e.prototype.getActiveConfig=function(){return this.get("active_config")},e.prototype.setActiveConfig=function(e){return this.set("active_config",e)},e.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},e.prototype.setActiveConfigEtag=function(e){return this.set("active_config_etag",e)},e.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},e.prototype.setThrottleMetadata=function(e){return this.set("throttle_metadata",e)},e.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},e.prototype.get=function(e){return a.__awaiter(this,void 0,void 0,(function(){var t,n=this;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var o=t.transaction(["app_namespace_store"],"readonly").objectStore("app_namespace_store"),a=n.createCompositeKey(e);try{var s=o.get(a);s.onerror=function(e){i(y(e,"storage-get"))},s.onsuccess=function(e){var t=e.target.result;r(t?t.value:void 0)}}catch(e){i(h.create("storage-get",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.set=function(e,t){return a.__awaiter(this,void 0,void 0,(function(){var n,r=this;return a.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise((function(i,o){var a=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=r.createCompositeKey(e);try{var l=a.put({compositeKey:s,value:t});l.onerror=function(e){o(y(e,"storage-set"))},l.onsuccess=function(){i()}}catch(e){o(h.create("storage-set",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.delete=function(e){return a.__awaiter(this,void 0,void 0,(function(){var t,n=this;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var o=t.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),a=n.createCompositeKey(e);try{var s=o.delete(a);s.onerror=function(e){i(y(e,"storage-delete"))},s.onsuccess=function(){r()}}catch(e){i(h.create("storage-delete",{originalErrorMessage:e&&e.message}))}}))]}}))}))},e.prototype.createCompositeKey=function(e){return[this.appId,this.appName,this.namespace,e].join()},e}(),_=function(){function e(e){this.storage=e}return e.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},e.prototype.getActiveConfig=function(){return this.activeConfig},e.prototype.loadFromStorage=function(){return a.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,o;return a.__generator(this,(function(a){switch(a.label){case 0:return e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,e];case 1:return(r=a.sent())&&(this.lastFetchStatus=r),[4,t];case 2:return(i=a.sent())&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return(o=a.sent())&&(this.activeConfig=o),[2]}}))}))},e.prototype.setLastFetchStatus=function(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)},e.prototype.setActiveConfig=function(e){return this.activeConfig=e,this.storage.setActiveConfig(e)},e}();function w(e){var t=1e3*Math.pow(2,e),n=Math.round(.5*t*(Math.random()-.5)*2);return Math.min(144e5,t+n)}function k(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),o=setTimeout(n,i);e.addEventListener((function(){clearTimeout(o),r(h.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var S=function(){function e(e,t){this.client=e,this.storage=t}return e.prototype.fetch=function(e){return a.__awaiter(this,void 0,void 0,(function(){var t;return a.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return t=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(e,t)]}}))}))},e.prototype.attemptFetch=function(e,t){var n=t.throttleEndTimeMillis,r=t.backoffCount;return a.__awaiter(this,void 0,void 0,(function(){var t,i,o;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,k(e.signal,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,5,,7]),[4,this.client.fetch(e)];case 3:return t=a.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return a.sent(),[2,t];case 5:if(!function(e){if(!(e instanceof s.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(i=a.sent()))throw i;return o={throttleEndTimeMillis:Date.now()+w(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(o)];case 6:return a.sent(),[2,this.attemptFetch(e,o)];case 7:return[2]}}))}))},e}(),E="@firebase/remote-config";function C(e){e.INTERNAL.registerComponent(new c.Component("remoteConfig",(function(t,n){var r=t.getProvider("app").getImmediate(),i=t.getProvider("installations").getImmediate();if("undefined"==typeof window)throw h.create("registration-window");var o=r.options,a=o.projectId,s=o.apiKey,c=o.appId;if(!a)throw h.create("registration-project-id");if(!s)throw h.create("registration-api-key");if(!c)throw h.create("registration-app-id");n=n||"firebase";var d=new b(c,r.name,n),p=new _(d),m=new l.Logger(E);m.logLevel=l.LogLevel.ERROR;var v=new f(i,e.SDK_VERSION,n,a,s,c),y=new S(v,d),w=new u(y,d,p,m),k=new g(r,w,p,d,m);return k.ensureInitialized(),k}),"PUBLIC").setMultipleInstances(!0)),e.registerVersion(E,"0.1.17")}C(i),t.registerRemoteConfig=C},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof u?t:u,o=Object.create(i.prototype),a=new k(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c={};function u(){}function d(){}function h(){}var f={};f[i]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(S([])));m&&m!==t&&n.call(m,i)&&(f=m);var v=h.prototype=u.prototype=Object.create(f);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=v.constructor=h,h.constructor=d,h[a]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(s(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),v[a]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(43);n.n(r).a},function(e,t,n){var r={"./af":102,"./af.js":102,"./ar":103,"./ar-dz":104,"./ar-dz.js":104,"./ar-kw":105,"./ar-kw.js":105,"./ar-ly":106,"./ar-ly.js":106,"./ar-ma":107,"./ar-ma.js":107,"./ar-sa":108,"./ar-sa.js":108,"./ar-tn":109,"./ar-tn.js":109,"./ar.js":103,"./az":110,"./az.js":110,"./be":111,"./be.js":111,"./bg":112,"./bg.js":112,"./bm":113,"./bm.js":113,"./bn":114,"./bn.js":114,"./bo":115,"./bo.js":115,"./br":116,"./br.js":116,"./bs":117,"./bs.js":117,"./ca":118,"./ca.js":118,"./cs":119,"./cs.js":119,"./cv":120,"./cv.js":120,"./cy":121,"./cy.js":121,"./da":122,"./da.js":122,"./de":123,"./de-at":124,"./de-at.js":124,"./de-ch":125,"./de-ch.js":125,"./de.js":123,"./dv":126,"./dv.js":126,"./el":127,"./el.js":127,"./en-SG":128,"./en-SG.js":128,"./en-au":129,"./en-au.js":129,"./en-ca":130,"./en-ca.js":130,"./en-gb":131,"./en-gb.js":131,"./en-ie":132,"./en-ie.js":132,"./en-il":133,"./en-il.js":133,"./en-nz":134,"./en-nz.js":134,"./eo":135,"./eo.js":135,"./es":136,"./es-do":137,"./es-do.js":137,"./es-us":138,"./es-us.js":138,"./es.js":136,"./et":139,"./et.js":139,"./eu":140,"./eu.js":140,"./fa":141,"./fa.js":141,"./fi":142,"./fi.js":142,"./fo":143,"./fo.js":143,"./fr":144,"./fr-ca":145,"./fr-ca.js":145,"./fr-ch":146,"./fr-ch.js":146,"./fr.js":144,"./fy":147,"./fy.js":147,"./ga":148,"./ga.js":148,"./gd":149,"./gd.js":149,"./gl":150,"./gl.js":150,"./gom-latn":151,"./gom-latn.js":151,"./gu":152,"./gu.js":152,"./he":153,"./he.js":153,"./hi":154,"./hi.js":154,"./hr":155,"./hr.js":155,"./hu":156,"./hu.js":156,"./hy-am":157,"./hy-am.js":157,"./id":158,"./id.js":158,"./is":159,"./is.js":159,"./it":160,"./it-ch":161,"./it-ch.js":161,"./it.js":160,"./ja":162,"./ja.js":162,"./jv":163,"./jv.js":163,"./ka":164,"./ka.js":164,"./kk":165,"./kk.js":165,"./km":166,"./km.js":166,"./kn":167,"./kn.js":167,"./ko":168,"./ko.js":168,"./ku":169,"./ku.js":169,"./ky":170,"./ky.js":170,"./lb":171,"./lb.js":171,"./lo":172,"./lo.js":172,"./lt":173,"./lt.js":173,"./lv":174,"./lv.js":174,"./me":175,"./me.js":175,"./mi":176,"./mi.js":176,"./mk":177,"./mk.js":177,"./ml":178,"./ml.js":178,"./mn":179,"./mn.js":179,"./mr":180,"./mr.js":180,"./ms":181,"./ms-my":182,"./ms-my.js":182,"./ms.js":181,"./mt":183,"./mt.js":183,"./my":184,"./my.js":184,"./nb":185,"./nb.js":185,"./ne":186,"./ne.js":186,"./nl":187,"./nl-be":188,"./nl-be.js":188,"./nl.js":187,"./nn":189,"./nn.js":189,"./pa-in":190,"./pa-in.js":190,"./pl":191,"./pl.js":191,"./pt":192,"./pt-br":193,"./pt-br.js":193,"./pt.js":192,"./ro":194,"./ro.js":194,"./ru":195,"./ru.js":195,"./sd":196,"./sd.js":196,"./se":197,"./se.js":197,"./si":198,"./si.js":198,"./sk":199,"./sk.js":199,"./sl":200,"./sl.js":200,"./sq":201,"./sq.js":201,"./sr":202,"./sr-cyrl":203,"./sr-cyrl.js":203,"./sr.js":202,"./ss":204,"./ss.js":204,"./sv":205,"./sv.js":205,"./sw":206,"./sw.js":206,"./ta":207,"./ta.js":207,"./te":208,"./te.js":208,"./tet":209,"./tet.js":209,"./tg":210,"./tg.js":210,"./th":211,"./th.js":211,"./tl-ph":212,"./tl-ph.js":212,"./tlh":213,"./tlh.js":213,"./tr":214,"./tr.js":214,"./tzl":215,"./tzl.js":215,"./tzm":216,"./tzm-latn":217,"./tzm-latn.js":217,"./tzm.js":216,"./ug-cn":218,"./ug-cn.js":218,"./uk":219,"./uk.js":219,"./ur":220,"./ur.js":220,"./uz":221,"./uz-latn":222,"./uz-latn.js":222,"./uz.js":221,"./vi":223,"./vi.js":223,"./x-pseudo":224,"./x-pseudo.js":224,"./yo":225,"./yo.js":225,"./zh-cn":226,"./zh-cn.js":226,"./zh-hk":227,"./zh-hk.js":227,"./zh-tw":228,"./zh-tw.js":228};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=292},function(e,t,n){"use strict";var r=n(44);n.n(r).a},function(e,t,n){"use strict";var r=n(45);n.n(r).a},function(e,t,n){"use strict";var r=n(46);n.n(r).a},function(e,t,n){"use strict";var r=n(47);n.n(r).a},function(e,t,n){"use strict";var r=n(48);n.n(r).a},function(e,t,n){"use strict";var r=n(49);n.n(r).a},function(e,t,n){"use strict";var r=n(50);n.n(r).a},function(e,t,n){"use strict";var r=n(51);n.n(r).a},function(e,t,n){"use strict";var r=n(52);n.n(r).a},function(e,t,n){"use strict";var r=n(53);n.n(r).a},function(e,t,n){"use strict";var r=n(54);n.n(r).a},function(e,t,n){},function(e,t,n){"use strict";var r=n(55);n.n(r).a},function(e,t,n){"use strict";n.r(t),t.default=n.p+"images/googleimage.png"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"images/appleimage.png"},function(e,t,n){"use strict";var r=n(56);n.n(r).a},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(27),t.createHash=t.Hash=n(29),t.createHmac=t.Hmac=n(237);var r=n(326),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=n(240);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=n(328);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var l=n(343);t.DiffieHellmanGroup=l.DiffieHellmanGroup,t.createDiffieHellmanGroup=l.createDiffieHellmanGroup,t.getDiffieHellman=l.getDiffieHellman,t.createDiffieHellman=l.createDiffieHellman,t.DiffieHellman=l.DiffieHellman;var c=n(348);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=n(382);var u=n(383);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var d=n(386);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(9).Buffer,i=n(314);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(10))},function(e,t,n){"use strict";e.exports=o;var r=n(234),i=Object.create(n(31));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(8),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(89)},function(e,t,n){e.exports=n(25)},function(e,t,n){e.exports=n(30).Transform},function(e,t,n){e.exports=n(30).PassThrough},function(e,t,n){var r=n(8),i=n(28),o=n(9).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((t=r)<<5|t>>>27)+u(f,i,o,s)+l+n[h]+a[f];l=s,s=o,o=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var r=n(8),i=n(28),o=n(9).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,l=0|this._e,h=0;h<16;++h)n[h]=e.readInt32BE(4*h);for(;h<80;++h)n[h]=(t=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=c(r)+d(p,i,o,s)+l+n[f]+a[p]|0;l=s,s=o,o=u(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var r=n(8),i=n(235),o=n(28),a=n(9).Buffer,s=new Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}r(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},function(e,t,n){var r=n(8),i=n(236),o=n(28),a=n(9).Buffer,s=new Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}r(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},function(e,t,n){"use strict";var r=n(8),i=n(9).Buffer,o=n(21),a=i.alloc(128);function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,a],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,n){e.exports=n(239)},function(e,t,n){(function(t,r){var i,o=n(241),a=n(242),s=n(243),l=n(9).Buffer,c=t.crypto&&t.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return l.from(e)}))}e.exports=function(e,n,f,p,m,v){"function"==typeof m&&(v=m,m=void 0);var g=u[(m=m||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=s(e,n,f,p,m)}catch(e){return v(e)}v(null,t)}));if(o(e,n,f,p),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");l.isBuffer(e)||(e=l.from(e,a)),l.isBuffer(n)||(n=l.from(n,a)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var n=h(i=i||l.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=n,n}(g).then((function(t){return t?h(e,n,f,p,g):s(e,n,f,p,m)})),v)}}).call(this,n(10),n(13))},function(e,t,n){var r=n(329),i=n(94),o=n(95),a=n(342),s=n(40);function l(e,t,n){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function c(e,t,n){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),o[e])n=o[e].key,r=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),o[e])n=o[e].key,r=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,n){var r=n(21),i=n(330),o=n(8),a=n(9).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=a.concat([o,o.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=i.create({key:o,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,o(l,r),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(244),t.Cipher=n(93),t.DES=n(245),t.CBC=n(331),t.EDE=n(332)},function(e,t,n){"use strict";var r=n(16),i=n(8),o={};function a(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(o),r=0;r<n.length;r++){var a=n[r];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,n,r);for(s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{o._update.call(this,e,t,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,n){"use strict";var r=n(16),i=n(8),o=n(93),a=n(245);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function l(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(l,o),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},function(e,t,n){var r=n(95),i=n(249),o=n(9).Buffer,a=n(250),s=n(21),l=n(39),c=n(40);function u(e,t,n){s.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}n(8)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return o.concat(r)};var d=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function f(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=o.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return o.concat([this.cache,t])},t.createCipheriv=f,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=c(t,!1,n.key,n.iv);return f(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(32);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(9).Buffer,i=n(32);function o(e,t,n){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=r.concat([e._prev,n?t:a]),a}t.encrypt=function(e,t,n){for(var i,a=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){a=r.concat([a,o(e,t,n)]);break}i=e._cache.length,a=r.concat([a,o(e,t.slice(0,i),n)]),t=t.slice(i)}return a}},function(e,t,n){var r=n(9).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var o=t.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],n);return a}},function(e,t,n){var r=n(9).Buffer;function i(e,t,n){for(var r,i,a=-1,s=0;++a<8;)r=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=o(e._prev,n?r:i);return s}function o(e,t){var n=e.length,i=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,n){for(var o=t.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],n);return a}},function(e,t,n){(function(e){var r=n(32);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,o)}}).call(this,n(11).Buffer)},function(e,t,n){var r=n(9).Buffer,i=r.alloc(16,0);function o(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,n){var r=n(249),i=n(9).Buffer,o=n(95),a=n(250),s=n(21),l=n(39),c=n(40);function u(e,t,n){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e,t,n){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}n(8)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=o[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(t,!1,n.key,n.iv);return h(e,r.key,r.iv)},t.createDecipheriv=h},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(251),i=n(346),o=n(347);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new o(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,l){return e.isBuffer(i)||void 0===a[i]?t(n,"binary",i,s):(i=i||"binary",l=l||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,l)),"number"==typeof n?new o(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new o(n,s,!0)))}}).call(this,n(11).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(12),i=new(n(252)),o=new r(24),a=new r(11),s=new r(10),l=new r(3),c=new r(7),u=n(251),d=n(27);function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function f(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var p={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=f):this._primeCode=8}function v(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in p)return p[r];var d,h=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return h+=1,h+="02"===n||"05"===n?8:4,p[r]=h,h;switch(i.test(e.shrn(1))||(h+=2),n){case"02":e.mod(o).cmp(a)&&(h+=8);break;case"05":(d=e.mod(s)).cmp(l)&&d.cmp(c)&&(h+=8);break;default:h+=4}return p[r]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),o=this.getPrime();if(i.length<o.length){var a=new t(o.length-i.length);a.fill(0),i=t.concat([a,i])}return i},m.prototype.getPublicKey=function(e){return v(this._pub,e)},m.prototype.getPrivateKey=function(e){return v(this._priv,e)},m.prototype.getPrime=function(e){return v(this.__prime,e)},m.prototype.getGenerator=function(e){return v(this._gen,e)},m.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(11).Buffer)},function(e,t,n){(function(t){var r=n(29),i=n(87),o=n(8),a=n(349),s=n(381),l=n(239);function c(e){i.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){i.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function h(e){return new u(e)}Object.keys(l).forEach((function(e){l[e].id=new t(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),o(c,i.Writable),c.prototype._write=function(e,t,n){this._hash.update(e),n()},c.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=a(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(u,i.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},u.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var i=this._hash.digest();return s(n,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}}).call(this,n(11).Buffer)},function(e,t,n){(function(t){var r=n(237),i=n(97),o=n(98).ec,a=n(12),s=n(42),l=n(262);function c(e,n,i,o){if((e=new t(e.toArray())).length<n.byteLength()){var a=new t(n.byteLength()-e.length);a.fill(0),e=t.concat([a,e])}var s=i.length,l=function(e,n){e=(e=u(e,n)).mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var i=new t(n.byteLength()-r.length);i.fill(0),r=t.concat([i,r])}return r}(i,n),c=new t(s);c.fill(1);var d=new t(s);return d.fill(0),d=r(o,d).update(c).update(new t([0])).update(e).update(l).digest(),c=r(o,d).update(c).digest(),{k:d=r(o,d).update(c).update(new t([1])).update(e).update(l).digest(),v:c=r(o,d).update(c).digest()}}function u(e,t){var n=new a(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function d(e,n,i){var o,a;do{for(o=new t(0);8*o.length<e.bitLength();)n.v=r(i,n.k).update(n.v).digest(),o=t.concat([o,n.v]);a=u(o,e),n.k=r(i,n.k).update(n.v).update(new t([0])).digest(),n.v=r(i,n.k).update(n.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,n,r){return e.toRed(a.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,n,r,f,p){var m=s(n);if(m.curve){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");return function(e,n){var r=l[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var i=new o(r).keyFromPrivate(n.privateKey).sign(e);return new t(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==f)throw new Error("wrong private key type");return function(e,n,r){var i,o=n.params.priv_key,s=n.params.p,l=n.params.q,f=n.params.g,p=new a(0),m=u(e,l).mod(l),v=!1,g=c(o,l,e,r);for(;!1===v;)i=d(l,g,r),p=h(f,i,s,l),0===(v=i.invm(l).imul(m.add(o.mul(p))).mod(l)).cmpn(0)&&(v=!1,p=new a(0));return function(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e));128&n[0]&&(n=[0].concat(n));var r=[48,e.length+n.length+4,2,e.length];return r=r.concat(e,[2,n.length],n),new t(r)}(p,v)}(e,m,r)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");e=t.concat([p,e]);for(var v=m.modulus.byteLength(),g=[0,1];e.length+g.length+1<v;)g.push(255);g.push(0);for(var y=-1;++y<e.length;)g.push(e[y]);return i(g,m)},e.exports.getKey=c,e.exports.makeKey=d}).call(this,n(11).Buffer)},function(e){e.exports=JSON.parse('{"_from":"elliptic@^6.0.0","_id":"elliptic@6.5.2","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"elliptic@^6.0.0","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.0.0","saveSpec":null,"fetchSpec":"^6.0.0"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_shasum":"05c5678d7173c049d8ca433552224a495d0e3762","_spec":"elliptic@^6.0.0","_where":"/Users/cyruschan/vueproject/whatwhatchat/node_modules/browserify-sign","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"bundleDependencies":false,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"deprecated":false,"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},function(e,t,n){"use strict";var r=n(17),i=n(12),o=n(8),a=n(41),s=r.assert;function l(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,a),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),g=new i(1),y=0;0!==h.cmpn(0);){var b=f.div(h);c=f.sub(b.mul(h)),u=v.sub(b.mul(p));var _=g.sub(b.mul(m));if(!r&&c.cmp(d)<0)t=l.neg(),n=p,r=c.neg(),o=u;else if(r&&2==++y)break;l=c,f=h,h=c,v=p,p=u,g=m,m=_}a=c.neg(),s=u;var w=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),r[2*o]=s,r[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return c},o(c,a.BasePoint),l.prototype.point=function(e,t,n){return new c(this,e,t,n)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=r.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=n.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(n=0;n<e;n++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(l)),p=o.redMul(d),m=f.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=f.redMul(v);g=g.redIAdd(g).redISub(h);var y=c.redMul(s);n+1<e&&(l=l.redMul(h)),o=m,s=y,c=g}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),v=h.redIAdd(h);v=(v=v.redIAdd(v)).redIAdd(v),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(v),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var v=d.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=f.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(d).redISub(h),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,h,f)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(12),i=n(8),o=n(41),a=n(17);function s(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(l,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(17),i=n(12),o=n(8),a=n(41),s=r.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,n,r,o){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,a),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},o(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),l=i.redMul(a),c=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),l=a.redSub(s).redISub(s);e=r.redSub(i).redISub(o).redMul(l),t=a.redMul(c.redSub(o)),n=a.redMul(l)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),l=c.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(c)).redMul(l),t=this.curve._mulC(c).redMul(i.redISub(o)),n=c.redMul(l)}return this.curve.point(e,t,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),l=n.redAdd(t),c=o.redMul(a),u=s.redMul(l),d=o.redMul(l),h=a.redMul(s);return this.curve.point(c,u,h,d)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(l).redMul(u);return this.curve.twisted?(t=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=l.redMul(c)):(t=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,n)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,n){"use strict";t.sha1=n(355),t.sha224=n(356),t.sha256=n(256),t.sha384=n(357),t.sha512=n(257)},function(e,t,n){"use strict";var r=n(20),i=n(33),o=n(255),a=r.rotl32,s=r.sum32,l=r.sum32_5,c=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],h=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=l(a(i,5),c(p,o,u,h),f,n[r],d[p]);f=h,h=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(20),i=n(256);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(20),i=n(257);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(20),i=n(33),o=r.rotl32,a=r.sum32,s=r.sum32_3,l=r.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],y=n,b=r,_=i,w=c,k=u,S=0;S<80;S++){var E=a(o(l(n,d(S,r,i,c),e[p[S]+t],h(S)),v[S]),u);n=u,u=c,c=o(i,10),i=r,r=E,E=a(o(l(y,d(79-S,b,_,w),e[m[S]+t],f(S)),g[S]),k),y=k,k=w,w=o(_,10),_=b,b=E}E=s(this.h[1],i,w),this.h[1]=s(this.h[2],c,k),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,_),this.h[0]=E},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(20),i=n(16);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";var r=n(12),i=n(362),o=n(17),a=n(99),s=n(96),l=o.assert,c=n(363),u=n(364);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(t.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),l=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new r(1)),h=0;;h++){var f=o.k?o.k(h):new r(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=f.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new u({r:v,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,n,i){l((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new r(e),s=t.r,c=t.s,d=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=t.r.invm(o),p=o.sub(a).mul(f).umod(o),m=c.mul(f).umod(o);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(100),i=n(253),o=n(16);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(n),this._reseed++,i.encode(a,t)}},function(e,t,n){"use strict";var r=n(12),i=n(17).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,n){return t instanceof o?t:new o(e,{pub:t,pubEnc:n})},o.fromPrivate=function(e,t,n){return t instanceof o?t:new o(e,{priv:t,privEnc:n})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(12),i=n(17),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function c(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;if(l(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=l(e,n),a=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var c=l(e,n);if(e.length!==c+n.place)return!1;var u=e.slice(n.place,c+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new r(a),this.s=new r(u),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var o=r.concat(n),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,n){"use strict";var r=n(100),i=n(99),o=n(17),a=o.assert,s=o.parseBytes,l=n(366),c=n(367);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),l=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(17),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";var r=n(12),i=n(17),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},function(e,t,n){"use strict";var r=n(34);t.certificate=n(378);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=l;var c=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var d=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d;var h=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(34),i=n(8);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=n(370).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(e),(function(t){n[t]=e[t]})),forEach(globals,(function(t){e[t]&&(n[t]=e[t])}));var o=Object_keys(n),a=r.call(n,this.code);return forEach(Object_keys(n),(function(t){(t in e||-1===indexOf(o,t))&&(e[t]=n[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,n[t])})),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(8);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){var r=n(35).Reporter,i=n(35).EncoderBuffer,o=n(35).DecoderBuffer,a=n(16),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},c.prototype._wrap=function(){var e=this._baseState;l.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(a(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(n),this}})),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(a=this._peekTag(e,l,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)c=e.save();var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(c):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var f=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(f,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},c.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},c.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(o){var a=e.save(),s=n.choice[o];try{var l=s._decode(e,t);if(e.isError(l))return!1;r={type:o,value:l},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},c.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),l))}else null!==i.use?o=this._getUse(i.use,n)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,s,u,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(259);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(260),r.pem=n(375)},function(e,t,n){var r=n(8),i=n(11).Buffer,o=n(260);function a(e){o.call(this,e),this.enc="pem"}r(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,c=0;c<n.length;c++){var u=n[c].match(a);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;l=c;break}if("BEGIN"!==u[1])break;s=c}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+r);var d=n.slice(s+1,l).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(d,"base64");return o.prototype.decode.call(this,h,t)}},function(e,t,n){var r=t;r.der=n(261),r.pem=n(377)},function(e,t,n){var r=n(8),i=n(261);function o(e){i.call(this,e),this.enc="pem"}r(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],o=0;o<n.length;o+=64)r.push(n.slice(o,o+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(34),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),l=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=r.define("RDNSequence",(function(){this.seqof(l)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),d=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=n(40),s=n(94),l=n(9).Buffer;e.exports=function(e,t){var n,c=e.toString(),u=c.match(r);if(u){var d="aes"+u[1],h=l.from(u[2],"hex"),f=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=a(t,h.slice(0,8),parseInt(u[1],10)).key,m=[],v=s.createDecipheriv(d,p,h);m.push(v.update(f)),m.push(v.final()),n=l.concat(m)}else{var g=c.match(o);n=new l(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:n}}},function(e,t,n){(function(t){var r=n(12),i=n(98).ec,o=n(42),a=n(262);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,n,l,c,u){var d=o(l);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new i(r),s=n.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,n,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,n){var i=n.data.p,a=n.data.q,l=n.data.g,c=n.data.pub_key,u=o.signature.decode(e,"der"),d=u.s,h=u.r;s(d,a),s(h,a);var f=r.mont(i),p=d.invm(a);return 0===l.toRed(f).redPow(new r(t).mul(p).mod(a)).fromRed().mul(c.toRed(f).redPow(h.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(h)}(e,n,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");n=t.concat([u,n]);for(var h=d.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<h;)f.push(255),p++;f.push(0);for(var m=-1;++m<n.length;)f.push(n[m]);f=new t(f);var v=r.mont(d.modulus);e=(e=new r(e).toRed(v)).redPow(new r(d.publicExponent)),e=new t(e.fromRed().toArray());var g=p<8?1:0;for(h=Math.min(e.length,f.length),e.length!==f.length&&(g=1),m=-1;++m<h;)g|=e[m]^f[m];return 0===g}}).call(this,n(11).Buffer)},function(e,t,n){(function(t){var r=n(98),i=n(12);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var o=new t(r-i.length);o.fill(0),i=t.concat([o,i])}return n?i.toString(n):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(11).Buffer)},function(e,t,n){t.publicEncrypt=n(384),t.privateDecrypt=n(385),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(42),i=n(27),o=n(29),a=n(263),s=n(264),l=n(12),c=n(265),u=n(97),d=n(9).Buffer;e.exports=function(e,t,n){var h;h=e.padding?e.padding:n?1:4;var f,p=r(e);if(4===h)f=function(e,t){var n=e.modulus.byteLength(),r=t.length,c=o("sha1").update(d.alloc(0)).digest(),u=c.length,h=2*u;if(r>n-h-2)throw new Error("message too long");var f=d.alloc(n-r-h-2),p=n-u-1,m=i(u),v=s(d.concat([c,f,d.alloc(1,1),t],p),a(m,p)),g=s(m,a(v,u));return new l(d.concat([d.alloc(1),g,v],n))}(p,t);else if(1===h)f=function(e,t,n){var r,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");r=n?d.alloc(a-o-3,255):function(e){var t,n=d.allocUnsafe(e),r=0,o=i(2*e),a=0;for(;r<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(n[r++]=t);return n}(a-o-3);return new l(d.concat([d.from([0,n?1:2]),r,d.alloc(1),t],a))}(p,t,n);else{if(3!==h)throw new Error("unknown padding");if((f=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?u(f,p):c(f,p)}},function(e,t,n){var r=n(42),i=n(263),o=n(264),a=n(12),s=n(97),l=n(29),c=n(265),u=n(9).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var h,f=r(e),p=f.modulus.byteLength();if(t.length>p||new a(t).cmp(f.modulus)>=0)throw new Error("decryption error");h=n?c(new a(t),f):s(t,f);var m=u.alloc(p-h.length);if(h=u.concat([m,h],p),4===d)return function(e,t){var n=e.modulus.byteLength(),r=l("sha1").update(u.alloc(0)).digest(),a=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),d=o(s,i(c,a)),h=o(c,i(d,n-a-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,h.slice(0,a)))throw new Error("decryption error");var f=a;for(;0===h[f];)f++;if(1!==h[f++])throw new Error("decryption error");return h.slice(f)}(f,h);if(1===d)return function(e,t,n){var r=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,h,n);if(3===d)return h;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=n(9),a=n(27),s=o.Buffer,l=o.kMaxLength,c=e.crypto||e.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function h(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>l)throw new RangeError("buffer too small")}function f(e,t,n,i){if(r.browser){var o=e.buffer,s=new Uint8Array(o,t,n);return c.getRandomValues(s),i?void r.nextTick((function(){i(null,e)})):e}if(!i)return a(n).copy(e,t),e;a(n,(function(n,r){if(n)return i(n);r.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(n,t.length),h(r,n,t.length),f(t,n,r,i)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(n,t.length),void 0===r&&(r=t.length-n);return h(r,n,t.length),f(t,n,r)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,n(10),n(13))},function(e,t,n){"use strict";var r=n(57);n.n(r).a},function(e,t,n){"use strict";var r=n(58);n.n(r).a},function(e,t,n){"use strict";var r=n(59);n.n(r).a},function(e,t,n){"use strict";var r=n(60);n.n(r).a},function(e,t,n){"use strict";var r=n(61);n.n(r).a},function(e,t,n){"use strict";var r=n(62);n.n(r).a},function(e,t,n){"use strict";var r=n(63);n.n(r).a},function(e,t,n){"use strict";var r=n(64);n.n(r).a},function(e,t,n){"use strict";var r=n(65);n.n(r).a},function(e,t,n){"use strict";var r=n(66);n.n(r).a},function(e,t,n){"use strict";var r=n(67);n.n(r).a},function(e,t,n){"use strict";var r=n(68);n.n(r).a},function(e,t,n){"use strict";var r=n(69);n.n(r).a},function(e,t,n){"use strict";var r=n(70);n.n(r).a},function(e,t,n){"use strict";var r=n(71);n.n(r).a},function(e,t,n){"use strict";var r=n(72);n.n(r).a},function(e,t,n){"use strict";var r=n(73);n.n(r).a},function(e,t,n){"use strict";var r=n(74);n.n(r).a},function(e,t,n){"use strict";var r=n(75);n.n(r).a},function(e,t,n){"use strict";var r=n(76);n.n(r).a},function(e,t,n){"use strict";var r=n(77);n.n(r).a},function(e,t,n){"use strict";var r=n(78);n.n(r).a},function(e,t,n){"use strict";var r=n(79);n.n(r).a},function(e,t,n){"use strict";var r=n(80);n.n(r).a},function(e,t,n){"use strict";var r=n(81);n.n(r).a},function(e,t,n){var r,i,o=n(266),a=n(267),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==h){var f=o();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=i=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,v=p-s+(m-l)/1e4;if(v<0&&void 0===e.clockseq&&(h=h+1&16383),(v<0||p>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,l=m,i=h;var g=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var y=p/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var b=0;b<6;++b)u[c+b]=d[b];return t||a(u)}},function(e,t,n){var r=n(266),i=n(267);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(13))},function(e,t,n){(function(e){var r=n(416),i=n(270),o=n(418),a=n(419),s=n(271),l=t;l.request=function(t,n){t="string"==typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,l=t.hostname||t.host,c=t.port,u=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var d=new r(t);return n&&d.on("response",n),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(10))},function(e,t,n){(function(t,r,i){var o=n(269),a=n(8),s=n(270),l=n(30),c=n(417),u=s.IncomingMessage,d=s.readyStates;var h=e.exports=function(e){var n,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(h,l.Writable),h.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===f.indexOf(n)&&(this._headers[n]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?c(t.concat(e._body)):o.blobConstructor?new r.Blob(e._body.map((function(e){return c(e)})),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(a).forEach((function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach((function(e){l.push([t,e])})):l.push([t,n])})),"fetch"===e._mode){var u=null;if(o.abortController){var h=new AbortController;u=h.signal,e._fetchAbortController=h,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new r.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(f.timeout=n.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),l.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(s)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},h.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,n){this._body.push(e),n()},h.prototype.abort=h.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},h.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(this,e,t,n)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(11).Buffer,n(10),n(13))},function(e,t,n){var r=n(11).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i<n;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){(function(e,r){var i;!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function m(e){throw new RangeError(h[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return v(e,(function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=p(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=36)e=f(e/35);return f(r+36*e/(e+38))}function k(e){var t,n,r,i,o,a,s,c,u,d,h,p=[],v=e.length,g=0,y=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),p.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(o=g,a=1,s=36;i>=v&&m("invalid-input"),((c=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>f((l-g)/a))&&m("overflow"),g+=c*a,!(c<(u=s<=_?1:s>=_+26?26:s-_));s+=36)a>f(l/(d=36-u))&&m("overflow"),a*=d;_=w(g-o,t=p.length+1,0==o),f(g/t)>l-y&&m("overflow"),y+=f(g/t),g%=t,p.splice(g++,0,y)}return b(p)}function S(e){var t,n,r,i,o,a,s,c,u,d,h,v,g,b,k,S=[];for(v=(e=y(e)).length,t=128,n=0,o=72,a=0;a<v;++a)(h=e[a])<128&&S.push(p(h));for(r=i=S.length,i&&S.push("-");r<v;){for(s=l,a=0;a<v;++a)(h=e[a])>=t&&h<s&&(s=h);for(s-t>f((l-n)/(g=r+1))&&m("overflow"),n+=(s-t)*g,t=s,a=0;a<v;++a)if((h=e[a])<t&&++n>l&&m("overflow"),h==t){for(c=n,u=36;!(c<(d=u<=o?1:u>=o+26?26:u-o));u+=36)k=c-d,b=36-d,S.push(p(_(d+k%b,0))),c=f(k/b);S.push(p(_(c,0))),o=w(n,g,r==i),n=0,++r}++n,++t}return S.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:k,encode:S,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(37)(e),n(10))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(423),t.encode=t.stringify=n(424)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,h,f,p,m=e[u].replace(s,"%20"),v=m.indexOf(n);v>=0?(d=m.substr(0,v),h=m.substr(v+1)):(d=m,h=""),f=decodeURIComponent(d),p=decodeURIComponent(h),r(a,f)?i(a[f])?a[f].push(p):a[f]=[a[f],p]:a[f]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return $v})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return Lv})),n.d(r,"hasStandardBrowserEnv",(function(){return Ov})),n.d(r,"navigator",(function(){return Pv})),n.d(r,"origin",(function(){return Av}));var i=n(5),o=n(19),a="undefined"==typeof document?{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[]}}},location:{hash:""}}:document,s="undefined"==typeof window?{document:a,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;var l=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=0;n<t.length;n+=1)this[n]=t[n];return this.length=t.length,this};function c(e,t){var n=[],r=0;if(e&&!t&&e instanceof l)return e;if(e)if("string"==typeof e){var i,o,c=e.trim();if(c.indexOf("<")>=0&&c.indexOf(">")>=0){var u="div";for(0===c.indexOf("<li")&&(u="ul"),0===c.indexOf("<tr")&&(u="tbody"),0!==c.indexOf("<td")&&0!==c.indexOf("<th")||(u="tr"),0===c.indexOf("<tbody")&&(u="table"),0===c.indexOf("<option")&&(u="select"),(o=a.createElement(u)).innerHTML=c,r=0;r<o.childNodes.length;r+=1)n.push(o.childNodes[r])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||a).querySelectorAll(e.trim()):[a.getElementById(e.trim().split("#")[1])],r=0;r<i.length;r+=1)i[r]&&n.push(i[r])}else if(e.nodeType||e===s||e===a)n.push(e);else if(e.length>0&&e[0].nodeType)for(r=0;r<e.length;r+=1)n.push(e[r]);return new l(n)}function u(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return s.requestAnimationFrame?s.requestAnimationFrame(e):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(e):s.setTimeout(e,1e3/60)}c.fn=l.prototype,c.Class=l,c.Dom7=l;var h=Object.freeze({addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.add(t[n]);return this},removeClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.toggle(t[n]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},prop:function(e,t){if(1!==arguments.length||"string"!=typeof e){for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n][e]=t;else for(var r in e)this[n][r]=e[r];return this}if(this[0])return this[0][e]},data:function(e,t){var n;if(void 0!==t){for(var r=0;r<this.length;r+=1)(n=this[r]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-".concat(e));return i||void 0}},removeData:function(e){for(var t=0;t<this.length;t+=1){var n=this[t];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var o=e.attributes[i];o.name.indexOf("data-")>=0&&(n[(t=o.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}},val:function(e){if(void 0!==e){for(var t=0;t<this.length;t+=1){var n=this[t];if(Array.isArray(e)&&n.multiple&&"select"===n.nodeName.toLowerCase())for(var r=0;r<n.options.length;r+=1)n.options[r].selected=e.indexOf(n.options[r].value)>=0;else n.value=e}return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var i=[],o=0;o<this[0].selectedOptions.length;o+=1)i.push(this[0].selectedOptions[o].value);return i}return this[0].value}},transform:function(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){"string"!=typeof e&&(e="".concat(e,"ms"));for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),c(t).is(i))o.apply(t,n);else for(var r=c(t).parents(),a=0;a<r.length;a+=1)c(r[a]).is(i)&&o.apply(r[a],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var u,d=r.split(" "),h=0;h<this.length;h+=1){var f=this[h];if(i)for(u=0;u<d.length;u+=1){var p=d[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:o,proxyListener:s}),f.addEventListener(p,s,a)}else for(u=0;u<d.length;u+=1){var m=d[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:o,proxyListener:l}),f.addEventListener(m,l,a)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!i&&d.dom7Listeners?h=d.dom7Listeners[c]:i&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var f=h.length-1;f>=0;f-=1){var p=h[f];o&&p.listener===o||o&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===o?(d.removeEventListener(c,p.proxyListener,a),h.splice(f,1)):o||(d.removeEventListener(c,p.proxyListener,a),h.splice(f,1))}}return this},once:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],s=n[3];function l(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a.apply(this,n),e.off(i,o,l,s),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof n[1]&&(i=n[0],a=n[1],s=n[2],o=void 0),l.dom7proxy=a,e.on(i,o,l,s)},trigger:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0].split(" "),i=t[1],o=0;o<r.length;o+=1)for(var l=r[o],c=0;c<this.length;c+=1){var u=this[c],d=void 0;try{d=new s.CustomEvent(l,{detail:i,bubbles:!0,cancelable:!0})}catch(e){(d=a.createEvent("Event")).initEvent(l,!0,!0),d.detail=i}u.dom7EventData=t.filter((function(e,t){return t>0})),u.dispatchEvent(d),u.dom7EventData=[],delete u.dom7EventData}return this},transitionEnd:function(e){var t,n=["webkitTransitionEnd","transitionend"],r=this;function i(o){if(o.target===this)for(e.call(this,o),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this},animationEnd:function(e){var t,n=["webkitAnimationEnd","animationend"],r=this;function i(o){if(o.target===this)for(e.call(this,o),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this},width:function(){return this[0]===s?s.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===s?s.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){if(e){var 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){var e=this[0],t=e.getBoundingClientRect(),n=a.body,r=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,o=e===s?s.scrollY:e.scrollTop,l=e===s?s.scrollX:e.scrollLeft;return{top:t.top+o-r,left:t.left+l-i}}return null},hide:function(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this},show:function(){for(var e=0;e<this.length;e+=1){var t=this[e];"none"===t.style.display&&(t.style.display=""),"none"===s.getComputedStyle(t,null).getPropertyValue("display")&&(t.style.display="block")}return this},styles:function(){return this[0]?s.getComputedStyle(this[0],null):{}},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var r in e)this[n].style[r]=e[r];return this}if(this[0])return s.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this},toArray:function(){for(var e=[],t=0;t<this.length;t+=1)e.push(this[t]);return e},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},forEach:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],this[t],t))return this;return this},filter:function(e){for(var t=[],n=0;n<this.length;n+=1)e.call(this[n],n,this[n])&&t.push(this[n]);return new l(t)},map:function(e){for(var t=[],n=0;n<this.length;n+=1)t.push(e.call(this[n],n,this[n]));return new l(t)},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,n,r=this[0];if(!r||void 0===e)return!1;if("string"==typeof e){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(t=c(e),n=0;n<t.length;n+=1)if(t[n]===r)return!0;return!1}if(e===a)return r===a;if(e===s)return r===s;if(e.nodeType||e instanceof l){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===r)return!0;return!1}return!1},indexOf:function(e){for(var t=0;t<this.length;t+=1)if(this[t]===e)return t;return-1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,n=this.length;return new l(e>n-1?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=0;t<arguments.length;t+=1){e=t<0||arguments.length<=t?void 0:arguments[t];for(var n=0;n<this.length;n+=1)if("string"==typeof e){var r=a.createElement("div");for(r.innerHTML=e;r.firstChild;)this[n].appendChild(r.firstChild)}else if(e instanceof l)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this},appendTo:function(e){return c(e).append(this),this},prepend:function(e){var t,n;for(t=0;t<this.length;t+=1)if("string"==typeof e){var r=a.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(r.childNodes[n],this[t].childNodes[0])}else if(e instanceof l)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},prependTo:function(e){return c(e).prepend(this),this},insertBefore:function(e){for(var t=c(e),n=0;n<this.length;n+=1)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0]);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r])},insertAfter:function(e){for(var t=c(e),n=0;n<this.length;n+=1)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0].nextSibling);else if(t.length>1)for(var r=0;r<t.length;r+=1)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r].nextSibling)},next:function(e){return this.length>0?e?this[0].nextElementSibling&&c(this[0].nextElementSibling).is(e)?new l([this[0].nextElementSibling]):new l([]):this[0].nextElementSibling?new l([this[0].nextElementSibling]):new l([]):new l([])},nextAll:function(e){var t=[],n=this[0];if(!n)return new l([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?c(r).is(e)&&t.push(r):t.push(r),n=r}return new l(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&c(t.previousElementSibling).is(e)?new l([t.previousElementSibling]):new l([]):t.previousElementSibling?new l([t.previousElementSibling]):new l([])}return new l([])},prevAll:function(e){var t=[],n=this[0];if(!n)return new l([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?c(r).is(e)&&t.push(r):t.push(r),n=r}return new l(t)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?c(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return c(u(t))},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?c(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return c(u(t))},closest:function(e){var t=this;return void 0===e?new l([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return new l(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].childNodes,i=0;i<r.length;i+=1)e?1===r[i].nodeType&&c(r[i]).is(e)&&t.push(r[i]):1===r[i].nodeType&&t.push(r[i]);return new l(u(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},detach:function(){return this.remove()},add:function(){for(var e,t,n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(e=0;e<i.length;e+=1){var a=c(i[e]);for(t=0;t<a.length;t+=1)n[n.length]=a[t],n.length+=1}return n},empty:function(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}});var f=Object.freeze({scrollTo:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4];return 4===t.length&&"function"==typeof a&&(s=a,r=t[0],i=t[1],o=t[2],s=t[3],a=t[4]),void 0===a&&(a="swing"),this.each((function(){var e,t,n,l,c,u,h,f,p=this,m=i>0||0===i,v=r>0||0===r;if(void 0===a&&(a="swing"),m&&(e=p.scrollTop,o||(p.scrollTop=i)),v&&(t=p.scrollLeft,o||(p.scrollLeft=r)),o){m&&(n=p.scrollHeight-p.offsetHeight,c=Math.max(Math.min(i,n),0)),v&&(l=p.scrollWidth-p.offsetWidth,u=Math.max(Math.min(r,l),0));var g=null;m&&c===e&&(m=!1),v&&u===t&&(v=!1),d((function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();null===g&&(g=r);var i,l=Math.max(Math.min((r-g)/o,1),0),y="linear"===a?l:.5-Math.cos(l*Math.PI)/2;m&&(h=e+y*(c-e)),v&&(f=t+y*(u-t)),m&&c>e&&h>=c&&(p.scrollTop=c,i=!0),m&&c<e&&h<=c&&(p.scrollTop=c,i=!0),v&&u>t&&f>=u&&(p.scrollLeft=u,i=!0),v&&u<t&&f<=u&&(p.scrollLeft=u,i=!0),i?s&&s():(m&&(p.scrollTop=h),v&&(p.scrollLeft=f),d(n))}))}}))},scrollTop:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];3===t.length&&"function"==typeof o&&(r=t[0],i=t[1],a=t[2],o=t[3]);var s=this;return void 0===r?s.length>0?s[0].scrollTop:null:s.scrollTo(void 0,r,i,o,a)},scrollLeft:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];3===t.length&&"function"==typeof o&&(r=t[0],i=t[1],a=t[2],o=t[3]);var s=this;return void 0===r?s.length>0?s[0].scrollLeft:null:s.scrollTo(r,void 0,i,o,a)}});var p=Object.freeze({animate:function(e,t){var n,r=this,i={props:Object.assign({},e),params:Object.assign({duration:300,easing:"swing"},t),elements:r,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){var e;i.frameId&&(e=i.frameId,s.cancelAnimationFrame?s.cancelAnimationFrame(e):s.webkitCancelAnimationFrame?s.webkitCancelAnimationFrame(e):s.clearTimeout(e)),i.animating=!1,i.elements.each((function(e,t){delete t.dom7AnimateInstance})),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each((function(e,t){delete t.dom7AnimateInstance})),e&&e(r),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){if(i.animating)return i.que.push([e,t]),i;var n=[];i.elements.each((function(t,r){var o,a,l,c,u;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),n[t]={container:r},Object.keys(e).forEach((function(i){o=s.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),a=parseFloat(o),l=o.replace(a,""),c=parseFloat(e[i]),u=e[i]+l,n[t][i]={initialFullValue:o,initialValue:a,unit:l,finalValue:c,finalFullValue:u,currentValue:a}}))}));var o,a,l=null,c=0,u=0,h=!1;return i.animating=!0,i.frameId=d((function s(){var f,p;o=(new Date).getTime(),h||(h=!0,t.begin&&t.begin(r)),null===l&&(l=o),t.progress&&t.progress(r,Math.max(Math.min((o-l)/t.duration,1),0),l+t.duration-o<0?0:l+t.duration-o,l),n.forEach((function(r){var s=r;a||s.done||Object.keys(e).forEach((function(r){if(!a&&!s.done){f=Math.max(Math.min((o-l)/t.duration,1),0),p=i.easingProgress(t.easing,f);var d=s[r],h=d.initialValue,m=d.finalValue,v=d.unit;s[r].currentValue=h+p*(m-h);var g=s[r].currentValue;(m>h&&g>=m||m<h&&g<=m)&&(s.container.style[r]=m+v,(u+=1)===Object.keys(e).length&&(s.done=!0,c+=1),c===n.length&&(a=!0)),a?i.done(t.complete):s.container.style[r]=g+v}}))})),a||(i.frameId=d(s))})),i}};if(0===i.elements.length)return r;for(var o=0;o<i.elements.length;o+=1)i.elements[o].dom7AnimateInstance?n=i.elements[o].dom7AnimateInstance:i.elements[o].dom7AnimateInstance=i;return n||(n=i),"stop"===e?n.stop():n.animate(i.props,i.params),r},stop:function(){for(var e=0;e<this.length;e+=1)this[e].dom7AnimateInstance&&this[e].dom7AnimateInstance.stop()}}),m="resize scroll".split(" ");function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)m.indexOf(e)<0&&(e in this[i]?this[i][e]():c(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}[h,f,p,Object.freeze({click:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["click"].concat(t))},blur:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["blur"].concat(t))},focus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["focus"].concat(t))},focusin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["focusin"].concat(t))},focusout:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["focusout"].concat(t))},keyup:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["keyup"].concat(t))},keydown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["keydown"].concat(t))},keypress:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["keypress"].concat(t))},submit:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["submit"].concat(t))},change:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["change"].concat(t))},mousedown:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mousedown"].concat(t))},mousemove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mousemove"].concat(t))},mouseup:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseup"].concat(t))},mouseenter:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseenter"].concat(t))},mouseleave:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseleave"].concat(t))},mouseout:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseout"].concat(t))},mouseover:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["mouseover"].concat(t))},touchstart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["touchstart"].concat(t))},touchend:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["touchend"].concat(t))},touchmove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["touchmove"].concat(t))},resize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["resize"].concat(t))},scroll:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.bind(this).apply(void 0,["scroll"].concat(t))}})].forEach((function(e){Object.keys(e).forEach((function(t){c.fn[t]=e[t]}))}));var g=c;function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}for(var k=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"ŒŒ"},{base:"oe",letters:"œœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],S={},E=0;E<k.length;E+=1)for(var C=k[E].letters,T=0;T<C.length;T+=1)S[C[T]]=k[E].base;var x=1,M={uniqueNumber:function(){return x+=1},id:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xxxxxxxxxx",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123456789abcdef",n=t.length;return e.replace(/x/g,(function(){return t[Math.floor(Math.random()*n)]}))},mdPreloaderContent:'\n    <span class="preloader-inner">\n      <span class="preloader-inner-gap"></span>\n      <span class="preloader-inner-left">\n          <span class="preloader-inner-half-circle"></span>\n      </span>\n      <span class="preloader-inner-right">\n          <span class="preloader-inner-half-circle"></span>\n      </span>\n    </span>\n  '.trim(),iosPreloaderContent:'\n    <span class="preloader-inner">\n      '.concat([0,1,2,3,4,5,6,7,8,9,10,11].map((function(){return'<span class="preloader-inner-line"></span>'})).join(""),"\n    </span>\n  ").trim(),auroraPreloaderContent:'\n    <span class="preloader-inner">\n      <span class="preloader-inner-circle"></span>\n    </span>\n  ',eventNameToColonCase:function(e){var t;return e.split("").map((function(e,n){return e.match(/[A-Z]/)&&0!==n&&!t?(t=!0,":".concat(e.toLowerCase())):e.toLowerCase()})).join("")},deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},nextFrame:function(e){return M.requestAnimationFrame((function(){M.requestAnimationFrame(e)}))},now:function(){return Date.now()},requestAnimationFrame:function(e){return s.requestAnimationFrame(e)},cancelAnimationFrame:function(e){return s.cancelAnimationFrame(e)},removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return S[e]||e}))},parseUrlQuery:function(e){var t,n,r,i,o={},a=e||s.location.href;if("string"==typeof a&&a.length)for(i=(n=(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<i;t+=1)r=n[t].replace(/#\S+/g,"").split("="),o[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r.slice(1).join("="))||"";return o},getTranslate:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",o=s.getComputedStyle(e,null);return s.WebKitCSSMatrix?((n=o.transform||o.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new s.WebKitCSSMatrix("none"===n?"":n)):t=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(n=s.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===i&&(n=s.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),n||0},serializeObject:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"==typeof e)return e;var n,r=[],i="&";function o(e){if(t.length>0){for(var n="",r=0;r<t.length;r+=1)n+=0===r?t[r]:"[".concat(encodeURIComponent(t[r]),"]");return"".concat(n,"[").concat(encodeURIComponent(e),"]")}return encodeURIComponent(e)}function a(e){return encodeURIComponent(e)}return Object.keys(e).forEach((function(s){var l;if(Array.isArray(e[s])){l=[];for(var c=0;c<e[s].length;c+=1)Array.isArray(e[s][c])||"object"!==w(e[s][c])?l.push("".concat(o(s),"[]=").concat(a(e[s][c]))):((n=t.slice()).push(s),n.push(String(c)),l.push(M.serializeObject(e[s][c],n)));l.length>0&&r.push(l.join(i))}else null===e[s]||""===e[s]?r.push("".concat(o(s),"=")):"object"===w(e[s])?((n=t.slice()).push(s),""!==(l=M.serializeObject(e[s],n))&&r.push(l)):void 0!==e[s]&&""!==e[s]?r.push("".concat(o(s),"=").concat(a(e[s]))):""===e[s]&&r.push(o(s))})),r.join(i)},isObject:function(e){return"object"===w(e)&&null!==e&&e.constructor&&e.constructor===Object},merge:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];t.splice(0,1);for(var i=t,o=0;o<i.length;o+=1){var a=t[o];if(null!=a)for(var s=Object.keys(Object(a)),l=0,c=s.length;l<c;l+=1){var u=s[l],d=Object.getOwnPropertyDescriptor(a,u);void 0!==d&&d.enumerable&&(r[u]=a[u])}}return r},extend:function(){for(var e,t,n=!0,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];"boolean"==typeof i[0]?(n=i[0],e=i[1],i.splice(0,2),t=i):(e=i[0],i.splice(0,1),t=i);for(var a=0;a<t.length;a+=1){var s=i[a];if(null!=s)for(var l=Object.keys(Object(s)),c=0,u=l.length;c<u;c+=1){var d=l[c],h=Object.getOwnPropertyDescriptor(s,d);void 0!==h&&h.enumerable&&(n?M.isObject(e[d])&&M.isObject(s[d])?M.extend(e[d],s[d]):!M.isObject(e[d])&&M.isObject(s[d])?(e[d]={},M.extend(e[d],s[d])):e[d]=s[d]:e[d]=s[d])}}return e},colorHexToRgb:function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):null},colorRgbToHex:function(e,t,n){var r=[e,t,n].map((function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t})).join("");return"#".concat(r)},colorRgbToHsl:function(e,t,n){e/=255,t/=255,n/=255;var r,i=Math.max(e,t,n),o=Math.min(e,t,n),a=i-o;0===a?r=0:i===e?r=(t-n)/a%6:i===t?r=(n-e)/a+2:i===n&&(r=(e-t)/a+4);var s=(o+i)/2;return r<0&&(r=6+r),[60*r,0===a?0:a/(1-Math.abs(2*s-1)),s]},colorHslToRgb:function(e,t,n){var r,i=(1-Math.abs(2*n-1))*t,o=e/60,a=i*(1-Math.abs(o%2-1));Number.isNaN(e)||void 0===e?r=[0,0,0]:o<=1?r=[i,a,0]:o<=2?r=[a,i,0]:o<=3?r=[0,i,a]:o<=4?r=[0,a,i]:o<=5?r=[a,0,i]:o<=6&&(r=[i,0,a]);var s=n-i/2;return r.map((function(e){return Math.max(0,Math.min(255,Math.round(255*(e+s))))}))},colorHsbToHsl:function(e,t,n){var r={h:e,s:0,l:0},i=t,o=n;return r.l=(2-i)*o/2,r.s=r.l&&r.l<1?i*o/(r.l<.5?2*r.l:2-2*r.l):r.s,[r.h,r.s,r.l]},colorHslToHsb:function(e,t,n){var r={h:e,s:0,b:0},i=n,o=t*(i<.5?i:1-i);return r.b=i+o,r.s=i>0?2*o/r.b:r.s,[r.h,r.s,r.b]},colorThemeCSSProperties:function(){for(var e,t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(1===r.length?(e=r[0],t=M.colorHexToRgb(e)):3===r.length&&(t=r,e=M.colorRgbToHex.apply(M,y(t))),!t)return{};var o=M.colorRgbToHsl.apply(M,y(t)),a=[o[0],o[1],Math.max(0,o[2]-.08)],s=[o[0],o[1],Math.max(0,o[2]+.08)],l=M.colorRgbToHex.apply(M,y(M.colorHslToRgb.apply(M,a))),c=M.colorRgbToHex.apply(M,y(M.colorHslToRgb.apply(M,s)));return{"--f7-theme-color":e,"--f7-theme-color-rgb":t.join(", "),"--f7-theme-color-shade":l,"--f7-theme-color-tint":c}}},$=M,P={touch:!!(s.navigator.maxTouchPoints>0||"ontouchstart"in s||s.DocumentTouch&&a instanceof s.DocumentTouch),pointerEvents:!!s.PointerEvent,observer:"MutationObserver"in s||"WebkitMutationObserver"in s,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});s.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in s,intersectionObserver:"IntersectionObserver"in s},O=function(){var e=s.navigator.platform,t=s.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:!(!s.cordova&&!s.phonegap),phonegap:!(!s.cordova&&!s.phonegap),electron:!1},r=s.screen.width,i=s.screen.height,o=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),l=t.match(/(iPod)(.*OS\s([\d_]+))?/),c=!a&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0,d=t.indexOf("Edge/")>=0,h=t.indexOf("Gecko/")>=0&&t.indexOf("Firefox/")>=0,f="Win32"===e,p=t.toLowerCase().indexOf("electron")>=0,m="MacIntel"===e;!a&&m&&P.touch&&(1024===r&&1366===i||834===r&&1194===i||834===r&&1112===i||768===r&&1024===i)&&(a=t.match(/(Version)\/([\d.]+)/),m=!1),n.ie=u,n.edge=d,n.firefox=h,o&&!f&&(n.os="android",n.osVersion=o[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(a||c||l)&&(n.os="ios",n.ios=!0),c&&!l&&(n.osVersion=c[2].replace(/_/g,"."),n.iphone=!0),a&&(n.osVersion=a[2].replace(/_/g,"."),n.ipad=!0),l&&(n.osVersion=l[3]?l[3].replace(/_/g,"."):null,n.ipod=!0),n.ios&&n.osVersion&&t.indexOf("Version/")>=0&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),n.webView=!(!(c||a||l)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!s.navigator.standalone)||s.matchMedia&&s.matchMedia("(display-mode: standalone)").matches,n.webview=n.webView,n.standalone=n.webView,n.desktop=!(n.ios||n.android)||p,n.desktop&&(n.electron=p,n.macos=m,n.windows=f,n.macos&&(n.os="macos"),n.windows&&(n.os="windows")),n.pixelRatio=s.devicePixelRatio||1;return n.prefersColorScheme=function(){var e;return s.matchMedia&&s.matchMedia("(prefers-color-scheme: light)").matches&&(e="light"),s.matchMedia&&s.matchMedia("(prefers-color-scheme: dark)").matches&&(e="dark"),e},n}();function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R(r.key),r)}}function R(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}var j=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];D(this,e);var n=this;n.eventsParents=t,n.eventsListeners={}}var t,n,r;return t=e,(n=[{key:"on",value:function(e,t,n){var r=this;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r}},{key:"once",value:function(e,t,n){var r=this;if("function"!=typeof t)return r;function i(){r.off(e,i),i.f7proxy&&delete i.f7proxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.f7proxy=t,r.on(e,i,n)}},{key:"off",value:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n}},{key:"emit",value:function(){var e,t,n,r,i=this;if(!i.eventsListeners)return i;for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];"string"==typeof a[0]||Array.isArray(a[0])?(e=a[0],t=a.slice(1,a.length),n=i,r=i.eventsParents):(e=a[0].events,t=a[0].data,n=a[0].context||i,r=a[0].local?[]:a[0].parents||i.eventsParents);var l=Array.isArray(e)?e:e.split(" "),c=l.map((function(e){return e.replace("local::","")})),u=l.filter((function(e){return e.indexOf("local::")<0}));return c.forEach((function(e){if(i.eventsListeners&&i.eventsListeners[e]){var r=[];i.eventsListeners[e].forEach((function(e){r.push(e)})),r.forEach((function(e){e.apply(n,t)}))}})),r&&r.length>0&&r.forEach((function(e){e.emit.apply(e,[u].concat(A(t)))})),i}}])&&N(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H(r.key),r)}}function H(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}function U(e,t){if(t&&("object"==B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var W=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Y(this,t);var i=V(e=U(this,z(t).call(this,r)));return i.params=n,i.params&&i.params.on&&Object.keys(i.params.on).forEach((function(e){i.on(e,i.params.on[e])})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(t,e),n=t,i=[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var n=e.name||"".concat(Object.keys(t.prototype.modules).length,"_").concat($.now());if(t.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach((function(n){t.prototype[n]=e.proto[n]})),e.static&&Object.keys(e.static).forEach((function(n){t[n]=e.static[n]})),e.install){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e.install.apply(t,i)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach((function(e){return t.installModule(e)})),t;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.installModule.apply(t,[e].concat(r))}},{key:"components",set:function(e){this.use&&this.use(e)}}],(r=[{key:"useModuleParams",value:function(e,t){if(e.params){var n={};Object.keys(e.params).forEach((function(e){void 0!==t[e]&&(n[e]=$.extend({},t[e]))})),$.extend(t,e.params),Object.keys(n).forEach((function(e){$.extend(t[e],n[e])}))}}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n];r.params&&$.extend(e,r.params)}))}},{key:"useModule",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;if(n.modules){var r="string"==typeof e?n.modules[e]:e;r&&(r.instance&&Object.keys(r.instance).forEach((function(e){var t=r.instance[e];n[e]="function"==typeof t?t.bind(n):t})),r.on&&n.on&&Object.keys(r.on).forEach((function(e){n.on(e,r.on[e])})),r.vnode&&(n.vnodeHooks||(n.vnodeHooks={}),Object.keys(r.vnode).forEach((function(e){Object.keys(r.vnode[e]).forEach((function(t){var i=r.vnode[e][t];n.vnodeHooks[t]||(n.vnodeHooks[t]={}),n.vnodeHooks[t][e]||(n.vnodeHooks[t][e]=[]),n.vnodeHooks[t][e].push(i.bind(n))}))}))),r.create&&r.create.bind(n)(t))}}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=e[n]||{};t.useModule(n,r)}))}}])&&F(n.prototype,r),i&&F(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(j);function G(e,t,n){if(J())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&K(i,n.prototype),i}function K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J=function(){return!!e})()}var X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSelector,n=e.constructor,r=e.domProp,i=e.app,o=e.addMethods,a={create:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G(n,i?[i].concat(t):t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;if(e instanceof n)return e;var i=g(e);return 0!==i.length?i[0][r]:void 0},destroy:function(e){var t=a.get(e);if(t&&t.destroy)return t.destroy()}};return o&&Array.isArray(o)&&o.forEach((function(e){a[e]=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=a.get(n),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(r&&r[e])return r[e].apply(r,o)}})),a},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSelector,n=e.constructor,r=e.app,i=$.extend(X({defaultSelector:t,constructor:n,app:r,domProp:"f7Modal"}),{open:function(e,t){var i=g(e);if(i.length){var o=i[0].f7Modal;return o||(o=new n(r,{el:i})),o.open(t)}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1?arguments[1]:void 0,o=g(e);if(o.length){var a=o[0].f7Modal;return a||(a=new n(r,{el:o})),a.close(i)}}});return i},Z=[];var ee=function(e){var t=this;return new Promise((function(n,r){var i,o,l,c=t.instance;if(e){if("string"==typeof e){var u=e.match(/([a-z0-9-]*)/i);if(e.indexOf(".")<0&&u&&u[0].length===e.length){if(!c||c&&!c.params.lazyModulesPath)return void r(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));i="".concat(c.params.lazyModulesPath,"/").concat(e,".js")}else i=e}else"function"==typeof e?l=e:o=e;if(l){var d=l(t,!1);if(!d)return void r(new Error("Framework7: Can't find Framework7 component in specified component function"));if(t.prototype.modules&&t.prototype.modules[d.name])return void n();m(d),n()}if(o){var h=o;if(!h)return void r(new Error("Framework7: Can't find Framework7 component in specified component"));if(t.prototype.modules&&t.prototype.modules[h.name])return void n();m(h),n()}if(i){if(Z.indexOf(i)>=0)return void n();Z.push(i);var f=new Promise((function(e,n){t.request.get(i,(function(r){var o=$.id(),l="f7_component_loader_callback_".concat(o),c=a.createElement("script");c.innerHTML="window.".concat(l," = function (Framework7, Framework7AutoInstallComponent) {return ").concat(r.trim(),"}"),g("head").append(c);var u=s[l];delete s[l],g(c).remove();var d=u(t,!1);d?(t.prototype.modules&&t.prototype.modules[d.name]||m(d),e()):n(new Error("Framework7: Can't find Framework7 component in ".concat(i," file")))}),(function(e,t){n(e,t)}))})),p=new Promise((function(e){t.request.get(i.replace(".js",c.rtl?".rtl.css":".css"),(function(t){var n=a.createElement("style");n.innerHTML=t,g("head").append(n),e()}),(function(){e()}))}));Promise.all([f,p]).then((function(){n()})).catch((function(e){r(e)}))}}else r(new Error("Framework7: Lazy module must be specified"));function m(e){t.use(e),c&&(c.useModuleParams(e,c.params),c.useModule(e))}}))};function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,re(r.key),r)}}function re(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==te(t)?t:t+""}function ie(e,t){if(t&&("object"==te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e,t){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var le=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=ie(this,oe(t).call(this,e)),t.instance)throw new Error("Framework7 is already initialized and can't be initialized more than once");var r=$.extend({},e),i=ae(n);t.instance=i;var o={version:"1.0.0",id:"io.framework7.testapp",root:"body",theme:"auto",language:s.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkTheme:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0};i.useModulesParams(o),i.params=$.extend(o,e);var l=g(i.params.root);$.extend(i,{id:i.params.id,name:i.params.name,version:i.params.version,routes:i.params.routes,language:i.params.language,root:l,rtl:"rtl"===l.css("direction"),theme:"auto"===i.params.theme?O.ios?"ios":O.desktop&&O.electron?"aurora":"md":i.params.theme,passedParams:r,online:s.navigator.onLine}),i.root&&i.root[0]&&(i.root[0].f7=i),i.useModules(),i.initData();var c="(prefers-color-scheme: dark)",u="(prefers-color-scheme: light)";return i.mq={},s.matchMedia&&(i.mq.dark=s.matchMedia(c),i.mq.light=s.matchMedia(u)),i.colorSchemeListener=function(e){var t=e.matches,n=e.media;if(t){var r=a.querySelector("html");n===c?r.classList.add("theme-dark"):n===u&&r.classList.remove("theme-dark")}},i.params.init&&(O.cordova&&i.params.initOnDeviceReady?g(a).on("deviceready",(function(){i.init()})):i.init()),ie(n,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(t,e),n=t,i=[{key:"Dom7",get:function(){return g}},{key:"$",get:function(){return g}},{key:"Template7",get:function(){return o.a}},{key:"Class",get:function(){return W}},{key:"Events",get:function(){return j}}],(r=[{key:"initData",value:function(){var e=this;e.data={},e.params.data&&"function"==typeof e.params.data?$.extend(e.data,e.params.data.bind(e)()):e.params.data&&$.extend(e.data,e.params.data),e.methods={},e.params.methods&&Object.keys(e.params.methods).forEach((function(t){"function"==typeof e.params.methods[t]?e.methods[t]=e.params.methods[t].bind(e):e.methods[t]=e.params.methods[t]}))}},{key:"enableAutoDarkTheme",value:function(){if(s.matchMedia){var e=this,t=a.querySelector("html");e.mq.dark&&e.mq.light&&(e.mq.dark.addListener(e.colorSchemeListener),e.mq.light.addListener(e.colorSchemeListener)),e.mq.dark&&e.mq.dark.matches?t.classList.add("theme-dark"):e.mq.light&&e.mq.light.matches&&t.classList.remove("theme-dark")}}},{key:"disableAutoDarkTheme",value:function(){s.matchMedia&&(this.mq.dark&&this.mq.dark.removeListener(this.colorSchemeListener),this.mq.light&&this.mq.light.removeListener(this.colorSchemeListener))}},{key:"initAppComponent",value:function(e){var t=this;t.router.componentLoader(t.params.component,t.params.componentUrl,{componentOptions:{el:t.root[0],root:!0}},(function(n){t.root=g(n),t.root[0].f7=t,t.rootComponent=n.f7Component,e&&e()}),(function(){}))}},{key:"_init",value:function(){var e=this;return e.initialized||(e.root.addClass("framework7-initializing"),e.rtl&&g("html").attr("dir","rtl"),e.params.autoDarkTheme&&e.enableAutoDarkTheme(),s.addEventListener("offline",(function(){e.online=!1,e.emit("offline"),e.emit("connection",!1)})),s.addEventListener("online",(function(){e.online=!0,e.emit("online"),e.emit("connection",!0)})),e.root.addClass("framework7-root"),g("html").removeClass("ios md aurora").addClass(e.theme),e.params.iosTranslucentBars&&"ios"===e.theme&&O.ios&&g("html").addClass("ios-translucent-bars"),e.params.iosTranslucentModals&&"ios"===e.theme&&O.ios&&g("html").addClass("ios-translucent-modals"),$.nextFrame((function(){e.root.removeClass("framework7-initializing")})),e.initialized=!0,e.emit("init")),e}},{key:"init",value:function(){var e=this;e.params.component||e.params.componentUrl?e.initAppComponent((function(){e._init()})):e._init()}},{key:"loadModule",value:function(){return t.loadModule.apply(t,arguments)}},{key:"loadModules",value:function(){return t.loadModules.apply(t,arguments)}},{key:"getVnodeHooks",value:function(e,t){return this.vnodeHooks&&this.vnodeHooks[e]&&this.vnodeHooks[e][t]||[]}},{key:"$",get:function(){return g}},{key:"t7",get:function(){return o.a}}])&&ne(n.prototype,r),i&&ne(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W);le.ModalMethods=Q,le.ConstructorMethods=X,le.loadModule=ee,le.loadModules=function(e){return Promise.all(e.map((function(e){return le.loadModule(e)})))};var ce=le,ue={},de=0;function he(e){var t=$.extend({},ue);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach((function(e){delete t[e]}));var n=$.extend({url:s.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},t),r=$.extend({},n,e);function i(e){for(var t,n,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return ue[e]&&(t=ue[e].apply(ue,o)),r[e]&&(n=r[e].apply(r,o)),"boolean"!=typeof t&&(t=!0),"boolean"!=typeof n&&(n=!0),t&&n}if(!1!==i("beforeCreate",r)){r.type&&(r.method=r.type);var o,l=r.url.indexOf("?")>=0?"&":"?",c=r.method.toUpperCase();if(("GET"===c||"HEAD"===c||"OPTIONS"===c||"DELETE"===c)&&r.data)(o="string"==typeof r.data?r.data.indexOf("?")>=0?r.data.split("?")[1]:r.data:$.serializeObject(r.data)).length&&(r.url+=l+o,"?"===l&&(l="&"));if("json"===r.dataType&&r.url.indexOf("callback=")>=0){var u,d="f7jsonp_".concat(Date.now()+(de+=1)),h=r.url.split("callback="),f="".concat(h[0],"callback=").concat(d);if(h[1].indexOf("&")>=0){var p=h[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");p.length>0&&(f+="&".concat(p))}var m=a.createElement("script");return m.type="text/javascript",m.onerror=function(){clearTimeout(u),i("error",null,"scripterror","scripterror"),i("complete",null,"scripterror")},m.src=f,s[d]=function(e){clearTimeout(u),i("success",e),m.parentNode.removeChild(m),m=null,delete s[d]},a.querySelector("head").appendChild(m),void(r.timeout>0&&(u=setTimeout((function(){m.parentNode.removeChild(m),m=null,i("error",null,"timeout","timeout")}),r.timeout)))}"GET"!==c&&"HEAD"!==c&&"OPTIONS"!==c&&"DELETE"!==c||!1===r.cache&&(r.url+="".concat(l,"_nocache").concat(Date.now()));var v=new XMLHttpRequest;if(v.requestUrl=r.url,v.requestParameters=r,!1===i("beforeOpen",v,r))return v;v.open(c,r.url,r.async,r.user,r.password);var g=null;if(("POST"===c||"PUT"===c||"PATCH"===c)&&r.data)if(r.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(r.data.constructor)>=0)g=r.data;else{var y="---------------------------".concat(Date.now().toString(16));"multipart/form-data"===r.contentType?v.setRequestHeader("Content-Type","multipart/form-data; boundary=".concat(y)):v.setRequestHeader("Content-Type",r.contentType),g="";var b=$.serializeObject(r.data);if("multipart/form-data"===r.contentType){b=b.split("&");for(var _=[],w=0;w<b.length;w+=1)_.push('Content-Disposition: form-data; name="'.concat(b[w].split("=")[0],'"\r\n\r\n').concat(b[w].split("=")[1],"\r\n"));g="--".concat(y,"\r\n").concat(_.join("--".concat(y,"\r\n")),"--").concat(y,"--\r\n")}else g="application/json"===r.contentType?JSON.stringify(r.data):b}else g=r.data,v.setRequestHeader("Content-Type",r.contentType);return"json"!==r.dataType||r.headers&&r.headers.Accept||v.setRequestHeader("Accept","application/json"),r.headers&&Object.keys(r.headers).forEach((function(e){void 0!==r.headers[e]&&v.setRequestHeader(e,r.headers[e])})),void 0===r.crossDomain&&(r.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(r.url)&&RegExp.$2!==s.location.host),r.crossDomain||v.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.xhrFields&&$.extend(v,r.xhrFields),v.onload=function(){var e;if(v.status>=200&&v.status<300||0===v.status)if("json"===r.dataType){var t;try{e=JSON.parse(v.responseText)}catch(e){t=!0}t?i("error",v,"parseerror","parseerror"):i("success",e,v.status,v)}else i("success",e="text"===v.responseType||""===v.responseType?v.responseText:v.response,v.status,v);else i("error",v,v.status,v.statusText);r.statusCode&&(ue.statusCode&&ue.statusCode[v.status]&&ue.statusCode[v.status](v),r.statusCode[v.status]&&r.statusCode[v.status](v)),i("complete",v,v.status)},v.onerror=function(){i("error",v,v.status,v.status),i("complete",v,"error")},r.timeout>0&&(v.timeout=r.timeout,v.ontimeout=function(){i("error",v,"timeout","timeout"),i("complete",v,"timeout")}),!1===i("beforeSend",v,r)?v:(v.send(g),v)}}function fe(e){for(var t=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];"function"==typeof l[1]?(n=l[0],i=l[1],o=l[2],a=l[3]):(n=l[0],r=l[1],i=l[2],o=l[3],a=l[4]),[i,o].forEach((function(e){"string"==typeof e&&(a=e,e===i?i=void 0:o=void 0)}));var u={url:n,method:"post"===e||"postJSON"===e?"POST":"GET",data:r,success:i,error:o,dataType:a=a||("json"===e||"postJSON"===e?"json":void 0)};return"postJSON"===e&&$.extend(u,{contentType:"application/json",processData:!1,crossDomain:!0,data:"string"==typeof r?r:JSON.stringify(r)}),he(u)}function pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],o=n[1],a=n[2];return new Promise((function(t,n){fe(e,i,o,(function(e,n,r){t({data:e,status:n,xhr:r})}),(function(e,t,r){n({xhr:e,status:t,message:r})}),a)}))}Object.assign(he,{get:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fe.apply(void 0,["get"].concat(t))},post:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fe.apply(void 0,["post"].concat(t))},json:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fe.apply(void 0,["json"].concat(t))},getJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fe.apply(void 0,["json"].concat(t))},postJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fe.apply(void 0,["postJSON"].concat(t))}}),he.promise=function(e){return new Promise((function(t,n){he(Object.assign(e,{success:function(e,n,r){t({data:e,status:n,xhr:r})},error:function(e,t,r){n({xhr:e,status:t,message:r})}}))}))},Object.assign(he.promise,{get:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pe.apply(void 0,["get"].concat(t))},post:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pe.apply(void 0,["post"].concat(t))},json:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pe.apply(void 0,["json"].concat(t))},getJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pe.apply(void 0,["json"].concat(t))},postJSON:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pe.apply(void 0,["postJSON"].concat(t))}}),he.setup=function(e){e.type&&!e.method&&$.extend(e,{method:e.type}),$.extend(ue,e)};var me={name:"device",proto:{device:O},static:{device:O},on:{init:function(){var e=[],t=a.querySelector("html"),n=a.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');t&&(O.standalone&&O.ios&&n&&"black-translucent"===n.content&&e.push("device-full-viewport"),e.push("device-pixel-ratio-".concat(Math.floor(O.pixelRatio))),O.os&&!O.desktop?e.push("device-".concat(O.os)):O.desktop&&(e.push("device-desktop"),O.os&&e.push("device-".concat(O.os))),(O.cordova||O.phonegap)&&e.push("device-cordova"),e.forEach((function(e){t.classList.add(e)})))}}},ve={name:"support",proto:{support:P},static:{support:P}},ge={name:"utils",proto:{utils:$},static:{utils:$}},ye={name:"resize",instance:{getSize:function(){if(!this.root[0])return{width:0,height:0,left:0,top:0};var e=this.root.offset(),t=[this.root[0].offsetWidth,this.root[0].offsetHeight,e.left,e.top],n=t[0],r=t[1],i=t[2],o=t[3];return this.width=n,this.height=r,this.left=i,this.top=o,{width:n,height:r,left:i,top:o}}},on:{init:function(){var e=this;e.getSize(),s.addEventListener("resize",(function(){e.emit("resize")}),!1),s.addEventListener("orientationchange",(function(){e.emit("orientationchange")}))},orientationchange:function(){this.device.ipad&&(a.body.scrollLeft=0,setTimeout((function(){a.body.scrollLeft=0}),0))},resize:function(){this.getSize()}}},be={name:"request",proto:{request:he},static:{request:he}};var _e={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,auroraTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content, .list.accordion-list .accordion-item-toggle"}},instance:{touchEvents:{start:P.touch?"touchstart":P.pointerEvents?"pointerdown":"mousedown",move:P.touch?"touchmove":P.pointerEvents?"pointermove":"mousemove",end:P.touch?"touchend":P.pointerEvents?"pointerup":"mouseup"}},on:{init:function(){var e,t,n,r,i,o,l,c,u,d,h,f,p=this,m=p.params.touch,v=m["".concat(p.theme,"TouchRipple")];function y(e){var t,n=g(e),r=n.parents(m.activeStateElements);if(n.closest(".no-active-state").length)return null;if(n.is(m.activeStateElements)&&(t=n),r.length>0&&(t=t?t.add(r):r),t&&t.length>1){for(var i,o=[],a=0;a<t.length;a+=1)i||(o.push(t[a]),(t.eq(a).hasClass("prevent-active-state-propagation")||t.eq(a).hasClass("no-active-state-propagation"))&&(i=!0));t=g(o)}return t||n}function b(e){return e.parents(".page-content").length>0}function _(){c&&c.addClass("active-state")}function w(){c&&(c.removeClass("active-state"),c=null)}function k(e,t,n){e&&(d=p.touchRipple.create(e,t,n))}function S(){d&&(d.remove(),d=void 0,h=void 0)}function E(n){(h=function(e){var t=m.touchRippleElements,n=g(e);if(n.is(t))return!n.hasClass("no-ripple")&&n;if(n.parents(t).length>0){var r=n.parents(t).eq(0);return!r.hasClass("no-ripple")&&r}return!1}(n))&&0!==h.length?b(h)?(clearTimeout(f),f=setTimeout((function(){S(),k(h,e,t)}),80)):(S(),k(h,e,t)):h=void 0}function C(){clearTimeout(f),S()}function T(){d||!h||r?S():(clearTimeout(f),k(h,e,t),setTimeout(S,0))}function x(){g(".active-state").removeClass("active-state"),v&&T()}function M(e,t){p.emit({events:e,data:[t]})}function $(e){M("touchstart touchstart:active",e)}function L(e){M("touchmove touchmove:active",e)}function A(e){M("touchend touchend:active",e)}function I(e){M("touchstart:passive",e)}function D(e){M("touchmove:passive",e)}function N(e){M("touchend:passive",e)}function R(e){M("".concat(e.type," ").concat(e.type,":active"),e)}function j(e){M("".concat(e.type,":passive"),e)}O.ios&&O.webView&&s.addEventListener("touchstart",(function(){}));var B=!!P.passiveListener&&{passive:!0},Y=!P.passiveListener||{passive:!0,capture:!0},F=!!P.passiveListener&&{passive:!1},H=!P.passiveListener||{passive:!1,capture:!0};a.addEventListener("click",(function(e){M("click",e)}),!0),P.passiveListener?(a.addEventListener(p.touchEvents.start,$,H),a.addEventListener(p.touchEvents.move,L,F),a.addEventListener(p.touchEvents.end,A,F),a.addEventListener(p.touchEvents.start,I,Y),a.addEventListener(p.touchEvents.move,D,B),a.addEventListener(p.touchEvents.end,N,B),P.touch&&P.gestures&&(a.addEventListener("gesturestart",R,F),a.addEventListener("gesturechange",R,F),a.addEventListener("gestureend",R,F),a.addEventListener("gesturestart",j,B),a.addEventListener("gesturechange",j,B),a.addEventListener("gestureend",j,B))):(a.addEventListener(p.touchEvents.start,(function(e){$(e),I(e)}),!0),a.addEventListener(p.touchEvents.move,(function(e){L(e),D(e)}),!1),a.addEventListener(p.touchEvents.end,(function(e){A(e),N(e)}),!1),P.touch&&P.gestures&&(a.addEventListener("gesturestart",(function(e){R(e),j(e)}),!1),a.addEventListener("gesturechange",(function(e){R(e),j(e)}),!1),a.addEventListener("gestureend",(function(e){R(e),j(e)}),!1))),P.touch?(p.on("click",(function(e){var t=e&&e.detail&&"f7Overswipe"===e.detail,r=l;return n&&e.target!==n&&(r=!t),m.tapHold&&m.tapHoldPreventClicks&&i&&(r=!0),r&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()),m.tapHold&&(o=setTimeout((function(){i=!1}),O.ios||O.androidChrome?100:400)),l=!1,n=null,!r})),p.on("touchstart",(function(a){return r=!1,i=!1,l=!1,a.targetTouches.length>1?(c&&w(),!0):(a.touches.length>1&&c&&w(),m.tapHold&&(o&&clearTimeout(o),o=setTimeout((function(){a&&a.touches&&a.touches.length>1||(i=!0,a.preventDefault(),l=!0,g(a.target).trigger("taphold",a),p.emit("taphold",a))}),m.tapHoldDelay)),n=a.target,e=a.targetTouches[0].pageX,t=a.targetTouches[0].pageY,m.activeState&&((c=y(n))&&!b(c)?_():c&&(u=setTimeout(_,80))),v&&E(n),!0)})),p.on("touchmove",(function(n){var i,a;if("touchmove"===n.type&&(i=n.targetTouches[0],a=m.touchClicksDistanceThreshold),a&&i){var s=i.pageX,c=i.pageY;(Math.abs(s-e)>a||Math.abs(c-t)>a)&&(r=!0)}else r=!0;r&&(l=!0,m.tapHold&&clearTimeout(o),m.activeState&&(clearTimeout(u),w()),v&&C())})),p.on("touchend",(function(e){return clearTimeout(u),clearTimeout(o),a.activeElement===e.target?(m.activeState&&w(),v&&T(),!0):(m.activeState&&(_(),setTimeout(w,0)),v&&T(),!(m.tapHoldPreventClicks&&i||l)||(e.cancelable&&e.preventDefault(),l=!0,!1))})),a.addEventListener("touchcancel",(function(){n=null,clearTimeout(u),clearTimeout(o),m.activeState&&w(),v&&T()}),{passive:!0})):m.activeState&&(p.on("touchstart",(function(n){var r=y(n.target);r&&(r.addClass("active-state"),"which"in n&&3===n.which&&setTimeout((function(){g(".active-state").removeClass("active-state")}),0)),v&&(e=n.pageX,t=n.pageY,E(n.target,n.pageX,n.pageY))})),p.on("touchmove",(function(){m.activeStateOnMouseMove||g(".active-state").removeClass("active-state"),v&&C()})),p.on("touchend",x),a.addEventListener("pointercancel",x,{passive:!0})),a.addEventListener("contextmenu",(function(e){m.disableContextMenu&&(O.ios||O.android||O.cordova)&&e.preventDefault(),v&&(c&&w(),T())}))}}};function we(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,o="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--i){s++;break}}else if("("===e[s]&&(i++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);o+=e[s++]}else o+=e[s++]+e[s++];if(i)throw new TypeError("Unbalanced pattern at "+n);if(!o)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:o}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,o="[^"+Se(t.delimiter||"/#?")+"]+?",a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],i=r.type,o=r.index;throw new TypeError("Unexpected "+i+" at "+o+", expected "+e)},h=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var f=u("CHAR"),p=u("NAME"),m=u("PATTERN");if(p||m){var v=f||"";-1===i.indexOf(v)&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:p||s++,prefix:v,suffix:"",pattern:m||o,modifier:u("MODIFIER")||""})}else{var g=f||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(a.push(c),c=""),u("OPEN")){v=h();var y=u("NAME")||"",b=u("PATTERN")||"",_=h();d("CLOSE"),a.push({name:y||(b?s++:""),pattern:y&&!b?o:b,prefix:v,suffix:_,modifier:u("MODIFIER")||""})}else d("END")}}return a}function ke(e,t){return function(e,t){void 0===t&&(t={});var n=Ee(t),r=t.encode,i=void 0===r?function(e){return e}:r,o=t.validate,a=void 0===o||o,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o){var l=t?t[o.name]:void 0,c="?"===o.modifier||"*"===o.modifier,u="*"===o.modifier||"+"===o.modifier;if(Array.isArray(l)){if(!u)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===l.length){if(c)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var d=0;d<l.length;d++){var h=i(l[d],o);if(a&&!s[r].test(h))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+h+'"');n+=o.prefix+h+o.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!c){var f=u?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+f)}}else{h=i(String(l),o);if(a&&!s[r].test(h))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+h+'"');n+=o.prefix+h+o.suffix}}else n+=o}return n}}(we(e,t),t)}function Se(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Ee(e){return e&&e.sensitive?"":"i"}function Ce(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,i=void 0!==r&&r,o=n.start,a=void 0===o||o,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d="["+Se(n.endsWith||"")+"]|$",h="["+Se(n.delimiter||"/#?")+"]",f=a?"^":"",p=0,m=e;p<m.length;p++){var v=m[p];if("string"==typeof v)f+=Se(u(v));else{var g=Se(u(v.prefix)),y=Se(u(v.suffix));if(v.pattern)if(t&&t.push(v),g||y)if("+"===v.modifier||"*"===v.modifier){var b="*"===v.modifier?"?":"";f+="(?:"+g+"((?:"+v.pattern+")(?:"+y+g+"(?:"+v.pattern+"))*)"+y+")"+b}else f+="(?:"+g+"("+v.pattern+")"+y+")"+v.modifier;else f+="("+v.pattern+")"+v.modifier;else f+="(?:"+g+y+")"+v.modifier}}if(l)i||(f+=h+"?"),f+=n.endsWith?"(?="+d+")":"$";else{var _=e[e.length-1],w="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;i||(f+="(?:"+h+"(?="+d+"))?"),w||(f+="(?="+h+"|"+d+")")}return new RegExp(f,Ee(n))}(we(e,n),t,n)}function Te(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return Te(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",Ee(n))}(e,t,n):Ce(e,t,n)}function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $e={queue:[],clearQueue:function(){0!==$e.queue.length&&$e.queue.shift()()},routerQueue:[],clearRouterQueue:function(){if(0!==$e.routerQueue.length){var e=$e.routerQueue.pop(),t=e.router,n=e.stateUrl,r=e.action,i=t.params.animate;!1===t.params.pushStateAnimate&&(i=!1),"back"===r&&t.back({animate:i,pushState:!1}),"load"===r&&t.navigate(n,{animate:i,pushState:!1})}},handle:function(e){if(!$e.blockPopstate){var t=e.state;$e.previousState=$e.state,$e.state=t,$e.allowChange=!0,$e.clearQueue(),(t=$e.state)||(t={}),this.views.forEach((function(e){var n=e.router,r=t[e.id];if(!r&&e.params.pushState&&(r={url:e.router.history[0]}),r){var i=r.url||void 0,o=n.params.animate;!1===n.params.pushStateAnimate&&(o=!1),i!==n.url&&(n.history.indexOf(i)>=0?n.allowPageChange?n.back({animate:o,pushState:!1}):$e.routerQueue.push({action:"back",router:n}):n.allowPageChange?n.navigate(i,{animate:o,pushState:!1}):$e.routerQueue.unshift({action:"load",stateUrl:i,router:n}))}}))}},initViewState:function(e,t){var n=$.extend({},$e.state||{},Me({},e,t));$e.state=n,s.history.replaceState(n,"")},push:function(e,t,n){if($e.allowChange){$e.previousState=$e.state;var r=$.extend({},$e.previousState||{},Me({},e,t));$e.state=r,s.history.pushState(r,"",n)}else $e.queue.push((function(){$e.push(e,t,n)}))},replace:function(e,t,n){if($e.allowChange){$e.previousState=$e.state;var r=$.extend({},$e.previousState||{},Me({},e,t));$e.state=r,s.history.replaceState(r,"",n)}else $e.queue.push((function(){$e.replace(e,t,n)}))},go:function(e){$e.allowChange=!1,s.history.go(e)},back:function(){$e.allowChange=!1,s.history.back()},allowChange:!0,previousState:{},state:s.history.state,blockPopstate:!0,init:function(e){g(s).on("load",(function(){setTimeout((function(){$e.blockPopstate=!1}),0)})),a.readyState&&"complete"===a.readyState&&($e.blockPopstate=!1),g(s).on("popstate",$e.handle.bind(e))}},Pe=$e;var Oe=function(e){var t,n,r,i,o,a,s,l,c,u=e,d=u.$el,h=u.$navbarsEl,f=u.app,p=u.params,m=!1,v=!1,y={},b=[],_=[],w=!0,k=[],S=[],E=p["".concat(f.theme,"SwipeBackAnimateShadow")],C=p["".concat(f.theme,"SwipeBackAnimateOpacity")],T=p["".concat(f.theme,"SwipeBackActiveArea")],x=p["".concat(f.theme,"SwipeBackThreshold")],M=f.rtl?"right center":"left center",L=f.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function A(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.progress,n=e.reset,r=e.transition,i=["overflow","transform","transform-origin","opacity"],o=0;o<l.length;o+=1){var a=l[o];if(a&&a.el){!0===r&&a.el.classList.add("navbar-page-transitioning"),!1===r&&a.el.classList.remove("navbar-page-transitioning"),!a.className||a.classNameSet||n||(a.el.classList.add(a.className),a.classNameSet=!0),a.className&&n&&a.el.classList.remove(a.className);for(var s=0;s<i.length;s+=1){var c=i[s];a[c]&&(n?a.el.style[c]="":"function"==typeof a[c]?a.el.style[c]=a[c](t):a.el.style[c]=a[c])}}}}function I(e){var n=p["".concat(f.theme,"SwipeBack")];!w||!n||m||f.swipeout&&f.swipeout.el||!u.allowPageChange||g(e.target).closest(".range-slider, .calendar-months").length>0||g(e.target).closest(".page-master, .page-master-detail").length>0&&p.masterDetailBreakpoint>0&&f.width>=p.masterDetailBreakpoint||(v=!1,m=!0,t=void 0,y.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,i=$.now(),o=u.dynamicNavbar)}function D(e){if(m){var i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,c="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===t&&(t=!!(t||Math.abs(c-y.y)>Math.abs(i-y.x))||i<y.x&&!f.rtl||i>y.x&&f.rtl),t||e.f7PreventSwipeBack||f.preventSwipeBack)m=!1;else{if(!v){var w=!1,$=g(e.target),P=$.closest(".swipeout");P.length>0&&(!f.rtl&&P.find(".swipeout-actions-left").length>0&&(w=!0),f.rtl&&P.find(".swipeout-actions-right").length>0&&(w=!0)),((b=$.closest(".page")).hasClass("no-swipeback")||$.closest(".no-swipeback, .card-opened").length>0)&&(w=!0),(_=d.find(".page-previous:not(.stacked)")).length>1&&(_=_.eq(_.length-1));y.x,d.offset().left;if(n=d.width(),(f.rtl?y.x<d.offset().left-d[0].scrollLeft+(n-T):y.x-d.offset().left>T)&&(w=!0),0!==_.length&&0!==b.length||(w=!0),w)return void(m=!1);E&&0===(a=b.find(".page-shadow-effect")).length&&(a=g('<div class="page-shadow-effect"></div>'),b.append(a)),C&&0===(s=_.find(".page-opacity-effect")).length&&(s=g('<div class="page-opacity-effect"></div>'),_.append(s)),o&&(k=h.find(".navbar-current:not(.stacked)"),(S=h.find(".navbar-previous:not(.stacked)")).length>1&&(S=S.eq(S.length-1)),l=function(){var e,t,n=[],r=f.rtl?-1:1,i=k.hasClass("navbar-transparent")&&!k.hasClass("navbar-large")&&!k.hasClass("navbar-transparent-visible"),o=k.hasClass("navbar-large"),a=k.hasClass("navbar-large-collapsed"),s=k.hasClass("navbar-large-transparent")||k.hasClass("navbar-large")&&k.hasClass("navbar-transparent"),l=S.hasClass("navbar-transparent")&&!S.hasClass("navbar-large")&&!S.hasClass("navbar-transparent-visible"),c=S.hasClass("navbar-large"),u=S.hasClass("navbar-large-collapsed"),d=S.hasClass("navbar-large-transparent")||S.hasClass("navbar-large")&&S.hasClass("navbar-transparent"),h=o&&!a,m=c&&!u,v=k.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),y=S.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");return p.iosAnimateNavbarBackIcon&&(e=k.hasClass("sliding")||k.find(".navbar-inner.sliding").length?k.find(".left").find(".back .icon + span").eq(0):k.find(".left.sliding").find(".back .icon + span").eq(0),t=S.hasClass("sliding")||S.find(".navbar-inner.sliding").length?S.find(".left").find(".back .icon + span").eq(0):S.find(".left.sliding").find(".back .icon + span").eq(0),e.length&&y.each((function(t,n){g(n).hasClass("title")&&(n.f7NavbarLeftOffset+=e.prev(".icon")[0].offsetWidth)}))),v.each((function(t,l){var c=g(l),u=c.hasClass("subnavbar"),d=c.hasClass("left"),f=c.hasClass("title"),v=c.hasClass("navbar-bg");if((!f&&!v||!i)&&(h||!c.hasClass(".title-large"))){var y={el:l};if(h){if(f)return;if(c.hasClass("title-large"))return n.indexOf(y)<0&&n.push(y),y.overflow="visible",void c.find(".title-large-text").each((function(e,t){n.push({el:t,transform:function(e){return"translateX(".concat(100*e*r,"%)")}})}))}if(m&&(h||c.hasClass("title-large")&&(n.indexOf(y)<0&&n.push(y),y.opacity=0),d))return n.indexOf(y)<0&&n.push(y),y.opacity=function(e){return 1-Math.pow(e,.33)},void c.find(".back span").each((function(e,t){n.push({el:t,"transform-origin":M,transform:function(e){return"translateX(calc(".concat(e," * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(").concat(e," * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(").concat(1+1*e,")")}})}));if(v)return n.indexOf(y)<0&&n.push(y),h||m||(a?(s&&(y.className="ios-swipeback-navbar-bg-large"),y.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))")}):y.transform=function(e){return"translateX(".concat(100*e*r,"%)")}),!h&&m&&(y.className="ios-swipeback-navbar-bg-large",y.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-1 * ").concat(1-e," * var(--f7-navbar-large-title-height)))")}),h&&m&&(y.transform=function(e){return"translateX(".concat(100*e*r,"%)")}),void(h&&!m&&(y.transform=function(e){return"translateX(".concat(100*e*r,"%) translateY(calc(-").concat(e," * var(--f7-navbar-large-title-height)))")}));if(!c.hasClass("title-large")){var b=c.hasClass("sliding")||c.parents(".navbar-inner.sliding").length;if(n.indexOf(y)<0&&n.push(y),(!u||u&&!b)&&(y.opacity=function(e){return 1-Math.pow(e,.33)}),b){var _=y;if(d&&e.length&&p.iosAnimateNavbarBackIcon){var w={el:e[0]};_=w,n.push(w)}_.transform=function(e){var t=e*_.el.f7NavbarRightOffset;return 1===O.pixelRatio&&(t=Math.round(t)),"translate3d(".concat(t,u&&o?"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"px,0,0)")}}}}})),y.each((function(e,i){var o=g(i),a=o.hasClass("subnavbar"),s=o.hasClass("left"),f=o.hasClass("title"),v=o.hasClass("navbar-bg");if(!f&&!v||!l){var y={el:i};if(m){if(f)return;if(n.indexOf(y)<0&&n.push(y),o.hasClass("title-large"))return y.opacity=1,y.overflow="visible",void o.find(".title-large-text").each((function(e,t){n.push({el:t,"transform-origin":L,opacity:function(e){return Math.pow(e,3)},transform:function(e){return"translateX(calc(".concat(1-e," * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(").concat(e-1," * var(--f7-navbar-large-title-height) + ").concat(1-e," * var(--f7-navbar-large-title-padding-vertical))) scale(").concat(.5+.5*e,")")}})}))}if(v)return n.indexOf(y)<0&&n.push(y),h||m||(u?(d&&(y.className="ios-swipeback-navbar-bg-large"),y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))")}):y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%)")}),!h&&m&&(y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-1 * ").concat(1-e," * var(--f7-navbar-large-title-height)))")}),h&&!m&&(y.className="ios-swipeback-navbar-bg-large",y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%) translateY(calc(-").concat(e," * var(--f7-navbar-large-title-height)))")}),void(h&&m&&(y.transform=function(e){return"translateX(".concat((100*e-100)*r,"%)")}));if(!o.hasClass("title-large")){var b=o.hasClass("sliding")||S.children(".navbar-inner.sliding").length;if(n.indexOf(y)<0&&n.push(y),(!a||a&&!b)&&(y.opacity=function(e){return Math.pow(e,3)}),b){var _=y;if(s&&t.length&&p.iosAnimateNavbarBackIcon){var w={el:t[0]};_=w,n.push(w)}_.transform=function(e){var t=_.el.f7NavbarLeftOffset*(1-e);return 1===O.pixelRatio&&(t=Math.round(t)),"translate3d(".concat(t,a&&c?"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)":"px,0,0)")}}}}})),n}()),g(".sheet.modal-in").length>0&&f.sheet&&f.sheet.close(g(".sheet.modal-in"))}e.f7PreventSwipePanel=!0,v=!0,f.preventSwipePanelBySwipeBack=!0,e.preventDefault();var I=f.rtl?-1:1;(r=(i-y.x-x)*I)<0&&(r=0);var D=Math.min(Math.max(r/n,0),1),N={percentage:D,progress:D,currentPageEl:b[0],previousPageEl:_[0],currentNavbarEl:k[0],previousNavbarEl:S[0]};d.trigger("swipeback:move",N),u.emit("swipebackMove",N);var R=r*I,j=(r/5-n/5)*I;f.rtl?(R=Math.max(R,-n),j=Math.max(j,0)):(R=Math.min(R,n),j=Math.min(j,0)),1===O.pixelRatio&&(R=Math.round(R),j=Math.round(j)),u.swipeBackActive=!0,g([b[0],_[0]]).addClass("page-swipeback-active"),b.transform("translate3d(".concat(R,"px,0,0)")),E&&(a[0].style.opacity=1-1*D),"ios"===f.theme&&_.transform("translate3d(".concat(j,"px,0,0)")),C&&(s[0].style.opacity=1-1*D),o&&A({progress:D})}}}function N(){if(f.preventSwipePanelBySwipeBack=!1,!m||!v)return m=!1,void(v=!1);if(m=!1,v=!1,u.swipeBackActive=!1,g([b[0],_[0]]).removeClass("page-swipeback-active"),0===r)return g([b[0],_[0]]).transform(""),a&&a.length>0&&a.remove(),s&&s.length>0&&s.remove(),void(o&&A({reset:!0}));var e=$.now()-i,t=!1;(e<300&&r>10||e>=300&&r>n/2)&&(b.removeClass("page-current").addClass("page-next".concat("ios"!==f.theme?" page-next-on-right":"")),_.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),a&&(a[0].style.opacity=""),s&&(s[0].style.opacity=""),o&&(u.setNavbarPosition(k,"next"),u.setNavbarPosition(S,"current",!1)),t=!0),g([b[0],_[0]]).addClass("page-transitioning page-transitioning-swipeback").transform(""),o&&A({progress:t?1:0,transition:!0}),w=!1,u.allowPageChange=!1;var l={currentPageEl:b[0],previousPageEl:_[0],currentNavbarEl:k[0],previousNavbarEl:S[0]};t?(u.currentRoute=_[0].f7Page.route,u.currentPage=_[0],u.pageCallback("beforeOut",b,k,"current","next",{route:b[0].f7Page.route,swipeBack:!0}),u.pageCallback("beforeIn",_,S,"previous","current",{route:_[0].f7Page.route,swipeBack:!0},b[0]),d.trigger("swipeback:beforechange",l),u.emit("swipebackBeforeChange",l)):(d.trigger("swipeback:beforereset",l),u.emit("swipebackBeforeReset",l)),b.transitionEnd((function(){g([b[0],_[0]]).removeClass("page-transitioning page-transitioning-swipeback"),o&&A({reset:!0,transition:!1}),w=!0,u.allowPageChange=!0,t?(1===u.history.length&&u.history.unshift(u.url),u.history.pop(),u.saveHistory(),p.pushState&&Pe.back(),u.pageCallback("afterOut",b,k,"current","next",{route:b[0].f7Page.route,swipeBack:!0}),u.pageCallback("afterIn",_,S,"previous","current",{route:_[0].f7Page.route,swipeBack:!0}),p.stackPages&&u.initialPages.indexOf(b[0])>=0?(b.addClass("stacked"),o&&k.addClass("stacked")):(u.pageCallback("beforeRemove",b,k,"next",{swipeBack:!0}),u.removePage(b),o&&u.removeNavbar(k)),d.trigger("swipeback:afterchange",l),u.emit("swipebackAfterChange",l),u.emit("routeChanged",u.currentRoute,u.previousRoute,u),p.preloadPreviousPage&&u.back(u.history[u.history.length-2],{preload:!0})):(d.trigger("swipeback:afterreset",l),u.emit("swipebackAfterReset",l)),a&&a.length>0&&a.remove(),s&&s.length>0&&s.remove()}))}c=!("touchstart"!==f.touchEvents.start||!P.passiveListener)&&{passive:!0,capture:!1},d.on(f.touchEvents.start,I,c),f.on("touchmove:active",D),f.on("touchend:passive",N),u.on("routerDestroy",(function(){var e=!("touchstart"!==f.touchEvents.start||!P.passiveListener)&&{passive:!0,capture:!1};d.off(f.touchEvents.start,I,e),f.off("touchmove:active",D),f.off("touchend:passive",N)}))},Le=function(e,t,n){var r=this,i=t.route.redirect;if(n.initial&&r.params.pushState&&(n.replaceState=!0,n.history=!0),"function"==typeof i){r.allowPageChange=!1;var o=i.call(r,t,(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.allowPageChange=!0,r[e](t,$.extend({},n,i))}),(function(){r.allowPageChange=!0}));return o&&"string"==typeof o?(r.allowPageChange=!0,r[e](o,n)):r}return r[e](i,n)};function Ae(e){return function(e){if(Array.isArray(e))return Ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function De(e,t,n,r,i,o,a){var s=[];Array.isArray(n)?s.push.apply(s,Ae(n)):n&&"function"==typeof n&&s.push(n),t&&(Array.isArray(t)?s.push.apply(s,Ae(t)):s.push(t)),function t(){0!==s.length?s.shift().call(e,r,i,(function(){t()}),(function(){a()})):o()}()}var Ne=function(e,t,n,r){var i=this;function o(){e&&e.route&&(i.params.routesBeforeEnter||e.route.beforeEnter)?(i.allowPageChange=!1,De(i,i.params.routesBeforeEnter,e.route.beforeEnter,e,t,(function(){i.allowPageChange=!0,n()}),(function(){r()}))):n()}t&&t.route&&(i.params.routesBeforeLeave||t.route.beforeLeave)?(i.allowPageChange=!1,De(i,i.params.routesBeforeLeave,t.route.beforeLeave,e,t,(function(){i.allowPageChange=!0,o()}),(function(){r()}))):o()},Re=function(e,t){if(!e.view)throw new Error("Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.".concat(t,"(...)"))},je=function(e,t,n,r){function i(e){e.then((function(e){n({component:e.default||e._default||e})})).catch((function(e){throw r(),new Error(e)}))}if(t instanceof Promise)i(t);else{var o=t.call(e);o instanceof Promise?i(o):n({component:o})}};function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Be(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e){return(We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=We(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==We(t)?t:t+""}function Je(e,t){if(t&&("object"==We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qe(e)}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ze(e,t){return(Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var et=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=Qe(r=Je(this,Xe(t).call(this,{},[void 0===n?e:n])));i.isAppRouter=void 0===n,i.isAppRouter?$.extend(!1,i,{app:e,params:e.params.view,routes:e.routes||[],cache:e.cache}):$.extend(!1,i,{app:e,view:n,viewId:n.id,params:n.params,routes:n.routes,$el:n.$el,el:n.el,$navbarsEl:n.$navbarsEl,navbarsEl:n.navbarsEl,history:n.history,scrollHistory:n.scrollHistory,cache:e.cache,dynamicNavbar:"ios"===e.theme&&n.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),i.useModules(),i.tempDom=a.createElement("div"),i.allowPageChange=!0;var o={},s={};return Object.defineProperty(i,"currentRoute",{enumerable:!0,configurable:!0,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s=$.extend({},o),(o=e)&&(i.url=o.url,i.emit("routeChange",e,s,i))},get:function(){return o}}),Object.defineProperty(i,"previousRoute",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}}),Je(r,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}(t,e),n=t,(r=[{key:"animatableNavElements",value:function(e,t,n,r,i){var o,a,s=this.dynamicNavbar,l=this.params.iosAnimateNavbarBackIcon;function c(e,t){var n,r=e.hasClass("sliding")||t.hasClass("sliding"),i=e.hasClass("subnavbar"),o=!r||!i,a=e.find(".back .icon");return r&&l&&e.hasClass("left")&&a.length>0&&a.next("span").length&&(e=a.next("span"),n=!0),{$el:e,isIconLabel:n,leftOffset:e[0].f7NavbarLeftOffset,rightOffset:e[0].f7NavbarRightOffset,isSliding:r,isSubnavbar:i,needsOpacityTransition:o}}return s&&(o=[],a=[],e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(t,a){var s=g(a);s.hasClass("left")&&r&&"forward"===i||s.hasClass("title")&&n||o.push(c(s,e.children(".navbar-inner")))})),t.hasClass("navbar-master")&&this.params.masterDetailBreakpoint>0&&this.app.width>=this.params.masterDetailBreakpoint||t.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((function(e,o){var s=g(o);s.hasClass("left")&&n&&!r&&"forward"===i||s.hasClass("left")&&n&&"backward"===i||s.hasClass("title")&&r||a.push(c(s,t.children(".navbar-inner")))})),[a,o].forEach((function(e){e.forEach((function(t){var n=t,r=t.isSliding,i=t.$el,s=e===a?o:a;r&&i.hasClass("title")&&s&&s.forEach((function(e){if(e.isIconLabel){var t=e.$el[0];n.leftOffset+=t&&t.offsetLeft||0}}))}))}))),{newNavEls:o,oldNavEls:a}}},{key:"animate",value:function(e,t,n,r,i,o,a){var s=this;if(s.params.animateCustom)s.params.animateCustom.apply(s,[e,t,n,r,i,a]);else{var l=s.dynamicNavbar,c="ios"===s.app.theme;if(o){var u="router-transition-custom router-transition-".concat(o,"-").concat(i);return("forward"===i?t:e).animationEnd((function(){s.$el.removeClass(u),l&&s.$navbarsEl.length&&(r&&s.$navbarsEl.prepend(r),n&&s.$navbarsEl.prepend(n)),a&&a()})),l&&(r&&t&&(s.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),t.prepend(r)),n&&e&&(s.setNavbarPosition(n,""),n.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(n))),void s.$el.addClass(u)}var d,h,f,p,m,v,g="router-transition-".concat(i," router-transition");if(c&&l){s.params.masterDetailBreakpoint>0&&s.app.width>=s.params.masterDetailBreakpoint&&(n.hasClass("navbar-master")&&r.hasClass("navbar-master-detail")||n.hasClass("navbar-master-detail")&&r.hasClass("navbar-master"))||(m=n&&n.hasClass("navbar-large"),v=r&&r.hasClass("navbar-large"),f=m&&!n.hasClass("navbar-large-collapsed"),p=v&&!r.hasClass("navbar-large-collapsed"));var y=s.animatableNavElements(r,n,p,f,i);d=y.newNavEls,h=y.oldNavEls}("forward"===i?t:e).animationEnd((function(){s.dynamicNavbar&&(r&&(r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.addClass("navbar-no-title-large-transition"),$.nextFrame((function(){r.removeClass("navbar-no-title-large-transition")}))),n&&n.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),r.hasClass("sliding")?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform(""),n.hasClass("sliding")?n.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):n.find(".sliding").transform("")),s.$el.removeClass(g),a&&a()})),l?(b(0),$.nextFrame((function(){b(1),s.$el.addClass(g)}))):s.$el.addClass(g)}function b(e){c&&l&&(1===e&&(p&&(r.addClass("router-navbar-transition-to-large"),n.addClass("router-navbar-transition-to-large")),f&&(r.addClass("router-navbar-transition-from-large"),n.addClass("router-navbar-transition-from-large"))),d.forEach((function(t){var n=t.$el,r="forward"===i?t.rightOffset:t.leftOffset;t.isSliding&&(t.isSubnavbar&&v?n[0].style.setProperty("transform","translate3d(".concat(r*(1-e),"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)"),"important"):n.transform("translate3d(".concat(r*(1-e),"px,0,0)")))})),h.forEach((function(t){var n=t.$el,r="forward"===i?t.leftOffset:t.rightOffset;t.isSliding&&(t.isSubnavbar&&m?n.transform("translate3d(".concat(r*e,"px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)")):n.transform("translate3d(".concat(r*e,"px,0,0)")))})))}}},{key:"removeModal",value:function(e){this.removeEl(e)}},{key:"removeTabContent",value:function(e){g(e).html("")}},{key:"removeNavbar",value:function(e){this.removeEl(e)}},{key:"removePage",value:function(e){var t=g(e),n=t&&t[0]&&t[0].f7Page;n&&n.route&&n.route.route&&n.route.route.keepAlive?t.remove():this.removeEl(e)}},{key:"removeEl",value:function(e){if(e){var t=g(e);0!==t.length&&(t.find(".tab").each((function(e,t){g(t).children().each((function(e,t){t.f7Component&&(g(t).trigger("tab:beforeremove"),t.f7Component.$destroy())}))})),t[0].f7Component&&t[0].f7Component.$destroy&&t[0].f7Component.$destroy(),this.params.removeElements&&(this.params.removeElementsWithTimeout?setTimeout((function(){t.remove()}),this.params.removeElementsTimeout):t.remove()))}}},{key:"getPageEl",value:function(e){if("string"==typeof e)this.tempDom.innerHTML=e;else{if(g(e).hasClass("page"))return e;this.tempDom.innerHTML="",g(this.tempDom).append(e)}return this.findElement(".page",this.tempDom)}},{key:"findElement",value:function(e,t,n){var r=this.view,i=this.app,o=g(t),a=e;n&&(a+=":not(.stacked)");var s=o.find(a).filter((function(e,t){return 0===g(t).parents(".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page").length}));return s.length>1&&("string"==typeof r.selector&&(s=o.find("".concat(r.selector," ").concat(a))),s.length>1&&(s=o.find(".".concat(i.params.viewMainClass," ").concat(a)))),1===s.length?s:(n||(s=this.findElement(a,o,!0)),s&&1===s.length?s:s&&s.length>1?g(s[0]):void 0)}},{key:"flattenRoutes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.routes,t=this,n=[];return e.forEach((function(e){var r=!1;if("tabs"in e&&e.tabs){var i=e.tabs.map((function(t){var n=$.extend({},e,{path:"".concat(e.path,"/").concat(t.path).replace("///","/").replace("//","/"),parentPath:e.path,tab:t});return delete n.tabs,delete n.routes,n}));r=!0,n=n.concat(t.flattenRoutes(i))}if("detailRoutes"in e){var o=e.detailRoutes.map((function(t){var n=$.extend({},t);return n.masterRoute=e,n.masterRoutePath=e.path,n}));n=n.concat(e,t.flattenRoutes(o))}if("routes"in e){var a=e.routes.map((function(t){var n=$.extend({},t);return n.path="".concat(e.path,"/").concat(n.path).replace("///","/").replace("//","/"),n}));n=r?n.concat(t.flattenRoutes(a)):n.concat(e,t.flattenRoutes(a))}"routes"in e||"tabs"in e&&e.tabs||"detailRoutes"in e||n.push(e)})),n}},{key:"parseRouteUrl",value:function(e){if(!e)return{};var t=$.parseUrlQuery(e),n=e.split("#")[1],r=e.split("#")[0].split("?")[0];return{query:t,hash:n,params:{},url:e,path:r}}},{key:"generateUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof e)return e;var t=e.name,n=e.params,r=e.query;if(!t)throw new Error("Framework7: name parameter is required");var i=this,o=i.findRouteByKey("name",t);if(!o)throw new Error('Framework7: route with name "'.concat(t,'" not found'));var a=i.constructRouteUrl(o,{params:n,query:r});if(!a)throw new Error("Framework7: can't construct URL for route with name \"".concat(t,'"'));return a}},{key:"constructRouteUrl",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.params,i=n.query,o=e.path,a=ke(o);try{t=a(r||{})}catch(e){throw new Error("Framework7: error constructing route URL from passed params:\nRoute: ".concat(o,"\n").concat(e.toString()))}return i&&(t+="?".concat("string"==typeof i?i:$.serializeObject(i))),t}},{key:"findTabRoute",value:function(e){var t,n=g(e),r=this.currentRoute.route.parentPath,i=n.attr("id");return this.flattenRoutes(this.routes).forEach((function(e){e.parentPath===r&&e.tab&&e.tab.id===i&&(t=e)})),t}},{key:"findRouteByKey",value:function(e,t){var n,r=this.routes;return this.flattenRoutes(r).forEach((function(r){n||r[e]===t&&(n=r)})),n}},{key:"findMatchingRoute",value:function(e){if(e){var t,n=this.routes,r=this.flattenRoutes(n),i=this.parseRouteUrl(e),o=i.path,a=i.query,s=i.hash,l=i.params;return r.forEach((function(n){if(!t){var r,i,c=[],u=[n.path];n.alias&&("string"==typeof n.alias?u.push(n.alias):Array.isArray(n.alias)&&n.alias.forEach((function(e){u.push(e)}))),u.forEach((function(e){r||(r=Te(e,c).exec(o))})),r&&(c.forEach((function(e,t){if("number"!=typeof e.name){var n=r[t+1];l[e.name]=null==n?n:decodeURIComponent(n)}})),n.parentPath&&(i=o.split("/").slice(0,n.parentPath.split("/").length-1).join("/")),t={query:a,hash:s,params:l,url:e,path:o,parentPath:i,route:n,name:n.name})}})),t}}},{key:"replaceRequestUrlParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"string"==typeof n&&n.indexOf("{{")>=0&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&Object.keys(t.route.params).forEach((function(e){var r=new RegExp("{{".concat(e,"}}"),"g");n=n.replace(r,t.route.params[e]||"")})),n}},{key:"removeFromXhrCache",value:function(e){for(var t=this.cache.xhr,n=!1,r=0;r<t.length;r+=1)t[r].url===e&&(n=r);!1!==n&&t.splice(n,1)}},{key:"xhrRequest",value:function(e,t){var n=this,r=n.params,i=t.ignoreCache,o=e,a=o.indexOf("?")>=0;return r.passRouteQueryToRequest&&t&&t.route&&t.route.query&&Object.keys(t.route.query).length&&(o+="".concat(a?"&":"?").concat($.serializeObject(t.route.query)),a=!0),r.passRouteParamsToRequest&&t&&t.route&&t.route.params&&Object.keys(t.route.params).length&&(o+="".concat(a?"&":"?").concat($.serializeObject(t.route.params)),a=!0),o.indexOf("{{")>=0&&(o=n.replaceRequestUrlParams(o,t)),r.xhrCacheIgnoreGetParameters&&o.indexOf("?")>=0&&(o=o.split("?")[0]),new Promise((function(e,a){if(r.xhrCache&&!i&&o.indexOf("nocache")<0&&r.xhrCacheIgnore.indexOf(o)<0)for(var s=0;s<n.cache.xhr.length;s+=1){var l=n.cache.xhr[s];if(l.url===o&&$.now()-l.time<r.xhrCacheDuration)return void e(l.content)}n.xhr=n.app.request({url:o,method:"GET",beforeSend:function(e){n.emit("routerAjaxStart",e,t)},complete:function(i,s){n.emit("routerAjaxComplete",i),"error"!==s&&"timeout"!==s&&i.status>=200&&i.status<300||0===i.status?(r.xhrCache&&""!==i.responseText&&(n.removeFromXhrCache(o),n.cache.xhr.push({url:o,time:$.now(),content:i.responseText})),n.emit("routerAjaxSuccess",i,t),e(i.responseText)):(n.emit("routerAjaxError",i,t),a(i))},error:function(e){n.emit("routerAjaxError",e,t),a(e)}})}))}},{key:"setNavbarPosition",value:function(e,t,n){e.removeClass("navbar-previous navbar-current navbar-next"),t&&e.addClass("navbar-".concat(t)),!1===n?e.removeAttr("aria-hidden"):!0===n&&e.attr("aria-hidden","true"),e.trigger("navbar:position",{position:t}),this.emit("navbarPosition",e[0],t)}},{key:"setPagePosition",value:function(e,t,n){e.removeClass("page-previous page-current page-next"),e.addClass("page-".concat(t)),!1===n?e.removeAttr("aria-hidden"):!0===n&&e.attr("aria-hidden","true"),e.trigger("page:position",{position:t}),this.emit("pagePosition",e[0],t)}},{key:"removeThemeElements",value:function(e){var t,n=this.app.theme;"ios"===n?t=".md-only, .aurora-only, .if-md, .if-aurora, .if-not-ios, .not-ios":"md"===n?t=".ios-only, .aurora-only, .if-ios, .if-aurora, .if-not-md, .not-md":"aurora"===n&&(t=".ios-only, .md-only, .if-ios, .if-md, .if-not-aurora, .not-aurora"),g(e).find(t).remove()}},{key:"getPageData",value:function(e,t,n,r){var i,o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,l=this,c=g(e).eq(0),u=g(t).eq(0),d=c[0].f7Page||{};if(("next"===n&&"current"===r||"current"===n&&"previous"===r)&&(i="forward"),("current"===n&&"next"===r||"previous"===n&&"current"===r)&&(i="backward"),d&&!d.fromPage){var h=g(s);h.length&&(o=h[0].f7Page)}(o=d.pageFrom||o)&&o.pageFrom&&(o.pageFrom=null);var f={app:l.app,view:l.view,router:l,$el:c,el:c[0],$pageEl:c,pageEl:c[0],$navbarEl:u,navbarEl:u[0],name:c.attr("data-name"),position:n,from:n,to:r,direction:i,route:d.route?d.route:a,pageFrom:o};return c[0].f7Page=f,f}},{key:"pageCallback",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6?arguments[6]:void 0;if(t){var s=this,l=g(t);if(l.length){var c=g(n),u=o.route,d=s.params.restoreScrollTopOnBack&&!(s.params.masterDetailBreakpoint>0&&l.hasClass("page-master")&&s.app.width>=s.params.masterDetailBreakpoint),h=l[0].f7Page&&l[0].f7Page.route&&l[0].f7Page.route.route&&l[0].f7Page.route.route.keepAlive;"beforeRemove"===e&&h&&(e="beforeUnmount");var f="page".concat(e[0].toUpperCase()+e.slice(1,e.length)),p="page:".concat(e.toLowerCase()),m={};(m="beforeRemove"===e&&l[0].f7Page?$.extend(l[0].f7Page,{from:r,to:i,position:r}):s.getPageData(l[0],c[0],r,i,u,a)).swipeBack=!!o.swipeBack;var v=o.route?o.route.route:{},y=v.on,b=void 0===y?{}:y,_=v.once,w=void 0===_?{}:_;if(o.on&&$.extend(b,o.on),o.once&&$.extend(w,o.once),"mounted"===e&&E(),"init"===e){if(d&&("previous"===r||!r)&&"current"===i&&s.scrollHistory[m.route.url]&&!l.hasClass("no-restore-scroll")){var k=l.find(".page-content");k.length>0&&(k=k.filter((function(e,t){return 0===g(t).parents(".tab:not(.tab-active)").length&&!g(t).is(".tab:not(.tab-active)")}))),k.scrollTop(s.scrollHistory[m.route.url])}if(E(),l[0].f7PageInitialized)return l.trigger("page:reinit",m),void s.emit("pageReinit",m);l[0].f7PageInitialized=!0}if(d&&"beforeOut"===e&&"current"===r&&"previous"===i){var S=l.find(".page-content");S.length>0&&(S=S.filter((function(e,t){return 0===g(t).parents(".tab:not(.tab-active)").length&&!g(t).is(".tab:not(.tab-active)")}))),s.scrollHistory[m.route.url]=S.scrollTop()}d&&"beforeOut"===e&&"current"===r&&"next"===i&&delete s.scrollHistory[m.route.url],l.trigger(p,m),s.emit(f,m),"beforeRemove"!==e&&"beforeUnmount"!==e||(C(),h||(l[0].f7Page&&l[0].f7Page.navbarEl&&delete l[0].f7Page.navbarEl.f7Page,l[0].f7Page=null))}}function E(){l[0].f7RouteEventsAttached||(l[0].f7RouteEventsAttached=!0,b&&Object.keys(b).length>0&&(l[0].f7RouteEventsOn=b,Object.keys(b).forEach((function(e){b[e]=b[e].bind(s),l.on($.eventNameToColonCase(e),b[e])}))),w&&Object.keys(w).length>0&&(l[0].f7RouteEventsOnce=w,Object.keys(w).forEach((function(e){w[e]=w[e].bind(s),l.once($.eventNameToColonCase(e),w[e])}))))}function C(){l[0].f7RouteEventsAttached&&(l[0].f7RouteEventsOn&&Object.keys(l[0].f7RouteEventsOn).forEach((function(e){l.off($.eventNameToColonCase(e),l[0].f7RouteEventsOn[e])})),l[0].f7RouteEventsOnce&&Object.keys(l[0].f7RouteEventsOnce).forEach((function(e){l.off($.eventNameToColonCase(e),l[0].f7RouteEventsOnce[e])})),l[0].f7RouteEventsAttached=null,l[0].f7RouteEventsOn=null,l[0].f7RouteEventsOnce=null,delete l[0].f7RouteEventsAttached,delete l[0].f7RouteEventsOn,delete l[0].f7RouteEventsOnce)}}},{key:"saveHistory",value:function(){this.view.history=this.history,this.params.pushState&&(s.localStorage["f7router-".concat(this.view.id,"-history")]=JSON.stringify(this.history))}},{key:"restoreHistory",value:function(){this.params.pushState&&s.localStorage["f7router-".concat(this.view.id,"-history")]&&(this.history=JSON.parse(s.localStorage["f7router-".concat(this.view.id,"-history")]),this.view.history=this.history)}},{key:"clearHistory",value:function(){this.history=[],this.view&&(this.view.history=[]),this.saveHistory()}},{key:"updateCurrentUrl",value:function(e){Re(this,"updateCurrentUrl"),this.history.length?this.history[this.history.length-1]=e:this.history.push(e);var t=this.parseRouteUrl(e),n=t.query,r=t.hash,i=t.params,o=t.url,a=t.path;if(this.currentRoute&&$.extend(this.currentRoute,{query:n,hash:r,params:i,url:o,path:a}),this.params.pushState){var s=this.params.pushStateRoot||"";Pe.replace(this.view.id,{url:e},s+this.params.pushStateSeparator+e)}this.saveHistory(),this.emit("routeUrlUpdate",this.currentRoute,this)}},{key:"init",value:function(){var e=this,t=e.app,n=e.view;(n&&e.params.iosSwipeBack&&"ios"===t.theme||n&&e.params.mdSwipeBack&&"md"===t.theme||n&&e.params.auroraSwipeBack&&"aurora"===t.theme)&&Oe(e);var r,i,o=e.params.url,l=a.location.href.split(a.location.origin)[1],c=e.params,u=c.pushState,d=c.pushStateOnLoad,h=c.pushStateSeparator,f=c.pushStateAnimateOnLoad,p=e.params.pushStateRoot;if(s.cordova&&u&&!h&&!p&&a.location.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete pushState configuration, trying to guess pushStateRoot"),p=a.location.pathname.split("index.html")[0]),u&&d?(p&&l.indexOf(p)>=0&&""===(l=l.split(p)[1])&&(l="/"),o=h.length>0&&l.indexOf(h)>=0?l.split(h)[1]:l,e.restoreHistory(),e.history.indexOf(o)>=0?e.history=e.history.slice(0,e.history.indexOf(o)+1):e.params.url===o?e.history=[o]:Pe.state&&Pe.state[n.id]&&Pe.state[n.id].url===e.history[e.history.length-1]?o=e.history[e.history.length-1]:e.history=[l.split(h)[0]||"/",o],e.history.length>1?r=!0:e.history=[],e.saveHistory()):(o||(o=l),a.location.search&&o.indexOf("?")<0&&(o+=a.location.search),a.location.hash&&o.indexOf("#")<0&&(o+=a.location.hash)),e.history.length>1?(i=e.findMatchingRoute(e.history[0]))||(i=$.extend(e.parseRouteUrl(e.history[0]),{route:{url:e.history[0],path:e.history[0].split("?")[0]}})):(i=e.findMatchingRoute(o))||(i=$.extend(e.parseRouteUrl(o),{route:{url:o,path:o.split("?")[0]}})),e.params.stackPages&&e.$el.children(".page").each((function(t,n){var r=g(n);e.initialPages.push(r[0]),e.dynamicNavbar&&r.children(".navbar").length>0&&e.initialNavbars.push(r.children(".navbar")[0])})),0===e.$el.children(".page:not(.stacked)").length&&o&&e.params.loadInitialPage)e.navigate(o,{initial:!0,reloadCurrent:!0,pushState:!1});else if(e.$el.children(".page:not(.stacked)").length){var m;e.currentRoute=i,e.$el.children(".page:not(.stacked)").each((function(t,r){var i,o=g(r);e.setPagePosition(o,"current"),e.dynamicNavbar&&((i=o.children(".navbar")).length>0?(e.$navbarsEl.parents(a).length||e.$el.prepend(e.$navbarsEl),e.setNavbarPosition(i,"current"),e.$navbarsEl.append(i),i.children(".title-large").length&&i.addClass("navbar-large"),o.children(".navbar").remove()):(e.$navbarsEl.addClass("navbar-hidden"),i.children(".title-large").length&&e.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.master&&e.params.masterDetailBreakpoint>0&&(o.addClass("page-master"),o.trigger("page:role",{role:"master"}),i&&i.length&&i.addClass("navbar-master"),n.checkMasterDetailBreakpoint());var s={route:e.currentRoute};e.currentRoute&&e.currentRoute.route&&e.currentRoute.route.options&&$.extend(s,e.currentRoute.route.options),e.currentPageEl=o[0],e.dynamicNavbar&&i.length&&(e.currentNavbarEl=i[0]),e.removeThemeElements(o),e.dynamicNavbar&&i.length&&e.removeThemeElements(i),s.route.route.tab&&(m=!0,e.tabLoad(s.route.route.tab,$.extend({},s))),e.pageCallback("init",o,i,"current",void 0,s)})),r&&e.navigate(o,{initial:!0,pushState:!1,history:!1,animate:f,once:{pageAfterIn:function(){(e.params.preloadPreviousPage||e.params["".concat(t.theme,"SwipeBack")])&&e.history.length>2&&e.back({preload:!0})}}}),r||m||(e.history.push(o),e.saveHistory())}!(o&&u&&d)||Pe.state&&Pe.state[n.id]||Pe.initViewState(n.id,{url:o}),e.emit("local::init routerInit",e)}},{key:"destroy",value:function(){var e=this;e.emit("local::destroy routerDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}}])&&Ge(n.prototype,r),i&&Ge(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W);et.prototype.forward=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this,s=g(e),l=o.app,c=o.view,u=$.extend(!1,{animate:o.params.animate,pushState:!0,replaceState:!1,history:!0,reloadCurrent:o.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:o.params.reloadDetail,on:{}},i),d=o.params.masterDetailBreakpoint>0,h=d&&u.route&&u.route.route&&!0===u.route.route.master,f=o.currentRoute.modal;if(f||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){o.currentRoute&&o.currentRoute.route&&o.currentRoute.route[e]&&(f=!0,r=e)})),f){var p=o.currentRoute.modal||o.currentRoute.route.modalInstance||l[r].get(),m=o.history[o.history.length-2],v=o.findMatchingRoute(m);!v&&m&&(v={url:m,path:m.split("?")[0],query:$.parseUrlQuery(m),route:{path:m.split("?")[0],url:m}}),o.modalRemove(p)}var y,b,_,w,k=o.dynamicNavbar,S=o.$el,E=s,C=u.reloadPrevious||u.reloadCurrent||u.reloadAll;if(o.allowPageChange=!1,0===E.length)return o.allowPageChange=!0,o;E.length&&o.removeThemeElements(E),k&&(_=E.children(".navbar"),b=o.$navbarsEl,0===_.length&&E[0]&&E[0].f7Page&&(_=E[0].f7Page.$navbarEl)),u.route&&u.route.route&&u.route.route.keepAlive&&!u.route.route.keepAliveData&&(u.route.route.keepAliveData={pageEl:s[0]});var T,x,M,P,O=S.children(".page:not(.stacked)").filter((function(e,t){return t!==E[0]}));if(k&&(T=b.children(".navbar:not(.stacked)").filter((function(e,t){return t!==_[0]}))),u.reloadPrevious&&O.length<2)return o.allowPageChange=!0,o;if(d&&!u.reloadAll){for(var L=0;L<O.length;L+=1)t||!O[L].classList.contains("page-master")||(t=O[L]);if((x=!h&&t)&&t)for(var A=0;A<O.length;A+=1)O[A].classList.contains("page-master-detail")&&(n=O[A]);M=x&&u.reloadDetail&&l.width>=o.params.masterDetailBreakpoint&&t}x&&(P=!n||M||u.reloadAll||u.reloadCurrent);var I="next";if(u.reloadCurrent||u.reloadAll||M?I="current":u.reloadPrevious&&(I="previous"),E.removeClass("page-previous page-current page-next").addClass("page-".concat(I).concat(h?" page-master":"").concat(x?" page-master-detail":"").concat(P?" page-master-detail-root":"")).removeClass("stacked").trigger("page:unstack").trigger("page:position",{position:I}),o.emit("pageUnstack",E[0]),o.emit("pagePosition",E[0],I),(h||x)&&(E.trigger("page:role",{role:h?"master":"detail",root:!!P}),o.emit("pageRole",E[0],{role:h?"master":"detail",detailRoot:!!P})),k&&_.length&&(_.removeClass("navbar-previous navbar-current navbar-next").addClass("navbar-".concat(I).concat(h?" navbar-master":"").concat(x?" navbar-master-detail":"").concat(P?" navbar-master-detail-root":"")).removeClass("stacked"),(h||x)&&o.emit("navbarRole",_[0],{role:h?"master":"detail",detailRoot:!!P})),u.reloadCurrent||M)y=O.eq(O.length-1),k&&(w=g(l.navbar.getElByPage(y)));else if(u.reloadPrevious)y=O.eq(O.length-2),k&&(w=g(l.navbar.getElByPage(y)));else if(u.reloadAll)y=O.filter((function(e,t){return t!==E[0]})),k&&(w=T.filter((function(e,t){return t!==_[0]})));else{var D=[],N=[];if(O.length>1){var R=0;for(R=0;R<O.length-1;R+=1)if(t&&O[R]===t)O.eq(R).addClass("page-master-stacked"),O.eq(R).trigger("page:masterstack"),o.emit("pageMasterStack",O[R]),k&&(g(l.navbar.getElByPage(t)).addClass("navbar-master-stacked"),o.emit("navbarMasterStack",l.navbar.getElByPage(t)));else{var j=l.navbar.getElByPage(O.eq(R));o.params.stackPages?(O.eq(R).addClass("stacked"),O.eq(R).trigger("page:stack"),o.emit("pageStack",O[R]),k&&g(j).addClass("stacked")):(D.push(O[R]),o.pageCallback("beforeRemove",O[R],T&&T[R],"previous",void 0,u),o.removePage(O[R]),k&&j&&(N.push(j),o.removeNavbar(j)))}}y=S.children(".page:not(.stacked)").filter((function(e,t){return t!==E[0]&&D.indexOf(t)<0})),k&&(w=b.children(".navbar:not(.stacked)").filter((function(e,t){return t!==_[0]&&N.indexOf(N)<0}))),D=[],N=[]}if(x&&!u.reloadAll&&((y.length>1||M)&&(y=y.filter((function(e,t){return!t.classList.contains("page-master")}))),w&&(w.length>1||M)&&(w=w.filter((function(e,t){return!t.classList.contains("navbar-master")})))),o.params.pushState&&(u.pushState||u.replaceState)&&!u.reloadPrevious){var B=o.params.pushStateRoot||"";Pe[u.reloadCurrent||M&&n||u.reloadAll||u.replaceState?"replace":"push"](c.id,{url:u.route.url},B+o.params.pushStateSeparator+u.route.url)}u.reloadPrevious||(o.currentPageEl=E[0],k&&_.length?o.currentNavbarEl=_[0]:delete o.currentNavbarEl,o.currentRoute=u.route);var Y=u.route.url;u.history&&(((u.reloadCurrent||M&&n)&&o.history.length)>0||u.replaceState?o.history[o.history.length-(u.reloadPrevious?2:1)]=Y:u.reloadPrevious?o.history[o.history.length-2]=Y:u.reloadAll?o.history=[Y]:o.history.push(Y)),o.saveHistory();var F=E.parents(a).length>0,H=E[0].f7Component;if(u.reloadPrevious?(H&&!F?H.$mount((function(e){g(e).insertBefore(y)})):E.insertBefore(y),k&&_.length&&(_.find(".title-large").length&&_.addClass("navbar-large"),w.length?_.insertBefore(w):(o.$navbarsEl.parents(a).length||o.$el.prepend(o.$navbarsEl),b.append(_)))):(y.next(".page")[0]!==E[0]&&(H&&!F?H.$mount((function(e){S.append(e)})):S.append(E[0])),k&&_.length&&(_.find(".title-large").length&&_.addClass("navbar-large"),o.$navbarsEl.parents(a).length||o.$el.prepend(o.$navbarsEl),b.append(_[0]))),F?u.route&&u.route.route&&u.route.route.keepAlive&&!E[0].f7PageMounted&&(E[0].f7PageMounted=!0,o.pageCallback("mounted",E,_,I,C?I:"current",u,y)):o.pageCallback("mounted",E,_,I,C?I:"current",u,y),(u.reloadCurrent||M)&&y.length>0?o.params.stackPages&&o.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),y.trigger("page:stack"),o.emit("pageStack",y[0]),k&&w.addClass("stacked")):(o.pageCallback("beforeOut",y,w,"current",void 0,u),o.pageCallback("afterOut",y,w,"current",void 0,u),o.pageCallback("beforeRemove",y,w,"current",void 0,u),o.removePage(y),k&&w&&w.length&&o.removeNavbar(w)):u.reloadAll?y.each((function(e,t){var n=g(t),r=g(l.navbar.getElByPage(n));o.params.stackPages&&o.initialPages.indexOf(n[0])>=0?(n.addClass("stacked"),n.trigger("page:stack"),o.emit("pageStack",n[0]),k&&r.addClass("stacked")):(n.hasClass("page-current")&&(o.pageCallback("beforeOut",y,w,"current",void 0,u),o.pageCallback("afterOut",y,w,"current",void 0,u)),o.pageCallback("beforeRemove",n,w&&w.eq(e),"previous",void 0,u),o.removePage(n),k&&r.length&&o.removeNavbar(r))})):u.reloadPrevious&&(o.params.stackPages&&o.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),y.trigger("page:stack"),o.emit("pageStack",y[0]),k&&w.addClass("stacked")):(o.pageCallback("beforeRemove",y,w,"previous",void 0,u),o.removePage(y),k&&w&&w.length&&o.removeNavbar(w))),u.route.route.tab&&o.tabLoad(u.route.route.tab,$.extend({},u,{history:!1,pushState:!1})),d&&c.checkMasterDetailBreakpoint(),o.pageCallback("init",E,_,I,C?I:"current",u,y),u.reloadCurrent||u.reloadAll||M)return o.allowPageChange=!0,o.pageCallback("beforeIn",E,_,I,"current",u),E.removeAttr("aria-hidden"),k&&_&&_.removeAttr("aria-hidden"),o.pageCallback("afterIn",E,_,I,"current",u),u.reloadCurrent&&u.clearPreviousHistory&&o.clearPreviousHistory(),M&&(o.setPagePosition(g(t),"previous"),t.f7Page&&t.f7Page.navbarEl&&o.setNavbarPosition(g(t.f7Page.navbarEl),"previous")),o;if(u.reloadPrevious)return o.allowPageChange=!0,o;function U(){o.setPagePosition(E,"current",!1),o.setPagePosition(y,"previous",!y.hasClass("page-master")),k&&(o.setNavbarPosition(_,"current",!1),o.setNavbarPosition(w,"previous",!w.hasClass("navbar-master"))),o.allowPageChange=!0,o.pageCallback("afterOut",y,w,"current","previous",u),o.pageCallback("afterIn",E,_,"next","current",u);var e=(o.params.preloadPreviousPage||o.params["".concat(l.theme,"SwipeBack")])&&!h;e||(E.hasClass("smart-select-page")||E.hasClass("photo-browser-page")||E.hasClass("autocomplete-page")||E.hasClass("color-picker-page"))&&(e=!0),e||(o.params.stackPages?(y.addClass("stacked"),y.trigger("page:stack"),o.emit("pageStack",y[0]),k&&w.addClass("stacked")):E.attr("data-name")&&"smart-select-page"===E.attr("data-name")||(o.pageCallback("beforeRemove",y,w,"previous",void 0,u),o.removePage(y),k&&w.length&&o.removeNavbar(w))),u.clearPreviousHistory&&o.clearPreviousHistory(),o.emit("routeChanged",o.currentRoute,o.previousRoute,o),o.params.pushState&&Pe.clearRouterQueue()}function z(){o.setPagePosition(y,"current",!1),o.setPagePosition(E,"next",!1),k&&(o.setNavbarPosition(w,"current",!1),o.setNavbarPosition(_,"next",!1))}if(o.pageCallback("beforeOut",y,w,"current","previous",u),o.pageCallback("beforeIn",E,_,"next","current",u),!u.animate||h&&l.width>=o.params.masterDetailBreakpoint)U();else{var V=o.params["".concat(o.app.theme,"PageLoadDelay")],q=o.params.transition;u.transition&&(q=u.transition),!q&&o.currentRoute&&o.currentRoute.route&&(q=o.currentRoute.route.transition),!q&&o.currentRoute&&o.currentRoute.route.options&&(q=o.currentRoute.route.options.transition),q&&(E[0].f7PageTransition=q),V?setTimeout((function(){z(),o.animate(y,E,w,_,"forward",q,(function(){U()}))}),V):(z(),o.animate(y,E,w,_,"forward",q,(function(){U()})))}return o},et.prototype.load=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=this;if(!r.allowPageChange&&!n)return r;var i=e,o=t,a=i.url,s=i.content,l=i.el,c=i.pageName,u=i.template,d=i.templateUrl,h=i.component,f=i.componentUrl;if(!o.reloadCurrent&&o.route&&o.route.route&&o.route.route.parentPath&&r.currentRoute.route&&r.currentRoute.route.parentPath===o.route.route.parentPath){if(o.route.url===r.url)return r.allowPageChange=!0,!1;var p=Object.keys(o.route.params).length===Object.keys(r.currentRoute.params).length;if(p&&Object.keys(o.route.params).forEach((function(e){e in r.currentRoute.params&&r.currentRoute.params[e]===o.route.params[e]||(p=!1)})),p)return!!o.route.route.tab&&r.tabLoad(o.route.route.tab,o);if(!p&&o.route.route.tab&&r.currentRoute.route.tab&&r.currentRoute.parentPath===o.route.parentPath)return r.tabLoad(o.route.route.tab,o)}if(o.route&&o.route.url&&r.url===o.route.url&&!o.reloadCurrent&&!o.reloadPrevious&&!r.params.allowDuplicateUrls)return r.allowPageChange=!0,!1;function m(e,t){return r.forward(e,$.extend(o,t))}function v(){return r.allowPageChange=!0,r}if(!o.route&&a&&(o.route=r.parseRouteUrl(a),$.extend(o.route,{route:{url:a,path:a}})),(a||d||f)&&(r.allowPageChange=!1),s)r.forward(r.getPageEl(s),o);else if(u||d)try{r.pageTemplateLoader(u,d,o,m,v)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.forward(r.getPageEl(l),o);else if(c)r.forward(r.$el.children('.page[data-name="'.concat(c,'"]')).eq(0),o);else if(h||f)try{r.pageComponentLoader(r.el,h,f,o,m,v)}catch(e){throw r.allowPageChange=!0,e}else a&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(a,o).then((function(e){r.forward(r.getPageEl(e),o)})).catch((function(){r.allowPageChange=!0})));return r},et.prototype.navigate=function(e){var t,n,r,i,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=this;if(l.swipeBackActive)return l;if("string"==typeof e?t=e:(t=e.url,n=e.route,r=e.name,i=e.query,o=e.params),r)return(t=l.generateUrl({name:r,params:o,query:i}))?l.navigate(t,s):l;var c=l.app;if(Re(l,"navigate"),"#"===t||""===t)return l;var u=t.replace("./","");if("/"!==u[0]&&0!==u.indexOf("#")){var d=l.currentRoute.parentPath||l.currentRoute.path;u=((d?"".concat(d,"/"):"/")+u).replace("///","/").replace("//","/")}if(!(a=n?$.extend(l.parseRouteUrl(u),{route:$.extend({},n)}):l.findMatchingRoute(u)))return l;if(a.route&&a.route.viewName){var h=a.route.viewName,f=c.views[h];if(!f)throw new Error('Framework7: There is no View with "'.concat(h,'" name that was specified in this route'));if(f!==l.view)return f.router.navigate(e,s)}if(a.route.redirect)return Le.call(l,"navigate",a,s);var p={};function m(){var e=!1;function t(e,t){l.allowPageChange=!1;var n=!1;t&&t.context&&(a.context?a.context=$.extend({},a.context,t.context):a.context=t.context,p.route.context=a.context),"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(r){if(e[r]){n=!0;var i=$.extend({},a,{route:e});l.allowPageChange=!0,l.modalLoad(r,i,$.extend(p,t))}})),n||l.load(e,$.extend(p,t),!0)}function n(){l.allowPageChange=!0}"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(t){a.route[t]&&!e&&(e=!0,l.modalLoad(t,a,p))})),a.route.keepAlive&&a.route.keepAliveData&&(l.load({el:a.route.keepAliveData.pageEl},p,!1),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){a.route[t]&&!e&&(e=!0,l.load(Ye({},t,a.route[t]),p,!1))})),e||(a.route.async&&(l.allowPageChange=!1,a.route.async.call(l,p.route,l.currentRoute,t,n)),a.route.asyncComponent&&je(l,a.route.asyncComponent,t,n))}function v(){l.allowPageChange=!0}if(a.route.options?$.extend(p,a.route.options,s):$.extend(p,s),p.route=a,p&&p.context&&(a.context=p.context,p.route.context=p.context),l.params.masterDetailBreakpoint>0&&a.route.masterRoute){var g=!0,y=!1;if(l.currentRoute&&l.currentRoute.route&&(!l.currentRoute.route.master||l.currentRoute.route!==a.route.masterRoute&&l.currentRoute.route.path!==a.route.masterRoute.path||(g=!1),!l.currentRoute.route.masterRoute||l.currentRoute.route.masterRoute!==a.route.masterRoute&&l.currentRoute.route.masterRoute.path!==a.route.masterRoute.path||(g=!1,y=!0)),g||y&&s.reloadAll)return l.navigate(a.route.masterRoute.path,{animate:!1,reloadAll:s.reloadAll,reloadCurrent:s.reloadCurrent,reloadPrevious:s.reloadPrevious,pushState:!s.initial,history:!s.initial,once:{pageAfterIn:function(){l.navigate(e,$.extend({},s,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!s.initial,pushState:!s.initial}))}}}),l}return Ne.call(l,a,l.currentRoute,(function(){a.route.modules?c.loadModules(Array.isArray(a.route.modules)?a.route.modules:[a.route.modules]).then((function(){m()})).catch((function(){v()})):m()}),(function(){v()})),l},et.prototype.refreshPage=function(){return Re(this,"refreshPage"),this.navigate(this.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0})},et.prototype.tabLoad=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,o=$.extend({animate:i.params.animate,pushState:!0,history:!0,parentPageEl:null,preload:!1,on:{}},r);o.route&&(o.preload||o.route===i.currentRoute||(n=i.previousRoute,i.currentRoute=o.route),o.preload?(t=o.route,n=i.currentRoute):(t=i.currentRoute,n||(n=i.previousRoute)),i.params.pushState&&o.pushState&&!o.reloadPrevious&&Pe.replace(i.view.id,{url:o.route.url},(i.params.pushStateRoot||"")+i.params.pushStateSeparator+o.route.url),o.history&&(i.history[Math.max(i.history.length-1,0)]=o.route.url,i.saveHistory()));var a,s=g(o.parentPageEl||i.currentPageEl);a=s.length&&s.find("#".concat(e.id)).length?s.find("#".concat(e.id)).eq(0):i.view.selector?"".concat(i.view.selector," #").concat(e.id):"#".concat(e.id);var l,c=i.app.tab.show({tabEl:a,animate:o.animate,tabRoute:o.route}),u=c.$newTabEl,d=c.$oldTabEl,h=c.animated,f=c.onTabsChanged;if(u&&u.parents(".page").length>0&&o.route){var p=u.parents(".page")[0].f7Page;p&&o.route&&(p.route=o.route)}function m(t){i.removeThemeElements(u);var n=u;"string"!=typeof t&&(n=g(t)),n.trigger("tab:init tab:mounted",e),i.emit("tabInit tabMounted",u[0],e),d&&d.length&&(h?f((function(){i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i.params.unloadTabContent&&i.tabRemove(d,u,e)})):(i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i.params.unloadTabContent&&i.tabRemove(d,u,e)))}if(u[0].f7RouterTabLoaded)return d&&d.length?(h?f((function(){i.emit("routeChanged",i.currentRoute,i.previousRoute,i)})):i.emit("routeChanged",i.currentRoute,i.previousRoute,i),i):i;function v(e,t){var n=e.url,r=e.content,o=e.el,a=e.template,s=e.templateUrl,l=e.component,c=e.componentUrl;function d(e){i.allowPageChange=!0,e&&("string"==typeof e?u.html(e):(u.html(""),e.f7Component?e.f7Component.$mount((function(e){u.append(e)})):u.append(e)),u[0].f7RouterTabLoaded=!0,m(e))}function h(){return i.allowPageChange=!0,i}if(r)d(r);else if(a||s)try{i.tabTemplateLoader(a,s,t,d,h)}catch(e){throw i.allowPageChange=!0,e}else if(o)d(o);else if(l||c)try{i.tabComponentLoader(u[0],l,c,t,d,h)}catch(e){throw i.allowPageChange=!0,e}else n&&(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(n,t).then((function(e){d(e)})).catch((function(){i.allowPageChange=!0})))}function y(e,t){v(e,$.extend(o,t))}function b(){i.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(t){e[t]&&(l=!0,v(He({},t,e[t]),o))})),e.async?e.async.call(i,t,n,y,b):e.asyncComponent?je(i,e.asyncComponent,y,b):l||(i.allowPageChange=!0),i},et.prototype.tabRemove=function(e,t,n){var r;e[0]&&(e[0].f7RouterTabLoaded=!1,delete e[0].f7RouterTabLoaded),e.children().each((function(e,t){t.f7Component&&(r=!0,g(t).trigger("tab:beforeremove",n),t.f7Component.$destroy())})),r||e.trigger("tab:beforeremove",n),this.emit("tabBeforeRemove",e[0],t[0],n),this.removeTabContent(e[0],n)},et.prototype.modalLoad=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=i.app,a="panel"===e,s=a?"panel":"modal",l=$.extend({animate:i.params.animate,pushState:!0,history:!0,on:{}},r),c=$.extend({},t.route[e]),u=t.route;function d(){var n=o[e].create(c);u.modalInstance=n;var r=n.el;function d(){n.close()}n.on("".concat(s,"Open"),(function(){r||(i.removeThemeElements(n.el),n.$el.trigger("".concat(e.toLowerCase(),":init ").concat(e.toLowerCase(),":mounted"),t,n),i.emit("".concat(a?"":"modalInit"," ").concat(e,"Init ").concat(e,"Mounted"),n.el,t,n)),i.once("swipeBackMove",d)})),n.on("".concat(s,"Close"),(function(){i.off("swipeBackMove",d),n.closeByRouter||i.back()})),n.on("".concat(s,"Closed"),(function(){n.$el.trigger("".concat(e.toLowerCase(),":beforeremove"),t,n),n.emit("".concat(a?"":"modalBeforeRemove ").concat(e,"BeforeRemove"),n.el,t,n);var r=n.el.f7Component;r&&r.$destroy(),$.nextTick((function(){(r||c.component)&&i.removeModal(n.el),n.destroy(),delete n.route,delete u.modalInstance}))})),l.route&&(i.params.pushState&&l.pushState&&Pe.push(i.view.id,{url:l.route.url,modal:e},(i.params.pushStateRoot||"")+i.params.pushStateSeparator+l.route.url),l.route!==i.currentRoute&&(n.route=$.extend(l.route,{modal:n}),i.currentRoute=n.route),l.history&&(i.history.push(l.route.url),i.saveHistory())),r&&(i.removeThemeElements(n.el),n.$el.trigger("".concat(e.toLowerCase(),":init ").concat(e.toLowerCase(),":mounted"),t,n),i.emit("".concat(s,"Init ").concat(e,"Init ").concat(e,"Mounted"),n.el,t,n)),n.open()}function h(e,t){var n=e.url,r=e.content,a=e.template,s=e.templateUrl,l=e.component,u=e.componentUrl;function h(e){e&&("string"==typeof e?c.content=e:e.f7Component?e.f7Component.$mount((function(e){c.el=e,o.root.append(e)})):c.el=e,d())}function f(){return i.allowPageChange=!0,i}if(r)h(r);else if(a||s)try{i.modalTemplateLoader(a,s,t,h,f)}catch(e){throw i.allowPageChange=!0,e}else if(l||u)try{i.modalComponentLoader(o.root[0],l,u,t,h,f)}catch(e){throw i.allowPageChange=!0,e}else n?(i.xhr&&(i.xhr.abort(),i.xhr=!1),i.xhrRequest(n,t).then((function(e){c.content=e,d()})).catch((function(){i.allowPageChange=!0}))):d()}function f(e,t){h(e,$.extend(l,t))}function p(){i.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach((function(e){c[e]&&!n&&(n=!0,h(ze({},e,c[e]),l))})),n||"actions"!==e||d(),c.async&&c.async.call(i,l.route,i.currentRoute,f,p),c.asyncComponent&&je(i,c.asyncComponent,f,p),i},et.prototype.modalRemove=function(e){$.extend(e,{closeByRouter:!0}),e.close()},et.prototype.backward=function(e,t){var n,r,i,o,s,l,c,u,d=this,h=g(e),f=d.app,p=d.view,m=$.extend({animate:d.params.animate,pushState:!0,replaceState:!1},t),v=d.params.masterDetailBreakpoint>0,y=v&&m.route&&m.route.route&&!0===m.route.route.master,b=d.dynamicNavbar,_=h,w=d.$el.children(".page-current"),k=v&&w.hasClass("page-master");if(_.length&&d.removeThemeElements(_),b&&(o=_.children(".navbar"),i=d.$navbarsEl,0===o.length&&_[0]&&_[0].f7Page&&(o=_[0].f7Page.$navbarEl),s=i.find(".navbar-current")),d.allowPageChange=!1,0===_.length||0===w.length)return d.allowPageChange=!0,d;if(d.removeThemeElements(_),m.route&&m.route.route&&m.route.route.keepAlive&&!m.route.route.keepAliveData&&(m.route.route.keepAliveData={pageEl:h[0]}),v){for(var S=d.$el.children(".page:not(.stacked)").filter((function(e,t){return t!==_[0]})),E=0;E<S.length;E+=1)n||!S[E].classList.contains("page-master")||(n=S[E]);!(l=!y&&n&&d.history.indexOf(m.route.url)>d.history.indexOf(n.f7Page.route.url))&&!y&&n&&n.f7Page&&m.route.route.masterRoute&&(l=m.route.route.masterRoute.path===n.f7Page.route.route.path)}if(l&&n&&n.f7Page&&(c=d.history.indexOf(m.route.url)-d.history.indexOf(n.f7Page.route.url)==1),_.addClass("page-previous".concat(y?" page-master":"").concat(l?" page-master-detail":"").concat(c?" page-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:"previous"}),d.emit("pageUnstack",_[0]),d.emit("pagePosition",_[0],"previous"),(y||l)&&(_.trigger("page:role",{role:y?"master":"detail",root:!!c}),d.emit("pageRole",_[0],{role:y?"master":"detail",detailRoot:!!c})),b&&o.length>0&&(o.addClass("navbar-previous".concat(y?" navbar-master":"").concat(l?" navbar-master-detail":"").concat(c?" navbar-master-detail-root":"")).removeClass("stacked").removeAttr("aria-hidden"),(y||c)&&d.emit("navbarRole",o[0],{role:y?"master":"detail",detailRoot:!!c})),m.force&&(w.prev(".page-previous:not(.stacked)").length>0||0===w.prev(".page-previous").length))if(d.history.indexOf(m.route.url)>=0?(u=d.history.length-d.history.indexOf(m.route.url)-1,d.history=d.history.slice(0,d.history.indexOf(m.route.url)+2),p.history=d.history):d.history[[d.history.length-2]]?d.history[d.history.length-2]=m.route.url:d.history.unshift(d.url),u&&d.params.stackPages)w.prevAll(".page-previous").each((function(e,t){var i,o=g(t);b&&(i=g(f.navbar.getElByPage(o))),o[0]!==_[0]&&o.index()>_.index()&&(d.initialPages.indexOf(o[0])>=0?(o.addClass("stacked"),o.trigger("page:stack"),d.emit("pageStack",o[0]),b&&i.addClass("stacked")):(d.pageCallback("beforeRemove",o,i,"previous",void 0,m),o[0]===n&&(r=!0),d.removePage(o),b&&i.length>0&&d.removeNavbar(i)))}));else{var C,T=w.prev(".page-previous:not(.stacked)");b&&(C=g(f.navbar.getElByPage(T))),d.params.stackPages&&d.initialPages.indexOf(T[0])>=0?(T.addClass("stacked"),T.trigger("page:stack"),d.emit("pageStack",T[0]),C.addClass("stacked")):T.length>0&&(d.pageCallback("beforeRemove",T,C,"previous",void 0,m),T[0]===n&&(r=!0),d.removePage(T),b&&C.length&&d.removeNavbar(C))}var x=_.parents(a).length>0,M=_[0].f7Component;function P(){0===_.next(w).length&&(!x&&M?M.$mount((function(e){g(e).insertBefore(w)})):_.insertBefore(w)),b&&o.length&&(o.find(".title-large").length&&o.addClass("navbar-large"),o.insertBefore(s),s.length>0?o.insertBefore(s):(d.$navbarsEl.parents(a).length||d.$el.prepend(d.$navbarsEl),i.append(o))),x?m.route&&m.route.route&&m.route.route.keepAlive&&!_[0].f7PageMounted&&(_[0].f7PageMounted=!0,d.pageCallback("mounted",_,o,"previous","current",m,w)):d.pageCallback("mounted",_,o,"previous","current",m,w)}if(m.preload){P(),m.route.route.tab&&d.tabLoad(m.route.route.tab,$.extend({},m,{history:!1,pushState:!1,preload:!0})),y&&(_.removeClass("page-master-stacked").trigger("page:masterunstack"),d.emit("pageMasterUnstack",_[0]),b&&(g(f.navbar.getElByPage(_)).removeClass("navbar-master-stacked"),d.emit("navbarMasterUnstack",f.navbar.getElByPage(_)))),d.pageCallback("init",_,o,"previous","current",m,w);var L=_.prevAll(".page-previous:not(.stacked):not(.page-master)");return L.length>0&&L.each((function(e,t){var n,r=g(t);b&&(n=g(f.navbar.getElByPage(r))),d.params.stackPages&&d.initialPages.indexOf(t)>=0?(r.addClass("stacked"),r.trigger("page:stack"),d.emit("pageStack",r[0]),b&&n.addClass("stacked")):(d.pageCallback("beforeRemove",r,n,"previous",void 0),d.removePage(r),b&&n.length&&d.removeNavbar(n))})),d.allowPageChange=!0,d}if(!(O.ie||O.edge||O.firefox&&!O.ios)&&d.params.pushState&&m.pushState)if(m.replaceState){var A=d.params.pushStateRoot||"";Pe.replace(p.id,{url:m.route.url},A+d.params.pushStateSeparator+m.route.url)}else u?Pe.go(-u):Pe.back();if(m.replaceState?d.history[d.history.length-1]=m.route.url:(1===d.history.length&&d.history.unshift(d.url),d.history.pop()),d.saveHistory(),d.currentPageEl=_[0],b&&o.length?d.currentNavbarEl=o[0]:delete d.currentNavbarEl,d.currentRoute=m.route,(O.ie||O.edge||O.firefox&&!O.ios)&&d.params.pushState&&m.pushState)if(m.replaceState){var I=d.params.pushStateRoot||"";Pe.replace(p.id,{url:m.route.url},I+d.params.pushStateSeparator+m.route.url)}else u?Pe.go(-u):Pe.back();function D(){d.setPagePosition(_,"current",!1),d.setPagePosition(w,"next",!0),b&&(d.setNavbarPosition(o,"current",!1),d.setNavbarPosition(s,"next",!0)),d.pageCallback("afterOut",w,s,"current","next",m),d.pageCallback("afterIn",_,o,"previous","current",m),d.params.stackPages&&d.initialPages.indexOf(w[0])>=0?(w.addClass("stacked"),w.trigger("page:stack"),d.emit("pageStack",w[0]),b&&s.addClass("stacked")):(d.pageCallback("beforeRemove",w,s,"next",void 0,m),d.removePage(w),b&&s.length&&d.removeNavbar(s)),d.allowPageChange=!0,d.emit("routeChanged",d.currentRoute,d.previousRoute,d),(d.params.preloadPreviousPage||d.params["".concat(f.theme,"SwipeBack")])&&d.history[d.history.length-2]&&!y&&d.back(d.history[d.history.length-2],{preload:!0}),d.params.pushState&&Pe.clearRouterQueue()}if(P(),m.route.route.tab&&d.tabLoad(m.route.route.tab,$.extend({},m,{history:!1,pushState:!1})),v&&(k||r)&&p.checkMasterDetailBreakpoint(!1),d.pageCallback("init",_,o,"previous","current",m,w),d.pageCallback("beforeOut",w,s,"current","next",m),d.pageCallback("beforeIn",_,o,"previous","current",m),!m.animate||k&&f.width>=d.params.masterDetailBreakpoint)D();else{var N=d.params.transition;w[0]&&w[0].f7PageTransition&&(N=w[0].f7PageTransition,delete w[0].f7PageTransition),m.transition&&(N=m.transition),!N&&d.previousRoute&&d.previousRoute.route&&(N=d.previousRoute.route.transition),!N&&d.previousRoute&&d.previousRoute.route&&d.previousRoute.route.options&&(N=d.previousRoute.route.options.transition),d.setPagePosition(w,"current"),d.setPagePosition(_,"previous",!1),b&&(d.setNavbarPosition(s,"current"),d.setNavbarPosition(o,"previous",!1)),d.animate(w,_,s,o,"backward",N,(function(){D()}))}return d},et.prototype.loadBack=function(e,t,n){var r=this;if(!r.allowPageChange&&!n)return r;var i=e,o=t,a=i.url,s=i.content,l=i.el,c=i.pageName,u=i.template,d=i.templateUrl,h=i.component,f=i.componentUrl;if(o.route.url&&r.url===o.route.url&&!o.reloadCurrent&&!o.reloadPrevious&&!r.params.allowDuplicateUrls)return!1;function p(e,t){return r.backward(e,$.extend(o,t))}function m(){return r.allowPageChange=!0,r}if(!o.route&&a&&(o.route=r.parseRouteUrl(a)),(a||d||f)&&(r.allowPageChange=!1),s)r.backward(r.getPageEl(s),o);else if(u||d)try{r.pageTemplateLoader(u,d,o,p,m)}catch(e){throw r.allowPageChange=!0,e}else if(l)r.backward(r.getPageEl(l),o);else if(c)r.backward(r.$el.children('.page[data-name="'.concat(c,'"]')).eq(0),o);else if(h||f)try{r.pageComponentLoader(r.el,h,f,o,p,m)}catch(e){throw r.allowPageChange=!0,e}else a&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(a,o).then((function(e){r.backward(r.getPageEl(e),o)})).catch((function(){r.allowPageChange=!0})));return r},et.prototype.back=function(){var e,t,n,r=this;if(r.swipeBackActive)return r;"object"===qe(arguments.length<=0?void 0:arguments[0])?t=(arguments.length<=0?void 0:arguments[0])||{}:(e=arguments.length<=0?void 0:arguments[0],t=(arguments.length<=1?void 0:arguments[1])||{});var i=t,o=i.name,a=i.params,s=i.query;if(o)return(e=r.generateUrl({name:o,params:a,query:s}))?r.back(e,$.extend({},t,{name:null,params:null,query:null})):r;var l=r.app;Re(r,"back");var c,u=r.currentRoute.modal;if(u||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach((function(e){r.currentRoute.route[e]&&(u=!0,c=e)})),u){var d,h=r.currentRoute.modal||r.currentRoute.route.modalInstance||l[c].get(),f=r.history[r.history.length-2];if(h&&h.$el){var p=h.$el.prevAll(".modal-in");p.length&&p[0].f7Modal&&(d=p[0].f7Modal.route)}if(d||(d=r.findMatchingRoute(f)),!d&&f&&(d={url:f,path:f.split("?")[0],query:$.parseUrlQuery(f),route:{path:f.split("?")[0],url:f}}),!(e&&0!==e.replace(/[# ]/g,"").trim().length||d&&h))return r;var m=t.force&&d&&e;if(d&&h){var v=O.ie||O.edge||O.firefox&&!O.ios,g=r.params.pushState&&!1!==t.pushState;g&&!v&&Pe.back(),r.currentRoute=d,r.history.pop(),r.saveHistory(),g&&v&&Pe.back(),r.modalRemove(h),m&&r.navigate(e,{reloadCurrent:!0})}else h&&(r.modalRemove(h),e&&r.navigate(e,{reloadCurrent:!0}));return r}var y,b=r.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0);if(r.params.masterDetailBreakpoint>0){var _=r.$el.children(".page-current").prevAll(".page-master").eq(0);if(_.length){var w=r.history[r.history.length-2],k=r.findMatchingRoute(w);k&&k.route===_[0].f7Page.route.route&&(b=_,t.preload||(y=l.width>=r.params.masterDetailBreakpoint))}}if(!t.force&&b.length&&!y){if(r.params.pushState&&b[0].f7Page&&r.history[r.history.length-2]!==b[0].f7Page.route.url)return r.back(r.history[r.history.length-2],$.extend(t,{force:!0})),r;var S=b[0].f7Page.route;return Ne.call(r,S,r.currentRoute,(function(){r.loadBack({el:b},$.extend(t,{route:S}))}),(function(){})),r}if("#"===e&&(e=void 0),e&&"/"!==e[0]&&0!==e.indexOf("#")&&(e=((r.path||"/")+e).replace("//","/")),!e&&r.history.length>1&&(e=r.history[r.history.length-2]),y&&!t.force&&r.history[r.history.length-3])return r.back(r.history[r.history.length-3],$.extend({},t||{},{force:!0,animate:!1}));if(y&&!t.force)return r;if((n=r.findMatchingRoute(e))||e&&(n={url:e,path:e.split("?")[0],query:$.parseUrlQuery(e),route:{path:e.split("?")[0],url:e}}),!n)return r;if(n.route.redirect)return Le.call(r,"back",n,t);var E,C={};if(n.route.options?$.extend(C,n.route.options,t):$.extend(C,t),C.route=n,C&&C.context&&(n.context=C.context,C.route.context=C.context),C.force&&r.params.stackPages&&(r.$el.children(".page-previous.stacked").each((function(e,t){t.f7Page&&t.f7Page.route&&t.f7Page.route.url===n.url&&(E=!0,r.loadBack({el:t},C))})),E))return r;function T(){var e=!1;function t(e,t){r.allowPageChange=!1,t&&t.context&&(n.context?n.context=$.extend({},n.context,t.context):n.context=t.context,C.route.context=n.context),r.loadBack(e,$.extend(C,t),!0)}function i(){r.allowPageChange=!0}n.route.keepAlive&&n.route.keepAliveData&&(r.loadBack({el:n.route.keepAliveData.pageEl},C),e=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach((function(t){n.route[t]&&!e&&(e=!0,r.loadBack(Ve({},t,n.route[t]),C))})),e||(n.route.async&&(r.allowPageChange=!1,n.route.async.call(r,n,r.currentRoute,t,i)),n.route.asyncComponent&&je(r,n.route.asyncComponent,t,i))}function x(){r.allowPageChange=!0}return C.preload?T():Ne.call(r,n,r.currentRoute,(function(){n.route.modules?l.loadModules(Array.isArray(n.route.modules)?n.route.modules:[n.route.modules]).then((function(){T()})).catch((function(){x()})):T()}),(function(){x()})),r},et.prototype.clearPreviousHistory=function(){Re(this,"clearPreviousHistory");var e=this.history[this.history.length-1];!function(e){Re(e,"clearPreviousPages");var t=e.app,n=e.dynamicNavbar;e.$el.children(".page").filter((function(t,n){return!(!e.currentRoute||!e.currentRoute.modal&&!e.currentRoute.panel)||n!==e.currentPageEl})).each((function(r,i){var o=g(i),a=g(t.navbar.getElByPage(o));e.params.stackPages&&e.initialPages.indexOf(o[0])>=0?(o.addClass("stacked"),n&&a.addClass("stacked")):(e.pageCallback("beforeRemove",o,a,"previous",void 0,{}),e.removePage(o),n&&a.length&&e.removeNavbar(a))}))}(this),this.history=[e],this.view.history=[e],this.saveHistory()};var tt=et,nt={name:"router",static:{Router:tt},instance:{cache:{xhr:[],templates:[],components:[]}},create:function(){this.app?this.params.router&&(this.router=new tt(this.app,this)):this.router=new tt(this)}};function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,at(r.key),r)}}function at(e){var t=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rt(t)?t:t+""}function st(e,t){if(t&&("object"==rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ct(e)}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ut(e,t){return(ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var dt=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it(this,t),r=st(this,lt(t).call(this,i,[e]));var o,a,s,l=e,c=g(n),u=ct(r),d={routes:[],routesAdd:[]};if(0===c.length){var h="Framework7: can't create a View instance because ";throw h+="string"==typeof n?'the selector "'.concat(n,"\" didn't match any element"):"el must be an HTMLElement or Dom7 object",new Error(h)}return u.params=$.extend(d,l.params.view,i),u.params.routes.length>0?u.routes=u.params.routes:u.routes=[].concat(l.routes,u.params.routesAdd),o="string"==typeof n?n:(c.attr("id")?"#".concat(c.attr("id")):"")+(c.attr("class")?".".concat(c.attr("class").replace(/ /g,".").replace(".active","")):""),"ios"===l.theme&&u.params.iosDynamicNavbar&&0===(a=c.children(".navbars").eq(0)).length&&(a=g('<div class="navbars"></div>')),$.extend(!1,u,{app:l,$el:c,el:c[0],name:u.params.name,main:u.params.main||c.hasClass("view-main"),$navbarsEl:a,navbarsEl:a?a[0]:void 0,selector:o,history:[],scrollHistory:{}}),c[0].f7View=u,u.useModules(),l.views.push(u),u.main&&(l.views.main=u),u.name&&(l.views[u.name]=u),u.index=l.views.indexOf(u),s=u.name?"view_".concat(u.name):u.main?"view_main":"view_".concat(u.index),u.id=s,l.initialized?u.init():l.on("init",(function(){u.init()})),st(r,u)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ut(e,t)}(t,e),n=t,(r=[{key:"destroy",value:function(){var e=this,t=e.app;e.$el.trigger("view:beforedestroy"),e.emit("local::beforeDestroy viewBeforeDestroy",e),t.off("resize",e.checkMasterDetailBreakpoint),e.main?(t.views.main=null,delete t.views.main):e.name&&(t.views[e.name]=null,delete t.views[e.name]),e.$el[0].f7View=null,delete e.$el[0].f7View,t.views.splice(t.views.indexOf(e),1),e.params.router&&e.router&&e.router.destroy(),e.emit("local::destroy viewDestroy",e),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}},{key:"checkMasterDetailBreakpoint",value:function(e){var t=this.app,n=this.$el.hasClass("view-master-detail"),r=t.width>=this.params.masterDetailBreakpoint&&this.$el.children(".page-master").length;void 0===e&&r||!0===e?(this.$el.addClass("view-master-detail"),n||(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint"))):(this.$el.removeClass("view-master-detail"),n&&(this.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",this),this.$el.trigger("view:masterDetailBreakpoint")))}},{key:"initMasterDetail",value:function(){var e=this.app;this.checkMasterDetailBreakpoint=this.checkMasterDetailBreakpoint.bind(this),this.checkMasterDetailBreakpoint(),e.on("resize",this.checkMasterDetailBreakpoint)}},{key:"init",value:function(){this.params.router&&(this.params.masterDetailBreakpoint>0&&this.initMasterDetail(),this.router.init(),this.$el.trigger("view:init"),this.emit("local::init viewInit",this))}}])&&ot(n.prototype,r),i&&ot(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W);dt.use(nt);var ht=dt;var ft={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init:function(){!function(e){e.on("click",(function(t){var n=g(t.target),r=n.closest("a"),i=r.length>0,o=i&&r.attr("href");if(i&&(r.is(e.params.clicks.externalLinks)||o&&o.indexOf("javascript:")>=0)){var a=r.attr("target");o&&s.cordova&&s.cordova.InAppBrowser&&("_system"===a||"_blank"===a)&&(t.preventDefault(),s.cordova.InAppBrowser.open(o,a))}else{Object.keys(e.modules).forEach((function(r){var i=e.modules[r].clicks;i&&(t.preventF7Router||Object.keys(i).forEach((function(r){var o=n.closest(r).eq(0);o.length>0&&i[r].call(e,o,o.dataset(),t)})))}));var l={};if(i&&(t.preventDefault(),l=r.dataset()),!t.preventF7Router)if(!r.hasClass("prevent-router")&&!r.hasClass("router-prevent"))if(o&&o.length>0&&"#"!==o[0]||r.hasClass("back")){var c;if(l.view&&"current"===l.view?c=e.views.current:l.view?c=g(l.view)[0].f7View:(c=n.parents(".view")[0]&&n.parents(".view")[0].f7View,!r.hasClass("back")&&c&&c.params.linksView&&("string"==typeof c.params.linksView?c=g(c.params.linksView)[0].f7View:c.params.linksView instanceof ht&&(c=c.params.linksView))),c||e.views.main&&(c=e.views.main),!c||!c.router)return;if(l.context&&"string"==typeof l.context)try{l.context=JSON.parse(l.context)}catch(e){}r[0].f7RouteProps&&(l.props=r[0].f7RouteProps),r.hasClass("back")?c.router.back(o,l):c.router.navigate(o,l)}}}))}(this)}}},pt={name:"routerTemplateLoader",proto:{templateLoader:function(e,t,n,r,i){var a=this;function s(e){var t,s;try{if("function"==typeof(s=n.context||{}))s=s.call(a);else if("string"==typeof s)try{s=JSON.parse(s)}catch(e){throw i(),e}t="function"==typeof e?e(s):o.a.compile(e)($.extend({},s||{},{$app:a.app,$root:$.extend({},a.app.data,a.app.methods),$route:n.route,$f7route:n.route,$router:a,$f7router:a,$theme:{ios:"ios"===a.app.theme,md:"md"===a.app.theme,aurora:"aurora"===a.app.theme}}))}catch(e){throw i(),e}r(t,{context:s})}t?(a.xhr&&(a.xhr.abort(),a.xhr=!1),a.xhrRequest(t,n).then((function(e){s(e)})).catch((function(){i()}))):s(e)},modalTemplateLoader:function(e,t,n,r,i){return this.templateLoader(e,t,n,(function(e){r(e)}),i)},tabTemplateLoader:function(e,t,n,r,i){return this.templateLoader(e,t,n,(function(e){r(e)}),i)},pageTemplateLoader:function(e,t,n,r,i){var o=this;return o.templateLoader(e,t,n,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(o.getPageEl(e),t)}),i)}}},mt={name:"routerComponentLoader",proto:{componentLoader:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=this,s=a.app,l="string"==typeof e?e:t,c=a.replaceRequestUrlParams(l,r);function u(e){var t=r.context||{};if("function"==typeof t)t=t.call(a);else if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw o(e),e}var n=$.merge({},t,{$route:r.route,$f7route:r.route,$router:a,$f7router:a,$theme:{ios:"ios"===s.theme,md:"md"===s.theme,aurora:"aurora"===s.theme}});r.componentOptions&&r.componentOptions.el&&(e.el=r.componentOptions.el),r.componentOptions&&r.componentOptions.root&&(e.root=r.componentOptions.root),s.component.create(e,n).then((function(e){i(e.el)})).catch((function(e){throw o(e),new Error(e)}))}c&&a.params.componentCache&&a.cache.components.forEach((function(e){e.url===c&&(n=e.component)})),c&&n?u(n):c&&!n?(a.xhr&&(a.xhr.abort(),a.xhr=!1),a.xhrRequest(l,r).then((function(e){var t=s.component.parse(e);a.params.componentCache&&a.cache.components.push({url:c,component:t}),u(t)})).catch((function(e){throw o(),e}))):u(e)},modalComponentLoader:function(e,t,n,r,i,o){this.componentLoader(t,n,r,(function(e){i(e)}),o)},tabComponentLoader:function(e,t,n,r,i,o){this.componentLoader(t,n,r,(function(e){i(e)}),o)},pageComponentLoader:function(e,t,n,r,i,o){this.componentLoader(t,n,r,(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(e,t)}),o)}}};function vt(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:void 0===t?void 0:t.key}}var gt=vt,yt=Array.isArray;function bt(e){return"string"==typeof e||"number"==typeof e}function _t(e,t,n){var r,i,o,a={};if(void 0!==n?(a=t,yt(n)?r=n:bt(n)?i=n:n&&n.sel&&(r=[n])):void 0!==t&&(yt(t)?r=t:bt(t)?i=t:t&&t.sel?r=[t]:a=t),yt(r))for(o=0;o<r.length;++o)bt(r[o])&&(r[o]=vt(void 0,void 0,void 0,r[o],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,n,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(var i=0;i<n.length;++i){var o=n[i].data;void 0!==o&&e(o,n[i].children,n[i].sel)}}(a,r,e),vt(e,a,r,i,void 0)}var wt=_t,kt={};function St(e){return function(e){if(Array.isArray(e))return Et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ct,Tt,xt="area base br col command embed hr img input keygen link menuitem meta param source track wbr".split(" "),Mt="hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate".split(" "),$t="hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate".split(" "),Pt=a.createElement("div");function Ot(e){return e.split("-").map((function(e,t){return 0===t?e.toLowerCase():e[0].toUpperCase()+e.substr(1)})).join("")}function Lt(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach((function(n){e[Ot(n)]=t[n]}))})),e}function At(e,t,n,r,i){var o={},a=[],s=[],l=[],c=[],u=!1;e&&e.attrs&&e.attrs.component&&(i=e.attrs.component,delete e.attrs.component,u=!0);var d=i&&i.indexOf("-")>0&&kt[i];if(d&&(a.push((function(n){(n.sel===i||u)&&function(e){var t=e.app,n=e.vnode,r=e.tagName,i=e.data;t.component.create(Object.assign({el:n.elm},kt[r]),{$props:Lt(i.attrs||{},i.props||{})},n.children).then((function(e){n.data&&n.data.on&&e&&e.$el&&Object.keys(n.data.on).forEach((function(t){e.$el.on(t,n.data.on[t])})),n.elm.__component__=e}))}({app:t,vnode:n,tagName:i,data:e})})),s.push((function(e){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var n=t.el,r=t.$el;e.data&&e.data.on&&r&&Object.keys(e.data.on).forEach((function(t){r.off(t,e.data.on[t])})),t.$destroy&&t.$destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),delete e.elm.__component__}}(e)})),l.push((function(e,t){!function(e){var t=e&&e.elm&&e.elm.__component__;if(t){var n=Lt(e.data.attrs||{},e.data.props||{});t.$children=e.children,Object.assign(t.$props,n),t.$update()}}(t)}))),!d){if(!e||!e.attrs||!e.attrs.class)return o;e.attrs.class.split(" ").forEach((function(e){n||a.push.apply(a,St(t.getVnodeHooks("insert",e))),s.push.apply(s,St(t.getVnodeHooks("destroy",e))),l.push.apply(l,St(t.getVnodeHooks("update",e))),c.push.apply(c,St(t.getVnodeHooks("postpatch",e)))}))}return r&&!n&&c.push((function(e,t){var n=t||e;n&&n.data&&n.data.context&&n.data.context.$options.updated&&n.data.context.$hook("updated")})),0===a.length&&0===s.length&&0===l.length&&0===c.length||(a.length&&(o.insert=function(e){a.forEach((function(t){return t(e)}))}),s.length&&(o.destroy=function(e){s.forEach((function(t){return t(e)}))}),l.length&&(o.update=function(e,t){l.forEach((function(n){return n(e,t)}))}),c.length&&(o.postpatch=function(e,t){c.forEach((function(n){return n(e,t)}))})),o}function It(e,t,n,r,i,o){var a={context:t},l=e.attributes;Array.prototype.forEach.call(l,(function(e){var n=e.name,r=e.value;if(Mt.indexOf(n)>=0)a.props||(a.props={}),"readonly"===n&&(n="readOnly"),$t.indexOf(n)>=0?a.props[n]=!1!==r:a.props[n]=r;else if("key"===n)a.key=r;else if(0===n.indexOf("@")){a.on||(a.on={});var o=n.substr(1),l=!1,c=!1,u=!1;o.indexOf(".")>=0&&o.split(".").forEach((function(e,t){0===t?o=e:("stop"===e&&(l=!0),"prevent"===e&&(c=!0),"once"===e&&(u=!0))})),a.on[o]=function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.stop,a=i.prevent,l=i.once,c=!1,u=[],d=!0;if((n=e.indexOf("(")<0?e:e.split("(")[0]).indexOf(".")>=0)n.split(".").forEach((function(e,i){if(0!==i||"this"!==e){if(0===i&&"window"===e)return r=s,void(d=!1);if(r||(r=t),!r[e])throw new Error("Framework7: Component doesn't have method \"".concat(n.split(".").slice(0,i+1).join("."),'"'));r=r[e]}}));else{if(!t[n])throw new Error("Framework7: Component doesn't have method \"".concat(n,'"'));r=t[n]}function h(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var d=i[0];if(!l||!c){if(o&&d.stopPropagation(),a&&d.preventDefault(),c=!0,e.indexOf("(")<0)u=i;else{var h=e.split("(")[1].split(")")[0].replace(/'[^']*'|"[^"]*"/g,(function(e){return e.replace(/,/g,"<_comma_>")})).split(",").map((function(e){return e.replace(/<_comma_>/g,",")}));h.forEach((function(e){var n=e.trim();if(isNaN(n))if("true"===n)n=!0;else if("false"===n)n=!1;else if("null"===n)n=null;else if("undefined"===n)n=void 0;else if('"'===n[0])n=n.replace(/"/g,"");else if("'"===n[0])n=n.replace(/'/g,"");else if(n.indexOf(".")>0){var r;n.split(".").forEach((function(e){r||(r=t),r=r[e]})),n=r}else n=t[n];else n=parseFloat(n);u.push(n)}))}r.apply(void 0,St(u))}}return d&&(r=r.bind(t)),h}(r,t,{stop:l,prevent:c,once:u})}else if("style"===n)if(r.indexOf("{")>=0&&r.indexOf("}")>=0)try{a.style=JSON.parse(r)}catch(e){a.attrs||(a.attrs={}),a.attrs.style=r}else a.attrs||(a.attrs={}),a.attrs.style=r;else a.attrs||(a.attrs={}),a.attrs[n]=r,"id"!==n||a.key||i||(a.key=r)})),i&&t&&t.$id&&t.$style&&t.$styleScoped&&(a.attrs||(a.attrs={}),a.attrs["data-f7-".concat(t.$id)]="");var c=At(a,n,r,i,o);return c.prepatch=function(e,t){e&&t&&e&&e.data&&e.data.props&&Object.keys(e.data.props).forEach((function(n){$t.indexOf(n)<0||(t.data||(t.data={}),t.data.props||(t.data.props={}),!0!==e.data.props[n]||n in t.data.props||(t.data.props[n]=!1))}))},c&&(a.hook=c),a}function Dt(e,t,n,r){for(var i=[],o=e.childNodes,a=0;a<o.length;a+=1){var s=Nt(o[a],t,n,r);Array.isArray(s)?i.push.apply(i,St(s)):s&&i.push(s)}return i}function Nt(e,t,n,r,i){if(3===e.nodeType)return e.textContent;if(1!==e.nodeType)return null;var o=e instanceof s.SVGElement?e.nodeName:e.nodeName.toLowerCase();return"slot"===o?function(e,t,n,r){var i=e.getAttribute("name")||"default",o=(t.$children||[]).filter((function(e){var t="default";return e.data&&(t=e.data.attrs&&e.data.attrs.slot||"default"),t===i}));return 0===o.length?Dt(e,t,n,r):o}(e,t,n,r):wt(o,It(e,t,n,r,i,o),xt.indexOf(o)>=0?[]:Dt(e,t,n,r))}var Rt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=t.trim(),o=Pt;0===i.indexOf("<tr")&&(Ct||(Ct=a.createElement("tbody")),o=Ct),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(Tt||(Tt=a.createElement("tr")),o=Tt),o.innerHTML=i;for(var s=0;s<o.childNodes.length;s+=1)e||1!==o.childNodes[s].nodeType||(e=o.childNodes[s]);var l=Nt(e,n,n.$app,r,!0);return o.innerHTML="",l};var jt={createElement:function(e){return document.createElement(e)},createElementNS:function(e,t){return document.createElementNS(e,t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){n&&n.parentNode!==e&&n.__component__&&(n=n.__component__.el),e.insertBefore(t,n)},removeChild:function(e,t){e&&e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Bt(e){return void 0===e}function Yt(e){return void 0!==e}var Ft=gt("",{},[],void 0,void 0);function Ht(e,t){return e.key===t.key&&e.sel===t.sel}function Ut(e,t,n){var r,i,o,a={};for(r=t;r<=n;++r)null!=(o=e[r])&&void 0!==(i=o.key)&&(a[i]=r);return a}var zt=["create","update","remove","destroy","pre","post"];function Vt(e,t){var n,r=t.elm,i=e.data.attrs,o=t.data.attrs;if((i||o)&&i!==o){for(n in i=i||{},o=o||{}){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}var qt={create:Vt,update:Vt};function Wt(e,t){var n,r,i=t.elm,o=e.data.props,a=t.data.props;if((o||a)&&o!==a){for(n in a=a||{},o=o||{})a[n]||delete i[n];for(n in a)r=a[n],o[n]===r||"value"===n&&i[n]===r||(i[n]=r)}}var Gt={create:Wt,update:Wt},Kt="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout;function Jt(e,t,n){var r;r=function(){e[t]=n},Kt((function(){Kt(r)}))}function Xt(e,t){var n,r,i=t.elm,o=e.data.style,a=t.data.style;if((o||a)&&o!==a){a=a||{};var s="delayed"in(o=o||{});for(r in o)a[r]||("-"===r[0]&&"-"===r[1]?i.style.removeProperty(r):i.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(var l in a.delayed)n=a.delayed[l],s&&n===o.delayed[l]||Jt(i.style,l,n);else"remove"!==r&&n!==o[r]&&("-"===r[0]&&"-"===r[1]?i.style.setProperty(r,n):i.style[r]=n)}}function Qt(e){return function(e){if(Array.isArray(e))return Zt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function en(e,t,n){var r=e.type,i=n.data.on;i&&i[r]&&function(e,t,n){"function"==typeof e&&e.apply(void 0,[t].concat(Qt(n)))}(i[r],e,t)}function tn(e,t){var n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;if(n!==o&&(n&&r&&(o?Object.keys(n).forEach((function(e){o[e]||g(i).off(e,r)})):Object.keys(n).forEach((function(e){g(i).off(e,r)}))),o)){var s=e.listener||function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];en(t,r,e.vnode)};t.listener=s,s.vnode=t,n?Object.keys(o).forEach((function(e){n[e]||g(a).on(e,s)})):Object.keys(o).forEach((function(e){g(a).on(e,s)}))}}var nn=function(e,t){var n,r,i={},o=void 0!==t?t:jt;for(n=0;n<zt.length;++n)for(i[zt[n]]=[],r=0;r<e.length;++r){var a=e[r][zt[n]];void 0!==a&&i[zt[n]].push(a)}function s(e,t){return function(){if(0==--t){var n=o.parentNode(e);o.removeChild(n,e)}}}function l(e,t){var n,r=e.data;void 0!==r&&Yt(n=r.hook)&&Yt(n=n.init)&&(n(e),r=e.data);var a=e.children,s=e.sel;if("!"===s)Bt(e.text)&&(e.text=""),e.elm=o.createComment(e.text);else if(void 0!==s){var c=s.indexOf("#"),u=s.indexOf(".",c),d=c>0?c:s.length,h=u>0?u:s.length,f=-1!==c||-1!==u?s.slice(0,Math.min(d,h)):s,p=e.elm=Yt(r)&&Yt(n=r.ns)?o.createElementNS(n,f):o.createElement(f);for(d<h&&p.setAttribute("id",s.slice(d+1,h)),u>0&&p.setAttribute("class",s.slice(h+1).replace(/\./g," ")),n=0;n<i.create.length;++n)i.create[n](Ft,e);if(yt(a))for(n=0;n<a.length;++n){var m=a[n];null!=m&&o.appendChild(p,l(m,t))}else bt(e.text)&&o.appendChild(p,o.createTextNode(e.text));Yt(n=e.data.hook)&&(n.create&&n.create(Ft,e),n.insert&&t.push(e))}else e.elm=o.createTextNode(e.text);return e.elm}function c(e,t,n,r,i,a){for(;r<=i;++r){var s=n[r];null!=s&&o.insertBefore(e,l(s,a),t)}}function u(e){var t,n,r=e.data;if(void 0!==r){for(Yt(t=r.hook)&&Yt(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(void 0!==e.children)for(n=0;n<e.children.length;++n)null!=(t=e.children[n])&&"string"!=typeof t&&u(t)}}function d(e,t,n,r){for(;n<=r;++n){var a=void 0,l=void 0,c=void 0,d=t[n];if(null!=d)if(Yt(d.sel)){for(u(d),l=i.remove.length+1,c=s(d.elm,l),a=0;a<i.remove.length;++a)i.remove[a](d,c);Yt(a=d.data)&&Yt(a=a.hook)&&Yt(a=a.remove)?a(d,c):c()}else o.removeChild(e,d.elm)}}function h(e,t,n){var r,a;Yt(r=t.data)&&Yt(a=r.hook)&&Yt(r=a.prepatch)&&r(e,t);var s=t.elm=e.elm,u=e.children,f=t.children;if(e!==t){if(void 0!==t.data){for(r=0;r<i.update.length;++r)i.update[r](e,t);Yt(r=t.data.hook)&&Yt(r=r.update)&&r(e,t)}Bt(t.text)?Yt(u)&&Yt(f)?u!==f&&function(e,t,n,r){for(var i,a,s,u=0,f=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,y=n[0],b=n[g];u<=p&&f<=g;)null==m?m=t[++u]:null==v?v=t[--p]:null==y?y=n[++f]:null==b?b=n[--g]:Ht(m,y)?(h(m,y,r),m=t[++u],y=n[++f]):Ht(v,b)?(h(v,b,r),v=t[--p],b=n[--g]):Ht(m,b)?(h(m,b,r),o.insertBefore(e,m.elm,o.nextSibling(v.elm)),m=t[++u],b=n[--g]):Ht(v,y)?(h(v,y,r),o.insertBefore(e,v.elm,m.elm),v=t[--p],y=n[++f]):(void 0===i&&(i=Ut(t,u,p)),Bt(a=i[y.key])?(o.insertBefore(e,l(y,r),m.elm),y=n[++f]):((s=t[a]).sel!==y.sel?o.insertBefore(e,l(y,r),m.elm):(h(s,y,r),t[a]=void 0,o.insertBefore(e,s.elm,m.elm)),y=n[++f]));(u<=p||f<=g)&&(u>p?c(e,null==n[g+1]?null:n[g+1].elm,n,f,g,r):d(e,t,u,p))}(s,u,f,n):Yt(f)?(Yt(e.text)&&o.setTextContent(s,""),c(s,null,f,0,f.length-1,n)):Yt(u)?d(s,u,0,u.length-1):Yt(e.text)&&o.setTextContent(s,""):e.text!==t.text&&o.setTextContent(s,t.text),Yt(a)&&Yt(r=a.postpatch)&&r(e,t)}}return function(e,t){var n,r,a,s=[];for(n=0;n<i.pre.length;++n)i.pre[n]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){var t=e.id?"#"+e.id:"",n=e.className?"."+e.className.split(" ").join("."):"";return gt(o.tagName(e).toLowerCase()+t+n,{},[],void 0,e)}(e)),Ht(e,t)?h(e,t,s):(r=e.elm,a=o.parentNode(r),l(t,s),null!==a&&(o.insertBefore(a,t.elm,o.nextSibling(r)),d(a,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<i.post.length;++n)i.post[n]();return t}}([qt,Gt,{create:Xt,update:Xt,destroy:function(e){var t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){var n=e.data.style;if(n&&n.remove){var r,i=e.elm,o=0,a=n.remove,s=0,l=[];for(r in a)l.push(r),i.style[r]=a[r];for(var c=getComputedStyle(i)["transition-property"].split(", ");o<c.length;++o)-1!==l.indexOf(c[o])&&s++;i.addEventListener("transitionend",(function(e){e.target===i&&--s,0===s&&t()}))}else t()}},{create:tn,update:tn,destroy:tn}]),rn={};function on(e){return(on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function an(e){return function(e){if(Array.isArray(e))return sn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return sn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,un(r.key),r)}}function un(e){var t=function(e,t){if("object"!=on(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==on(t)?t:t+""}var dn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;ln(this,e);var o=$.id(),l=this;$.merge(l,{$props:{}},r,{$:g,$$:g,$dom7:g,$app:t,$f7:t,$options:$.extend({id:o},n),$id:n.isClassComponent?l.constructor.id:n.id||o,$mixins:n.isClassComponent?l.constructor.mixins:n.mixins,$children:i||[],$isRootComponent:!!n.root});var c=l.$options;if(l.$mixins&&l.$mixins.length)for(var u=l.$mixins.length-1;u>=0;u-=1){var d=l.$mixins[u];"string"==typeof d&&(rn[d]?l.$mixins[u]=rn[d]:l.$mixins.splice(u,1))}Object.defineProperty(l,"$slots",{enumerable:!0,configurable:!0,get:function(){var e={};return l.$children.forEach((function(t){var n="default";t.data&&(n=t.data.attrs&&t.data.attrs.slot||"default"),e[n]||(e[n]=[]),e[n].push(t)})),e}}),Object.defineProperty(l,"$root",{enumerable:!0,configurable:!0,get:function(){if(l.$isRootComponent)return l;if(t.rootComponent)return l.$onRootUpdated||(l.$onRootUpdated=function(){return l.$update()},t.on("rootComponentUpdated",l.$onRootUpdated)),t.rootComponent;var e=$.merge({},t.data,t.methods);return s&&s.Proxy&&(e=new s.Proxy(e,{set:function(e,n,r){t.data[n]=r},deleteProperty:function(e,n){delete t.data[n],delete t.methods[n]},has:function(e,n){return n in t.data||n in t.methods}})),e},set:function(){}}),c.render&&(c.render=c.render.bind(l));var h={};return l.$mixins&&l.$mixins.length&&l.$mixins.forEach((function(e){e.methods&&Object.assign(h,e.methods)})),c.methods&&Object.assign(h,c.methods),Object.keys(h).forEach((function(e){l[e]=h[e].bind(l)})),c.on&&Object.keys(c.on).forEach((function(e){c.on[e]=c.on[e].bind(l)})),c.once&&Object.keys(c.once).forEach((function(e){c.once[e]=c.once[e].bind(l)})),l.$style=c.isClassComponent?l.constructor.style:c.style,l.$styleScoped=c.isClassComponent?l.constructor.styleScoped:c.styleScoped,l.__updateQueue=[],new Promise((function(e,t){l.$hook("data",!0).then((function(t){var n={};t.forEach((function(e){Object.assign(n,e||{})})),$.extend(l,n),l.$hook("beforeCreate");var r=l.$render();if(l.$options.el)return r=r.trim(),l.$vnode=Rt(r,l,!0),l.$style&&(l.$styleEl=a.createElement("style"),l.$styleEl.innerHTML=l.$style),l.el=l.$options.el,nn(l.el,l.$vnode),l.el=l.$vnode.elm,l.$el=g(l.el),l.$attachEvents(),l.el.f7Component=l,l.$hook("created"),l.$mount(),void e(l);r&&"string"==typeof r?(r=r.trim(),l.$vnode=Rt(r,l,!0),l.el=a.createElement(l.$vnode.sel||"div"),nn(l.el,l.$vnode),l.$el=g(l.el)):r&&(l.el=r,l.$el=g(l.el)),l.$style&&(l.$styleEl=a.createElement("style"),l.$styleEl.innerHTML=l.$style),l.$attachEvents(),l.el&&(l.el.f7Component=l),l.$hook("created"),e(l)})).catch((function(e){t(e)}))}))}var t,n,r;return t=e,(n=[{key:"$attachEvents",value:function(){var e=this,t=e.$options,n=e.$el;e.$mixins&&e.$mixins.length&&(e.$detachEventsHandlers={},e.$mixins.forEach((function(t){t.on&&Object.keys(t.on).forEach((function(r){var i=t.on[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(i),n.on($.eventNameToColonCase(r),i)})),t.once&&Object.keys(t.once).forEach((function(r){var i=t.once[r].bind(e);e.$detachEventsHandlers[r]||(e.$detachEventsHandlers[r]=[]),e.$detachEventsHandlers[r].push(i),n.once($.eventNameToColonCase(r),i)}))}))),t.on&&Object.keys(t.on).forEach((function(e){n.on($.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){n.once($.eventNameToColonCase(e),t.once[e])}))}},{key:"$detachEvents",value:function(){var e=this,t=e.$options,n=e.$el;t.on&&Object.keys(t.on).forEach((function(e){n.off($.eventNameToColonCase(e),t.on[e])})),t.once&&Object.keys(t.once).forEach((function(e){n.off($.eventNameToColonCase(e),t.once[e])})),e.$detachEventsHandlers&&(Object.keys(e.$detachEventsHandlers).forEach((function(t){e.$detachEventsHandlers[t].forEach((function(e){n.off($.eventNameToColonCase(t),e)})),e.$detachEventsHandlers[t]=[],delete e.$detachEventsHandlers[t]})),e.$detachEventsHandlers=null,delete e.$detachEventsHandlers)}},{key:"$render",value:function(){var e=this.$options,t="";return e.render?t=e.render():this.render?t=this.render.call(this):e.template&&(t="string"==typeof e.template?o.a.compile(e.template)(this):e.template(this)),t}},{key:"$startUpdateQueue",value:function(){var e=this;e.__requestAnimationFrameId||(e.__requestAnimationFrameId=s.requestAnimationFrame((function(){e.__updateIsPending&&function(){var t=e.$render();if(t&&"string"==typeof t){t=t.trim();var n=Rt(t,e,!1);e.$vnode=nn(e.$vnode,n)}}();var t=an(e.__updateQueue);e.__updateQueue=[],e.__updateIsPending=!1,s.cancelAnimationFrame(e.__requestAnimationFrameId),delete e.__requestAnimationFrameId,delete e.__updateIsPending,t.forEach((function(e){return e()})),t=[]})))}},{key:"$tick",value:function(e){var t=this;return new Promise((function(n){t.__updateQueue.push((function(){n(),e&&e()})),t.$startUpdateQueue()}))}},{key:"$update",value:function(e){var t=this;return new Promise((function(n){t.__updateIsPending=!0,t.__updateQueue.push((function(){n(),e&&e(),t.$isRootComponent&&t.$f7.emit("rootComponentUpdated")})),t.$startUpdateQueue()}))}},{key:"$setState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this;return $.merge(n,e),n.$update(t)}},{key:"$f7ready",value:function(e){var t=this;this.$f7.initialized?e(this.$f7):this.$f7.once("init",(function(){e(t.$f7)}))}},{key:"$mount",value:function(e){this.$hook("beforeMount"),this.$styleEl&&g("head").append(this.$styleEl),e&&e(this.el),this.$hook("mounted")}},{key:"$destroy",value:function(){this.$hook("beforeDestroy"),this.$styleEl&&g(this.$styleEl).remove(),this.$onRootUpdated&&(this.$f7.off("rootComponentUpdated",this.$onRootUpdated),delete this.$onRootUpdated),this.$detachEvents(),this.$hook("destroyed"),this.el&&this.el.f7Component&&(this.el.f7Component=null,delete this.el.f7Component),this.$vnode&&(this.$vnode=nn(this.$vnode,{sel:this.$vnode.sel,data:{}})),s.cancelAnimationFrame(this.__requestAnimationFrameId),$.deleteProps(this)}},{key:"$hook",value:function(e,t){var n=this;if(t){var r=[];return n.$mixins&&n.$mixins.length&&n.$mixins.forEach((function(t){t[e]&&r.push(t[e].call(n))})),n[e]&&"function"==typeof n[e]&&r.push(n[e].call(n)),n.$options[e]&&r.push(n.$options[e].call(n)),Promise.all(r)}return n.$mixins&&n.$mixins.length&&n.$mixins.forEach((function(t){t[e]&&"function"==typeof t[e]&&t[e].call(n)})),n.$options[e]?n.$options[e].call(n):n[e]?n[e].call(n):void 0}}])&&cn(t.prototype,n),r&&cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();var hn=function(e){var t,n=$.id(),r="f7_component_create_callback_".concat(n),i="f7_component_render_callback_".concat(n),l=e.match(/<template([ ]?)([a-z0-9-]*)>/),c=l[2]||"t7";l&&(t=e.split(/<template[ ]?[a-z0-9-]*>/).filter((function(e,t){return t>0})).join("<template>").split("</template>").filter((function(e,t,n){return t<n.length-1})).join("</template>").replace(/{{#raw}}([ \n]*)<template/g,"{{#raw}}<template").replace(/\/template>([ \n]*){{\/raw}}/g,"/template>{{/raw}}").replace(/([ \n])<template/g,"$1{{#raw}}<template").replace(/\/template>([ \n])/g,"/template>{{/raw}}$1"));var u,d,h=null,f=!1;if(e.indexOf("<style>")>=0?h=e.split("<style>")[1].split("</style>")[0]:e.indexOf("<style scoped>")>=0&&(f=!0,h=(h=e.split("<style scoped>")[1].split("</style>")[0]).replace(/{{this}}/g,"[data-f7-".concat(n,"]")).replace(/[\n]?([^{^}]*){/gi,(function(e,t){return t=t.split(",").map((function(e){return e.indexOf("@")>=0||e.indexOf("[data-f7-".concat(n,"]"))>=0?e:"[data-f7-".concat(n,"] ").concat(e.trim())})).join(", "),"\n".concat(t," {")}))),e.indexOf("<script>")>=0){var p=e.split("<script>");u=p[p.length-1].split("<\/script>")[0].trim()}else u="return {}";u&&u.trim()||(u="return {}"),u="window.".concat(r," = function () {").concat(u,"}"),(d=a.createElement("script")).innerHTML=u,g("head").append(d);var m=s[r](),v="function"==typeof m;if(g(d).remove(),s[r]=null,delete s[r],m.template||m.render||(m.template=t,m.templateType=c),m.template){if("t7"===m.templateType)if(v){var y=o.a.compile(m.template);m.prototype.render=function(){return y(this)}}else m.template=o.a.compile(m.template);if("es"===m.templateType){var b="window.".concat(i," = function () {\n        return function render() {\n          return `").concat(m.template,"`;\n        }\n      }");(d=a.createElement("script")).innerHTML=b,g("head").append(d),v?m.prototype.render=m.template:m.render=s[i](),g(d).remove(),s[i]=null,delete s[i]}}return v&&(delete m.template,delete m.templateType),h&&(m.style=h,m.styleScoped=f),m.id=n,m};function fn(e,t){rn[e]=t}function pn(e,t){kt[e]=t}var mn={name:"component",static:{Component:dn,registerComponentMixin:fn,registerComponent:pn},create:function(){var e=this;e.component={registerComponentMixin:fn,registerComponent:pn,parse:function(e){return hn(e)},create:function(t,n,r){return"function"==typeof t?new t(e,{isClassComponent:!0},n,r):new dn(e,t,n,r)}}}},vn={name:"history",static:{history:Pe},on:{init:function(){Pe.init(this)}}},gn={registrations:[],register:function(e,t){var n=this;return"serviceWorker"in s.navigator&&n.serviceWorker.container?new Promise((function(r,i){n.serviceWorker.container.register(e,t?{scope:t}:{}).then((function(e){gn.registrations.push(e),n.emit("serviceWorkerRegisterSuccess",e),r(e)})).catch((function(e){n.emit("serviceWorkerRegisterError",e),i(e)}))})):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))},unregister:function(e){var t,n=this;return"serviceWorker"in s.navigator&&n.serviceWorker.container?(t=e?Array.isArray(e)?e:[e]:gn.registrations,Promise.all(t.map((function(e){return new Promise((function(t,r){e.unregister().then((function(){gn.registrations.indexOf(e)>=0&&gn.registrations.splice(gn.registrations.indexOf(e),1),n.emit("serviceWorkerUnregisterSuccess",e),t()})).catch((function(t){n.emit("serviceWorkerUnregisterError",e,t),r(t)}))}))})))):new Promise((function(e,t){t(new Error("Service worker is not supported"))}))}},yn={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create:function(){$.extend(this,{serviceWorker:{container:"serviceWorker"in s.navigator?s.navigator.serviceWorker:void 0,registrations:gn.registrations,register:gn.register.bind(this),unregister:gn.unregister.bind(this)}})},on:{init:function(){if("serviceWorker"in s.navigator){var e=this;if(e.serviceWorker.container){var t=e.params.serviceWorker.path,n=e.params.serviceWorker.scope;if(t&&(!Array.isArray(t)||t.length))(Array.isArray(t)?t:[t]).forEach((function(t){e.serviceWorker.register(t,n)}))}}}}},bn={hide:function(){O.cordova&&s.StatusBar&&s.StatusBar.hide()},show:function(){O.cordova&&s.StatusBar&&s.StatusBar.show()},onClick:function(){var e;(e=g(".popup.modal-in").length>0?g(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):g(".panel.panel-in").length>0?g(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):g(".views > .view.tab-active").length>0?g(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):g(".views").length>0?g(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):this.root.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"))&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor:function(e){O.cordova&&s.StatusBar&&("white"===e?s.StatusBar.styleLightContent():s.StatusBar.styleDefault())},setBackgroundColor:function(e){O.cordova&&s.StatusBar&&s.StatusBar.backgroundColorByHexString(e)},isVisible:function(){return!(!O.cordova||!s.StatusBar)&&s.StatusBar.isVisible},overlaysWebView:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];O.cordova&&s.StatusBar&&s.StatusBar.overlaysWebView(e)},init:function(){var e=this.params.statusbar;e.enabled&&(O.cordova&&s.StatusBar&&(e.scrollTopOnClick&&g(s).on("statusTap",bn.onClick.bind(this)),O.ios&&(e.iosOverlaysWebView?s.StatusBar.overlaysWebView(!0):s.StatusBar.overlaysWebView(!1),"white"===e.iosTextColor?s.StatusBar.styleLightContent():s.StatusBar.styleDefault()),O.android&&(e.androidOverlaysWebView?s.StatusBar.overlaysWebView(!0):s.StatusBar.overlaysWebView(!1),"white"===e.androidTextColor?s.StatusBar.styleLightContent():s.StatusBar.styleDefault())),e.iosBackgroundColor&&O.ios&&bn.setBackgroundColor(e.iosBackgroundColor),e.androidBackgroundColor&&O.android&&bn.setBackgroundColor(e.androidBackgroundColor))}},_n={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create:function(){$.extend(this,{statusbar:{hide:bn.hide,show:bn.show,overlaysWebView:bn.overlaysWebView,setTextColor:bn.setTextColor,setBackgroundColor:bn.setBackgroundColor,isVisible:bn.isVisible,init:bn.init.bind(this)}})},on:{init:function(){bn.init.call(this)}}};var wn={name:"view",params:{view:{name:void 0,main:!1,router:!0,linksView:null,stackPages:!1,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:6e5,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,auroraSwipeBack:!1,auroraSwipeBackAnimateShadow:!1,auroraSwipeBackAnimateOpacity:!0,auroraSwipeBackActiveArea:30,auroraSwipeBackThreshold:0,pushState:!1,pushStateRoot:void 0,pushStateAnimate:!0,pushStateAnimateOnLoad:!1,pushStateSeparator:"#!",pushStateOnLoad:!0,animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,auroraPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:ht},create:function(){var e=this;$.extend(e,{views:$.extend([],{create:function(t,n){return new ht(e,t,n)},get:function(e){var t=g(e);if(t.length&&t[0].f7View)return t[0].f7View}})}),Object.defineProperty(e.views,"current",{enumerable:!0,configurable:!0,get:function(){return function(e){var t=g(".popover.modal-in .view"),n=g(".popup.modal-in .view"),r=g(".panel.panel-in .view"),i=g(".views");0===i.length&&(i=e.root);var o=i.children(".view");if(o.length>1&&o.hasClass("tab")&&(o=i.children(".view.tab-active")),t.length>0&&t[0].f7View)return t[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(r.length>0&&r[0].f7View)return r[0].f7View;if(o.length>0){if(1===o.length&&o[0].f7View)return o[0].f7View;if(o.length>1)return e.views.main}}(e)}}),e.view=e.views},on:{init:function(){var e=this;g(".view-init").each((function(t,n){if(!n.f7View){var r=g(n).dataset();e.views.create(n,r)}}))},modalOpen:function(e){var t=this;e.$el.find(".view-init").each((function(e,n){if(!n.f7View){var r=g(n).dataset();t.views.create(n,r)}}))},modalBeforeDestroy:function(e){e&&e.$el&&e.$el.find(".view-init").each((function(e,t){var n=t.f7View;n&&n.destroy()}))}},vnode:{"view-init":{insert:function(e){var t=e.elm;if(!t.f7View){var n=g(t).dataset();this.views.create(t,n)}},destroy:function(e){var t=e.elm.f7View;t&&t.destroy()}}}},kn={size:function(e){var t=this,n=g(e);if(n.hasClass("navbars"))n=n.children(".navbar").each((function(e,n){t.navbar.size(n)}));else{var r=n.children(".navbar-inner");if(r.length){var i=r.hasClass("navbar-inner-centered-title")||t.params.navbar["".concat(t.theme,"CenterTitle")],o="ios"===t.theme&&!t.params.navbar["".concat(t.theme,"CenterTitle")];if((i||o)&&!(n.hasClass("stacked")||n.parents(".stacked").length>0||n.parents(".tab:not(.tab-active)").length>0||n.parents(".popup:not(.modal-in)").length>0)){"ios"!==t.theme&&t.params.navbar["".concat(t.theme,"CenterTitle")]&&r.addClass("navbar-inner-centered-title"),"ios"!==t.theme||t.params.navbar.iosCenterTitle||r.addClass("navbar-inner-left-title");var a,s,l,c,u=n.parents(".view").eq(0),d=t.rtl?r.children(".right"):r.children(".left"),h=t.rtl?r.children(".left"):r.children(".right"),f=r.children(".title"),p=r.children(".subnavbar"),m=0===d.length,v=0===h.length,y=m?0:d.outerWidth(!0),b=v?0:h.outerWidth(!0),_=f.outerWidth(!0),w=r.styles(),k=r[0].offsetWidth-parseInt(w.paddingLeft,10)-parseInt(w.paddingRight,10),S=n.hasClass("navbar-previous"),E=r.hasClass("sliding");u.length>0&&u[0].f7View&&(s=(a=u[0].f7View.router)&&a.dynamicNavbar),v&&(l=k-_),m&&(l=0),m||v||(l=(k-b-_+y)/2);var C=(k-_)/2;k-y-b>_?(C<y&&(C=y),C+_>k-b&&(C=k-b-_),c=C-l):c=0;var T=t.rtl?-1:1;if(s&&"ios"===t.theme){if(f.hasClass("sliding")||f.length>0&&E){var x=-(l+c)*T,M=(k-l-c-_)*T;if(S&&a&&a.params.iosAnimateNavbarBackIcon){var $=n.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");$.length>0&&(x+=$[0].offsetLeft)}f[0].f7NavbarLeftOffset=x,f[0].f7NavbarRightOffset=M}if(!m&&(d.hasClass("sliding")||E))if(t.rtl)d[0].f7NavbarLeftOffset=-(k-d[0].offsetWidth)/2*T,d[0].f7NavbarRightOffset=y*T;else if(d[0].f7NavbarLeftOffset=-y,d[0].f7NavbarRightOffset=(k-d[0].offsetWidth)/2,a&&a.params.iosAnimateNavbarBackIcon&&d.find(".back .icon").length>0&&d.find(".back .icon ~ span").length){var P=d[0].f7NavbarLeftOffset,O=d[0].f7NavbarRightOffset;d[0].f7NavbarLeftOffset=0,d[0].f7NavbarRightOffset=0,d.find(".back .icon ~ span")[0].f7NavbarLeftOffset=P,d.find(".back .icon ~ span")[0].f7NavbarRightOffset=O-d.find(".back .icon")[0].offsetWidth}v||!h.hasClass("sliding")&&!E||(t.rtl?(h[0].f7NavbarLeftOffset=-b*T,h[0].f7NavbarRightOffset=(k-h[0].offsetWidth)/2*T):(h[0].f7NavbarLeftOffset=-(k-h[0].offsetWidth)/2,h[0].f7NavbarRightOffset=b)),p.length&&(p.hasClass("sliding")||E)&&(p[0].f7NavbarLeftOffset=t.rtl?p[0].offsetWidth:-p[0].offsetWidth,p[0].f7NavbarRightOffset=-p[0].f7NavbarLeftOffset)}if(i){var L=c;t.rtl&&m&&v&&f.length>0&&(L=-L),f.css({left:"".concat(L,"px")})}}}}},hide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,i=g(e),o=i.hasClass("navbar")&&i.parent(".navbars").length;if(o&&(i=i.parents(".navbars")),i.length&&!i.hasClass("navbar-hidden")){var a="navbar-hidden".concat(t?" navbar-transitioning":""),s=o?i.find(".navbar-current .title-large").length:i.find(".title-large").length;s&&(a+=" navbar-large-hidden"),n&&(a+=" navbar-hidden-statusbar"),i.transitionEnd((function(){i.removeClass("navbar-transitioning")})),i.addClass(a),o?i.children(".navbar").each((function(e,t){g(t).trigger("navbar:hide"),r.emit("navbarHide",t)})):(i.trigger("navbar:hide"),r.emit("navbarHide",i[0]))}},show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".navbar-hidden",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e),i=r.hasClass("navbar")&&r.parent(".navbars").length;i&&(r=r.parents(".navbars")),r.length&&r.hasClass("navbar-hidden")&&(t&&(r.addClass("navbar-transitioning"),r.transitionEnd((function(){r.removeClass("navbar-transitioning")}))),r.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),i?r.children(".navbar").each((function(e,t){g(t).trigger("navbar:show"),n.emit("navbarShow",t)})):(r.trigger("navbar:show"),n.emit("navbarShow",r[0])))},getElByPage:function(e){var t,n,r;if(e.$navbarEl||e.$el?(r=e,t=e.$el):(t=g(e)).length>0&&(r=t[0].f7Page),r&&r.$navbarEl&&r.$navbarEl.length>0?n=r.$navbarEl:t&&(n=t.children(".navbar")),n&&(!n||0!==n.length))return n[0]},getPageByEl:function(e){var t,n=g(e);return n.parents(".page").length?n.parents(".page")[0]:(n.parents(".view").find(".page").each((function(e,r){r&&r.f7Page&&r.f7Page.navbarEl&&n[0]===r.f7Page.navbarEl&&(t=r)})),t)},collapseLargeTitle:function(e){var t=g(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar")).length>1&&(t=g(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var n=g(this.navbar.getPageByEl(t));t.addClass("navbar-large-collapsed"),n.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),this.emit("pageNavbarLargeCollapsed",n[0]),t.trigger("navbar:collapse"),this.emit("navbarCollapse",t[0])}},expandLargeTitle:function(e){var t=g(e);if(!(t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=g(e).find(".navbar-large.navbar-current")),t.length>1||!t.length))){var n=g(this.navbar.getPageByEl(t));t.removeClass("navbar-large-collapsed"),n.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),this.emit("pageNavbarLargeExpanded",n[0]),t.trigger("navbar:expand"),this.emit("navbarExpand",t[0])}},toggleLargeTitle:function(e){var t=g(e);t.hasClass("navbars")&&((t=t.find(".navbar-large")).length>1&&(t=g(e).find(".navbar-large.navbar-current")),t.length>1||!t.length)||(t.hasClass("navbar-large-collapsed")?this.navbar.expandLargeTitle(t):this.navbar.collapseLargeTitle(t))},initNavbarOnScroll:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,m,v,y,b,_=this,w=g(e),k=g(t),S=k.find(".title-large"),E=S.length||k.hasClass(".navbar-large"),C=44,T=_.params.navbar.snapPageScrollToLargeTitle,x=_.params.navbar.snapPageScrollToTransparentNavbar;(r||n&&E)&&((f=k.css("--f7-navbar-large-title-height"))&&f.indexOf("px")>=0?(f=parseInt(f,10),Number.isNaN(f)&&S.length?f=S[0].offsetHeight:Number.isNaN(f)&&("ios"===_.theme?f=52:"md"===_.theme?f=48:"aurora"===_.theme&&(f=38))):S.length?f=S[0].offsetHeight:"ios"===_.theme?f=52:"md"===_.theme?f=48:"aurora"===_.theme&&(f=38)),n&&E&&(C+=f);function M(){k.hasClass("with-searchbar-expandable-enabled")||!v||a<0||(a>=f/2&&a<f?g(v).scrollTop(f,100):a<f&&g(v).scrollTop(0,200))}function $(){k.hasClass("with-searchbar-expandable-enabled")||!v||a<0||(a>=p/2&&a<p?g(v).scrollTop(p,100):a<p&&g(v).scrollTop(0,200))}function O(e){v=this,e&&e.target&&e.target!==v||(a=v.scrollTop,m=a,r?function(){if(!(k.hasClass("navbar-hidden")||k.parent(".navbars").hasClass("navbar-hidden"))){var e=k.hasClass("navbar-large-transparent")||k.hasClass("navbar-large")&&k.hasClass("navbar-transparent"),t=Math.min(Math.max(a/f,0),1);k.hasClass("with-searchbar-expandable-enabled")||(h=k.hasClass("navbar-large-collapsed"),0===t&&h?_.navbar.expandLargeTitle(k[0]):1!==t||h||_.navbar.collapseLargeTitle(k[0]),0===t&&h||1===t&&!h?("md"===_.theme&&k.find(".navbar-inner").css("overflow",""),k.find(".title").css("opacity",""),k.find(".title-large-text, .subnavbar").css("transform",""),e?k.find(".navbar-bg").css("opacity",""):k.find(".navbar-bg").css("transform","")):t>0&&t<1&&("md"===_.theme&&k.find(".navbar-inner").css("overflow","visible"),k.find(".title").css("opacity",t),k.find(".title-large-text, .subnavbar").css("transform","translate3d(0px, ".concat(-1*t*f,"px, 0)")),e?k.find(".navbar-bg").css("opacity",t):k.find(".navbar-bg").css("transform","translate3d(0px, ".concat(-1*t*f,"px, 0)"))),T&&(P.touch?b&&(clearTimeout(b),b=null,b=setTimeout((function(){M(),clearTimeout(b),b=null}),70)):(clearTimeout(y),y=setTimeout((function(){M()}),300))))}}():i&&function(){var e=k.hasClass("navbar-hidden")||k.parent(".navbars").hasClass("navbar-hidden");if(!k.hasClass("with-searchbar-expandable-enabled")&&!e){p||(p=t.offsetHeight);var n=a/p,r=k.hasClass("navbar-transparent-visible");if(n=Math.max(Math.min(n,1),0),r&&1===n||!r&&0===n)k.find(".navbar-bg, .title").css("opacity","");else{if(r&&0===n)return k.trigger("navbar:transparenthide"),_.emit("navbarTransparentHide",k[0]),k.removeClass("navbar-transparent-visible"),void k.find(".navbar-bg, .title").css("opacity","");if(!r&&1===n)return k.trigger("navbar:transparentshow"),_.emit("navbarTransparentShow",k[0]),k.addClass("navbar-transparent-visible"),void k.find(".navbar-bg, .title").css("opacity","");k.find(".navbar-bg, .title").css("opacity",n),x&&(P.touch?b&&(clearTimeout(b),b=null,b=setTimeout((function(){$(),clearTimeout(b),b=null}),70)):(clearTimeout(y),y=setTimeout((function(){$()}),300)))}}}(),w.hasClass("page-previous")||n&&(s=v.scrollHeight,l=v.offsetHeight,c=a+l>=s,d=k.hasClass("navbar-hidden")||k.parent(".navbars").hasClass("navbar-hidden"),c?_.params.navbar.showOnPageScrollEnd&&(u="show"):u=o>a?_.params.navbar.showOnPageScrollTop||a<=C?"show":"hide":a>C?"hide":"show","show"===u&&d?(_.navbar.show(k),d=!1):"hide"!==u||d||(_.navbar.hide(k),d=!0),o=a))}function L(){m=!1}function A(){clearTimeout(b),b=null,b=setTimeout((function(){!1!==m&&(i&&!r?$():M(),clearTimeout(b),b=null)}),70)}w.on("scroll",".page-content",O,!0),P.touch&&(r&&T||i&&x)&&(_.on("touchstart:passive",L),_.on("touchend:passive",A)),(r||i)&&w.find(".page-content").each((function(e,t){t.scrollTop>0&&O.call(t)})),w[0].f7DetachNavbarScrollHandlers=function(){delete w[0].f7DetachNavbarScrollHandlers,w.off("scroll",".page-content",O,!0),P.touch&&(r&&T||i&&x)&&(_.off("touchstart:passive",L),_.off("touchend:passive",A))}}},Sn={name:"navbar",create:function(){var e=this;$.extend(e,{navbar:{size:kn.size.bind(e),hide:kn.hide.bind(e),show:kn.show.bind(e),getElByPage:kn.getElByPage.bind(e),getPageByEl:kn.getPageByEl.bind(e),collapseLargeTitle:kn.collapseLargeTitle.bind(e),expandLargeTitle:kn.expandLargeTitle.bind(e),toggleLargeTitle:kn.toggleLargeTitle.bind(e),initNavbarOnScroll:kn.initNavbarOnScroll.bind(e)}})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,auroraCenterTitle:!0,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize resize viewMasterDetailBreakpoint":function(){var e=this;g(".navbar").each((function(t,n){e.navbar.size(n)}))},pageBeforeRemove:function(e){e.$el[0].f7DetachNavbarScrollHandlers&&e.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn:function(e){if("ios"===this.theme){var t,n=e.$el.parents(".view")[0].f7View,r=this.navbar.getElByPage(e);if(t=r?g(r).parents(".navbars"):e.$el.parents(".view").children(".navbars"),e.$el.hasClass("no-navbar")||n.router.dynamicNavbar&&!r){var i=!!(e.pageFrom&&e.router.history.length>0);this.navbar.hide(t,i)}else this.navbar.show(t)}},pageReinit:function(e){var t=g(this.navbar.getElByPage(e));t&&0!==t.length&&this.navbar.size(t)},pageInit:function(e){var t,n,r,i=g(this.navbar.getElByPage(e));i&&0!==i.length&&(this.navbar.size(i),i.find(".title-large").length>0&&i.addClass("navbar-large"),i.hasClass("navbar-large")&&(this.params.navbar.collapseLargeTitleOnScroll&&(t=!0),e.$el.addClass("page-with-navbar-large")),!t&&i.hasClass("navbar-transparent")&&(n=!0),(this.params.navbar.hideOnPageScroll||e.$el.find(".hide-navbar-on-scroll").length||e.$el.hasClass("hide-navbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll"))&&(r=!(e.$el.find(".keep-navbar-on-scroll").length||e.$el.hasClass("keep-navbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))),(t||r||n)&&this.navbar.initNavbarOnScroll(e.el,i[0],r,t,n))},"panelOpen panelSwipeOpen modalOpen":function(e){var t=this;e.$el.find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,n){t.navbar.size(n)}))},tabShow:function(e){var t=this;g(e).find(".navbar:not(.navbar-previous):not(.stacked)").each((function(e,n){t.navbar.size(n)}))}},clicks:{".navbar .title":function(e){if(this.params.navbar.scrollTopOnTitleClick&&!(e.closest("a").length>0)){var t,n=e.parents(".navbar"),r=n.parents(".navbars");0===(t=n.parents(".page-content")).length&&(n.parents(".page").length>0&&(t=n.parents(".page").find(".page-content")),0===t.length&&r.length&&r.nextAll(".page-current:not(.stacked)").length>0&&(t=r.nextAll(".page-current:not(.stacked)").find(".page-content")),0===t.length&&n.nextAll(".page-current:not(.stacked)").length>0&&(t=n.nextAll(".page-current:not(.stacked)").find(".page-content"))),t&&t.length>0&&(t.hasClass("tab")&&(t=t.parent(".tabs").children(".page-content.tab-active")),t.length>0&&t.scrollTop(0,300))}}},vnode:{navbar:{postpatch:function(e){this.navbar.size(e.elm)}}}},En={setHighlight:function(e){if("md"===this.theme){var t=g(e);if(0!==t.length&&(t.hasClass("tabbar")||t.hasClass("tabbar-labels"))){var n=t.find(".tab-link-highlight"),r=t.find(".tab-link").length;if(0!==r){0===n.length?(t.children(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),n=t.find(".tab-link-highlight")):n.next().length&&t.children(".toolbar-inner").append(n);var i,o,a=t.find(".tab-link-active");if(t.hasClass("tabbar-scrollable")&&a&&a[0])i="".concat(a[0].offsetWidth,"px"),o="".concat(a[0].offsetLeft,"px");else{var s=a.index();i="".concat(100/r,"%"),o="".concat(100*(this.rtl?-s:s),"%")}$.nextFrame((function(){n.css("width",i).transform("translate3d(".concat(o,",0,0)"))}))}else n.remove()}}},init:function(e){this.toolbar.setHighlight(e)},hide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e);if(!r.hasClass("toolbar-hidden")){var i="toolbar-hidden".concat(t?" toolbar-transitioning":"");r.transitionEnd((function(){r.removeClass("toolbar-transitioning")})),r.addClass(i),r.trigger("toolbar:hide"),n.emit("toolbarHide",r[0])}},show:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e);r.hasClass("toolbar-hidden")&&(t&&(r.addClass("toolbar-transitioning"),r.transitionEnd((function(){r.removeClass("toolbar-transitioning")}))),r.removeClass("toolbar-hidden"),r.trigger("toolbar:show"),n.emit("toolbarShow",r[0]))},initHideToolbarOnScroll:function(e){var t,n,r,i,o,a,s,l=this,c=g(e),u=c.parents(".view").children(".toolbar");(0===u.length&&(u=c.find(".toolbar")),0===u.length&&(u=c.parents(".views").children(".tabbar, .tabbar-labels")),0!==u.length)&&(c.on("scroll",".page-content",d,!0),c[0].f7ScrollToolbarHandler=d);function d(e){e&&e.target&&e.target!==this||c.hasClass("page-previous")||(n=this.scrollTop,r=this.scrollHeight,i=this.offsetHeight,o=n+i>=r,s=u.hasClass("toolbar-hidden"),o?l.params.toolbar.showOnPageScrollEnd&&(a="show"):a=t>n?l.params.toolbar.showOnPageScrollTop||n<=44?"show":"hide":n>44?"hide":"show","show"===a&&s?(l.toolbar.show(u),s=!1):"hide"!==a||s||(l.toolbar.hide(u),s=!0),t=n)}}},Cn={name:"toolbar",create:function(){$.extend(this,{toolbar:{hide:En.hide.bind(this),show:En.show.bind(this),setHighlight:En.setHighlight.bind(this),initHideToolbarOnScroll:En.initHideToolbarOnScroll.bind(this),init:En.init.bind(this)}})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove:function(e){e.$el[0].f7ScrollToolbarHandler&&e.$el.off("scroll",".page-content",e.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn:function(e){var t=e.$el.parents(".view").children(".toolbar");0===t.length&&(t=e.$el.parents(".views").children(".tabbar, .tabbar-labels")),0===t.length&&(t=e.$el.find(".toolbar")),0!==t.length&&(e.$el.hasClass("no-toolbar")?this.toolbar.hide(t):this.toolbar.show(t))},pageInit:function(e){var t=this;if(e.$el.find(".tabbar, .tabbar-labels").each((function(e,n){t.toolbar.init(n)})),t.params.toolbar.hideOnPageScroll||e.$el.find(".hide-toolbar-on-scroll").length||e.$el.hasClass("hide-toolbar-on-scroll")||e.$el.find(".hide-bars-on-scroll").length||e.$el.hasClass("hide-bars-on-scroll")){if(e.$el.find(".keep-toolbar-on-scroll").length||e.$el.hasClass("keep-toolbar-on-scroll")||e.$el.find(".keep-bars-on-scroll").length||e.$el.hasClass("keep-bars-on-scroll"))return;t.toolbar.initHideToolbarOnScroll(e.el)}},init:function(){var e=this;e.root.find(".tabbar, .tabbar-labels").each((function(t,n){e.toolbar.init(n)}))}},vnode:{tabbar:{insert:function(e){this.toolbar.init(e.elm)}}}};function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mn(r.key),r)}}function Mn(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tn(t)?t:t+""}var $n=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=this;if(t){var o=t[0].getBoundingClientRect(),a={x:n-o.left,y:r-o.top},s=o.width,l=o.height,c=Math.max(Math.pow(Math.pow(l,2)+Math.pow(s,2),.5),48);return i.$rippleWaveEl=g('<div class="ripple-wave" style="width: '.concat(c,"px; height: ").concat(c,"px; margin-top:-").concat(c/2,"px; margin-left:-").concat(c/2,"px; left:").concat(a.x,"px; top:").concat(a.y,'px;"></div>')),t.prepend(i.$rippleWaveEl),i.rippleTransform="translate3d(".concat(s/2-a.x,"px, ").concat(l/2-a.y,"px, 0) scale(1)"),$.nextFrame((function(){i&&i.$rippleWaveEl&&i.$rippleWaveEl.transform(i.rippleTransform)})),i}}var t,n,r;return t=e,(n=[{key:"destroy",value:function(){var e=this;e.$rippleWaveEl&&e.$rippleWaveEl.remove(),Object.keys(e).forEach((function(t){e[t]=null,delete e[t]})),e=null}},{key:"remove",value:function(){var e=this;if(!e.removing){var t=this.$rippleWaveEl,n=this.rippleTransform,r=$.nextTick((function(){e.destroy()}),400);e.removing=!0,t.addClass("ripple-wave-fill").transform(n.replace("scale(1)","scale(1.01)")).transitionEnd((function(){clearTimeout(r),$.nextFrame((function(){t.addClass("ripple-wave-out").transform(n.replace("scale(1)","scale(1.01)")),r=$.nextTick((function(){e.destroy()}),700),t.transitionEnd((function(){clearTimeout(r),e.destroy()}))}))}))}}}])&&xn(t.prototype,n),r&&xn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pn(e,t,n){if(Ln())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&On(i,n.prototype),i}function On(e,t){return(On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ln(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ln=function(){return!!e})()}var An={name:"touch-ripple",static:{TouchRipple:$n},create:function(){this.touchRipple={create:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pn($n,t)}}}};function In(e){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nn(r.key),r)}}function Nn(e){var t=function(e,t){if("object"!=In(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=In(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==In(t)?t:t+""}function Rn(e,t){if(t&&("object"==In(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bn(e)}function jn(e){return(jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yn(e,t){return(Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fn=[],Hn=[];var Un=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=Bn(r=Rn(this,jn(t).call(this,n,[e]))),o={};return i.useModulesParams(o),i.params=$.extend(o,n),i.opened=!1,i.useModules(),Rn(r,Bn(r))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yn(e,t)}(t,e),n=t,(r=[{key:"onOpen",value:function(){this.opened=!0,Fn.push(this),g("html").addClass("with-modal-".concat(this.type.toLowerCase())),this.$el.trigger("modal:open ".concat(this.type.toLowerCase(),":open")),this.emit("local::open modalOpen ".concat(this.type,"Open"),this)}},{key:"onOpened",value:function(){this.$el.trigger("modal:opened ".concat(this.type.toLowerCase(),":opened")),this.emit("local::opened modalOpened ".concat(this.type,"Opened"),this)}},{key:"onClose",value:function(){this.opened=!1,this.type&&this.$el&&(Fn.splice(Fn.indexOf(this),1),g("html").removeClass("with-modal-".concat(this.type.toLowerCase())),this.$el.trigger("modal:close ".concat(this.type.toLowerCase(),":close")),this.emit("local::close modalClose ".concat(this.type,"Close"),this))}},{key:"onClosed",value:function(){this.type&&this.$el&&(this.$el.removeClass("modal-out"),this.$el.hide(),this.$el.trigger("modal:closed ".concat(this.type.toLowerCase(),":closed")),this.emit("local::closed modalClosed ".concat(this.type,"Closed"),this))}},{key:"open",value:function(e){var t,n=this,r=n.app,i=n.$el,o=n.$backdropEl,s=n.type,l=!0;if(void 0!==e?l=e:void 0!==n.params.animate&&(l=n.params.animate),!i||i.hasClass("modal-in"))return n;if("dialog"===s&&r.params.modal.queueDialogs&&(g(".dialog.modal-in").length>0?t=!0:Fn.length>0&&Fn.forEach((function(e){"dialog"===e.type&&(t=!0)})),t))return Hn.push(n),n;var c=i.parent(),u=i.parents(a).length>0;function d(){i.hasClass("modal-out")?n.onClosed():i.hasClass("modal-in")&&n.onOpened()}return r.params.modal.moveToRoot&&!c.is(r.root)&&(r.root.append(i),n.once("".concat(s,"Closed"),(function(){u?c.append(i):i.remove()}))),i.show(),n._clientLeft=i[0].clientLeft,l?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),i.animationEnd((function(){d()})),i.transitionEnd((function(){d()})),i.removeClass("modal-out not-animated").addClass("modal-in"),n.onOpen()):(o&&o.addClass("backdrop-in not-animated"),i.removeClass("modal-out").addClass("modal-in not-animated"),n.onOpen(),n.onOpened()),n}},{key:"close",value:function(e){var t=this,n=t.$el,r=t.$backdropEl,i=!0;if(void 0!==e?i=e:void 0!==t.params.animate&&(i=t.params.animate),!n||!n.hasClass("modal-in"))return Hn.indexOf(t)>=0&&Hn.splice(Hn.indexOf(t),1),t;if(r){var o=!0;"popup"===t.type&&t.$el.prevAll(".popup.modal-in").each((function(e,n){var r=n.f7Modal;r&&r.params.closeByBackdropClick&&r.params.backdrop&&r.backdropEl===t.backdropEl&&(o=!1)})),o&&(r[i?"removeClass":"addClass"]("not-animated"),r.removeClass("backdrop-in"))}function a(){n.hasClass("modal-out")?t.onClosed():n.hasClass("modal-in")&&t.onOpened()}return n[i?"removeClass":"addClass"]("not-animated"),i?(n.animationEnd((function(){a()})),n.transitionEnd((function(){a()})),n.removeClass("modal-in").addClass("modal-out"),t.onClose()):(n.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),t.onClose(),t.onClosed()),"dialog"===t.type&&0!==Hn.length&&Hn.shift().open(),t}},{key:"destroy",value:function(){this.destroyed||(this.emit("local::beforeDestroy modalBeforeDestroy ".concat(this.type,"BeforeDestroy"),this),this.$el&&(this.$el.trigger("modal:beforedestroy ".concat(this.type.toLowerCase(),":beforedestroy")),this.$el.length&&this.$el[0].f7Modal&&delete this.$el[0].f7Modal),$.deleteProps(this),this.destroyed=!0)}}])&&Dn(n.prototype,r),i&&Dn(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W);function zn(e){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vn(e,t){if(t&&("object"==zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wn(e)}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Kn=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o,a=$.extend({backdrop:!0,closeByBackdropClick:!0,on:{}},n),s=Wn(r=Vn(this,qn(t).call(this,e,a)));if(s.params=a,(i=s.params.el?g(s.params.el):g(s.params.content))&&i.length>0&&i[0].f7Modal)return Vn(r,i[0].f7Modal);if(0===i.length)return Vn(r,s.destroy());function l(e){s&&!s.destroyed&&o&&e.target===o[0]&&s.close()}return s.params.backdrop&&0===(o=e.root.children(".custom-modal-backdrop")).length&&(o=g('<div class="custom-modal-backdrop"></div>'),e.root.append(o)),s.on("customModalOpened",(function(){s.params.closeByBackdropClick&&s.params.backdrop&&e.on("click",l)})),s.on("customModalClose",(function(){s.params.closeByBackdropClick&&s.params.backdrop&&e.off("click",l)})),$.extend(s,{app:e,$el:i,el:i[0],$backdropEl:o,backdropEl:o&&o[0],type:"customModal"}),i[0].f7Modal=s,Vn(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(t,e),t}(Un),Jn={name:"modal",static:{Modal:Un,CustomModal:Kn},create:function(){var e=this;e.customModal={create:function(t){return new Kn(e,t)}}},params:{modal:{moveToRoot:!0,queueDialogs:!0}}};function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t){if(t&&("object"==Xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return er(e)}function Zn(e){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e,t){return(tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var nr=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=$.extend({title:e.params.dialog.title,text:void 0,content:"",buttons:[],verticalButtons:!1,onClick:void 0,cssClass:void 0,destroyOnClose:!1,on:{}},n);void 0===i.closeByBackdropClick&&(i.closeByBackdropClick=e.params.dialog.closeByBackdropClick),void 0===i.backdrop&&(i.backdrop=e.params.dialog.backdrop);var o,s,l,c=er(r=Qn(this,Zn(t).call(this,e,i))),u=i.title,d=i.text,h=i.content,f=i.buttons,p=i.verticalButtons,m=i.cssClass,v=i.backdrop;if(c.params=i,c.params.el)o=g(c.params.el);else{var y=["dialog"];0===f.length&&y.push("dialog-no-buttons"),f.length>0&&y.push("dialog-buttons-".concat(f.length)),p&&y.push("dialog-buttons-vertical"),m&&y.push(m);var b="";f.length>0&&(b='\n          <div class="dialog-buttons">\n            '.concat(f.map((function(e){return'\n              <span class="dialog-button'.concat(e.bold?" dialog-button-bold":"").concat(e.color?" color-".concat(e.color):"").concat(e.cssClass?" ".concat(e.cssClass):"",'">').concat(e.text,"</span>\n            ")})).join(""),"\n          </div>\n        "));var _='\n        <div class="'.concat(y.join(" "),'">\n          <div class="dialog-inner">\n            ').concat(u?'<div class="dialog-title">'.concat(u,"</div>"):"","\n            ").concat(d?'<div class="dialog-text">'.concat(d,"</div>"):"","\n            ").concat(h,"\n          </div>\n          ").concat(b,"\n        </div>\n      ");o=g(_)}if(o&&o.length>0&&o[0].f7Modal)return Qn(r,o[0].f7Modal);if(0===o.length)return Qn(r,c.destroy());function w(e){var t=g(this).index(),n=f[t];n.onClick&&n.onClick(c,e),c.params.onClick&&c.params.onClick(c,t),!1!==n.close&&c.close()}function k(e){var t=e.keyCode;f.forEach((function(n,r){n.keyCodes&&n.keyCodes.indexOf(t)>=0&&(a.activeElement&&a.activeElement.blur(),n.onClick&&n.onClick(c,e),c.params.onClick&&c.params.onClick(c,r),!1!==n.close&&c.close())}))}function S(e){var t=e.target;0===g(t).closest(c.el).length&&c.params.closeByBackdropClick&&c.backdropEl&&c.backdropEl===t&&c.close()}return v&&0===(s=e.root.children(".dialog-backdrop")).length&&(s=g('<div class="dialog-backdrop"></div>'),e.root.append(s)),f&&f.length>0&&(c.on("open",(function(){o.find(".dialog-button").each((function(e,t){f[e].keyCodes&&(l=!0),g(t).on("click",w)})),!l||e.device.ios||e.device.android||e.device.cordova||g(a).on("keydown",k)})),c.on("close",(function(){o.find(".dialog-button").each((function(e,t){g(t).off("click",w)})),!l||e.device.ios||e.device.android||e.device.cordova||g(a).off("keydown",k),l=!1}))),$.extend(c,{app:e,$el:o,el:o[0],$backdropEl:s,backdropEl:s&&s[0],type:"dialog",setProgress:function(t,n){return e.progressbar.set(o.find(".progressbar"),t,n),c},setText:function(e){var t=o.find(".dialog-text");return 0===t.length&&(t=g('<div class="dialog-text"></div>'),void 0!==u?t.insertAfter(o.find(".dialog-title")):o.find(".dialog-inner").prepend(t)),t.html(e),c.params.text=e,c},setTitle:function(e){var t=o.find(".dialog-title");return 0===t.length&&(t=g('<div class="dialog-title"></div>'),o.find(".dialog-inner").prepend(t)),t.html(e),c.params.title=e,c}}),c.on("opened",(function(){c.params.closeByBackdropClick&&e.on("click",S)})),c.on("close",(function(){c.params.closeByBackdropClick&&e.off("click",S)})),o[0].f7Modal=c,c.params.destroyOnClose&&c.once("closed",(function(){setTimeout((function(){c.destroy()}),0)})),Qn(r,c)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tr(e,t)}(t,e),t}(Un);function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr={name:"dialog",params:{dialog:{title:void 0,buttonOk:"OK",buttonCancel:"Cancel",usernamePlaceholder:"Username",passwordPlaceholder:"Password",preloaderTitle:"Loading... ",progressTitle:"Loading... ",backdrop:!0,closeByBackdropClick:!1,destroyPredefinedDialogs:!0,keyboardActions:!0,autoFocus:!0}},static:{Dialog:nr},create:function(){var e=this;function t(){return e.params.dialog.title||e.name}var n=e.params.dialog.destroyPredefinedDialogs,r=e.params.dialog.keyboardActions,i=e.params.dialog.autoFocus?{on:{opened:function(e){e.$el.find("input").eq(0).focus()}}}:{};e.dialog=$.extend(Q({app:e,constructor:nr,defaultSelector:".dialog.modal-in"}),{alert:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0],l=o[1],c=o[2];return 2===o.length&&"function"==typeof o[1]&&(s=o[0],c=o[1],l=o[2]),new nr(e,{title:void 0===l?t():l,text:s,buttons:[{text:e.params.dialog.buttonOk,bold:!0,onClick:c,keyCodes:r?[13,27]:null}],destroyOnClose:n}).open()},prompt:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0],c=a[1],u=a[2],d=a[3],h=a[4];return"function"==typeof a[1]&&(l=a[0],u=a[1],d=a[2],h=a[3],c=a[4]),h=null==h?"":h,new nr(e,or({title:void 0===c?t():c,text:l,content:'<div class="dialog-input-field input"><input type="text" class="dialog-input" value="'.concat(h,'"></div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find(".dialog-input").val();0===t&&d&&d(n),1===t&&u&&u(n)},destroyOnClose:n},i)).open()},confirm:function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0],l=o[1],c=o[2],u=o[3];return"function"==typeof o[1]&&(s=o[0],c=o[1],u=o[2],l=o[3]),new nr(e,{title:void 0===l?t():l,text:s,buttons:[{text:e.params.dialog.buttonCancel,onClick:u,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,onClick:c,keyCodes:r?[13]:null}],destroyOnClose:n}).open()},login:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0],c=a[1],u=a[2],d=a[3];return"function"==typeof a[1]&&(l=a[0],u=a[1],d=a[2],c=a[3]),new nr(e,or({title:void 0===c?t():c,text:l,content:'\n              <div class="dialog-input-field dialog-input-double input">\n                <input type="text" name="dialog-username" placeholder="'.concat(e.params.dialog.usernamePlaceholder,'" class="dialog-input">\n              </div>\n              <div class="dialog-input-field dialog-input-double input">\n                <input type="password" name="dialog-password" placeholder="').concat(e.params.dialog.passwordPlaceholder,'" class="dialog-input">\n              </div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find('[name="dialog-username"]').val(),r=e.$el.find('[name="dialog-password"]').val();0===t&&d&&d(n,r),1===t&&u&&u(n,r)},destroyOnClose:n},i)).open()},password:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0],c=a[1],u=a[2],d=a[3];return"function"==typeof a[1]&&(l=a[0],u=a[1],d=a[2],c=a[3]),new nr(e,or({title:void 0===c?t():c,text:l,content:'\n              <div class="dialog-input-field input">\n                <input type="password" name="dialog-password" placeholder="'.concat(e.params.dialog.passwordPlaceholder,'" class="dialog-input">\n              </div>'),buttons:[{text:e.params.dialog.buttonCancel,keyCodes:r?[27]:null,color:"aurora"===e.theme?"gray":null},{text:e.params.dialog.buttonOk,bold:!0,keyCodes:r?[13]:null}],onClick:function(e,t){var n=e.$el.find('[name="dialog-password"]').val();0===t&&d&&d(n),1===t&&u&&u(n)},destroyOnClose:n},i)).open()},preloader:function(t,r){var i=$["".concat(e.theme,"PreloaderContent")]||"";return new nr(e,{title:null==t?e.params.dialog.preloaderTitle:t,content:'<div class="preloader'.concat(r?" color-".concat(r):"",'">').concat(i,"</div>"),cssClass:"dialog-preloader",destroyOnClose:n}).open()},progress:function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=r[0],a=r[1],s=r[2];2===r.length?"number"==typeof r[0]?(a=r[0],s=r[1],o=r[2]):"string"==typeof r[0]&&"string"==typeof r[1]&&(o=r[0],s=r[1],a=r[2]):1===r.length&&"number"==typeof r[0]&&(a=r[0],o=r[1],s=r[2]);var l=void 0===a,c=new nr(e,{title:void 0===o?e.params.dialog.progressTitle:o,cssClass:"dialog-progress",content:'\n              <div class="progressbar'.concat(l?"-infinite":"").concat(s?" color-".concat(s):"",'">\n                ').concat(l?"":"<span></span>","\n              </div>\n            "),destroyOnClose:n});return l||c.setProgress(a),c.open()}})}};function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(e,t){if(t&&("object"==lr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dr(e)}function ur(e){return(ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(e,t){return(hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fr=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o,l,c,u=$.extend({on:{}},e.params.popup,n),d=dr(r=cr(this,ur(t).call(this,e,u)));if(d.params=u,(i=d.params.el?g(d.params.el).eq(0):g(d.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&i.length>0&&i[0].f7Modal)return cr(r,i[0].f7Modal);if(0===i.length)return cr(r,d.destroy());function h(t){var n=t.target,r=g(n);if(!(!e.device.desktop&&e.device.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible))&&0===r.closest(d.el).length&&d.params&&d.params.closeByBackdropClick&&d.params.backdrop&&d.backdropEl&&d.backdropEl===n){var i=!0;d.$el.nextAll(".popup.modal-in").each((function(e,t){var n=t.f7Modal;n&&n.params.closeByBackdropClick&&n.params.backdrop&&n.backdropEl===d.backdropEl&&(i=!1)})),i&&d.close()}}function f(e){27===e.keyCode&&d.params.closeOnEscape&&d.close()}function p(t){return(e.height-2*t)/e.height}d.params.backdrop&&d.params.backdropEl?o=g(d.params.backdropEl):d.params.backdrop&&0===(o=e.root.children(".popup-backdrop")).length&&(o=g('<div class="popup-backdrop"></div>'),e.root.append(o)),$.extend(d,{app:e,push:i.hasClass("popup-push")||d.params.push,$el:i,el:i[0],$backdropEl:o,backdropEl:o&&o[0],type:"popup",$htmlEl:g("html")}),d.params.push&&i.addClass("popup-push");var m,v,y,b,_,w,k,S,E,C,T,x=!0,M=!1,O=!1;function L(e){!M&&x&&d.params.swipeToClose&&(d.params.swipeHandler&&0===g(e.target).closest(d.params.swipeHandler).length||(M=!0,O=!1,m={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},b=$.now(),y=void 0,d.params.swipeHandler||"touchstart"!==e.type||(w=g(e.target).closest(".page-content")[0])))}function A(t){if(M){if(v={x:"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,y:"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY},void 0===y&&(y=!!(y||Math.abs(v.x-m.x)>Math.abs(v.y-m.y))),y)return M=!1,void(O=!1);_=m.y-v.y,c&&l&&_>0&&(_=0);var n=_<0?"to-bottom":"to-top";if(i.transition(0),"string"==typeof d.params.swipeToClose&&n!==d.params.swipeToClose)return i.transform(""),void i.transition("");if(!O){if(c&&l&&(C=i[0].offsetHeight,T=e.root.children(".view, .views")),w&&(k=w.scrollTop,E=w.scrollHeight,S=w.offsetHeight,!(E===S||"to-bottom"===n&&0===k||"to-top"===n&&k===E-S)))return i.transform(""),i.transition(""),M=!1,void(O=!1);O=!0}if(t.preventDefault(),c&&l){var r=1-Math.abs(_/C),o=1-(1-p(l))*r;T.transition(0).transform("translate3d(0,0,0) scale(".concat(o,")"))}i.transition(0).transform("translate3d(0,".concat(-_,"px,0)"))}}function I(){if(M=!1,O){O=!1,x=!1,i.transition(""),c&&l&&T.transition("").transform("");var e=_<=0?"to-bottom":"to-top";if("string"==typeof d.params.swipeToClose&&e!==d.params.swipeToClose)return i.transform(""),void(x=!0);var t=Math.abs(_),n=(new Date).getTime()-b;n<300&&t>20||n>=300&&t>100?$.nextTick((function(){"to-bottom"===e?i.addClass("swipe-close-to-bottom"):i.addClass("swipe-close-to-top"),i.transform(""),d.close(),x=!0})):(x=!0,i.transform(""))}}var D=!!P.passiveListener&&{passive:!0};return d.params.swipeToClose&&(i.on(e.touchEvents.start,L,D),e.on("touchmove",A),e.on("touchend:passive",I),d.once("popupDestroy",(function(){i.off(e.touchEvents.start,L,D),e.off("touchmove",A),e.off("touchend:passive",I)}))),d.on("open",(function(){d.params.closeOnEscape&&g(a).on("keydown",f),d.push&&(c=d.push&&(e.width<630||e.height<630||i.hasClass("popup-tablet-fullscreen"))),c&&(l=parseInt(i.css("--f7-popup-push-offset"),10),Number.isNaN(l)&&(l=0),l&&(i.addClass("popup-push"),d.$htmlEl.addClass("with-modal-popup-push"),d.$htmlEl[0].style.setProperty("--f7-popup-push-scale",p(l))))})),d.on("opened",(function(){i.removeClass("swipe-close-to-bottom swipe-close-to-top"),d.params.closeByBackdropClick&&e.on("click",h)})),d.on("close",(function(){d.params.closeOnEscape&&g(a).off("keydown",f),d.params.closeByBackdropClick&&e.off("click",h),c&&l&&(d.$htmlEl.removeClass("with-modal-popup-push"),d.$htmlEl.addClass("with-modal-popup-push-closing"))})),d.on("closed",(function(){c&&l&&(d.$htmlEl.removeClass("with-modal-popup-push-closing"),d.$htmlEl[0].style.removeProperty("--f7-popup-push-scale"))})),i[0].f7Modal=d,cr(r,d)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hr(e,t)}(t,e),t}(Un),pr={name:"popup",params:{popup:{backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeOnEscape:!1,swipeToClose:!1,swipeHandler:null,push:!1}},static:{Popup:fr},create:function(){this.popup=Q({app:this,constructor:fr,defaultSelector:".popup.modal-in"})},clicks:{".popup-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popup.open(t.popup,t.animate)},".popup-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popup.close(t.popup,t.animate)}}};function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vr(e,t){if(t&&("object"==mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yr(e)}function gr(e){return(gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function br(e,t){return(br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _r=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o=$.extend({on:{}},n),a=yr(r=vr(this,gr(t).call(this,e,o)));return a.params=o,(i=a.params.el?g(a.params.el).eq(0):g(a.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&i.length>0&&i[0].f7Modal?vr(r,i[0].f7Modal):0===i.length?vr(r,a.destroy()):($.extend(a,{app:e,$el:i,el:i[0],type:"loginScreen"}),i[0].f7Modal=a,vr(r,a))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&br(e,t)}(t,e),t}(Un),wr={name:"loginScreen",static:{LoginScreen:_r},create:function(){this.loginScreen=Q({app:this,constructor:_r,defaultSelector:".login-screen.modal-in"})},clicks:{".login-screen-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.loginScreen.open(t.loginScreen,t.animate)},".login-screen-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.loginScreen.close(t.loginScreen,t.animate)}}};function kr(e){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Er(r.key),r)}}function Er(e){var t=function(e,t){if("object"!=kr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kr(t)?t:t+""}function Cr(e,t){if(t&&("object"==kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xr(e)}function Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mr(e,t){return(Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var $r=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o=$.extend({on:{}},e.params.popover,n),l=xr(r=Cr(this,Tr(t).call(this,e,o)));if(l.params=o,(i=l.params.el?g(l.params.el).eq(0):g(l.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&i.length>0&&i[0].f7Modal)return Cr(r,i[0].f7Modal);var c,u,d=g(l.params.targetEl).eq(0);if(0===i.length)return Cr(r,l.destroy());l.params.backdrop&&l.params.backdropEl?c=g(l.params.backdropEl):l.params.backdrop&&0===(c=e.root.children(".popover-backdrop")).length&&(c=g('<div class="popover-backdrop"></div>'),e.root.append(c)),0===i.find(".popover-angle").length?(u=g('<div class="popover-angle"></div>'),i.prepend(u)):u=i.find(".popover-angle");var h=l.open;function f(){l.resize()}function p(t){var n=t.target,r=g(n);!e.device.desktop&&e.device.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible)||0===r.closest(l.el).length&&(l.params.closeByBackdropClick&&l.params.backdrop&&l.backdropEl&&l.backdropEl===n||l.params.closeByOutsideClick)&&l.close()}function m(e){27===e.keyCode&&l.params.closeOnEscape&&l.close()}return $.extend(l,{app:e,$el:i,el:i[0],$targetEl:d,targetEl:d[0],$angleEl:u,angleEl:u[0],$backdropEl:c,backdropEl:c&&c[0],type:"popover",open:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1];return"boolean"==typeof t[0]&&(i=t[0],r=t[1]),r&&(l.$targetEl=g(r),l.targetEl=l.$targetEl[0]),h.call(l,i)}}),l.on("popoverOpen",(function(){l.resize(),e.on("resize",f),g(s).on("keyboardDidShow keyboardDidHide",f),l.on("popoverClose popoverBeforeDestroy",(function(){e.off("resize",f),g(s).off("keyboardDidShow keyboardDidHide",f)}))})),l.params.closeOnEscape&&(l.on("popoverOpen",(function(){g(a).on("keydown",m)})),l.on("popoverClose",(function(){g(a).off("keydown",m)}))),l.on("popoverOpened",(function(){(l.params.closeByOutsideClick||l.params.closeByBackdropClick)&&e.on("click",p)})),l.on("popoverClose",(function(){(l.params.closeByOutsideClick||l.params.closeByBackdropClick)&&e.off("click",p)})),i[0].f7Modal=l,Cr(r,l)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mr(e,t)}(t,e),n=t,(r=[{key:"resize",value:function(){var e=this.app,t=this.$el,n=this.$targetEl,r=this.$angleEl,i=this.params,o=i.targetX,a=i.targetY;t.css({left:"",top:""});var s,l,c,u,d,h,f=[t.width(),t.height()],p=f[0],m=f[1],v=0;"ios"===e.theme||"aurora"===e.theme?(r.removeClass("on-left on-right on-top on-bottom").css({left:"",top:""}),v=r.width()/2):t.removeClass("popover-on-left popover-on-right popover-on-top popover-on-bottom popover-on-middle").css({left:"",top:""});var y=parseInt(g("html").css("--f7-safe-area-top"),10);if(Number.isNaN(y)&&(y=0),n&&n.length>0){c=n.outerWidth(),u=n.outerHeight();var b=n.offset();d=b.left-e.left,h=b.top-e.top;var _=n.parents(".page");_.length>0&&(h-=_[0].scrollTop)}else void 0!==o&&"undefined"!==a&&(d=o,h=a,c=this.params.targetWidth||0,u=this.params.targetHeight||0);var w,k=0,S=0,E=0,C="md"===e.theme?"bottom":"top";"md"===e.theme?(m<e.height-h-u?(C="bottom",S=h+u):m<h-y?(S=h-m,C="top"):(C="middle",S=u/2+h-m/2),S=Math.max(8,Math.min(S,e.height-m-8)),d<e.width/2?(w="right",k="middle"===C?d+c:d):(w="left",k="middle"===C?d-p:d+c-p),k=Math.max(8,Math.min(k,e.width-p-8)),t.addClass("popover-on-".concat(C," popover-on-").concat(w))):(m+v<h-y?S=h-m-v:m+v<e.height-h-u?(C="bottom",S=h+u+v):(C="middle",E=S=u/2+h-m/2,E-=S=Math.max(5,Math.min(S,e.height-m-5))),"top"===C||"bottom"===C?(E=k=c/2+d-p/2,k=Math.max(5,Math.min(k,e.width-p-5)),"top"===C&&r.addClass("on-bottom"),"bottom"===C&&r.addClass("on-top"),s=p/2-v+(E-=k),s=Math.max(Math.min(s,p-2*v-13),13),r.css({left:"".concat(s,"px")})):"middle"===C&&(k=d-p-v,r.addClass("on-right"),(k<5||k+p>e.width)&&(k<5&&(k=d+c+v),k+p>e.width&&(k=e.width-p-5),r.removeClass("on-right").addClass("on-left")),l=m/2-v+E,l=Math.max(Math.min(l,m-2*v-13),13),r.css({top:"".concat(l,"px")}))),t.css({top:"".concat(S,"px"),left:"".concat(k,"px")})}}])&&Sr(n.prototype,r),i&&Sr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Un),Pr={name:"popover",params:{popover:{backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!0,closeOnEscape:!1}},static:{Popover:$r},create:function(){var e=this;e.popover=$.extend(Q({app:e,constructor:$r,defaultSelector:".popover.modal-in"}),{open:function(t,n,r){var i=g(t),o=i[0].f7Modal;return o||(o=new $r(e,{el:i,targetEl:n})),o.open(n,r)}})},clicks:{".popover-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popover.open(t.popover,e,t.animate)},".popover-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.popover.close(t.popover,t.animate)}}};function Or(e){return(Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ar(r.key),r)}}function Ar(e){var t=function(e,t){if("object"!=Or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Or(t)?t:t+""}function Ir(e,t){if(t&&("object"==Or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Nr(e)}function Dr(e){return(Dr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,t){return(Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jr=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o,l,c=$.extend({on:{}},e.params.actions,n),u=Nr(r=Ir(this,Dr(t).call(this,e,c)));if(u.params=c,u.params.buttons&&(i=u.params.buttons,Array.isArray(i[0])||(i=[i])),u.groups=i,u.params.el?o=g(u.params.el).eq(0):u.params.content?o=g(u.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0):u.params.buttons&&(u.params.convertToPopover&&(u.popoverHtml=u.renderPopover()),u.actionsHtml=u.render()),o&&o.length>0&&o[0].f7Modal)return Ir(r,o[0].f7Modal);if(o&&0===o.length&&!u.actionsHtml&&!u.popoverHtml)return Ir(r,u.destroy());u.params.backdrop&&u.params.backdropEl?l=g(u.params.backdropEl):u.params.backdrop&&0===(l=e.root.children(".actions-backdrop")).length&&(l=g('<div class="actions-backdrop"></div>'),e.root.append(l));var d,h=u.open,f=u.close;function p(e){var t,n,r=g(this);if(r.hasClass("list-button")||r.hasClass("item-link")?(t=r.parents("li").index(),n=r.parents(".list").index()):(t=r.index(),n=r.parents(".actions-group").index()),void 0!==i){var o=i[n][t];o.onClick&&o.onClick(u,e),u.params.onClick&&u.params.onClick(u,e),!1!==o.close&&u.close()}}function m(t){var n=t.target,r=g(n);!e.device.desktop&&e.device.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible)||0===r.closest(u.el).length&&(u.params.closeByBackdropClick&&u.params.backdrop&&u.backdropEl&&u.backdropEl===n||u.params.closeByOutsideClick)&&u.close()}function v(e){27===e.keyCode&&u.params.closeOnEscape&&u.close()}return u.open=function(t){var n=!1,r=u.params,i=r.targetEl,o=r.targetX,a=r.targetY,s=r.targetWidth,l=r.targetHeight;return u.params.convertToPopover&&(i||void 0!==o&&void 0!==a)&&(u.params.forceToPopover||e.device.ios&&e.device.ipad||e.width>=768||e.device.desktop&&"aurora"===e.theme)&&(n=!0),n&&u.popoverHtml?((d=e.popover.create({content:u.popoverHtml,backdrop:u.params.backdrop,targetEl:i,targetX:o,targetY:a,targetWidth:s,targetHeight:l})).open(t),d.once("popoverOpened",(function(){d.$el.find(".list-button, .item-link").each((function(e,t){g(t).on("click",p)}))})),d.once("popoverClosed",(function(){d.$el.find(".list-button, .item-link").each((function(e,t){g(t).off("click",p)})),$.nextTick((function(){d.destroy(),d=void 0}))}))):(u.$el=u.actionsHtml?g(u.actionsHtml):u.$el,u.$el[0].f7Modal=u,u.groups&&(u.$el.find(".actions-button").each((function(e,t){g(t).on("click",p)})),u.once("actionsClosed",(function(){u.$el.find(".actions-button").each((function(e,t){g(t).off("click",p)}))}))),u.el=u.$el[0],h.call(u,t)),u},u.close=function(e){return d?d.close(e):f.call(u,e),u},$.extend(u,{app:e,$el:o,el:o?o[0]:void 0,$backdropEl:l,backdropEl:l&&l[0],type:"actions"}),u.params.closeOnEscape&&(u.on("open",(function(){g(a).on("keydown",v)})),u.on("close",(function(){g(a).off("keydown",v)}))),u.on("opened",(function(){(u.params.closeByBackdropClick||u.params.closeByOutsideClick)&&e.on("click",m)})),u.on("close",(function(){(u.params.closeByBackdropClick||u.params.closeByOutsideClick)&&e.off("click",m)})),o&&(o[0].f7Modal=u),Ir(r,u)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rr(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.groups;return'\n      <div class="actions-modal'.concat(this.params.grid?" actions-grid":"",'">\n        ').concat(e.map((function(e){return'<div class="actions-group">\n            '.concat(e.map((function(e){var t=["actions-".concat(e.label?"label":"button")],n=e.color,r=e.bg,i=e.bold,o=e.disabled,a=e.label,s=e.text,l=e.icon;return n&&t.push("color-".concat(n)),r&&t.push("bg-color-".concat(r)),i&&t.push("actions-button-bold"),o&&t.push("disabled"),a?'<div class="'.concat(t.join(" "),'">').concat(s,"</div>"):'\n                <div class="'.concat(t.join(" "),'">\n                  ').concat(l?'<div class="actions-button-media">'.concat(l,"</div>"):"",'\n                  <div class="actions-button-text">').concat(s,"</div>\n                </div>").trim()})).join(""),"\n          </div>")})).join(""),"\n      </div>\n    ").trim()}},{key:"renderPopover",value:function(){if(this.params.renderPopover)return this.params.renderPopover.call(this,this);var e=this.groups;return'\n      <div class="popover popover-from-actions">\n        <div class="popover-inner">\n          '.concat(e.map((function(e){return'\n            <div class="list">\n              <ul>\n                '.concat(e.map((function(e){var t=[],n=e.color,r=e.bg,i=e.bold,o=e.disabled,a=e.label,s=e.text,l=e.icon;return n&&t.push("color-".concat(n)),r&&t.push("bg-color-".concat(r)),i&&t.push("popover-from-actions-bold"),o&&t.push("disabled"),a?(t.push("popover-from-actions-label"),'<li class="'.concat(t.join(" "),'">').concat(s,"</li>")):l?(t.push("item-link item-content"),'\n                      <li>\n                        <a class="'.concat(t.join(" "),'">\n                          <div class="item-media">\n                            ').concat(l,'\n                          </div>\n                          <div class="item-inner">\n                            <div class="item-title">\n                              ').concat(s,"\n                            </div>\n                          </div>\n                        </a>\n                      </li>\n                    ")):(t.push("list-button"),'\n                    <li>\n                      <a class="'.concat(t.join(" "),'">').concat(s,"</a>\n                    </li>\n                  "))})).join(""),"\n              </ul>\n            </div>\n          ")})).join(""),"\n        </div>\n      </div>\n    ").trim()}}])&&Lr(n.prototype,r),i&&Lr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Un),Br={name:"actions",params:{actions:{convertToPopover:!0,forceToPopover:!1,backdrop:!0,backdropEl:void 0,closeByBackdropClick:!0,closeOnEscape:!1,render:null,renderPopover:null}},static:{Actions:jr},create:function(){this.actions=Q({app:this,constructor:jr,defaultSelector:".actions-modal.modal-in"})},clicks:{".actions-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.actions.open(t.actions,t.animate)},".actions-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.actions.close(t.actions,t.animate)}}};function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fr(e,t){if(t&&("object"==Yr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ur(e)}function Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ur(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zr(e,t){return(zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Vr=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o,l,c,u=$.extend({on:{}},e.params.sheet,n),d=Ur(r=Fr(this,Hr(t).call(this,e,u)));if(d.params=u,void 0===d.params.backdrop&&(d.params.backdrop="ios"!==e.theme),(i=d.params.el?g(d.params.el).eq(0):g(d.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0))&&i.length>0&&i[0].f7Modal)return Fr(r,i[0].f7Modal);if(0===i.length)return Fr(r,d.destroy());function h(t){var n=t.target,r=g(n);!e.device.desktop&&e.device.cordova&&(s.Keyboard&&s.Keyboard.isVisible||s.cordova.plugins&&s.cordova.plugins.Keyboard&&s.cordova.plugins.Keyboard.isVisible)||0===r.closest(d.el).length&&(d.params.closeByBackdropClick&&d.params.backdrop&&d.backdropEl&&d.backdropEl===n||d.params.closeByOutsideClick)&&d.close()}function f(e){27===e.keyCode&&d.params.closeOnEscape&&d.close()}function p(t){return(e.height-2*t)/e.height}d.params.backdrop&&d.params.backdropEl?o=g(d.params.backdropEl):d.params.backdrop&&0===(o=e.root.children(".sheet-backdrop")).length&&(o=g('<div class="sheet-backdrop"></div>'),e.root.append(o)),$.extend(d,{app:e,push:i.hasClass("sheet-modal-push")||d.params.push,$el:i,el:i[0],$backdropEl:o,backdropEl:o&&o[0],type:"sheet",$htmlEl:g("html")}),d.params.push&&i.addClass("sheet-modal-push");var m,v,y,b,_,w,k,S,E,C,T,x,M,O,L,A,I,D,N=!1,R=!1;function j(e){N||!d.params.swipeToClose&&!d.params.swipeToStep||d.params.swipeHandler&&0===g(e.target).closest(d.params.swipeHandler).length||(N=!0,R=!1,m={x:"touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y:"touchstart"===e.type?e.targetTouches[0].pageY:e.pageY},b=$.now(),y=void 0,w=i.hasClass("sheet-modal-top"),d.params.swipeHandler||"touchstart"!==e.type||(L=g(e.target).closest(".page-content")[0]))}function B(t){if(N){if(v={x:"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,y:"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY},void 0===y&&(y=!!(y||Math.abs(v.x-m.x)>Math.abs(v.y-m.y))),y)return N=!1,void(R=!1);var n,r=(_=m.y-v.y)<0?"to-bottom":"to-top";if(!R){if(L&&!i.hasClass("modal-in-swipe-step")&&(A=L.scrollTop,I=L.scrollHeight,D=L.offsetHeight,!(I===D||"to-bottom"===r&&0===A||"to-top"===r&&A===I-D)))return i.transform(""),N=!1,void(R=!1);d.push&&c&&(M=e.root.children(".view, .views")),C=i[0].offsetHeight,S=$.getTranslate(i[0],"y"),w?(T=d.params.swipeToClose?-C:-k,x=0):(T=0,x=d.params.swipeToClose?C:k),R=!0}if(E=S-_,E=Math.min(Math.max(E,T),x),t.preventDefault(),d.push&&c){var o=(E-S)/C;d.params.swipeToStep&&(o=w?E/k:1-(k-E)/k),o=Math.abs(o);var a=1-(o=Math.min(Math.max(o,0),1)),s=1-(1-p(c))*a;M.transition(0).transform("translate3d(0,0,0) scale(".concat(s,")")),d.params.swipeToStep&&M.css("border-radius","".concat(O*a,"px"))}if(i.transition(0).transform("translate3d(0,".concat(E,"px,0)")),d.params.swipeToStep)n=w?1-E/k:(k-E)/k,n=Math.min(Math.max(n,0),1),i.trigger("sheet:stepprogress",n),d.emit("local::stepProgress sheetStepProgress",d,n)}}function Y(){if(N=!1,R){R=!1,i.transform("").transition(""),d.push&&c&&(M.transition("").transform(""),M.css("border-radius",""));var e=_<0?"to-bottom":"to-top",t=Math.abs(_);if(0!==t&&E!==S){var n=(new Date).getTime()-b;if(d.params.swipeToStep){var r=w?"to-bottom":"to-top",o=w?"to-top":"to-bottom",a=Math.abs(E),s=Math.abs(k);if(n<300&&t>10)return e===r&&a<s&&(i.removeClass("modal-in-swipe-step"),i.trigger("sheet:stepprogress",1),d.emit("local::stepProgress sheetStepProgress",d,1),i.trigger("sheet:stepopen"),d.emit("local::stepOpen sheetStepOpen",d),d.push&&c&&(d.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",p(c)),M.css("border-radius",""))),e===o&&a>s&&(d.params.swipeToClose?d.close():(i.addClass("modal-in-swipe-step"),i.trigger("sheet:stepprogress",0),d.emit("local::stepProgress sheetStepProgress",d,0),i.trigger("sheet:stepclose"),d.emit("local::stepClose sheetStepClose",d),d.push&&c&&(d.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),M.css("border-radius","0px")))),void(e===o&&a<=s&&(i.addClass("modal-in-swipe-step"),i.trigger("sheet:stepprogress",0),d.emit("local::stepProgress sheetStepProgress",d,0),i.trigger("sheet:stepclose"),d.emit("local::stepClose sheetStepClose",d),d.push&&c&&(d.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),M.css("border-radius","0px"))));if(n>=300){var l=!i.hasClass("modal-in-swipe-step");l?l&&(a>s+(C-s)/2?d.params.swipeToClose&&d.close():a>s/2&&(i.addClass("modal-in-swipe-step"),i.trigger("sheet:stepprogress",0),d.emit("local::stepProgress sheetStepProgress",d,0),i.trigger("sheet:stepclose"),d.emit("local::stepClose sheetStepClose",d),d.push&&c&&(d.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"),M.css("border-radius","0px")))):a<s/2?(i.removeClass("modal-in-swipe-step"),i.trigger("sheet:stepprogress",1),d.emit("local::stepProgress sheetStepProgress",d,1),i.trigger("sheet:stepopen"),d.emit("local::stepOpen sheetStepOpen",d),d.push&&c&&(d.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",p(c)),M.css("border-radius",""))):a-s>(C-s)/2&&d.params.swipeToClose&&d.close()}}else{if(e!==(w?"to-top":"to-bottom"))return;(n<300&&t>20||n>=300&&t>C/2)&&d.close()}}}}function F(){d.setSwipeStep(!0)}d.setSwipeStep=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=i.find(".sheet-modal-swipe-step").eq(0);t.length&&(k=i.hasClass("sheet-modal-top")?-(t.offset().top-i.offset().top+t[0].offsetHeight):i[0].offsetHeight-(t.offset().top-i.offset().top+t[0].offsetHeight),i[0].style.setProperty("--f7-sheet-swipe-step","".concat(k,"px")),e||i.addClass("modal-in-swipe-step"))};var H=!!P.passiveListener&&{passive:!0};return(d.params.swipeToClose||d.params.swipeToStep)&&(i.on(e.touchEvents.start,j,H),e.on("touchmove",B),e.on("touchend:passive",Y),d.once("sheetDestroy",(function(){i.off(e.touchEvents.start,j,H),e.off("touchmove",B),e.off("touchend:passive",Y)}))),d.on("open",(function(){d.params.closeOnEscape&&g(a).on("keydown",f),d.params.swipeToStep&&(d.setSwipeStep(!1),e.on("resize",F)),d.params.scrollToEl&&function(){var e=g(d.params.scrollToEl).eq(0);if(0!==e.length&&0!==(l=e.parents(".page-content")).length){var t,n=parseInt(l.css("padding-top"),10),r=parseInt(l.css("padding-bottom"),10),o=l[0].offsetHeight-n-i.height(),a=l[0].scrollHeight-n-i.height(),s=l.scrollTop(),c=e.offset().top-n+e[0].offsetHeight;if(c>o){var u=s+c-o;u+o>a&&(t=u+o-a+r,o===a&&(t=i.height()),l.css({"padding-bottom":"".concat(t,"px")})),l.scrollTop(u,300)}}}(),d.push&&(c=parseInt(i.css("--f7-sheet-push-offset"),10),Number.isNaN(c)&&(c=0),c&&(i.addClass("sheet-modal-push"),d.$htmlEl.addClass("with-modal-sheet-push"),d.params.swipeToStep?(M=e.root.children(".view, .views"),O=parseFloat(i.css("border-".concat(w?"bottom":"top","-left-radius"))),M.css("border-radius","0px")):d.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",p(c))))})),d.on("opened",(function(){(d.params.closeByOutsideClick||d.params.closeByBackdropClick)&&e.on("click",h)})),d.on("close",(function(){d.params.swipeToStep&&(i.removeClass("modal-in-swipe-step"),e.off("resize",F)),d.params.closeOnEscape&&g(a).off("keydown",f),d.params.scrollToEl&&l&&l.length>0&&l.css({"padding-bottom":""}),(d.params.closeByOutsideClick||d.params.closeByBackdropClick)&&e.off("click",h),d.push&&c&&(d.$htmlEl.removeClass("with-modal-sheet-push"),d.$htmlEl.addClass("with-modal-sheet-push-closing"))})),d.on("closed",(function(){d.push&&c&&(d.$htmlEl.removeClass("with-modal-sheet-push-closing"),d.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale"))})),d.stepOpen=function(){i.removeClass("modal-in-swipe-step"),d.push&&(c||(c=parseInt(i.css("--f7-sheet-push-offset"),10),Number.isNaN(c)&&(c=0)),c&&d.$htmlEl[0].style.setProperty("--f7-sheet-push-scale",p(c)))},d.stepClose=function(){i.addClass("modal-in-swipe-step"),d.push&&d.$htmlEl[0].style.removeProperty("--f7-sheet-push-scale")},d.stepToggle=function(){i.toggleClass("modal-in-swipe-step")},i[0].f7Modal=d,Fr(r,d)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zr(e,t)}(t,e),t}(Un),qr={name:"sheet",params:{sheet:{push:!1,backdrop:void 0,backdropEl:void 0,closeByBackdropClick:!0,closeByOutsideClick:!1,closeOnEscape:!1,swipeToClose:!1,swipeToStep:!1,swipeHandler:null}},static:{Sheet:Vr},create:function(){var e=this;e.sheet=$.extend({},Q({app:e,constructor:Vr,defaultSelector:".sheet-modal.modal-in"}),{stepOpen:function(t){var n=e.sheet.get(t);if(n&&n.stepOpen)return n.stepOpen()},stepClose:function(t){var n=e.sheet.get(t);if(n&&n.stepClose)return n.stepClose()},stepToggle:function(t){var n=e.sheet.get(t);if(n&&n.stepToggle)return n.stepToggle()}})},clicks:{".sheet-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;g(".sheet-modal.modal-in").length>0&&t.sheet&&g(t.sheet)[0]!==g(".sheet-modal.modal-in")[0]&&n.sheet.close(".sheet-modal.modal-in"),n.sheet.open(t.sheet,t.animate)},".sheet-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sheet.close(t.sheet,t.animate)}}};function Wr(e){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kr(r.key),r)}}function Kr(e){var t=function(e,t){if("object"!=Wr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wr(t)?t:t+""}function Jr(e,t){if(t&&("object"==Wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qr(e)}function Xr(e){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e,t){return(Zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ei=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=$.extend({on:{}},e.params.toast,n),o=Qr(r=Jr(this,Xr(t).call(this,e,i)));o.app=e,o.params=i;var a,l,c=o.params,u=c.closeButton,d=c.closeTimeout;if(o.params.el)a=g(o.params.el);else{var h=o.render();a=g(h)}return a&&a.length>0&&a[0].f7Modal?Jr(r,a[0].f7Modal):0===a.length?Jr(r,o.destroy()):($.extend(o,{$el:a,el:a[0],type:"toast"}),a[0].f7Modal=o,u&&(a.find(".toast-button").on("click",(function(){o.emit("local::closeButtonClick toastCloseButtonClick",o),o.close()})),o.on("beforeDestroy",(function(){a.find(".toast-button").off("click")}))),o.on("open",(function(){g(".toast.modal-in").each((function(t,n){var r=e.toast.get(n);n!==o.el&&r&&r.close()})),d&&(l=$.nextTick((function(){o.close()}),d))})),o.on("close",(function(){s.clearTimeout(l)})),o.params.destroyOnClose&&o.once("closed",(function(){setTimeout((function(){o.destroy()}),0)})),Jr(r,o))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zr(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.position,n=e.cssClass,r=e.icon,i=e.text,o=e.closeButton,a=e.closeButtonColor,s=e.closeButtonText;return'\n      <div class="toast toast-'.concat(t," ").concat(n||""," ").concat(r?"toast-with-icon":"",'">\n        <div class="toast-content">\n          ').concat(r?'<div class="toast-icon">'.concat(r,"</div>"):"",'\n          <div class="toast-text">').concat(i,"</div>\n          ").concat(o&&!r?'\n          <a class="toast-button button '.concat(a?"color-".concat(a):"",'">').concat(s,"</a>\n          ").trim():"","\n        </div>\n      </div>\n    ").trim()}}])&&Gr(n.prototype,r),i&&Gr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Un),ti={name:"toast",static:{Toast:ei},create:function(){var e=this;e.toast=$.extend({},Q({app:e,constructor:ei,defaultSelector:".toast.modal-in"}),{show:function(t){return $.extend(t,{destroyOnClose:!0}),new ei(e,t).open()}})},params:{toast:{icon:null,text:null,position:"bottom",closeButton:!1,closeButtonColor:null,closeButtonText:"Ok",closeTimeout:null,cssClass:null,render:null}}},ni={init:function(e){var t=g(e);0===t.length||t.children(".preloader-inner").length>0||t.children(".preloader-inner-line").length>0||t.append($["".concat(this.theme,"PreloaderContent")])},visible:!1,show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"white",t=this;if(!ni.visible){var n=$["".concat(t.theme,"PreloaderContent")]||"";g("html").addClass("with-modal-preloader"),t.root.append('\n      <div class="preloader-backdrop"></div>\n      <div class="preloader-modal">\n        <div class="preloader color-'.concat(e,'">').concat(n,"</div>\n      </div>\n    ")),ni.visible=!0}},showIn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white",n=this,r=$["".concat(n.theme,"PreloaderContent")]||"";g(e||"html").addClass("with-modal-preloader"),g(e||n.root).append('\n      <div class="preloader-backdrop"></div>\n      <div class="preloader-modal">\n        <div class="preloader color-'.concat(t,'">').concat(r,"</div>\n      </div>\n    "))},hide:function(){ni.visible&&(g("html").removeClass("with-modal-preloader"),this.root.find(".preloader-backdrop, .preloader-modal").remove(),ni.visible=!1)},hideIn:function(e){g(e||"html").removeClass("with-modal-preloader"),g(e||this.root).find(".preloader-backdrop, .preloader-modal").remove()}},ri={name:"preloader",create:function(){$.extend(this,{preloader:{init:ni.init.bind(this),show:ni.show.bind(this),hide:ni.hide.bind(this),showIn:ni.showIn.bind(this),hideIn:ni.hideIn.bind(this)}})},on:{photoBrowserOpen:function(e){var t=this;e.$el.find(".preloader").each((function(e,n){t.preloader.init(n)}))},tabMounted:function(e){var t=this;g(e).find(".preloader").each((function(e,n){t.preloader.init(n)}))},pageInit:function(e){var t=this;e.$el.find(".preloader").each((function(e,n){t.preloader.init(n)}))}},vnode:{preloader:{insert:function(e){var t=e.elm;this.preloader.init(t)}}}};function ii(e){return(ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var oi={set:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2];if("number"==typeof n[0]&&(o=n[0],a=n[1],i=e.root),null==o)return i;o||(o=0);var s=g(i||e.root);if(0===s.length)return i;var l,c=Math.min(Math.max(o,0),100);if(0===(l=s.hasClass("progressbar")?s.eq(0):s.children(".progressbar")).length||l.hasClass("progressbar-infinite"))return l;var u=l.children("span");return 0===u.length&&(u=g("<span></span>"),l.append(u)),u.transition(void 0!==a?a:"").transform("translate3d(".concat(-100+c,"%,0,0)")),l[0]},show:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],s="determined";2===n.length?"string"!=typeof n[0]&&"object"!==ii(n[0])||"string"!=typeof n[1]?"number"==typeof n[0]&&"string"==typeof n[1]&&(o=n[0],a=n[1],i=e.root):(i=n[0],a=n[1],o=n[2],s="infinite"):1===n.length?"number"==typeof n[0]?(i=e.root,o=n[0]):"string"==typeof n[0]&&(s="infinite",i=e.root,a=n[0]):0===n.length&&(s="infinite",i=e.root);var l,c=g(i);if(0!==c.length)return c.hasClass("progressbar")||c.hasClass("progressbar-infinite")?l=c:0===(l=c.children(".progressbar:not(.progressbar-out), .progressbar-infinite:not(.progressbar-out)")).length&&(l=g('\n          <span class="progressbar'.concat("infinite"===s?"-infinite":"").concat(a?" color-".concat(a):"",' progressbar-in">\n            ').concat("infinite"===s?"":"<span></span>","\n          </span>")),c.append(l)),void 0!==o&&e.progressbar.set(l,o),l[0]},hide:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,i=g(e||r.root);if(0!==i.length)return 0===(t=i.hasClass("progressbar")||i.hasClass("progressbar-infinite")?i:i.children(".progressbar, .progressbar-infinite")).length||!t.hasClass("progressbar-in")||t.hasClass("progressbar-out")||t.removeClass("progressbar-in").addClass("progressbar-out").animationEnd((function(){n&&t.remove()})),t}},ai={name:"progressbar",create:function(){$.extend(this,{progressbar:{set:oi.set.bind(this),show:oi.show.bind(this),hide:oi.hide.bind(this)}})},on:{tabMounted:function(e){var t=this;g(e).find(".progressbar").each((function(e,n){var r=g(n);t.progressbar.set(r,r.attr("data-progress"))}))},pageInit:function(e){var t=this;e.$el.find(".progressbar").each((function(e,n){var r=g(n);t.progressbar.set(r,r.attr("data-progress"))}))}},vnode:{progressbar:{insert:function(e){var t=e.elm;this.progressbar.set(t,t.getAttribute("data-progress"))},update:function(e){var t=e.elm;this.progressbar.set(t,t.getAttribute("data-progress"))}}}},si={init:function(){var e,t,n,r,i,o,s,l,c,u,d,h,f,p,m,v,y,b,_,w,k,S=this;function E(r,a){t=!1,e=!0,k=!1,n="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY,i=g(r.target).closest("li").eq(0),f=i.index(),s=i.parents(".sortable");var l=i.parents(".list-group");l.length&&l.parents(s).length&&(s=l),o=s.children("ul").children("li:not(.disallow-sorting):not(.no-sorting)"),S.panel&&(S.panel.allowOpen=!1),S.swipeout&&(S.swipeout.allow=!1),a&&(i.addClass("sorting"),s.addClass("sortable-sorting"),k=!0)}var C=!!S.support.passiveListener&&{passive:!1,capture:!1};g(a).on(S.touchEvents.start,".list.sortable .sortable-handler",E,C),S.on("touchmove:active",(function(a){if(e&&i){var f="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(!t){p=i.parents(".page"),m=i.parents(".page-content");var k=parseInt(m.css("padding-top"),10),S=parseInt(m.css("padding-bottom"),10);w=m[0].scrollTop,y=p.offset().top+k,v=p.height()-k-S,i.addClass("sorting"),s.addClass("sortable-sorting"),b=i[0].offsetTop,c=i[0].offsetTop,u=i.parent().height()-b-i.height(),l=i[0].offsetHeight,_=i.offset().top}t=!0,a.preventDefault(),a.f7PreventSwipePanel=!0,r=f-n;var E=m[0].scrollTop-w,C=Math.min(Math.max(r+E,-c),u);i.transform("translate3d(0,".concat(C,"px,0)"));var T,x=!0;r+E+44<-c&&(x=!1),r+E-44>u&&(x=!1),h=void 0,d=void 0,x&&(_+r+l+44>y+v&&(T=_+r+l+44-(y+v)),_+r<y+44&&(T=_+r-y-44),T&&(m[0].scrollTop+=T)),o.each((function(e,t){var n=g(t);if(n[0]!==i[0]){var r=n[0].offsetTop,o=n.height(),a=b+C;a>=r-o/2&&i.index()<n.index()?(n.transform("translate3d(0, ".concat(-l,"px,0)")),d=n,h=void 0):a<=r+o/2&&i.index()>n.index()?(n.transform("translate3d(0, ".concat(l,"px,0)")),d=void 0,h||(h=n)):n.transform("translate3d(0, 0%,0)")}}))}})),S.on("touchend:passive",(function(){if(!e||!t)return e&&!t&&(S.panel&&(S.panel.allowOpen=!0),S.swipeout&&(S.swipeout.allow=!0),k&&(i.removeClass("sorting"),s.removeClass("sortable-sorting"))),e=!1,void(t=!1);var n;S.panel&&(S.panel.allowOpen=!0),S.swipeout&&(S.swipeout.allow=!0),o.transform(""),i.removeClass("sorting"),s.removeClass("sortable-sorting"),d?n=d.index():h&&(n=h.index());var r=s.dataset().sortableMoveElements;if(void 0===r&&(r=S.params.sortable.moveElements),r&&(d&&i.insertAfter(d),h&&i.insertBefore(h)),(d||h)&&s.hasClass("virtual-list")){void 0===(f=i[0].f7VirtualListIndex)&&(f=i.attr("data-virtual-list-index")),h?void 0===(n=h[0].f7VirtualListIndex)&&(n=h.attr("data-virtual-list-index")):void 0===(n=d[0].f7VirtualListIndex)&&(n=d.attr("data-virtual-list-index")),n=null!==n?parseInt(n,10):void 0;var a=s[0].f7VirtualList;f&&(f=parseInt(f,10)),n&&(n=parseInt(n,10)),a&&a.moveItem(f,n)}void 0===n||Number.isNaN(n)||n===f||(i.trigger("sortable:sort",{from:f,to:n}),S.emit("sortableSort",i[0],{from:f,to:n,el:i[0]},s[0])),h=void 0,d=void 0,e=!1,t=!1})),g(a).on("taphold",".sortable-tap-hold",(function(e,t){E(t,!0)}))},enable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=g(e);0!==n.length&&(n.addClass("sortable-enabled"),n.trigger("sortable:enable"),t.emit("sortableEnable",n[0]))},disable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=g(e);0!==n.length&&(n.removeClass("sortable-enabled"),n.trigger("sortable:disable"),t.emit("sortableDisable",n[0]))},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".list.sortable",t=this,n=g(e);0!==n.length&&(n.hasClass("sortable-enabled")?t.sortable.disable(n):t.sortable.enable(n))}},li={name:"sortable",params:{sortable:{moveElements:!0}},create:function(){$.extend(this,{sortable:{init:si.init.bind(this),enable:si.enable.bind(this),disable:si.disable.bind(this),toggle:si.toggle.bind(this)}})},on:{init:function(){this.params.sortable&&this.sortable.init()}},clicks:{".sortable-enable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.enable(t.sortable)},".sortable-disable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.disable(t.sortable)},".sortable-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.sortable.toggle(t.sortable)}}},ci={init:function(){var e,t,n,r,i,o,s,l,c,u,d,h,f,p,m,v,y,b,_,w,k,S=this,E={};var C=!!S.support.passiveListener&&{passive:!0};S.on("touchstart",(function(e){if(ci.el){var t=g(e.target);g(ci.el).is(t[0])||t.parents(".swipeout").is(ci.el)||t.hasClass("modal-in")||(t.attr("class")||"").indexOf("-backdrop")>0||t.hasClass("actions-modal")||t.parents(".actions-modal.modal-in, .dialog.modal-in").length>0||S.swipeout.close(ci.el)}})),g(a).on(S.touchEvents.start,"li.swipeout",(function(i){ci.allow&&(t=!1,e=!0,n=void 0,E.x="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,E.y="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY,r=(new Date).getTime(),o=g(this))}),C),S.on("touchmove:active",(function(r){if(e){var a="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,C="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(void 0===n&&(n=!!(n||Math.abs(C-E.y)>Math.abs(a-E.x))),n)e=!1;else{if(!t){if(g(".list.sortable-opened").length>0)return;s=o.find(".swipeout-content"),l=o.find(".swipeout-actions-right"),c=o.find(".swipeout-actions-left"),u=null,d=null,m=null,v=null,_=null,b=null,c.length>0&&(u=c.outerWidth(),m=c.children("a"),b=c.find(".swipeout-overswipe")),l.length>0&&(d=l.outerWidth(),v=l.children("a"),_=l.find(".swipeout-overswipe")),(f=o.hasClass("swipeout-opened"))&&(p=o.find(".swipeout-actions-left.swipeout-actions-opened").length>0?"left":"right"),o.removeClass("swipeout-transitioning"),S.params.swipeout.noFollow||(o.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),o.removeClass("swipeout-opened"))}if(t=!0,r.preventDefault(),i=a-E.x,h=i,f&&("right"===p?h-=d:h+=u),h>0&&0===c.length||h<0&&0===l.length){if(!f)return e=!1,t=!1,s.transform(""),v&&v.length>0&&v.transform(""),void(m&&m.length>0&&m.transform(""));h=0}var T,x;if(h<0?y="to-left":h>0?y="to-right":y||(y="to-left"),r.f7PreventSwipePanel=!0,S.params.swipeout.noFollow)return f?("right"===p&&i>0&&S.swipeout.close(o),"left"===p&&i<0&&S.swipeout.close(o)):(i<0&&l.length>0&&S.swipeout.open(o,"right"),i>0&&c.length>0&&S.swipeout.open(o,"left")),e=!1,void(t=!1);if(w=!1,k=!1,l.length>0){var M=h;x=M/d,M<-d&&(M=-d-Math.pow(-M-d,.8),h=M,_.length>0&&(k=!0)),"to-left"!==y&&(x=0,M=0),v.each((function(e,t){var n=g(t);void 0===t.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=t.offsetLeft),T=t.f7SwipeoutButtonOffset,_.length>0&&n.hasClass("swipeout-overswipe")&&"to-left"===y&&(n.css({left:"".concat(k?-T:0,"px")}),k?(n.hasClass("swipeout-overswipe-active")||(o.trigger("swipeout:overswipeenter"),S.emit("swipeoutOverswipeEnter",o[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(o.trigger("swipeout:overswipeexit"),S.emit("swipeoutOverswipeExit",o[0])),n.removeClass("swipeout-overswipe-active"))),n.transform("translate3d(".concat(M-T*(1+Math.max(x,-1)),"px,0,0)"))}))}if(c.length>0){var $=h;x=$/u,$>u&&($=u+Math.pow($-u,.8),h=$,b.length>0&&(w=!0)),"to-right"!==y&&($=0,x=0),m.each((function(e,t){var n=g(t);void 0===t.f7SwipeoutButtonOffset&&(n[0].f7SwipeoutButtonOffset=u-t.offsetLeft-t.offsetWidth),T=t.f7SwipeoutButtonOffset,b.length>0&&n.hasClass("swipeout-overswipe")&&"to-right"===y&&(n.css({left:"".concat(w?T:0,"px")}),w?(n.hasClass("swipeout-overswipe-active")||(o.trigger("swipeout:overswipeenter"),S.emit("swipeoutOverswipeEnter",o[0])),n.addClass("swipeout-overswipe-active")):(n.hasClass("swipeout-overswipe-active")&&(o.trigger("swipeout:overswipeexit"),S.emit("swipeoutOverswipeExit",o[0])),n.removeClass("swipeout-overswipe-active"))),m.length>1&&n.css("z-index",m.length-e),n.transform("translate3d(".concat($+T*(1-Math.min(x,1)),"px,0,0)"))}))}o.trigger("swipeout",x),S.emit("swipeout",o[0],x),s.transform("translate3d(".concat(h,"px,0,0)"))}}})),S.on("touchend:passive",(function(){if(!e||!t)return e=!1,void(t=!1);e=!1,t=!1;var n,a,p,b,_=(new Date).getTime()-r,E="to-left"===y?l:c,C="to-left"===y?d:u;if(n=_<300&&(i<-10&&"to-left"===y||i>10&&"to-right"===y)||_>=300&&Math.abs(h)>C/2?"open":"close",_<300&&(0===Math.abs(h)&&(n="close"),Math.abs(h)===C&&(n="open")),"open"===n){ci.el=o[0],o.trigger("swipeout:open"),S.emit("swipeoutOpen",o[0]),o.addClass("swipeout-opened swipeout-transitioning");var T="to-left"===y?-C:C;if(s.transform("translate3d(".concat(T,"px,0,0)")),E.addClass("swipeout-actions-opened"),a="to-left"===y?v:m)for(p=0;p<a.length;p+=1)g(a[p]).transform("translate3d(".concat(T,"px,0,0)"));k&&l.find(".swipeout-overswipe").trigger("click","f7Overswipe"),w&&c.find(".swipeout-overswipe").trigger("click","f7Overswipe")}else o.trigger("swipeout:close"),S.emit("swipeoutClose",o[0]),ci.el=void 0,o.addClass("swipeout-transitioning").removeClass("swipeout-opened"),s.transform(""),E.removeClass("swipeout-actions-opened");m&&m.length>0&&m!==a&&m.each((function(e,t){var n=g(t);void 0===(b=t.f7SwipeoutButtonOffset)&&(n[0].f7SwipeoutButtonOffset=u-t.offsetLeft-t.offsetWidth),n.transform("translate3d(".concat(b,"px,0,0)"))})),v&&v.length>0&&v!==a&&v.each((function(e,t){var n=g(t);void 0===(b=t.f7SwipeoutButtonOffset)&&(n[0].f7SwipeoutButtonOffset=t.offsetLeft),n.transform("translate3d(".concat(-b,"px,0,0)"))})),s.transitionEnd((function(){f&&"open"===n||!f&&"close"===n||(o.trigger("open"===n?"swipeout:opened":"swipeout:closed"),S.emit("open"===n?"swipeoutOpened":"swipeoutClosed",o[0]),o.removeClass("swipeout-transitioning"),f&&"close"===n&&(l.length>0&&v.transform(""),c.length>0&&m.transform("")))}))}))},allow:!0,el:void 0,open:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2];"function"==typeof n[1]&&(i=n[0],a=n[1],o=n[2]);var s=g(i).eq(0);if(0!==s.length&&s.hasClass("swipeout")&&!s.hasClass("swipeout-opened")){o||(o=s.find(".swipeout-actions-right").length>0?"right":"left");var l=s.find(".swipeout-actions-".concat(o)),c=s.find(".swipeout-content");if(0!==l.length){s.trigger("swipeout:open").addClass("swipeout-opened").removeClass("swipeout-transitioning"),e.emit("swipeoutOpen",s[0]),l.addClass("swipeout-actions-opened");var u=l.children("a"),d=l.outerWidth(),h="right"===o?-d:d;u.length>1&&u.each((function(e,t){var n=g(t);"right"===o?n.transform("translate3d(".concat(-t.offsetLeft,"px,0,0)")):n.css("z-index",u.length-e).transform("translate3d(".concat(d-t.offsetWidth-t.offsetLeft,"px,0,0)"))})),s.addClass("swipeout-transitioning"),c.transitionEnd((function(){s.trigger("swipeout:opened"),e.emit("swipeoutOpened",s[0]),a&&a.call(s[0])})),$.nextFrame((function(){u.transform("translate3d(".concat(h,"px,0,0)")),c.transform("translate3d(".concat(h,"px,0,0)"))})),ci.el=s[0]}}},close:function(e,t){var n=this,r=g(e).eq(0);if(0!==r.length&&r.hasClass("swipeout-opened")){var i,o=r.find(".swipeout-actions-opened").hasClass("swipeout-actions-right")?"right":"left",a=r.find(".swipeout-actions-opened").removeClass("swipeout-actions-opened"),s=a.children("a"),l=a.outerWidth();ci.allow=!1,r.trigger("swipeout:close"),n.emit("swipeoutClose",r[0]),r.removeClass("swipeout-opened").addClass("swipeout-transitioning"),r.find(".swipeout-content").transform("").transitionEnd(c),i=setTimeout(c,500),s.each((function(e,t){var n=g(t);"right"===o?n.transform("translate3d(".concat(-t.offsetLeft,"px,0,0)")):n.transform("translate3d(".concat(l-t.offsetWidth-t.offsetLeft,"px,0,0)")),n.css({left:"0px"}).removeClass("swipeout-overswipe-active")})),ci.el&&ci.el===r[0]&&(ci.el=void 0)}function c(){ci.allow=!0,r.hasClass("swipeout-opened")||(r.removeClass("swipeout-transitioning"),s.transform(""),r.trigger("swipeout:closed"),n.emit("swipeoutClosed",r[0]),t&&t.call(r[0]),i&&clearTimeout(i))}},delete:function(e,t){var n=this,r=g(e).eq(0);0!==r.length&&(ci.el=void 0,r.trigger("swipeout:delete"),n.emit("swipeoutDelete",r[0]),r.css({height:"".concat(r.outerHeight(),"px")}),r.transitionEnd((function(){if(r.trigger("swipeout:deleted"),n.emit("swipeoutDeleted",r[0]),t&&t.call(r[0]),r.parents(".virtual-list").length>0){var e=r.parents(".virtual-list")[0].f7VirtualList,i=r[0].f7VirtualListIndex;e&&void 0!==i&&e.deleteItem(i)}else n.params.swipeout.removeElements?n.params.swipeout.removeElementsWithTimeout?setTimeout((function(){r.remove()}),n.params.swipeout.removeElementsTimeout):r.remove():r.removeClass("swipeout-deleting swipeout-transitioning")})),$.nextFrame((function(){r.addClass("swipeout-deleting swipeout-transitioning").css({height:"0px"}).find(".swipeout-content").transform("translate3d(-100%,0,0)")})))}},ui={name:"swipeout",params:{swipeout:{actionsNoFold:!1,noFollow:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0}},create:function(){$.extend(this,{swipeout:{init:ci.init.bind(this),open:ci.open.bind(this),close:ci.close.bind(this),delete:ci.delete.bind(this)}}),Object.defineProperty(this.swipeout,"el",{enumerable:!0,configurable:!0,get:function(){return ci.el},set:function(e){ci.el=e}}),Object.defineProperty(this.swipeout,"allow",{enumerable:!0,configurable:!0,get:function(){return ci.allow},set:function(e){ci.allow=e}})},clicks:{".swipeout-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.swipeout.open(t.swipeout,t.side)},".swipeout-close":function(e){var t=e.closest(".swipeout");0!==t.length&&this.swipeout.close(t)},".swipeout-delete":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=e.closest(".swipeout");if(0!==r.length){var i=t.confirm,o=t.confirmTitle;t.confirm?n.dialog.confirm(i,o,(function(){n.swipeout.delete(r)})):n.swipeout.delete(r)}}},on:{init:function(){this.params.swipeout&&this.swipeout.init()}}},di={toggleClicked:function(e){var t=e.closest(".accordion-item").eq(0);t.length||(t=e.parents("li").eq(0));var n=e.parents(".accordion-item-content").eq(0);n.length&&n.parents(t).length||e.parents("li").length>1&&e.parents("li")[0]!==t[0]||this.accordion.toggle(t)},open:function(e){var t=this,n=g(e),r=!1;function i(){r=!0}if(n.trigger("accordion:beforeopen",{prevent:i},i),t.emit("accordionBeforeOpen",n[0],i),!r){var o=n.parents(".accordion-list").eq(0),a=n.children(".accordion-item-content");if(a.removeAttr("aria-hidden"),0===a.length&&(a=n.find(".accordion-item-content")),0!==a.length){var s=o.length>0&&n.parent().children(".accordion-item-opened");s.length>0&&t.accordion.close(s),a.transitionEnd((function(){n.hasClass("accordion-item-opened")?(a.transition(0),a.css("height","auto"),$.nextFrame((function(){a.transition(""),n.trigger("accordion:opened"),t.emit("accordionOpened",n[0])}))):(a.css("height",""),n.trigger("accordion:closed"),t.emit("accordionClosed",n[0]))})),a.css("height","".concat(a[0].scrollHeight,"px")),n.trigger("accordion:open"),n.addClass("accordion-item-opened"),t.emit("accordionOpen",n[0])}}},close:function(e){var t=this,n=g(e),r=!1;function i(){r=!0}if(n.trigger("accordion:beforeclose",{prevent:i},i),t.emit("accordionBeforeClose",n[0],i),!r){var o=n.children(".accordion-item-content");0===o.length&&(o=n.find(".accordion-item-content")),n.removeClass("accordion-item-opened"),o.attr("aria-hidden",!0),o.transition(0),o.css("height","".concat(o[0].scrollHeight,"px")),o.transitionEnd((function(){n.hasClass("accordion-item-opened")?(o.transition(0),o.css("height","auto"),$.nextFrame((function(){o.transition(""),n.trigger("accordion:opened"),t.emit("accordionOpened",n[0])}))):(o.css("height",""),n.trigger("accordion:closed"),t.emit("accordionClosed",n[0]))})),$.nextFrame((function(){o.transition(""),o.css("height",""),n.trigger("accordion:close"),t.emit("accordionClose",n[0])}))}},toggle:function(e){var t=g(e);0!==t.length&&(t.hasClass("accordion-item-opened")?this.accordion.close(e):this.accordion.open(e))}},hi={name:"accordion",create:function(){$.extend(this,{accordion:{open:di.open.bind(this),close:di.close.bind(this),toggle:di.toggle.bind(this)}})},clicks:{".accordion-item .item-link, .accordion-item-toggle, .links-list.accordion-list > ul > li > a":function(e){di.toggleClicked.call(this,e)}}};function fi(e){return(fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vi(r.key),r)}}function vi(e){var t=function(e,t){if("object"!=fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fi(t)?t:t+""}function gi(e,t){if(t&&("object"==fi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bi(e)}function yi(e){return(yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _i(e,t){return(_i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wi=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pi(this,t);var i,o=bi(n=gi(this,yi(t).call(this,r,[e])));"md"===e.theme?i=48:"ios"===e.theme?i=44:"aurora"===e.theme&&(i=38);var s={cols:1,height:i,cache:!0,dynamicHeightBufferSize:1,showFilteredItemsOnly:!1,renderExternal:void 0,setListHeight:!0,searchByItem:void 0,searchAll:void 0,itemTemplate:void 0,ul:null,createUl:!0,scrollableParentEl:void 0,renderItem:function(e){return'\n          <li>\n            <div class="item-content">\n              <div class="item-inner">\n                <div class="item-title">'.concat(e,"</div>\n              </div>\n            </div>\n          </li>\n        ").trim()},on:{}};if(o.useModulesParams(s),o.params=$.extend(s,r),void 0!==o.params.height&&o.params.height||(o.params.height=i),o.$el=g(r.el),o.el=o.$el[0],0===o.$el.length)return gi(n,void 0);o.$el[0].f7VirtualList=o,o.items=o.params.items,o.params.showFilteredItemsOnly&&(o.filteredItems=[]),o.params.itemTemplate?"string"==typeof o.params.itemTemplate?o.renderItem=e.t7.compile(o.params.itemTemplate):"function"==typeof o.params.itemTemplate&&(o.renderItem=o.params.itemTemplate):o.params.renderItem&&(o.renderItem=o.params.renderItem),o.$pageContentEl=o.$el.parents(".page-content"),o.pageContentEl=o.$pageContentEl[0],o.$scrollableParentEl=o.params.scrollableParentEl?g(o.params.scrollableParentEl).eq(0):o.$pageContentEl,!o.$scrollableParentEl.length&&o.$pageContentEl.length&&(o.$scrollableParentEl=o.$pageContentEl),o.scrollableParentEl=o.$scrollableParentEl[0],void 0!==o.params.updatableScroll?o.updatableScroll=o.params.updatableScroll:(o.updatableScroll=!0,O.ios&&O.osVersion.split(".")[0]<8&&(o.updatableScroll=!1));var l,c=o.params.ul;o.$ul=c?g(o.params.ul):o.$el.children("ul"),0===o.$ul.length&&o.params.createUl&&(o.$el.append("<ul></ul>"),o.$ul=o.$el.children("ul")),o.ul=o.$ul[0],l=o.ul||o.params.createUl?o.$ul:o.$el,$.extend(o,{$itemsWrapEl:l,itemsWrapEl:l[0],domCache:{},displayDomCache:{},tempDomElement:a.createElement("ul"),lastRepaintY:null,fragment:a.createDocumentFragment(),pageHeight:void 0,rowsPerScreen:void 0,rowsBefore:void 0,rowsAfter:void 0,rowsToRender:void 0,maxBufferHeight:0,listHeight:void 0,dynamicHeight:"function"==typeof o.params.height}),o.useModules();var u,d,h,f,p=o.handleScroll.bind(o),m=o.handleResize.bind(o);return o.attachEvents=function(){u=o.$el.parents(".page").eq(0),d=o.$el.parents(".tab").eq(0),h=o.$el.parents(".panel").eq(0),f=o.$el.parents(".popup").eq(0),o.$scrollableParentEl.on("scroll",p),u&&u.on("page:reinit",m),d&&d.on("tab:show",m),h&&h.on("panel:open",m),f&&f.on("popup:open",m),e.on("resize",m)},o.detachEvents=function(){o.$scrollableParentEl.off("scroll",p),u&&u.off("page:reinit",m),d&&d.off("tab:show",m),h&&h.off("panel:open",m),f&&f.off("popup:open",m),e.off("resize",m)},o.init(),gi(n,o)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_i(e,t)}(t,e),n=t,(r=[{key:"setListSize",value:function(){var e=this,t=e.filteredItems||e.items;if(e.pageHeight=e.$scrollableParentEl[0].offsetHeight,e.dynamicHeight){e.listHeight=0,e.heights=[];for(var n=0;n<t.length;n+=1){var r=e.params.height(t[n]);e.listHeight+=r,e.heights.push(r)}}else e.listHeight=Math.ceil(t.length/e.params.cols)*e.params.height,e.rowsPerScreen=Math.ceil(e.pageHeight/e.params.height),e.rowsBefore=e.params.rowsBefore||2*e.rowsPerScreen,e.rowsAfter=e.params.rowsAfter||e.rowsPerScreen,e.rowsToRender=e.rowsPerScreen+e.rowsBefore+e.rowsAfter,e.maxBufferHeight=e.rowsBefore/2*e.params.height;(e.updatableScroll||e.params.setListHeight)&&e.$itemsWrapEl.css({height:"".concat(e.listHeight,"px")})}},{key:"render",value:function(e,t){var n=this;e&&(n.lastRepaintY=null);var r=-(n.$el[0].getBoundingClientRect().top-n.$scrollableParentEl[0].getBoundingClientRect().top);if(void 0!==t&&(r=t),null===n.lastRepaintY||Math.abs(r-n.lastRepaintY)>n.maxBufferHeight||!n.updatableScroll&&n.$scrollableParentEl[0].scrollTop+n.pageHeight>=n.$scrollableParentEl[0].scrollHeight){n.lastRepaintY=r;var i,o,a,s=n.filteredItems||n.items,l=0,c=0;if(n.dynamicHeight){var u,d=0;n.maxBufferHeight=n.pageHeight;for(var h=0;h<n.heights.length;h+=1)u=n.heights[h],void 0===i&&(d+u>=r-2*n.pageHeight*n.params.dynamicHeightBufferSize?i=h:l+=u),void 0===o&&((d+u>=r+2*n.pageHeight*n.params.dynamicHeightBufferSize||h===n.heights.length-1)&&(o=h+1),c+=u),d+=u;o=Math.min(o,s.length)}else(i=(parseInt(r/n.params.height,10)-n.rowsBefore)*n.params.cols)<0&&(i=0),o=Math.min(i+n.rowsToRender*n.params.cols,s.length);var f,p=[];for(n.reachEnd=!1,f=i;f<o;f+=1){var m=void 0,v=n.items.indexOf(s[f]);f===i&&(n.currentFromIndex=v),f===o-1&&(n.currentToIndex=v),n.filteredItems?n.items[v]===n.filteredItems[n.filteredItems.length-1]&&(n.reachEnd=!0):v===n.items.length-1&&(n.reachEnd=!0),n.params.renderExternal?p.push(s[f]):n.domCache[v]?(m=n.domCache[v]).f7VirtualListIndex=v:(n.renderItem?n.tempDomElement.innerHTML=n.renderItem(s[f],v).trim():n.tempDomElement.innerHTML=s[f].toString().trim(),m=n.tempDomElement.childNodes[0],n.params.cache&&(n.domCache[v]=m),m.f7VirtualListIndex=v),f===i&&(a=n.dynamicHeight?l:f*n.params.height/n.params.cols),n.params.renderExternal||(m.style.top="".concat(a,"px"),n.emit("local::itemBeforeInsert vlItemBeforeInsert",n,m,s[f]),n.fragment.appendChild(m))}n.updatableScroll||(n.dynamicHeight?n.itemsWrapEl.style.height="".concat(c,"px"):n.itemsWrapEl.style.height="".concat(f*n.params.height/n.params.cols,"px")),n.params.renderExternal?s&&0===s.length&&(n.reachEnd=!0):(n.emit("local::beforeClear vlBeforeClear",n,n.fragment),n.itemsWrapEl.innerHTML="",n.emit("local::itemsBeforeInsert vlItemsBeforeInsert",n,n.fragment),s&&0===s.length?(n.reachEnd=!0,n.params.emptyTemplate&&(n.itemsWrapEl.innerHTML=n.params.emptyTemplate)):n.itemsWrapEl.appendChild(n.fragment),n.emit("local::itemsAfterInsert vlItemsAfterInsert",n,n.fragment)),void 0!==t&&e&&n.$scrollableParentEl.scrollTop(t,0),n.params.renderExternal&&n.params.renderExternal(n,{fromIndex:i,toIndex:o,listHeight:n.listHeight,topPosition:a,items:p})}}},{key:"filterItems",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.filteredItems=[];for(var r=0;r<e.length;r+=1)n.filteredItems.push(n.items[e[r]]);t&&(n.$scrollableParentEl[0].scrollTop=0),n.update()}},{key:"resetFilter",value:function(){var e=this;e.params.showFilteredItemsOnly?e.filteredItems=[]:(e.filteredItems=null,delete e.filteredItems),e.update()}},{key:"scrollToItem",value:function(e){var t=this;if(e>t.items.length)return!1;var n=0;if(t.dynamicHeight)for(var r=0;r<e;r+=1)n+=t.heights[r];else n=e*t.params.height;var i=t.$el[0].offsetTop;return t.render(!0,i+n-parseInt(t.$scrollableParentEl.css("padding-top"),10)),!0}},{key:"handleScroll",value:function(){this.render()}},{key:"isVisible",value:function(){return!!(this.el.offsetWidth||this.el.offsetHeight||this.el.getClientRects().length)}},{key:"handleResize",value:function(){this.isVisible()&&(this.setListSize(),this.render(!0))}},{key:"appendItems",value:function(e){for(var t=0;t<e.length;t+=1)this.items.push(e[t]);this.update()}},{key:"appendItem",value:function(e){this.appendItems([e])}},{key:"replaceAllItems",value:function(e){this.items=e,delete this.filteredItems,this.domCache={},this.update()}},{key:"replaceItem",value:function(e,t){this.items[e]=t,this.params.cache&&delete this.domCache[e],this.update()}},{key:"prependItems",value:function(e){for(var t=this,n=e.length-1;n>=0;n-=1)t.items.unshift(e[n]);if(t.params.cache){var r={};Object.keys(t.domCache).forEach((function(n){r[parseInt(n,10)+e.length]=t.domCache[n]})),t.domCache=r}t.update()}},{key:"prependItem",value:function(e){this.prependItems([e])}},{key:"moveItem",value:function(e,t){var n=this,r=e,i=t;if(r!==i){var o=n.items.splice(r,1)[0];if(i>=n.items.length?(n.items.push(o),i=n.items.length-1):n.items.splice(i,0,o),n.params.cache){var a={};Object.keys(n.domCache).forEach((function(e){var t=parseInt(e,10),o=r<i?r:i,s=r<i?i:r,l=r<i?-1:1;(t<o||t>s)&&(a[t]=n.domCache[t]),t===o&&(a[s]=n.domCache[t]),t>o&&t<=s&&(a[t+l]=n.domCache[t])})),n.domCache=a}n.update()}}},{key:"insertItemBefore",value:function(e,t){var n=this;if(0!==e)if(e>=n.items.length)n.appendItem(t);else{if(n.items.splice(e,0,t),n.params.cache){var r={};Object.keys(n.domCache).forEach((function(t){var i=parseInt(t,10);i>=e&&(r[i+1]=n.domCache[i])})),n.domCache=r}n.update()}else n.prependItem(t)}},{key:"deleteItems",value:function(e){for(var t,n=this,r=0,i=function(i){var o=e[i];void 0!==t&&o>t&&(r=-i),o+=r,t=e[i];var a=n.items.splice(o,1)[0];if(n.filteredItems&&n.filteredItems.indexOf(a)>=0&&n.filteredItems.splice(n.filteredItems.indexOf(a),1),n.params.cache){var s={};Object.keys(n.domCache).forEach((function(e){var t=parseInt(e,10);t===o?delete n.domCache[o]:parseInt(e,10)>o?s[t-1]=n.domCache[e]:s[t]=n.domCache[e]})),n.domCache=s}},o=0;o<e.length;o+=1)i(o);n.update()}},{key:"deleteAllItems",value:function(){var e=this;e.items=[],delete e.filteredItems,e.params.cache&&(e.domCache={}),e.update()}},{key:"deleteItem",value:function(e){this.deleteItems([e])}},{key:"clearCache",value:function(){this.domCache={}}},{key:"update",value:function(e){e&&this.params.cache&&(this.domCache={}),this.setListSize(),this.render(!0)}},{key:"init",value:function(){this.attachEvents(),this.setListSize(),this.render()}},{key:"destroy",value:function(){var e=this;e.detachEvents(),e.$el[0].f7VirtualList=null,delete e.$el[0].f7VirtualList,$.deleteProps(e),e=null}}])&&mi(n.prototype,r),i&&mi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),ki={name:"virtualList",static:{VirtualList:wi},create:function(){this.virtualList=X({defaultSelector:".virtual-list",constructor:wi,app:this,domProp:"f7VirtualList"})}};function Si(e){return(Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ei(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ti(r.key),r)}}function Ti(e){var t=function(e,t){if("object"!=Si(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Si(t)?t:t+""}function xi(e,t){if(t&&("object"==Si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $i(e)}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pi(e,t){return(Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Oi=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ei(this,t);var i,o,a,s,l=$i(n=xi(this,Mi(t).call(this,r,[e]))),c={el:null,listEl:null,indexes:"auto",iosItemHeight:14,mdItemHeight:14,auroraItemHeight:14,scrollList:!0,label:!1,renderItem:function(e,t){return"\n          <li>".concat(e,"</li>\n        ").trim()},renderSkipPlaceholder:function(){return'<li class="list-index-skip-placeholder"></li>'},on:{}};if(l.useModulesParams(c),l.params=$.extend(c,r),!l.params.el)return xi(n,l);if((i=g(l.params.el))[0].f7ListIndex)return xi(n,i[0].f7ListIndex);if(0===(s=i.find("ul")).length&&(s=g("<ul></ul>"),i.append(s)),l.params.listEl&&(o=g(l.params.listEl)),"auto"===l.params.indexes&&!o)return xi(n,l);function u(){var e={index:l};l.calcSize(),e!==l.height&&l.render()}function d(e){var t=g(e.target).closest("li");if(t.length){var n=t.index();if(l.skipRate>0){var r=n/(t.siblings("li").length-1);n=Math.round((l.indexes.length-1)*r)}var i=l.indexes[n];l.$el.trigger("listindex:click",{content:i,index:n}),l.emit("local::click listIndexClick",l,i,n),l.$el.trigger("listindex:select",{content:i,index:n}),l.emit("local::select listIndexSelect",l,i,n),l.$listEl&&l.params.scrollList&&l.scrollListToIndex(i,n)}}o?a=o.parents(".page-content").eq(0):0===(a=i.siblings(".page-content").eq(0)).length&&(a=i.parents(".page").eq(0).find(".page-content").eq(0)),i[0].f7ListIndex=l,$.extend(l,{app:e,$el:i,el:i&&i[0],$ul:s,ul:s&&s[0],$listEl:o,listEl:o&&o[0],$pageContentEl:a,pageContentEl:a&&a[0],indexes:r.indexes,height:0,skipRate:0}),l.useModules();var h,f,p,m,v,y={},b=null;function _(e){var t=s.children();t.length&&(p=t[0].getBoundingClientRect().top,m=t[t.length-1].getBoundingClientRect().top+t[0].offsetHeight,y.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,y.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,h=!0,f=!1,b=null)}function w(e){if(h){!f&&l.params.label&&(v=g('<span class="list-index-label"></span>'),i.append(v)),f=!0;var t="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;e.preventDefault();var n=(t-p)/(m-p);n=Math.min(Math.max(n,0),1);var r=Math.round((l.indexes.length-1)*n),o=l.indexes[r],a=m-p,s=(l.height-a)/2+(1-n)*a;r!==b&&(l.params.label&&v.html(o).transform("translateY(-".concat(s,"px)")),l.$listEl&&l.params.scrollList&&l.scrollListToIndex(o,r)),b=r,l.$el.trigger("listindex:select"),l.emit("local::select listIndexSelect",l,o,r)}}function k(){h&&(h=!1,f=!1,l.params.label&&(v&&v.remove(),v=void 0))}var S=!!e.support.passiveListener&&{passive:!0};return l.attachEvents=function(){i.parents(".tab").on("tab:show",u),i.parents(".page").on("page:reinit",u),i.parents(".panel").on("panel:open",u),i.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").on("modal:open",u),e.on("resize",u),i.on("click",d),i.on(e.touchEvents.start,_,S),e.on("touchmove:active",w),e.on("touchend:passive",k)},l.detachEvents=function(){i.parents(".tab").off("tab:show",u),i.parents(".page").off("page:reinit",u),i.parents(".panel").off("panel:open",u),i.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast").off("modal:open",u),e.off("resize",u),i.off("click",d),i.off(e.touchEvents.start,_,S),e.off("touchmove:active",w),e.off("touchend:passive",k)},l.init(),xi(n,l)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pi(e,t)}(t,e),n=t,(r=[{key:"scrollListToIndex",value:function(e,t){var n,r=this.$listEl,i=this.$pageContentEl,o=this.app;if(!r||!i||0===i.length)return this;if(r.find(".list-group-title, .item-divider").each((function(t,r){if(!n){var i=g(r);i.text()===e&&(n=i)}})),!n||0===n.length)return this;var a=n.parent().offset().top,s=parseInt(i.css("padding-top"),10),l=i[0].scrollTop,c=n.offset().top;if(i.parents(".page-with-navbar-large").length){var u=o.navbar.getElByPage(i.parents(".page-with-navbar-large").eq(0)),d=g(u).find(".title-large");d.length&&(s-=d[0].offsetHeight||0)}return a<=s?i.scrollTop(a+l-s):i.scrollTop(c+l-s),this}},{key:"renderSkipPlaceholder",value:function(){return this.params.renderSkipPlaceholder.call(this)}},{key:"renderItem",value:function(e,t){return this.params.renderItem.call(this,e,t)}},{key:"render",value:function(){var e,t=this,n=t.$ul,r=t.indexes,i=t.skipRate,o=r.map((function(n,r){if(r%i!=0&&i>0)return e=!0,"";var o=t.renderItem(n,r);return e&&(o=t.renderSkipPlaceholder()+o),e=!1,o})).join("");return n.html(o),t}},{key:"calcSize",value:function(){var e=this.app,t=this.params,n=this.el,r=this.indexes,i=n.offsetHeight,o=t["".concat(e.theme,"ItemHeight")],a=Math.floor(i/o),s=r.length,l=0;return s>a&&(l=Math.ceil((2*s-1)/a)),this.height=i,this.skipRate=l,this}},{key:"calcIndexes",value:function(){var e=this;return"auto"===e.params.indexes?(e.indexes=[],e.$listEl.find(".list-group-title, .item-divider").each((function(t,n){var r=g(n).text();e.indexes.indexOf(r)<0&&e.indexes.push(r)}))):e.indexes=e.params.indexes,e}},{key:"update",value:function(){return this.calcIndexes(),this.calcSize(),this.render(),this}},{key:"init",value:function(){this.calcIndexes(),this.calcSize(),this.render(),this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("listindex:beforedestroy",e),e.emit("local::beforeDestroy listIndexBeforeDestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7ListIndex=null,delete e.$el[0].f7ListIndex),$.deleteProps(e),e=null}}])&&Ci(n.prototype,r),i&&Ci(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Li={name:"listIndex",static:{ListIndex:Oi},create:function(){this.listIndex=X({defaultSelector:".list-index",constructor:Oi,app:this,domProp:"f7ListIndex"})},on:{tabMounted:function(e){var t=this;g(e).find(".list-index-init").each((function(e,n){var r=$.extend(g(n).dataset(),{el:n});t.listIndex.create(r)}))},tabBeforeRemove:function(e){g(e).find(".list-index-init").each((function(e,t){t.f7ListIndex&&t.f7ListIndex.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".list-index-init").each((function(e,n){var r=$.extend(g(n).dataset(),{el:n});t.listIndex.create(r)}))},pageBeforeRemove:function(e){e.$el.find(".list-index-init").each((function(e,t){t.f7ListIndex&&t.f7ListIndex.destroy()}))}},vnode:{"list-index-init":{insert:function(e){var t=e.elm,n=$.extend(g(t).dataset(),{el:t});this.listIndex.create(n)},destroy:function(e){var t=e.elm;t.f7ListIndex&&t.f7ListIndex.destroy()}}}},Ai={show:function(){for(var e,t,n,r,i=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];1===a.length&&a[0].constructor===Object?(e=a[0].tabEl,t=a[0].tabLinkEl,n=a[0].animate,r=a[0].tabRoute):(e=a[0],t=a[1],n=a[2],r=a[3],"boolean"==typeof a[1]&&(e=a[0],n=a[1],t=a[2],r=a[3],a.length>2&&t.constructor===Object&&(e=a[0],n=a[1],r=a[2],t=a[3]))),void 0===n&&(n=!0);var l,c=g(e);if(r&&c[0]&&(c[0].f7TabRoute=r),0===c.length||c.hasClass("tab-active"))return{$newTabEl:c,newTabEl:c[0]};t&&(l=g(t));var u=c.parent(".tabs");if(0===u.length)return{$newTabEl:c,newTabEl:c[0]};i.swipeout&&(i.swipeout.allowOpen=!0);var d=[];function h(e){d.push(e)}function f(){d.forEach((function(e){e()}))}var p,m=!1;if(u.parent().hasClass("tabs-animated-wrap")){u.parent()[n?"removeClass":"addClass"]("not-animated");var v=parseFloat(u.css("transition-duration").replace(",","."));n&&v&&(u.transitionEnd(f),m=!0);var y=100*(i.rtl?c.index():-c.index());u.transform("translate3d(".concat(y,"%,0,0)"))}u.parent().hasClass("tabs-swipeable-wrap")&&i.swiper&&((p=u.parent()[0].swiper)&&p.activeIndex!==c.index()?(m=!0,p.once("slideChangeTransitionEnd",(function(){f()})).slideTo(c.index(),n?void 0:0)):p&&p.animating&&(m=!0,p.once("slideChangeTransitionEnd",(function(){f()}))));var b=u.children(".tab-active");if(b.removeClass("tab-active"),(!p||p&&!p.animating||p&&r)&&(b.trigger("tab:hide"),i.emit("tabHide",b[0])),c.addClass("tab-active"),(!p||p&&!p.animating||p&&r)&&(c.trigger("tab:show"),i.emit("tabShow",c[0])),!l&&((!(l=g("string"==typeof e?'.tab-link[href="'.concat(e,'"]'):'.tab-link[href="#'.concat(c.attr("id"),'"]')))||l&&0===l.length)&&g("[data-tab]").each((function(e,t){c.is(g(t).attr("data-tab"))&&(l=g(t))})),r&&(!l||l&&0===l.length)&&0===(l=g('[data-route-tab-id="'.concat(r.route.tab.id,'"]'))).length&&(l=g('.tab-link[href="'.concat(r.url,'"]'))),l.length>1&&c.parents(".page").length&&(l=l.filter((function(e,t){return g(t).parents(".page")[0]===c.parents(".page")[0]})),"ios"===i.theme&&0===l.length&&r))){var _=c.parents(".page"),w=g(i.navbar.getElByPage(_));0===(l=w.find('[data-route-tab-id="'.concat(r.route.tab.id,'"]'))).length&&(l=w.find('.tab-link[href="'.concat(r.url,'"]')))}if(l.length>0){var k;if(b&&b.length>0){var S=b.attr("id");S&&(!(k=g('.tab-link[href="#'.concat(S,'"]')))||k&&0===k.length)&&(k=g('.tab-link[data-route-tab-id="'.concat(S,'"]'))),(!k||k&&0===k.length)&&g("[data-tab]").each((function(e,t){b.is(g(t).attr("data-tab"))&&(k=g(t))})),(!k||k&&0===k.length)&&(k=l.siblings(".tab-link-active"))}else r&&(k=l.siblings(".tab-link-active"));if(k&&k.length>1&&b&&b.parents(".page").length&&(k=k.filter((function(e,t){return g(t).parents(".page")[0]===b.parents(".page")[0]}))),k&&k.length>0&&k.removeClass("tab-link-active"),l&&l.length>0&&(l.addClass("tab-link-active"),"md"===i.theme&&i.toolbar)){var E=l.parents(".tabbar, .tabbar-labels");E.length>0&&i.toolbar.setHighlight(E)}}return{$newTabEl:c,newTabEl:c[0],$oldTabEl:b,oldTabEl:b[0],onTabsChanged:h,animated:m}}},Ii={name:"tabs",create:function(){$.extend(this,{tab:{show:Ai.show.bind(this)}})},clicks:{".tab-link":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;(e.attr("href")&&0===e.attr("href").indexOf("#")||e.attr("data-tab"))&&n.tab.show({tabEl:t.tab||e.attr("href"),tabLinkEl:e,animate:t.animate})}}};var Di=function(e){var t=e.app;if(!e.swipeInitialized){$.extend(e,{swipeable:!0,swipeInitialized:!0});var n,r,i,o,a,s,l,c,u,d,h,f,p=e.params,m=e.$el,v=e.$backdropEl,y=e.side,b=e.effect,_={},w=0;t.on("touchstart:passive",k),t.on("touchmove:active",S),t.on("touchend:passive",E),t.on("gesturestart",C),t.on("gestureend",T),e.on("panelDestroy",(function(){t.off("touchstart:passive",k),t.off("touchmove:active",S),t.off("touchend:passive",E),t.off("gesturestart",C),t.off("gestureend",T)}))}function k(l){if(e.swipeable&&!i&&t.panel.allowOpen&&(p.swipe||p.swipeOnlyClose)&&!r&&!(g(".modal-in:not(.toast):not(.notification), .photo-browser-in").length>0)){var c=(n=t.panel.get("left"===y?"right":"left")||{}).opened&&n.$el&&!n.$el.hasClass("panel-in-breakpoint");if((e.opened||!c)&&(p.swipeOnlyClose||!c)&&(!l.target||"input"!==l.target.nodeName.toLowerCase()||"range"!==l.target.type)&&!(g(l.target).closest(".range-slider, .tabs-swipeable-wrap, .calendar-months, .no-swipe-panel, .card-opened").length>0)&&(_.x="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,_.y="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY,!p.swipeOnlyClose||e.opened)){if(p.swipeActiveArea&&!e.opened){if("left"===y&&_.x>p.swipeActiveArea)return;if("right"===y&&_.x<t.width-p.swipeActiveArea)return}w=0,f=g(e.getViewEl()),o=!1,r=!0,a=void 0,s=$.now(),h=void 0}}}function S(n){if(r&&!i&&!((w+=1)<2))if(n.f7PreventSwipePanel||t.preventSwipePanelBySwipeBack||t.preventSwipePanel)r=!1;else{var s="touchmove"===n.type?n.targetTouches[0].pageX:n.pageX,g="touchmove"===n.type?n.targetTouches[0].pageY:n.pageY;if(void 0===a&&(a=!!(a||Math.abs(g-_.y)>Math.abs(s-_.x))),a)r=!1;else{if(!h){if(h=s>_.x?"to-right":"to-left",p.swipeActiveArea>0&&!e.opened){if("left"===y&&_.x>p.swipeActiveArea)return void(r=!1);if("right"===y&&_.x<t.width-p.swipeActiveArea)return void(r=!1)}if(m.hasClass("panel-in-breakpoint"))return void(r=!1);if("left"===y&&"to-left"===h&&!m.hasClass("panel-in")||"right"===y&&"to-right"===h&&!m.hasClass("panel-in"))return void(r=!1)}var k=e.opened?0:-p.swipeThreshold;"right"===y&&(k=-k),o||(e.opened||(e.insertToRoot(),m.addClass("panel-in-swipe"),v.css("visibility","visible"),m.trigger("panel:swipeopen"),e.emit("local::swipeOpen panelSwipeOpen",e)),d=m[0].offsetWidth,"reveal"===b&&m.hasClass("panel-in-collapsed")&&(d-=parseFloat(f.css("margin-".concat(y)))),m.transition(0)),o=!0,n.preventDefault(),l=s-_.x+k,"right"===y?"cover"===b?((c=l+(e.opened?0:d))<0&&(c=0),c>d&&(c=d)):((c=l-(e.opened?d:0))>0&&(c=0),c<-d&&(c=-d)):((c=l+(e.opened?d:0))<0&&(c=0),c>d&&(c=d)),"reveal"===b?(f.transform("translate3d(".concat(c,"px,0,0)")).transition(0),v.transform("translate3d(".concat(c,"px,0,0)")).transition(0),m.trigger("panel:swipe",Math.abs(c/d)),e.emit("local::swipe panelSwipe",e,Math.abs(c/d))):("left"===y&&(c-=d),m.transform("translate3d(".concat(c,"px,0,0)")).transition(0),v.transition(0),u=1-Math.abs(c/d),v.css({opacity:u}),m.trigger("panel:swipe",Math.abs(c/d)),e.emit("local::swipe panelSwipe",e,Math.abs(c/d)))}}}function E(t){if(!r||!o)return r=!1,void(o=!1);var n="gesturestart"===t.type||i;r=!1,o=!1;var a,u=(new Date).getTime()-s,h=0===c||Math.abs(c)===d,_=p.swipeThreshold||0;"swap"===(a=n?"reset":e.opened?"cover"===b?0===c?"reset":u<300&&Math.abs(c)>0?"swap":u>=300&&Math.abs(c)<d/2?"reset":"swap":c===-d?"reset":u<300&&Math.abs(c)>=0||u>=300&&Math.abs(c)<=d/2?"left"===y&&c===d?"reset":"swap":"reset":Math.abs(l)<_?"reset":"cover"===b?0===c||u<300&&Math.abs(c)>0||u>=300&&Math.abs(c)<d/2?"swap":"reset":0===c?"reset":u<300&&Math.abs(c)>0||u>=300&&Math.abs(c)>=d/2?"swap":"reset")&&(e.opened?e.close(!h):e.open(!h));var w=!0;if("reset"===a&&!e.opened)if(h)m.removeClass("panel-in-swipe");else{w=!1;var k="reveal"===b?f:m;g("html").addClass("with-panel-closing"),k.transitionEnd((function(){m.hasClass("panel-in")||(m.removeClass("panel-in-swipe"),g("html").removeClass("with-panel-closing"))}))}"reveal"===b&&$.nextFrame((function(){f.transition(""),f.transform("")})),w&&m.removeClass("panel-in-swipe"),m.transition("").transform(""),v.transform("").transition("").css({opacity:"",visibility:""})}function C(e){i=!0,E(e)}function T(){i=!1}};var Ni=function(e){var t=e.app;if(!e.resizableInitialized){$.extend(e,{resizable:!0,resizableWidth:null,resizableInitialized:!0});var n=g("html"),r=e.$el,i=e.$backdropEl,o=e.side,a=e.effect;if(r){var s,l,c,u,d,h,f,p,m={};0===e.$el.find(".panel-resize-handler").length&&e.$el.append('<div class="panel-resize-handler"></div>'),e.$resizeHandlerEl=e.$el.children(".panel-resize-handler"),r.addClass("panel-resizable");var v=!!P.passiveListener&&{passive:!0};e.$el.on(t.touchEvents.start,".panel-resize-handler",b,v),t.on("touchmove:active",_),t.on("touchend:passive",w),t.on("resize",k),e.on("beforeOpen",k),e.once("panelDestroy",(function(){r.removeClass("panel-resizable"),e.$resizeHandlerEl.remove(),e.$el.off(t.touchEvents.start,".panel-resize-handler",b,v),t.off("touchmove:active",_),t.off("touchend:passive",w),t.off("resize",k),e.off("beforeOpen",k)}))}}function y(e){if(!e)return null;if(e.indexOf("%")>=0||e.indexOf("vw")>=0)return parseInt(e,10)/100*t.width;var n=parseInt(e,10);return Number.isNaN(n)?null:n}function b(t){e.resizable&&r.hasClass("panel-resizable")&&(m.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,m.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,l=!1,s=!0,h=y(r.css("min-width")),f=y(r.css("max-width")),p=r.hasClass("panel-in-breakpoint"))}function _(v){if(s){var y="touchmove"===v.type?v.targetTouches[0].pageX:v.pageX;l||(u=r[0].offsetWidth,r.transition(0),r.addClass("panel-resizing"),n.css("cursor","col-resize"),("reveal"===a||p)&&(d=g(e.getViewEl())),"reveal"!==a||p||(i.transition(0),d.transition(0))),l=!0,v.preventDefault(),c=y-m.x;var b="left"===o?u+c:u-c;h&&!Number.isNaN(h)&&(b=Math.max(b,h)),f&&!Number.isNaN(f)&&(b=Math.min(b,f)),b=Math.min(Math.max(b,0),t.width),e.resizableWidth=b,r[0].style.width="".concat(b,"px"),"reveal"!==a||p?p&&d&&d.css("margin-".concat(o),"".concat(b,"px")):(d&&d.transform("translate3d(".concat("left"===o?b:-b,"px, 0, 0)")),i&&i.transform("translate3d(".concat("left"===o?b:-b,"px, 0, 0)"))),r.trigger("panel:resize",b),e.emit("local::resize panelResize",e,b)}}function w(){if(g("html").css("cursor",""),!s||!l)return s=!1,void(l=!1);s=!1,l=!1,n[0].style.setProperty("--f7-panel-".concat(o,"-width"),"".concat(e.resizableWidth,"px")),r[0].style.width="","reveal"!==a||p||(d.transform(""),i.transform("")),r.removeClass("panel-resizing"),$.nextFrame((function(){p||(r.transition(""),"reveal"===a&&(i.transition(""),d&&d.transition("")))}))}function k(){e.opened&&e.resizableWidth&&(h=y(r.css("min-width")),f=y(r.css("max-width")),h&&!Number.isNaN(h)&&e.resizableWidth<h&&(e.resizableWidth=Math.max(e.resizableWidth,h)),f&&!Number.isNaN(f)&&e.resizableWidth>f&&(e.resizableWidth=Math.min(e.resizableWidth,f)),e.resizableWidth=Math.min(Math.max(e.resizableWidth,0),t.width),n[0].style.setProperty("--f7-panel-".concat(o,"-width"),"".concat(e.resizableWidth,"px")))}};function Ri(e){return(Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ji(e,t,n){return(t=Fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fi(r.key),r)}}function Fi(e){var t=function(e,t){if("object"!=Ri(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ri(t)?t:t+""}function Hi(e,t){if(t&&("object"==Ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zi(e)}function Ui(e){return(Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vi(e,t){return(Vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var qi=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Bi(this,t);var i,o=$.extend({on:{}},e.params.panel,r),a=zi(n=Hi(this,Ui(t).call(this,o,[e])));if(a.params=o,a.params.el?i=g(a.params.el).eq(0):a.params.content&&(i=g(a.params.content).filter((function(e,t){return 1===t.nodeType})).eq(0)),0===i.length)return Hi(n,a);if(i[0].f7Panel)return Hi(n,i[0].f7Panel);i[0].f7Panel=a;var s,l=a.params,c=l.side,u=l.effect,d=l.resizable;return void 0===c&&(c=i.hasClass("panel-left")?"left":"right"),void 0===u&&(u=i.hasClass("panel-cover")?"cover":"reveal"),void 0===d&&(d=i.hasClass("panel-resizable")),a.params.backdrop&&a.params.backdropEl?s=g(a.params.backdropEl):a.params.backdrop&&0===(s=e.root.children(".panel-backdrop")).length&&(s=g('<div class="panel-backdrop"></div>'),e.root.prepend(s)),$.extend(a,{app:e,side:c,effect:u,resizable:d,$el:i,el:i[0],opened:!1,$backdropEl:s,backdropEl:s&&s[0]}),a.useModules(),a.init(),Hi(n,a)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vi(e,t)}(t,e),n=t,(r=[{key:"getViewEl",value:function(){var e=this.app;return e.root.children(".views").length>0?e.root.children(".views")[0]:e.root.children(".view")[0]}},{key:"enableVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!1,this.setVisibleBreakpoint(),this}},{key:"disableVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!0,this.setVisibleBreakpoint(),this}},{key:"toggleVisibleBreakpoint",value:function(){return this.visibleBreakpointDisabled=!this.visibleBreakpointDisabled,this.setVisibleBreakpoint(),this}},{key:"setVisibleBreakpoint",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;t.visibleBreakpointResizeHandler||(t.visibleBreakpointResizeHandler=function(){t.setVisibleBreakpoint()},n.on("resize",t.visibleBreakpointResizeHandler));var r=t.side,i=t.$el,o=t.params,a=t.visibleBreakpointDisabled,s=o.visibleBreakpoint,l=g(t.getViewEl()),c=i.hasClass("panel-in-breakpoint");n.width>=s&&null!=s&&!a?c?l.css(ji({},"margin-".concat(r),"".concat(i.width(),"px"))):(g("html").removeClass("with-panel-".concat(r,"-reveal with-panel-").concat(r,"-cover with-panel")),i.addClass("panel-in-breakpoint").removeClass("panel-in panel-in-collapsed"),t.onOpen(!1),t.onOpened(),l.css(ji({},"margin-".concat(r),"".concat(i.width(),"px"))),n.allowPanelOpen=!0,e&&(t.emit("local::breakpoint panelBreakpoint",t),t.$el.trigger("panel:breakpoint"))):c&&(i.removeClass("panel-in-breakpoint panel-in"),t.onClose(),t.onClosed(),l.css(ji({},"margin-".concat(r),"")),e&&(t.emit("local::breakpoint panelBreakpoint",t),t.$el.trigger("panel:breakpoint")))}},{key:"enableCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!1,this.setCollapsedBreakpoint(),this}},{key:"disableCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!0,this.setCollapsedBreakpoint(),this}},{key:"toggleCollapsedBreakpoint",value:function(){return this.collapsedBreakpointDisabled=!this.collapsedBreakpointDisabled,this.setCollapsedBreakpoint(),this}},{key:"setCollapsedBreakpoint",value:function(e){var t=this,n=t.app;t.collapsedBreakpointResizeHandler||(t.collapsedBreakpointResizeHandler=function(){t.setCollapsedBreakpoint()},n.on("resize",t.collapsedBreakpointResizeHandler));var r=t.side,i=t.$el,o=t.params,a=t.collapsedBreakpointDisabled;if(!i.hasClass("panel-in-breakpoint")){var s=o.collapsedBreakpoint,l=i.hasClass("panel-in-collapsed");n.width>=s&&null!=s&&!a?l||(g("html").removeClass("with-panel-".concat(r,"-reveal with-panel-").concat(r,"-cover with-panel")),i.addClass("panel-in-collapsed").removeClass("panel-in"),t.collapsed=!0,n.allowPanelOpen=!0,e&&(t.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",t),t.$el.trigger("panel:collapsedbreakpoint"))):l&&(i.removeClass("panel-in-collapsed panel-in"),t.collapsed=!1,e&&(t.emit("local::collapsedBreakpoint panelCollapsedBreakpoint",t),t.$el.trigger("panel:collapsedbreakpoint")))}}},{key:"enableResizable",value:function(){return this.resizableInitialized?(this.resizable=!0,this.$el.addClass("panel-resizable")):Ni(this),this}},{key:"disableResizable",value:function(){return this.resizable=!1,this.$el.removeClass("panel-resizable"),this}},{key:"enableSwipe",value:function(){return this.swipeInitialized?this.swipeable=!0:Di(this),this}},{key:"disableSwipe",value:function(){return this.swipeable=!1,this}},{key:"onOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;t.opened=!0,n.panel.allowOpen=!1,t.$el.trigger("panel:beforeopen"),t.emit("local::beforeOpen panelBeforeOpen",t),e&&g("html").addClass("with-panel with-panel-".concat(t.side,"-").concat(t.effect)),t.$el.trigger("panel:open"),t.emit("local::open panelOpen",t)}},{key:"onOpened",value:function(){this.app.panel.allowOpen=!0,this.$el.trigger("panel:opened"),this.emit("local::opened panelOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opened=!1,e.panel.allowOpen=!1,this.$el.trigger("panel:beforeclose"),this.emit("local::beforeClose panelBeforeClose",this),g("html").addClass("with-panel-closing"),g("html").removeClass("with-panel with-panel-".concat(this.side,"-").concat(this.effect)),this.$el.trigger("panel:close"),this.emit("local::close panelClose",this)}},{key:"onClosed",value:function(){this.app.panel.allowOpen=!0,g("html").removeClass("with-panel-closing"),this.$el.removeClass("panel-out"),this.$el.trigger("panel:closed"),this.emit("local::closed panelClosed",this)}},{key:"toggle",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.params.visibleBreakpoint,r=t.app;return r.width>=n&&null!=n?t.toggleVisibleBreakpoint():(t.opened?t.close(e):t.open(e),t)}},{key:"insertToRoot",value:function(){var e=this.$el,t=this.app,n=this.$backdropEl,r=e.parent(),i=e.parents(document).length>0;if(!r.is(t.root)||e.prevAll(".views, .view").length){var o=t.root.children(".panel, .views, .view").eq(0),a=t.root.children(".panel-backdrop").eq(0);o.length?e.insertBefore(o):a?e.insertBefore(a):t.root.prepend(e),n&&n.length&&(!n.parent().is(t.root)&&0===n.nextAll(".panel").length||n.parent().is(t.root)&&0===n.nextAll(".panel").length)&&n.insertBefore(e),this.once("panelClosed",(function(){i?r.append(e):e.remove()}))}}},{key:"open",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.app;if(!n.panel.allowOpen)return!1;var r=t.effect,i=t.$el,o=t.$backdropEl,a=t.opened;if(!i||i.hasClass("panel-in"))return t;if(t.insertToRoot(),a||i.hasClass("panel-in-breakpoint")||i.hasClass("panel-in"))return!1;var s=n.panel.get(".panel-in");s&&s!==t&&s.close(e),i[e?"removeClass":"addClass"]("not-animated"),i.addClass("panel-in"),o[e?"removeClass":"addClass"]("not-animated"),"cover"===t.effect&&(t._clientLeft=i[0].clientLeft);var l="reveal"===r?i.nextAll(".view, .views").eq(0):i;function c(){l.transitionEnd((function(e){g(e.target).is(l)?i.hasClass("panel-out")?t.onClosed():t.onOpened():c()}))}return e?(o&&o.removeClass("not-animated"),c(),i.removeClass("panel-out not-animated").addClass("panel-in"),t.onOpen()):(o&&o.addClass("not-animated"),i.removeClass("panel-out").addClass("panel-in not-animated"),t.onOpen(),t.onOpened()),!0}},{key:"close",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.effect,r=t.$el,i=t.$backdropEl,o=t.opened;if(!o||r.hasClass("panel-in-breakpoint")||!r.hasClass("panel-in"))return t;r[e?"removeClass":"addClass"]("not-animated"),i[e?"removeClass":"addClass"]("not-animated");var a="reveal"===n?r.nextAll(".view, .views").eq(0):r;function s(){r.hasClass("panel-out")?t.onClosed():r.hasClass("panel-in")&&t.onOpened(),g("html").removeClass("with-panel-closing")}return e?(a.transitionEnd((function(){s()})),r.removeClass("panel-in").addClass("panel-out"),t.onClose()):(r.addClass("not-animated").removeClass("panel-in").addClass("panel-out"),t.onClose(),t.onClosed()),t}},{key:"init",value:function(){void 0!==this.params.visibleBreakpoint&&this.setVisibleBreakpoint(),void 0!==this.params.collapsedBreakpoint&&this.setCollapsedBreakpoint(),this.params.swipe&&this.enableSwipe(),this.resizable&&this.enableResizable()}},{key:"destroy",value:function(){var e=this,t=e.app;if(e.$el){if(e.emit("local::beforeDestroy panelBeforeDestroy",e),e.$el.trigger("panel:beforedestroy"),e.visibleBreakpointResizeHandler&&t.off("resize",e.visibleBreakpointResizeHandler),e.collapsedBreakpointResizeHandler&&t.off("resize",e.collapsedBreakpointResizeHandler),e.$el.hasClass("panel-in-breakpoint")||e.$el.hasClass("panel-in-collapsed")){var n=g(e.getViewEl());e.$el.removeClass("panel-in-breakpoint panel-in-collapsed panel-in"),n.css(ji({},"margin-".concat(e.side),"")),e.emit("local::breakpoint panelBreakpoint",e),e.$el.trigger("panel:breakpoint")}e.$el.trigger("panel:destroy"),e.emit("local::destroy panelDestroy",e),e.el&&(e.el.f7Panel=null,delete e.el.f7Panel),$.deleteProps(e),e=null}}}])&&Yi(n.prototype,r),i&&Yi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Wi={name:"panel",params:{panel:{opened:void 0,side:void 0,effect:void 0,resizable:void 0,backdrop:!0,backdropEl:void 0,visibleBreakpoint:void 0,collapsedBreakpoint:void 0,swipe:!1,swipeOnlyClose:!1,swipeActiveArea:0,swipeThreshold:0,closeByBackdropClick:!0}},static:{Panel:qi},instance:{panel:{allowOpen:!0}},create:function(){var e=this;$.extend(e.panel,{create:function(t){return new qi(e,t)},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel";if(e instanceof qi)return e;"left"!==e&&"right"!==e||(e=".panel-".concat(e));var t=g(e);return 0===t.length||t.length>1?void 0:t[0].f7Panel},destroy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=e.panel.get(t);if(n&&n.destroy)return n.destroy()},open:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.open?r.open(n):r?void 0:(r=e.panel.create({el:t})).open(n)},close:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel-in",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.open?r.close(n):r?void 0:(r=e.panel.create({el:t})).close(n)},toggle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".panel",n=arguments.length>1?arguments[1]:void 0;"left"!==t&&"right"!==t||(t=".panel-".concat(t));var r=e.panel.get(t);return r&&r.toggle?r.toggle(n):r?void 0:(r=e.panel.create({el:t})).toggle(n)}})},on:{init:function(){var e=this;g(".panel-init").each((function(t,n){var r=Object.assign({el:n},g(n).dataset()||{});e.panel.create(r)}))},pageInit:function(e){var t=this;e.$el.find(".panel-init").each((function(e,n){var r=Object.assign({el:n},g(n).dataset()||{});t.panel.create(r)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".panel-init").each((function(e,n){var r=t.panel.get(n);r&&r.destroy&&r.destroy()}))}},vnode:{"panel-init":{insert:function(e){var t=e.elm,n=Object.assign({el:t},g(t).dataset()||{});this.panel.create(n)},destroy:function(e){var t=e.elm,n=this.panel.get(t);n&&n.destroy&&n.destroy()}}},clicks:{".panel-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.open(t.panel,t.animate)},".panel-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.close(t.panel,t.animate)},".panel-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.panel.toggle(t.panel,t.animate)},".panel-backdrop":function(){var e=g(".panel-in:not(.panel-out)");if(e.length){var t=e[0]&&e[0].f7Panel;e.trigger("panel:backdrop-click"),t&&t.emit("backdropClick",t),this.emit("panelBackdropClick",t||e[0]),this.params.panel.closeByBackdropClick&&this.panel.close()}}}},Gi={open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(!g(".card-opened").length){var r=g(e).eq(0);if(r&&r.length&&!(r.hasClass("card-opened")||r.hasClass("card-opening")||r.hasClass("card-closing"))){var i,o=r.parents(".page").eq(0);if(o.length)if(r.trigger("card:beforeopen",{prevent:K}),n.emit("cardBeforeOpen",r[0],K),!i){var a,s,l,c=Object.assign({animate:t},n.params.card,r.dataset()),u=r.parents(".page-content");r.attr("data-backdrop-el")&&(a=g(r.attr("data-backdrop-el"))),!a&&c.backdrop&&((a=u.find(".card-backdrop")).length||(a=g('<div class="card-backdrop"></div>'),u.append(a))),c.hideNavbarOnOpen&&((s=o.children(".navbar")).length||o[0].f7Page&&(s=o[0].f7Page.$navbarEl)),c.hideToolbarOnOpen&&((l=o.children(".toolbar")).length||(l=o.parents(".view").children(".toolbar")),l.length||(l=o.parents(".views").children(".toolbar")));var d,h=r.css("transform");h&&h.match(/[2-9]/)&&(d=!0);var f=r.children(".card-content"),p=g(document.createElement("div")).addClass("card-expandable-size");r.append(p);var m,v=r[0].offsetWidth,y=r[0].offsetHeight,b=o[0].offsetWidth,_=o[0].offsetHeight,w=p[0].offsetWidth||b,k=p[0].offsetHeight||_;s&&!c.hideStatusbarOnOpen&&k===_&&(m=parseInt(s.css("--f7-safe-area-top"),10),Number.isNaN(m)&&(m=0)),m&&(k-=m);var S,E,C=w/v,T=k/y,x=r.offset(),M=o.offset();if(m&&(M.top+=m/2),x.left-=M.left,d){var $=h.replace(/matrix\(|\)/g,"").split(",").map((function(e){return e.trim()}));if($&&$.length>1){var O=parseFloat($[0]);S=x.left-v*(1-O)/2,E=x.top-M.top-y*(1-O)/2,n.rtl&&(S-=r[0].scrollLeft)}else S=r[0].offsetLeft,E=r[0].offsetTop-(u.length?u[0].scrollTop:0)}else S=x.left,E=x.top-M.top,n.rtl&&(S-=r[0].scrollLeft);E-=(_-k)/2;var L=w-v-(S-=(b-w)/2);if(n.rtl){var A=[L,S];S=A[0],L=A[1]}var I,D,N,R,j,B,Y,F,H,U,z,V,q=k-y-E,W=(L-S)/2,G=(q-E)/2;c.hideNavbarOnOpen&&s&&s.length&&(s.closest(".navbar-hidden").length?r[0].f7KeepNavbarOnClose=!0:(delete r[0].f7KeepNavbarOnClose,n.navbar.hide(s,c.animate,c.hideStatusbarOnOpen))),c.hideToolbarOnOpen&&l&&l.length&&(l.closest(".toolbar-hidden").length?r[0].f7KeepToolbarOnClose=!0:(delete r[0].f7KeepToolbarOnClose,n.toolbar.hide(l,c.animate))),a&&a.removeClass("card-backdrop-out").addClass("card-backdrop-in"),r.removeClass("card-transitioning"),c.animate&&r.addClass("card-opening"),r.trigger("card:open"),n.emit("cardOpen",r[0]),f.css({width:"".concat(w,"px"),height:"".concat(k,"px")}).transform("translate3d(".concat(n.rtl?S+W:-S-W,"px, 0px, 0) scale(").concat(1/C,", ").concat(1/T,")")),r.transform("translate3d(".concat(n.rtl?-W:W,"px, ").concat(G,"px, 0) scale(").concat(C,", ").concat(T,")")),c.animate?r.transitionEnd((function(){J()})):J(),r[0].detachEventHandlers=function(){n.off("resize",X),P.touch&&c.swipeToClose&&(n.off("touchstart:passive",Q),n.off("touchmove:active",Z),n.off("touchend:passive",ee))},n.on("resize",X),P.touch&&c.swipeToClose&&(n.on("touchstart:passive",Q),n.on("touchmove:active",Z),n.on("touchend:passive",ee))}}}function K(){i=!0}function J(){o.addClass("page-with-card-opened"),n.device.ios&&u.length&&(u.css("height","".concat(u[0].offsetHeight+1,"px")),setTimeout((function(){u.css("height","")}))),r.addClass("card-opened"),r.removeClass("card-opening"),r.trigger("card:opened"),n.emit("cardOpened",r[0],o[0])}function X(){if(r.removeClass("card-transitioning"),v=r[0].offsetWidth,y=r[0].offsetHeight,b=o[0].offsetWidth,_=o[0].offsetHeight,w=p[0].offsetWidth||b,k=p[0].offsetHeight||_,m=0,s&&!c.hideStatusbarOnOpen&&k===_&&(m=parseInt(s.css("--f7-safe-area-top"),10),Number.isNaN(m)&&(m=0)),m&&(k-=m),C=w/v,T=k/y,r.transform("translate3d(0px, 0px, 0) scale(1)"),x=r.offset(),M=o.offset(),m&&(M.top+=m/2),x.left-=M.left,x.top-=M.top,S=x.left-(b-w)/2,n.rtl&&(S-=r[0].scrollLeft),E=x.top-(_-k)/2,L=w-v-S,q=k-y-E,n.rtl){var e=[L,S];S=e[0],L=e[1]}W=(L-S)/2,G=(q-E)/2,r.transform("translate3d(".concat(n.rtl?-W:W,"px, ").concat(G,"px, 0) scale(").concat(C,", ").concat(T,")")),f.css({width:"".concat(w,"px"),height:"".concat(k,"px")}).transform("translate3d(".concat(n.rtl?S+W:-S-W,"px, 0px, 0) scale(").concat(1/C,", ").concat(1/T,")"))}function Q(e){g(e.target).closest(r).length&&r.hasClass("card-opened")&&(V=r.find(c.scrollableEl),I=V[0]&&V[0]!==f[0]&&!V[0].contains(e.target)?0:V.scrollTop(),D=!0,R=e.targetTouches[0].pageX,j=e.targetTouches[0].pageY,F=void 0,U=!1,z=!1)}function Z(e){if(D){if(B=e.targetTouches[0].pageX,Y=e.targetTouches[0].pageY,void 0===F&&(F=!!(F||Math.abs(Y-j)>Math.abs(B-R))),z||U||(!F&&e.targetTouches[0].clientX<=50?z=!0:U=!0),!z&&!U||U&&0!==I)return D=!0,void(N=!0);N||r.removeClass("card-transitioning"),N=!0,((H=U?Math.max((Y-j)/150,0):Math.max((B-R)/(v/2),0))>0&&U||z)&&(U&&n.device.ios&&V[0]===f[0]&&(V.css("-webkit-overflow-scrolling","auto"),V.scrollTop(0)),e.preventDefault()),H>1&&(H=Math.pow(H,.3)),H>(U?1.3:1.1)?(D=!1,N=!1,n.card.close(r)):r.transform("translate3d(".concat(n.rtl?-W:W,"px, ").concat(G,"px, 0) scale(").concat(C*(1-.2*H),", ").concat(T*(1-.2*H),")"))}}function ee(){D&&N&&(D=!1,N=!1,n.device.ios&&V.css("-webkit-overflow-scrolling",""),H>=.8?n.card.close(r):r.addClass("card-transitioning").transform("translate3d(".concat(n.rtl?-W:W,"px, ").concat(G,"px, 0) scale(").concat(C,", ").concat(T,")")))}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable.card-opened",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=g(e).eq(0);if(r&&r.length&&r.hasClass("card-opened")&&!r.hasClass("card-opening")&&!r.hasClass("card-closing")){var i=r.children(".card-content"),o=r.parents(".page-content"),a=r.parents(".page").eq(0);if(a.length){var s,l,c,u=Object.assign({animate:t},n.params.card,r.dataset()),d=r.find(u.scrollableEl);r.attr("data-backdrop-el")&&(c=g(r.attr("data-backdrop-el"))),u.backdrop&&(c=r.parents(".page-content").find(".card-backdrop")),u.hideNavbarOnOpen&&((s=a.children(".navbar")).length||a[0].f7Page&&(s=a[0].f7Page.$navbarEl),s&&s.length&&!r[0].f7KeepNavbarOnClose&&n.navbar.show(s,u.animate)),u.hideToolbarOnOpen&&((l=a.children(".toolbar")).length||(l=a.parents(".view").children(".toolbar")),l.length||(l=a.parents(".views").children(".toolbar")),l&&l.length&&!r[0].f7KeepToolbarOnClose&&n.toolbar.show(l,u.animate)),a.removeClass("page-with-card-opened"),n.device.ios&&o.length&&(o.css("height","".concat(o[0].offsetHeight+1,"px")),setTimeout((function(){o.css("height","")}))),c&&c.length&&c.removeClass("card-backdrop-in").addClass("card-backdrop-out"),r.removeClass("card-opened card-transitioning"),u.animate?r.addClass("card-closing"):r.addClass("card-no-transition"),r.transform(""),r.trigger("card:close"),n.emit("cardClose",r[0],a[0]);var h=r.hasClass("card-expandable-animate-width");h&&i.css({width:"",height:""}),i.transform("").scrollTop(0,t?300:0),d.length&&d[0]!==i[0]&&d.scrollTop(0,t?300:0),t?i.transitionEnd((function(){f()})):f(),r[0].detachEventHandlers&&(r[0].detachEventHandlers(),delete r[0].detachEventHandlers)}}function f(){h||i.css({width:"",height:""}),r.removeClass("card-closing card-no-transition"),r.trigger("card:closed"),r.find(".card-expandable-size").remove(),n.emit("cardClosed",r[0],a[0])}},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".card-expandable",t=arguments.length>1?arguments[1]:void 0,n=this,r=g(e).eq(0);r.length&&(r.hasClass("card-opened")?n.card.close(r,t):n.card.open(r,t))}},Ki={name:"card",params:{card:{hideNavbarOnOpen:!0,hideStatusbarOnOpen:!0,hideToolbarOnOpen:!0,scrollableEl:".card-content",swipeToClose:!0,closeByBackdropClick:!0,backdrop:!0}},create:function(){$.extend(this,{card:{open:Gi.open.bind(this),close:Gi.close.bind(this),toggle:Gi.toggle.bind(this)}})},on:{pageBeforeIn:function(e){if(this.params.card.hideNavbarOnOpen&&e.navbarEl&&e.$el.find(".card-opened.card-expandable").length&&this.navbar.hide(e.navbarEl,!0,this.params.card.hideStatusbarOnOpen),this.params.card.hideToolbarOnOpen&&e.$el.find(".card-opened.card-expandable").length){var t=e.$el.children(".toolbar");t.length||(t=e.$el.parents(".view").children(".toolbar")),t.length||(t=e.$el.parents(".views").children(".toolbar")),t&&t.length&&this.toolbar.hide(t)}}},clicks:{".card-close":function(e,t){this.card.close(t.card,t.animate)},".card-open":function(e,t){this.card.open(t.card,t.animate)},".card-expandable":function(e,t,n){e.hasClass("card-opened")||e.hasClass("card-opening")||e.hasClass("card-closing")||g(n.target).closest(".card-prevent-open, .card-close").length||this.card.open(e)},".card-backdrop-in":function(){var e=!1;this.params.card.closeByBackdropClick&&(e=!0);var t=g(".card-opened");t.length&&("true"===t.attr("data-close-by-backdrop-click")?e=!0:"false"===t.attr("data-close-by-backdrop-click")&&(e=!1),e&&this.card.close(t))}}},Ji={store:function(e,t){var n=e,r=g(e);r.length&&r.is("form")&&r.attr("id")&&(n=r.attr("id")),this.form.data["form-".concat(n)]=t,s.localStorage["f7form-".concat(n)]=JSON.stringify(t)},get:function(e){var t=e,n=g(e);return n.length&&n.is("form")&&n.attr("id")&&(t=n.attr("id")),s.localStorage["f7form-".concat(t)]?JSON.parse(s.localStorage["f7form-".concat(t)]):this.form.data["form-".concat(t)]?this.form.data["form-".concat(t)]:void 0},remove:function(e){var t=e,n=g(e);n.length&&n.is("form")&&n.attr("id")&&(t=n.attr("id")),this.form.data["form-".concat(t)]&&(this.form.data["form-".concat(t)]="",delete this.form.data["form-".concat(t)]),s.localStorage["f7form-".concat(t)]&&(s.localStorage["f7form-".concat(t)]="",s.localStorage.removeItem("f7form-".concat(t)))}},Xi={init:function(e){var t=this,n=g(e),r=n.attr("id");if(r){var i=t.form.getFormData(r);i&&t.form.fillFromData(n,i),n.on("change submit",(function(){var e=t.form.convertToData(n);e&&(t.form.storeFormData(r,e),n.trigger("form:storedata",e),t.emit("formStoreData",n[0],e))}))}},destroy:function(e){g(e).off("change submit")}};function Qi(e){var t=g(e).eq(0);if(0!==t.length){var n={},r=["submit","image","button","file"],i=[];return t.find("input, select, textarea").each((function(e,o){var a=g(o);if(!a.hasClass("ignore-store-data")&&!a.hasClass("no-store-data")){var s=a.attr("name"),l=a.attr("type"),c=o.nodeName.toLowerCase();if(!(r.indexOf(l)>=0)&&!(i.indexOf(s)>=0)&&s)if("select"===c&&a.prop("multiple"))i.push(s),n[s]=[],t.find('select[name="'.concat(s,'"] option')).each((function(e,t){t.selected&&n[s].push(t.value)}));else switch(l){case"checkbox":i.push(s),n[s]=[],t.find('input[name="'.concat(s,'"]')).each((function(e,t){t.checked&&n[s].push(t.value)}));break;case"radio":i.push(s),t.find('input[name="'.concat(s,'"]')).each((function(e,t){t.checked&&(n[s]=t.value)}));break;default:n[s]=a.val()}}})),t.trigger("form:todata",n),this.emit("formToData",t[0],n),n}}function Zi(e,t){var n=g(e).eq(0);if(n.length){var r=t,i=n.attr("id");if(!r&&i&&(r=this.form.getFormData(i)),r){var o=["submit","image","button","file"],a=[];n.find("input, select, textarea").each((function(e,t){var i=g(t);if(!i.hasClass("ignore-store-data")&&!i.hasClass("no-store-data")){var s=i.attr("name"),l=i.attr("type"),c=t.nodeName.toLowerCase();if(void 0!==r[s]&&null!==r[s]&&!(o.indexOf(l)>=0)&&!(a.indexOf(s)>=0)&&s){if("select"===c&&i.prop("multiple"))a.push(s),n.find('select[name="'.concat(s,'"] option')).each((function(e,t){var n=t;r[s].indexOf(t.value)>=0?n.selected=!0:n.selected=!1}));else switch(l){case"checkbox":a.push(s),n.find('input[name="'.concat(s,'"]')).each((function(e,t){var n=t;r[s].indexOf(t.value)>=0?n.checked=!0:n.checked=!1}));break;case"radio":a.push(s),n.find('input[name="'.concat(s,'"]')).each((function(e,t){var n=t;r[s]===t.value?n.checked=!0:n.checked=!1}));break;default:i.val(r[s])}"select"!==c&&"input"!==c&&"textarea"!==c||i.trigger("change","fromdata")}}})),n.trigger("form:fromdata",r),this.emit("formFromData",n[0],r)}}}function eo(){var e=this;g(a).on("submit change","form.form-ajax-submit, form.form-ajax-submit-onchange",(function(t,n){var r=g(this);if(("change"!==t.type||r.hasClass("form-ajax-submit-onchange"))&&("submit"===t.type&&t.preventDefault(),"change"!==t.type||"fromdata"!==n)){var i,o=(r.attr("method")||"GET").toUpperCase(),a=r.prop("enctype")||r.attr("enctype"),l=r.attr("action");if(l)i="POST"===o?"application/x-www-form-urlencoded"===a?e.form.convertToData(r[0]):new s.FormData(r[0]):$.serializeObject(e.form.convertToData(r[0])),e.request({method:o,url:l,contentType:a,data:i,beforeSend:function(t){r.trigger("formajax:beforesend",{data:i,xhr:t}),e.emit("formAjaxBeforeSend",r[0],i,t)},error:function(t){r.trigger("formajax:error",{data:i,xhr:t}),e.emit("formAjaxError",r[0],i,t)},complete:function(t){r.trigger("formajax:complete",{data:i,xhr:t}),e.emit("formAjaxComplete",r[0],i,t)},success:function(t,n,o){r.trigger("formajax:success",{data:i,xhr:o}),e.emit("formAjaxSuccess",r[0],i,o)}})}}))}var to={name:"form",create:function(){$.extend(this,{form:{data:{},storeFormData:Ji.store.bind(this),getFormData:Ji.get.bind(this),removeFormData:Ji.remove.bind(this),convertToData:Qi.bind(this),fillFromData:Zi.bind(this),storage:{init:Xi.init.bind(this),destroy:Xi.destroy.bind(this)}}})},on:{init:function(){eo.call(this)},tabBeforeRemove:function(e){var t=this;g(e).find(".form-store-data").each((function(e,n){t.form.storage.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".form-store-data").each((function(e,n){t.form.storage.init(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".form-store-data").each((function(e,n){t.form.storage.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".form-store-data").each((function(e,n){t.form.storage.init(n)}))}}},no={ignoreTypes:["checkbox","button","submit","range","radio","image"],createTextareaResizableShadow:function(){var e=g(a.createElement("textarea"));e.addClass("textarea-resizable-shadow"),e.prop({disabled:!0,readonly:!0}),no.textareaResizableShadow=e},textareaResizableShadow:void 0,resizeTextarea:function(e){var t=g(e);no.textareaResizableShadow||no.createTextareaResizableShadow();var n=no.textareaResizableShadow;if(t.length&&t.hasClass("resizable")){0===no.textareaResizableShadow.parents().length&&this.root.append(n);var r=s.getComputedStyle(t[0]);"padding-top padding-bottom padding-left padding-right margin-left margin-right margin-top margin-bottom width font-size font-family font-style font-weight line-height font-variant text-transform letter-spacing border box-sizing display".split(" ").forEach((function(e){var t=r[e];"font-size line-height letter-spacing width".split(" ").indexOf(e)>=0&&(t=t.replace(",",".")),n.css(e,t)}));var i=t[0].clientHeight;n.val("");var o=n[0].scrollHeight;n.val(t.val()),n.css("height",0);var a=n[0].scrollHeight;i!==a&&(a>o?t.css("height","".concat(a,"px")):a<i&&t.css("height",""),(a>o||a<i)&&(t.trigger("textarea:resize",{initialHeight:o,currentHeight:i,scrollHeight:a}),this.emit("textareaResize",{initialHeight:o,currentHeight:i,scrollHeight:a})))}},validate:function(e){var t=g(e);if(t.length){var n=t.parents(".item-input"),r=t.parents(".input"),i=t[0].validity,o=t.dataset().errorMessage||t[0].validationMessage||"";if(i)if(i.valid)n.removeClass("item-input-invalid item-input-with-error-message"),r.removeClass("input-invalid input-with-error-message"),t.removeClass("input-invalid");else{var a=t.nextAll(".item-input-error-message, .input-error-message");o&&(0===a.length&&(a=g('<div class="'.concat(r.length?"input-error-message":"item-input-error-message",'"></div>'))).insertAfter(t),a.text(o)),a.length>0&&(n.addClass("item-input-with-error-message"),r.addClass("input-with-error-message")),n.addClass("item-input-invalid"),r.addClass("input-invalid"),t.addClass("input-invalid")}}},validateInputs:function(e){var t=this;g(e).find("input, textarea, select").each((function(e,n){t.input.validate(n)}))},focus:function(e){var t=g(e),n=t.attr("type");no.ignoreTypes.indexOf(n)>=0||(t.parents(".item-input").addClass("item-input-focused"),t.parents(".input").addClass("input-focused"),t.addClass("input-focused"))},blur:function(e){var t=g(e);t.parents(".item-input").removeClass("item-input-focused"),t.parents(".input").removeClass("input-focused"),t.removeClass("input-focused")},checkEmptyState:function(e){var t=g(e);if(t.is("input, select, textarea, .item-input [contenteditable]")||(t=t.find("input, select, textarea, .item-input [contenteditable]").eq(0)),t.length){var n;n=t[0].hasAttribute("contenteditable")?t.find(".text-editor-placeholder").length?"":t.html():t.val();var r=t.parents(".item-input"),i=t.parents(".input");n&&"string"==typeof n&&""!==n.trim()||Array.isArray(n)&&n.length>0?(r.addClass("item-input-with-value"),i.addClass("input-with-value"),t.addClass("input-with-value"),t.trigger("input:notempty"),this.emit("inputNotEmpty",t[0])):(r.removeClass("item-input-with-value"),i.removeClass("input-with-value"),t.removeClass("input-with-value"),t.trigger("input:empty"),this.emit("inputEmpty",t[0]))}},scrollIntoView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=g(e),o=i.parents(".page-content, .panel, .card-expandable .card-content").eq(0);if(!o.length)return!1;var a=o[0].offsetHeight,s=o[0].scrollTop,l=parseInt(o.css("padding-top"),10),c=parseInt(o.css("padding-bottom"),10),u=o.offset().top-s,d=i.offset().top-u,h=i[0].offsetHeight,f=d+s-l,p=d+s-a+c+h,m=f+(p-f)/2;return s>f?(o.scrollTop(n?m:f,t),!0):s<p?(o.scrollTop(n?m:p,t),!0):(r&&o.scrollTop(n?m:p,t),!1)},init:function(){var e=this;no.createTextareaResizableShadow(),g(a).on("click",".input-clear-button",(function(){var t=g(this).siblings("input, textarea").eq(0),n=t.val();t.val("").trigger("input change").focus().trigger("input:clear",n),e.emit("inputClear",n)})),g(a).on("change input","input, textarea, select, .item-input [contenteditable]",(function(){var t=g(this),n=t.attr("type"),r=t[0].nodeName.toLowerCase(),i=t[0].hasAttribute("contenteditable");no.ignoreTypes.indexOf(n)>=0||(e.input.checkEmptyState(t),i||(null!==t.attr("data-validate-on-blur")||!t.dataset().validate&&null===t.attr("validate")||e.input.validate(t),"textarea"===r&&t.hasClass("resizable")&&e.input.resizeTextarea(t)))}),!0),g(a).on("focus","input, textarea, select, .item-input [contenteditable]",(function(){var t=this;e.params.input.scrollIntoViewOnFocus&&(O.android?g(s).once("resize",(function(){a&&a.activeElement===t&&e.input.scrollIntoView(t,e.params.input.scrollIntoViewDuration,e.params.input.scrollIntoViewCentered,e.params.input.scrollIntoViewAlways)})):e.input.scrollIntoView(t,e.params.input.scrollIntoViewDuration,e.params.input.scrollIntoViewCentered,e.params.input.scrollIntoViewAlways)),e.input.focus(t)}),!0),g(a).on("blur","input, textarea, select, .item-input [contenteditable]",(function(){var t=g(this),n=t[0].nodeName.toLowerCase();e.input.blur(t),(t.dataset().validate||null!==t.attr("validate")||null!==t.attr("data-validate-on-blur"))&&e.input.validate(t),"textarea"===n&&t.hasClass("resizable")&&no.textareaResizableShadow&&no.textareaResizableShadow.remove()}),!0),g(a).on("invalid","input, textarea, select",(function(t){var n=g(this);null!==n.attr("data-validate-on-blur")||!n.dataset().validate&&null===n.attr("validate")||(t.preventDefault(),e.input.validate(n))}),!0)}},ro={name:"input",params:{input:{scrollIntoViewOnFocus:O.android,scrollIntoViewCentered:!1,scrollIntoViewDuration:0,scrollIntoViewAlways:!1}},create:function(){$.extend(this,{input:{scrollIntoView:no.scrollIntoView.bind(this),focus:no.focus.bind(this),blur:no.blur.bind(this),validate:no.validate.bind(this),validateInputs:no.validateInputs.bind(this),checkEmptyState:no.checkEmptyState.bind(this),resizeTextarea:no.resizeTextarea.bind(this),init:no.init.bind(this)}})},on:{init:function(){this.input.init()},tabMounted:function(e){var t=this,n=g(e);n.find(".item-input, .input").each((function(e,n){g(n).find("input, select, textarea, [contenteditable]").each((function(e,n){var r=g(n);no.ignoreTypes.indexOf(r.attr("type"))>=0||t.input.checkEmptyState(r)}))})),n.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))},pageInit:function(e){var t=this,n=e.$el;n.find(".item-input, .input").each((function(e,n){g(n).find("input, select, textarea, [contenteditable]").each((function(e,n){var r=g(n);no.ignoreTypes.indexOf(r.attr("type"))>=0||t.input.checkEmptyState(r)}))})),n.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))},"panelBreakpoint panelCollapsedBreakpoint panelResize panelOpen panelSwipeOpen resize viewMasterDetailBreakpoint":function(e){var t=this;e&&e.$el?e.$el.find("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)})):g("textarea.resizable").each((function(e,n){t.input.resizeTextarea(n)}))}}};function io(e){return(io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,so(r.key),r)}}function so(e){var t=function(e,t){if("object"!=io(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=io(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==io(t)?t:t+""}function lo(e,t){if(t&&("object"==io(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uo(e)}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ho(e,t){return(ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fo=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oo(this,t);var i=uo(n=lo(this,co(t).call(this,r,[e]))),o={};i.useModulesParams(o),i.params=$.extend(o,r);var a=i.params.el;if(!a)return lo(n,i);var s=g(a);if(0===s.length)return lo(n,i);if(s[0].f7Toggle)return lo(n,s[0].f7Toggle);var l,c=s.children('input[type="checkbox"]');$.extend(i,{app:e,$el:s,el:s[0],$inputEl:c,inputEl:c[0],disabled:s.hasClass("disabled")||c.hasClass("disabled")||c.attr("disabled")||c[0].disabled}),Object.defineProperty(i,"checked",{enumerable:!0,configurable:!0,set:function(e){i&&void 0!==i.$inputEl&&i.checked!==e&&(c[0].checked=e,i.$inputEl.trigger("change"))},get:function(){return c[0].checked}}),s[0].f7Toggle=i;var u,d,h,f,p,m={};function v(e){l||i.disabled||(m.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,m.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,d=0,l=!0,u=void 0,f=$.now(),p=i.checked,h=s[0].offsetWidth,$.nextTick((function(){l&&s.addClass("toggle-active-state")})))}function y(t){if(l&&!i.disabled){var n,r="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,o="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,a=e.rtl?-1:1;if(void 0===u&&(u=!!(u||Math.abs(o-m.y)>Math.abs(r-m.x))),u)l=!1;else t.preventDefault(),(d=r-m.x)*a<0&&Math.abs(d)>h/3&&p&&(n=!0),d*a>0&&Math.abs(d)>h/3&&!p&&(n=!0),n&&(m.x=r,i.checked=!p,p=!p)}}function b(){if(!l||i.disabled)return u&&s.removeClass("toggle-active-state"),void(l=!1);var t,n=e.rtl?-1:1;l=!1,s.removeClass("toggle-active-state"),$.now()-f<300&&(d*n<0&&p&&(t=!0),d*n>0&&!p&&(t=!0),t&&(i.checked=!p))}function _(){i.$el.trigger("toggle:change"),i.emit("local::change toggleChange",i)}return i.attachEvents=function(){var t=!!P.passiveListener&&{passive:!0};s.on(e.touchEvents.start,v,t),e.on("touchmove",y),e.on("touchend:passive",b),i.$inputEl.on("change",_)},i.detachEvents=function(){var t=!!P.passiveListener&&{passive:!0};s.off(e.touchEvents.start,v,t),e.off("touchmove",y),e.off("touchend:passive",b),i.$inputEl.off("change",_)},i.useModules(),i.init(),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ho(e,t)}(t,e),n=t,(r=[{key:"toggle",value:function(){this.checked=!this.checked}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("toggle:beforedestroy"),e.emit("local::beforeDestroy toggleBeforeDestroy",e),delete e.$el[0].f7Toggle,e.detachEvents(),$.deleteProps(e),e=null}}])&&ao(n.prototype,r),i&&ao(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),po={name:"toggle",create:function(){this.toggle=X({defaultSelector:".toggle",constructor:fo,app:this,domProp:"f7Toggle"})},static:{Toggle:fo},on:{tabMounted:function(e){var t=this;g(e).find(".toggle-init").each((function(e,n){return t.toggle.create({el:n})}))},tabBeforeRemove:function(e){g(e).find(".toggle-init").each((function(e,t){t.f7Toggle&&t.f7Toggle.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".toggle-init").each((function(e,n){return t.toggle.create({el:n})}))},pageBeforeRemove:function(e){e.$el.find(".toggle-init").each((function(e,t){t.f7Toggle&&t.f7Toggle.destroy()}))}},vnode:{"toggle-init":{insert:function(e){var t=e.elm;this.toggle.create({el:t})},destroy:function(e){var t=e.elm;t.f7Toggle&&t.f7Toggle.destroy()}}}};function mo(e){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vo(e,t,n){return(t=yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yo(r.key),r)}}function yo(e){var t=function(e,t){if("object"!=mo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mo(t)?t:t+""}function bo(e,t){if(t&&("object"==mo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wo(e)}function _o(e){return(_o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ko(e,t){return(ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var So=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=wo(r=bo(this,_o(t).call(this,n,[e]))),o={el:null,inputEl:null,dual:!1,step:1,label:!1,min:0,max:100,value:0,draggableBar:!0,vertical:!1,verticalReversed:!1,formatLabel:null,scale:!1,scaleSteps:5,scaleSubSteps:0,formatScaleLabel:null,limitKnobPosition:"ios"===e.theme};i.useModulesParams(o),i.params=$.extend(o,n);var a=i.params.el;if(!a)return bo(r,i);var s=g(a);if(0===s.length)return bo(r,i);if(s[0].f7Range)return bo(r,s[0].f7Range);var l,c=s.dataset();"step min max value scaleSteps scaleSubSteps".split(" ").forEach((function(e){void 0===n[e]&&void 0!==c[e]&&(i.params[e]=parseFloat(c[e]))})),"dual label vertical verticalReversed scale".split(" ").forEach((function(e){void 0===n[e]&&void 0!==c[e]&&(i.params[e]=c[e])})),i.params.value||(void 0!==c.value&&(i.params.value=c.value),void 0!==c.valueLeft&&void 0!==c.valueRight&&(i.params.value=[parseFloat(c.valueLeft),parseFloat(c.valueRight)])),i.params.dual||(i.params.inputEl?l=g(i.params.inputEl):s.find('input[type="range"]').length&&(l=s.find('input[type="range"]').eq(0)));var u=i.params,d=u.dual,h=u.step,f=u.label,p=u.min,m=u.max,v=u.value,y=u.vertical,b=u.verticalReversed,_=u.scale,w=u.scaleSteps,k=u.scaleSubSteps,S=u.limitKnobPosition;$.extend(i,{app:e,$el:s,el:s[0],$inputEl:l,inputEl:l?l[0]:void 0,dual:d,step:h,label:f,min:p,max:m,value:v,previousValue:v,vertical:y,verticalReversed:b,scale:_,scaleSteps:w,scaleSubSteps:k,limitKnobPosition:S}),l&&("step min max".split(" ").forEach((function(e){!n[e]&&l.attr(e)&&(i.params[e]=parseFloat(l.attr(e)),i[e]=parseFloat(l.attr(e)))})),void 0!==l.val()&&(i.params.value=parseFloat(l.val()),i.value=parseFloat(l.val()))),i.dual&&s.addClass("range-slider-dual"),i.label&&s.addClass("range-slider-label"),i.vertical?(s.addClass("range-slider-vertical"),i.verticalReversed&&s.addClass("range-slider-vertical-reversed")):s.addClass("range-slider-horizontal");var E=g('<div class="range-bar"></div>'),C=g('<div class="range-bar-active"></div>');E.append(C);var T='\n      <div class="range-knob-wrap">\n        <div class="range-knob"></div>\n        '.concat(i.label?'<div class="range-knob-label"></div>':"","\n      </div>\n    "),x=[g(T)];i.dual&&x.push(g(T)),s.append(E),x.forEach((function(e){s.append(e)}));var M,O,L=[];i.label&&(L.push(x[0].find(".range-knob-label")),i.dual&&L.push(x[1].find(".range-knob-label"))),i.scale&&i.scaleSteps>1&&(M=g('\n        <div class="range-scale">\n          '.concat(i.renderScale(),"\n        </div>\n      ")),s.append(M)),$.extend(i,{knobs:x,labels:L,$barEl:E,$barActiveEl:C,$scaleEl:M}),s[0].f7Range=i;var A,I,D,N,R,j,B,Y,F,H,U,z={};function V(){B=!0}function q(e){if(!O&&(i.params.draggableBar||0!==g(e.target).closest(".range-knob").length)){var t;B=!1,z.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,z.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,"touchstart"===e.type&&(Y=e.targetTouches[0].identifier),O=!0,A=void 0,I=s.offset(),D=I.left,N=I.top,i.vertical?(t=(z.y-N)/i.rangeHeight,i.verticalReversed||(t=1-t)):t=i.app.rtl?(D+i.rangeWidth-z.x)/i.rangeWidth:(z.x-D)/i.rangeWidth;var n=t*(i.max-i.min)+i.min;i.dual?Math.abs(i.value[0]-n)<Math.abs(i.value[1]-n)?(j=0,R=i.knobs[0],n=[n,i.value[1]]):(j=1,R=i.knobs[1],n=[i.value[0],n]):(R=i.knobs[0],n=t*(i.max-i.min)+i.min),$.nextTick((function(){O&&R.addClass("range-knob-active-state")}),70),i.on("change",V),i.setValue(n,!0)}}function W(e){if(O){var t,n;if("touchmove"===e.type)for(var r=0;r<e.targetTouches.length;r+=1)e.targetTouches[r].identifier===Y&&(t=e.targetTouches[r].pageX,n=e.targetTouches[r].pageY);else t=e.pageX,n=e.pageY;if(void 0!==t||void 0!==n)if(void 0!==A||i.vertical||(A=!!(A||Math.abs(n-z.y)>Math.abs(t-z.x))),A)O=!1;else{var o;e.preventDefault(),i.vertical?(o=(n-N)/i.rangeHeight,i.verticalReversed||(o=1-o)):o=i.app.rtl?(D+i.rangeWidth-t)/i.rangeWidth:(t-D)/i.rangeWidth;var a,s,l=o*(i.max-i.min)+i.min;if(i.dual)0===j?(a=l)>(s=i.value[1])&&(s=a):(s=l)<(a=i.value[0])&&(a=s),l=[a,s];i.setValue(l,!0)}}}function G(e){if("touchend"===e.type){for(var t,n=0;n<e.changedTouches.length;n+=1)e.changedTouches[n].identifier===Y&&(t=!0);if(!t)return}if(!O)return A&&R.removeClass("range-knob-active-state"),void(O=!1);i.off("change",V),O=!1,R.removeClass("range-knob-active-state"),B&&i.$inputEl&&!i.dual&&i.$inputEl.trigger("change"),B=!1,void 0!==i.previousValue&&(i.dual&&(i.previousValue[0]!==i.value[0]||i.previousValue[1]!==i.value[1])||!i.dual&&i.previousValue!==i.value)&&(i.$el.trigger("range:changed",i.value),i.emit("local::changed rangeChanged",i,i.value))}function K(){i.calcSize(),i.layout()}return i.attachEvents=function(){var t=!!P.passiveListener&&{passive:!0};i.$el.on(e.touchEvents.start,q,t),e.on("touchmove",W),e.on("touchend:passive",G),e.on("tabShow",K),e.on("resize",K),(F=i.$el.parents(".sheet-modal, .actions-modal, .popup, .popover, .login-screen, .dialog, .toast")).on("modal:open",K),(H=i.$el.parents(".panel")).on("panel:open",K),(U=i.$el.parents(".page").eq(0)).on("page:reinit",K)},i.detachEvents=function(){var t=!!P.passiveListener&&{passive:!0};i.$el.off(e.touchEvents.start,q,t),e.off("touchmove",W),e.off("touchend:passive",G),e.off("tabShow",K),e.off("resize",K),F&&F.off("modal:open",K),H&&H.off("panel:open",K),U&&U.off("page:reinit",K),F=null,H=null,U=null},i.useModules(),i.init(),bo(r,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(t,e),n=t,(r=[{key:"calcSize",value:function(){if(this.vertical){var e=this.$el.outerHeight();if(0===e)return;this.rangeHeight=e,this.knobHeight=this.knobs[0].outerHeight()}else{var t=this.$el.outerWidth();if(0===t)return;this.rangeWidth=t,this.knobWidth=this.knobs[0].outerWidth()}}},{key:"layout",value:function(){var e=this,t=e.app,n=e.knobWidth,r=e.knobHeight,i=e.rangeWidth,o=e.rangeHeight,a=e.min,s=e.max,l=e.knobs,c=e.$barActiveEl,u=e.value,d=e.label,h=e.labels,f=e.vertical,p=e.verticalReversed,m=e.limitKnobPosition,v=f?r:n,g=f?o:i,y=f?p?"top":"bottom":t.rtl?"right":"left";if(e.dual){var b,_=[(u[0]-a)/(s-a),(u[1]-a)/(s-a)];c.css((vo(b={},y,"".concat(100*_[0],"%")),vo(b,f?"height":"width","".concat(100*(_[1]-_[0]),"%")),b)),l.forEach((function(t,n){var r=g*_[n];if(m){var i=g*_[n]-v/2;i<0&&(r=v/2),i+v>g&&(r=g-v/2)}t.css(y,"".concat(r,"px")),d&&h[n].text(e.formatLabel(u[n],h[n][0]))}))}else{var w=(u-a)/(s-a);c.css(f?"height":"width","".concat(100*w,"%"));var k=g*w;if(m){var S=g*w-v/2;S<0&&(k=v/2),S+v>g&&(k=g-v/2)}l[0].css(y,"".concat(k,"px")),d&&h[0].text(e.formatLabel(u,h[0][0]))}e.dual&&u.indexOf(a)>=0||!e.dual&&u===a?e.$el.addClass("range-slider-min"):e.$el.removeClass("range-slider-min"),e.dual&&u.indexOf(s)>=0||!e.dual&&u===s?e.$el.addClass("range-slider-max"):e.$el.removeClass("range-slider-max")}},{key:"setValue",value:function(e,t){var n,r,i=this,o=i.step,a=i.min,s=i.max;if(i.dual){r=[i.value[0],i.value[1]];var l=e;if(Array.isArray(l)||(l=[e,e]),e[0]>e[1]&&(l=[l[0],l[0]]),(l=l.map((function(e){return Math.max(Math.min(Math.round(e/o)*o,s),a)})))[0]===i.value[0]&&l[1]===i.value[1])return i;l.forEach((function(e,t){i.value[t]=e})),n=r[0]!==l[0]||r[1]!==l[1],i.layout()}else{r=i.value;var c=Math.max(Math.min(Math.round(e/o)*o,s),a);i.value=c,i.layout(),n=r!==c}return n&&(i.previousValue=r),n?(i.$el.trigger("range:change",i.value),i.$inputEl&&!i.dual&&(i.$inputEl.val(i.value),t?i.$inputEl.trigger("input"):i.$inputEl.trigger("input change")),t||(i.$el.trigger("range:changed",i.value),i.emit("local::changed rangeChanged",i,i.value)),i.emit("local::change rangeChange",i,i.value),i):i}},{key:"getValue",value:function(){return this.value}},{key:"formatLabel",value:function(e,t){return this.params.formatLabel?this.params.formatLabel.call(this,e,t):e}},{key:"formatScaleLabel",value:function(e){return this.params.formatScaleLabel?this.params.formatScaleLabel.call(this,e):e}},{key:"renderScale",value:function(){var e=this,t=e.app,n=e.verticalReversed,r=e.vertical?n?"top":"bottom":t.rtl?"right":"left",i="";return Array.from({length:e.scaleSteps+1}).forEach((function(t,n){var o=(e.max-e.min)/e.scaleSteps,a=e.min+o*n,s=(a-e.min)/(e.max-e.min);i+='<div class="range-scale-step" style="'.concat(r,": ").concat(100*s,'%">').concat(e.formatScaleLabel(a),"</div>"),e.scaleSubSteps&&e.scaleSubSteps>1&&n<e.scaleSteps&&Array.from({length:e.scaleSubSteps-1}).forEach((function(t,n){var s=o/e.scaleSubSteps,l=(a+s*(n+1)-e.min)/(e.max-e.min);i+='<div class="range-scale-step range-scale-substep" style="'.concat(r,": ").concat(100*l,'%"></div>')}))})),i}},{key:"updateScale",value:function(){if(!this.scale||this.scaleSteps<2)return this.$scaleEl&&this.$scaleEl.remove(),void delete this.$scaleEl;this.$scaleEl||(this.$scaleEl=g('<div class="range-scale"></div>'),this.$el.append(this.$scaleEl)),this.$scaleEl.html(this.renderScale())}},{key:"init",value:function(){return this.calcSize(),this.layout(),this.attachEvents(),this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("range:beforedestroy"),e.emit("local::beforeDestroy rangeBeforeDestroy",e),delete e.$el[0].f7Range,e.detachEvents(),$.deleteProps(e),e=null}}])&&go(n.prototype,r),i&&go(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Eo={name:"range",create:function(){var e=this;e.range=$.extend(X({defaultSelector:".range-slider",constructor:So,app:e,domProp:"f7Range"}),{getValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".range-slider",n=e.range.get(t);if(n)return n.getValue()},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".range-slider",n=arguments.length>1?arguments[1]:void 0,r=e.range.get(t);if(r)return r.setValue(n)}})},static:{Range:So},on:{tabMounted:function(e){var t=this;g(e).find(".range-slider-init").each((function(e,n){return new So(t,{el:n})}))},tabBeforeRemove:function(e){g(e).find(".range-slider-init").each((function(e,t){t.f7Range&&t.f7Range.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".range-slider-init").each((function(e,n){return new So(t,{el:n})}))},pageBeforeRemove:function(e){e.$el.find(".range-slider-init").each((function(e,t){t.f7Range&&t.f7Range.destroy()}))}},vnode:{"range-slider-init":{insert:function(e){var t=e.elm;this.range.create({el:t})},destroy:function(e){var t=e.elm;t.f7Range&&t.f7Range.destroy()}}}};function Co(e){return(Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function To(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xo(r.key),r)}}function xo(e){var t=function(e,t){if("object"!=Co(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Co(t)?t:t+""}function Mo(e,t){if(t&&("object"==Co(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Po(e)}function $o(e){return($o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Po(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oo(e,t){return(Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Lo=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=Po(r=Mo(this,$o(t).call(this,n,[e]))),o={el:null,inputEl:null,valueEl:null,value:0,formatValue:null,step:1,min:0,max:100,watchInput:!0,autorepeat:!1,autorepeatDynamic:!1,wraps:!1,manualInputMode:!1,decimalPoint:4,buttonsEndInputMode:!0};i.useModulesParams(o),i.params=$.extend(o,n),i.params.value<i.params.min&&(i.params.value=i.params.min),i.params.value>i.params.max&&(i.params.value=i.params.max);var a=i.params.el;if(!a)return Mo(r,i);var s,l,c=g(a);if(0===c.length)return Mo(r,i);if(c[0].f7Stepper)return Mo(r,c[0].f7Stepper);if(i.params.inputEl?s=g(i.params.inputEl):c.find(".stepper-input-wrap").find("input, textarea").length&&(s=c.find(".stepper-input-wrap").find("input, textarea").eq(0)),s&&s.length){"step min max".split(" ").forEach((function(e){!n[e]&&s.attr(e)&&(i.params[e]=parseFloat(s.attr(e)))}));var u=parseInt(i.params.decimalPoint,10);Number.isNaN(u)?i.params.decimalPoint=0:i.params.decimalPoint=u;var d=parseFloat(s.val());void 0!==n.value||Number.isNaN(d)||!d&&0!==d||(i.params.value=d)}i.params.valueEl?l=g(i.params.valueEl):c.find(".stepper-value").length&&(l=c.find(".stepper-value").eq(0));var h=c.find(".stepper-button-plus"),f=c.find(".stepper-button-minus"),p=i.params,m=p.step,v=p.min,y=p.max,b=p.value,_=p.decimalPoint;$.extend(i,{app:e,$el:c,el:c[0],$buttonPlusEl:h,buttonPlusEl:h[0],$buttonMinusEl:f,buttonMinusEl:f[0],$inputEl:s,inputEl:s?s[0]:void 0,$valueEl:l,valueEl:l?l[0]:void 0,step:m,min:v,max:y,value:b,decimalPoint:_,typeModeChanged:!1}),c[0].f7Stepper=i;var w,k,S,E,C,T={},x=null,M=!1,P=!1;function O(e){w||(P||(g(e.target).closest(h).length?x="increment":g(e.target).closest(f).length&&(x="decrement"),x&&(T.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,T.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,w=!0,k=void 0,function e(t,n,r,i,o,a){clearTimeout(C),C=setTimeout((function(){1===t&&(S=!0,M=!0),clearInterval(E),a(),E=setInterval((function(){a()}),o),t<n&&e(t+1,n,r,i,o/2,a)}),1===t?r:i)}(1,i.params.autorepeatDynamic?4:1,500,1e3,300,(function(){i[x]()})))))}function L(e){if(w&&!P){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;void 0!==k||M||(k=!!(k||Math.abs(n-T.y)>Math.abs(t-T.x)));var r=Math.pow(Math.pow(t-T.x,2)+Math.pow(n-T.y,2),.5);(k||r>20)&&(w=!1,clearTimeout(C),clearInterval(E))}}function A(){clearTimeout(C),clearInterval(E),x=null,M=!1,w=!1}function I(){P?i.params.buttonsEndInputMode&&(P=!1,i.endTypeMode(!0)):S?S=!1:i.decrement(!0)}function D(){P?i.params.buttonsEndInputMode&&(P=!1,i.endTypeMode(!0)):S?S=!1:i.increment(!0)}function N(e){!e.target.readOnly&&i.params.manualInputMode&&(P=!0,"number"==typeof e.target.selectionStart&&(e.target.selectionStart=e.target.value.length,e.target.selectionEnd=e.target.value.length))}function R(e){13!==e.keyCode&&13!==e.which||(e.preventDefault(),P=!1,i.endTypeMode())}function j(){P=!1,i.endTypeMode(!0)}function B(e){P?i.typeValue(e.target.value):e.detail&&e.detail.sentByF7Stepper||i.setValue(e.target.value,!0)}return i.attachEvents=function(){f.on("click",I),h.on("click",D),i.params.watchInput&&s&&s.length&&(s.on("input",B),s.on("click",N),s.on("blur",j),s.on("keyup",R)),i.params.autorepeat&&(e.on("touchstart:passive",O),e.on("touchmove:active",L),e.on("touchend:passive",A))},i.detachEvents=function(){f.off("click",I),h.off("click",D),i.params.watchInput&&s&&s.length&&(s.off("input",B),s.off("click",N),s.off("blur",j),s.off("keyup",R))},i.useModules(),i.init(),Mo(r,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oo(e,t)}(t,e),n=t,(r=[{key:"minus",value:function(){return this.decrement()}},{key:"plus",value:function(){return this.increment()}},{key:"decrement",value:function(){return this.setValue(this.value-this.step,!1,!0)}},{key:"increment",value:function(){return this.setValue(this.value+this.step,!1,!0)}},{key:"setValue",value:function(e,t,n){var r=this.step,i=this.min,o=this.max,a=this.value,s=Math.round(e/r)*r;if(this.params.wraps&&n?(s>o&&(s=i),s<i&&(s=o)):s=Math.max(Math.min(s,o),i),Number.isNaN(s)&&(s=a),this.value=s,a===s&&!t)return this;this.$el.trigger("stepper:change",this.value);var l=this.formatValue(this.value);return this.$inputEl&&this.$inputEl.length&&(this.$inputEl.val(l),this.$inputEl.trigger("input change",{sentByF7Stepper:!0})),this.$valueEl&&this.$valueEl.length&&this.$valueEl.html(l),this.emit("local::change stepperChange",this,this.value),this}},{key:"endTypeMode",value:function(e){var t=this.min,n=this.max,r=parseFloat(this.value);if(Number.isNaN(r)&&(r=0),r=Math.max(Math.min(r,n),t),this.value=r,!this.typeModeChanged)return this.$inputEl&&this.$inputEl.length&&!e&&this.$inputEl.blur(),this;this.typeModeChanged=!1,this.$el.trigger("stepper:change",this.value);var i=this.formatValue(this.value);return this.$inputEl&&this.$inputEl.length&&(this.$inputEl.val(i),this.$inputEl.trigger("input change",{sentByF7Stepper:!0}),e||this.$inputEl.blur()),this.$valueEl&&this.$valueEl.length&&this.$valueEl.html(i),this.emit("local::change stepperChange",this,this.value),this}},{key:"typeValue",value:function(e){this.typeModeChanged=!0;var t=String(e);if(t.lastIndexOf(".")+1!==t.length&&t.lastIndexOf(",")+1!==t.length){var n=parseFloat(t.replace(",","."));if(0===n)return this.value=t.replace(",","."),this.$inputEl.val(this.value),this;if(Number.isNaN(n))return this.value=0,this.$inputEl.val(this.value),this;var r=Math.pow(10,this.params.decimalPoint);return n=Math.round(n*r).toFixed(this.params.decimalPoint+1)/r,this.value=parseFloat(String(n).replace(",",".")),this.$inputEl.val(this.value),this}return t.lastIndexOf(".")!==t.indexOf(".")||t.lastIndexOf(",")!==t.indexOf(",")?(t=t.slice(0,-1),this.value=t,this.$inputEl.val(this.value),this):(this.value=t,this.$inputEl.val(t),this)}},{key:"getValue",value:function(){return this.value}},{key:"formatValue",value:function(e){return this.params.formatValue?this.params.formatValue.call(this,e):e}},{key:"init",value:function(){if(this.attachEvents(),this.$valueEl&&this.$valueEl.length){var e=this.formatValue(this.value);this.$valueEl.html(e)}return this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("stepper:beforedestroy"),e.emit("local::beforeDestroy stepperBeforeDestroy",e),delete e.$el[0].f7Stepper,e.detachEvents(),$.deleteProps(e),e=null}}])&&To(n.prototype,r),i&&To(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Ao={name:"stepper",create:function(){var e=this;e.stepper=$.extend(X({defaultSelector:".stepper",constructor:Lo,app:e,domProp:"f7Stepper"}),{getValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".stepper",n=e.stepper.get(t);if(n)return n.getValue()},setValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".stepper",n=arguments.length>1?arguments[1]:void 0,r=e.stepper.get(t);if(r)return r.setValue(n)}})},static:{Stepper:Lo},on:{tabMounted:function(e){var t=this;g(e).find(".stepper-init").each((function(e,n){var r=g(n).dataset();t.stepper.create($.extend({el:n},r||{}))}))},tabBeforeRemove:function(e){g(e).find(".stepper-init").each((function(e,t){t.f7Stepper&&t.f7Stepper.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".stepper-init").each((function(e,n){var r=g(n).dataset();t.stepper.create($.extend({el:n},r||{}))}))},pageBeforeRemove:function(e){e.$el.find(".stepper-init").each((function(e,t){t.f7Stepper&&t.f7Stepper.destroy()}))}},vnode:{"stepper-init":{insert:function(e){var t=e.elm,n=g(t).dataset();this.stepper.create($.extend({el:t},n||{}))},destroy:function(e){var t=e.elm;t.f7Stepper&&t.f7Stepper.destroy()}}}};function Io(e){return(Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Do(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ro(r.key),r)}}function Ro(e){var t=function(e,t){if("object"!=Io(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Io(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Io(t)?t:t+""}function jo(e,t){if(t&&("object"==Io(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yo(e)}function Bo(e){return(Bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fo(e,t){return(Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ho=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Do(this,t);var i=Yo(n=jo(this,Bo(t).call(this,r,[e]))),o=$.extend({on:{}},e.params.smartSelect);void 0===o.searchbarDisableButton&&(o.searchbarDisableButton="aurora"!==e.theme),i.useModulesParams(o),i.params=$.extend({},o,r),i.app=e;var a=g(i.params.el).eq(0);if(0===a.length)return jo(n,i);if(a[0].f7SmartSelect)return jo(n,a[0].f7SmartSelect);var s,l=a.find("select").eq(0);if(0===l.length)return jo(n,i);i.params.setValueText&&(0===(s=g(i.params.valueEl)).length&&(s=a.find(".item-after")),0===s.length&&(s=g('<div class="item-after"></div>')).insertAfter(a.find(".item-title")));var c=r.url;c||(a.attr("href")&&"#"!==a.attr("href")?c=a.attr("href"):l.attr("name")&&(c="".concat(l.attr("name").toLowerCase(),"-select/"))),c||(c=i.params.url);var u=l[0].multiple,d=u?"checkbox":"radio",h=$.id();function f(){i.open()}function p(){var e=i.$selectEl.val();i.$el.trigger("smartselect:change",e),i.emit("local::change smartSelectChange",i,e),i.vl&&i.vl.clearCache(),i.setValueText()}function m(){var e,t,n,r=this.value,o=[];if("checkbox"===this.type){for(var a=0;a<i.selectEl.options.length;a+=1)(e=i.selectEl.options[a]).value===r&&(e.selected=this.checked),e.selected&&(t=(n=e.dataset?e.dataset.displayAs:g(e).data("display-value-as"))&&void 0!==n?n:e.textContent,o.push(t.trim()));i.maxLength&&i.checkMaxLength()}else o=[t=(n=(e=i.$selectEl.find('option[value="'.concat(r,'"]'))[0]).dataset?e.dataset.displayAs:g(e).data("display-as"))&&void 0!==n?n:e.textContent],i.selectEl.value=r;i.$selectEl.trigger("change"),i.params.setValueText&&i.$valueEl.text(i.formatValueText(o)),i.params.closeOnSelect&&"radio"===i.inputType&&i.close()}return $.extend(i,{$el:a,el:a[0],$selectEl:l,selectEl:l[0],$valueEl:s,valueEl:s&&s[0],url:c,multiple:u,inputType:d,id:h,inputName:"".concat(d,"-").concat(h),selectName:l.attr("name"),maxLength:l.attr("maxlength")||r.maxLength}),a[0].f7SmartSelect=i,i.attachEvents=function(){a.on("click",f),a.on("change","select",p)},i.detachEvents=function(){a.off("click",f),a.off("change","select",p)},i.attachInputsEvents=function(){i.$containerEl.on("change",'input[type="checkbox"], input[type="radio"]',m)},i.detachInputsEvents=function(){i.$containerEl.off("change",'input[type="checkbox"], input[type="radio"]',m)},i.useModules(),i.init(),jo(n,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fo(e,t)}(t,e),n=t,(r=[{key:"setValue",value:function(e){var t,n,r,i=this,o=e,a=[];if(i.multiple){Array.isArray(o)||(o=[o]);for(var s=0;s<i.selectEl.options.length;s+=1)t=i.selectEl.options[s],o.indexOf(t.value)>=0?t.selected=!0:t.selected=!1,t.selected&&(r=(n=t.dataset?t.dataset.displayAs:g(t).data("display-value-as"))&&void 0!==n?n:t.textContent,a.push(r.trim()))}else(t=i.$selectEl.find('option[value="'.concat(o,'"]'))[0])&&(a=[r=(n=t.dataset?t.dataset.displayAs:g(t).data("display-as"))&&void 0!==n?n:t.textContent]),i.selectEl.value=o;return i.params.setValueText&&i.$valueEl.text(i.formatValueText(a)),i.$selectEl.trigger("change"),i}},{key:"unsetValue",value:function(){var e=this;e.params.setValueText&&e.$valueEl.text(e.formatValueText([])),e.$selectEl.find("option").each((function(e,t){t.selected=!1,t.checked=!1})),e.$selectEl[0].value=null,e.$containerEl&&e.$containerEl.find('input[name="'.concat(e.inputName,'"][type="checkbox"], input[name="').concat(e.inputName,'"][type="radio"]')).prop("checked",!1),e.$selectEl.trigger("change")}},{key:"getValue",value:function(){return this.$selectEl.val()}},{key:"checkMaxLength",value:function(){var e=this.$containerEl;this.selectEl.selectedOptions.length>=this.maxLength?e.find('input[type="checkbox"]').each((function(e,t){t.checked?g(t).parents("li").removeClass("disabled"):g(t).parents("li").addClass("disabled")})):e.find(".disabled").removeClass("disabled")}},{key:"formatValueText",value:function(e){return this.params.formatValueText?this.params.formatValueText.call(this,e,this):e.join(", ")}},{key:"setValueText",value:function(e){var t=[];void 0!==e?t=Array.isArray(e)?e:[e]:this.$selectEl.find("option").each((function(e,n){var r=g(n);if(n.selected){var i=n.dataset?n.dataset.displayAs:r.data("display-value-as");i&&void 0!==i?t.push(i):t.push(n.textContent.trim())}})),this.params.setValueText&&this.$valueEl.text(this.formatValueText(t))}},{key:"getItemsData",value:function(){var e,t=this,n=[];return t.$selectEl.find("option").each((function(r,i){var o=g(i),a=o.dataset(),s=a.optionImage||t.params.optionImage,l=a.optionIcon||t.params.optionIcon,c=s||l,u=a.optionColor,d=a.optionClass||"";o[0].disabled&&(d+=" disabled");var h=o.parent("optgroup")[0],f=h&&h.label,p=!1;h&&h!==e&&(p=!0,e=h,n.push({groupLabel:f,isLabel:p})),n.push({value:o[0].value,text:o[0].textContent.trim(),selected:o[0].selected,groupEl:h,groupLabel:f,image:s,icon:l,color:u,className:d,disabled:o[0].disabled,id:t.id,hasMedia:c,checkbox:"checkbox"===t.inputType,radio:"radio"===t.inputType,inputName:t.inputName,inputType:t.inputType})})),t.items=n,n}},{key:"renderSearchbar",value:function(){var e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):'\n      <form class="searchbar">\n        <div class="searchbar-inner">\n          <div class="searchbar-input-wrap">\n            <input type="search" placeholder="'.concat(e.params.searchbarPlaceholder,'"/>\n            <i class="searchbar-icon"></i>\n            <span class="input-clear-button"></span>\n          </div>\n          ').concat(e.params.searchbarDisableButton?'\n          <span class="searchbar-disable-button">'.concat(e.params.searchbarDisableText,"</span>\n          "):"","\n        </div>\n      </form>\n    ")}},{key:"renderItem",value:function(e,t){var n,r=this;if(r.params.renderItem)return r.params.renderItem.call(r,e,t);if(e.isLabel)n='<li class="item-divider">'.concat(e.groupLabel,"</li>");else{var i,o=e.selected;if(r.params.virtualList){var a=r.getValue();o=r.multiple?a.indexOf(e.value)>=0:a===e.value,r.multiple&&(i=r.multiple&&!o&&a.length===parseInt(r.maxLength,10))}n='\n        <li class="'.concat(e.className||"").concat(i?" disabled":"",'">\n          <label class="item-').concat(e.inputType,' item-content">\n            <input type="').concat(e.inputType,'" name="').concat(e.inputName,'" value="').concat(e.value,'" ').concat(o?"checked":"",'/>\n            <i class="icon icon-').concat(e.inputType,'"></i>\n            ').concat(e.hasMedia?'\n              <div class="item-media">\n                '.concat(e.icon?'<i class="icon '.concat(e.icon,'"></i>'):"","\n                ").concat(e.image?'<img src="'.concat(e.image,'">'):"","\n              </div>\n            "):"",'\n            <div class="item-inner">\n              <div class="item-title').concat(e.color?" text-color-".concat(e.color):"",'">').concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      ")}return n}},{key:"renderItems",value:function(){var e=this;return e.params.renderItems?e.params.renderItems.call(e,e.items):"\n      ".concat(e.items.map((function(t,n){return"".concat(e.renderItem(t,n))})).join(""),"\n    ")}},{key:"renderPage",value:function(){var e=this;if(e.params.renderPage)return e.params.renderPage.call(e,e.items);var t=e.params.pageTitle;if(void 0===t){var n=e.$el.find(".item-title");t=n.length?n.text().trim():""}var r=e.params.cssClass;return'\n      <div class="page smart-select-page '.concat(r,'" data-name="smart-select-page" data-select-name="').concat(e.selectName,'">\n        <div class="navbar ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n          <div class="navbar-bg"></div>\n          <div class="navbar-inner sliding ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n            <div class="left">\n              <a class="link back">\n                <i class="icon icon-back"></i>\n                <span class="if-not-md">').concat(e.params.pageBackLinkText,"</span>\n              </a>\n            </div>\n            ").concat(t?'<div class="title">'.concat(t,"</div>"):"","\n            ").concat(e.params.searchbar?'<div class="subnavbar">'.concat(e.renderSearchbar(),"</div>"):"","\n          </div>\n        </div>\n        ").concat(e.params.searchbar?'<div class="searchbar-backdrop"></div>':"",'\n        <div class="page-content">\n          <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n            <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"renderPopup",value:function(){var e=this;if(e.params.renderPopup)return e.params.renderPopup.call(e,e.items);var t=e.params.pageTitle;if(void 0===t){var n=e.$el.find(".item-title");t=n.length?n.text().trim():""}var r=e.params.cssClass||"";return'\n      <div class="popup smart-select-popup '.concat(r," ").concat(e.params.popupTabletFullscreen?"popup-tablet-fullscreen":"",'" data-select-name="').concat(e.selectName,'">\n        <div class="view">\n          <div class="page smart-select-page ').concat(e.params.searchbar?"page-with-subnavbar":"",'" data-name="smart-select-page">\n            <div class="navbar ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n              <div class="navbar-bg"></div>\n              <div class="navbar-inner sliding">\n                ').concat(t?'<div class="title">'.concat(t,"</div>"):"",'\n                <div class="right">\n                  <a class="link popup-close" data-popup=".smart-select-popup[data-select-name=\'').concat(e.selectName,"']\">").concat(e.params.popupCloseLinkText,"</span></a>\n                </div>\n                ").concat(e.params.searchbar?'<div class="subnavbar">'.concat(e.renderSearchbar(),"</div>"):"","\n              </div>\n            </div>\n            ").concat(e.params.searchbar?'<div class="searchbar-backdrop"></div>':"",'\n            <div class="page-content">\n              <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n                <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"renderSheet",value:function(){var e=this;if(e.params.renderSheet)return e.params.renderSheet.call(e,e.items);var t=e.params.cssClass;return'\n      <div class="sheet-modal smart-select-sheet '.concat(t,'" data-select-name="').concat(e.selectName,'">\n        <div class="toolbar toolbar-top ').concat(e.params.toolbarColorTheme?"color-".concat(e.params.toolbarColorTheme):"",'">\n          <div class="toolbar-inner">\n            <div class="left"></div>\n            <div class="right">\n              <a class="link sheet-close">').concat(e.params.sheetCloseLinkText,'</a>\n            </div>\n          </div>\n        </div>\n        <div class="sheet-modal-inner">\n          <div class="page-content">\n            <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n              <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n            </div>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"renderPopover",value:function(){var e=this;if(e.params.renderPopover)return e.params.renderPopover.call(e,e.items);var t=e.params.cssClass;return'\n      <div class="popover smart-select-popover '.concat(t,'" data-select-name="').concat(e.selectName,'">\n        <div class="popover-inner">\n          <div class="list smart-select-list-').concat(e.id," ").concat(e.params.virtualList?" virtual-list":""," ").concat(e.params.formColorTheme?"color-".concat(e.params.formColorTheme):"",'">\n            <ul>').concat(!e.params.virtualList&&e.renderItems(e.items),"</ul>\n          </div>\n        </div>\n      </div>\n    ")}},{key:"scrollToSelectedItem",value:function(){var e=this,t=e.params,n=e.$containerEl;if(!e.opened)return e;if(t.virtualList){var r;e.vl.items.forEach((function(e,t){void 0===r&&e.selected&&(r=t)})),void 0!==r&&e.vl.scrollToItem(r)}else{var i=n.find("input:checked").parents("li");if(!i.length)return e;var o=n.find(".page-content");o.scrollTop(i.offset().top-o.offset().top-parseInt(o.css("padding-top"),10))}return e}},{key:"onOpen",value:function(e,t){var n=this,r=n.app,i=g(t);if(n.$containerEl=i,n.openedIn=e,n.opened=!0,n.params.virtualList&&(n.vl=r.virtualList.create({el:i.find(".virtual-list"),items:n.items,renderItem:n.renderItem.bind(n),height:n.params.virtualListHeight,searchByItem:function(e,t){return!!(t.text&&t.text.toLowerCase().indexOf(e.trim().toLowerCase())>=0)}})),n.params.scrollToSelectedItem&&n.scrollToSelectedItem(),n.params.searchbar){var o=i.find(".searchbar");if("page"===e&&"ios"===r.theme&&(o=g(r.navbar.getElByPage(i)).find(".searchbar")),n.params.appendSearchbarNotFound&&("page"===e||"popup"===e)){var a=null;(a="string"==typeof n.params.appendSearchbarNotFound?g('<div class="block searchbar-not-found">'.concat(n.params.appendSearchbarNotFound,"</div>")):"boolean"==typeof n.params.appendSearchbarNotFound?g('<div class="block searchbar-not-found">Nothing found</div>'):n.params.appendSearchbarNotFound)&&i.find(".page-content").append(a[0])}var s=$.extend({el:o,backdropEl:i.find(".searchbar-backdrop"),searchContainer:".smart-select-list-".concat(n.id),searchIn:".item-title"},"object"===Io(n.params.searchbar)?n.params.searchbar:{});n.searchbar=r.searchbar.create(s)}n.maxLength&&n.checkMaxLength(),n.params.closeOnSelect&&n.$containerEl.find('input[type="radio"][name="'.concat(n.inputName,'"]:checked')).parents("label").once("click",(function(){n.close()})),n.attachInputsEvents(),n.$el.trigger("smartselect:open"),n.emit("local::open smartSelectOpen",n)}},{key:"onOpened",value:function(){this.$el.trigger("smartselect:opened"),this.emit("local::opened smartSelectOpened",this)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.vl&&e.vl.destroy&&(e.vl.destroy(),e.vl=null,delete e.vl),e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),e.detachInputsEvents(),e.$el.trigger("smartselect:close"),e.emit("local::close smartSelectClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$containerEl=null,delete e.$containerEl,e.$el.trigger("smartselect:closed"),e.emit("local::closed smartSelectClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t=e.renderPage(e.items);return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}}}}),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderPopup(e.items),push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"openSheet",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderSheet(e.items),backdrop:!1,scrollToEl:e.$el,closeByOutsideClick:!0,push:e.params.sheetPush,swipeToClose:e.params.sheetSwipeToClose,on:{sheetOpen:function(t){e.onOpen("sheet",t.el)},sheetOpened:function(t){e.onOpened("sheet",t.el)},sheetClose:function(t){e.onClose("sheet",t.el)},sheetClosed:function(t){e.onClosed("sheet",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,sheet:t}}):e.modal=e.app.sheet.create(t).open(),e}},{key:"openPopover",value:function(){var e=this;if(e.opened)return e;e.getItemsData();var t={content:e.renderPopover(e.items),targetEl:e.$el,on:{popoverOpen:function(t){e.onOpen("popover",t.el)},popoverOpened:function(t){e.onOpened("popover",t.el)},popoverClose:function(t){e.onClose("popover",t.el)},popoverClosed:function(t){e.onClosed("popover",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popover:t}}):e.modal=e.app.popover.create(t).open(),e}},{key:"open",value:function(e){var t=this;if(t.opened)return t;var n=!1;function r(){n=!0}if(t.$el&&t.$el.trigger("smartselect:beforeopen",{prevent:r}),t.emit("local::beforeOpen smartSelectBeforeOpen",t,r),n)return t;var i=e||t.params.openIn;return t["open".concat(i.split("").map((function(e,t){return 0===t?e.toUpperCase():e})).join(""))](),t}},{key:"close",value:function(){var e=this;return e.opened?(e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back():(e.modal.once("modalClosed",(function(){$.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){this.attachEvents(),this.setValueText()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy smartSelectBeforeDestroy",e),e.$el.trigger("smartselect:beforedestroy"),e.detachEvents(),delete e.$el[0].f7SmartSelect,$.deleteProps(e),e.destroyed=!0}},{key:"view",get:function(){var e,t=this.params,n=this.$el;if(t.view&&(e=t.view),e||(e=n.parents(".view").length&&n.parents(".view")[0].f7View),!e&&"page"===t.openIn)throw Error("Smart Select requires initialized View");return e}}])&&No(n.prototype,r),i&&No(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Uo={name:"smartSelect",params:{smartSelect:{el:void 0,valueEl:void 0,setValueText:!0,formatValueText:null,openIn:"page",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,pageTitle:void 0,pageBackLinkText:"Back",popupCloseLinkText:"Close",popupTabletFullscreen:!1,sheetCloseLinkText:"Done",searchbar:!1,searchbarPlaceholder:"Search",searchbarDisableText:"Cancel",searchbarDisableButton:void 0,closeOnSelect:!1,virtualList:!1,virtualListHeight:void 0,scrollToSelectedItem:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!0,url:"select/",cssClass:"",renderPage:void 0,renderPopup:void 0,renderSheet:void 0,renderPopover:void 0,renderItems:void 0,renderItem:void 0,renderSearchbar:void 0}},static:{SmartSelect:Ho},create:function(){var e=this;e.smartSelect=$.extend(X({defaultSelector:".smart-select",constructor:Ho,app:e,domProp:"f7SmartSelect"}),{open:function(t){var n=e.smartSelect.get(t);if(n&&n.open)return n.open()},close:function(t){var n=e.smartSelect.get(t);if(n&&n.close)return n.close()}})},on:{tabMounted:function(e){var t=this;g(e).find(".smart-select-init").each((function(e,n){t.smartSelect.create($.extend({el:n},g(n).dataset()))}))},tabBeforeRemove:function(e){g(e).find(".smart-select-init").each((function(e,t){t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".smart-select-init").each((function(e,n){t.smartSelect.create($.extend({el:n},g(n).dataset()))}))},pageBeforeRemove:function(e){e.$el.find(".smart-select-init").each((function(e,t){t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}))}},clicks:{".smart-select":function(e,t){e[0].f7SmartSelect||this.smartSelect.create($.extend({el:e},t)).open()}},vnode:{"smart-select-init":{insert:function(e){var t=e.elm;this.smartSelect.create($.extend({el:t},g(t).dataset()))},destroy:function(e){var t=e.elm;t.f7SmartSelect&&t.f7SmartSelect.destroy&&t.f7SmartSelect.destroy()}}}};function zo(e,t){var n=t.css("min-".concat(e));return"auto"===n||"none"===n?n=0:n.indexOf("px")>=0?n=parseFloat(n):n.indexOf("%")>=0&&(n=t.parent()[0]["height"===e?"offsetHeight":"offsetWidth"]*parseFloat(n)/100),n}function Vo(e,t){var n=t.css("max-".concat(e));return"auto"===n||"none"===n?n=null:n.indexOf("px")>=0?n=parseFloat(n):n.indexOf("%")>=0&&(n=t.parent()[0]["height"===e?"offsetHeight":"offsetWidth"]*parseFloat(n)/100),n}var qo={init:function(){var e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,m,v,y=this;g(document).on(y.touchEvents.start,".col > .resize-handler, .row > .resize-handler",(function(s){e||t||(i=g(s.target).closest(".resize-handler"),n="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,r="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY,e=!0,o=void 0,a=void 0,v=void 0)})),y.on("touchmove",(function(g){if(e){var b=1===i.parent(".row").length,_=b?"height":"width",w=b?"offsetHeight":"offsetWidth";t||(!(o=i.parent(b?".row":".col")).length||o.hasClass("resizable")&&!o.hasClass("resizable-fixed")||(o=o.prevAll(".resizable:not(.resizable-fixed)").eq(0)),!(a=o.next(b?".row":".col")).length||a.hasClass("resizable")&&!a.hasClass("resizable-fixed")||(a=a.nextAll(".resizable:not(.resizable-fixed)").eq(0)),o.length&&(s=o[0][w],l=zo(_,o),c=Vo(_,o),f=o.parent()[0][w],p=o.parent().children(b?".row":'[class*="col-"], .col').length,m=parseFloat(o.css(b?"--f7-grid-row-gap":"--f7-grid-gap"))),a.length&&(u=a[0][w],d=zo(_,a),h=Vo(_,a),o.length||(f=a.parent()[0][w],p=a.parent().children(b?".row":'[class*="col-"], .col').length,m=parseFloat(a.css(b?"--f7-grid-row-gap":"--f7-grid-gap"))))),t=!0;var k="touchmove"===g.type?g.targetTouches[0].pageX:g.pageX,S="touchmove"===g.type?g.targetTouches[0].pageY:g.pageY;if(void 0!==v||b||(v=!!(v||Math.abs(S-r)>Math.abs(k-n))),v)return e=!1,void(t=!1);var E=o.hasClass("resizable-absolute")||a.hasClass("resizable-absolute"),C=!b||b&&!E;if(C&&!a.length||!o.length)return e=!1,void(t=!1);g.preventDefault();var T,x,M=b?S-r:k-n;if(o.length&&((T=s+M)<l&&(M=(T=l)-s),c&&T>c&&(M=(T=c)-s)),a.length&&C&&((x=u-M)<d&&(T=s+(M=u-(x=d))),h&&x>h&&(T=s+(M=u-(x=h)))),E)return o[0].style[_]="".concat(T,"px"),C&&(a[0].style[_]="".concat(x,"px")),o.trigger("grid:resize"),a.trigger("grid:resize"),y.emit("gridResize",o[0]),void y.emit("gridResize",a[0]);var $=(p-1)*m/p,P=b?"".concat(p-1," * var(--f7-grid-row-gap) / ").concat(p):"(var(--f7-cols-per-row) - 1) * var(--f7-grid-gap) / var(--f7-cols-per-row)",O=T+$,L=x+$;o[0].style[_]="calc(".concat(O/f*100,"% - ").concat(P,")"),a[0].style[_]="calc(".concat(L/f*100,"% - ").concat(P,")"),o.trigger("grid:resize"),a.trigger("grid:resize"),y.emit("gridResize",o[0]),y.emit("gridResize",a[0])}})),y.on("touchend",(function(){e&&(t||(e=!1),e=!1,t=!1)}))}},Wo={name:"grid",create:function(){$.extend(this,{grid:{init:qo.init.bind(this)}})},on:{init:function(){this.grid.init()}}};function Go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ko(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ko(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jo(e){return(Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zo(r.key),r)}}function Zo(e){var t=function(e,t){if("object"!=Jo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jo(t)?t:t+""}function ea(e,t){if(t&&("object"==Jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return na(e)}function ta(e){return(ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ra(e,t){return(ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ia=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xo(this,t);var i,o,a=na(n=ea(this,ta(t).call(this,r,[e])));if(a.params=$.extend({},e.params.calendar,r),a.params.containerEl&&0===(i=g(a.params.containerEl)).length)return ea(n,a);a.params.inputEl&&(o=g(a.params.inputEl));var s="horizontal"===a.params.direction,l=1;s&&(l=e.rtl?-1:1),$.extend(a,{app:e,$containerEl:i,containerEl:i&&i[0],inline:i&&i.length>0,$inputEl:o,inputEl:o&&o[0],initialized:!1,opened:!1,url:a.params.url,isHorizontal:s,inverter:l,animating:!1,hasTimePicker:a.params.timePicker&&!a.params.rangePicker&&!a.params.multiple}),a.dayFormatter=new Intl.DateTimeFormat(a.params.locale,{day:"numeric"}),a.monthFormatter=new Intl.DateTimeFormat(a.params.locale,{month:"long"}),a.yearFormatter=new Intl.DateTimeFormat(a.params.locale,{year:"numeric"}),a.timeSelectorFormatter=new Intl.DateTimeFormat(a.params.locale,a.params.timePickerFormat);var c=a.params,u=c.monthNames,d=c.monthNamesShort,h=c.dayNames,f=c.dayNamesShort,p=a.getIntlNames(),m=p.monthNamesIntl,v=p.monthNamesShortIntl,y=p.dayNamesIntl,b=p.dayNamesShortIntl;function _(){a.open()}function w(e){e.preventDefault()}function k(){a.setValue([]),a.opened&&a.update()}function S(e){var t=g(e.target);!a.destroyed&&a.params&&(a.isPopover()||a.opened&&!a.closing&&(t.closest('[class*="backdrop"]').length||(o&&o.length>0?t[0]!==o[0]&&0===t.closest(".sheet-modal, .calendar-modal").length&&a.close():0===g(e.target).closest(".sheet-modal, .calendar-modal").length&&a.close())))}return"auto"===u&&(u=m),"auto"===d&&(d=v),"auto"===h&&(h=y),"auto"===f&&(f=b),$.extend(a,{monthNames:u,monthNamesShort:d,dayNames:h,dayNamesShort:f}),$.extend(a,{attachInputEvents:function(){a.$inputEl.on("click",_),a.$inputEl.on("input:clear",k),a.params.inputReadOnly&&a.$inputEl.on("focus mousedown",w)},detachInputEvents:function(){a.$inputEl.off("click",_),a.$inputEl.off("input:clear",k),a.params.inputReadOnly&&a.$inputEl.off("focus mousedown",w)},attachHtmlEvents:function(){e.on("click",S)},detachHtmlEvents:function(){e.off("click",S)}}),a.attachCalendarEvents=function(){var t,n,r,i,o,s,l,c,u,d,h,f,p,m=!0,v=a.$el,y=a.$wrapperEl;function b(e){n||t||(t=!0,r="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,o=r,i="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,s=i,l=(new Date).getTime(),h=0,m=!0,p=void 0,c=a.monthsTranslate)}function _(e){if(t){var l=a.isHorizontal;o="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,void 0===p&&(p=!!(p||Math.abs(s-i)>Math.abs(o-r))),l&&p?t=!1:(e.preventDefault(),a.animating?t=!1:(m=!1,n||(n=!0,u=y[0].offsetWidth,d=y[0].offsetHeight,y.transition(0)),h=(f=l?o-r:s-i)/(l?u:d),c=100*(a.monthsTranslate*a.inverter+h),y.transform("translate3d(".concat(l?c:0,"%, ").concat(l?0:c,"%, 0)"))))}}function w(){if(!t||!n)return t=!1,void(n=!1);t=!1,n=!1,(new Date).getTime()-l<300?Math.abs(f)<10?a.resetMonth():f>=10?e.rtl?a.nextMonth():a.prevMonth():e.rtl?a.prevMonth():a.nextMonth():h<=-.5?e.rtl?a.prevMonth():a.nextMonth():h>=.5?e.rtl?a.nextMonth():a.prevMonth():a.resetMonth(),setTimeout((function(){m=!0}),100)}function k(e){if(m){var t=g(e.target).parents(".calendar-day");if(0===t.length&&g(e.target).hasClass("calendar-day")&&(t=g(e.target)),0!==t.length&&!t.hasClass("calendar-day-disabled")){a.params.rangePicker||(t.hasClass("calendar-day-next")&&a.nextMonth(),t.hasClass("calendar-day-prev")&&a.prevMonth());var n=parseInt(t.attr("data-year"),10),r=parseInt(t.attr("data-month"),10),i=parseInt(t.attr("data-day"),10);if(a.emit("local::dayClick calendarDayClick",a,t[0],n,r,i),!t.hasClass("calendar-day-selected")||a.params.multiple||a.params.rangePicker){var o=new Date(n,r,i,0,0,0);a.hasTimePicker&&(a.value&&a.value[0]?o.setHours(a.value[0].getHours(),a.value[0].getMinutes()):o.setHours((new Date).getHours(),(new Date).getMinutes())),a.addValue(o)}a.params.closeOnSelect&&(a.params.rangePicker&&2===a.value.length||!a.params.rangePicker)&&a.close()}}}function S(){a.nextMonth()}function E(){a.prevMonth()}function C(){a.nextYear()}function T(){a.prevYear()}function x(){v.append(a.renderMonthPicker())}function M(){var e=g(this);if(e.hasClass("calendar-month-picker-item-current"))v.find(".calendar-month-picker").remove();else{v.find(".calendar-month-picker-item-current").add(e).toggleClass("calendar-month-picker-item-current");var t=e.index()-(parseInt(a.$el.find(".calendar-month-current").attr("data-locale-month"),10)-a.currentMonth);a.setYearMonth(a.currentYear,t,0),setTimeout((function(){v.find(".calendar-month-picker").remove()}),200)}}function $(){v.append(a.renderYearPicker());var e=v.find(".calendar-year-picker-item-current"),t=v.find(".calendar-year-picker");e&&e.length&&t.scrollTop(e[0].offsetTop-t[0].offsetHeight/2+e[0].offsetHeight/2)}function P(){var e=g(this);if(e.hasClass("calendar-year-picker-item-current"))v.find(".calendar-year-picker").remove();else{v.find(".calendar-year-picker-item-current").add(e).toggleClass("calendar-year-picker-item-current");var t=parseInt(e.attr("data-year"),10);a.setYearMonth(t,void 0,0),setTimeout((function(){v.find(".calendar-year-picker").remove()}),200)}}function O(){a.openTimePicker()}function L(){a.closeTimePicker()}var A=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener)&&{passive:!0,capture:!1};v.find(".calendar-prev-month-button").on("click",E),v.find(".calendar-next-month-button").on("click",S),v.find(".calendar-prev-year-button").on("click",T),v.find(".calendar-next-year-button").on("click",C),a.params.monthPicker&&(v.find(".current-month-value").on("click",x),v.on("click",".calendar-month-picker-item",M)),a.params.yearPicker&&(v.find(".current-year-value").on("click",$),v.on("click",".calendar-year-picker-item",P)),a.hasTimePicker&&(v.find(".calendar-time-selector a").on("click",O),v.on("click",".calendar-time-picker-close",L)),y.on("click",k),a.params.touchMove&&(y.on(e.touchEvents.start,b,A),e.on("touchmove:active",_),e.on("touchend:passive",w)),a.detachCalendarEvents=function(){v.find(".calendar-prev-month-button").off("click",E),v.find(".calendar-next-month-button").off("click",S),v.find(".calendar-prev-year-button").off("click",T),v.find(".calendar-next-year-button").off("click",C),a.params.monthPicker&&(v.find(".current-month-value").off("click",x),v.off("click",".calendar-month-picker-item",M)),a.params.yearPicker&&(v.find(".current-year-value").off("click",$),v.off("click",".calendar-year-picker-item",P)),a.hasTimePicker&&(v.find(".calendar-time-selector a").off("click",O),v.off("click",".calendar-time-picker-close",L)),y.off("click",k),a.params.touchMove&&(y.off(e.touchEvents.start,b,A),e.off("touchmove:active",_),e.off("touchend:passive",w))}},a.init(),ea(n,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ra(e,t)}(t,e),function(e,t,n){t&&Qo(e.prototype,t),n&&Qo(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"getIntlNames",value:function(){for(var e,t,n,r=this.params.locale,i=[],o=[],a=[],s=[],l=new Intl.DateTimeFormat(r,{month:"long"}),c=new Intl.DateTimeFormat(r,{month:"short"}),u=new Intl.DateTimeFormat(r,{weekday:"long"}),d=new Intl.DateTimeFormat(r,{weekday:"short"}),h=0;h<24;h+=1){var f=(new Date).setMonth(h,1),p=this.yearFormatter.format(f);e&&p!==e&&(t&&(n=!0),t=!0,e=p),e||(e=p),t&&e===p&&!n&&(i.push(l.format(f)),o.push(c.format(f)))}for(var m=(new Date).getDay(),v=0;v<7;v+=1){var g=(new Date).getTime()+24*(v-m)*60*60*1e3;a.push(u.format(g)),s.push(d.format(g))}return{monthNamesIntl:i,monthNamesShortIntl:o,dayNamesIntl:a,dayNamesShortIntl:s}}},{key:"normalizeDate",value:function(e){var t=new Date(e);return this.hasTimePicker?new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes()):new Date(t.getFullYear(),t.getMonth(),t.getDate())}},{key:"normalizeValues",value:function(e){var t=this,n=[];return e&&Array.isArray(e)&&(n=e.map((function(e){return t.normalizeDate(e)}))),n}},{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"isPopover",value:function(){var e=this.app,t=this.modal,n=this.params;if("sheet"===n.openIn)return!1;if(t&&"popover"!==t.type)return!1;if(!this.inline&&this.inputEl){if("popover"===n.openIn)return!0;if(e.device.ios)return!!e.device.ipad;if(e.width>=768)return!0;if(e.device.desktop&&"aurora"===e.theme)return!0}return!1}},{key:"formatDate",value:function(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth(),i=r+1,o=t.getDate(),a=t.getDay(),s=this.monthNames,l=this.monthNamesShort,c=this.dayNames,u=this.dayNamesShort,d=this.params,h=d.dateFormat,f=d.locale;function p(e){return e<10?"0".concat(e):e}if("string"==typeof h){var m={yyyy:n,yy:String(n).substring(2),mm:p(i),m:i,MM:s[r],M:l[r],dd:p(o),d:o,DD:c[a],D:u[a]};if(this.params.timePicker){var v=t.getHours(),g=t.getMinutes(),y=t.getSeconds(),b=v;v>12&&(b=v-12),0===v&&(b=12);var _=v>=12&&0!==v?"pm":"am";Object.assign(m,{HH:p(v),H:v,hh:p(b),h:b,ss:p(y),s:y,":mm":p(g),":m":g,a:_,A:_.toUpperCase()})}var w=new RegExp(Object.keys(m).map((function(e){return"(".concat(e,")")})).join("|"),"g");return h.replace(w,(function(e){return e in m?m[e]:e}))}return"function"==typeof h?h(t):new Intl.DateTimeFormat(f,h).format(t)}},{key:"formatValue",value:function(){var e=this,t=e.value;return e.params.formatValue?e.params.formatValue.call(e,t):t.map((function(t){return e.formatDate(t)})).join(e.params.rangePicker?" - ":", ")}},{key:"addValue",value:function(e){var t=this.params,n=t.multiple,r=t.rangePicker,i=t.rangePickerMinDays,o=t.rangePickerMaxDays;if(n){var a;this.value||(this.value=[]);for(var s=0;s<this.value.length;s+=1)new Date(e).getTime()===new Date(this.value[s]).getTime()&&(a=s);void 0===a?this.value.push(e):this.value.splice(a,1),this.updateValue()}else r?(this.value||(this.value=[]),2!==this.value.length&&0!==this.value.length||(this.value=[]),0===this.value.length||Math.abs(this.value[0].getTime()-e.getTime())>=60*(i-1)*60*24*1e3&&(0===o||Math.abs(this.value[0].getTime()-e.getTime())<=60*(o-1)*60*24*1e3)?this.value.push(e):this.value=[],this.value.sort((function(e,t){return e-t})),this.updateValue()):(this.value=[e],this.updateValue())}},{key:"setValue",value:function(e){var t=this.value;if(Array.isArray(t)&&Array.isArray(e)&&t.length===e.length){var n=!0;if(t.forEach((function(t,r){t!==e[r]&&(n=!1)})),n)return}this.value=e,this.updateValue()}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(e){var t,n,r=this.$el,i=this.$wrapperEl,o=this.$inputEl,a=this.value,s=this.params;if(r&&r.length>0)if(i.find(".calendar-day-selected").removeClass("calendar-day-selected"),s.rangePicker&&2===a.length)for(t=new Date(a[0]).getTime();t<=new Date(a[1]).getTime();t+=864e5)n=new Date(t),i.find('.calendar-day[data-date="'.concat(n.getFullYear(),"-").concat(n.getMonth(),"-").concat(n.getDate(),'"]')).addClass("calendar-day-selected");else for(t=0;t<this.value.length;t+=1)n=new Date(a[t]),i.find('.calendar-day[data-date="'.concat(n.getFullYear(),"-").concat(n.getMonth(),"-").concat(n.getDate(),'"]')).addClass("calendar-day-selected");if(e||this.emit("local::change calendarChange",this,a),r&&r.length>0&&this.hasTimePicker&&r.find(".calendar-time-selector a").text(a&&a.length?this.timeSelectorFormatter.format(a[0]):this.params.timePickerPlaceholder),o&&o.length||s.header){var l=this.formatValue(a);s.header&&r&&r.length&&r.find(".calendar-selected-date").text(l),o&&o.length&&!e&&(o.val(l),o.trigger("change"))}}},{key:"updateCurrentMonthYear",value:function(e){var t,n,r=this.$months,i=this.$el,o=this.monthNames;void 0===e?(this.currentMonth=parseInt(r.eq(1).attr("data-month"),10),this.currentYear=parseInt(r.eq(1).attr("data-year"),10),t=r.eq(1).attr("data-locale-month"),n=r.eq(1).attr("data-locale-year")):(this.currentMonth=parseInt(r.eq("next"===e?r.length-1:0).attr("data-month"),10),this.currentYear=parseInt(r.eq("next"===e?r.length-1:0).attr("data-year"),10),t=r.eq("next"===e?r.length-1:0).attr("data-locale-month"),n=r.eq("next"===e?r.length-1:0).attr("data-locale-year")),i.find(".current-month-value").text(o[t]),i.find(".current-year-value").text(n)}},{key:"update",value:function(){var e=this,t=e.currentYear,n=e.currentMonth,r=e.$wrapperEl,i=new Date(t,n),o=e.renderMonth(i,"prev"),a=e.renderMonth(i),s=e.renderMonth(i,"next");r.transition(0).html("".concat(o).concat(a).concat(s)).transform("translate3d(0,0,0)"),e.$months=r.find(".calendar-month"),e.monthsTranslate=0,e.setMonthsTranslate(),e.$months.each((function(t,n){e.emit("local::monthAdd calendarMonthAdd",n)}))}},{key:"onMonthChangeStart",value:function(e){var t=this.$months,n=this.currentYear,r=this.currentMonth;this.updateCurrentMonthYear(e),t.removeClass("calendar-month-current calendar-month-prev calendar-month-next");var i="next"===e?t.length-1:0;t.eq(i).addClass("calendar-month-current"),t.eq("next"===e?i-1:i+1).addClass("next"===e?"calendar-month-prev":"calendar-month-next"),this.emit("local::monthYearChangeStart calendarMonthYearChangeStart",this,n,r)}},{key:"onMonthChangeEnd",value:function(e,t){var n,r,i,o=this.currentYear,a=this.currentMonth,s=this.$wrapperEl,l=this.monthsTranslate;this.animating=!1,s.find(".calendar-month:not(.calendar-month-prev):not(.calendar-month-current):not(.calendar-month-next)").remove(),void 0===e&&(e="next",t=!0),t?(s.find(".calendar-month-next, .calendar-month-prev").remove(),r=this.renderMonth(new Date(o,a),"prev"),n=this.renderMonth(new Date(o,a),"next")):i=this.renderMonth(new Date(o,a),e),("next"===e||t)&&s.append(i||n),("prev"===e||t)&&s.prepend(i||r);var c=s.find(".calendar-month");this.$months=c,this.setMonthsTranslate(l),this.emit("local::monthAdd calendarMonthAdd",this,"next"===e?c.eq(c.length-1)[0]:c.eq(0)[0]),this.emit("local::monthYearChangeEnd calendarMonthYearChangeEnd",this,o,a)}},{key:"setMonthsTranslate",value:function(e){var t=this.$months,n=this.isHorizontal,r=this.inverter;e=e||this.monthsTranslate||0,void 0===this.monthsTranslate&&(this.monthsTranslate=e),t.removeClass("calendar-month-current calendar-month-prev calendar-month-next");var i=100*-(e+1)*r,o=100*-e*r,a=100*-(e-1)*r;t.eq(0).transform("translate3d(".concat(n?i:0,"%, ").concat(n?0:i,"%, 0)")).addClass("calendar-month-prev"),t.eq(1).transform("translate3d(".concat(n?o:0,"%, ").concat(n?0:o,"%, 0)")).addClass("calendar-month-current"),t.eq(2).transform("translate3d(".concat(n?a:0,"%, ").concat(n?0:a,"%, 0)")).addClass("calendar-month-next")}},{key:"nextMonth",value:function(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.inverter,o=t.isHorizontal;void 0!==e&&"object"!==Jo(e)||(e="",n.animate||(e=0));var a=parseInt(t.$months.eq(t.$months.length-1).attr("data-month"),10),s=parseInt(t.$months.eq(t.$months.length-1).attr("data-year"),10),l=new Date(s,a).getTime(),c=!t.animating;if(n.maxDate&&l>new Date(n.maxDate).getTime())t.resetMonth();else{if(t.monthsTranslate-=1,a===t.currentMonth){var u=100*-t.monthsTranslate*i,d=g(t.renderMonth(l,"next")).transform("translate3d(".concat(o?u:0,"%, ").concat(o?0:u,"%, 0)")).addClass("calendar-month-next");r.append(d[0]),t.$months=r.find(".calendar-month"),t.emit("local::monthAdd calendarMonthAdd",t.$months.eq(t.$months.length-1)[0])}t.animating=!0,t.onMonthChangeStart("next");var h=100*t.monthsTranslate*i;r.transition(e).transform("translate3d(".concat(o?h:0,"%, ").concat(o?0:h,"%, 0)")),c&&r.transitionEnd((function(){t.onMonthChangeEnd("next")})),n.animate||t.onMonthChangeEnd("next")}}},{key:"prevMonth",value:function(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.inverter,o=t.isHorizontal;void 0!==e&&"object"!==Jo(e)||(e="",n.animate||(e=0));var a=parseInt(t.$months.eq(0).attr("data-month"),10),s=parseInt(t.$months.eq(0).attr("data-year"),10),l=new Date(s,a+1,-1).getTime(),c=!t.animating;if(n.minDate){var u=new Date(n.minDate);if(l<(u=new Date(u.getFullYear(),u.getMonth(),1)).getTime())return void t.resetMonth()}if(t.monthsTranslate+=1,a===t.currentMonth){var d=100*-t.monthsTranslate*i,h=g(t.renderMonth(l,"prev")).transform("translate3d(".concat(o?d:0,"%, ").concat(o?0:d,"%, 0)")).addClass("calendar-month-prev");r.prepend(h[0]),t.$months=r.find(".calendar-month"),t.emit("local::monthAdd calendarMonthAdd",t.$months.eq(0)[0])}t.animating=!0,t.onMonthChangeStart("prev");var f=100*t.monthsTranslate*i;r.transition(e).transform("translate3d(".concat(o?f:0,"%, ").concat(o?0:f,"%, 0)")),c&&r.transitionEnd((function(){t.onMonthChangeEnd("prev")})),n.animate||t.onMonthChangeEnd("prev")}},{key:"resetMonth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=t.$wrapperEl,r=t.inverter,i=t.isHorizontal,o=t.monthsTranslate,a=100*o*r;n.transition(e).transform("translate3d(".concat(i?a:0,"%, ").concat(i?0:a,"%, 0)"))}},{key:"setYearMonth",value:function(e,t,n){var r,i=this,o=i.params,a=i.isHorizontal,s=i.$wrapperEl,l=i.inverter;if(void 0===e&&(e=i.currentYear),void 0===t&&(t=i.currentMonth),void 0!==n&&"object"!==Jo(n)||(n="",o.animate||(n=0)),r=e<i.currentYear?new Date(e,t+1,-1).getTime():new Date(e,t).getTime(),o.maxDate&&r>new Date(o.maxDate).getTime())return!1;if(o.minDate){var c=new Date(o.minDate);if(r<(c=new Date(c.getFullYear(),c.getMonth(),1)).getTime())return!1}var u=new Date(i.currentYear,i.currentMonth).getTime(),d=r>u?"next":"prev",h=i.renderMonth(new Date(e,t));i.monthsTranslate=i.monthsTranslate||0;var f,p=i.monthsTranslate,m=!i.animating&&0!==n;r>u?(i.monthsTranslate-=1,i.animating||i.$months.eq(i.$months.length-1).remove(),s.append(h),i.$months=s.find(".calendar-month"),f=100*-(p-1)*l,i.$months.eq(i.$months.length-1).transform("translate3d(".concat(a?f:0,"%, ").concat(a?0:f,"%, 0)")).addClass("calendar-month-next")):(i.monthsTranslate+=1,i.animating||i.$months.eq(0).remove(),s.prepend(h),i.$months=s.find(".calendar-month"),f=100*-(p+1)*l,i.$months.eq(0).transform("translate3d(".concat(a?f:0,"%, ").concat(a?0:f,"%, 0)")).addClass("calendar-month-prev")),i.emit("local::monthAdd calendarMonthAdd","next"===d?i.$months.eq(i.$months.length-1)[0]:i.$months.eq(0)[0]),i.animating=!0,i.onMonthChangeStart(d);var v=100*i.monthsTranslate*l;s.transition(n).transform("translate3d(".concat(a?v:0,"%, ").concat(a?0:v,"%, 0)")),m&&s.transitionEnd((function(){i.onMonthChangeEnd(d,!0)})),o.animate&&0!==n||i.onMonthChangeEnd(d,!0)}},{key:"nextYear",value:function(){this.setYearMonth(this.currentYear+1)}},{key:"prevYear",value:function(){this.setYearMonth(this.currentYear-1)}},{key:"dateInRange",value:function(e,t){var n,r=!1;if(!t)return!1;if(Array.isArray(t))for(n=0;n<t.length;n+=1)t[n].from||t[n].to?t[n].from&&t[n].to?e<=new Date(t[n].to).getTime()&&e>=new Date(t[n].from).getTime()&&(r=!0):t[n].from?e>=new Date(t[n].from).getTime()&&(r=!0):t[n].to&&e<=new Date(t[n].to).getTime()&&(r=!0):t[n].date?e===new Date(t[n].date).getTime()&&(r=!0):e===new Date(t[n]).getTime()&&(r=!0);else t.from||t.to?t.from&&t.to?e<=new Date(t.to).getTime()&&e>=new Date(t.from).getTime()&&(r=!0):t.from?e>=new Date(t.from).getTime()&&(r=!0):t.to&&e<=new Date(t.to).getTime()&&(r=!0):t.date?r=e===new Date(t.date).getTime():"function"==typeof t&&(r=t(new Date(e)));return r}},{key:"daysInMonth",value:function(e){var t=new Date(e);return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}},{key:"renderMonths",value:function(e){return this.params.renderMonths?this.params.renderMonths.call(this,e):'\n    <div class="calendar-months-wrapper">\n    '.concat(this.renderMonth(e,"prev"),"\n    ").concat(this.renderMonth(e),"\n    ").concat(this.renderMonth(e,"next"),"\n    </div>\n  ").trim()}},{key:"renderMonth",value:function(e,t){var n=this,r=n.params,i=n.value;if(r.renderMonth)return r.renderMonth.call(n,e,t);var o=new Date(e),a=o.getFullYear(),s=o.getMonth(),l=n.monthNames.indexOf(n.monthFormatter.format(o));l<0&&(l=s);var c=n.yearFormatter.format(o);"next"===t&&(o=11===s?new Date(a+1,0):new Date(a,s+1,1)),"prev"===t&&(o=0===s?new Date(a-1,11):new Date(a,s-1,1)),"next"!==t&&"prev"!==t||(s=o.getMonth(),a=o.getFullYear(),(l=n.monthNames.indexOf(n.monthFormatter.format(o)))<0&&(l=s),c=n.yearFormatter.format(o));var u,d,h=[],f=(new Date).setHours(0,0,0,0),p=r.minDate?new Date(r.minDate).getTime():null,m=r.maxDate?new Date(r.maxDate).getTime():null,v=n.daysInMonth(new Date(o.getFullYear(),o.getMonth()).getTime()-864e6),g=n.daysInMonth(o),y=6===r.firstDay?0:1,b="",_=r.firstDay-1+0,w=new Date(o.getFullYear(),o.getMonth()).getDay();if(0===w&&(w=7),i&&i.length)for(var k=0;k<i.length;k+=1)h.push(new Date(i[k]).setHours(0,0,0,0));for(var S=1;S<=6;S+=1){for(var E="",C=function(e){var t=void 0,i=(_+=1)-w,o="";1===S&&1===e&&i>y&&1!==r.firstDay&&(i=(_-=7)-w);var l=e-1+r.firstDay>6?e-1-7+r.firstDay:e-1+r.firstDay;i<0?(i=v+i+1,o+=" calendar-day-prev",t=new Date(s-1<0?a-1:a,s-1<0?11:s-1,i).getTime()):(i+=1)>g?(i-=g,o+=" calendar-day-next",t=new Date(s+1>11?a+1:a,s+1>11?0:s+1,i).getTime()):t=new Date(a,s,i).getTime(),t===f&&(o+=" calendar-day-today"),r.rangePicker&&2===h.length?t>=h[0]&&t<=h[1]&&(o+=" calendar-day-selected"):h.indexOf(t)>=0&&(o+=" calendar-day-selected"),r.weekendDays.indexOf(l)>=0&&(o+=" calendar-day-weekend");var c="";if(d=!1,r.events&&n.dateInRange(t,r.events)&&(d=!0),d&&(o+=" calendar-day-has-events",c='\n            <span class="calendar-day-events">\n              <span class="calendar-day-event"></span>\n            </span>\n          ',Array.isArray(r.events))){var b=[];r.events.forEach((function(e){var r=e.color||"";b.indexOf(r)<0&&n.dateInRange(t,e)&&b.push(r)})),c='\n              <span class="calendar-day-events">\n                '.concat(b.map((function(e){return'\n                  <span class="calendar-day-event" style="'.concat(e?"background-color: ".concat(e):"",'"></span>\n                ').trim()})).join(""),"\n              </span>\n            ")}if(r.rangesClasses)for(var k=0;k<r.rangesClasses.length;k+=1)n.dateInRange(t,r.rangesClasses[k].range)&&(o+=" ".concat(r.rangesClasses[k].cssClass));u=!1,(p&&t<p||m&&t>m)&&(u=!0),r.disabled&&n.dateInRange(t,r.disabled)&&(u=!0),u&&(o+=" calendar-day-disabled");var C=(t=new Date(t)).getFullYear(),T=t.getMonth(),x=n.dayFormatter.format(t);E+='\n          <div data-year="'.concat(C,'" data-month="').concat(T,'" data-day="').concat(i,'" class="calendar-day').concat(o,'" data-date="').concat(C,"-").concat(T,"-").concat(i,'">\n            <span class="calendar-day-number">').concat(x).concat(c,"</span>\n          </div>").trim()},T=1;T<=7;T+=1)C(T);b+='<div class="calendar-row">'.concat(E,"</div>")}return b='<div class="calendar-month" data-year="'.concat(a,'" data-month="').concat(s,'" data-locale-year="').concat(c,'" data-locale-month="').concat(l,'">').concat(b,"</div>")}},{key:"renderWeekHeader",value:function(){if(this.params.renderWeekHeader)return this.params.renderWeekHeader.call(this);for(var e=this.params,t="",n=0;n<7;n+=1){var r=n+e.firstDay>6?n-7+e.firstDay:n+e.firstDay,i=this.dayNamesShort[r];t+='<div class="calendar-week-day">'.concat(i,"</div>")}return'\n    <div class="calendar-week-header">\n      '.concat(t,"\n    </div>\n  ").trim()}},{key:"renderMonthSelector",value:function(){return this.params.renderMonthSelector?this.params.renderMonthSelector.call(this):'\n    <div class="calendar-month-selector">\n      <a class="link icon-only calendar-prev-month-button">\n        <i class="icon icon-prev"></i>\n      </a>\n      '.concat(this.params.monthPicker?'\n        <a class="current-month-value link"></a>\n      ':'\n        <span class="current-month-value"></span>\n      ','\n      <a class="link icon-only calendar-next-month-button">\n        <i class="icon icon-next"></i>\n      </a>\n    </div>\n  ').trim()}},{key:"renderMonthPicker",value:function(){var e=parseInt(this.$el.find(".calendar-month-current").attr("data-locale-month"),10);return'\n      <div class="calendar-month-picker">\n        '.concat(this.monthNames.map((function(t,n){return'\n          <div class="calendar-month-picker-item '.concat(e===n?"calendar-month-picker-item-current":"",'">\n            <span>').concat(t,"</span>\n          </div>\n        ")})).join(""),"\n      </div>\n    ")}},{key:"renderYearSelector",value:function(){return this.params.renderYearSelector?this.params.renderYearSelector.call(this):'\n    <div class="calendar-year-selector">\n      <a class="link icon-only calendar-prev-year-button">\n        <i class="icon icon-prev"></i>\n      </a>\n      '.concat(this.params.yearPicker?'\n        <a class="current-year-value link"></a>\n      ':'\n        <span class="current-year-value"></span>\n      ','\n      <a class="link icon-only calendar-next-year-button">\n        <i class="icon icon-next"></i>\n      </a>\n    </div>\n  ').trim()}},{key:"renderYearPicker",value:function(){var e=this,t=e.currentYear,n=e.params.yearPickerMin||(new Date).getFullYear()-100;e.params.minDate&&(n=Math.max(n,new Date(e.params.minDate).getFullYear()));var r=e.params.yearPickerMax||(new Date).getFullYear()+100;e.params.maxDate&&(r=Math.min(r,new Date(e.params.maxDate).getFullYear()));for(var i=[],o=n;o<=r;o+=1)i.push(o);return'\n      <div class="calendar-year-picker">\n        '.concat(i.map((function(n){return'\n          <div data-year="'.concat(n,'" class="calendar-year-picker-item ').concat(n===t?"calendar-year-picker-item-current":"",'">\n            <span>').concat(e.yearFormatter.format((new Date).setFullYear(n)),"</span>\n          </div>\n        ")})).join(""),"\n      </div>\n    ")}},{key:"renderTimeSelector",value:function(){var e,t=this.value&&this.value[0];return t&&(e=this.timeSelectorFormatter.format(t)),'\n      <div class="calendar-time-selector"><a class="link">'.concat(e||this.params.timePickerPlaceholder,"</a></div>\n    ")}},{key:"renderHeader",value:function(){return this.params.renderHeader?this.params.renderHeader.call(this):'\n    <div class="calendar-header">\n      <div class="calendar-selected-date">'.concat(this.params.headerPlaceholder,"</div>\n    </div>\n  ").trim()}},{key:"renderFooter",value:function(){var e=this.app;return this.params.renderFooter?this.params.renderFooter.call(this):'\n    <div class="calendar-footer">\n      <a class="'.concat("md"===e.theme?"button":"link",' calendar-close sheet-close popover-close">').concat(this.params.toolbarCloseText,"</a>\n    </div>\n  ").trim()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n    <div class="toolbar toolbar-top no-shadow">\n      <div class="toolbar-inner">\n        '.concat(this.params.monthSelector?this.renderMonthSelector():"","\n        ").concat(this.params.yearSelector?this.renderYearSelector():"","\n      </div>\n    </div>\n  ").trim()}},{key:"renderInline",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,o=e.rangePicker,a=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="calendar calendar-inline '.concat(o?"calendar-range":""," ").concat(t||"",'">\n      ').concat(r?this.renderHeader():"","\n      ").concat(n?this.renderToolbar():"","\n      ").concat(a?this.renderWeekHeader():"",'\n      <div class="calendar-months">\n        ').concat(this.renderMonths(c),"\n      </div>\n      ").concat(l?this.renderTimeSelector():"","\n      ").concat(i?this.renderFooter():"","\n    </div>\n  ").trim()}},{key:"renderCustomModal",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,o=e.rangePicker,a=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="calendar calendar-modal '.concat(o?"calendar-range":""," ").concat(t||"",'">\n      ').concat(r?this.renderHeader():"","\n      ").concat(n?this.renderToolbar():"","\n      ").concat(a?this.renderWeekHeader():"",'\n      <div class="calendar-months">\n        ').concat(this.renderMonths(c),"\n      </div>\n      ").concat(l?this.renderTimeSelector():"","\n      ").concat(i?this.renderFooter():"","\n    </div>\n  ").trim()}},{key:"renderSheet",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,o=e.rangePicker,a=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="sheet-modal calendar calendar-sheet '.concat(o?"calendar-range":""," ").concat(t||"",'">\n      ').concat(r?this.renderHeader():"","\n      ").concat(n?this.renderToolbar():"","\n      ").concat(a?this.renderWeekHeader():"",'\n      <div class="sheet-modal-inner calendar-months">\n        ').concat(this.renderMonths(c),"\n      </div>\n      ").concat(l?this.renderTimeSelector():"","\n      ").concat(i?this.renderFooter():"","\n    </div>\n  ").trim()}},{key:"renderPopover",value:function(){var e=this.params,t=e.cssClass,n=e.toolbar,r=e.header,i=e.footer,o=e.rangePicker,a=e.weekHeader,s=this.value,l=this.hasTimePicker,c=s&&s.length?s[0]:(new Date).setHours(0,0,0);return'\n    <div class="popover calendar-popover">\n      <div class="popover-inner">\n        <div class="calendar '.concat(o?"calendar-range":""," ").concat(t||"",'">\n        ').concat(r?this.renderHeader():"","\n        ").concat(n?this.renderToolbar():"","\n        ").concat(a?this.renderWeekHeader():"",'\n        <div class="calendar-months">\n          ').concat(this.renderMonths(c),"\n        </div>\n        ").concat(l?this.renderTimeSelector():"","\n        ").concat(i?this.renderFooter():"","\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"render",value:function(){var e=this.params;if(e.render)return e.render.call(this);if(!this.inline){var t=e.openIn;return"auto"===t&&(t=this.isPopover()?"popover":"sheet"),"popover"===t?this.renderPopover():"sheet"===t?this.renderSheet():this.renderCustomModal()}return this.renderInline()}},{key:"openTimePicker",value:function(){var e=this.$el,t=this.app;if(e&&e.length){e.append('<div class="calendar-time-picker"></div>');for(var n,r=[],i=[],o=0;o<=23;o+=1)r.push(o);for(var a=0;a<=59;a+=1)i.push(a);n=this.value&&this.value.length?[this.value[0].getHours(),this.value[0].getMinutes()]:[(new Date).getHours(),(new Date).getMinutes()],this.timePickerInstance=t.picker.create({containerEl:e.find(".calendar-time-picker"),value:n,toolbar:!0,rotateEffect:!1,toolbarCloseText:this.params.toolbarCloseText,cols:[{values:r},{divider:!0,content:":"},{values:i,displayValues:i.map((function(e){return e<10?"0".concat(e):e}))}]}),this.timePickerInstance.$el.find(".toolbar a").removeClass("sheet-close popover-close").addClass("calendar-time-picker-close")}}},{key:"closeTimePicker",value:function(){if(this.timePickerInstance){var e=Go(this.timePickerInstance.value.map((function(e){return parseInt(e,10)})),2),t=e[0],n=e[1],r=this.value&&this.value.length&&this.value[0];r?(r=new Date(r)).setHours(t,n):(r=new Date).setHours(t,n,0,0),this.setValue([r]),this.timePickerInstance.close(),this.timePickerInstance.destroy(),delete this.timePickerInstance}this.$el&&this.$el.length&&this.$el.find(".calendar-time-picker").remove()}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,o=e.inline,a=e.value,s=e.params;e.closing=!1,e.opened=!0,e.opening=!0,e.attachCalendarEvents();var l=!a&&s.value;t?a&&e.setValue(a,0):a?e.setValue(a,0):s.value&&e.setValue(e.normalizeValues(s.value),0),e.updateCurrentMonthYear(),e.monthsTranslate=0,e.setMonthsTranslate(),l?e.updateValue():s.header&&a&&e.updateValue(!0),!o&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,e.$months.each((function(t,n){e.emit("local::monthAdd calendarMonthAdd",n)})),n&&n.trigger("calendar:open"),i&&i.trigger("calendar:open"),e.emit("local::open calendarOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("calendar:opened"),this.$inputEl&&this.$inputEl.trigger("calendar:opened"),this.emit("local::opened calendarOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opening=!1,this.closing=!0,this.$inputEl&&"md"===e.theme&&this.$inputEl.trigger("blur"),this.detachCalendarEvents&&this.detachCalendarEvents(),this.$el&&this.$el.trigger("calendar:close"),this.$inputEl&&this.$inputEl.trigger("calendar:close"),this.emit("local::close calendarClose",this)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||$.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.timePickerInstance&&(e.timePickerInstance.destroy&&e.timePickerInstance.destroy(),delete e.timePickerInstance),e.$el&&e.$el.trigger("calendar:closed"),e.$inputEl&&e.$inputEl.trigger("calendar:closed"),e.emit("local::closed calendarClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,o=e.params;if(!n){if(r)return e.$el=g(e.render()),e.$el[0].f7Calendar=e,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var a=o.openIn;"auto"===a&&(a=e.isPopover()?"popover":"sheet");var s,l,c,u=e.render(),d={targetEl:i,scrollToEl:o.scrollToInput?i:void 0,content:u,backdrop:!0===o.backdrop||"popover"===a&&!1!==t.params.popover.backdrop&&!1!==o.backdrop,closeByBackdropClick:o.closeByBackdropClick,on:{open:function(){e.modal=this,e.$el="popover"===a?this.$el.find(".calendar"):this.$el,e.$wrapperEl=e.$el.find(".calendar-months-wrapper"),e.$months=e.$wrapperEl.find(".calendar-month"),e.$el[0].f7Calendar=e,"customModal"===a&&g(e.$el).find(".calendar-close").once("click",(function(){e.close()})),e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed()}}};"sheet"===a&&(d.push=o.sheetPush,d.swipeToClose=o.sheetSwipeToClose),o.routableModals&&e.view?e.view.router.navigate({url:e.url,route:(s={path:e.url},l=a,c=d,(l=Zo(l))in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,s)}):(e.modal=t[a].create(d),e.modal.open())}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init calendarInit",this);!this.initialized&&this.params.value&&this.setValue(this.normalizeValues(this.params.value)),this.$inputEl&&this.attachInputEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init calendarInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy calendarBeforeDestroy",this),e&&e.trigger("calendar:beforedestroy"),this.close(),this.$inputEl&&this.detachInputEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),this.timePickerInstance&&(this.timePickerInstance.destroy&&this.timePickerInstance.destroy(),delete this.timePickerInstance),e&&e.length&&delete this.$el[0].f7Calendar,$.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.$inputEl,n=this.app,r=this.params;return r.view?e=r.view:t&&(e=t.parents(".view").length&&t.parents(".view")[0].f7View),e||(e=n.views.main),e}}]),t}(W),oa={name:"calendar",static:{Calendar:ia},create:function(){this.calendar=X({defaultSelector:".calendar",constructor:ia,app:this,domProp:"f7Calendar"}),this.calendar.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".calendar",t=g(e);if(0!==t.length){var n=t[0].f7Calendar;!n||n&&!n.opened||n.close()}}},params:{calendar:{dateFormat:void 0,monthNames:"auto",monthNamesShort:"auto",dayNames:"auto",dayNamesShort:"auto",locale:void 0,firstDay:1,weekendDays:[0,6],multiple:!1,rangePicker:!1,rangePickerMinDays:1,rangePickerMaxDays:0,direction:"horizontal",minDate:null,maxDate:null,disabled:null,events:null,rangesClasses:null,touchMove:!0,animate:!0,closeOnSelect:!1,monthSelector:!0,monthPicker:!0,yearSelector:!0,yearPicker:!0,yearPickerMin:void 0,yearPickerMax:void 0,timePicker:!1,timePickerFormat:{hour:"numeric",minute:"numeric"},timePickerPlaceholder:"Select time",weekHeader:!0,value:null,containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,header:!1,headerPlaceholder:"Select date",toolbar:!0,toolbarCloseText:"Done",footer:!1,cssClass:null,routableModals:!0,view:null,url:"date/",backdrop:null,closeByBackdropClick:!0,renderWeekHeader:null,renderMonths:null,renderMonth:null,renderMonthSelector:null,renderYearSelector:null,renderHeader:null,renderFooter:null,renderToolbar:null,renderInline:null,renderPopover:null,renderSheet:null,render:null}}},aa=function(e,t){var n=this,r=n.app,i=g(e),o=i.index(),a=n.cols[o];if(!a.divider){var s,l,c,u,d;a.$el=i,a.el=i[0],a.$itemsEl=a.$el.find(".picker-items"),a.items=a.$itemsEl.find(".picker-item"),a.replaceValues=function(e,t){a.detachEvents(),a.values=e,a.displayValues=t,a.$itemsEl.html(n.renderColumn(a,!0)),a.items=a.$itemsEl.find(".picker-item"),a.calcSize(),a.setValue(a.values[0],0,!0),a.attachEvents()},a.calcSize=function(){n.params.rotateEffect&&(a.$el.removeClass("picker-column-absolute"),a.width||a.$el.css({width:""}));var e=0,t=a.$el[0].offsetHeight;s=a.items[0].offsetHeight,l=s*a.items.length,c=t/2-l+s/2,u=t/2-s/2,a.width&&(e=a.width,parseInt(e,10)===e&&(e+="px"),a.$el.css({width:e})),n.params.rotateEffect&&(a.width||(a.items.each((function(t,n){var r=g(n).children("span");e=Math.max(e,r[0].offsetWidth)})),a.$el.css({width:"".concat(e+2,"px")})),a.$el.addClass("picker-column-absolute"))},a.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=a.$itemsEl.find('.picker-item[data-picker-value="'.concat(e,'"]')).index();if(void 0!==i&&-1!==i){var o=-i*s+u;a.$itemsEl.transition(t),a.$itemsEl.transform("translate3d(0,".concat(o,"px,0)")),n.params.updateValuesOnMomentum&&a.activeIndex&&a.activeIndex!==i&&($.cancelAnimationFrame(d),a.$itemsEl.transitionEnd((function(){$.cancelAnimationFrame(d)})),T()),a.updateItems(i,o,t,r)}},a.updateItems=function(e,t,r,i){void 0===t&&(t=$.getTranslate(a.$itemsEl[0],"y")),void 0===e&&(e=-Math.round((t-u)/s)),e<0&&(e=0),e>=a.items.length&&(e=a.items.length-1);var o=a.activeIndex;a.activeIndex=e,a.$itemsEl.find(".picker-item-selected").removeClass("picker-item-selected"),a.items.transition(r);var l=a.items.eq(e).addClass("picker-item-selected").transform("");n.params.rotateEffect&&a.items.each((function(e,r){var i=g(r),o=(i.index()*s-(u-t))/s,l=Math.ceil(a.height/s/2)+1,c=-18*o;c>180&&(c=180),c<-180&&(c=-180),Math.abs(o)>l?i.addClass("picker-item-far"):i.removeClass("picker-item-far"),i.transform("translate3d(0, ".concat(-t+u,"px, ").concat(n.needsOriginFix?-110:0,"px) rotateX(").concat(c,"deg)"))})),(i||void 0===i)&&(a.value=l.attr("data-picker-value"),a.displayValue=a.displayValues?a.displayValues[e]:a.value,o!==e&&(a.onChange&&a.onChange(n,a.value,a.displayValue),n.updateValue()))};var h,f,p,m,v,y,b,_,w,k,S,E=!0,C=!!r.support.passiveListener&&{passive:!1,capture:!1};a.attachEvents=function(){a.$el.on(r.touchEvents.start,x,C),r.on("touchmove:active",M),r.on("touchend:passive",P),n.params.mousewheel&&a.$el.on("wheel",O),a.items.on("click",L)},a.detachEvents=function(){a.$el.off(r.touchEvents.start,x,C),r.off("touchmove:active",M),r.off("touchend:passive",P),n.params.mousewheel&&a.$el.off("wheel",O),a.items.off("click",L)},a.init=function(){a.calcSize(),a.$itemsEl.transform("translate3d(0,".concat(u,"px,0)")).transition(0),0===o&&a.$el.addClass("picker-column-first"),o===n.cols.length-1&&a.$el.addClass("picker-column-last"),t&&a.updateItems(0,u,0),a.attachEvents()},a.destroy=function(){a.detachEvents()},a.init()}function T(){d=$.requestAnimationFrame((function(){a.updateItems(void 0,void 0,0),T()}))}function x(e){f||h||(e.preventDefault(),h=!0,p="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,m=p,v=(new Date).getTime(),E=!0,y=$.getTranslate(a.$itemsEl[0],"y"),_=y)}function M(e){h&&(e.preventDefault(),E=!1,m="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,f||($.cancelAnimationFrame(d),f=!0,y=$.getTranslate(a.$itemsEl[0],"y"),_=y,a.$itemsEl.transition(0)),b=void 0,(_=y+(m-p))<c&&(_=c-Math.pow(c-_,.8),b="min"),_>u&&(_=u+Math.pow(_-u,.8),b="max"),a.$itemsEl.transform("translate3d(0,".concat(_,"px,0)")),a.updateItems(void 0,_,0,n.params.updateValuesOnTouchmove),k=_-w||_,w=_)}function P(){if(!h||!f)return h=!1,void(f=!1);var e;h=!1,f=!1,a.$itemsEl.transition(""),b&&("min"===b?a.$itemsEl.transform("translate3d(0,".concat(c,"px,0)")):a.$itemsEl.transform("translate3d(0,".concat(u,"px,0)"))),e=(new Date).getTime()-v>300?_:_+k*n.params.momentumRatio,e=Math.max(Math.min(e,u),c);var t=Math.round(Math.abs((e-u)/s));n.params.freeMode||(e=-t*s+u),a.$itemsEl.transform("translate3d(0,".concat(parseInt(e,10),"px,0)")),a.updateItems(t,e,"",!0),n.params.updateValuesOnMomentum&&(T(),a.$itemsEl.transitionEnd((function(){$.cancelAnimationFrame(d)}))),setTimeout((function(){E=!0}),100)}function O(e){var t=e.deltaX,r=e.deltaY;Math.abs(t)>Math.abs(r)||(clearTimeout(S),e.preventDefault(),$.cancelAnimationFrame(d),y=$.getTranslate(a.$itemsEl[0],"y"),a.$itemsEl.transition(0),b=void 0,(_=y-r)<c&&(_=c,b="min"),_>u&&(_=u,b="max"),a.$itemsEl.transform("translate3d(0,".concat(_,"px,0)")),a.updateItems(void 0,_,0,n.params.updateValuesOnMousewheel),S=setTimeout((function(){a.$itemsEl.transition(""),b&&("min"===b?a.$itemsEl.transform("translate3d(0,".concat(c,"px,0)")):a.$itemsEl.transform("translate3d(0,".concat(u,"px,0)"))),(new Date).getTime();var e=_;e=Math.max(Math.min(e,u),c);var t=Math.round(Math.abs((e-u)/s));n.params.freeMode||(e=-t*s+u),a.$itemsEl.transform("translate3d(0,".concat(parseInt(e,10),"px,0)")),a.updateItems(t,e,"",!0)}),200))}function L(){if(E){$.cancelAnimationFrame(d);var e=g(this).attr("data-picker-value");a.setValue(e)}}};function sa(e){return(sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function la(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ua(r.key),r)}}function ua(e){var t=function(e,t){if("object"!=sa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sa(t)?t:t+""}function da(e,t){if(t&&("object"==sa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fa(e)}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pa(e,t){return(pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ma=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};la(this,t);var i,o,a=fa(n=da(this,ha(t).call(this,r,[e])));if(a.params=$.extend({},e.params.picker,r),a.params.containerEl&&0===(i=g(a.params.containerEl)).length)return da(n,a);a.params.inputEl&&(o=g(a.params.inputEl));var l=a.params.scrollToInput?o:void 0;if(a.params.scrollToEl){var c=g(a.params.scrollToEl);c.length>0&&(l=c)}function u(){a.resizeCols()}function d(){a.open()}function h(e){e.preventDefault()}function f(e){if(!a.destroyed&&a.params){var t=g(e.target);a.isPopover()||a.opened&&!a.closing&&(t.closest('[class*="backdrop"]').length||(o&&o.length>0?t[0]!==o[0]&&0===t.closest(".sheet-modal").length&&a.close():0===g(e.target).closest(".sheet-modal").length&&a.close()))}}return $.extend(a,{app:e,$containerEl:i,containerEl:i&&i[0],inline:i&&i.length>0,needsOriginFix:e.device.ios||s.navigator.userAgent.toLowerCase().indexOf("safari")>=0&&s.navigator.userAgent.toLowerCase().indexOf("chrome")<0&&!e.device.android,cols:[],$inputEl:o,inputEl:o&&o[0],$scrollToEl:l,initialized:!1,opened:!1,url:a.params.url}),$.extend(a,{attachResizeEvent:function(){e.on("resize",u)},detachResizeEvent:function(){e.off("resize",u)},attachInputEvents:function(){a.$inputEl.on("click",d),a.params.inputReadOnly&&a.$inputEl.on("focus mousedown",h)},detachInputEvents:function(){a.$inputEl.off("click",d),a.params.inputReadOnly&&a.$inputEl.off("focus mousedown",h)},attachHtmlEvents:function(){e.on("click",f)},detachHtmlEvents:function(){e.off("click",f)}}),a.init(),da(n,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pa(e,t)}(t,e),function(e,t,n){t&&ca(e.prototype,t),n&&ca(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"resizeCols",value:function(){if(this.opened)for(var e=0;e<this.cols.length;e+=1)this.cols[e].divider||(this.cols[e].calcSize(),this.cols[e].setValue(this.cols[e].value,0,!1))}},{key:"isPopover",value:function(){var e=this.app,t=this.modal,n=this.params;if("sheet"===n.openIn)return!1;if(t&&"popover"!==t.type)return!1;if(!this.inline&&this.inputEl){if("popover"===n.openIn)return!0;if(e.device.ios)return!!e.device.ipad;if(e.width>=768)return!0;if(e.device.desktop&&"aurora"===e.theme)return!0}return!1}},{key:"formatValue",value:function(){var e=this.value,t=this.displayValue;return this.params.formatValue?this.params.formatValue.call(this,e,t):e.join(" ")}},{key:"setValue",value:function(e,t){var n=0;if(0===this.cols.length)return this.value=e,void this.updateValue(e);for(var r=0;r<this.cols.length;r+=1)this.cols[r]&&!this.cols[r].divider&&(this.cols[r].setValue(e[n],t),n+=1)}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(e){var t,n=e||[],r=[];if(0===this.cols.length)for(var i=this.params.cols.filter((function(e){return!e.divider})),o=0;o<i.length;o+=1)void 0!==(t=i[o]).displayValues&&void 0!==t.values&&-1!==t.values.indexOf(n[o])?r.push(t.displayValues[t.values.indexOf(n[o])]):r.push(n[o]);else for(var a=0;a<this.cols.length;a+=1)this.cols[a].divider||(n.push(this.cols[a].value),r.push(this.cols[a].displayValue));n.indexOf(void 0)>=0||(this.value=n,this.displayValue=r,this.emit("local::change pickerChange",this,this.value,this.displayValue),this.inputEl&&(this.$inputEl.val(this.formatValue()),this.$inputEl.trigger("change")))}},{key:"initColumn",value:function(e,t){aa.call(this,e,t)}},{key:"destroyColumn",value:function(e){var t=g(e).index();this.cols[t]&&this.cols[t].destroy&&this.cols[t].destroy()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n      <div class="toolbar toolbar-top no-shadow">\n        <div class="toolbar-inner">\n          <div class="left"></div>\n          <div class="right">\n            <a class="link sheet-close popover-close">'.concat(this.params.toolbarCloseText,"</a>\n          </div>\n        </div>\n      </div>\n    ").trim()}},{key:"renderColumn",value:function(e,t){var n,r,i="picker-column ".concat(e.textAlign?"picker-column-".concat(e.textAlign):""," ").concat(e.cssClass||"");return e.divider?n='\n        <div class="'.concat(i,' picker-column-divider">').concat(e.content,"</div>\n      "):(r=e.values.map((function(t,n){return'\n        <div class="picker-item" data-picker-value="'.concat(t,'">\n          <span>').concat(e.displayValues?e.displayValues[n]:t,"</span>\n        </div>\n      ")})).join(""),n='\n        <div class="'.concat(i,'">\n          <div class="picker-items">').concat(r,"</div>\n        </div>\n      ")),t?r.trim():n.trim()}},{key:"renderInline",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n      <div class="picker picker-inline '.concat(n?"picker-3d":""," ").concat(r||"",'">\n        ').concat(i?e.renderToolbar():"",'\n        <div class="picker-columns">\n          ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n          <div class="picker-center-highlight"></div>\n        </div>\n      </div>\n    ').trim()}},{key:"renderSheet",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n      <div class="sheet-modal picker picker-sheet '.concat(n?"picker-3d":""," ").concat(r||"",'">\n        ').concat(i?e.renderToolbar():"",'\n        <div class="sheet-modal-inner picker-columns">\n          ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n          <div class="picker-center-highlight"></div>\n        </div>\n      </div>\n    ').trim()}},{key:"renderPopover",value:function(){var e=this,t=e.params,n=t.rotateEffect,r=t.cssClass,i=t.toolbar;return'\n      <div class="popover picker-popover">\n        <div class="popover-inner">\n          <div class="picker '.concat(n?"picker-3d":""," ").concat(r||"",'">\n            ').concat(i?e.renderToolbar():"",'\n            <div class="picker-columns">\n              ').concat(e.cols.map((function(t){return e.renderColumn(t)})).join(""),'\n              <div class="picker-center-highlight"></div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ').trim()}},{key:"render",value:function(){return this.params.render?this.params.render.call(this):this.inline?this.renderInline():this.isPopover()?this.renderPopover():this.renderSheet()}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,o=e.inline,a=e.value,s=e.params;e.opened=!0,e.closing=!1,e.opening=!0,e.attachResizeEvent(),n.find(".picker-column").each((function(n,r){var i=!0;(!t&&s.value||t&&a)&&(i=!1),e.initColumn(r,i)})),t?a&&e.setValue(a,0):a?e.setValue(a,0):s.value&&e.setValue(s.value,0),!o&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,n&&n.trigger("picker:open"),i&&i.trigger("picker:open"),e.emit("local::open pickerOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("picker:opened"),this.$inputEl&&this.$inputEl.trigger("picker:opened"),this.emit("local::opened pickerOpened",this)}},{key:"onClose",value:function(){var e=this.app;this.opening=!1,this.closing=!0,this.detachResizeEvent(),this.cols.forEach((function(e){e.destroy&&e.destroy()})),this.$inputEl&&"md"===e.theme&&this.$inputEl.trigger("blur"),this.$el&&this.$el.trigger("picker:close"),this.$inputEl&&this.$inputEl.trigger("picker:close"),this.emit("local::close pickerClose",this)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||$.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.$el&&e.$el.trigger("picker:closed"),e.$inputEl&&e.$inputEl.trigger("picker:closed"),e.emit("local::closed pickerClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,o=e.$scrollToEl,a=e.params;if(!n){if(0===e.cols.length&&a.cols.length&&a.cols.forEach((function(t){e.cols.push(t)})),r)return e.$el=g(e.render()),e.$el[0].f7Picker=e,e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var s,l,c,u=e.isPopover(),d=u?"popover":"sheet",h={targetEl:i,scrollToEl:o,content:e.render(),backdrop:void 0!==a.backdrop?a.backdrop:u,on:{open:function(){e.modal=this,e.$el=u?this.$el.find(".picker"):this.$el,e.$el[0].f7Picker=e,e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed()}}};"sheet"===d&&(h.push=a.sheetPush,h.swipeToClose=a.sheetSwipeToClose),a.routableModals&&e.view?e.view.router.navigate({url:e.url,route:(s={path:e.url},l=d,c=h,(l=ua(l))in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,s)}):(e.modal=t[d].create(h),e.modal.open())}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init pickerInit",this);!this.initialized&&this.params.value&&this.setValue(this.params.value),this.$inputEl&&this.attachInputEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init pickerInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy pickerBeforeDestroy",this),e&&e.trigger("picker:beforedestroy"),this.close(),this.$inputEl&&this.detachInputEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),e&&e.length&&delete this.$el[0].f7Picker,$.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.app,n=this.params,r=this.$inputEl;return n.view?e=n.view:r&&(e=r.parents(".view").length&&r.parents(".view")[0].f7View),e||(e=t.views.main),e}}]),t}(W),va={name:"picker",static:{Picker:ma},create:function(){this.picker=X({defaultSelector:".picker",constructor:ma,app:this,domProp:"f7Picker"}),this.picker.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".picker",t=g(e);if(0!==t.length){var n=t[0].f7Picker;!n||n&&!n.opened||n.close()}}},params:{picker:{updateValuesOnMomentum:!1,updateValuesOnTouchmove:!0,updateValuesOnMousewheel:!0,mousewheel:!0,rotateEffect:!1,momentumRatio:7,freeMode:!1,cols:[],containerEl:null,openIn:"auto",sheetPush:!1,sheetSwipeToClose:void 0,backdrop:void 0,formatValue:null,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,scrollToEl:void 0,toolbar:!0,toolbarCloseText:"Done",cssClass:null,routableModals:!0,view:null,url:"select/",renderToolbar:null,render:null}}},ga={handleScroll:function(e,t){var n,r=g(e),i=r[0].scrollTop,o=r[0].scrollHeight,a=r[0].offsetHeight,s=r[0].getAttribute("data-infinite-distance"),l=r.find(".virtual-list"),c=r.hasClass("infinite-scroll-top");if(s||(s=50),"string"==typeof s&&s.indexOf("%")>=0&&(s=parseInt(s,10)/100*a),s>a&&(s=a),c)i<s&&(r.trigger("infinite",t),this.emit("infinite",r[0],t));else if(i+a>=o-s){if(l.length>0&&(n=l.eq(-1)[0].f7VirtualList)&&!n.reachEnd&&!n.params.updatableScroll)return;r.trigger("infinite",t),this.emit("infinite",r[0],t)}},create:function(e){var t=g(e),n=this;function r(e){n.infiniteScroll.handle(this,e)}t.each((function(e,t){t.f7InfiniteScrollHandler=r,t.addEventListener("scroll",t.f7InfiniteScrollHandler)}))},destroy:function(e){g(e).each((function(e,t){t.removeEventListener("scroll",t.f7InfiniteScrollHandler),delete t.f7InfiniteScrollHandler}))}},ya={name:"infiniteScroll",create:function(){$.extend(this,{infiniteScroll:{handle:ga.handleScroll.bind(this),create:ga.create.bind(this),destroy:ga.destroy.bind(this)}})},on:{tabMounted:function(e){var t=this,n=g(e),r=n.find(".infinite-scroll-content");n.is(".infinite-scroll-content")&&r.add(n),r.each((function(e,n){t.infiniteScroll.create(n)}))},tabBeforeRemove:function(e){var t=g(e),n=this,r=t.find(".infinite-scroll-content");t.is(".infinite-scroll-content")&&r.add(t),r.each((function(e,t){n.infiniteScroll.destroy(t)}))},pageInit:function(e){var t=this;e.$el.find(".infinite-scroll-content").each((function(e,n){t.infiniteScroll.create(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".infinite-scroll-content").each((function(e,n){t.infiniteScroll.destroy(n)}))}}};function ba(e){return(ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wa(r.key),r)}}function wa(e){var t=function(e,t){if("object"!=ba(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ba(t)?t:t+""}function ka(e,t){if(t&&("object"==ba(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ea(e)}function Sa(e){return(Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ca(e,t){return(Ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ta=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=Ea(r=ka(this,Sa(t).call(this,{},[e]))),o=g(n),a=o.find(".ptr-preloader");i.$el=o,i.el=o[0],i.app=e,i.bottom=i.$el.hasClass("ptr-bottom"),i.useModulesParams({});var s,l,c,u="md"===e.theme,d="ios"===e.theme,h="aurora"===e.theme;i.done=function(){return(u?a:o).transitionEnd((function(){o.removeClass("ptr-transitioning ptr-pull-up ptr-pull-down ptr-closing"),o.trigger("ptr:done"),i.emit("local::done ptrDone",o[0])})),o.removeClass("ptr-refreshing").addClass("ptr-transitioning ptr-closing"),i},i.refresh=function(){return o.hasClass("ptr-refreshing")||(o.addClass("ptr-transitioning ptr-refreshing"),o.trigger("ptr:refresh",i.done),i.emit("local::refresh ptrRefresh",o[0],i.done)),i},i.mousewheel="true"===o.attr("data-ptr-mousewheel");var f,p,m,v,y,b,_,w,k,S,E,C,T,x={},M=!1,$=!1,L=!1,A=0,I=!1,D=o.parents(".page");if((D.find(".navbar").length>0||D.parents(".view").children(".navbars").length>0)&&(I=!0),D.hasClass("no-navbar")&&(I=!1),!i.bottom){var N=e.navbar.getElByPage(D[0]);if(N){var R=g(N),j=R.hasClass("navbar-large-transparent")||R.hasClass("navbar-large")&&R.hasClass("navbar-transparent"),B=R.hasClass("navbar-transparent")&&!R.hasClass("navbar-large");j?o.addClass("ptr-with-navbar-large-transparent"):B&&o.addClass("ptr-with-navbar-transparent")}}function Y(e){if(l){if("android"!==O.os)return;if("targetTouches"in e&&e.targetTouches.length>1)return}o.hasClass("ptr-refreshing")||g(e.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length||(c=!1,w=!1,l=!0,f=void 0,y=void 0,"touchstart"===e.type&&(s=e.targetTouches[0].identifier),x.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,x.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY)}function F(e){if(l){var t,r,d;if("touchmove"===e.type){if(s&&e.touches)for(var h=0;h<e.touches.length;h+=1)e.touches[h].identifier===s&&(d=e.touches[h]);d||(d=e.targetTouches[0]),t=d.pageX,r=d.pageY}else t=e.pageX,r=e.pageY;if(t&&r)if(void 0===f&&(f=!!(f||Math.abs(r-x.y)>Math.abs(t-x.x))),f){if(v=o[0].scrollTop,!c){var C;if(o.removeClass("ptr-transitioning"),k=o[0].scrollHeight,S=o[0].offsetHeight,i.bottom&&(E=k-S),v>k)return void(l=!1);var T=g(e.target).closest(".ptr-watch-scroll");if(T.length&&T.each((function(e,t){t!==n&&t.scrollHeight>t.offsetHeight&&"auto"===g(t).css("overflow")&&(!i.bottom&&t.scrollTop>0||i.bottom&&t.scrollTop<t.scrollHeight-t.offsetHeight)&&(C=!0)})),C)return void(l=!1);_&&(b=o.attr("data-ptr-distance")).indexOf("%")>=0&&(b=k*parseInt(b,10)/100),A=o.hasClass("ptr-refreshing")?b:0,$=!(k!==S&&"ios"===O.os&&!u),L=!1}c=!0,p=r-x.y,void 0===y&&(i.bottom?v!==E:0!==v)&&(y=!0),(i.bottom?p<0&&v>=E||v>E:p>0&&v<=0||v<0)?("ios"===O.os&&parseInt(O.osVersion.split(".")[0],10)>7&&(i.bottom||0!==v||y||($=!0),i.bottom&&v===E&&!y&&($=!0)),$||!i.bottom||u||(o.css("-webkit-overflow-scrolling","auto"),o.scrollTop(E),L=!0),($||L)&&(e.cancelable&&e.preventDefault(),m=(i.bottom?-1*Math.pow(Math.abs(p),.85):Math.pow(p,.85))+A,u?a.transform("translate3d(0,".concat(m,"px,0)")).find(".ptr-arrow").transform("rotate(".concat(Math.abs(p)/66*180+100,"deg)")):i.bottom?o.children().transform("translate3d(0,".concat(m,"px,0)")):o.transform("translate3d(0,".concat(m,"px,0)"))),($||L)&&Math.pow(Math.abs(p),.85)>b||!$&&Math.abs(p)>=2*b?(M=!0,o.addClass("ptr-pull-up").removeClass("ptr-pull-down")):(M=!1,o.removeClass("ptr-pull-up").addClass("ptr-pull-down")),w||(o.trigger("ptr:pullstart"),i.emit("local::pullStart ptrPullStart",o[0]),w=!0),o.trigger("ptr:pullmove",{event:e,scrollTop:v,translate:m,touchesDiff:p}),i.emit("local::pullMove ptrPullMove",o[0],{event:e,scrollTop:v,translate:m,touchesDiff:p})):(w=!1,o.removeClass("ptr-pull-up ptr-pull-down"),M=!1)}else l=!1}}function H(e){return"touchend"===e.type&&e.changedTouches&&e.changedTouches.length>0&&s&&e.changedTouches[0].identifier!==s?(l=!1,f=!1,c=!1,void(s=null)):l&&c?(m&&(o.addClass("ptr-transitioning"),m=0),u?a.transform("").find(".ptr-arrow").transform(""):i.bottom?o.children().transform(""):o.transform(""),$||!i.bottom||u||o.css("-webkit-overflow-scrolling",""),M?(o.addClass("ptr-refreshing"),o.trigger("ptr:refresh",i.done),i.emit("local::refresh ptrRefresh",o[0],i.done)):o.removeClass("ptr-pull-down"),l=!1,c=!1,void(w&&(o.trigger("ptr:pullend"),i.emit("local::pullEnd ptrPullEnd",o[0])))):(l=!1,void(c=!1))}I||i.bottom||o.addClass("ptr-no-navbar"),o.attr("data-ptr-distance")?_=!0:u?b=66:d?b=44:h&&(b=38);var U=!0,z=0;function V(){U=!0,T=!1,z=0,m&&(o.addClass("ptr-transitioning"),m=0),u?a.transform("").find(".ptr-arrow").transform(""):i.bottom?o.children().transform(""):o.transform(""),M?(o.addClass("ptr-refreshing"),o.trigger("ptr:refresh",i.done),i.emit("local::refresh ptrRefresh",o[0],i.done)):o.removeClass("ptr-pull-down"),w&&(o.trigger("ptr:pullend"),i.emit("local::pullEnd ptrPullEnd",o[0]))}function q(e){if(U){var t=e.deltaX,r=e.deltaY;if(!(Math.abs(t)>Math.abs(r)||o.hasClass("ptr-refreshing")||g(e.target).closest(".sortable-handler, .ptr-ignore, .card-expandable.card-opened").length)){if(clearTimeout(C),v=o[0].scrollTop,!T){var s;if(o.removeClass("ptr-transitioning"),k=o[0].scrollHeight,S=o[0].offsetHeight,i.bottom&&(E=k-S),v>k)return void(U=!1);var l=g(e.target).closest(".ptr-watch-scroll");if(l.length&&l.each((function(e,t){t!==n&&t.scrollHeight>t.offsetHeight&&"auto"===g(t).css("overflow")&&(!i.bottom&&t.scrollTop>0||i.bottom&&t.scrollTop<t.scrollHeight-t.offsetHeight)&&(s=!0)})),s)return void(U=!1);_&&(b=o.attr("data-ptr-distance")).indexOf("%")>=0&&(b=k*parseInt(b,10)/100)}c=!0,p=z-=r,void 0===y&&(i.bottom?v!==E:0!==v)&&(y=!0),(i.bottom?p<0&&v>=E||v>E:p>0&&v<=0||v<0)?(e.cancelable&&e.preventDefault(),m=p,Math.abs(m)>b&&(m=b+Math.pow(Math.abs(m)-b,.7),i.bottom&&(m=-m)),u?a.transform("translate3d(0,".concat(m,"px,0)")).find(".ptr-arrow").transform("rotate(".concat(Math.abs(p)/66*180+100,"deg)")):i.bottom?o.children().transform("translate3d(0,".concat(m,"px,0)")):o.transform("translate3d(0,".concat(m,"px,0)")),Math.abs(m)>b?(M=!0,o.addClass("ptr-pull-up").removeClass("ptr-pull-down")):(M=!1,o.removeClass("ptr-pull-up").addClass("ptr-pull-down")),w||(o.trigger("ptr:pullstart"),i.emit("local::pullStart ptrPullStart",o[0]),w=!0),o.trigger("ptr:pullmove",{event:e,scrollTop:v,translate:m,touchesDiff:p}),i.emit("local::pullMove ptrPullMove",o[0],{event:e,scrollTop:v,translate:m,touchesDiff:p})):(w=!1,o.removeClass("ptr-pull-up ptr-pull-down"),M=!1),C=setTimeout(V,300)}}}return D.length&&o.length?(o[0].f7PullToRefresh=i,i.attachEvents=function(){var t=!!P.passiveListener&&{passive:!0};o.on(e.touchEvents.start,Y,t),e.on("touchmove:active",F),e.on("touchend:passive",H),i.mousewheel&&!i.bottom&&o.on("wheel",q)},i.detachEvents=function(){var t=!!P.passiveListener&&{passive:!0};o.off(e.touchEvents.start,Y,t),e.off("touchmove:active",F),e.off("touchend:passive",H),i.mousewheel&&!i.bottom&&o.off("wheel",q)},i.useModules(),i.init(),ka(r,i)):ka(r,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ca(e,t)}(t,e),n=t,(r=[{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy ptrBeforeDestroy",e),e.$el.trigger("ptr:beforedestroy"),delete e.el.f7PullToRefresh,e.detachEvents(),$.deleteProps(e),e=null}}])&&_a(n.prototype,r),i&&_a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),xa={name:"pullToRefresh",create:function(){var e=this;e.ptr=$.extend(X({defaultSelector:".ptr-content",constructor:Ta,app:e,domProp:"f7PullToRefresh"}),{done:function(t){var n=e.ptr.get(t);if(n)return n.done()},refresh:function(t){var n=e.ptr.get(t);if(n)return n.refresh()}})},static:{PullToRefresh:Ta},on:{tabMounted:function(e){var t=this,n=g(e),r=n.find(".ptr-content");n.is(".ptr-content")&&r.add(n),r.each((function(e,n){t.ptr.create(n)}))},tabBeforeRemove:function(e){var t=g(e),n=this,r=t.find(".ptr-content");t.is(".ptr-content")&&r.add(t),r.each((function(e,t){n.ptr.destroy(t)}))},pageInit:function(e){var t=this;e.$el.find(".ptr-content").each((function(e,n){t.ptr.create(n)}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".ptr-content").each((function(e,n){t.ptr.destroy(n)}))}}},Ma={destroy:function(e){var t=g(e).closest(".page");t.length&&t[0].f7LazyDestroy&&t[0].f7LazyDestroy()},create:function(e){var t=this,n=g(e).closest(".page").eq(0),r=n.find(".lazy");if(0!==r.length||n.hasClass("lazy")){var i=t.params.lazy.placeholder;!1!==i&&r.each((function(e,t){g(t).attr("data-src")&&!g(t).attr("src")&&g(t).attr("src",i)}));var o=[],a=!1;if(t.params.lazy.observer&&P.intersectionObserver){var l=n[0].f7LazyObserver;return l||(l=new s.IntersectionObserver((function(e,n){e.forEach((function(e){if(e.isIntersecting){if(t.params.lazy.sequential&&a)return void(o.indexOf(e.target)<0&&o.push(e.target));a=!0,t.lazy.loadImage(e.target,c),n.unobserve(e.target)}}))}),{root:n[0]})),r.each((function(e,t){t.f7LazyObserverAdded||(t.f7LazyObserverAdded=!0,l.observe(t))})),void(n[0].f7LazyDestroy||(n[0].f7LazyDestroy=function(){l.disconnect(),delete n[0].f7LazyDestroy,delete n[0].f7LazyObserver}))}n[0].f7LazyDestroy||(n[0].f7LazyDestroy=function(){n[0].f7LazyAttached=!1,delete n[0].f7LazyAttached,n.off("lazy",u),n.off("scroll",u,!0),n.find(".tab").off("tab:mounted tab:show",u),t.off("resize",u)}),n[0].f7LazyAttached||(n[0].f7LazyAttached=!0,n.on("lazy",u),n.on("scroll",u,!0),n.find(".tab").on("tab:mounted tab:show",u),t.on("resize",u)),u()}function c(e){o.indexOf(e)>=0&&o.splice(o.indexOf(e),1),a=!1,t.params.lazy.sequential&&o.length>0&&(a=!0,t.lazy.loadImage(o[0],c))}function u(){t.lazy.load(n,(function(e){t.params.lazy.sequential&&a?o.indexOf(e)<0&&o.push(e):(a=!0,t.lazy.loadImage(e,c))}))}},isInViewport:function(e){var t=e.getBoundingClientRect(),n=this.params.lazy.threshold||0;return t.top>=0-n&&t.left>=0-n&&t.top<=this.height+n&&t.left<=this.width+n},loadImage:function(e,t){var n=this,r=g(e),i=r.attr("data-background"),o=i||r.attr("data-src");function a(){r.removeClass("lazy").addClass("lazy-loaded"),i?r.css("background-image","url(".concat(o,")")):o&&r.attr("src",o),t&&t(e),r.trigger("lazy:loaded"),n.emit("lazyLoaded",r[0])}if(!o)return r.trigger("lazy:load"),n.emit("lazyLoad",r[0]),void a();var l=new s.Image;l.onload=a,l.onerror=function(){r.removeClass("lazy").addClass("lazy-loaded"),i?r.css("background-image","url(".concat(n.params.lazy.placeholder||"",")")):r.attr("src",n.params.lazy.placeholder||""),t&&t(e),r.trigger("lazy:error"),n.emit("lazyError",r[0])},l.src=o,r.removeAttr("data-src").removeAttr("data-background"),r.trigger("lazy:load"),n.emit("lazyLoad",r[0])},load:function(e,t){var n=this,r=g(e);r.hasClass("page")||(r=r.parents(".page").eq(0)),0!==r.length&&r.find(".lazy").each((function(e,r){g(r).parents(".tab:not(.tab-active)").length>0||n.lazy.isInViewport(r)&&(t?t(r):n.lazy.loadImage(r))}))}},$a={name:"lazy",params:{lazy:{placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXCwsK592mkAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",threshold:0,sequential:!0,observer:!0}},create:function(){$.extend(this,{lazy:{create:Ma.create.bind(this),destroy:Ma.destroy.bind(this),loadImage:Ma.loadImage.bind(this),load:Ma.load.bind(this),isInViewport:Ma.isInViewport.bind(this)}})},on:{pageInit:function(e){(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.create(e.$el)},pageAfterIn:function(e){this.params.lazy.observer&&P.intersectionObserver||(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.create(e.$el)},pageBeforeRemove:function(e){(e.$el.find(".lazy").length>0||e.$el.hasClass("lazy"))&&this.lazy.destroy(e.$el)},tabMounted:function(e){var t=g(e);(t.find(".lazy").length>0||t.hasClass("lazy"))&&this.lazy.create(t)},tabBeforeRemove:function(e){if(!this.params.lazy.observer||!P.intersectionObserver){var t=g(e);(t.find(".lazy").length>0||t.hasClass("lazy"))&&this.lazy.destroy(t)}}}};function Pa(e){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function La(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Aa(r.key),r)}}function Aa(e){var t=function(e,t){if("object"!=Pa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pa(t)?t:t+""}function Ia(e,t){if(t&&("object"==Pa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Na(e)}function Da(e){return(Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ra(e,t){return(Ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ja=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oa(this,t);var i=Na(n=Ia(this,Da(t).call(this,r,[e]))),o={};i.useModulesParams(o),i.params=$.extend(o,r);var a=g(i.params.el);if(0===a.length)return Ia(n,void 0);if(i.$el=a,i.el=a[0],i.$el[0].f7DataTable){var s=i.$el[0].f7DataTable;return i.destroy(),Ia(n,s)}function l(e){if(!e.detail||!e.detail.sentByF7DataTable){var t=g(this),n=t[0].checked,r=t.parents("td,th").index();if(t.parents("thead").length>0)0===r&&a.find("tbody tr")[n?"addClass":"removeClass"]("data-table-row-selected"),a.find("tbody tr td:nth-child(".concat(r+1,") input")).prop("checked",n).trigger("change",{sentByF7DataTable:!0}),t.prop("indeterminate",!1);else{0===r&&t.parents("tr")[n?"addClass":"removeClass"]("data-table-row-selected");var o=a.find("tbody .checkbox-cell:nth-child(".concat(r+1,') input[type="checkbox"]:checked')).length,s=a.find("tbody tr").length,l=a.find("thead .checkbox-cell:nth-child(".concat(r+1,') input[type="checkbox"]'));n?o===s&&l.prop("checked",!0).trigger("change",{sentByF7DataTable:!0}):l.prop("checked",!1),l.prop("indeterminate",o>0&&o<s)}i.checkSelectedHeader()}}function c(){var e,t=g(this),n=t.hasClass("sortable-cell-active"),r=t.hasClass("sortable-desc")?"desc":"asc";n?(e="desc"===r?"asc":"desc",t.removeClass("sortable-desc sortable-asc").addClass("sortable-".concat(e))):(a.find("thead .sortable-cell-active").removeClass("sortable-cell-active"),t.addClass("sortable-cell-active"),e=r),t.trigger("datatable:sort",e),i.emit("local::sort dataTableSort",i,e)}return i.$el[0].f7DataTable=i,$.extend(i,{collapsible:a.hasClass("data-table-collapsible"),$headerEl:a.find(".data-table-header"),$headerSelectedEl:a.find(".data-table-header-selected")}),i.attachEvents=function(){i.$el.on("change",'.checkbox-cell input[type="checkbox"]',l),i.$el.find("thead .sortable-cell").on("click",c)},i.detachEvents=function(){i.$el.off("change",'.checkbox-cell input[type="checkbox"]',l),i.$el.find("thead .sortable-cell").off("click",c)},i.useModules(),i.init(),Ia(n,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ra(e,t)}(t,e),n=t,(r=[{key:"setCollapsibleLabels",value:function(){var e=this;e.collapsible&&e.$el.find("tbody td:not(.checkbox-cell)").each((function(t,n){var r=g(n),i=r.index(),o=r.attr("data-collapsible-title");o||""===o||r.attr("data-collapsible-title",e.$el.find("thead th").eq(i).text())}))}},{key:"checkSelectedHeader",value:function(){if(this.$headerEl.length>0&&this.$headerSelectedEl.length>0){var e=this.$el.find("tbody .checkbox-cell input:checked").length;this.$el[e>0?"addClass":"removeClass"]("data-table-has-checked"),this.$headerSelectedEl.find(".data-table-selected-count").text(e)}}},{key:"init",value:function(){this.attachEvents(),this.setCollapsibleLabels(),this.checkSelectedHeader()}},{key:"destroy",value:function(){var e=this;e.$el.trigger("datatable:beforedestroy"),e.emit("local::beforeDestroy dataTableBeforeDestroy",e),e.attachEvents(),e.$el[0]&&(e.$el[0].f7DataTable=null,delete e.$el[0].f7DataTable),$.deleteProps(e),e=null}}])&&La(n.prototype,r),i&&La(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Ba={name:"dataTable",static:{DataTable:ja},create:function(){this.dataTable=X({defaultSelector:".data-table",constructor:ja,app:this,domProp:"f7DataTable"})},on:{tabBeforeRemove:function(e){var t=this;g(e).find(".data-table-init").each((function(e,n){t.dataTable.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".data-table-init").each((function(e,n){t.dataTable.create({el:n})}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".data-table-init").each((function(e,n){t.dataTable.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".data-table-init").each((function(e,n){t.dataTable.create({el:n})}))}},vnode:{"data-table-init":{insert:function(e){var t=e.elm;this.dataTable.create({el:t})},destroy:function(e){var t=e.elm;this.dataTable.destroy(t)}}}},Ya={morphOpen:function(e,t){var n=this,r=g(e),i=g(t);if(0!==i.length){i.transition(0).addClass("fab-morph-target-visible");var o={width:i[0].offsetWidth,height:i[0].offsetHeight,offset:i.offset(),borderRadius:i.css("border-radius"),zIndex:i.css("z-index")},a={width:r[0].offsetWidth,height:r[0].offsetHeight,offset:r.offset(),translateX:$.getTranslate(r[0],"x"),translateY:$.getTranslate(r[0],"y")};r[0].f7FabMorphData={$targetEl:i,target:o,fab:a};var s=a.offset.left+a.width/2-(o.offset.left+o.width/2)-a.translateX,l=a.offset.top+a.height/2-(o.offset.top+o.height/2)-a.translateY,c=o.width/a.width,u=o.height/a.height,d=Math.ceil(parseInt(o.borderRadius,10)/Math.max(c,u));d>0&&(d+=2),r[0].f7FabMorphResizeHandler=function(){r.transition(0).transform(""),i.transition(0),o.width=i[0].offsetWidth,o.height=i[0].offsetHeight,o.offset=i.offset(),a.offset=r.offset();var e=a.offset.left+a.width/2-(o.offset.left+o.width/2)-a.translateX,t=a.offset.top+a.height/2-(o.offset.top+o.height/2)-a.translateY,n=o.width/a.width,s=o.height/a.height;r.transform("translate3d(".concat(-e,"px, ").concat(-t,"px, 0) scale(").concat(n,", ").concat(s,")"))},i.css("opacity",0).transform("scale(".concat(1/c,", ").concat(1/u,")")),r.addClass("fab-opened").css("z-index",o.zIndex-1).transform("translate3d(".concat(-s,"px, ").concat(-l,"px, 0)")),r.transitionEnd((function(){i.transition(""),$.nextFrame((function(){i.css("opacity",1).transform("scale(1,1)"),r.transform("translate3d(".concat(-s,"px, ").concat(-l,"px, 0) scale(").concat(c,", ").concat(u,")")).css("border-radius","".concat(d,"px")).css("box-shadow","none").css("opacity","0")})),n.on("resize",r[0].f7FabMorphResizeHandler),i.parents(".page-content").length>0&&i.parents(".page-content").on("scroll",r[0].f7FabMorphResizeHandler)}))}},morphClose:function(e){var t=g(e),n=t[0].f7FabMorphData;if(n){var r=n.$targetEl,i=n.target,o=n.fab;if(0!==r.length){var a=o.offset.left+o.width/2-(i.offset.left+i.width/2)-o.translateX,s=o.offset.top+o.height/2-(i.offset.top+i.height/2)-o.translateY,l=i.width/o.width,c=i.height/o.height;this.off("resize",t[0].f7FabMorphResizeHandler),r.parents(".page-content").length>0&&r.parents(".page-content").off("scroll",t[0].f7FabMorphResizeHandler),r.css("opacity",0).transform("scale(".concat(1/l,", ").concat(1/c,")")),t.transition("").css("box-shadow","").css("border-radius","").css("opacity","1").transform("translate3d(".concat(-a,"px, ").concat(-s,"px, 0)")),t.transitionEnd((function(){t.css("z-index","").removeClass("fab-opened").transform(""),$.nextFrame((function(){t.transitionEnd((function(){r.removeClass("fab-morph-target-visible").css("opacity","").transform("").transition("")}))}))}))}}},open:function(e,t){var n=g(e).eq(0),r=n.find(".fab-buttons");if(n.length&&!n.hasClass("fab-opened")&&(r.length||n.hasClass("fab-morph"))){if(this.fab.openedEl){if(this.fab.openedEl===n[0])return;this.fab.close(this.fab.openedEl)}this.fab.openedEl=n[0],n.hasClass("fab-morph")?this.fab.morphOpen(n,t||n.attr("data-morph-to")):n.addClass("fab-opened"),n.siblings(".fab-backdrop").addClass("backdrop-in"),n.trigger("fab:open")}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".fab-opened",t=this,n=g(e).eq(0),r=n.find(".fab-buttons");n.length&&n.hasClass("fab-opened")&&(r.length||n.hasClass("fab-morph"))&&(t.fab.openedEl=null,n.hasClass("fab-morph")?t.fab.morphClose(n):n.removeClass("fab-opened"),n.siblings(".fab-backdrop").removeClass("backdrop-in"),n.trigger("fab:close"))},toggle:function(e){g(e).hasClass("fab-opened")?this.fab.close(e):this.fab.open(e)}},Fa={name:"fab",create:function(){$.extend(this,{fab:{openedEl:null,morphOpen:Ya.morphOpen.bind(this),morphClose:Ya.morphClose.bind(this),open:Ya.open.bind(this),close:Ya.close.bind(this),toggle:Ya.toggle.bind(this)}})},clicks:{".fab > a":function(e){this.fab.toggle(e.parents(".fab"))},".fab-open":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.fab.open(t.fab)},".fab-close":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this;n.fab.close(t.fab)},".fab-backdrop":function(){this.fab.close()}}};function Ha(e){return(Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Va(r.key),r)}}function Va(e){var t=function(e,t){if("object"!=Ha(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ha(t)?t:t+""}function qa(e,t){if(t&&("object"==Ha(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ga(e)}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ga(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ka(e,t){return(Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ja=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ua(this,t);var i=Ga(n=qa(this,Wa(t).call(this,r,[e]))),o={el:void 0,inputEl:void 0,inputEvents:"change input compositionend",disableButton:!0,disableButtonEl:void 0,backdropEl:void 0,searchContainer:void 0,searchItem:"li",searchIn:void 0,searchGroup:".list-group",searchGroupTitle:".item-divider, .list-group-title",ignore:".searchbar-ignore",foundEl:".searchbar-found",notFoundEl:".searchbar-not-found",hideOnEnableEl:".searchbar-hide-on-enable",hideOnSearchEl:".searchbar-hide-on-search",backdrop:void 0,removeDiacritics:!0,customSearch:!1,hideDividers:!0,hideGroups:!0,disableOnBackdropClick:!0,expandable:!1,inline:!1};i.useModulesParams(o),i.params=$.extend(o,r);var a,s=g(i.params.el);if(0===s.length)return qa(n,i);if(s[0].f7Searchbar)return qa(n,s[0].f7Searchbar);s[0].f7Searchbar=i;var l,c,u,d,h=s.parents(".navbar");if(s.parents(".page").length>0)a=s.parents(".page");else if(h.length>0&&!(a=g(e.navbar.getPageByEl(h[0]))).length){var f=s.parents(".view").find(".page-current");f[0]&&f[0].f7Page&&f[0].f7Page.navbarEl===h[0]&&(a=f)}r.foundEl?l=g(r.foundEl):"string"==typeof i.params.foundEl&&a&&(l=a.find(i.params.foundEl)),r.notFoundEl?c=g(r.notFoundEl):"string"==typeof i.params.notFoundEl&&a&&(c=a.find(i.params.notFoundEl)),r.hideOnEnableEl?u=g(r.hideOnEnableEl):"string"==typeof i.params.hideOnEnableEl&&a&&(u=a.find(i.params.hideOnEnableEl)),r.hideOnSearchEl?d=g(r.hideOnSearchEl):"string"==typeof i.params.hideOnSearchEl&&a&&(d=a.find(i.params.hideOnSearchEl));var p,m,v,y,b=i.params.expandable||s.hasClass("searchbar-expandable"),_=i.params.inline||s.hasClass("searchbar-inline");function w(e){e.preventDefault()}function k(e){i.enable(e),i.$el.addClass("searchbar-focused")}function S(){i.$el.removeClass("searchbar-focused"),"aurora"!==e.theme||y&&y.length&&i.params.disableButton||i.query||i.disable()}function E(){var e=i.$inputEl.val().trim();(i.$searchContainer&&i.$searchContainer.length>0&&(i.params.searchIn||i.isVirtualList||i.params.searchIn===i.params.searchItem)||i.params.customSearch)&&i.search(e,!0)}function C(e,t){i.$el.trigger("searchbar:clear",t),i.emit("local::clear searchbarClear",i,t)}function T(e){i.disable(e)}function x(){!i||i&&!i.$el||i.enabled&&(i.$el.removeClass("searchbar-enabled"),i.expandable&&i.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition"))}function M(){!i||i&&!i.$el||i.enabled&&(i.$el.addClass("searchbar-enabled"),i.expandable&&i.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled-no-transition"))}return void 0===i.params.backdrop&&(i.params.backdrop=!_&&"aurora"!==e.theme),i.params.backdrop&&0===(p=i.params.backdropEl?g(i.params.backdropEl):a&&a.length>0?a.find(".searchbar-backdrop"):s.siblings(".searchbar-backdrop")).length&&(p=g('<div class="searchbar-backdrop"></div>'),a&&a.length?s.parents(a).length>0&&h&&0===s.parents(h).length?p.insertBefore(s):p.insertBefore(a.find(".page-content").eq(0)):p.insertBefore(s)),i.params.searchContainer&&(m=g(i.params.searchContainer)),v=i.params.inputEl?g(i.params.inputEl):s.find('input[type="search"]').eq(0),i.params.disableButton&&(y=i.params.disableButtonEl?g(i.params.disableButtonEl):s.find(".searchbar-disable-button")),$.extend(i,{app:e,view:e.views.get(s.parents(".view")),$el:s,el:s[0],$backdropEl:p,backdropEl:p&&p[0],$searchContainer:m,searchContainer:m&&m[0],$inputEl:v,inputEl:v[0],$disableButtonEl:y,disableButtonEl:y&&y[0],disableButtonHasMargin:!1,$pageEl:a,pageEl:a&&a[0],$navbarEl:h,navbarEl:h&&h[0],$foundEl:l,foundEl:l&&l[0],$notFoundEl:c,notFoundEl:c&&c[0],$hideOnEnableEl:u,hideOnEnableEl:u&&u[0],$hideOnSearchEl:d,hideOnSearchEl:d&&d[0],previousQuery:"",query:"",isVirtualList:m&&m.hasClass("virtual-list"),virtualList:void 0,enabled:!1,expandable:b,inline:_}),i.attachEvents=function(){s.on("submit",w),i.params.disableButton&&i.$disableButtonEl.on("click",T),i.params.disableOnBackdropClick&&i.$backdropEl&&i.$backdropEl.on("click",T),i.expandable&&"ios"===e.theme&&i.view&&h.length&&i.$pageEl&&(i.$pageEl.on("page:beforeout",x),i.$pageEl.on("page:beforein",M)),i.$inputEl.on("focus",k),i.$inputEl.on("blur",S),i.$inputEl.on(i.params.inputEvents,E),i.$inputEl.on("input:clear",C)},i.detachEvents=function(){s.off("submit",w),i.params.disableButton&&i.$disableButtonEl.off("click",T),i.params.disableOnBackdropClick&&i.$backdropEl&&i.$backdropEl.off("click",T),i.expandable&&"ios"===e.theme&&i.view&&h.length&&i.$pageEl&&(i.$pageEl.off("page:beforeout",x),i.$pageEl.off("page:beforein",M)),i.$inputEl.off("focus",k),i.$inputEl.off("blur",S),i.$inputEl.off(i.params.inputEvents,E),i.$inputEl.off("input:clear",C)},i.useModules(),i.init(),qa(n,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ka(e,t)}(t,e),function(e,t,n){t&&za(e.prototype,t),n&&za(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"clear",value:function(e){var t=this;if(!t.query&&e&&g(e.target).hasClass("searchbar-clear"))return t.disable(),t;var n=t.value;return t.$inputEl.val("").trigger("change").focus(),t.$el.trigger("searchbar:clear",n),t.emit("local::clear searchbarClear",t,n),t}},{key:"setDisableButtonMargin",value:function(){var e=this;if(!e.expandable){var t=e.app;e.$disableButtonEl.transition(0).show(),e.$disableButtonEl.css("margin-".concat(t.rtl?"left":"right"),"".concat(-e.disableButtonEl.offsetWidth,"px")),e._clientLeft=e.$disableButtonEl[0].clientLeft,e.$disableButtonEl.transition(""),e.disableButtonHasMargin=!0}}},{key:"enable",value:function(e){var t=this;if(t.enabled)return t;var n=t.app;function r(){t.$backdropEl&&(t.$searchContainer&&t.$searchContainer.length||t.params.customSearch)&&!t.$el.hasClass("searchbar-enabled")&&!t.query&&t.backdropShow(),t.$el.addClass("searchbar-enabled"),(!t.$disableButtonEl||t.$disableButtonEl&&0===t.$disableButtonEl.length)&&t.$el.addClass("searchbar-enabled-no-disable-button"),!t.expandable&&t.$disableButtonEl&&t.$disableButtonEl.length>0&&"md"!==n.theme&&(t.disableButtonHasMargin||t.setDisableButtonMargin(),t.$disableButtonEl.css("margin-".concat(n.rtl?"left":"right"),"0px")),t.expandable&&(t.$el.parents(".navbar").hasClass("navbar-large")&&t.$pageEl&&t.$pageEl.find(".page-content").addClass("with-searchbar-expandable-enabled"),"md"===n.theme&&t.$el.parents(".navbar").length?t.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled"):(t.$el.parents(".navbar").addClass("with-searchbar-expandable-enabled"),t.$el.parents(".navbar-large").addClass("navbar-large-collapsed"))),t.$hideOnEnableEl&&t.$hideOnEnableEl.addClass("hidden-by-searchbar"),t.$el.trigger("searchbar:enable"),t.emit("local::enable searchbarEnable",t)}t.enabled=!0;var i=!1;return!0===e&&a.activeElement!==t.inputEl&&(i=!0),n.device.ios&&"ios"===n.theme?t.expandable?(i&&t.$inputEl.focus(),r()):(i&&t.$inputEl.focus(),!e||"focus"!==e.type&&!0!==e?r():$.nextTick((function(){r()}),400)):(i&&t.$inputEl.focus(),"md"===n.theme&&t.expandable&&t.$el.parents(".page, .view, .navbar-inner, .navbar").scrollLeft(n.rtl?100:0),r()),t}},{key:"disable",value:function(){var e=this;if(!e.enabled)return e;var t=e.app;return e.$inputEl.val("").trigger("change"),e.$el.removeClass("searchbar-enabled searchbar-focused searchbar-enabled-no-disable-button"),e.expandable&&(e.$el.parents(".navbar").hasClass("navbar-large")&&e.$pageEl&&(e.$pageEl.find(".page-content").removeClass("with-searchbar-expandable-enabled").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$pageEl.find(".page-content").removeClass("with-searchbar-expandable-closing")}))),"md"===t.theme&&e.$el.parents(".navbar").length?(e.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$el.parents(".navbar").removeClass("with-searchbar-expandable-closing")}))):(e.$el.parents(".navbar").removeClass("with-searchbar-expandable-enabled with-searchbar-expandable-enabled-no-transition").addClass("with-searchbar-expandable-closing"),e.$el.transitionEnd((function(){e.$el.parents(".navbar").removeClass("with-searchbar-expandable-closing")})),e.$pageEl&&e.$pageEl.find(".page-content").trigger("scroll"))),!e.expandable&&e.$disableButtonEl&&e.$disableButtonEl.length>0&&"md"!==t.theme&&e.$disableButtonEl.css("margin-".concat(t.rtl?"left":"right"),"".concat(-e.disableButtonEl.offsetWidth,"px")),e.$backdropEl&&(e.$searchContainer&&e.$searchContainer.length||e.params.customSearch)&&e.backdropHide(),e.enabled=!1,e.$inputEl.blur(),e.$hideOnEnableEl&&e.$hideOnEnableEl.removeClass("hidden-by-searchbar"),e.$el.trigger("searchbar:disable"),e.emit("local::disable searchbarDisable",e),e}},{key:"toggle",value:function(){return this.enabled?this.disable():this.enable(!0),this}},{key:"backdropShow",value:function(){return this.$backdropEl&&this.$backdropEl.addClass("searchbar-backdrop-in"),this}},{key:"backdropHide",value:function(){return this.$backdropEl&&this.$backdropEl.removeClass("searchbar-backdrop-in"),this}},{key:"search",value:function(e,t){var n=this;if(n.previousQuery=n.query||"",e===n.previousQuery)return n;t||(n.enabled||n.enable(),n.$inputEl.val(e),n.$inputEl.trigger("input")),n.query=e,n.value=e;var r=n.$searchContainer,i=n.$el,o=n.$foundEl,a=n.$notFoundEl,s=n.$hideOnSearchEl,l=n.isVirtualList;if(e.length>0&&s?s.addClass("hidden-by-searchbar"):s&&s.removeClass("hidden-by-searchbar"),(r&&r.length&&i.hasClass("searchbar-enabled")||n.params.customSearch&&i.hasClass("searchbar-enabled"))&&(0===e.length?n.backdropShow():n.backdropHide()),n.params.customSearch)return i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery}),n.emit("local::search searchbarSearch",n,e,n.previousQuery),n;var c,u=[];if(l){if(n.virtualList=r[0].f7VirtualList,""===e.trim())return n.virtualList.resetFilter(),a&&a.hide(),o&&o.show(),i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery}),n.emit("local::search searchbarSearch",n,e,n.previousQuery),n;if(c=n.params.removeDiacritics?$.removeDiacritics(e):e,n.virtualList.params.searchAll)u=n.virtualList.params.searchAll(c,n.virtualList.items)||[];else if(n.virtualList.params.searchByItem)for(var d=0;d<n.virtualList.items.length;d+=1)n.virtualList.params.searchByItem(c,n.virtualList.params.items[d],d)&&u.push(d)}else{var h;h=n.params.removeDiacritics?$.removeDiacritics(e.trim().toLowerCase()).split(" "):e.trim().toLowerCase().split(" "),r.find(n.params.searchItem).removeClass("hidden-by-searchbar").each((function(e,t){var r=g(t),i=[],o=n.params.searchIn?r.find(n.params.searchIn):r;n.params.searchIn===n.params.searchItem&&(o=r),o.each((function(e,t){var r=g(t).text().trim().toLowerCase();n.params.removeDiacritics&&(r=$.removeDiacritics(r)),i.push(r)})),i=i.join(" ");for(var a=0,s=0;s<h.length;s+=1)i.indexOf(h[s])>=0&&(a+=1);a===h.length||n.params.ignore&&r.is(n.params.ignore)?u.push(r[0]):r.addClass("hidden-by-searchbar")})),n.params.hideDividers&&r.find(n.params.searchGroupTitle).each((function(e,t){for(var r=g(t),i=r.nextAll(n.params.searchItem),o=!0,a=0;a<i.length;a+=1){var s=i.eq(a);if(s.is(n.params.searchGroupTitle))break;s.hasClass("hidden-by-searchbar")||(o=!1)}var l=n.params.ignore&&r.is(n.params.ignore);o&&!l?r.addClass("hidden-by-searchbar"):r.removeClass("hidden-by-searchbar")})),n.params.hideGroups&&r.find(n.params.searchGroup).each((function(e,t){var r=g(t),i=n.params.ignore&&r.is(n.params.ignore);0!==r.find(n.params.searchItem).filter((function(e,t){return!g(t).hasClass("hidden-by-searchbar")})).length||i?r.removeClass("hidden-by-searchbar"):r.addClass("hidden-by-searchbar")}))}return 0===u.length?(a&&a.show(),o&&o.hide()):(a&&a.hide(),o&&o.show()),l&&n.virtualList&&n.virtualList.filterItems(u),i.trigger("searchbar:search",{query:e,previousQuery:n.previousQuery,foundItems:u}),n.emit("local::search searchbarSearch",n,e,n.previousQuery,u),n}},{key:"init",value:function(){var e=this;e.expandable&&e.$el&&e.$el.addClass("searchbar-expandable"),e.inline&&e.$el&&e.$el.addClass("searchbar-inline"),e.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy searchbarBeforeDestroy",e),e.$el.trigger("searchbar:beforedestroy"),e.detachEvents(),e.$el[0]&&(e.$el[0].f7Searchbar=null,delete e.$el[0].f7Searchbar),$.deleteProps(e)}}]),t}(W),Xa={name:"searchbar",static:{Searchbar:Ja},create:function(){this.searchbar=X({defaultSelector:".searchbar",constructor:Ja,app:this,domProp:"f7Searchbar",addMethods:"clear enable disable toggle search".split(" ")})},on:{tabMounted:function(e){var t=this;g(e).find(".searchbar-init").each((function(e,n){var r=g(n);t.searchbar.create($.extend(r.dataset(),{el:n}))}))},tabBeforeRemove:function(e){g(e).find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".searchbar-init").each((function(e,n){var r=g(n);t.searchbar.create($.extend(r.dataset(),{el:n}))})),"ios"===t.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".searchbar-init").each((function(e,n){var r=g(n);t.searchbar.create($.extend(r.dataset(),{el:n}))}))},pageBeforeRemove:function(e){e.$el.find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()})),"ios"===this.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".searchbar-init").each((function(e,t){t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}))}},clicks:{".searchbar-clear":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.clear()},".searchbar-enable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.enable(!0)},".searchbar-disable":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.disable()},".searchbar-toggle":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=n.searchbar.get(t.searchbar);r&&r.toggle()}},vnode:{"searchbar-init":{insert:function(e){var t=e.elm,n=g(t);this.searchbar.create($.extend(n.dataset(),{el:t}))},destroy:function(e){var t=e.elm;t.f7Searchbar&&t.f7Searchbar.destroy&&t.f7Searchbar.destroy()}}}};function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Za(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ts(r.key),r)}}function ts(e){var t=function(e,t){if("object"!=Qa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qa(t)?t:t+""}function ns(e,t){if(t&&("object"==Qa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return is(e)}function rs(e){return(rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function os(e,t){return(os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var as=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Za(this,t);var i=is(n=ns(this,rs(t).call(this,r,[e]))),o={autoLayout:!0,messages:[],newMessagesFirst:!1,scrollMessages:!0,scrollMessagesOnEdge:!0,firstMessageRule:void 0,lastMessageRule:void 0,tailMessageRule:void 0,sameNameMessageRule:void 0,sameHeaderMessageRule:void 0,sameFooterMessageRule:void 0,sameAvatarMessageRule:void 0,customClassMessageRule:void 0,renderMessage:void 0};i.useModulesParams(o),i.params=$.extend(o,r);var a=g(r.el).eq(0);if(0===a.length)return ns(n,i);if(a[0].f7Messages)return ns(n,a[0].f7Messages);a[0].f7Messages=i;var s=a.closest(".page-content").eq(0);return $.extend(i,{messages:i.params.messages,$el:a,el:a[0],$pageContentEl:s,pageContentEl:s[0]}),i.useModules(),i.init(),ns(n,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&os(e,t)}(t,e),n=t,(r=[{key:"getMessageData",value:function(e){var t=g(e),n={name:t.find(".message-name").html(),header:t.find(".message-header").html(),textHeader:t.find(".message-text-header").html(),textFooter:t.find(".message-text-footer").html(),footer:t.find(".message-footer").html(),isTitle:t.hasClass("messages-title"),type:t.hasClass("message-sent")?"sent":"received",text:t.find(".message-text").html(),image:t.find(".message-image").html(),imageSrc:t.find(".message-image img").attr("src"),typing:t.hasClass("message-typing")};n.isTitle&&(n.text=t.html()),n.text&&n.textHeader&&(n.text=n.text.replace('<div class="message-text-header">'.concat(n.textHeader,"</div>"),"")),n.text&&n.textFooter&&(n.text=n.text.replace('<div class="message-text-footer">'.concat(n.textFooter,"</div>"),""));var r=t.find(".message-avatar").css("background-image");return"none"!==r&&""!==r||(r=void 0),r=r&&"string"==typeof r?r.replace("url(","").replace(")","").replace(/"/g,"").replace(/'/g,""):void 0,n.avatar=r,n}},{key:"getMessagesData",value:function(){var e=this,t=[];return e.$el.find(".message, .messages-title").each((function(n,r){t.push(e.getMessageData(r))})),t}},{key:"renderMessage",value:function(e){var t=this,n=$.extend({type:"sent",attrs:{}},e);if(t.params.renderMessage)return t.params.renderMessage.call(t,n);if(n.isTitle)return'<div class="messages-title">'.concat(n.text,"</div>");var r=Object.keys(n.attrs).map((function(e){return"".concat(e,'="').concat(n.attrs[e],'"')})).join(" ");return'\n      <div class="message message-'.concat(n.type," ").concat(n.isTyping?"message-typing":""," ").concat(n.cssClass||"",'" ').concat(r,">\n        ").concat(n.avatar?'\n        <div class="message-avatar" style="background-image:url('.concat(n.avatar,')"></div>\n        '):"",'\n        <div class="message-content">\n          ').concat(n.name?'<div class="message-name">'.concat(n.name,"</div>"):"","\n          ").concat(n.header?'<div class="message-header">'.concat(n.header,"</div>"):"",'\n          <div class="message-bubble">\n            ').concat(n.textHeader?'<div class="message-text-header">'.concat(n.textHeader,"</div>"):"","\n            ").concat(n.image?'<div class="message-image">'.concat(n.image,"</div>"):"","\n            ").concat(n.imageSrc&&!n.image?'<div class="message-image"><img src="'.concat(n.imageSrc,'"></div>'):"","\n            ").concat(n.text||n.isTyping?'<div class="message-text">'.concat(n.text||"").concat(n.isTyping?'<div class="message-typing-indicator"><div></div><div></div><div></div></div>':"","</div>"):"","\n            ").concat(n.textFooter?'<div class="message-text-footer">'.concat(n.textFooter,"</div>"):"","\n          </div>\n          ").concat(n.footer?'<div class="message-footer">'.concat(n.footer,"</div>"):"","\n        </div>\n      </div>\n    ")}},{key:"renderMessages",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.messages,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.newMessagesFirst?"prepend":"append",n=this,r=e.map((function(e){return n.renderMessage(e)})).join("");n.$el[t](r)}},{key:"isFirstMessage",value:function(){var e,t=this;return!!t.params.firstMessageRule&&(e=t.params).firstMessageRule.apply(e,arguments)}},{key:"isLastMessage",value:function(){var e,t=this;return!!t.params.lastMessageRule&&(e=t.params).lastMessageRule.apply(e,arguments)}},{key:"isTailMessage",value:function(){var e,t=this;return!!t.params.tailMessageRule&&(e=t.params).tailMessageRule.apply(e,arguments)}},{key:"isSameNameMessage",value:function(){var e,t=this;return!!t.params.sameNameMessageRule&&(e=t.params).sameNameMessageRule.apply(e,arguments)}},{key:"isSameHeaderMessage",value:function(){var e,t=this;return!!t.params.sameHeaderMessageRule&&(e=t.params).sameHeaderMessageRule.apply(e,arguments)}},{key:"isSameFooterMessage",value:function(){var e,t=this;return!!t.params.sameFooterMessageRule&&(e=t.params).sameFooterMessageRule.apply(e,arguments)}},{key:"isSameAvatarMessage",value:function(){var e,t=this;return!!t.params.sameAvatarMessageRule&&(e=t.params).sameAvatarMessageRule.apply(e,arguments)}},{key:"isCustomClassMessage",value:function(){var e,t=this;if(t.params.customClassMessageRule)return(e=t.params).customClassMessageRule.apply(e,arguments)}},{key:"layout",value:function(){var e=this;e.$el.find(".message, .messages-title").each((function(t,n){var r=g(n);e.messages||(e.messages=e.getMessagesData());var i=[],o=e.messages[t],a=e.messages[t-1],s=e.messages[t+1];e.isFirstMessage(o,a,s)&&i.push("message-first"),e.isLastMessage(o,a,s)&&i.push("message-last"),e.isTailMessage(o,a,s)&&i.push("message-tail"),e.isSameNameMessage(o,a,s)&&i.push("message-same-name"),e.isSameHeaderMessage(o,a,s)&&i.push("message-same-header"),e.isSameFooterMessage(o,a,s)&&i.push("message-same-footer"),e.isSameAvatarMessage(o,a,s)&&i.push("message-same-avatar");var l=e.isCustomClassMessage(o,a,s);l&&l.length&&("string"==typeof l&&(l=l.split(" ")),l.forEach((function(e){i.push(e)}))),r.removeClass("message-first message-last message-tail message-same-name message-same-header message-same-footer message-same-avatar"),i.forEach((function(e){r.addClass(e)}))}))}},{key:"clear",value:function(){this.messages=[],this.$el.html("")}},{key:"removeMessage",value:function(e){var t,n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;return"number"==typeof e?(t=e,n=i.$el.find(".message, .messages-title").eq(t)):i.messages&&i.messages.indexOf(e)>=0?(t=i.messages.indexOf(e),n=i.$el.children().eq(t)):t=(n=g(e)).index(),0===n.length||(n.remove(),i.messages.splice(t,1),i.params.autoLayout&&r&&i.layout()),i}},{key:"removeMessages",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(Array.isArray(e)){var r=[];e.forEach((function(e){r.push(n.$el.find(".message, .messages-title").eq(e))})),r.forEach((function(e){n.removeMessage(e,!1)}))}else g(e).each((function(e,t){n.removeMessage(t,!1)}));return n.params.autoLayout&&t&&n.layout(),n}},{key:"addMessage",value:function(){for(var e,t,n,r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return"boolean"==typeof o[1]?(e=o[0],t=o[1],n=o[2]):(e=o[0],n=o[1],t=o[2]),void 0===t&&(t=!0),void 0===n&&(n=r.params.newMessagesFirst?"prepend":"append"),r.addMessages([e],t,n)}},{key:"addMessages",value:function(){for(var e,t,n,r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];"boolean"==typeof o[1]?(e=o[0],t=o[1],n=o[2]):(e=o[0],n=o[1],t=o[2]),void 0===t&&(t=!0),void 0===n&&(n=r.params.newMessagesFirst?"prepend":"append");var s=r.pageContentEl.scrollHeight,l=r.pageContentEl.offsetHeight,c=r.pageContentEl.scrollTop,u="",d=r.messages.filter((function(e){return e.isTyping}))[0];e.forEach((function(e){d?"append"===n?r.messages.splice(r.messages.indexOf(d),0,e):r.messages.splice(r.messages.indexOf(d)+1,0,e):r.messages["append"===n?"push":"unshift"](e),u+=r.renderMessage(e)}));var h=g(u);if(t&&("append"!==n||r.params.newMessagesFirst||h.addClass("message-appear-from-bottom"),"prepend"===n&&r.params.newMessagesFirst&&h.addClass("message-appear-from-top")),d?"append"===n?h.insertBefore(r.$el.find(".message-typing")):h.insertAfter(r.$el.find(".message-typing")):r.$el[n](h),r.params.autoLayout&&r.layout(),"prepend"!==n||d||(r.pageContentEl.scrollTop=c+(r.pageContentEl.scrollHeight-s)),r.params.scrollMessages&&("append"===n&&!r.params.newMessagesFirst||"prepend"===n&&r.params.newMessagesFirst&&!d))if(r.params.scrollMessagesOnEdge){var f=!1;r.params.newMessagesFirst&&0===c&&(f=!0),!r.params.newMessagesFirst&&c-(s-l)>=-10&&(f=!0),f&&r.scroll(t?void 0:0)}else r.scroll(t?void 0:0);return r}},{key:"showTyping",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=t.messages.filter((function(e){return e.isTyping}))[0];return n&&t.removeMessage(t.messages.indexOf(n)),t.addMessage($.extend({type:"received",isTyping:!0},e)),t}},{key:"hideTyping",value:function(){var e,t,n=this;if(n.messages.forEach((function(t,n){t.isTyping&&(e=n)})),void 0!==e&&n.$el.find(".message").eq(e).hasClass("message-typing")&&(t=!0,n.removeMessage(e)),!t){var r=n.$el.find(".message-typing");r.length&&n.removeMessage(r)}return n}},{key:"scroll",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=arguments.length>1?arguments[1]:void 0,r=this,i=r.pageContentEl.scrollTop;if(void 0!==n)e=n;else if((e=r.params.newMessagesFirst?0:r.pageContentEl.scrollHeight-r.pageContentEl.offsetHeight)===i)return r;return r.$pageContentEl.scrollTop(e,t),r}},{key:"init",value:function(){var e=this;e.messages&&0!==e.messages.length||(e.messages=e.getMessagesData()),e.params.messages&&e.params.messages.length&&e.renderMessages(),e.params.autoLayout&&e.layout(),e.params.scrollMessages&&e.scroll(0)}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy messagesBeforeDestroy",e),e.$el.trigger("messages:beforedestroy"),e.$el[0]&&(e.$el[0].f7Messages=null,delete e.$el[0].f7Messages),$.deleteProps(e)}}])&&es(n.prototype,r),i&&es(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),ss={name:"messages",static:{Messages:as},create:function(){this.messages=X({defaultSelector:".messages",constructor:as,app:this,domProp:"f7Messages",addMethods:"renderMessages layout scroll clear removeMessage removeMessages addMessage addMessages".split(" ")})},on:{tabBeforeRemove:function(e){var t=this;g(e).find(".messages-init").each((function(e,n){t.messages.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".messages-init").each((function(e,n){t.messages.create({el:n})}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".messages-init").each((function(e,n){t.messages.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".messages-init").each((function(e,n){t.messages.create({el:n})}))}},vnode:{"messages-init":{insert:function(e){var t=e.elm;this.messages.create({el:t})},destroy:function(e){var t=e.elm;this.messages.destroy(t)}}}};function ls(e){return(ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ds(r.key),r)}}function ds(e){var t=function(e,t){if("object"!=ls(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ls(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ls(t)?t:t+""}function hs(e,t){if(t&&("object"==ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ps(e)}function fs(e){return(fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ps(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ms(e,t){return(ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var vs=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cs(this,t);var i=ps(n=hs(this,fs(t).call(this,r,[e]))),o={top:!1,topOffset:0,bottomOffset:0,attachments:[],renderAttachments:void 0,renderAttachment:void 0,maxHeight:null,resizePage:!0};i.useModulesParams(o),i.params=$.extend(o,r);var a=g(i.params.el);if(0===a.length)return hs(n,i);if(a[0].f7Messagebar)return hs(n,a[0].f7Messagebar);a[0].f7Messagebar=i;var s,l=a.parents(".page").eq(0),c=l.find(".page-content").eq(0),u=a.find(".messagebar-area");s=i.params.textareaEl?g(i.params.textareaEl):a.find("textarea");var d=a.find(".messagebar-attachments"),h=a.find(".messagebar-sheet");function f(){i.params.resizePage&&i.resizePage()}function p(e){e.preventDefault()}function m(e){var t=g(this).index();g(e.target).closest(".messagebar-attachment-delete").length?(g(this).trigger("messagebar:attachmentdelete",t),i.emit("local::attachmentDelete messagebarAttachmentDelete",i,this,t)):(g(this).trigger("messagebar:attachmentclick",t),i.emit("local::attachmentClick messagebarAttachmentClick",i,this,t))}function v(){i.checkEmptyState(),i.$el.trigger("messagebar:change"),i.emit("local::change messagebarChange",i)}function y(){i.sheetHide(),i.$el.addClass("messagebar-focused"),i.$el.trigger("messagebar:focus"),i.emit("local::focus messagebarFocus",i)}function b(){i.$el.removeClass("messagebar-focused"),i.$el.trigger("messagebar:blur"),i.emit("local::blur messagebarBlur",i)}return i.params.top&&a.addClass("messagebar-top"),$.extend(i,{$el:a,el:a[0],$areaEl:u,areaEl:u[0],$textareaEl:s,textareaEl:s[0],$attachmentsEl:d,attachmentsEl:d[0],attachmentsVisible:d.hasClass("messagebar-attachments-visible"),$sheetEl:h,sheetEl:h[0],sheetVisible:h.hasClass("messagebar-sheet-visible"),$pageEl:l,pageEl:l[0],$pageContentEl:c,pageContentEl:c,top:a.hasClass("messagebar-top")||i.params.top,attachments:[]}),i.attachEvents=function(){a.on("textarea:resize",f),a.on("submit",p),a.on("click",".messagebar-attachment",m),s.on("change input",v),s.on("focus",y),s.on("blur",b),e.on("resize",f)},i.detachEvents=function(){a.off("textarea:resize",f),a.off("submit",p),a.off("click",".messagebar-attachment",m),s.off("change input",v),s.off("focus",y),s.off("blur",b),e.off("resize",f)},i.useModules(),i.init(),hs(n,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ms(e,t)}(t,e),n=t,(r=[{key:"focus",value:function(){return this.$textareaEl.focus(),this}},{key:"blur",value:function(){return this.$textareaEl.blur(),this}},{key:"clear",value:function(){return this.$textareaEl.val("").trigger("change"),this}},{key:"getValue",value:function(){return this.$textareaEl.val().trim()}},{key:"setValue",value:function(e){return this.$textareaEl.val(e).trigger("change"),this}},{key:"setPlaceholder",value:function(e){return this.$textareaEl.attr("placeholder",e),this}},{key:"resizePage",value:function(){var e=this.params,t=this.$el,n=this.top,r=this.$pageEl,i=this.$pageContentEl,o=this.$areaEl,a=this.$textareaEl,s=this.$sheetEl,l=this.$attachmentsEl,c=t[0].offsetHeight,u=e.maxHeight;if(n);else{var d=parseInt(i.css("padding-bottom"),10),h=c+e.bottomOffset;if(h!==d&&i.length){var f=parseInt(i.css("padding-top"),10),p=i[0].scrollHeight,m=i[0].offsetHeight,v=i[0].scrollTop===p-m;u||(u=r[0].offsetHeight-f-s.outerHeight()-l.outerHeight()-parseInt(o.css("margin-top"),10)-parseInt(o.css("margin-bottom"),10)),a.css("max-height","".concat(u,"px")),i.css("padding-bottom","".concat(h,"px")),v&&i.scrollTop(i[0].scrollHeight-m),t.trigger("messagebar:resizepage"),this.emit("local::resizePage messagebarResizePage",this)}}}},{key:"checkEmptyState",value:function(){var e=this.$el,t=this.$textareaEl.val().trim();t&&t.length?e.addClass("messagebar-with-value"):e.removeClass("messagebar-with-value")}},{key:"attachmentsCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=g('<div class="messagebar-attachments">'.concat(e,"</div>"));return n.insertBefore(t.$textareaEl),$.extend(t,{$attachmentsEl:n,attachmentsEl:n[0]}),t}},{key:"attachmentsShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;return t.$attachmentsEl=t.$el.find(".messagebar-attachments"),0===t.$attachmentsEl.length&&t.attachmentsCreate(e),t.$el.addClass("messagebar-attachments-visible"),t.attachmentsVisible=!0,t.params.resizePage&&t.resizePage(),t}},{key:"attachmentsHide",value:function(){return this.$el.removeClass("messagebar-attachments-visible"),this.attachmentsVisible=!1,this.params.resizePage&&this.resizePage(),this}},{key:"attachmentsToggle",value:function(){return this.attachmentsVisible?this.attachmentsHide():this.attachmentsShow(),this}},{key:"renderAttachment",value:function(e){return this.params.renderAttachment?this.params.renderAttachment.call(this,e):'\n      <div class="messagebar-attachment">\n        <img src="'.concat(e,'">\n        <span class="messagebar-attachment-delete"></span>\n      </div>\n    ')}},{key:"renderAttachments",value:function(){var e,t=this;e=t.params.renderAttachments?t.params.renderAttachments.call(t,t.attachments):"".concat(t.attachments.map((function(e){return t.renderAttachment(e)})).join("")),0===t.$attachmentsEl.length?t.attachmentsCreate(e):t.$attachmentsEl.html(e)}},{key:"sheetCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this,n=g('<div class="messagebar-sheet">'.concat(e,"</div>"));return t.$el.append(n),$.extend(t,{$sheetEl:n,sheetEl:n[0]}),t}},{key:"sheetShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;return t.$sheetEl=t.$el.find(".messagebar-sheet"),0===t.$sheetEl.length&&t.sheetCreate(e),t.$el.addClass("messagebar-sheet-visible"),t.sheetVisible=!0,t.params.resizePage&&t.resizePage(),t}},{key:"sheetHide",value:function(){return this.$el.removeClass("messagebar-sheet-visible"),this.sheetVisible=!1,this.params.resizePage&&this.resizePage(),this}},{key:"sheetToggle",value:function(){return this.sheetVisible?this.sheetHide():this.sheetShow(),this}},{key:"init",value:function(){return this.attachEvents(),this.checkEmptyState(),this}},{key:"destroy",value:function(){this.emit("local::beforeDestroy messagebarBeforeDestroy",this),this.$el.trigger("messagebar:beforedestroy"),this.detachEvents(),this.$el[0]&&(this.$el[0].f7Messagebar=null,delete this.$el[0].f7Messagebar),$.deleteProps(this)}}])&&us(n.prototype,r),i&&us(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),gs={name:"messagebar",static:{Messagebar:vs},create:function(){this.messagebar=X({defaultSelector:".messagebar",constructor:vs,app:this,domProp:"f7Messagebar",addMethods:"clear getValue setValue setPlaceholder resizePage focus blur attachmentsCreate attachmentsShow attachmentsHide attachmentsToggle renderAttachments sheetCreate sheetShow sheetHide sheetToggle".split(" ")})},on:{tabBeforeRemove:function(e){var t=this;g(e).find(".messagebar-init").each((function(e,n){t.messagebar.destroy(n)}))},tabMounted:function(e){var t=this;g(e).find(".messagebar-init").each((function(e,n){t.messagebar.create($.extend({el:n},g(n).dataset()))}))},pageBeforeRemove:function(e){var t=this;e.$el.find(".messagebar-init").each((function(e,n){t.messagebar.destroy(n)}))},pageInit:function(e){var t=this;e.$el.find(".messagebar-init").each((function(e,n){t.messagebar.create($.extend({el:n},g(n).dataset()))}))}},vnode:{"messagebar-init":{insert:function(e){var t=e.elm;this.messagebar.create($.extend({el:t},g(t).dataset()))},destroy:function(e){var t=e.elm;this.messagebar.destroy(t)}}}},ys=g,bs=$,_s=P,ws=W;function ks(e){return function(e){if(Array.isArray(e))return Ss(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ss(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ss(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Es(e){return(Es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Es(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Es(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Es(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ts(e){return(Ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ts(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ts(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ts(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ms(e){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $s(e){return($s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ps(e){return(Ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Os(e){return(Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ls=O,As=function(e){var t=this.touchEventsData,n=this.params,r=this.touches;if(!this.animating||!n.preventInteractionOnTransition){var i=e;i.originalEvent&&(i=i.originalEvent);var o=ys(i.target);if(("wrapper"!==n.touchEventsTarget||o.closest(this.wrapperEl).length)&&(t.isTouchEvent="touchstart"===i.type,(t.isTouchEvent||!("which"in i)||3!==i.which)&&!(!t.isTouchEvent&&"button"in i&&i.button>0||t.isTouched&&t.isMoved)))if(n.noSwiping&&o.closest(n.noSwipingSelector?n.noSwipingSelector:".".concat(n.noSwipingClass))[0])this.allowClick=!0;else if(!n.swipeHandler||o.closest(n.swipeHandler)[0]){r.currentX="touchstart"===i.type?i.targetTouches[0].pageX:i.pageX,r.currentY="touchstart"===i.type?i.targetTouches[0].pageY:i.pageY;var l=r.currentX,c=r.currentY,u=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,d=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!u||!(l<=d||l>=s.screen.width-d)){if(bs.extend(t,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=l,r.startY=c,t.touchStartTime=bs.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,n.threshold>0&&(t.allowThresholdMove=!1),"touchstart"!==i.type){var h=!0;o.is(t.formElements)&&(h=!1),a.activeElement&&ys(a.activeElement).is(t.formElements)&&a.activeElement!==o[0]&&a.activeElement.blur();var f=h&&this.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||f)&&i.preventDefault()}this.emit("touchStart",i)}}}},Is=function(e){var t=this.touchEventsData,n=this.params,r=this.touches,i=this.rtlTranslate,o=e;if(o.originalEvent&&(o=o.originalEvent),t.isTouched){if(!t.isTouchEvent||"mousemove"!==o.type){var s="touchmove"===o.type&&o.targetTouches&&(o.targetTouches[0]||o.changedTouches[0]),l="touchmove"===o.type?s.pageX:o.pageX,c="touchmove"===o.type?s.pageY:o.pageY;if(o.preventedByNestedSwiper)return r.startX=l,void(r.startY=c);if(!this.allowTouchMove)return this.allowClick=!1,void(t.isTouched&&(bs.extend(r,{startX:l,startY:c,currentX:l,currentY:c}),t.touchStartTime=bs.now()));if(t.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(this.isVertical()){if(c<r.startY&&this.translate<=this.maxTranslate()||c>r.startY&&this.translate>=this.minTranslate())return t.isTouched=!1,void(t.isMoved=!1)}else if(l<r.startX&&this.translate<=this.maxTranslate()||l>r.startX&&this.translate>=this.minTranslate())return;if(t.isTouchEvent&&a.activeElement&&o.target===a.activeElement&&ys(o.target).is(t.formElements))return t.isMoved=!0,void(this.allowClick=!1);if(t.allowTouchCallbacks&&this.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){r.currentX=l,r.currentY=c;var u=r.currentX-r.startX,d=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(d,2))<this.params.threshold)){var h;if(void 0===t.isScrolling)this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?t.isScrolling=!1:u*u+d*d>=25&&(h=180*Math.atan2(Math.abs(d),Math.abs(u))/Math.PI,t.isScrolling=this.isHorizontal()?h>n.touchAngle:90-h>n.touchAngle);if(t.isScrolling&&this.emit("touchMoveOpposite",o),void 0===t.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(t.startMoving=!0)),t.isScrolling)t.isTouched=!1;else if(t.startMoving){this.allowClick=!1,n.cssMode||o.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&o.stopPropagation(),t.isMoved||(n.loop&&this.loopFix(),t.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),t.allowMomentumBounce=!1,!n.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",o)),this.emit("sliderMove",o),t.isMoved=!0;var f=this.isHorizontal()?u:d;r.diff=f,f*=n.touchRatio,i&&(f=-f),this.swipeDirection=f>0?"prev":"next",t.currentTranslate=f+t.startTranslate;var p=!0,m=n.resistanceRatio;if(n.touchReleaseOnEdges&&(m=0),f>0&&t.currentTranslate>this.minTranslate()?(p=!1,n.resistance&&(t.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+t.startTranslate+f,m))):f<0&&t.currentTranslate<this.maxTranslate()&&(p=!1,n.resistance&&(t.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-t.startTranslate-f,m))),p&&(o.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&t.currentTranslate<t.startTranslate&&(t.currentTranslate=t.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&t.currentTranslate>t.startTranslate&&(t.currentTranslate=t.startTranslate),n.threshold>0){if(!(Math.abs(f)>n.threshold||t.allowThresholdMove))return void(t.currentTranslate=t.startTranslate);if(!t.allowThresholdMove)return t.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,t.currentTranslate=t.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&(0===t.velocities.length&&t.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:bs.now()})),this.updateProgress(t.currentTranslate),this.setTranslate(t.currentTranslate))}}}}}else t.startMoving&&t.isScrolling&&this.emit("touchMoveOpposite",o)},Ds=function(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,o=t.rtlTranslate,a=t.$wrapperEl,s=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=bs.now(),h=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),h<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=bs.now(),bs.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){var f=n.velocities.pop(),p=n.velocities.pop(),m=f.position-p.position,v=f.time-p.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(v>150||bs.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;o&&(b=-b);var _,w,k=!1,S=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(b<t.maxTranslate())r.freeModeMomentumBounce?(b+t.maxTranslate()<-S&&(b=t.maxTranslate()-S),_=t.maxTranslate(),k=!0,n.allowMomentumBounce=!0):b=t.maxTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(b>t.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>S&&(b=t.minTranslate()+S),_=t.minTranslate(),k=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(w=!0);else if(r.freeModeSticky){for(var E,C=0;C<l.length;C+=1)if(l[C]>-b){E=C;break}b=-(b=Math.abs(l[E]-b)<Math.abs(l[E-1]-b)||"next"===t.swipeDirection?l[E]:l[E-1])}if(w&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(g=o?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity),r.freeModeSticky){var T=Math.abs((o?-b:b)-t.translate),x=t.slidesSizesGrid[t.activeIndex];g=T<x?r.speed:T<2*x?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&k?(t.updateProgress(_),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),t.setTranslate(_),a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(b),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();(!r.freeModeMomentum||h>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var M=0,$=t.slidesSizesGrid[0],P=0;P<s.length;P+=P<r.slidesPerGroupSkip?1:r.slidesPerGroup){var O=P<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==s[P+O]?u>=s[P]&&u<s[P+O]&&(M=P,$=s[P+O]-s[P]):u>=s[P]&&(M=P,$=s[s.length-1]-s[s.length-2])}var L=(u-s[M])/$,A=M<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(L>=r.longSwipesRatio?t.slideTo(M+A):t.slideTo(M)),"prev"===t.swipeDirection&&(L>1-r.longSwipesRatio?t.slideTo(M+A):t.slideTo(M))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(M+A):t.slideTo(M):("next"===t.swipeDirection&&t.slideTo(M+A),"prev"===t.swipeDirection&&t.slideTo(M))}}},Ns=function(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,r=this.allowSlidePrev,i=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}},Rs=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},js=function(){var e=this.wrapperEl;this.previousTranslate=this.translate,this.translate=this.isHorizontal()?-e.scrollLeft:-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var t=this.maxTranslate()-this.minTranslate();(0===t?0:(this.translate-this.minTranslate())/t)!==this.progress&&this.updateProgress(this.translate),this.emit("setTranslate",this.translate,!1)},Bs=!1;function Ys(){}var Fs={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};function Hs(e){return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Us(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vs(r.key),r)}}function Vs(e){var t=function(e,t){if("object"!=Hs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hs(t)?t:t+""}function qs(e,t){if(t&&("object"==Hs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gs(e)}function Ws(e){return(Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ks(e,t){return(Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Js,Xs={update:{updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),bs.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,t=this.$wrapperEl,n=this.size,r=this.rtlTranslate,i=this.wrongRTL,o=this.virtual&&e.virtual.enabled,a=o?this.virtual.slides.length:this.slides.length,l=t.children(".".concat(this.params.slideClass)),c=o?this.virtual.slides.length:l.length,u=[],d=[],h=[];function f(t){return!e.cssMode||t!==l.length-1}var p=e.slidesOffsetBefore;"function"==typeof p&&(p=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var v=this.snapGrid.length,g=this.snapGrid.length,y=e.spaceBetween,b=-p,_=0,w=0;if(void 0!==n){var k,S;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*n),this.virtualSize=-y,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(k=Math.floor(c/e.slidesPerColumn)===c/this.params.slidesPerColumn?c:Math.ceil(c/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(k=Math.max(k,e.slidesPerView*e.slidesPerColumn)));for(var E,C=e.slidesPerColumn,T=k/C,x=Math.floor(c/e.slidesPerColumn),M=0;M<c;M+=1){S=0;var $=l.eq(M);if(e.slidesPerColumn>1){var P=void 0,O=void 0,L=void 0;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){var A=Math.floor(M/(e.slidesPerGroup*e.slidesPerColumn)),I=M-e.slidesPerColumn*e.slidesPerGroup*A,D=0===A?e.slidesPerGroup:Math.min(Math.ceil((c-A*C*e.slidesPerGroup)/C),e.slidesPerGroup);P=(O=I-(L=Math.floor(I/D))*D+A*e.slidesPerGroup)+L*k/C,$.css({"-webkit-box-ordinal-group":P,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})}else"column"===e.slidesPerColumnFill?(L=M-(O=Math.floor(M/C))*C,(O>x||O===x&&L===C-1)&&(L+=1)>=C&&(L=0,O+=1)):O=M-(L=Math.floor(M/T))*T;$.css("margin-".concat(this.isHorizontal()?"top":"left"),0!==L&&e.spaceBetween&&"".concat(e.spaceBetween,"px"))}if("none"!==$.css("display")){if("auto"===e.slidesPerView){var N=s.getComputedStyle($[0],null),R=$[0].style.transform,j=$[0].style.webkitTransform;if(R&&($[0].style.transform="none"),j&&($[0].style.webkitTransform="none"),e.roundLengths)S=this.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else if(this.isHorizontal()){var B=parseFloat(N.getPropertyValue("width")),Y=parseFloat(N.getPropertyValue("padding-left")),F=parseFloat(N.getPropertyValue("padding-right")),H=parseFloat(N.getPropertyValue("margin-left")),U=parseFloat(N.getPropertyValue("margin-right")),z=N.getPropertyValue("box-sizing");S=z&&"border-box"===z?B+H+U:B+Y+F+H+U}else{var V=parseFloat(N.getPropertyValue("height")),q=parseFloat(N.getPropertyValue("padding-top")),W=parseFloat(N.getPropertyValue("padding-bottom")),G=parseFloat(N.getPropertyValue("margin-top")),K=parseFloat(N.getPropertyValue("margin-bottom")),J=N.getPropertyValue("box-sizing");S=J&&"border-box"===J?V+G+K:V+q+W+G+K}R&&($[0].style.transform=R),j&&($[0].style.webkitTransform=j),e.roundLengths&&(S=Math.floor(S))}else S=(n-(e.slidesPerView-1)*y)/e.slidesPerView,e.roundLengths&&(S=Math.floor(S)),l[M]&&(this.isHorizontal()?l[M].style.width="".concat(S,"px"):l[M].style.height="".concat(S,"px"));l[M]&&(l[M].swiperSlideSize=S),h.push(S),e.centeredSlides?(b=b+S/2+_/2+y,0===_&&0!==M&&(b=b-n/2-y),0===M&&(b=b-n/2-y),Math.abs(b)<.001&&(b=0),e.roundLengths&&(b=Math.floor(b)),w%e.slidesPerGroup==0&&u.push(b),d.push(b)):(e.roundLengths&&(b=Math.floor(b)),(w-Math.min(this.params.slidesPerGroupSkip,w))%this.params.slidesPerGroup==0&&u.push(b),d.push(b),b=b+S+y),this.virtualSize+=S+y,_=S,w+=1}}if(this.virtualSize=Math.max(this.virtualSize,n)+m,r&&i&&("slide"===e.effect||"coverflow"===e.effect)&&t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.setWrapperSize&&(this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")})),e.slidesPerColumn>1&&(this.virtualSize=(S+e.spaceBetween)*k,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?t.css({width:"".concat(this.virtualSize+e.spaceBetween,"px")}):t.css({height:"".concat(this.virtualSize+e.spaceBetween,"px")}),e.centeredSlides)){E=[];for(var X=0;X<u.length;X+=1){var Q=u[X];e.roundLengths&&(Q=Math.floor(Q)),u[X]<this.virtualSize+u[0]&&E.push(Q)}u=E}if(!e.centeredSlides){E=[];for(var Z=0;Z<u.length;Z+=1){var ee=u[Z];e.roundLengths&&(ee=Math.floor(ee)),u[Z]<=this.virtualSize-n&&E.push(ee)}u=E,Math.floor(this.virtualSize-n)-Math.floor(u[u.length-1])>1&&u.push(this.virtualSize-n)}if(0===u.length&&(u=[0]),0!==e.spaceBetween&&(this.isHorizontal()?r?l.filter(f).css({marginLeft:"".concat(y,"px")}):l.filter(f).css({marginRight:"".concat(y,"px")}):l.filter(f).css({marginBottom:"".concat(y,"px")})),e.centeredSlides&&e.centeredSlidesBounds){var te=0;h.forEach((function(t){te+=t+(e.spaceBetween?e.spaceBetween:0)}));var ne=(te-=e.spaceBetween)-n;u=u.map((function(e){return e<0?-p:e>ne?ne+m:e}))}if(e.centerInsufficientSlides){var re=0;if(h.forEach((function(t){re+=t+(e.spaceBetween?e.spaceBetween:0)})),(re-=e.spaceBetween)<n){var ie=(n-re)/2;u.forEach((function(e,t){u[t]=e-ie})),d.forEach((function(e,t){d[t]=e+ie}))}}bs.extend(this,{slides:l,snapGrid:u,slidesGrid:d,slidesSizesGrid:h}),c!==a&&this.emit("slidesLengthChange"),u.length!==v&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),d.length!==g&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=[],r=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)n.push.apply(n,ks(this.visibleSlides));else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var i=this.activeIndex+t;if(i>this.slides.length)break;n.push(this.slides.eq(i)[0])}else n.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var o=n[t].offsetHeight;r=o>r?o:r}r&&this.$wrapperEl.css("height","".concat(r,"px"))},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,n=t.params,r=t.slides,i=t.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();var o=-e;i&&(o=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var a=0;a<r.length;a+=1){var s=r[a],l=(o+(n.centeredSlides?t.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var c=-(o-s.swiperSlideOffset),u=c+t.slidesSizesGrid[a],d=c>=0&&c<t.size-1||u>1&&u<=t.size||c<=0&&u>=t.size;d&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(a),r.eq(a).addClass(n.slideVisibleClass))}s.progress=i?-l:l}t.visibleSlides=ys(t.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var n=this.params,r=this.maxTranslate()-this.minTranslate(),i=this.progress,o=this.isBeginning,a=this.isEnd,s=o,l=a;0===r?(i=0,o=!0,a=!0):(o=(i=(e-this.minTranslate())/r)<=0,a=i>=1),bs.extend(this,{progress:i,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&this.updateSlidesProgress(e),o&&!s&&this.emit("reachBeginning toEdge"),a&&!l&&this.emit("reachEnd toEdge"),(s&&!o||l&&!a)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var e,t=this.slides,n=this.params,r=this.$wrapperEl,i=this.activeIndex,o=this.realIndex,a=this.virtual&&n.virtual.enabled;t.removeClass("".concat(n.slideActiveClass," ").concat(n.slideNextClass," ").concat(n.slidePrevClass," ").concat(n.slideDuplicateActiveClass," ").concat(n.slideDuplicateNextClass," ").concat(n.slideDuplicatePrevClass)),(e=a?this.$wrapperEl.find(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(i,'"]')):t.eq(i)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(o,'"]')).addClass(n.slideDuplicateActiveClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(o,'"]')).addClass(n.slideDuplicateActiveClass));var s=e.nextAll(".".concat(n.slideClass)).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=t.eq(0)).addClass(n.slideNextClass);var l=e.prevAll(".".concat(n.slideClass)).eq(0).addClass(n.slidePrevClass);n.loop&&0===l.length&&(l=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(s.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(s.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?r.children(".".concat(n.slideClass,":not(.").concat(n.slideDuplicateClass,')[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass):r.children(".".concat(n.slideClass,".").concat(n.slideDuplicateClass,'[data-swiper-slide-index="').concat(l.attr("data-swiper-slide-index"),'"]')).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,r=this.slidesGrid,i=this.snapGrid,o=this.params,a=this.activeIndex,s=this.realIndex,l=this.snapIndex,c=e;if(void 0===c){for(var u=0;u<r.length;u+=1)void 0!==r[u+1]?n>=r[u]&&n<r[u+1]-(r[u+1]-r[u])/2?c=u:n>=r[u]&&n<r[u+1]&&(c=u+1):n>=r[u]&&(c=u);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(n)>=0)t=i.indexOf(n);else{var d=Math.min(o.slidesPerGroupSkip,c);t=d+Math.floor((c-d)/o.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c!==a){var h=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);bs.extend(this,{snapIndex:t,realIndex:h,previousIndex:a,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==h&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,n=ys(e.target).closest(".".concat(t.slideClass))[0],r=!1;if(n)for(var i=0;i<this.slides.length;i+=1)this.slides[i]===n&&(r=!0);if(!n||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(ys(n).attr("data-swiper-slide-index"),10):this.clickedIndex=ys(n).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,n=t.params,r=t.rtlTranslate,i=t.translate,o=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;var a=bs.getTranslate(o[0],e);return r&&(a=-a),a||0},setTranslate:function(e,t){var n=this.rtlTranslate,r=this.params,i=this.$wrapperEl,o=this.wrapperEl,a=this.progress,s=0,l=0;this.isHorizontal()?s=n?-e:e:l=e,r.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),r.cssMode?o[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-l:r.virtualTranslate||i.transform("translate3d(".concat(s,"px, ").concat(l,"px, ").concat(0,"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:l;var c=this.maxTranslate()-this.minTranslate();(0===c?0:(e-this.minTranslate())/c)!==a&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,o=this,a=o.params,s=o.wrapperEl;if(o.animating&&a.preventInteractionOnTransition)return!1;var l,c=o.minTranslate(),u=o.maxTranslate();if(l=r&&e>c?c:r&&e<u?u:e,o.updateProgress(l),a.cssMode){var d,h=o.isHorizontal();if(0===t)s[h?"scrollLeft":"scrollTop"]=-l;else if(s.scrollTo)s.scrollTo((Cs(d={},h?"left":"top",-l),Cs(d,"behavior","smooth"),d));else s[h?"scrollLeft":"scrollTop"]=-l;return!0}return 0===t?(o.setTransition(0),o.setTranslate(l),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(l),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.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}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.activeIndex,i=n.params,o=n.previousIndex;if(!i.cssMode){i.autoHeight&&n.updateAutoHeight();var a=t;if(a||(a=r>o?"next":r<o?"prev":"reset"),n.emit("transitionStart"),e&&r!==o){if("reset"===a)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===a?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}},transitionEnd:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=this,r=n.activeIndex,i=n.previousIndex,o=n.params;if(n.animating=!1,!o.cssMode){n.setTransition(0);var a=t;if(a||(a=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),e&&r!==i){if("reset"===a)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===a?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}}},slide:{slideTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this,o=e;o<0&&(o=0);var a=i.params,s=i.snapGrid,l=i.slidesGrid,c=i.previousIndex,u=i.activeIndex,d=i.rtlTranslate,h=i.wrapperEl;if(i.animating&&a.preventInteractionOnTransition)return!1;var f=Math.min(i.params.slidesPerGroupSkip,o),p=f+Math.floor((o-f)/i.params.slidesPerGroup);p>=s.length&&(p=s.length-1),(u||a.initialSlide||0)===(c||0)&&n&&i.emit("beforeSlideChangeStart");var m,v=-s[p];if(i.updateProgress(v),a.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*v)>=Math.floor(100*l[g])&&(o=g);if(i.initialized&&o!==u){if(!i.allowSlideNext&&v<i.translate&&v<i.minTranslate())return!1;if(!i.allowSlidePrev&&v>i.translate&&v>i.maxTranslate()&&(u||0)!==o)return!1}if(m=o>u?"next":o<u?"prev":"reset",d&&-v===i.translate||!d&&v===i.translate)return i.updateActiveIndex(o),a.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==a.effect&&i.setTranslate(v),"reset"!==m&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(a.cssMode){var y,b=i.isHorizontal();if(0===t)h[b?"scrollLeft":"scrollTop"]=-v;else if(h.scrollTo)h.scrollTo((xs(y={},b?"left":"top",-v),xs(y,"behavior","smooth"),y));else h[b?"scrollLeft":"scrollTop"]=-v;return!0}return 0===t?(i.setTransition(0),i.setTranslate(v),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),i.transitionEnd(n,m)):(i.setTransition(t),i.setTranslate(v),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.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,m))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this,o=e;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,t,n,r)},slideNext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,o=r.animating,a=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+a,e,t,n)},slidePrev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this,i=r.params,o=r.animating,a=r.snapGrid,s=r.slidesGrid,l=r.rtlTranslate;if(i.loop){if(o)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var c=l?r.translate:-r.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=u(c),f=a.map((function(e){return u(e)})),p=(s.map((function(e){return u(e)})),a[f.indexOf(h)],a[f.indexOf(h)-1]);return void 0===p&&i.cssMode&&a.forEach((function(e){!p&&h>=e&&(p=e)})),void 0!==p&&(d=s.indexOf(p))<0&&(d=r.activeIndex-1),r.slideTo(d,e,t,n)},slideReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this;return r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,o=i.activeIndex,a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){var c=i.snapGrid[s],u=i.snapGrid[s+1];l-c>(u-c)*r&&(o+=i.params.slidesPerGroup)}else{var d=i.snapGrid[s-1],h=i.snapGrid[s];l-d<=(h-d)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(ys(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?o<t.loopedSlides-i/2||o>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),bs.nextTick((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=r.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]:not(.').concat(n.slideDuplicateClass,")")).eq(0).index(),bs.nextTick((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(){var e=this,t=e.params,n=e.$wrapperEl;n.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass)).remove();var r=n.children(".".concat(t.slideClass));if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-r.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var o=0;o<i;o+=1){var s=ys(a.createElement("div")).addClass("".concat(t.slideClass," ").concat(t.slideBlankClass));n.append(s)}r=n.children(".".concat(t.slideClass))}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);var l=[],c=[];r.each((function(t,n){var i=ys(n);t<e.loopedSlides&&c.push(n),t<r.length&&t>=r.length-e.loopedSlides&&l.push(n),i.attr("data-swiper-slide-index",t)}));for(var u=0;u<c.length;u+=1)n.append(ys(c[u].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var d=l.length-1;d>=0;d-=1)n.prepend(ys(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,n=this.slides,r=this.loopedSlides,i=this.allowSlidePrev,o=this.allowSlideNext,a=this.snapGrid,s=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-a[t]-this.getTranslate();if(t<r)e=n.length-3*r+t,e+=r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l);else if(t>=n.length-r){e=-n.length+t+r,e+=r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l)}this.allowSlidePrev=i,this.allowSlideNext=o,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,n=this.slides;e.children(".".concat(t.slideClass,".").concat(t.slideDuplicateClass,",.").concat(t.slideClass,".").concat(t.slideBlankClass)).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(!(_s.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){_s.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},manipulation:{appendSlide:function(e){var t=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"===Ms(e)&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&t.append(e[r]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&_s.observer||this.update()},prependSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&this.loopDestroy();var i=r+1;if("object"===$s(e)&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&n.prepend(e[o]);i=r+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&_s.observer||this.update(),this.slideTo(i,0,!1)},addSlide:function(e,t){var n=this.$wrapperEl,r=this.params,i=this.activeIndex;r.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(r.slideClass)));var o=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=o)this.appendSlide(t);else{for(var a=i>e?i+1:i,s=[],l=o-1;l>=e;l-=1){var c=this.slides.eq(l);c.remove(),s.unshift(c)}if("object"===Ps(t)&&"length"in t){for(var u=0;u<t.length;u+=1)t[u]&&n.append(t[u]);a=i>e?i+t.length:i}else n.append(t);for(var d=0;d<s.length;d+=1)n.append(s[d]);r.loop&&this.loopCreate(),r.observer&&_s.observer||this.update(),r.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)}},removeSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&(r-=this.loopedSlides,this.loopDestroy(),this.slides=n.children(".".concat(t.slideClass)));var i,o=r;if("object"===Os(e)&&"length"in e){for(var a=0;a<e.length;a+=1)i=e[a],this.slides[i]&&this.slides.eq(i).remove(),i<o&&(o-=1);o=Math.max(o,0)}else i=e,this.slides[i]&&this.slides.eq(i).remove(),i<o&&(o-=1),o=Math.max(o,0);t.loop&&this.loopCreate(),t.observer&&_s.observer||this.update(),t.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},events:{attachEvents:function(){var e=this.params,t=this.touchEvents,n=this.el,r=this.wrapperEl;this.onTouchStart=As.bind(this),this.onTouchMove=Is.bind(this),this.onTouchEnd=Ds.bind(this),e.cssMode&&(this.onScroll=js.bind(this)),this.onClick=Rs.bind(this);var i=!!e.nested;if(!_s.touch&&_s.pointerEvents)n.addEventListener(t.start,this.onTouchStart,!1),a.addEventListener(t.move,this.onTouchMove,i),a.addEventListener(t.end,this.onTouchEnd,!1);else{if(_s.touch){var o=!("touchstart"!==t.start||!_s.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(t.start,this.onTouchStart,o),n.addEventListener(t.move,this.onTouchMove,_s.passiveListener?{passive:!1,capture:i}:i),n.addEventListener(t.end,this.onTouchEnd,o),t.cancel&&n.addEventListener(t.cancel,this.onTouchEnd,o),Bs||(a.addEventListener("touchstart",Ys),Bs=!0)}(e.simulateTouch&&!Ls.ios&&!Ls.android||e.simulateTouch&&!_s.touch&&Ls.ios)&&(n.addEventListener("mousedown",this.onTouchStart,!1),a.addEventListener("mousemove",this.onTouchMove,i),a.addEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.addEventListener("click",this.onClick,!0),e.cssMode&&r.addEventListener("scroll",this.onScroll),e.updateOnWindowResize?this.on(Ls.ios||Ls.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ns,!0):this.on("observerUpdate",Ns,!0)},detachEvents:function(){var e=this.params,t=this.touchEvents,n=this.el,r=this.wrapperEl,i=!!e.nested;if(!_s.touch&&_s.pointerEvents)n.removeEventListener(t.start,this.onTouchStart,!1),a.removeEventListener(t.move,this.onTouchMove,i),a.removeEventListener(t.end,this.onTouchEnd,!1);else{if(_s.touch){var o=!("onTouchStart"!==t.start||!_s.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(t.start,this.onTouchStart,o),n.removeEventListener(t.move,this.onTouchMove,i),n.removeEventListener(t.end,this.onTouchEnd,o),t.cancel&&n.removeEventListener(t.cancel,this.onTouchEnd,o)}(e.simulateTouch&&!Ls.ios&&!Ls.android||e.simulateTouch&&!_s.touch&&Ls.ios)&&(n.removeEventListener("mousedown",this.onTouchStart,!1),a.removeEventListener("mousemove",this.onTouchMove,i),a.removeEventListener("mouseup",this.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&n.removeEventListener("click",this.onClick,!0),e.cssMode&&r.removeEventListener("scroll",this.onScroll),this.off(Ls.ios||Ls.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ns)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,n=this.loopedSlides,r=void 0===n?0:n,i=this.params,o=this.$el,a=i.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var s=this.getBreakpoint(a);if(s&&this.currentBreakpoint!==s){var l=s in a?a[s]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=l||this.originalParams,u=i.slidesPerColumn>1,d=c.slidesPerColumn>1;u&&!d?o.removeClass("".concat(i.containerModifierClass,"multirow ").concat(i.containerModifierClass,"multirow-column")):!u&&d&&(o.addClass("".concat(i.containerModifierClass,"multirow")),"column"===c.slidesPerColumnFill&&o.addClass("".concat(i.containerModifierClass,"multirow-column")));var h=c.direction&&c.direction!==i.direction,f=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&t&&this.changeDirection(),bs.extend(this.params,c),bs.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=s,f&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-r+this.loopedSlides,0,!1)),this.emit("breakpoint",c)}}},getBreakpoint:function(e){if(e){var t=!1,n=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s.innerHeight*t,point:e}}return{value:e,point:e}}));n.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var r=0;r<n.length;r+=1){var i=n[r],o=i.point;i.value<=s.innerWidth&&(t=o)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,n=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?this.isLocked=n<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,n=this.rtl,r=this.$el,i=[];i.push("initialized"),i.push(t.direction),t.freeMode&&i.push("free-mode"),t.autoHeight&&i.push("autoheight"),n&&i.push("rtl"),t.slidesPerColumn>1&&(i.push("multirow"),"column"===t.slidesPerColumnFill&&i.push("multirow-column")),Ls.android&&i.push("android"),Ls.ios&&i.push("ios"),t.cssMode&&i.push("css-mode"),i.forEach((function(n){e.push(t.containerModifierClass+n)})),r.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,r,i,o){var a;function l(){o&&o()}e.complete&&i?l():t?((a=new s.Image).onload=l,a.onerror=l,r&&(a.sizes=r),n&&(a.srcset=n),t&&(a.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},Qs={},Zs=function(e){function t(){var e,n,r;Us(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];1===o.length&&o[0].constructor&&o[0].constructor===Object?r=o[0]:(n=o[0],r=o[1]),r||(r={}),r=bs.extend({},r),n&&!r.el&&(r.el=n),e=qs(this,Ws(t).call(this,r)),Object.keys(Xs).forEach((function(e){Object.keys(Xs[e]).forEach((function(n){t.prototype[n]||(t.prototype[n]=Xs[e][n])}))}));var s=Gs(e);void 0===s.modules&&(s.modules={}),Object.keys(s.modules).forEach((function(e){var t=s.modules[e];if(t.params){var n=Object.keys(t.params)[0],i=t.params[n];if("object"!==Hs(i)||null===i)return;if(!(n in r)||!("enabled"in i))return;!0===r[n]&&(r[n]={enabled:!0}),"object"!==Hs(r[n])||"enabled"in r[n]||(r[n].enabled=!0),r[n]||(r[n]={enabled:!1})}}));var l=bs.extend({},Fs);s.useModulesParams(l),s.params=bs.extend({},l,Qs,r),s.originalParams=bs.extend({},s.params),s.passedParams=bs.extend({},r),s.$=ys;var c,u,d,h=ys(s.params.el);if(!(n=h[0]))return qs(e,void 0);if(h.length>1){var f=[];return h.each((function(e,n){var i=bs.extend({},r,{el:n});f.push(new t(i))})),qs(e,f)}return n.swiper=s,h.data("swiper",s),n&&n.shadowRoot&&n.shadowRoot.querySelector?(c=ys(n.shadowRoot.querySelector(".".concat(s.params.wrapperClass)))).children=function(e){return h.children(e)}:c=h.children(".".concat(s.params.wrapperClass)),bs.extend(s,{$el:h,el:n,$wrapperEl:c,wrapperEl:c[0],classNames:[],slides:ys(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===s.params.direction},isVertical:function(){return"vertical"===s.params.direction},rtl:"rtl"===n.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===s.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===c.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:(u=["touchstart","touchmove","touchend","touchcancel"],d=["mousedown","mousemove","mouseup"],_s.pointerEvents&&(d=["pointerdown","pointermove","pointerup"]),s.touchEventsTouch={start:u[0],move:u[1],end:u[2],cancel:u[3]},s.touchEventsDesktop={start:d[0],move:d[1],end:d[2]},_s.touch||!s.params.simulateTouch?s.touchEventsTouch:s.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:bs.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.useModules(),s.params.init&&s.init(),qs(e,s)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ks(e,t)}(t,e),n=t,i=[{key:"extendDefaults",value:function(e){bs.extend(Qs,e)}},{key:"extendedDefaults",get:function(){return Qs}},{key:"defaults",get:function(){return Fs}},{key:"Class",get:function(){return ws}},{key:"$",get:function(){return ys}}],(r=[{key:"slidesPerViewDynamic",value:function(){var e=this.params,t=this.slides,n=this.slidesGrid,r=this.size,i=this.activeIndex,o=1;if(e.centeredSlides){for(var a,s=t[i].swiperSlideSize,l=i+1;l<t.length;l+=1)t[l]&&!a&&(o+=1,(s+=t[l].swiperSlideSize)>r&&(a=!0));for(var c=i-1;c>=0;c-=1)t[c]&&!a&&(o+=1,(s+=t[c].swiperSlideSize)>r&&(a=!0))}else for(var u=i+1;u<t.length;u+=1)n[u]-n[i]<r&&(o+=1);return o}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass("".concat(n.params.containerModifierClass).concat(r)).addClass("".concat(n.params.containerModifierClass).concat(e)),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"init",value:function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params,i=n.$el,o=n.$wrapperEl,a=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.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((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),bs.deleteProps(n)),n.destroyed=!0),null}}])&&zs(n.prototype,r),i&&zs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(ws),el={name:"device",proto:{device:Ls},static:{device:Ls}},tl={name:"support",proto:{support:_s},static:{support:_s}},nl={isEdge:!!s.navigator.userAgent.match(/Edge/g),isSafari:(Js=s.navigator.userAgent.toLowerCase(),Js.indexOf("safari")>=0&&Js.indexOf("chrome")<0&&Js.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(s.navigator.userAgent)},rl={name:"browser",proto:{browser:nl},static:{browser:nl}},il={name:"resize",create:function(){var e=this;bs.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){s.addEventListener("resize",this.resize.resizeHandler),s.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){s.removeEventListener("resize",this.resize.resizeHandler),s.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},ol={func:s.MutationObserver||s.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,r=ol.func,i=new r((function(e){if(1!==e.length){var t=function(){n.emit("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(t):s.setTimeout(t,0)}else n.emit("observerUpdate",e[0])}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){if(_s.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},al={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){bs.extend(this,{observer:{init:ol.init.bind(this),attach:ol.attach.bind(this),destroy:ol.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}};function sl(e){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ll={update:function(e){var t=this,n=t.params,r=n.slidesPerView,i=n.slidesPerGroup,o=n.centeredSlides,a=t.params.virtual,s=a.addSlidesBefore,l=a.addSlidesAfter,c=t.virtual,u=c.from,d=c.to,h=c.slides,f=c.slidesGrid,p=c.renderSlide,m=c.offset;t.updateActiveIndex();var v,g,y,b=t.activeIndex||0;v=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(g=Math.floor(r/2)+i+s,y=Math.floor(r/2)+i+l):(g=r+(i-1)+s,y=i+l);var _=Math.max((b||0)-y,0),w=Math.min((b||0)+g,h.length-1),k=(t.slidesGrid[_]||0)-(t.slidesGrid[0]||0);function S(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(bs.extend(t.virtual,{from:_,to:w,offset:k,slidesGrid:t.slidesGrid}),u===_&&d===w&&!e)return t.slidesGrid!==f&&k!==m&&t.slides.css(v,"".concat(k,"px")),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:k,from:_,to:w,slides:function(){for(var e=[],t=_;t<=w;t+=1)e.push(h[t]);return e}()}),void S();var E=[],C=[];if(e)t.$wrapperEl.find(".".concat(t.params.slideClass)).remove();else for(var T=u;T<=d;T+=1)(T<_||T>w)&&t.$wrapperEl.find(".".concat(t.params.slideClass,'[data-swiper-slide-index="').concat(T,'"]')).remove();for(var x=0;x<h.length;x+=1)x>=_&&x<=w&&(void 0===d||e?C.push(x):(x>d&&C.push(x),x<u&&E.push(x)));C.forEach((function(e){t.$wrapperEl.append(p(h[e],e))})),E.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(p(h[e],e))})),t.$wrapperEl.children(".swiper-slide").css(v,"".concat(k,"px")),S()},renderSlide:function(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var r=n.renderSlide?ys(n.renderSlide.call(this,e,t)):ys('<div class="'.concat(this.params.slideClass,'" data-swiper-slide-index="').concat(t,'">').concat(e,"</div>"));return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=r),r},appendSlide:function(e){if("object"===sl(e)&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,n=t+1,r=1;if(Array.isArray(e)){for(var i=0;i<e.length;i+=1)e[i]&&this.virtual.slides.unshift(e[i]);n=t+e.length,r=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var o=this.virtual.cache,a={};Object.keys(o).forEach((function(e){var t=o[e],n=t.attr("data-swiper-slide-index");n&&t.attr("data-swiper-slide-index",parseInt(n,10)+1),a[parseInt(e,10)+r]=t})),this.virtual.cache=a}this.virtual.update(!0),this.slideTo(n,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)this.virtual.slides.splice(e[n],1),this.params.virtual.cache&&delete this.virtual.cache[e[n]],e[n]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},cl={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){bs.extend(this,{virtual:{update:ll.update.bind(this),appendSlide:ll.appendSlide.bind(this),prependSlide:ll.prependSlide.bind(this),removeSlide:ll.removeSlide.bind(this),removeAllSlides:ll.removeAllSlides.bind(this),renderSlide:ll.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push("".concat(this.params.containerModifierClass,"virtual"));var e={watchSlidesProgress:!0};bs.extend(this.params,e),bs.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},ul={handle:function(e){var t=this.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r||34===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||a.activeElement&&a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var i=!1;if(this.$el.parents(".".concat(this.params.slideClass)).length>0&&0===this.$el.parents(".".concat(this.params.slideActiveClass)).length)return;var o=s.innerWidth,l=s.innerHeight,c=this.$el.offset();t&&(c.left-=this.$el[0].scrollLeft);for(var u=[[c.left,c.top],[c.left+this.width,c.top],[c.left,c.top+this.height],[c.left+this.width,c.top+this.height]],d=0;d<u.length;d+=1){var h=u[d];h[0]>=0&&h[0]<=o&&h[1]>=0&&h[1]<=l&&(i=!0)}if(!i)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||t)&&(33!==r&&37!==r||!t)||this.slideNext(),(33!==r&&37!==r||t)&&(34!==r&&39!==r||!t)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(ys(a).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(ys(a).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},dl={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){bs.extend(this,{keyboard:{enabled:!1,enable:ul.enable.bind(this),disable:ul.disable.bind(this),handle:ul.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var hl={lastScrollTime:bs.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return s.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in a;if(!e){var t=a.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&a.implementation&&a.implementation.hasFeature&&!0!==a.implementation.hasFeature("","")&&(e=a.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,n=this,r=n.params.mousewheel;n.params.cssMode&&t.preventDefault();var i=n.$el;if("container"!==n.params.mousewheel.eventsTarged&&(i=ys(n.params.mousewheel.eventsTarged)),!n.mouseEntered&&!i[0].contains(t.target)&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var o=0,a=n.rtlTranslate?-1:1,s=hl.normalize(t);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;o=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;o=s.pixelY}else o=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===o)return!0;if(r.invert&&(o=-o),n.params.freeMode){var l={time:bs.now(),delta:Math.abs(o),direction:Math.sign(o)},c=n.mousewheel.lastEventBeforeSnap,u=c&&l.time<c.time+500&&l.delta<=c.delta&&l.direction===c.direction;if(!u){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();var d=n.getTranslate()+o*r.sensitivity,h=n.isBeginning,f=n.isEnd;if(d>=n.minTranslate()&&(d=n.minTranslate()),d<=n.maxTranslate()&&(d=n.maxTranslate()),n.setTransition(0),n.setTranslate(d),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!h&&n.isBeginning||!f&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var p=n.mousewheel.recentWheelEvents;p.length>=15&&p.shift();var m=p.length?p[p.length-1]:void 0,v=p[0];if(p.push(l),m&&(l.delta>m.delta||l.direction!==m.direction))p.splice(0);else if(p.length>=15&&l.time-v.time<500&&v.delta-l.delta>=1&&l.delta<=6){var g=o>0?.8:.2;n.mousewheel.lastEventBeforeSnap=l,p.splice(0),n.mousewheel.timeout=bs.nextTick((function(){n.slideToClosest(n.params.speed,!0,void 0,g)}),0)}n.mousewheel.timeout||(n.mousewheel.timeout=bs.nextTick((function(){n.mousewheel.lastEventBeforeSnap=l,p.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(u||n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),d===n.minTranslate()||d===n.maxTranslate())return!0}}else{var y={time:bs.now(),delta:Math.abs(o),direction:Math.sign(o),raw:e},b=n.mousewheel.recentWheelEvents;b.length>=2&&b.shift();var _=b.length?b[b.length-1]:void 0;if(b.push(y),_?(y.direction!==_.direction||y.delta>_.delta)&&n.mousewheel.animateSlider(y):n.mousewheel.animateSlider(y),n.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){return e.delta>=6&&bs.now()-this.mousewheel.lastScrollTime<60||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=(new s.Date).getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=hl.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=ys(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=hl.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=ys(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},fl={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){bs.extend(this,{mousewheel:{enabled:!1,enable:hl.enable.bind(this),disable:hl.disable.bind(this),handle:hl.handle.bind(this),handleMouseEnter:hl.handleMouseEnter.bind(this),handleMouseLeave:hl.handleMouseLeave.bind(this),animateSlider:hl.animateSlider.bind(this),releaseScroll:hl.releaseScroll.bind(this),lastScrollTime:bs.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){!this.params.mousewheel.enabled&&this.params.cssMode&&this.mousewheel.disable(),this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},pl={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(this.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=ys(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&e.length>1&&1===this.$el.find(n.nextEl).length&&(e=this.$el.find(n.nextEl))),n.prevEl&&(t=ys(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&t.length>1&&1===this.$el.find(n.prevEl).length&&(t=this.$el.find(n.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),bs.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("click",this.navigation.onPrevClick),n.removeClass(this.params.navigation.disabledClass))}},ml={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){bs.extend(this,{navigation:{init:pl.init.bind(this),update:pl.update.bind(this),destroy:pl.destroy.bind(this),onNextClick:pl.onNextClick.bind(this),onPrevClick:pl.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this.navigation,r=n.$nextEl,i=n.$prevEl;!this.params.navigation.hideOnClick||ys(e.target).is(i)||ys(e.target).is(r)||(r?t=r.hasClass(this.params.navigation.hiddenClass):i&&(t=i.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),r&&r.toggleClass(this.params.navigation.hiddenClass),i&&i.toggleClass(this.params.navigation.hiddenClass))}}},vl={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,o=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(n-=r-2*this.loopedSlides),n>o-1&&(n-=o),n<0&&"bullets"!==this.params.paginationType&&(n=o+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var a,s,l,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(this.isHorizontal()?"width":"height","".concat(this.pagination.bulletSize*(t.dynamicMainBullets+4),"px")),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),a=n-this.pagination.dynamicBulletIndex,l=((s=a+(Math.min(c.length,t.dynamicMainBullets)-1))+a)/2),c.removeClass("".concat(t.bulletActiveClass," ").concat(t.bulletActiveClass,"-next ").concat(t.bulletActiveClass,"-next-next ").concat(t.bulletActiveClass,"-prev ").concat(t.bulletActiveClass,"-prev-prev ").concat(t.bulletActiveClass,"-main")),i.length>1)c.each((function(e,r){var i=ys(r),o=i.index();o===n&&i.addClass(t.bulletActiveClass),t.dynamicBullets&&(o>=a&&o<=s&&i.addClass("".concat(t.bulletActiveClass,"-main")),o===a&&i.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),o===s&&i.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next")))}));else{var u=c.eq(n),d=u.index();if(u.addClass(t.bulletActiveClass),t.dynamicBullets){for(var h=c.eq(a),f=c.eq(s),p=a;p<=s;p+=1)c.eq(p).addClass("".concat(t.bulletActiveClass,"-main"));if(this.params.loop)if(d>=c.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)c.eq(c.length-m).addClass("".concat(t.bulletActiveClass,"-main"));c.eq(c.length-t.dynamicMainBullets-1).addClass("".concat(t.bulletActiveClass,"-prev"))}else h.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),f.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"));else h.prev().addClass("".concat(t.bulletActiveClass,"-prev")).prev().addClass("".concat(t.bulletActiveClass,"-prev-prev")),f.next().addClass("".concat(t.bulletActiveClass,"-next")).next().addClass("".concat(t.bulletActiveClass,"-next-next"))}}if(t.dynamicBullets){var v=Math.min(c.length,t.dynamicMainBullets+4),g=(this.pagination.bulletSize*v-this.pagination.bulletSize)/2-l*this.pagination.bulletSize,y=e?"right":"left";c.css(this.isHorizontal()?y:"top","".concat(g,"px"))}}if("fraction"===t.type&&(i.find(".".concat(t.currentClass)).text(t.formatFractionCurrent(n+1)),i.find(".".concat(t.totalClass)).text(t.formatFractionTotal(o))),"progressbar"===t.type){var b;b=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var _=(n+1)/o,w=1,k=1;"horizontal"===b?w=_:k=_,i.find(".".concat(t.progressbarFillClass)).transform("translate3d(0,0,0) scaleX(".concat(w,") scaleY(").concat(k,")")).transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(i.html(t.renderCustom(this,n+1,o)),this.emit("paginationRender",this,i[0])):this.emit("paginationUpdate",this,i[0]),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r="";if("bullets"===e.type){for(var i=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,o=0;o<i;o+=1)e.renderBullet?r+=e.renderBullet.call(this,o,e.bulletClass):r+="<".concat(e.bulletElement,' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">");n.html(r),this.pagination.bullets=n.find(".".concat(e.bulletClass))}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>'),n.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>'),n.html(r)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=ys(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass("".concat(t.modifierClass).concat(t.type,"-dynamic")),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",".".concat(t.bulletClass),(function(t){t.preventDefault();var n=ys(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),bs.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click",".".concat(e.bulletClass))}}},gl={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:function(e){return e},formatFractionTotal:function(e){return e},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:function(){bs.extend(this,{pagination:{init:vl.init.bind(this),render:vl.render.bind(this),update:vl.update.bind(this),destroy:vl.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!ys(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},yl={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,n=this.progress,r=e.dragSize,i=e.trackSize,o=e.$dragEl,a=e.$el,s=this.params.scrollbar,l=r,c=(i-r)*n;t?(c=-c)>0?(l=r-c,c=0):-c+r>i&&(l=i+c):c<0?(l=r+c,c=0):c+r>i&&(l=i-c),this.isHorizontal()?(o.transform("translate3d(".concat(c,"px, 0, 0)")),o[0].style.width="".concat(l,"px")):(o.transform("translate3d(0px, ".concat(c,"px, 0)")),o[0].style.height="".concat(l,"px")),s.hide&&(clearTimeout(this.scrollbar.timeout),a[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){a[0].style.opacity=0,a.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,n=e.$el;t[0].style.width="",t[0].style.height="";var r,i=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,o=this.size/this.virtualSize,a=o*(i/this.size);r="auto"===this.params.scrollbar.dragSize?i*o:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width="".concat(r,"px"):t[0].style.height="".concat(r,"px"),n[0].style.display=o>=1?"none":"",this.params.scrollbar.hide&&(n[0].style.opacity=0),bs.extend(e,{trackSize:i,divider:o,moveDivider:a,dragSize:r}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,n=this.scrollbar,r=this.rtlTranslate,i=n.$el,o=n.dragSize,a=n.trackSize,s=n.dragStartPos;t=(n.getPointerPosition(e)-i.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:o/2))/(a-o),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el,o=n.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===o[0]||e.target===o?n.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),o.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),i.transition(0),t.hide&&i.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,n=this.$wrapperEl,r=t.$el,i=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),r.transition(0),i.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),r.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=bs.nextTick((function(){i.css("opacity",0),i.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,i=e.$el[0],o=!(!_s.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},s=!(!_s.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};_s.touch?(i.addEventListener(t.start,this.scrollbar.onDragStart,o),i.addEventListener(t.move,this.scrollbar.onDragMove,o),i.addEventListener(t.end,this.scrollbar.onDragEnd,s)):(i.addEventListener(n.start,this.scrollbar.onDragStart,o),a.addEventListener(n.move,this.scrollbar.onDragMove,o),a.addEventListener(n.end,this.scrollbar.onDragEnd,s))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,i=e.$el[0],o=!(!_s.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},s=!(!_s.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};_s.touch?(i.removeEventListener(t.start,this.scrollbar.onDragStart,o),i.removeEventListener(t.move,this.scrollbar.onDragMove,o),i.removeEventListener(t.end,this.scrollbar.onDragEnd,s)):(i.removeEventListener(n.start,this.scrollbar.onDragStart,o),a.removeEventListener(n.move,this.scrollbar.onDragMove,o),a.removeEventListener(n.end,this.scrollbar.onDragEnd,s))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,n=this.params.scrollbar,r=ys(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===t.find(n.el).length&&(r=t.find(n.el));var i=r.find(".".concat(this.params.scrollbar.dragClass));0===i.length&&(i=ys('<div class="'.concat(this.params.scrollbar.dragClass,'"></div>')),r.append(i)),bs.extend(e,{$el:r,el:r[0],$dragEl:i,dragEl:i[0]}),n.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},bl={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){bs.extend(this,{scrollbar:{init:yl.init.bind(this),destroy:yl.destroy.bind(this),updateSize:yl.updateSize.bind(this),setTranslate:yl.setTranslate.bind(this),setTransition:yl.setTransition.bind(this),enableDraggable:yl.enableDraggable.bind(this),disableDraggable:yl.disableDraggable.bind(this),setDragPosition:yl.setDragPosition.bind(this),getPointerPosition:yl.getPointerPosition.bind(this),onDragStart:yl.onDragStart.bind(this),onDragMove:yl.onDragMove.bind(this),onDragEnd:yl.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},_l={setTransform:function(e,t){var n=this.rtl,r=ys(e),i=n?-1:1,o=r.attr("data-swiper-parallax")||"0",a=r.attr("data-swiper-parallax-x"),s=r.attr("data-swiper-parallax-y"),l=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(a||s?(a=a||"0",s=s||"0"):this.isHorizontal()?(a=o,s="0"):(s=o,a="0"),a=a.indexOf("%")>=0?"".concat(parseInt(a,10)*t*i,"%"):"".concat(a*t*i,"px"),s=s.indexOf("%")>=0?"".concat(parseInt(s,10)*t,"%"):"".concat(s*t,"px"),null!=c){var u=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=u}if(null==l)r.transform("translate3d(".concat(a,", ").concat(s,", 0px)"));else{var d=l-(l-1)*(1-Math.abs(t));r.transform("translate3d(".concat(a,", ").concat(s,", 0px) scale(").concat(d,")"))}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,r=e.progress,i=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,r)})),n.each((function(t,n){var o=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(t/2)-r*(i.length-1)),o=Math.min(Math.max(o,-1),1),ys(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,o)}))}))},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=this,n=t.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var r=ys(n),i=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),r.transition(i)}))}},wl={name:"parallax",params:{parallax:{enabled:!1}},create:function(){bs.extend(this,{parallax:{setTransform:_l.setTransform.bind(this),setTranslate:_l.setTranslate.bind(this),setTransition:_l.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},kl={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))},onGestureStart:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!_s.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=kl.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=ys(e.target).closest(".".concat(this.params.slideClass)),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent(".".concat(t.containerClass)),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(!_s.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=kl.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=_s.gestures?e.scale*n.currentScale:r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale(".concat(n.scale,")")))},onGestureEnd:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(!_s.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Ls.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),t.minRatio),r.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(".concat(n.scale,")")),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,r=t.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(Ls.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,n=t.gesture,r=t.image,i=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=bs.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=bs.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var o=r.width*t.scale,a=r.height*t.scale;if(!(o<n.slideWidth&&a<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-o/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-a/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),i.prevPositionX||(i.prevPositionX=r.touchesCurrent.x),i.prevPositionY||(i.prevPositionY=r.touchesCurrent.y),i.prevTime||(i.prevTime=Date.now()),i.x=(r.touchesCurrent.x-i.prevPositionX)/(Date.now()-i.prevTime)/2,i.y=(r.touchesCurrent.y-i.prevPositionY)/(Date.now()-i.prevTime)/2,Math.abs(r.touchesCurrent.x-i.prevPositionX)<2&&(i.x=0),Math.abs(r.touchesCurrent.y-i.prevPositionY)<2&&(i.y=0),i.prevPositionX=r.touchesCurrent.x,i.prevPositionY=r.touchesCurrent.y,i.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d(".concat(r.currentX,"px, ").concat(r.currentY,"px,0)"))}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,r=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,o=300,a=r.x*i,s=n.currentX+a,l=r.y*o,c=n.currentY+l;0!==r.x&&(i=Math.abs((s-n.currentX)/r.x)),0!==r.y&&(o=Math.abs((c-n.currentY)/r.y));var u=Math.max(i,o);n.currentX=s,n.currentY=c;var d=n.width*e.scale,h=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(t.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),t.$imageWrapEl.transition(u).transform("translate3d(".concat(n.currentX,"px, ").concat(n.currentY,"px,0)"))}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,m,v,g=this.zoom,y=this.params.zoom,b=g.gesture,_=g.image;(b.$slideEl||(b.$slideEl=this.slides.eq(this.activeIndex),b.$imageEl=b.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),b.$imageWrapEl=b.$imageEl.parent(".".concat(y.containerClass))),b.$imageEl&&0!==b.$imageEl.length)&&(b.$slideEl.addClass("".concat(y.zoomedSlideClass)),void 0===_.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=_.touchesStart.x,n=_.touchesStart.y),g.scale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,g.currentScale=b.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,e?(m=b.$slideEl[0].offsetWidth,v=b.$slideEl[0].offsetHeight,r=b.$slideEl.offset().left+m/2-t,i=b.$slideEl.offset().top+v/2-n,s=b.$imageEl[0].offsetWidth,l=b.$imageEl[0].offsetHeight,c=s*g.scale,u=l*g.scale,f=-(d=Math.min(m/2-c/2,0)),p=-(h=Math.min(v/2-u/2,0)),(o=r*g.scale)<d&&(o=d),o>f&&(o=f),(a=i*g.scale)<h&&(a=h),a>p&&(a=p)):(o=0,a=0),b.$imageWrapEl.transition(300).transform("translate3d(".concat(o,"px, ").concat(a,"px,0)")),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale(".concat(g.scale,")")))},out:function(){var e=this.zoom,t=this.params.zoom,n=e.gesture;n.$slideEl||(n.$slideEl=this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent(".".concat(t.containerClass))),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass("".concat(t.zoomedSlideClass)),n.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!_s.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},n=!_s.passiveListener||{passive:!1,capture:!0},r=".".concat(this.params.slideClass);_s.gestures?(this.$wrapperEl.on("gesturestart",r,e.onGestureStart,t),this.$wrapperEl.on("gesturechange",r,e.onGestureChange,t),this.$wrapperEl.on("gestureend",r,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,r,e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,r,e.onGestureChange,n),this.$wrapperEl.on(this.touchEvents.end,r,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,r,e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove,n)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!_s.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},n=!_s.passiveListener||{passive:!1,capture:!0},r=".".concat(this.params.slideClass);_s.gestures?(this.$wrapperEl.off("gesturestart",r,e.onGestureStart,t),this.$wrapperEl.off("gesturechange",r,e.onGestureChange,t),this.$wrapperEl.off("gestureend",r,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,r,e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,r,e.onGestureChange,n),this.$wrapperEl.off(this.touchEvents.end,r,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,r,e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,".".concat(this.params.zoom.containerClass),e.onTouchMove,n)}}},Sl={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={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((function(n){t[n]=kl[n].bind(e)})),bs.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,i)}n=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},El={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var i=n.virtual&&n.params.virtual.enabled,o=i?n.$wrapperEl.children(".".concat(n.params.slideClass,'[data-swiper-slide-index="').concat(e,'"]')):n.slides.eq(e),a=o.find(".".concat(r.elementClass,":not(.").concat(r.loadedClass,"):not(.").concat(r.loadingClass,")"));!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(a=a.add(o[0])),0!==a.length&&a.each((function(e,i){var a=ys(i);a.addClass(r.loadingClass);var s=a.attr("data-background"),l=a.attr("data-src"),c=a.attr("data-srcset"),u=a.attr("data-sizes");n.loadImage(a[0],l||s,c,u,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(s?(a.css("background-image",'url("'.concat(s,'")')),a.removeAttr("data-background")):(c&&(a.attr("srcset",c),a.removeAttr("data-srcset")),u&&(a.attr("sizes",u),a.removeAttr("data-sizes")),l&&(a.attr("src",l),a.removeAttr("data-src"))),a.addClass(r.loadedClass).removeClass(r.loadingClass),o.find(".".concat(r.preloaderClass)).remove(),n.params.loop&&t){var e=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'.concat(e,'"]:not(.').concat(n.params.slideDuplicateClass,")"));n.lazy.loadInSlide(i.index(),!1)}else{var d=n.$wrapperEl.children(".".concat(n.params.slideDuplicateClass,'[data-swiper-slide-index="').concat(e,'"]'));n.lazy.loadInSlide(d.index(),!1)}}n.emit("lazyImageReady",o[0],a[0]),n.params.autoHeight&&n.updateAutoHeight()}})),n.emit("lazyImageLoad",o[0],a[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides,i=e.activeIndex,o=e.virtual&&n.virtual.enabled,a=n.lazy,s=n.slidesPerView;function l(e){if(o){if(t.children(".".concat(n.slideClass,'[data-swiper-slide-index="').concat(e,'"]')).length)return!0}else if(r[e])return!0;return!1}function c(e){return o?ys(e).attr("data-swiper-slide-index"):ys(e).index()}if("auto"===s&&(s=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(".".concat(n.slideVisibleClass)).each((function(t,n){var r=o?ys(n).attr("data-swiper-slide-index"):ys(n).index();e.lazy.loadInSlide(r)}));else if(s>1)for(var u=i;u<i+s;u+=1)l(u)&&e.lazy.loadInSlide(u);else e.lazy.loadInSlide(i);if(a.loadPrevNext)if(s>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var d=a.loadPrevNextAmount,h=s,f=Math.min(i+h+Math.max(d,h),r.length),p=Math.max(i-Math.max(h,d),0),m=i+s;m<f;m+=1)l(m)&&e.lazy.loadInSlide(m);for(var v=p;v<i;v+=1)l(v)&&e.lazy.loadInSlide(v)}else{var g=t.children(".".concat(n.slideNextClass));g.length>0&&e.lazy.loadInSlide(c(g));var y=t.children(".".concat(n.slidePrevClass));y.length>0&&e.lazy.loadInSlide(c(y))}}},Cl={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:function(){bs.extend(this,{lazy:{initialImageLoaded:!1,load:El.load.bind(this),loadInSlide:El.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},Tl={LinearSpline:function(e,t){var n,r,i,o,a,s=function(e,t){for(r=-1,n=e.length;n-r>1;)e[i=n+r>>1]<=t?r=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(a=s(this.x,e),o=a-1,(e-this.x[o])*(this.y[a]-this.y[o])/(this.x[a]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new Tl.LinearSpline(this.slidesGrid,e.slidesGrid):new Tl.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,i=this,o=i.controller.control;function a(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),r=-i.controller.spline.interpolate(-t)),r&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),r=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(o))for(var s=0;s<o.length;s+=1)o[s]!==t&&o[s]instanceof Zs&&a(o[s]);else o instanceof Zs&&t!==o&&a(o)},setTransition:function(e,t){var n,r=this,i=r.controller.control;function o(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&bs.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof Zs&&o(i[n]);else i instanceof Zs&&t!==i&&o(i)}},xl={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){bs.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:Tl.getInterpolateFunction.bind(this),setTranslate:Tl.setTranslate.bind(this),setTransition:Tl.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},Ml={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var n=ys(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is(".".concat(this.params.pagination.bulletClass))&&n[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?this.a11y.disableEl(n):this.a11y.enableEl(n)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,r){var i=ys(r);e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.paginationBulletMessage.replace(/{{index}}/,i.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown",".".concat(this.params.pagination.bulletClass),this.a11y.onEnterKey)}},$l={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:function(){var e=this;bs.extend(e,{a11y:{liveRegion:ys('<span class="'.concat(e.params.a11y.notificationClass,'" aria-live="assertive" aria-atomic="true"></span>'))}}),Object.keys(Ml).forEach((function(t){e.a11y[t]=Ml[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},Pl={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=bs.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),n)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},Ol={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;bs.extend(e,{autoplay:{running:!1,paused:!1,run:Pl.run.bind(e),start:Pl.start.bind(e),stop:Pl.stop.bind(e),pause:Pl.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},Ll={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var n=this.slides.eq(t),r=-n[0].swiperSlideOffset;this.params.virtualTranslate||(r-=this.translate);var i=0;this.isHorizontal()||(i=r,r=0);var o=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d(".concat(r,"px, ").concat(i,"px, 0px)"))}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}}))}}},Al={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){bs.extend(this,{fadeEffect:{setTranslate:Ll.setTranslate.bind(this),setTransition:Ll.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"fade"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};bs.extend(this.params,e),bs.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},Il={setTranslate:function(){var e,t=this.$el,n=this.$wrapperEl,r=this.slides,i=this.width,o=this.height,a=this.rtlTranslate,s=this.size,l=this.params.cubeEffect,c=this.isHorizontal(),u=this.virtual&&this.params.virtual.enabled,d=0;l.shadow&&(c?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=ys('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:"".concat(i,"px")})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=ys('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var h=0;h<r.length;h+=1){var f=r.eq(h),p=h;u&&(p=parseInt(f.attr("data-swiper-slide-index"),10));var m=90*p,v=Math.floor(m/360);a&&(m=-m,v=Math.floor(-m/360));var g=Math.max(Math.min(f[0].progress,1),-1),y=0,b=0,_=0;p%4==0?(y=4*-v*s,_=0):(p-1)%4==0?(y=0,_=4*-v*s):(p-2)%4==0?(y=s+4*v*s,_=s):(p-3)%4==0&&(y=-s,_=3*s+4*s*v),a&&(y=-y),c||(b=y,y=0);var w="rotateX(".concat(c?0:-m,"deg) rotateY(").concat(c?m:0,"deg) translate3d(").concat(y,"px, ").concat(b,"px, ").concat(_,"px)");if(g<=1&&g>-1&&(d=90*p+90*g,a&&(d=90*-p-90*g)),f.transform(w),l.slideShadows){var k=c?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),S=c?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===k.length&&(k=ys('<div class="swiper-slide-shadow-'.concat(c?"left":"top",'"></div>')),f.append(k)),0===S.length&&(S=ys('<div class="swiper-slide-shadow-'.concat(c?"right":"bottom",'"></div>')),f.append(S)),k.length&&(k[0].style.opacity=Math.max(-g,0)),S.length&&(S[0].style.opacity=Math.max(g,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -".concat(s/2,"px"),"-moz-transform-origin":"50% 50% -".concat(s/2,"px"),"-ms-transform-origin":"50% 50% -".concat(s/2,"px"),"transform-origin":"50% 50% -".concat(s/2,"px")}),l.shadow)if(c)e.transform("translate3d(0px, ".concat(i/2+l.shadowOffset,"px, ").concat(-i/2,"px) rotateX(90deg) rotateZ(0deg) scale(").concat(l.shadowScale,")"));else{var E=Math.abs(d)-90*Math.floor(Math.abs(d)/90),C=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),T=l.shadowScale,x=l.shadowScale/C,M=l.shadowOffset;e.transform("scale3d(".concat(T,", 1, ").concat(x,") translate3d(0px, ").concat(o/2+M,"px, ").concat(-o/2/x,"px) rotateX(-90deg)"))}var $=nl.isSafari||nl.isUiWebView?-s/2:0;n.transform("translate3d(0px,0,".concat($,"px) rotateX(").concat(this.isHorizontal()?0:d,"deg) rotateY(").concat(this.isHorizontal()?-d:0,"deg)"))},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},Dl={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){bs.extend(this,{cubeEffect:{setTranslate:Il.setTranslate.bind(this),setTransition:Il.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"cube")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};bs.extend(this.params,e),bs.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},Nl={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,n=0;n<e.length;n+=1){var r=e.eq(n),i=r[0].progress;this.params.flipEffect.limitRotation&&(i=Math.max(Math.min(r[0].progress,1),-1));var o=-180*i,a=0,s=-r[0].swiperSlideOffset,l=0;if(this.isHorizontal()?t&&(o=-o):(l=s,s=0,a=-o,o=0),r[0].style.zIndex=-Math.abs(Math.round(i))+e.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),u=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=ys('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"left":"top",'"></div>')),r.append(c)),0===u.length&&(u=ys('<div class="swiper-slide-shadow-'.concat(this.isHorizontal()?"right":"bottom",'"></div>')),r.append(u)),c.length&&(c[0].style.opacity=Math.max(-i,0)),u.length&&(u[0].style.opacity=Math.max(i,0))}r.transform("translate3d(".concat(s,"px, ").concat(l,"px, 0px) rotateX(").concat(a,"deg) rotateY(").concat(o,"deg)"))}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var o=!1;n.eq(r).transitionEnd((function(){if(!o&&t&&!t.destroyed){o=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},Rl={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){bs.extend(this,{flipEffect:{setTranslate:Nl.setTranslate.bind(this),setTransition:Nl.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push("".concat(this.params.containerModifierClass,"flip")),this.classNames.push("".concat(this.params.containerModifierClass,"3d"));var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};bs.extend(this.params,e),bs.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},jl={setTranslate:function(){for(var e=this.width,t=this.height,n=this.slides,r=this.$wrapperEl,i=this.slidesSizesGrid,o=this.params.coverflowEffect,a=this.isHorizontal(),s=this.translate,l=a?e/2-s:t/2-s,c=a?o.rotate:-o.rotate,u=o.depth,d=0,h=n.length;d<h;d+=1){var f=n.eq(d),p=i[d],m=(l-f[0].swiperSlideOffset-p/2)/p*o.modifier,v=a?c*m:0,g=a?0:c*m,y=-u*Math.abs(m),b=o.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(o.stretch)/100*p);var _=a?0:b*m,w=a?b*m:0;Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0);var k="translate3d(".concat(w,"px,").concat(_,"px,").concat(y,"px)  rotateX(").concat(g,"deg) rotateY(").concat(v,"deg)");if(f.transform(k),f[0].style.zIndex=1-Math.abs(Math.round(m)),o.slideShadows){var S=a?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),E=a?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=ys('<div class="swiper-slide-shadow-'.concat(a?"left":"top",'"></div>')),f.append(S)),0===E.length&&(E=ys('<div class="swiper-slide-shadow-'.concat(a?"right":"bottom",'"></div>')),f.append(E)),S.length&&(S[0].style.opacity=m>0?m:0),E.length&&(E[0].style.opacity=-m>0?-m:0)}}(_s.pointerEvents||_s.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin="".concat(l,"px 50%"))},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Bl={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){bs.extend(this,{coverflowEffect:{setTranslate:jl.setTranslate.bind(this),setTransition:jl.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push("".concat(this.params.containerModifierClass,"coverflow")),this.classNames.push("".concat(this.params.containerModifierClass,"3d")),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},Yl={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,bs.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),bs.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):bs.isObject(e.swiper)&&(this.thumbs.swiper=new t(bs.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,n=e.clickedSlide;if(!(n&&ys(n).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var r;if(r=e.params.loop?parseInt(ys(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var i=this.activeIndex;this.slides.eq(i).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,i=this.activeIndex);var o=this.slides.eq(i).prevAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index(),a=this.slides.eq(i).nextAll('[data-swiper-slide-index="'.concat(r,'"]')).eq(0).index();r=void 0===o?a:void 0===a?o:a-i<i-o?a:o}this.slideTo(r)}}},update:function(e){var t=this.thumbs.swiper;if(t){var n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;if(this.realIndex!==t.realIndex){var r,i=t.activeIndex;if(t.params.loop){t.slides.eq(i).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,i=t.activeIndex);var o=t.slides.eq(i).prevAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index(),a=t.slides.eq(i).nextAll('[data-swiper-slide-index="'.concat(this.realIndex,'"]')).eq(0).index();r=void 0===o?a:void 0===a?o:a-i==i-o?i:a-i<i-o?a:o}else r=this.realIndex;t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(r)<0&&(t.params.centeredSlides?r=r>i?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>i&&(r=r-n+1),t.slideTo(r,e?0:void 0))}var s=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(s=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),t.slides.removeClass(l),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var c=0;c<s;c+=1)t.$wrapperEl.children('[data-swiper-slide-index="'.concat(this.realIndex+c,'"]')).addClass(l);else for(var u=0;u<s;u+=1)t.slides.eq(this.realIndex+u).addClass(l)}}},Fl={name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){bs.extend(this,{thumbs:{swiper:null,init:Yl.init.bind(this),update:Yl.update.bind(this),onThumbClick:Yl.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}};Zs.use([el,rl,tl,il,al,cl,dl,fl,ml,gl,bl,wl,Sl,Cl,xl,$l,Ol,Al,Dl,Rl,Bl,Fl]);var Hl=Zs;function Ul(e){var t=this,n=g(e);if(0!==n.length&&!n[0].swiper){var r,i,o,a={};n.hasClass("tabs-swipeable-wrap")&&(n.addClass("swiper-container").children(".tabs").addClass("swiper-wrapper").children(".tab").addClass("swiper-slide"),r=n.children(".tabs").children(".tab-active").index(),i=!0,o=n.find(".tabs-routable").length>0),n.attr("data-swiper")?a=JSON.parse(n.attr("data-swiper")):n[0].f7SwiperParams?a=n[0].f7SwiperParams:(a=n.dataset(),Object.keys(a).forEach((function(e){var t=a[e];if("string"==typeof t&&0===t.indexOf("{")&&t.indexOf("}")>0)try{a[e]=JSON.parse(t)}catch(e){}}))),void 0===a.initialSlide&&void 0!==r&&(a.initialSlide=r);var s=t.swiper.create(n[0],a);n.parents(".popup, .login-screen, .sheet-modal, .popover").on("modal:open",l),n.parents(".panel").on("panel:open",l),n.parents(".tab").on("tab:show",l),s.on("beforeDestroy",(function(){n.parents(".popup, .login-screen, .sheet-modal, .popover").off("modal:open",l),n.parents(".panel").off("panel:open",l),n.parents(".tab").off("tab:show",l)})),i&&s.on("slideChange",(function(){if(o){var e=t.views.get(n.parents(".view"));e||(e=t.views.main);var r=e.router,i=r.findTabRoute(s.slides.eq(s.activeIndex)[0]);i&&setTimeout((function(){r.navigate(i.path)}),0)}else t.tab.show({tabEl:s.slides.eq(s.activeIndex)})}))}function l(){s.update()}}var zl={name:"swiper",static:{Swiper:Hl},create:function(){this.swiper=X({defaultSelector:".swiper-container",constructor:Hl,domProp:"swiper"})},on:{pageBeforeRemove:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){t.swiper.destroy(n)}))},pageMounted:function(e){var t=this;e.$el.find(".tabs-swipeable-wrap").each((function(e,n){Ul.call(t,n)}))},pageInit:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){Ul.call(t,n)}))},pageReinit:function(e){var t=this;e.$el.find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){var r=t.swiper.get(n);r&&r.update&&r.update()}))},tabMounted:function(e){var t=this;g(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){Ul.call(t,n)}))},tabShow:function(e){var t=this;g(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){var r=t.swiper.get(n);r&&r.update&&r.update()}))},tabBeforeRemove:function(e){var t=this;g(e).find(".swiper-init, .tabs-swipeable-wrap").each((function(e,n){t.swiper.destroy(n)}))}},vnode:{"swiper-init":{insert:function(e){var t=e.elm;Ul.call(this,t)},destroy:function(e){var t=e.elm;this.swiper.destroy(t)}},"tabs-swipeable-wrap":{insert:function(e){var t=e.elm;Ul.call(this,t)},destroy:function(e){var t=e.elm;this.swiper.destroy(t)}}}};function Vl(e){return(Vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ql(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gl(r.key),r)}}function Gl(e){var t=function(e,t){if("object"!=Vl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vl(t)?t:t+""}function Kl(e,t){if(t&&("object"==Vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xl(e)}function Jl(e){return(Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ql(e,t){return(Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Zl=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ql(this,t);var i=Xl(n=Kl(this,Jl(t).call(this,r,[e])));i.app=e;var o=$.extend({on:{}},e.params.photoBrowser);return i.useModulesParams(o),i.params=$.extend(o,r),$.extend(i,{exposed:!1,opened:!1,activeIndex:i.params.swiper.initialSlide,url:i.params.url,swipeToClose:{allow:!0,isTouched:!1,diff:void 0,start:void 0,current:void 0,started:!1,activeSlide:void 0,timeStart:void 0}}),i.useModules(),i.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ql(e,t)}(t,e),function(e,t,n){t&&Wl(e.prototype,t),n&&Wl(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"onSlideChange",value:function(e){var t=this;t.activeIndex=e.activeIndex;var n=e.activeIndex+1,r=t.params.virtualSlides?t.params.photos.length:e.slides.length;e.params.loop&&(r-=2,(n-=e.loopedSlides)<1&&(n=r+n),n>r&&(n-=r));var i,o=t.params.virtualSlides?e.$wrapperEl.find('.swiper-slide[data-swiper-slide-index="'.concat(e.activeIndex,'"]')):e.slides.eq(e.activeIndex),a=t.params.virtualSlides?e.$wrapperEl.find('.swiper-slide[data-swiper-slide-index="'.concat(e.previousIndex,'"]')):e.slides.eq(e.previousIndex),s=t.$el.find(".photo-browser-current"),l=t.$el.find(".photo-browser-total");if("page"===t.params.type&&t.params.navbar&&0===s.length&&"ios"===t.app.theme&&(i=t.app.navbar.getElByPage(t.$el))&&(s=g(i).find(".photo-browser-current"),l=g(i).find(".photo-browser-total")),s.length&&l.length&&(s.text(n),l.text(r),i||(i=s.parents(".navbar")[0]),i&&t.app.navbar.size(i)),t.captions.length>0){var c=e.params.loop?o.attr("data-swiper-slide-index"):t.activeIndex;t.$captionsContainerEl.find(".photo-browser-caption-active").removeClass("photo-browser-caption-active"),t.$captionsContainerEl.find('[data-caption-index="'.concat(c,'"]')).addClass("photo-browser-caption-active")}var u=a.find("video");u.length>0&&"pause"in u[0]&&u[0].pause()}},{key:"onTouchStart",value:function(){var e=this.swipeToClose;e.allow&&(e.isTouched=!0)}},{key:"onTouchMove",value:function(e){var t=this,n=t.swipeToClose;n.isTouched&&(n.started||(n.started=!0,n.start="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,t.params.virtualSlides?n.activeSlide=t.swiper.$wrapperEl.children(".swiper-slide-active"):n.activeSlide=t.swiper.slides.eq(t.swiper.activeIndex),n.timeStart=$.now()),e.preventDefault(),n.current="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,n.diff=n.start-n.current,t.$el.transition(0).transform("translate3d(0,".concat(-n.diff,"px,0)")))}},{key:"onTouchEnd",value:function(){var e=this,t=e.swipeToClose;if(t.isTouched=!1,t.started){t.started=!1,t.allow=!1;var n=Math.abs(t.diff),r=(new Date).getTime()-t.timeStart;r<300&&n>20||r>=300&&n>100?$.nextTick((function(){e.$el&&(t.diff<0?e.$el.addClass("swipe-close-to-bottom"):e.$el.addClass("swipe-close-to-top")),e.emit("local::swipeToClose",e),e.$el.transform("").transition(""),e.close(),t.allow=!0})):(0!==n?e.$el.addClass("photo-browser-transitioning").transitionEnd((function(){t.allow=!0,e.$el.removeClass("photo-browser-transitioning")})):t.allow=!0,$.nextTick((function(){e.$el.transform("").transition("")})))}else t.started=!1}},{key:"renderNavbar",value:function(){var e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);var t=e.params.iconsColor;e.params.iconsColor||"dark"!==e.params.theme||(t="white");var n="ios"!==e.app.theme&&"aurora"!==e.app.theme||!e.params.pageBackLinkText?"":e.params.pageBackLinkText,r=void 0===e.params.navbarShowCount?e.params.photos.length>1:e.params.navbarShowCount,i="page"!==e.params.type;return'\n      <div class="navbar navbar-photo-browser '.concat("dark"===e.params.theme?"navbar-photo-browser-dark":"",'">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner navbar-inner-centered-title sliding">\n          ').concat(i?"":'\n          <div class="left">\n            <a class="link '.concat(n?"":"icon-only",' back">\n              <i class="icon icon-back ').concat(t?"color-".concat(t):"",'"></i>\n              ').concat(n?"<span>".concat(n,"</span>"):"","\n            </a>\n          </div>\n          "),"\n          ").concat(r?'\n          <div class="title">\n            <span class="photo-browser-current"></span>\n            <span class="photo-browser-of">'.concat(e.params.navbarOfText,'</span>\n            <span class="photo-browser-total"></span>\n          </div>\n          '):"","\n          ").concat(i?'\n          <div class="right">\n            <a class="link popup-close" data-popup=".photo-browser-popup">\n              <span>'.concat(e.params.popupCloseLinkText,"</span>\n            </a>\n          </div>\n          "):"","\n        </div>\n      </div>\n    ").trim()}},{key:"renderToolbar",value:function(){var e=this;if(e.params.renderToolbar)return e.params.renderToolbar.call(e);var t=e.params.iconsColor;return e.params.iconsColor||"dark"!==e.params.theme||(t="white"),'\n      <div class="toolbar toolbar-bottom tabbar">\n        <div class="toolbar-inner">\n          <a class="link photo-browser-prev">\n            <i class="icon icon-back '.concat(t?"color-".concat(t):"",'"></i>\n          </a>\n          <a class="link photo-browser-next">\n            <i class="icon icon-forward ').concat(t?"color-".concat(t):"",'"></i>\n          </a>\n        </div>\n      </div>\n    ').trim()}},{key:"renderCaption",value:function(e,t){return this.params.renderCaption?this.params.renderCaption.call(this,e,t):'\n      <div class="photo-browser-caption" data-caption-index="'.concat(t,'">\n        ').concat(e,"\n      </div>\n    ").trim()}},{key:"renderObject",value:function(e,t){return this.params.renderObject?this.params.renderObject.call(this,e,t):'\n      <div class="photo-browser-slide photo-browser-object-slide swiper-slide" data-swiper-slide-index="'.concat(t,'">').concat(e.html?e.html:e,"</div>\n    ")}},{key:"renderLazyPhoto",value:function(e,t){return this.params.renderLazyPhoto?this.params.renderLazyPhoto.call(this,e,t):'\n      <div class="photo-browser-slide photo-browser-slide-lazy swiper-slide" data-swiper-slide-index="'.concat(t,'">\n          <div class="swiper-lazy-preloader"></div>\n          <span class="swiper-zoom-container">\n              <img data-src="').concat(e.url?e.url:e,'" class="swiper-lazy">\n          </span>\n      </div>\n    ').trim()}},{key:"renderPhoto",value:function(e,t){return this.params.renderPhoto?this.params.renderPhoto.call(this,e,t):'\n      <div class="photo-browser-slide swiper-slide" data-swiper-slide-index="'.concat(t,'">\n        <span class="swiper-zoom-container">\n          <img src="').concat(e.url?e.url:e,'">\n        </span>\n      </div>\n    ').trim()}},{key:"render",value:function(){var e=this;return e.params.render?e.params.render.call(e,e.params):'\n      <div class="photo-browser photo-browser-'.concat(e.params.theme,'">\n        <div class="view">\n          <div class="page photo-browser-page photo-browser-page-').concat(e.params.theme," no-toolbar ").concat(e.params.navbar?"":"no-navbar",'" data-name="photo-browser-page">\n            ').concat(e.params.navbar?e.renderNavbar():"","\n            ").concat(e.params.toolbar?e.renderToolbar():"",'\n            <div class="photo-browser-captions photo-browser-captions-').concat(e.params.captionsTheme||e.params.theme,'">\n              ').concat(e.params.photos.map((function(t,n){return t.caption?e.renderCaption(t.caption,n):""})).join(" "),'\n            </div>\n            <div class="photo-browser-swiper-container swiper-container">\n              <div class="photo-browser-swiper-wrapper swiper-wrapper">\n                ').concat(e.params.virtualSlides?"":e.params.photos.map((function(t,n){return t.html||("string"==typeof t||t instanceof String)&&t.indexOf("<")>=0&&t.indexOf(">")>=0?e.renderObject(t,n):!0===e.params.swiper.lazy||e.params.swiper.lazy&&e.params.swiper.lazy.enabled?e.renderLazyPhoto(t,n):e.renderPhoto(t,n)})).join(" "),"\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    ").trim()}},{key:"renderStandalone",value:function(){return this.params.renderStandalone?this.params.renderStandalone.call(this):'<div class="popup photo-browser-popup photo-browser-standalone popup-tablet-fullscreen">'.concat(this.render(),"</div>")}},{key:"renderPage",value:function(){return this.params.renderPage?this.params.renderPage.call(this):this.render()}},{key:"renderPopup",value:function(){return this.params.renderPopup?this.params.renderPopup.call(this):'<div class="popup photo-browser-popup">'.concat(this.render(),"</div>")}},{key:"onOpen",value:function(e,t){var n,r=this,i=r.app,o=g(t);o[0].f7PhotoBrowser=r,r.$el=o,r.el=o[0],r.openedIn=e,r.opened=!0,r.$swiperContainerEl=r.$el.find(".photo-browser-swiper-container"),r.$swiperWrapperEl=r.$el.find(".photo-browser-swiper-wrapper"),r.slides=r.$el.find(".photo-browser-slide"),r.$captionsContainerEl=r.$el.find(".photo-browser-captions"),r.captions=r.$el.find(".photo-browser-caption");var a=$.extend({},r.params.swiper,{initialSlide:r.activeIndex,on:{click:function(e){clearTimeout(n),r.params.exposition&&(n=setTimeout((function(){r.expositionToggle()}),350)),r.emit("local::tap",e),r.emit("local::click",e)},doubleClick:function(e){clearTimeout(n),r.emit("local::doubleTap",e),r.emit("local::doubleClick",e)},slideChange:function(){var e=this;r.onSlideChange(e);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.emit.apply(r,["local::slideChange"].concat(n))},transitionStart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::transitionStart"].concat(t))},transitionEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::transitionEnd"].concat(t))},slideChangeTransitionStart:function(){var e=this;r.onSlideChange(e);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.emit.apply(r,["local::slideChangeTransitionStart"].concat(n))},slideChangeTransitionEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::slideChangeTransitionEnd"].concat(t))},lazyImageLoad:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.emit.apply(r,["local::lazyImageLoad"].concat(t))},lazyImageReady:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];g(i).removeClass("photo-browser-slide-lazy"),r.emit.apply(r,["local::lazyImageReady"].concat(t))}}});r.params.swipeToClose&&"page"!==r.params.type&&$.extend(a.on,{touchStart:function(e){r.onTouchStart(e),r.emit("local::touchStart",e)},touchMoveOpposite:function(e){r.onTouchMove(e),r.emit("local::touchMoveOpposite",e)},touchEnd:function(e){r.onTouchEnd(e),r.emit("local::touchEnd",e)}}),r.params.virtualSlides&&$.extend(a,{virtual:{slides:r.params.photos,renderSlide:function(e,t){return e.html||("string"==typeof e||e instanceof String)&&e.indexOf("<")>=0&&e.indexOf(">")>=0?r.renderObject(e,t):!0===r.params.swiper.lazy||r.params.swiper.lazy&&r.params.swiper.lazy.enabled?r.renderLazyPhoto(e,t):r.renderPhoto(e,t)}}}),r.swiper=i.swiper.create(r.$swiperContainerEl,a),0===r.activeIndex&&r.onSlideChange(r.swiper),r.$el&&r.$el.trigger("photobrowser:open"),r.emit("local::open photoBrowserOpen",r)}},{key:"onOpened",value:function(){var e=this;e.$el&&"standalone"===e.params.type&&e.$el.css("animation","none"),e.$el&&e.$el.trigger("photobrowser:opened"),e.emit("local::opened photoBrowserOpened",e)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.swiper&&e.swiper.destroy&&(e.swiper.destroy(!0,!1),e.swiper=null,delete e.swiper),e.$el&&e.$el.trigger("photobrowser:close"),e.emit("local::close photoBrowserClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.$el&&e.$el.trigger("photobrowser:closed"),e.emit("local::closed photoBrowserClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;var t=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.view.$el.addClass("with-photo-browser-page with-photo-browser-page-".concat(e.params.theme)),e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.view.$el.removeClass("with-photo-browser-page with-photo-browser-page-exposed with-photo-browser-page-".concat(e.params.theme)),e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}}}}),e}},{key:"openStandalone",value:function(){var e=this;if(e.opened)return e;var t={backdrop:!1,content:e.renderStandalone(),on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;var t={content:e.renderPopup(),push:e.params.popupPush,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(),e}},{key:"expositionEnable",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.addClass("with-photo-browser-page-exposed"),e.$el&&e.$el.addClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.addClass("photo-browser-captions-exposed"),e.exposed=!0,e}},{key:"expositionDisable",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.removeClass("with-photo-browser-page-exposed"),e.$el&&e.$el.removeClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.removeClass("photo-browser-captions-exposed"),e.exposed=!1,e}},{key:"expositionToggle",value:function(){var e=this;return"page"===e.params.type&&e.view.$el.toggleClass("with-photo-browser-page-exposed"),e.$el&&e.$el.toggleClass("photo-browser-exposed"),e.params.expositionHideCaptions&&e.$captionsContainerEl.toggleClass("photo-browser-captions-exposed"),e.exposed=!e.exposed,e}},{key:"open",value:function(e){var t=this,n=t.params.type;return t.opened?(t.swiper&&void 0!==e&&t.swiper.slideTo(parseInt(e,10)),t):(void 0!==e&&(t.activeIndex=e),"standalone"===n&&t.openStandalone(),"page"===n&&t.openPage(),"popup"===n&&t.openPopup(),t)}},{key:"close",value:function(){var e=this;return e.opened?(e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back():(e.modal.once("modalClosed",(function(){$.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy photoBrowserBeforeDestroy",e),e.$el&&(e.$el.trigger("photobrowser:beforedestroy"),e.$el[0].f7PhotoBrowser=null,delete e.$el[0].f7PhotoBrowser),$.deleteProps(e),e.destroyed=!0,e=null}},{key:"view",get:function(){var e=this.params,t=this.app;return e.view||t.views.main}}]),t}(W),ec={name:"photoBrowser",params:{photoBrowser:{photos:[],exposition:!0,expositionHideCaptions:!1,type:"standalone",navbar:!0,toolbar:!0,theme:"light",captionsTheme:void 0,iconsColor:void 0,popupPush:!1,swipeToClose:!0,pageBackLinkText:"Back",popupCloseLinkText:"Close",navbarOfText:"of",navbarShowCount:void 0,view:void 0,url:"photos/",routableModals:!0,virtualSlides:!0,renderNavbar:void 0,renderToolbar:void 0,renderCaption:void 0,renderObject:void 0,renderLazyPhoto:void 0,renderPhoto:void 0,renderPage:void 0,renderPopup:void 0,renderStandalone:void 0,swiper:{initialSlide:0,spaceBetween:20,speed:300,loop:!1,preloadImages:!0,navigation:{nextEl:".photo-browser-next",prevEl:".photo-browser-prev"},zoom:{enabled:!0,maxRatio:3,minRatio:1},lazy:{enabled:!0}}}},create:function(){this.photoBrowser=X({defaultSelector:".photo-browser-popup, .photo-browser-page",constructor:Zl,app:this,domProp:"f7PhotoBrowser"})},static:{PhotoBrowser:Zl}};function tc(e){return(tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rc(r.key),r)}}function rc(e){var t=function(e,t){if("object"!=tc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tc(t)?t:t+""}function ic(e,t){if(t&&("object"==tc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ac(e)}function oc(e){return(oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ac(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sc(e,t){return(sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var lc=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=$.extend({on:{}},e.params.notification,n),o=ac(r=ic(this,oc(t).call(this,e,i)));o.app=e,o.params=i;var a,l,c,u,d,h,f,p=o.params,m=p.icon,v=p.title,y=p.titleRightText,b=p.subtitle,_=p.text,w=p.closeButton,k=p.closeTimeout,S=p.cssClass,E=p.closeOnClick;if(o.params.el)a=g(o.params.el);else{var C=o.render({icon:m,title:v,titleRightText:y,subtitle:b,text:_,closeButton:w,cssClass:S});a=g(C)}if(a&&a.length>0&&a[0].f7Modal)return ic(r,a[0].f7Modal);if(0===a.length)return ic(r,o.destroy());$.extend(o,{$el:a,el:a[0],type:"notification"}),a[0].f7Modal=o,w&&a.find(".notification-close-button").on("click",(function(){o.close()})),a.on("click",(function(e){w&&g(e.target).closest(".notification-close-button").length||(o.emit("local::click notificationClick",o),E&&o.close())})),o.on("beforeDestroy",(function(){a.off("click")}));var T,x={};function M(e){l||(l=!0,c=!1,u=void 0,h=$.now(),x.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,x.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY)}function P(e){if(l){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;if(void 0===u&&(u=!!(u||Math.abs(n-x.y)<Math.abs(t-x.x))),u)l=!1;else{e.preventDefault(),c||(o.$el.removeClass("notification-transitioning"),o.$el.transition(0),f=o.$el[0].offsetHeight/2),c=!0;var r=d=n-x.y;d>0&&(r=Math.pow(d,.8)),o.$el.transform("translate3d(0, ".concat(r,"px, 0)"))}}}function O(){if(!l||!c)return l=!1,void(c=!1);if(l=!1,c=!1,0!==d){var e=$.now()-h;o.$el.transition(""),o.$el.addClass("notification-transitioning"),o.$el.transform(""),(d<-10&&e<300||-d>=f/1)&&o.close()}}return o.on("open",(function(){o.params.swipeToClose&&(o.$el.on(e.touchEvents.start,M,{passive:!0}),e.on("touchmove:active",P),e.on("touchend:passive",O)),g(".notification.modal-in").each((function(t,n){var r=e.notification.get(n);n!==o.el&&r&&r.close()})),k&&function e(){T=$.nextTick((function(){l&&c?e():o.close()}),k)}()})),o.on("close beforeDestroy",(function(){o.params.swipeToClose&&(o.$el.off(e.touchEvents.start,M,{passive:!0}),e.off("touchmove:active",P),e.off("touchend:passive",O)),s.clearTimeout(T)})),ic(r,o)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sc(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.icon,n=e.title,r=e.titleRightText,i=e.subtitle,o=e.text,a=e.closeButton,s=e.cssClass;return'\n      <div class="notification '.concat(s||"",'">\n        <div class="notification-header">\n          ').concat(t?'<div class="notification-icon">'.concat(t,"</div>"):"","\n          ").concat(n?'<div class="notification-title">'.concat(n,"</div>"):"","\n          ").concat(r?'<div class="notification-title-right-text">'.concat(r,"</div>"):"","\n          ").concat(a?'<span class="notification-close-button"></span>':"",'\n        </div>\n        <div class="notification-content">\n          ').concat(i?'<div class="notification-subtitle">'.concat(i,"</div>"):"","\n          ").concat(o?'<div class="notification-text">'.concat(o,"</div>"):"","\n        </div>\n      </div>\n    ").trim()}}])&&nc(n.prototype,r),i&&nc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Un),cc={name:"notification",static:{Notification:lc},create:function(){this.notification=$.extend({},Q({app:this,constructor:lc,defaultSelector:".notification.modal-in"}))},params:{notification:{icon:null,title:null,titleRightText:null,subtitle:null,text:null,closeButton:!1,closeTimeout:null,closeOnClick:!1,swipeToClose:!0,cssClass:null,render:null}}};function uc(e){return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fc(r.key),r)}}function fc(e){var t=function(e,t){if("object"!=uc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uc(t)?t:t+""}function pc(e,t){if(t&&("object"==uc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vc(e)}function mc(e){return(mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gc(e,t){return(gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yc=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};dc(this,t);var i=vc(n=pc(this,mc(t).call(this,r,[e])));i.app=e;var o,a,s=$.extend({on:{}},e.params.autocomplete);void 0===s.searchbarDisableButton&&(s.searchbarDisableButton="aurora"!==e.theme),i.useModulesParams(s),i.params=$.extend(s,r),i.params.openerEl&&(o=g(i.params.openerEl)).length&&(o[0].f7Autocomplete=i),i.params.inputEl&&(a=g(i.params.inputEl)).length&&(a[0].f7Autocomplete=i);var l=$.id(),c=r.url;!c&&o&&o.length&&(o.attr("href")?c=o.attr("href"):o.find("a").length>0&&(c=o.find("a").attr("href"))),c&&"#"!==c&&""!==c||(c=i.params.url);var u=i.params.multiple?"checkbox":"radio";$.extend(i,{$openerEl:o,openerEl:o&&o[0],$inputEl:a,inputEl:a&&a[0],id:l,url:c,value:i.params.value||[],inputType:u,inputName:"".concat(u,"-").concat(l),$modalEl:void 0,$dropdownEl:void 0});var d="";function h(){var e=i.$inputEl.val().trim();i.params.source&&i.params.source.call(i,e,(function(t){var n,r,o,s="",l=i.params.limit?Math.min(i.params.limit,t.length):t.length;i.items=t,i.params.highlightMatches&&(e=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n=new RegExp("(".concat(e,")"),"i"));for(var c=0;c<l;c+=1){var u="object"===uc(t[c])?t[c][i.params.valueProperty]:t[c],h="object"===uc(t[c])?t[c][i.params.textProperty]:t[c];0===c&&(r=u,o=i.items[c]),s+=i.renderItem({value:u,text:i.params.highlightMatches?h.replace(n,"<b>$1</b>"):h},c)}if(""===s&&""===e&&i.params.dropdownPlaceholderText&&(s+=i.renderItem({placeholder:!0,text:i.params.dropdownPlaceholderText})),i.$dropdownEl.find("ul").html(s),i.params.typeahead){if(!r||!o)return;if(0!==r.toLowerCase().indexOf(e.toLowerCase()))return;if(d.toLowerCase()===e.toLowerCase())return void(i.value=[]);if(0===d.toLowerCase().indexOf(e.toLowerCase()))return d=e,void(i.value=[]);a.val(r),a[0].setSelectionRange(e.length,r.length);var f="object"===uc(i.value[0])?i.value[0][i.params.valueProperty]:i.value[0];f&&r.toLowerCase()===f.toLowerCase()||(i.value=[o],i.emit("local::change autocompleteChange",[o]))}d=e}))}function f(){var e,t,n,r=this.value;if(g(this).parents(".autocomplete-values").length>0){if("checkbox"===i.inputType&&!this.checked){for(var o=0;o<i.value.length;o+=1)(n="string"==typeof i.value[o]?i.value[o]:i.value[o][i.params.valueProperty])!==r&&1*n!=1*r||i.value.splice(o,1);i.updateValues(),i.emit("local::change autocompleteChange",i.value)}}else{for(var a=0;a<i.items.length;a+=1)(t="object"===uc(i.items[a])?i.items[a][i.params.valueProperty]:i.items[a])!==r&&1*t!=1*r||(e=i.items[a]);if("radio"===i.inputType)i.value=[e];else if(this.checked)i.value.push(e);else for(var s=0;s<i.value.length;s+=1)(n="object"===uc(i.value[s])?i.value[s][i.params.valueProperty]:i.value[s])!==r&&1*n!=1*r||i.value.splice(s,1);i.updateValues(),("radio"===i.inputType&&this.checked||"checkbox"===i.inputType)&&i.emit("local::change autocompleteChange",i.value)}}function p(e){var t=g(e.target);t.is(i.$inputEl[0])||i.$dropdownEl&&t.closest(i.$dropdownEl[0]).length||i.close()}function m(){i.open()}function v(){i.open()}function y(){i.$dropdownEl.find("label.active-state").length>0||setTimeout((function(){i.close()}),0)}function b(){i.positionDropdown()}function _(e){if(i.opened){if(27===e.keyCode)return e.preventDefault(),void i.$inputEl.blur();if(13===e.keyCode){var t=i.$dropdownEl.find(".autocomplete-dropdown-selected label");return t.length?(e.preventDefault(),t.trigger("click"),void i.$inputEl.blur()):void(i.params.typeahead&&(e.preventDefault(),i.$inputEl.blur()))}if(40===e.keyCode||38===e.keyCode){e.preventDefault();var n,r=i.$dropdownEl.find(".autocomplete-dropdown-selected");r.length&&(n=r[40===e.keyCode?"next":"prev"]("li")).length||(n=i.$dropdownEl.find("li").eq(40===e.keyCode?0:i.$dropdownEl.find("li").length-1)),n.hasClass("autocomplete-dropdown-placeholder")||(r.removeClass("autocomplete-dropdown-selected"),n.addClass("autocomplete-dropdown-selected"))}}}function w(){for(var e,t=g(this),n=0;n<i.items.length;n+=1){var r="object"===uc(i.items[n])?i.items[n][i.params.valueProperty]:i.items[n],o=t.attr("data-value");r!==o&&1*r!=1*o||(e=i.items[n])}i.params.updateInputValueOnSelect&&(i.$inputEl.val("object"===uc(e)?e[i.params.valueProperty]:e),i.$inputEl.trigger("input change")),i.value=[e],i.emit("local::change autocompleteChange",[e]),i.close()}return i.attachEvents=function(){"dropdown"!==i.params.openIn&&i.$openerEl&&i.$openerEl.on("click",m),"dropdown"===i.params.openIn&&i.$inputEl&&(i.$inputEl.on("focus",v),i.$inputEl.on(i.params.inputEvents,h),e.device.android?g("html").on("click",p):i.$inputEl.on("blur",y),i.$inputEl.on("keydown",_))},i.detachEvents=function(){"dropdown"!==i.params.openIn&&i.$openerEl&&i.$openerEl.off("click",m),"dropdown"===i.params.openIn&&i.$inputEl&&(i.$inputEl.off("focus",v),i.$inputEl.off(i.params.inputEvents,h),e.device.android?g("html").off("click",p):i.$inputEl.off("blur",y),i.$inputEl.off("keydown",_))},i.attachDropdownEvents=function(){i.$dropdownEl.on("click","label",w),e.on("resize",b)},i.detachDropdownEvents=function(){i.$dropdownEl.off("click","label",w),e.off("resize",b)},i.attachPageEvents=function(){i.$el.on("change",'input[type="radio"], input[type="checkbox"]',f),i.params.closeOnSelect&&!i.params.multiple&&i.$el.once("click",".list label",(function(){$.nextTick((function(){i.close()}))}))},i.detachPageEvents=function(){i.$el.off("change",'input[type="radio"], input[type="checkbox"]',f)},i.useModules(),i.init(),pc(n,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gc(e,t)}(t,e),function(e,t,n){t&&hc(e.prototype,t),n&&hc(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"positionDropdown",value:function(){var e=this,t=e.$inputEl,n=e.app,r=e.$dropdownEl,i=t.parents(".page-content");if(0!==i.length){var o,a=t.offset(),s=t[0].offsetWidth,l=t[0].offsetHeight,c=t.parents(".list");c.parents().each((function(e,t){if(!o){var n=g(t);n.parent(i).length&&(o=n)}}));var u,d,h,f,p=c.offset(),m=parseInt(i.css("padding-bottom"),10),v=c.length>0?p.left-i.offset().left:0,y=a.left-(c.length>0?p.left:0)-(n.rtl,0),b=a.top-(i.offset().top-i[0].scrollTop),_=i[0].scrollHeight-m-(b+i[0].scrollTop)-t[0].offsetHeight,w=n.rtl?"padding-right":"padding-left";c.length&&!e.params.expandInput&&(u=(n.rtl?c[0].offsetWidth-y-s:y)-("md"===n.theme?16:15)),r.css({left:"".concat(c.length>0?v:y,"px"),top:"".concat(b+i[0].scrollTop+l,"px"),width:"".concat(c.length>0?c[0].offsetWidth:s,"px")}),r.children(".autocomplete-dropdown-inner").css((d={maxHeight:"".concat(_,"px")},h=w,f=c.length>0&&!e.params.expandInput?"".concat(u,"px"):"",(h=fc(h))in d?Object.defineProperty(d,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[h]=f,d))}}},{key:"focus",value:function(){this.$el.find("input[type=search]").focus()}},{key:"source",value:function(e){var t=this;if(t.params.source){var n=t.$el;t.params.source.call(t,e,(function(r){var i="",o=t.params.limit?Math.min(t.params.limit,r.length):r.length;t.items=r;for(var a=0;a<o;a+=1){for(var s=!1,l="object"===uc(r[a])?r[a][t.params.valueProperty]:r[a],c=0;c<t.value.length;c+=1){var u="object"===uc(t.value[c])?t.value[c][t.params.valueProperty]:t.value[c];u!==l&&1*u!=1*l||(s=!0)}i+=t.renderItem({value:l,text:"object"===uc(r[a])?r[a][t.params.textProperty]:r[a],inputType:t.inputType,id:t.id,inputName:t.inputName,selected:s},a)}n.find(".autocomplete-found ul").html(i),0===r.length?0!==e.length?(n.find(".autocomplete-not-found").show(),n.find(".autocomplete-found, .autocomplete-values").hide()):(n.find(".autocomplete-values").show(),n.find(".autocomplete-found, .autocomplete-not-found").hide()):(n.find(".autocomplete-found").show(),n.find(".autocomplete-not-found, .autocomplete-values").hide())}))}}},{key:"updateValues",value:function(){for(var e=this,t="",n=0;n<e.value.length;n+=1)t+=e.renderItem({value:"object"===uc(e.value[n])?e.value[n][e.params.valueProperty]:e.value[n],text:"object"===uc(e.value[n])?e.value[n][e.params.textProperty]:e.value[n],inputType:e.inputType,id:e.id,inputName:"".concat(e.inputName,"-checked}"),selected:!0},n);e.$el.find(".autocomplete-values ul").html(t)}},{key:"preloaderHide",value:function(){"dropdown"===this.params.openIn&&this.$dropdownEl?this.$dropdownEl.find(".autocomplete-preloader").removeClass("autocomplete-preloader-visible"):g(".autocomplete-preloader").removeClass("autocomplete-preloader-visible")}},{key:"preloaderShow",value:function(){"dropdown"===this.params.openIn&&this.$dropdownEl?this.$dropdownEl.find(".autocomplete-preloader").addClass("autocomplete-preloader-visible"):g(".autocomplete-preloader").addClass("autocomplete-preloader-visible")}},{key:"renderPreloader",value:function(){return'\n      <div class="autocomplete-preloader preloader '.concat(this.params.preloaderColor?"color-".concat(this.params.preloaderColor):"",'">').concat($["".concat(this.app.theme,"PreloaderContent")]||"","</div>\n    ").trim()}},{key:"renderSearchbar",value:function(){var e=this;return e.params.renderSearchbar?e.params.renderSearchbar.call(e):'\n      <form class="searchbar">\n        <div class="searchbar-inner">\n          <div class="searchbar-input-wrap">\n            <input type="search" placeholder="'.concat(e.params.searchbarPlaceholder,'"/>\n            <i class="searchbar-icon"></i>\n            <span class="input-clear-button"></span>\n          </div>\n          ').concat(e.params.searchbarDisableButton?'\n          <span class="searchbar-disable-button">'.concat(e.params.searchbarDisableText,"</span>\n          "):"","\n        </div>\n      </form>\n    ").trim()}},{key:"renderItem",value:function(e,t){if(this.params.renderItem)return this.params.renderItem.call(this,e,t);var n=e.value&&"string"==typeof e.value?e.value.replace(/"/g,"&quot;"):e.value;return("dropdown"!==this.params.openIn?'\n        <li>\n          <label class="item-'.concat(e.inputType,' item-content">\n            <input type="').concat(e.inputType,'" name="').concat(e.inputName,'" value="').concat(n,'" ').concat(e.selected?"checked":"",'>\n            <i class="icon icon-').concat(e.inputType,'"></i>\n            <div class="item-inner">\n              <div class="item-title">').concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      "):e.placeholder?'\n        <li class="autocomplete-dropdown-placeholder">\n          <label class="item-content">\n            <div class="item-inner">\n              <div class="item-title">'.concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      "):'\n        <li>\n          <label class="item-radio item-content" data-value="'.concat(n,'">\n            <div class="item-inner">\n              <div class="item-title">').concat(e.text,"</div>\n            </div>\n          </label>\n        </li>\n      ")).trim()}},{key:"renderNavbar",value:function(){var e=this;if(e.params.renderNavbar)return e.params.renderNavbar.call(e);var t=e.params.pageTitle;void 0===t&&e.$openerEl&&e.$openerEl.length&&(t=e.$openerEl.find(".item-title").text().trim());var n="popup"===e.params.openIn,r=n?"\n        ".concat(e.params.preloader?'\n        <div class="left">\n          '.concat(e.renderPreloader(),"\n        </div>\n        "):"","\n      "):'\n        <div class="left sliding">\n          <a class="link back">\n            <i class="icon icon-back"></i>\n            <span class="if-not-md">'.concat(e.params.pageBackLinkText,"</span>\n          </a>\n        </div>\n      "),i=n?'\n        <div class="right">\n          <a class="link popup-close" data-popup=".autocomplete-popup">\n            '.concat(e.params.popupCloseLinkText,"\n          </a>\n        </div>\n      "):"\n        ".concat(e.params.preloader?'\n        <div class="right">\n          '.concat(e.renderPreloader(),"\n        </div>\n        "):"","\n      ");return'\n      <div class="navbar '.concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner ').concat(e.params.navbarColorTheme?"color-".concat(e.params.navbarColorTheme):"",'">\n          ').concat(r,"\n          ").concat(t?'<div class="title sliding">'.concat(t,"</div>"):"","\n          ").concat(i,'\n          <div class="subnavbar sliding">').concat(e.renderSearchbar(),"</div>\n        </div>\n      </div>\n    ").trim()}},{key:"renderDropdown",value:function(){var e=this;return e.params.renderDropdown?e.params.renderDropdown.call(e,e.items):'\n      <div class="autocomplete-dropdown">\n        <div class="autocomplete-dropdown-inner">\n          <div class="list '.concat(e.params.expandInput?"":"no-safe-areas",'">\n            <ul></ul>\n          </div>\n        </div>\n        ').concat(e.params.preloader?e.renderPreloader():"","\n      </div>\n    ").trim()}},{key:"renderPage",value:function(e){var t=this;return t.params.renderPage?t.params.renderPage.call(t,t.items):'\n      <div class="page page-with-subnavbar autocomplete-page" data-name="autocomplete-page">\n        '.concat(t.renderNavbar(e),'\n        <div class="searchbar-backdrop"></div>\n        <div class="page-content">\n          <div class="list autocomplete-list autocomplete-found autocomplete-list-').concat(t.id," ").concat(t.params.formColorTheme?"color-".concat(t.params.formColorTheme):"",'">\n            <ul></ul>\n          </div>\n          <div class="list autocomplete-not-found">\n            <ul>\n              <li class="item-content"><div class="item-inner"><div class="item-title">').concat(t.params.notFoundText,'</div></div></li>\n            </ul>\n          </div>\n          <div class="list autocomplete-values">\n            <ul></ul>\n          </div>\n        </div>\n      </div>\n    ').trim()}},{key:"renderPopup",value:function(){var e=this;return e.params.renderPopup?e.params.renderPopup.call(e,e.items):'\n      <div class="popup autocomplete-popup">\n        <div class="view">\n          '.concat(e.renderPage(!0),";\n        </div>\n      </div>\n    ").trim()}},{key:"onOpen",value:function(e,t){var n=this,r=n.app,i=g(t);if(n.$el=i,n.el=i[0],n.openedIn=e,n.opened=!0,"dropdown"===n.params.openIn)n.attachDropdownEvents(),n.$dropdownEl.addClass("autocomplete-dropdown-in"),n.$inputEl.trigger("input");else{var o=i.find(".searchbar");"page"===n.params.openIn&&"ios"===r.theme&&0===o.length&&(o=g(r.navbar.getElByPage(i)).find(".searchbar")),n.searchbar=r.searchbar.create({el:o,backdropEl:i.find(".searchbar-backdrop"),customSearch:!0,on:{search:function(e,t){0===t.length&&n.searchbar.enabled?n.searchbar.backdropShow():n.searchbar.backdropHide(),n.source(t)}}}),n.attachPageEvents(),n.updateValues(),n.params.requestSourceOnOpen&&n.source("")}n.emit("local::open autocompleteOpen",n)}},{key:"autoFocus",value:function(){return this.searchbar&&this.searchbar.$inputEl&&this.searchbar.$inputEl.focus(),this}},{key:"onOpened",value:function(){var e=this;"dropdown"!==e.params.openIn&&e.params.autoFocus&&e.autoFocus(),e.emit("local::opened autocompleteOpened",e)}},{key:"onClose",value:function(){var e=this;e.destroyed||(e.searchbar&&e.searchbar.destroy&&(e.searchbar.destroy(),e.searchbar=null,delete e.searchbar),"dropdown"===e.params.openIn?(e.detachDropdownEvents(),e.$dropdownEl.removeClass("autocomplete-dropdown-in").remove(),e.$inputEl.parents(".item-content-dropdown-expanded").removeClass("item-content-dropdown-expanded")):e.detachPageEvents(),e.emit("local::close autocompleteClose",e))}},{key:"onClosed",value:function(){var e=this;e.destroyed||(e.opened=!1,e.$el=null,e.el=null,delete e.$el,delete e.el,e.emit("local::closed autocompleteClosed",e))}},{key:"openPage",value:function(){var e=this;if(e.opened)return e;var t=e.renderPage();return e.view.router.navigate({url:e.url,route:{content:t,path:e.url,on:{pageBeforeIn:function(t,n){e.onOpen("page",n.el)},pageAfterIn:function(t,n){e.onOpened("page",n.el)},pageBeforeOut:function(t,n){e.onClose("page",n.el)},pageAfterOut:function(t,n){e.onClosed("page",n.el)}},options:{animate:e.params.animate}}}),e}},{key:"openPopup",value:function(){var e=this;if(e.opened)return e;var t={content:e.renderPopup(),animate:e.params.animate,push:e.params.popupPush,swipeToClose:e.params.popupSwipeToClose,on:{popupOpen:function(t){e.onOpen("popup",t.el)},popupOpened:function(t){e.onOpened("popup",t.el)},popupClose:function(t){e.onClose("popup",t.el)},popupClosed:function(t){e.onClosed("popup",t.el)}}};return e.params.routableModals&&e.view?e.view.router.navigate({url:e.url,route:{path:e.url,popup:t}}):e.modal=e.app.popup.create(t).open(e.params.animate),e}},{key:"openDropdown",value:function(){var e=this;e.$dropdownEl||(e.$dropdownEl=g(e.renderDropdown())),e.$inputEl.parents(".list").length&&e.$inputEl.parents(".item-content").length>0&&e.params.expandInput&&e.$inputEl.parents(".item-content").addClass("item-content-dropdown-expanded");var t=e.$inputEl.parents(".page-content");e.params.dropdownContainerEl?g(e.params.dropdownContainerEl).append(e.$dropdownEl):0===t.length?e.$dropdownEl.insertAfter(e.$inputEl):(e.positionDropdown(),t.append(e.$dropdownEl)),e.onOpen("dropdown",e.$dropdownEl),e.onOpened("dropdown",e.$dropdownEl)}},{key:"open",value:function(){var e=this;if(e.opened)return e;var t=e.params.openIn;return e["open".concat(t.split("").map((function(e,t){return 0===t?e.toUpperCase():e})).join(""))](),e}},{key:"close",value:function(){var e=this;return e.opened?("dropdown"===e.params.openIn?(e.onClose(),e.onClosed()):e.params.routableModals&&e.view||"page"===e.openedIn?e.view.router.back({animate:e.params.animate}):(e.modal.once("modalClosed",(function(){$.nextTick((function(){e.destroyed||(e.modal.destroy(),delete e.modal)}))})),e.modal.close()),e):e}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){var e=this;e.emit("local::beforeDestroy autocompleteBeforeDestroy",e),e.detachEvents(),e.$inputEl&&e.$inputEl[0]&&delete e.$inputEl[0].f7Autocomplete,e.$openerEl&&e.$openerEl[0]&&delete e.$openerEl[0].f7Autocomplete,$.deleteProps(e),e.destroyed=!0}},{key:"view",get:function(){var e,t=this,n=t.$openerEl,r=t.$inputEl,i=t.app;if(t.params.view)e=t.params.view;else if(n||r){var o=n||r;e=o.closest(".view").length&&o.closest(".view")[0].f7View}return e||(e=i.views.main),e}}]),t}(W),bc={name:"autocomplete",params:{autocomplete:{openerEl:void 0,inputEl:void 0,view:void 0,dropdownContainerEl:void 0,dropdownPlaceholderText:void 0,typeahead:!1,highlightMatches:!0,expandInput:!1,updateInputValueOnSelect:!0,inputEvents:"input",value:void 0,multiple:!1,source:void 0,limit:void 0,valueProperty:"id",textProperty:"text",openIn:"page",pageBackLinkText:"Back",popupCloseLinkText:"Close",pageTitle:void 0,searchbarPlaceholder:"Search...",searchbarDisableText:"Cancel",searchbarDisableButton:void 0,popupPush:!1,popupSwipeToClose:void 0,animate:!0,autoFocus:!1,closeOnSelect:!1,notFoundText:"Nothing found",requestSourceOnOpen:!1,preloaderColor:void 0,preloader:!1,formColorTheme:void 0,navbarColorTheme:void 0,routableModals:!0,url:"select/",renderDropdown:void 0,renderPage:void 0,renderPopup:void 0,renderItem:void 0,renderSearchbar:void 0,renderNavbar:void 0}},static:{Autocomplete:yc},create:function(){var e=this;e.autocomplete=$.extend(X({defaultSelector:void 0,constructor:yc,app:e,domProp:"f7Autocomplete"}),{open:function(t){var n=e.autocomplete.get(t);if(n&&n.open)return n.open()},close:function(t){var n=e.autocomplete.get(t);if(n&&n.close)return n.close()}})}};function _c(e){return(_c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sc(r.key),r)}}function Sc(e){var t=function(e,t){if("object"!=_c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_c(t)?t:t+""}function Ec(e,t){if(t&&("object"==_c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tc(e)}function Cc(e){return(Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xc(e,t){return(xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Mc=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wc(this,t);var i=Tc(n=Ec(this,Cc(t).call(this,r,[e]))),o=$.extend({},e.params.tooltip);i.useModulesParams(o),i.params=$.extend(o,r);var a=i.params.targetEl;if(!a)return Ec(n,i);var s=g(a);if(0===s.length)return Ec(n,i);if(s[0].f7Tooltip)return Ec(n,s[0].f7Tooltip);var l=g(i.render()).eq(0);$.extend(i,{app:e,$targetEl:s,targetEl:s&&s[0],$el:l,el:l&&l[0],text:i.params.text||"",visible:!1,opened:!1}),s[0].f7Tooltip=i;var c,u={};function d(){i.opened?i.hide():i.show(this)}function h(e){i.opened&&(g(e.target).closest(s).length||g(e.target).closest(i.$el).length)||i.hide()}function f(e){c||(c=!0,u.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,u.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,i.show(this))}function p(e){if(c){var t="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY;Math.pow(Math.pow(t-u.x,2)+Math.pow(n-u.y,2),.5)>50&&(c=!1,i.hide())}}function m(){c&&(c=!1,i.hide())}function v(){i.show(this)}function y(){i.hide()}function b(){l.hasClass("tooltip-in")||l.removeClass("tooltip-out").remove()}return i.attachEvents=function(){if(l.on("transitionend",b),"click"===i.params.trigger)return s.on("click",d),void g("html").on("click",h);if(P.touch){var t=!!P.passiveListener&&{passive:!0};s.on(e.touchEvents.start,f,t),e.on("touchmove",p),e.on("touchend:passive",m)}else s.on(P.pointerEvents?"pointerenter":"mouseenter",v),s.on(P.pointerEvents?"pointerleave":"mouseleave",y)},i.detachEvents=function(){if(l.off("transitionend",b),"click"===i.params.trigger)return s.off("click",d),void g("html").off("click",h);if(P.touch){var t=!!P.passiveListener&&{passive:!0};s.off(e.touchEvents.start,f,t),e.off("touchmove",p),e.off("touchend:passive",m)}else s.off(P.pointerEvents?"pointerenter":"mouseenter",v),s.off(P.pointerEvents?"pointerleave":"mouseleave",y)},i.useModules(),i.init(),Ec(n,i)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xc(e,t)}(t,e),n=t,(r=[{key:"position",value:function(e){var t=this.$el,n=this.app,r=this.params.offset||0;t.css({left:"",top:""});var i,o,a,s,l=g(e||this.targetEl),c=[t.width(),t.height()],u=c[0],d=c[1];if(t.css({left:"",top:""}),l&&l.length>0){i=l.outerWidth(),o=l.outerHeight();var h=l.offset();a=h.left-n.left,s=h.top-n.top;var f=l.parents(".page");f.length>0&&(s-=f[0].scrollTop)}var p=[0,0,0],m=p[0],v=p[1],y="top";d+r<s?v=s-d-r:d<n.height-s-o?(y="bottom",v=s+o+r):(y="middle",(v=o/2+s-d/2)<=0?v=8:v+d>=n.height&&(v=n.height-d-8)),"top"===y||"bottom"===y?((m=i/2+a-u/2)<8&&(m=8),m+u>n.width&&(m=n.width-u-8),m<0&&(m=0)):"middle"===y&&((m=a-u)<8||m+u>n.width)&&(m<8&&(m=a+i),m+u>n.width&&(m=n.width-u-8)),t.css({top:"".concat(v,"px"),left:"".concat(m,"px")})}},{key:"show",value:function(e){var t=this.app,n=this.$el,r=this.$targetEl;t.root.append(n),this.position(e);var i=g(e);return this.visible=!0,this.opened=!0,r.trigger("tooltip:show"),n.trigger("tooltip:show"),i.length&&i[0]!==r[0]&&i.trigger("tooltip:show"),this.emit("local::show tooltipShow",this),n.removeClass("tooltip-out").addClass("tooltip-in"),this}},{key:"hide",value:function(){var e=this.$el,t=this.$targetEl;return this.visible=!1,this.opened=!1,t.trigger("tooltip:hide"),e.trigger("tooltip:hide"),this.emit("local::hide tooltipHide",this),e.addClass("tooltip-out").removeClass("tooltip-in"),this}},{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.cssClass,n=e.text;return'\n      <div class="tooltip '.concat(t||"",'">\n        <div class="tooltip-content">').concat(n||"","</div>\n      </div>\n    ").trim()}},{key:"setText",value:function(e){return void 0===e||(this.params.text=e,this.text=e,this.$el&&this.$el.children(".tooltip-content").html(e),this.opened&&this.position()),this}},{key:"init",value:function(){this.attachEvents()}},{key:"destroy",value:function(){this.$targetEl&&!this.destroyed&&(this.$targetEl.trigger("tooltip:beforedestroy"),this.emit("local::beforeDestroy tooltipBeforeDestroy",this),this.$el.remove(),delete this.$targetEl[0].f7Tooltip,this.detachEvents(),$.deleteProps(this),this.destroyed=!0)}}])&&kc(n.prototype,r),i&&kc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),$c={name:"tooltip",static:{Tooltip:Mc},create:function(){this.tooltip=X({defaultSelector:".tooltip",constructor:Mc,app:this,domProp:"f7Tooltip"}),this.tooltip.show=function(e){var t=g(e);if(0!==t.length){var n=t[0].f7Tooltip;if(n)return n.show(t[0]),n}},this.tooltip.hide=function(e){var t=g(e);if(0!==t.length){var n=t[0].f7Tooltip;if(n)return n.hide(),n}},this.tooltip.setText=function(e,t){var n=g(e);if(0!==n.length){var r=n[0].f7Tooltip;if(r)return r.setText(t),r}}},params:{tooltip:{targetEl:null,text:null,cssClass:null,render:null,offset:0,trigger:"hover"}},on:{tabMounted:function(e){var t=this;g(e).find(".tooltip-init").each((function(e,n){var r=g(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})}))},tabBeforeRemove:function(e){g(e).find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".tooltip-init").each((function(e,n){var r=g(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})})),"ios"===t.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".tooltip-init").each((function(e,n){var r=g(n).attr("data-tooltip");r&&t.tooltip.create({targetEl:n,text:r})}))},pageBeforeRemove:function(e){e.$el.find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()})),"ios"===this.theme&&e.view&&e.view.router.dynamicNavbar&&e.$navbarEl&&e.$navbarEl.length>0&&e.$navbarEl.find(".tooltip-init").each((function(e,t){t.f7Tooltip&&t.f7Tooltip.destroy()}))}},vnode:{"tooltip-init":{insert:function(e){var t=e.elm,n=g(t).attr("data-tooltip");n&&this.tooltip.create({targetEl:t,text:n})},update:function(e){var t=e.elm;t.f7Tooltip&&e&&e.data&&e.data.attrs&&e.data.attrs["data-tooltip"]&&t.f7Tooltip.setText(e.data.attrs["data-tooltip"])},destroy:function(e){var t=e.elm;t.f7Tooltip&&t.f7Tooltip.destroy()}}}};function Pc(e){return(Pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Ac(e){var t=function(e,t){if("object"!=Pc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pc(t)?t:t+""}function Ic(e,t){if(t&&("object"==Pc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Nc(e)}function Dc(e){return(Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rc(e,t){return(Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jc=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Oc(this,t);var i=Nc(n=Ic(this,Dc(t).call(this,r,[e]))),o=$.extend({},e.params.gauge);i.useModulesParams(o),i.params=$.extend(o,r);var a=i.params.el;if(!a)return Ic(n,i);var s=g(a);return 0===s.length?Ic(n,i):s[0].f7Gauge?Ic(n,s[0].f7Gauge):($.extend(i,{app:e,$el:s,el:s&&s[0]}),s[0].f7Gauge=i,i.useModules(),i.init(),Ic(n,i))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rc(e,t)}(t,e),n=t,(r=[{key:"calcRadius",value:function(){var e=this.params;return e.size/2-e.borderWidth/2}},{key:"calcBorderLength",value:function(){var e=this.calcRadius();return 2*Math.PI*e}},{key:"render",value:function(){if(this.params.render)return this.params.render.call(this,this);var e=this.params,t=e.type,n=e.value,r=e.size,i=e.bgColor,o=e.borderBgColor,a=e.borderColor,s=e.borderWidth,l=e.valueText,c=e.valueTextColor,u=e.valueFontSize,d=e.valueFontWeight,h=e.labelText,f=e.labelTextColor,p=e.labelFontSize,m=e.labelFontWeight,v="semicircle"===t,g=this.calcRadius(),y=this.calcBorderLength(),b=Math.max(Math.min(n,1),0);return'\n      <svg class="gauge-svg" width="'.concat(r,'px" height="').concat(v?r/2:r,'px" viewBox="0 0 ').concat(r," ").concat(v?r/2:r,'">\n        ').concat(v?'\n          <path\n            class="gauge-back-semi"\n            d="M'.concat(r-s/2,",").concat(r/2," a1,1 0 0,0 -").concat(r-s,',0"\n            stroke="').concat(o,'"\n            stroke-width="').concat(s,'"\n            fill="').concat(i||"none",'"\n          />\n          <path\n            class="gauge-front-semi"\n            d="M').concat(r-s/2,",").concat(r/2," a1,1 0 0,0 -").concat(r-s,',0"\n            stroke="').concat(a,'"\n            stroke-width="').concat(s,'"\n            stroke-dasharray="').concat(y/2,'"\n            stroke-dashoffset="').concat(y/2*(1+b),'"\n            fill="').concat(o?"none":i||"none",'"\n          />\n        '):"\n          ".concat(o?'\n            <circle\n              class="gauge-back-circle"\n              stroke="'.concat(o,'"\n              stroke-width="').concat(s,'"\n              fill="').concat(i||"none",'"\n              cx="').concat(r/2,'"\n              cy="').concat(r/2,'"\n              r="').concat(g,'"\n            ></circle>\n          '):"",'\n          <circle\n            class="gauge-front-circle"\n            transform="',"rotate(-90 ".concat(r/2," ").concat(r/2,")"),'"\n            stroke="').concat(a,'"\n            stroke-width="').concat(s,'"\n            stroke-dasharray="').concat(y,'"\n            stroke-dashoffset="').concat(y*(1-b),'"\n            fill="').concat(o?"none":i||"none",'"\n            cx="').concat(r/2,'"\n            cy="').concat(r/2,'"\n            r="').concat(g,'"\n          ></circle>\n        '),"\n        ").concat(l?'\n          <text\n            class="gauge-value-text"\n            x="50%"\n            y="'.concat(v?"100%":"50%",'"\n            font-weight="').concat(d,'"\n            font-size="').concat(u,'"\n            fill="').concat(c,'"\n            dy="').concat(v?h?-p-15:-5:0,'"\n            text-anchor="middle"\n            dominant-baseline="').concat(!v&&"middle",'"\n          >').concat(l,"</text>\n        "):"","\n        ").concat(h?'\n          <text\n            class="gauge-label-text"\n            x="50%"\n            y="'.concat(v?"100%":"50%",'"\n            font-weight="').concat(m,'"\n            font-size="').concat(p,'"\n            fill="').concat(f,'"\n            dy="').concat(v?-5:l?u/2+10:0,'"\n            text-anchor="middle"\n            dominant-baseline="').concat(!v&&"middle",'"\n          >').concat(h,"</text>\n        "):"","\n      </svg>\n    ").trim()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=t.params,r=t.$gaugeSvgEl;if(Object.keys(e).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),0===r.length)return t;var i=n.value,o=n.size,a=n.bgColor,s=n.borderBgColor,l=n.borderColor,c=n.borderWidth,u=n.valueText,d=n.valueTextColor,h=n.valueFontSize,f=n.valueFontWeight,p=n.labelText,m=n.labelTextColor,v=n.labelFontSize,g=n.labelFontWeight,y=t.calcBorderLength(),b=Math.max(Math.min(i,1),0),_=t.calcRadius(),w="semicircle"===n.type,k={width:"".concat(o,"px"),height:"".concat(w?o/2:o,"px"),viewBox:"0 0 ".concat(o," ").concat(w?o/2:o)};if(Object.keys(k).forEach((function(e){r.attr(e,k[e])})),w){var S={d:"M".concat(o-c/2,",").concat(o/2," a1,1 0 0,0 -").concat(o-c,",0"),stroke:s,"stroke-width":c,fill:a||"none"},E={d:"M".concat(o-c/2,",").concat(o/2," a1,1 0 0,0 -").concat(o-c,",0"),stroke:l,"stroke-width":c,"stroke-dasharray":y/2,"stroke-dashoffset":y/2*(1+b),fill:s?"none":a||"none"};Object.keys(S).forEach((function(e){r.find(".gauge-back-semi").attr(e,S[e])})),Object.keys(E).forEach((function(e){r.find(".gauge-front-semi").attr(e,E[e])}))}else{var C={stroke:s,"stroke-width":c,fill:a||"none",cx:o/2,cy:o/2,r:_},T={transform:"rotate(-90 ".concat(o/2," ").concat(o/2,")"),stroke:l,"stroke-width":c,"stroke-dasharray":y,"stroke-dashoffset":y*(1-b),fill:s?"none":a||"none",cx:o/2,cy:o/2,r:_};Object.keys(C).forEach((function(e){r.find(".gauge-back-circle").attr(e,C[e])})),Object.keys(T).forEach((function(e){r.find(".gauge-front-circle").attr(e,T[e])}))}if(u){r.find(".gauge-value-text").length||r.append('<text class="gauge-value-text"></text>');var x={x:"50%",y:w?"100%":"50%","font-weight":f,"font-size":h,fill:d,dy:w?p?-v-15:-5:0,"text-anchor":"middle","dominant-baseline":!w&&"middle"};Object.keys(x).forEach((function(e){r.find(".gauge-value-text").attr(e,x[e])})),r.find(".gauge-value-text").text(u)}else r.find(".gauge-value-text").remove();if(p){r.find(".gauge-label-text").length||r.append('<text class="gauge-label-text"></text>');var M={x:"50%",y:w?"100%":"50%","font-weight":g,"font-size":v,fill:m,dy:w?-5:u?h/2+10:0,"text-anchor":"middle","dominant-baseline":!w&&"middle"};Object.keys(M).forEach((function(e){r.find(".gauge-label-text").attr(e,M[e])})),r.find(".gauge-label-text").text(p)}else r.find(".gauge-label-text").remove();return t}},{key:"init",value:function(){var e=g(this.render()).eq(0);return e.f7Gauge=this,$.extend(this,{$gaugeSvgEl:e,gaugeSvgEl:e&&e[0]}),this.$el.append(e),this}},{key:"destroy",value:function(){this.$el&&!this.destroyed&&(this.$el.trigger("gauge:beforedestroy"),this.emit("local::beforeDestroy gaugeBeforeDestroy",this),this.$gaugeSvgEl.remove(),delete this.$el[0].f7Gauge,$.deleteProps(this),this.destroyed=!0)}}])&&Lc(n.prototype,r),i&&Lc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Bc={name:"gauge",static:{Gauge:jc},create:function(){var e=this;e.gauge=X({defaultSelector:".gauge",constructor:jc,app:e,domProp:"f7Gauge"}),e.gauge.update=function(t,n){if(0!==g(t).length){var r=e.gauge.get(t);if(r)return r.update(n),r}}},params:{gauge:{el:null,type:"circle",value:0,size:200,bgColor:"transparent",borderBgColor:"#eeeeee",borderColor:"#000000",borderWidth:10,valueText:null,valueTextColor:"#000000",valueFontSize:31,valueFontWeight:500,labelText:null,labelTextColor:"#888888",labelFontSize:14,labelFontWeight:400}},on:{tabMounted:function(e){var t=this;g(e).find(".gauge-init").each((function(e,n){t.gauge.create($.extend({el:n},g(n).dataset()||{}))}))},tabBeforeRemove:function(e){g(e).find(".gauge-init").each((function(e,t){t.f7Gauge&&t.f7Gauge.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".gauge-init").each((function(e,n){t.gauge.create($.extend({el:n},g(n).dataset()||{}))}))},pageBeforeRemove:function(e){e.$el.find(".gauge-init").each((function(e,t){t.f7Gauge&&t.f7Gauge.destroy()}))}},vnode:{"gauge-init":{insert:function(e){var t=e.elm;this.gauge.create($.extend({el:t},g(t).dataset()||{}))},destroy:function(e){var t=e.elm;t.f7Gauge&&t.f7Gauge.destroy()}}}},Yc={open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".menu-item-dropdown",t=this;if(e){var n=g(e).closest(".menu-item-dropdown");if(n.length){var r=n.closest(".menu").eq(0);if(r.length){var i=r.css("z-index"),o=r[0].style.zIndex;r.css("z-index",parseInt(i||0,0)+1),r[0].f7MenuZIndex=o}n.eq(0).addClass("menu-item-dropdown-opened").trigger("menu:opened"),t.emit("menuOpened",n.eq(0)[0])}}},close:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".menu-item-dropdown-opened",t=this;if(e){var n=g(e).closest(".menu-item-dropdown-opened");if(n.length){var r=n.closest(".menu").eq(0);if(r.length){var i=r[0].f7MenuZIndex;r.css("z-index",i),delete r[0].f7MenuZIndex}n.eq(0).removeClass("menu-item-dropdown-opened").trigger("menu:closed"),t.emit("menuClosed",n.eq(0)[0])}}}},Fc={name:"menu",create:function(){this.menu={open:Yc.open.bind(this),close:Yc.close.bind(this)}},on:{click:function(e){var t=this,n=g(".menu-item-dropdown-opened");n.length&&n.each((function(n,r){g(e.target).closest(".menu-item-dropdown-opened").length||t.menu.close(r)}))}},clicks:{".menu-item-dropdown":function(e,t,n){if(e.hasClass("menu-item-dropdown-opened")){if(g(n.target).closest(".menu-dropdown").length)return;this.menu.close(e)}else this.menu.open(e)},".menu-close":function(){this.menu.close()}}},Hc={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,o=t.alphaLabelText;return'\n      <div class="color-picker-module color-picker-module-alpha-slider">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-alpha"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.01" min="0" max="1" class="color-picker-value-alpha">\n              ':'\n                <span class="color-picker-value-alpha"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=e.value.alpha,r=parseFloat(t.target.value);Number.isNaN(r)?t.target.value=n:(r=Math.max(0,Math.min(1,r)),e.setValue({alpha:r}))}e.alphaRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-alpha"),min:0,max:1,step:.01,value:1,on:{change:function(t,n){var r=Math.floor(100*n)/100;e.setValue({alpha:r})}}}),e.$el.on("change",".color-picker-module-alpha-slider input",t),e.destroyAlphaSliderEvents=function(){e.$el.off("change",".color-picker-module-alpha-slider input",t)}},update:function(e){var t=e.value,n=e.params,r=n.sliderValue,i=n.sliderValueEditable,o=t.alpha;e.alphaRangeSlider.value=o,e.alphaRangeSlider.layout(),r&&i?e.$el.find("input.color-picker-value-alpha").val(o):e.$el.find("span.color-picker-value-alpha").text(o)},destroy:function(e){e.alphaRangeSlider&&e.alphaRangeSlider.destroy&&e.alphaRangeSlider.destroy(),delete e.alphaRangeSlider,e.destroyAlphaSliderEvents&&e.destroyAlphaSliderEvents(),delete e.destroyAlphaSliderEvents}},Uc={render:function(){return'\n      <div class="color-picker-module color-picker-module-current-color">\n        <div class="color-picker-current-color"></div>\n      </div>\n    '},update:function(e){e.$el.find(".color-picker-module-current-color .color-picker-current-color").css("background-color",e.value.hex)}},zc={render:function(e){var t=e.params,n=t.hexLabel,r=t.hexLabelText,i=t.hexValueEditable;return'\n      <div class="color-picker-module color-picker-module-hex">\n        <div class="color-picker-hex-wrap">\n          '.concat(n?'\n            <div class="color-picker-hex-label">'.concat(r,"</div>\n          "):"",'\n          <div class="color-picker-hex-value">\n            ').concat(i?'\n              <input type="text" class="color-picker-value-hex">\n            ':'\n              <span class="color-picker-value-hex"></span>\n            ',"\n          </div>\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=e.value.hex,r=t.target.value.replace(/#/g,"");if(Number.isNaN(r)||!r||3!==r.length&&6!==r.length)t.target.value=n;else{var i=parseInt(r,16);i>parseInt("ffffff",16)&&(r="fff"),i<0&&(r="000"),e.setValue({hex:r})}}e.$el.on("change",".color-picker-module-hex input",t),e.destroyHexEvents=function(){e.$el.off("change",".color-picker-module-hex input",t)}},update:function(e){var t=e.value,n=e.params.hexValueEditable,r=t.hex;n?e.$el.find("input.color-picker-value-hex").val(r):e.$el.find("span.color-picker-value-hex").text(r)},destroy:function(e){e.destroyHexEvents&&e.destroyHexEvents(),delete e.destroyHexEvents}};function Vc(e){return function(e){if(Array.isArray(e))return qc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qc(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wc={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,o=t.hueLabelText,a=t.saturationLabelText,s=t.brightnessLabelText;return'\n      <div class="color-picker-module color-picker-module-hsb-sliders">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-hue"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="360" class="color-picker-value-hue" data-color-index="0">\n              ':'\n                <span class="color-picker-value-hue"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-saturation"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="100" class="color-picker-value-saturation" data-color-index="1">\n              ':'\n                <span class="color-picker-value-saturation"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(s,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-brightness"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="100" class="color-picker-value-brightness" data-color-index="2">\n              ':'\n                <span class="color-picker-value-brightness"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=Vc(e.value.hsb),r=parseInt(g(t.target).attr("data-color-index"),10),i=parseFloat(t.target.value);Number.isNaN(i)?t.target.value=n[r]:(i=0===r?Math.max(0,Math.min(360,i)):Math.max(0,Math.min(100,i))/100,n[r]=i,e.setValue({hsb:n}))}e.hueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-hue"),min:0,max:360,step:.1,value:0,on:{change:function(t,n){e.setValue({hue:n})}}}),e.saturationRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-saturation"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],r,e.value.hsb[2]]})}}}),e.brightnessRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-brightness"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],e.value.hsb[1],r]})}}}),e.$el.on("change",".color-picker-module-hsb-sliders input",t),e.destroyHsbSlidersEvents=function(){e.$el.off("change",".color-picker-module-hsb-sliders input",t)}},update:function(e){var t=e.app,n=e.value,r=e.params,i=r.sliderValue,o=r.sliderValueEditable,a=n.hsb,s=n.hue;e.hueRangeSlider.value=s,e.saturationRangeSlider.value=a[1],e.brightnessRangeSlider.value=a[2],e.hueRangeSlider.layout(),e.saturationRangeSlider.layout(),e.brightnessRangeSlider.layout();var l=$.colorHsbToHsl(a[0],a[1],1),c=$.colorHsbToHsl(a[0],0,1),u=$.colorHsbToHsl(a[0],1,1),d=a[2];e.hueRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(s,", 100%, 50%)")),e.saturationRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(l[0],", ").concat(100*l[1],"%, ").concat(100*l[2],"%)")),e.brightnessRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(255*d,", ").concat(255*d,", ").concat(255*d,")")),e.saturationRangeSlider.$el.find(".range-bar").css("background-image","linear-gradient(".concat(t.rtl?"to left":"to right",", hsl(").concat(c[0],", ").concat(100*c[1],"%, ").concat(100*c[2],"%), hsl(").concat(u[0],", ").concat(100*u[1],"%, ").concat(100*u[2],"%))")),i&&o?(e.$el.find("input.color-picker-value-hue").val("".concat(s)),e.$el.find("input.color-picker-value-saturation").val("".concat(1e3*a[1]/10)),e.$el.find("input.color-picker-value-brightness").val("".concat(1e3*a[2]/10))):i&&(e.$el.find("span.color-picker-value-hue").text("".concat(s)),e.$el.find("span.color-picker-value-saturation").text("".concat(1e3*a[1]/10)),e.$el.find("span.color-picker-value-brightness").text("".concat(1e3*a[2]/10)))},destroy:function(e){e.hueRangeSlider&&e.hueRangeSlider.destroy&&e.hueRangeSlider.destroy(),e.saturationRangeSlider&&e.saturationRangeSlider.destroy&&e.saturationRangeSlider.destroy(),e.brightnessRangeSlider&&e.brightnessRangeSlider.destroy&&e.brightnessRangeSlider.destroy(),delete e.hueRangeSlider,delete e.saturationRangeSlider,delete e.brightnessRangeSlider,e.destroyHsbSlidersEvents&&e.destroyHsbSlidersEvents(),delete e.destroyHsbSlidersEvents}},Gc={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,o=t.hueLabelText;return'\n      <div class="color-picker-module color-picker-module-hue-slider">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-hue"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="360" class="color-picker-value-hue">\n              ':'\n                <span class="color-picker-value-hue"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){e.hueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-hue"),min:0,max:360,step:.1,value:0,on:{change:function(t,n){e.setValue({hue:n})}}})},update:function(e){var t=e.value,n=e.params,r=n.sliderValue,i=n.sliderValueEditable,o=t.hue;e.hueRangeSlider.value=o,e.hueRangeSlider.layout(),e.hueRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(o,", 100%, 50%)")),r&&i?e.$el.find("input.color-picker-value-hue").val("".concat(o)):r&&e.$el.find("span.color-picker-value-hue").text("".concat(o))},destroy:function(e){e.hueRangeSlider&&e.hueRangeSlider.destroy&&e.hueRangeSlider.destroy(),delete e.hueRangeSlider}},Kc={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,o=t.brightnessLabelText;return'\n      <div class="color-picker-module color-picker-module-brightness-slider">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-brightness"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="0.1" min="0" max="100" class="color-picker-value-brightness">\n              ':'\n                <span class="color-picker-value-brightness"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){e.brightnessRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-brightness"),min:0,max:1,step:.001,value:0,on:{change:function(t,n){var r=Math.floor(1e3*n)/1e3;e.setValue({hsb:[e.value.hsb[0],e.value.hsb[1],r]})}}})},update:function(e){var t=e.value,n=e.app,r=e.params,i=r.sliderValue,o=r.sliderValueEditable,a=t.hsb;e.brightnessRangeSlider.value=a[2],e.brightnessRangeSlider.layout();var s=$.colorHsbToHsl(a[0],a[1],a[2]),l=$.colorHsbToHsl(a[0],a[1],0),c=$.colorHsbToHsl(a[0],a[1],1);e.brightnessRangeSlider.$el[0].style.setProperty("--f7-range-knob-color","hsl(".concat(s[0],", ").concat(100*s[1],"%, ").concat(100*s[2],"%)")),e.brightnessRangeSlider.$el.find(".range-bar").css("background-image","linear-gradient(".concat(n.rtl?"to left":"to right",", hsl(").concat(l[0],", ").concat(100*l[1],"%, ").concat(100*l[2],"%), hsl(").concat(c[0],", ").concat(100*c[1],"%, ").concat(100*c[2],"%))")),i&&o?e.$el.find("input.color-picker-value-brightness").val("".concat(1e3*a[2]/10)):i&&e.$el.find("span.color-picker-value-brightness").text("".concat(1e3*a[2]/10))},destroy:function(e){e.brightnessRangeSlider&&e.brightnessRangeSlider.destroy&&e.brightnessRangeSlider.destroy(),delete e.brightnessRangeSlider}},Jc={render:function(e){return'\n      <div class="color-picker-module color-picker-module-palette">\n        <div class="color-picker-palette">\n          '.concat(e.params.palette.map((function(e){if(Array.isArray(e)){var t='<div class="color-picker-palette-row">';return t+=e.map((function(e){return'\n                <div class="color-picker-palette-value" data-palette-color="'.concat(e,'" style="background-color: ').concat(e,'"></div>\n              ')})).join(""),t+="</div>"}return'\n              <div class="color-picker-palette-value" data-palette-color="'.concat(e,'" style="background-color: ').concat(e,'"></div>\n            ')})).join(""),"\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=g(t.target).attr("data-palette-color");e.setValue({hex:n})}e.$el.on("click",".color-picker-module-palette .color-picker-palette-value",t),e.destroyPaletteEvents=function(){e.$el.off("click",".color-picker-module-hex input",t)}},destroy:function(e){e.destroyPaletteEvents&&e.destroyPaletteEvents(),delete e.destroyPaletteEvents}},Xc={render:function(){return'\n      <div class="color-picker-module color-picker-module-initial-current-colors">\n        <div class="color-picker-initial-current-colors">\n          <div class="color-picker-initial-color"></div>\n          <div class="color-picker-current-color"></div>\n        </div>\n      </div>\n    '},init:function(e){function t(){if(e.initialValue){var t=e.initialValue,n=t.hex,r=t.alpha;e.setValue({hex:n,alpha:r})}}e.$el.on("click",".color-picker-initial-color",t),e.destroyInitialCurrentEvents=function(){e.$el.off("click",".color-picker-initial-color",t)}},update:function(e){e.$el.find(".color-picker-module-initial-current-colors .color-picker-initial-color").css("background-color",e.initialValue.hex),e.$el.find(".color-picker-module-initial-current-colors .color-picker-current-color").css("background-color",e.value.hex)},destroy:function(e){e.destroyInitialCurrentEvents&&e.destroyInitialCurrentEvents(),delete e.destroyInitialCurrentEvents}};function Qc(e){return function(e){if(Array.isArray(e))return Zc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zc(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eu={render:function(e){var t=e.params,n=t.barLabel,r=t.barValue,i=t.barValueEditable,o=t.redLabelText,a=t.greenLabelText,s=t.blueLabelText;return'\n      <div class="color-picker-module color-picker-module-rgb-bars">\n        <div class="color-picker-bar-wrap">\n          '.concat(n?'\n            <div class="color-picker-bar-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-bar color-picker-bar-red"></div>\n          ').concat(r?'\n            <div class="color-picker-bar-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-red" data-color-index="0">\n              ':'\n                <span class="color-picker-value-bar-red"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-bar-wrap">\n          ').concat(n?'\n            <div class="color-picker-bar-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-bar color-picker-bar-green"></div>\n          ').concat(r?'\n            <div class="color-picker-bar-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-green" data-color-index="1">\n              ':'\n                <span class="color-picker-value-bar-green"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-bar-wrap">\n          ').concat(n?'\n            <div class="color-picker-bar-label">'.concat(s,"</div>\n          "):"",'\n          <div class="range-slider color-picker-bar color-picker-bar-blue"></div>\n          ').concat(r?'\n            <div class="color-picker-bar-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-bar-blue" data-color-index="2">\n              ':'\n                <span class="color-picker-value-bar-blue"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=Qc(e.value.rgb),r=parseInt(g(t.target).attr("data-color-index"),10),i=parseInt(t.target.value,10);Number.isNaN(i)?t.target.value=n[r]:(i=Math.max(0,Math.min(255,i)),n[r]=i,e.setValue({rgb:n}))}e.redBar=e.app.range.create({el:e.$el.find(".color-picker-bar-red"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[n,e.value.rgb[1],e.value.rgb[2]]})}}}),e.greenBar=e.app.range.create({el:e.$el.find(".color-picker-bar-green"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],n,e.value.rgb[2]]})}}}),e.blueBar=e.app.range.create({el:e.$el.find(".color-picker-bar-blue"),min:0,max:255,step:1,value:0,vertical:!0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],e.value.rgb[1],n]})}}}),e.$el.on("change",".color-picker-module-rgb-bars input",t),e.destroyRgbBarsEvents=function(){e.$el.off("change",".color-picker-module-rgb-bars input",t)}},update:function(e){var t=e.value,n=e.redBar,r=e.greenBar,i=e.blueBar,o=e.params,a=o.barValue,s=o.barValueEditable,l=t.rgb;n.value=l[0],r.value=l[1],i.value=l[2],n.layout(),r.layout(),i.layout(),n.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(0, ".concat(l[1],", ").concat(l[2],"), rgb(255, ").concat(l[1],", ").concat(l[2],"))")),r.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(".concat(l[0],", 0, ").concat(l[2],"), rgb(").concat(l[0],", 255, ").concat(l[2],"))")),i.$el.find(".range-bar").css("background-image","linear-gradient(to top, rgb(".concat(l[0],", ").concat(l[1],", 0), rgb(").concat(l[0],", ").concat(l[1],", 255))")),a&&s?(e.$el.find("input.color-picker-value-bar-red").val(l[0]),e.$el.find("input.color-picker-value-bar-green").val(l[1]),e.$el.find("input.color-picker-value-bar-blue").val(l[2])):a&&(e.$el.find("span.color-picker-value-bar-red").text(l[0]),e.$el.find("span.color-picker-value-bar-green").text(l[1]),e.$el.find("span.color-picker-value-bar-blue").text(l[2]))},destroy:function(e){e.redBar&&e.redBar.destroy&&e.redBar.destroy(),e.greenBar&&e.greenBar.destroy&&e.greenBar.destroy(),e.blueBar&&e.blueBar.destroy&&e.blueBar.destroy(),delete e.redBar,delete e.greenBar,delete e.blueBar,e.destroyRgbBarsEvents&&e.destroyRgbBarsEvents(),delete e.destroyRgbBarsEvents}};function tu(e){return function(e){if(Array.isArray(e))return nu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return nu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nu(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ru={render:function(e){var t=e.params,n=t.sliderLabel,r=t.sliderValue,i=t.sliderValueEditable,o=t.redLabelText,a=t.greenLabelText,s=t.blueLabelText;return'\n      <div class="color-picker-module color-picker-module-rgb-sliders">\n        <div class="color-picker-slider-wrap">\n          '.concat(n?'\n            <div class="color-picker-slider-label">'.concat(o,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-red"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-red" data-color-index="0">\n              ':'\n                <span class="color-picker-value-red"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(a,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-green"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-green" data-color-index="1">\n              ':'\n                <span class="color-picker-value-green"></span>\n              ',"\n            </div>\n          "):"",'\n        </div>\n        <div class="color-picker-slider-wrap">\n          ').concat(n?'\n            <div class="color-picker-slider-label">'.concat(s,"</div>\n          "):"",'\n          <div class="range-slider color-picker-slider color-picker-slider-blue"></div>\n          ').concat(r?'\n            <div class="color-picker-slider-value">\n              '.concat(i?'\n                <input type="number" step="1" min="0" max="255" class="color-picker-value-blue" data-color-index="2">\n              ':'\n                <span class="color-picker-value-blue"></span>\n              ',"\n            </div>\n          "):"","\n        </div>\n      </div>\n    ")},init:function(e){function t(t){var n=tu(e.value.rgb),r=parseInt(g(t.target).attr("data-color-index"),10),i=parseInt(t.target.value,10);Number.isNaN(i)?t.target.value=n[r]:(i=Math.max(0,Math.min(255,i)),n[r]=i,e.setValue({rgb:n}))}e.redRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-red"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[n,e.value.rgb[1],e.value.rgb[2]]})}}}),e.greenRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-green"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],n,e.value.rgb[2]]})}}}),e.blueRangeSlider=e.app.range.create({el:e.$el.find(".color-picker-slider-blue"),min:0,max:255,step:1,value:0,on:{change:function(t,n){e.setValue({rgb:[e.value.rgb[0],e.value.rgb[1],n]})}}}),e.$el.on("change",".color-picker-module-rgb-sliders input",t),e.destroyRgbSlidersEvents=function(){e.$el.off("change",".color-picker-module-rgb-sliders input",t)}},update:function(e){var t=e.app,n=e.value,r=e.redRangeSlider,i=e.greenRangeSlider,o=e.blueRangeSlider,a=e.params,s=a.sliderValue,l=a.sliderValueEditable,c=n.rgb;r.value=c[0],i.value=c[1],o.value=c[2],r.layout(),i.layout(),o.layout(),r.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")")),i.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")")),o.$el[0].style.setProperty("--f7-range-knob-color","rgb(".concat(c[0],", ").concat(c[1],", ").concat(c[2],")"));var u=t.rtl?"to left":"to right";r.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(0, ").concat(c[1],", ").concat(c[2],"), rgb(255, ").concat(c[1],", ").concat(c[2],"))")),i.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(").concat(c[0],", 0, ").concat(c[2],"), rgb(").concat(c[0],", 255, ").concat(c[2],"))")),o.$el.find(".range-bar").css("background-image","linear-gradient(".concat(u,", rgb(").concat(c[0],", ").concat(c[1],", 0), rgb(").concat(c[0],", ").concat(c[1],", 255))")),s&&l?(e.$el.find("input.color-picker-value-red").val(c[0]),e.$el.find("input.color-picker-value-green").val(c[1]),e.$el.find("input.color-picker-value-blue").val(c[2])):s&&(e.$el.find("span.color-picker-value-red").text(c[0]),e.$el.find("span.color-picker-value-green").text(c[1]),e.$el.find("span.color-picker-value-blue").text(c[2]))},destroy:function(e){e.redRangeSlider&&e.redRangeSlider.destroy&&e.redRangeSlider.destroy(),e.greenRangeSlider&&e.greenRangeSlider.destroy&&e.greenRangeSlider.destroy(),e.blueRangeSlider&&e.blueRangeSlider.destroy&&e.blueRangeSlider.destroy(),delete e.redRangeSlider,delete e.greenRangeSlider,delete e.blueRangeSlider,e.destroyRgbSlidersEvents&&e.destroyRgbSlidersEvents(),delete e.destroyRgbSlidersEvents}},iu={render:function(){return'\n      <div class="color-picker-module color-picker-module-sb-spectrum">\n        <div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">\n          <div class="color-picker-sb-spectrum-handle"></div>\n        </div>\n      </div>\n    '},init:function(e){var t,n,r,i,o,a,s,l,c=e.app,u=e.$el;function d(t,n){var r=(t-a.left)/a.width,i=(n-a.top)/a.height;r=Math.max(0,Math.min(1,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[e.value.hue,r,i]})}function h(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,o=r;var c=g(e.target);(l=c.closest(".color-picker-sb-spectrum-handle").length>0)||(s=c.closest(".color-picker-sb-spectrum").length>0),s&&(a=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),d(n,r)),(l||s)&&u.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}}function f(e){(s||l)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,o="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(a=u.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(s||l)&&d(i,o))}function p(){t=!1,(s||l)&&u.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),s=!1,l=!1}function m(){e.modules["sb-spectrum"].update(e)}var v=!("touchstart"!==c.touchEvents.start||!c.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(c.touchEvents.start,h,v),c.on("touchmove:active",f),c.on("touchend:passive",p),c.on("resize",m),e.destroySpectrumEvents=function(){e.$el.off(c.touchEvents.start,h,v),c.off("touchmove:active",f),c.off("touchend:passive",p),c.off("resize",m)}},update:function(e){var t=e.value,n=t.hsl,r=t.hsb,i=e.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,o=e.$el.find(".color-picker-sb-spectrum")[0].offsetHeight;e.$el.find(".color-picker-sb-spectrum").css("background-color","hsl(".concat(n[0],", 100%, 50%)")),e.$el.find(".color-picker-sb-spectrum-handle").css("background-color","hsl(".concat(n[0],", ").concat(100*n[1],"%, ").concat(100*n[2],"%)")).transform("translate(".concat(i*r[1],"px, ").concat(o*(1-r[2]),"px)"))},destroy:function(e){e.destroySpectrumEvents&&e.destroySpectrumEvents(),delete e.destroySpectrumEvents}},ou={render:function(){return'\n      <div class="color-picker-module color-picker-module-hs-spectrum">\n        <div class="color-picker-hs-spectrum">\n          <div class="color-picker-hs-spectrum-handle"></div>\n        </div>\n      </div>\n    '},init:function(e){var t,n,r,i,o,a,s,l,c=e.app,u=e.$el;function d(t,n){var r=(t-a.left)/a.width*360,i=(n-a.top)/a.height;r=Math.max(0,Math.min(360,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[r,i,e.value.hsb[2]]})}function h(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,o=r;var c=g(e.target);(l=c.closest(".color-picker-hs-spectrum-handle").length>0)||(s=c.closest(".color-picker-hs-spectrum").length>0),s&&(a=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect(),d(n,r)),(l||s)&&u.find(".color-picker-hs-spectrum-handle").addClass("color-picker-hs-spectrum-handle-pressed")}}function f(e){(s||l)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,o="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(a=u.find(".color-picker-hs-spectrum")[0].getBoundingClientRect())),(s||l)&&d(i,o))}function p(){t=!1,(s||l)&&u.find(".color-picker-hs-spectrum-handle").removeClass("color-picker-hs-spectrum-handle-pressed"),s=!1,l=!1}function m(){e.modules["hs-spectrum"].update(e)}var v=!("touchstart"!==c.touchEvents.start||!c.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(c.touchEvents.start,h,v),c.on("touchmove:active",f),c.on("touchend:passive",p),c.on("resize",m),e.destroySpectrumEvents=function(){e.$el.off(c.touchEvents.start,h,v),c.off("touchmove:active",f),c.off("touchend:passive",p),c.off("resize",m)}},update:function(e){var t=e.value.hsb,n=e.$el.find(".color-picker-hs-spectrum")[0].offsetWidth,r=e.$el.find(".color-picker-hs-spectrum")[0].offsetHeight,i=$.colorHsbToHsl(t[0],t[1],1);e.$el.find(".color-picker-hs-spectrum-handle").css("background-color","hsl(".concat(i[0],", ").concat(100*i[1],"%, ").concat(100*i[2],"%)")).transform("translate(".concat(n*(t[0]/360),"px, ").concat(r*(1-t[1]),"px)"))},destroy:function(e){e.destroySpectrumEvents&&e.destroySpectrumEvents(),delete e.destroySpectrumEvents}};var au={render:function(){return'\n      <div class="color-picker-module color-picker-module-wheel">\n        <div class="color-picker-wheel">\n          <svg viewBox="0 0 300 300" width="300" height="300">'.concat(function(){for(var e="",t=256;t>0;t-=1){var n=t*Math.PI/128,r=1.40625*t;e+='<circle cx="'.concat(150-125*Math.sin(n),'" cy="').concat(150-125*Math.cos(n),'" r="25" fill="hsl(').concat(r,', 100%, 50%)"></circle>')}return e}(),'</svg>\n          <div class="color-picker-wheel-handle"></div>\n          <div class="color-picker-sb-spectrum" style="background-color: hsl(0, 100%, 50%)">\n            <div class="color-picker-sb-spectrum-handle"></div>\n          </div>\n        </div>\n      </div>\n    ')},init:function(e){var t,n,r,i,o,a,s,l,c,u,d,h=e.app,f=e.$el;function p(t,n){var r=a.left+a.width/2,i=a.top+a.height/2,o=180*Math.atan2(n-i,t-r)/Math.PI+90;o<0&&(o+=360),o=360-o,e.setValue({hue:o})}function m(t,n){var r=(t-c.left)/c.width,i=(n-c.top)/c.height;r=Math.max(0,Math.min(1,r)),i=1-Math.max(0,Math.min(1,i)),e.setValue({hsb:[e.value.hue,r,i]})}function v(e){if(!t){n="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i=n,r="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,o=r;var h=g(e.target);l=h.closest(".color-picker-wheel-handle").length>0,s=h.closest("circle").length>0,(d=h.closest(".color-picker-sb-spectrum-handle").length>0)||(u=h.closest(".color-picker-sb-spectrum").length>0),s&&(a=f.find(".color-picker-wheel")[0].getBoundingClientRect(),p(n,r)),u&&(c=f.find(".color-picker-sb-spectrum")[0].getBoundingClientRect(),m(n,r)),(d||u)&&f.find(".color-picker-sb-spectrum-handle").addClass("color-picker-sb-spectrum-handle-pressed")}}function y(e){(s||l||u||d)&&(i="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,o="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,e.preventDefault(),t||(t=!0,l&&(a=f.find(".color-picker-wheel")[0].getBoundingClientRect()),d&&(c=f.find(".color-picker-sb-spectrum")[0].getBoundingClientRect())),(s||l)&&p(i,o),(u||d)&&m(i,o))}function b(){t=!1,(u||d)&&f.find(".color-picker-sb-spectrum-handle").removeClass("color-picker-sb-spectrum-handle-pressed"),s=!1,l=!1,u=!1,d=!1}function _(){e.modules.wheel.update(e)}var w=!("touchstart"!==h.touchEvents.start||!h.support.passiveListener)&&{passive:!0,capture:!1};e.$el.on(h.touchEvents.start,v,w),h.on("touchmove:active",y),h.on("touchend:passive",b),h.on("resize",_),e.destroyWheelEvents=function(){e.$el.off(h.touchEvents.start,v,w),h.off("touchmove:active",y),h.off("touchend:passive",b),h.off("resize",_)}},update:function(e){var t=e.value,n=t.hsl,r=t.hsb,i=e.$el.find(".color-picker-sb-spectrum")[0].offsetWidth,o=e.$el.find(".color-picker-sb-spectrum")[0].offsetHeight,a=e.$el.find(".color-picker-wheel")[0].offsetWidth,s=a/2,l=t.hue*Math.PI/180,c=a/6/2,u=s-Math.sin(l)*(s-c)-c,d=s-Math.cos(l)*(s-c)-c;e.$el.find(".color-picker-wheel-handle").css("background-color","hsl(".concat(n[0],", 100%, 50%)")).transform("translate(".concat(u,"px, ").concat(d,"px)")),e.$el.find(".color-picker-sb-spectrum").css("background-color","hsl(".concat(n[0],", 100%, 50%)")),e.$el.find(".color-picker-sb-spectrum-handle").css("background-color","hsl(".concat(n[0],", ").concat(100*n[1],"%, ").concat(100*n[2],"%)")).transform("translate(".concat(i*r[1],"px, ").concat(o*(1-r[2]),"px)"))},destroy:function(e){e.destroyWheelEvents&&e.destroyWheelEvents(),delete e.destroyWheelEvents}};function su(e){return(su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lu(e){return function(e){if(Array.isArray(e))return du(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||uu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uu(e,t){if(e){if("string"==typeof e)return du(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?du(e,t):void 0}}function du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pu(r.key),r)}}function pu(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==su(t)?t:t+""}function mu(e,t){if(t&&("object"==su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gu(e)}function vu(e){return(vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yu(e,t){return(yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var bu=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hu(this,t);var i,o,a,s=gu(n=mu(this,vu(t).call(this,r,[e])));if(s.params=$.extend({},e.params.colorPicker,r),s.params.containerEl&&0===(i=g(s.params.containerEl)).length)return mu(n,s);function l(){s.open()}function c(e){e.preventDefault()}function u(){s.open()}function d(e){if(!s.destroyed&&s.params&&"page"!==s.params.openIn){var t=g(e.target);s.opened&&!s.closing&&(t.closest('[class*="backdrop"]').length||t.closest(".color-picker-popup, .color-picker-popover").length||(o&&o.length>0?t[0]!==o[0]&&0===t.closest(".sheet-modal").length&&s.close():0===g(e.target).closest(".sheet-modal").length&&s.close()))}}return s.params.inputEl&&(o=g(s.params.inputEl)),s.params.targetEl&&(a=g(s.params.targetEl)),$.extend(s,{app:e,$containerEl:i,containerEl:i&&i[0],inline:i&&i.length>0,$inputEl:o,inputEl:o&&o[0],$targetEl:a,targetEl:a&&a[0],initialized:!1,opened:!1,url:s.params.url,modules:{"alpha-slider":Hc,"current-color":Uc,hex:zc,"hsb-sliders":Wc,"hue-slider":Gc,"brightness-slider":Kc,palette:Jc,"initial-current-colors":Xc,"rgb-bars":eu,"rgb-sliders":ru,"sb-spectrum":iu,"hs-spectrum":ou,wheel:au}}),$.extend(s,{attachInputEvents:function(){s.$inputEl.on("click",l),s.params.inputReadOnly&&s.$inputEl.on("focus mousedown",c)},detachInputEvents:function(){s.$inputEl.off("click",l),s.params.inputReadOnly&&s.$inputEl.off("focus mousedown",c)},attachTargetEvents:function(){s.$targetEl.on("click",u)},detachTargetEvents:function(){s.$targetEl.off("click",u)},attachHtmlEvents:function(){e.on("click",d)},detachHtmlEvents:function(){e.off("click",d)}}),s.init(),mu(n,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yu(e,t)}(t,e),function(e,t,n){t&&fu(e.prototype,t),n&&fu(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"attachEvents",value:function(){this.centerModules=this.centerModules.bind(this),this.params.centerModules&&this.app.on("resize",this.centerModules)}},{key:"detachEvents",value:function(){this.params.centerModules&&this.app.off("resize",this.centerModules)}},{key:"centerModules",value:function(){if(this.opened&&this.$el&&!this.inline){var e=this.$el.find(".page-content");if(e.length){var t=e[0];t.scrollHeight<=t.offsetHeight?e.addClass("justify-content-center"):e.removeClass("justify-content-center")}}}},{key:"initInput",value:function(){this.$inputEl&&this.params.inputReadOnly&&this.$inputEl.prop("readOnly",!0)}},{key:"getModalType",value:function(){var e=this.app,t=this.modal,n=this.params,r=n.openIn,i=n.openInPhone;return t&&t.type?t.type:"auto"!==r?r:this.inline?null:e.device.ios?e.device.ipad?"popover":i:e.width>=768||e.device.desktop&&"aurora"===e.theme?"popover":i}},{key:"formatValue",value:function(){var e=this.value;return this.params.formatValue?this.params.formatValue.call(this,e):e.hex}},{key:"normalizeHsValues",value:function(e){return[Math.floor(10*e[0])/10,Math.floor(1e3*e[1])/1e3,Math.floor(1e3*e[2])/1e3]}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;if(void 0!==e){var r,i=n.value||{},o=i.hex,a=i.rgb,s=i.hsl,l=i.hsb,c=i.alpha,u=void 0===c?1:c,d=i.hue,h=i.rgba,f=i.hsla,p=n.value||!n.value&&!n.params.value;if(Object.keys(e).forEach((function(t){if(n.value&&void 0!==n.value[t]){var i=e[t];Array.isArray(i)?i.forEach((function(e,i){e!==n.value[t][i]&&(r=!0)})):i!==n.value[t]&&(r=!0)}else r=!0})),r){if(e.rgb||e.rgba){var m=e.rgb||e.rgba,v=cu(m,4),g=v[0],y=v[1],b=v[2],_=v[3],w=void 0===_?u:_;a=[g,y,b],o=$.colorRgbToHex.apply($,lu(a)),s=$.colorRgbToHsl.apply($,lu(a)),l=$.colorHslToHsb.apply($,lu(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=w,h=[a[0],a[1],a[2],w],f=[s[0],s[1],s[2],w]}if(e.hsl||e.hsla){var k=e.hsl||e.hsla,S=cu(k,4),E=S[0],C=S[1],T=S[2],x=S[3],M=void 0===x?u:x;s=[E,C,T],a=$.colorHslToRgb.apply($,lu(s)),o=$.colorRgbToHex.apply($,lu(a)),l=$.colorHslToHsb.apply($,lu(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=M,h=[a[0],a[1],a[2],M],f=[s[0],s[1],s[2],M]}if(e.hsb){var P=cu(e.hsb,4),O=P[0],L=P[1],A=P[2],I=P[3],D=void 0===I?u:I;l=[O,L,A],s=$.colorHsbToHsl.apply($,lu(l)),a=$.colorHslToRgb.apply($,lu(s)),o=$.colorRgbToHex.apply($,lu(a)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],u=D,h=[a[0],a[1],a[2],D],f=[s[0],s[1],s[2],D]}if(e.hex&&(a=$.colorHexToRgb(e.hex),o=$.colorRgbToHex.apply($,lu(a)),s=$.colorRgbToHsl.apply($,lu(a)),l=$.colorHslToHsb.apply($,lu(s)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],h=[a[0],a[1],a[2],u],f=[s[0],s[1],s[2],u]),void 0!==e.alpha&&(u=e.alpha,void 0!==a&&(h=[a[0],a[1],a[2],u]),void 0!==s&&(f=[s[0],s[1],s[2],u])),void 0!==e.hue){var N=s,R=cu(N,3),j=(R[0],R[1]),B=R[2];s=[e.hue,j,B],l=$.colorHslToHsb.apply($,lu(s)),a=$.colorHslToRgb.apply($,lu(s)),o=$.colorRgbToHex.apply($,lu(a)),s=n.normalizeHsValues(s),d=(l=n.normalizeHsValues(l))[0],h=[a[0],a[1],a[2],u],f=[s[0],s[1],s[2],u]}n.value={hex:o,alpha:u,hue:d,rgb:a,hsl:s,hsb:l,rgba:h,hsla:f},n.initialValue||(n.initialValue=$.extend({},n.value)),n.updateValue(p),n.opened&&t&&n.updateModules()}}}},{key:"getValue",value:function(){return this.value}},{key:"updateValue",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=t.$inputEl,r=t.value,i=t.$targetEl;if(i&&t.params.targetElSetBackgroundColor){var o=r.rgba;i.css("background-color","rgba(".concat(o.join(", "),")"))}if(e&&t.emit("local::change colorPickerChange",t,r),n&&n.length){var a=t.formatValue(r);n&&n.length&&(n.val(a),e&&n.trigger("change"))}}},{key:"updateModules",value:function(){var e=this,t=e.modules;e.params.modules.forEach((function(n){"string"==typeof n&&t[n]&&t[n].update?t[n].update(e):n&&n.update&&n.update(e)}))}},{key:"update",value:function(){this.updateModules()}},{key:"renderPicker",value:function(){var e=this,t=e.params,n=e.modules,r="";return t.modules.forEach((function(t){"string"==typeof t&&n[t]&&n[t].render?r+=n[t].render(e):t&&t.render&&(r+=t.render(e))})),r}},{key:"renderNavbar",value:function(){if(this.params.renderNavbar)return this.params.renderNavbar.call(this,this);var e=this.params,t=e.openIn,n=e.navbarTitleText,r=e.navbarBackLinkText,i=e.navbarCloseText;return'\n    <div class="navbar">\n      <div class="navbar-bg"></div>\n      <div class="navbar-inner sliding">\n        '.concat("page"===t?'\n        <div class="left">\n          <a class="link back">\n            <i class="icon icon-back"></i>\n            <span class="if-not-md">'.concat(r,"</span>\n          </a>\n        </div>\n        "):"",'\n        <div class="title">').concat(n,"</div>\n        ").concat("page"!==t?'\n        <div class="right">\n          <a class="link popup-close" data-popup=".color-picker-popup">'.concat(i,"</a>\n        </div>\n        "):"","\n      </div>\n    </div>\n  ").trim()}},{key:"renderToolbar",value:function(){return this.params.renderToolbar?this.params.renderToolbar.call(this,this):'\n    <div class="toolbar toolbar-top no-shadow">\n      <div class="toolbar-inner">\n        <div class="left"></div>\n        <div class="right">\n          <a class="link sheet-close popover-close" data-sheet=".color-picker-sheet-modal" data-popover=".color-picker-popover">'.concat(this.params.toolbarCloseText,"</a>\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderInline",value:function(){var e=this.params,t=e.cssClass,n=e.groupedModules;return'\n    <div class="color-picker color-picker-inline '.concat(n?"color-picker-grouped-modules":""," ").concat(t||"",'">\n      ').concat(this.renderPicker(),"\n    </div>\n  ").trim()}},{key:"renderSheet",value:function(){var e=this.params,t=e.cssClass,n=e.toolbarSheet,r=e.groupedModules;return'\n    <div class="sheet-modal color-picker color-picker-sheet-modal '.concat(r?"color-picker-grouped-modules":""," ").concat(t||"",'">\n      ').concat(n?this.renderToolbar():"",'\n      <div class="sheet-modal-inner">\n        <div class="page-content">\n          ').concat(this.renderPicker(),"\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderPopover",value:function(){var e=this.params,t=e.cssClass,n=e.toolbarPopover,r=e.groupedModules;return'\n    <div class="popover color-picker-popover '.concat(t||"",'">\n      <div class="popover-inner">\n        <div class="color-picker ').concat(r?"color-picker-grouped-modules":"",'">\n          ').concat(n?this.renderToolbar():"",'\n          <div class="page-content">\n            ').concat(this.renderPicker(),"\n          </div>\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderPopup",value:function(){var e=this.params,t=e.cssClass,n=e.navbarPopup,r=e.groupedModules;return'\n    <div class="popup color-picker-popup '.concat(t||"",'">\n      <div class="page">\n        ').concat(n?this.renderNavbar():"",'\n        <div class="color-picker ').concat(r?"color-picker-grouped-modules":"",'">\n          <div class="page-content">\n            ').concat(this.renderPicker(),"\n          </div>\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"renderPage",value:function(){var e=this.params,t=e.cssClass,n=e.groupedModules;return'\n    <div class="page color-picker-page '.concat(t||"",'" data-name="color-picker-page">\n      ').concat(this.renderNavbar(),'\n      <div class="color-picker ').concat(n?"color-picker-grouped-modules":"",'">\n        <div class="page-content">\n          ').concat(this.renderPicker(),"\n        </div>\n      </div>\n    </div>\n  ").trim()}},{key:"render",value:function(){var e=this.params;if(e.render)return e.render.call(this);if(this.inline)return this.renderInline();if("page"===e.openIn)return this.renderPage();var t=this.getModalType();return"popover"===t?this.renderPopover():"sheet"===t?this.renderSheet():"popup"===t?this.renderPopup():void 0}},{key:"onOpen",value:function(){var e=this,t=e.initialized,n=e.$el,r=e.app,i=e.$inputEl,o=e.inline,a=e.value,s=e.params,l=e.modules;e.closing=!1,e.opened=!0,e.opening=!0,e.attachEvents(),s.modules.forEach((function(t){"string"==typeof t&&l[t]&&l[t].init?l[t].init(e):t&&t.init&&t.init(e)}));var c=!a&&s.value;t?a&&(e.initialValue=$.extend({},a),e.setValue(a,!1)):a?e.setValue(a):s.value?e.setValue(s.value,!1):s.value||e.setValue({hex:"#ff0000"},!1),c&&e.updateValue(),e.updateModules(),s.centerModules&&e.centerModules(),!o&&i&&i.length&&"md"===r.theme&&i.trigger("focus"),e.initialized=!0,n&&n.trigger("colorpicker:open"),i&&i.trigger("colorpicker:open"),e.emit("local::open colorPickerOpen",e)}},{key:"onOpened",value:function(){this.opening=!1,this.$el&&this.$el.trigger("colorpicker:opened"),this.$inputEl&&this.$inputEl.trigger("colorpicker:opened"),this.emit("local::opened colorPickerOpened",this)}},{key:"onClose",value:function(){var e=this,t=e.app,n=e.params,r=e.modules;e.opening=!1,e.closing=!0,e.detachEvents(),e.$inputEl&&"md"===t.theme&&e.$inputEl.trigger("blur"),n.modules.forEach((function(t){"string"==typeof t&&r[t]&&r[t].destroy?r[t].destroy(e):t&&t.destroy&&t.destroy(e)})),e.$el&&e.$el.trigger("colorpicker:close"),e.$inputEl&&e.$inputEl.trigger("colorpicker:close"),e.emit("local::close colorPickerClose",e)}},{key:"onClosed",value:function(){var e=this;e.opened=!1,e.closing=!1,e.inline||$.nextTick((function(){e.modal&&e.modal.el&&e.modal.destroy&&(e.params.routableModals||e.modal.destroy()),delete e.modal})),e.$el&&e.$el.trigger("colorpicker:closed"),e.$inputEl&&e.$inputEl.trigger("colorpicker:closed"),e.emit("local::closed colorPickerClosed",e)}},{key:"open",value:function(){var e=this,t=e.app,n=e.opened,r=e.inline,i=e.$inputEl,o=e.$targetEl,a=e.params;if(!n){if(r)return e.$el=g(e.render()),e.$el[0].f7ColorPicker=e,e.$containerEl.append(e.$el),e.onOpen(),void e.onOpened();var s,l,c,u=e.render();if("page"===a.openIn)e.view.router.navigate({url:e.url,route:{content:u,path:e.url,on:{pageBeforeIn:function(t,n){e.$el=n.$el.find(".color-picker"),e.$el[0].f7ColorPicker=e,e.onOpen()},pageAfterIn:function(){e.onOpened()},pageBeforeOut:function(){e.onClose()},pageAfterOut:function(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}}});else{var d=e.getModalType(),h=a.backdrop;null==h&&("popover"===d&&!1!==t.params.popover.backdrop&&(h=!0),"popup"===d&&(h=!0));var f={targetEl:o||i,scrollToEl:a.scrollToInput?o||i:void 0,content:u,backdrop:h,closeByBackdropClick:a.closeByBackdropClick,on:{open:function(){e.modal=this,e.$el="popover"===d||"popup"===d?this.$el.find(".color-picker"):this.$el,e.$el[0].f7ColorPicker=e,e.onOpen()},opened:function(){e.onOpened()},close:function(){e.onClose()},closed:function(){e.onClosed(),e.$el&&e.$el[0]&&(e.$el[0].f7ColorPicker=null,delete e.$el[0].f7ColorPicker)}}};"popup"===d&&(f.push=a.popupPush,f.swipeToClose=a.popupSwipeToClose),"sheet"===d&&(f.push=a.sheetPush,f.swipeToClose=a.sheetSwipeToClose),a.routableModals&&e.view?e.view.router.navigate({url:e.url,route:(s={path:e.url},l=d,c=f,(l=pu(l))in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,s)}):(e.modal=t[d].create(f),e.modal.open())}}}},{key:"close",value:function(){var e=this.opened,t=this.inline;if(e)return t?(this.onClose(),void this.onClosed()):void(this.params.routableModals&&this.view||"page"===this.params.openIn?this.view.router.back():this.modal.close())}},{key:"init",value:function(){if(this.initInput(),this.inline)return this.open(),void this.emit("local::init colorPickerInit",this);!this.initialized&&this.params.value&&this.setValue(this.params.value),this.$inputEl&&this.attachInputEvents(),this.$targetEl&&this.attachTargetEvents(),this.params.closeByOutsideClick&&this.attachHtmlEvents(),this.emit("local::init colorPickerInit",this)}},{key:"destroy",value:function(){if(!this.destroyed){var e=this.$el;this.emit("local::beforeDestroy colorPickerBeforeDestroy",this),e&&e.trigger("colorpicker:beforedestroy"),this.close(),this.detachEvents(),this.$inputEl&&this.detachInputEvents(),this.$targetEl&&this.detachTargetEvents(),this.params.closeByOutsideClick&&this.detachHtmlEvents(),e&&e.length&&delete this.$el[0].f7ColorPicker,$.deleteProps(this),this.destroyed=!0}}},{key:"view",get:function(){var e,t=this.$inputEl,n=this.$targetEl,r=this.app,i=this.params;return i.view?e=i.view:(t&&(e=t.parents(".view").length&&t.parents(".view")[0].f7View),!e&&n&&(e=n.parents(".view").length&&n.parents(".view")[0].f7View)),e||(e=r.views.main),e}}]),t}(W),_u={name:"colorPicker",static:{ColorPicker:bu},create:function(){this.colorPicker=X({defaultSelector:".color-picker",constructor:bu,app:this,domProp:"f7ColorPicker"}),this.colorPicker.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".color-picker",t=g(e);if(0!==t.length){var n=t[0].f7ColorPicker;!n||n&&!n.opened||n.close()}}},params:{colorPicker:{value:null,modules:["wheel"],palette:[["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A","#4A148C"],["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593","#1A237E"],["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD","#01579B"],["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C","#004D40"],["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F","#33691E"],["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825","#F57F17"],["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00","#E65100"]],groupedModules:!1,centerModules:!0,sliderLabel:!1,sliderValue:!1,sliderValueEdiable:!1,barLabel:!1,barValue:!1,barValueEdiable:!1,hexLabel:!1,hexValueEditable:!1,redLabelText:"R",greenLabelText:"G",blueLabelText:"B",hueLabelText:"H",saturationLabelText:"S",brightnessLabelText:"B",hexLabelText:"HEX",alphaLabelText:"A",containerEl:null,openIn:"popover",openInPhone:"popup",popupPush:!1,popupSwipeToClose:void 0,sheetPush:!1,sheetSwipeToClose:void 0,formatValue:null,targetEl:null,targetElSetBackgroundColor:!1,inputEl:null,inputReadOnly:!0,closeByOutsideClick:!0,scrollToInput:!0,toolbarSheet:!0,toolbarPopover:!1,toolbarCloseText:"Done",navbarPopup:!0,navbarCloseText:"Done",navbarTitleText:"Color",navbarBackLinkText:"Back",cssClass:null,routableModals:!0,view:null,url:"color/",backdrop:null,closeByBackdropClick:!0,renderToolbar:null,renderNavbar:null,renderInline:null,renderPopover:null,renderSheet:null,renderPopup:null,render:null}}},wu={open:function(e){var t=this,n=g(e).eq(0);function r(e){e?(n.removeClass("treeview-item-opened"),n.trigger("treeview:close"),t.emit("treeviewClose",n[0])):n[0].f7TreeviewChildrenLoaded=!0,n.find(".treeview-toggle").removeClass("treeview-toggle-hidden"),n.find(".treeview-preloader").remove()}n.length&&(n.addClass("treeview-item-opened"),n.trigger("treeview:open"),t.emit("treeviewOpen",n[0]),n.hasClass("treeview-load-children")&&!n[0].f7TreeviewChildrenLoaded&&(n.trigger("treeview:loadchildren",r),t.emit("treeviewLoadChildren",n[0],r),n.find(".treeview-toggle").addClass("treeview-toggle-hidden"),n.find(".treeview-item-root").prepend('<div class="preloader treeview-preloader">'.concat($["".concat(t.theme,"PreloaderContent")],"</div>"))))},close:function(e){var t=g(e).eq(0);t.length&&(t.removeClass("treeview-item-opened"),t.trigger("treeview:close"),this.emit("treeviewClose",t[0]))},toggle:function(e){var t=g(e).eq(0);if(t.length){var n=t.hasClass("treeview-item-opened");this.treeview[n?"close":"open"](t)}}},ku={name:"treeview",create:function(){$.extend(this,{treeview:{open:wu.open.bind(this),close:wu.close.bind(this),toggle:wu.toggle.bind(this)}})},clicks:{".treeview-toggle":function(e,t,n){if(!e.parents(".treeview-item-toggle").length){var r=e.parents(".treeview-item").eq(0);r.length&&(n.preventF7Router=!0,this.treeview.toggle(r[0]))}},".treeview-item-toggle":function(e,t,n){var r=e.closest(".treeview-item").eq(0);r.length&&(n.preventF7Router=!0,this.treeview.toggle(r[0]))}}};function Su(e){return(Su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cu(r.key),r)}}function Cu(e){var t=function(e,t){if("object"!=Su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Su(t)?t:t+""}function Tu(e,t){if(t&&("object"==Su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mu(e)}function xu(e){return(xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Pu={bold:["bold","format_bold","bold"],italic:["italic","format_italic","italic"],underline:["underline","format_underline","underline"],strikeThrough:["strikethrough","strikethrough_s","strikeThrough"],orderedList:["list_number","format_list_numbered","insertOrderedList"],unorderedList:["list_bullet","format_list_bulleted","insertUnorderedList"],link:["link","link","createLink"],image:["photo","image","insertImage"],paragraph:["paragraph",'<i class="icon">¶</i>',"formatBlock.P"],h1:['<i class="icon">H<sub>1</sub></i>','<i class="icon">H<sub>1</sub></i>',"formatBlock.H1"],h2:['<i class="icon">H<sub>2</sub></i>','<i class="icon">H<sub>2</sub></i>',"formatBlock.H2"],h3:['<i class="icon">H<sub>3</sub></i>','<i class="icon">H<sub>3</sub></i>',"formatBlock.H3"],alignLeft:["text_alignleft","format_align_left","justifyLeft"],alignCenter:["text_aligncenter","format_align_center","justifyCenter"],alignRight:["text_alignright","format_align_right","justifyRight"],alignJustify:["text_justify","format_align_justify","justifyFull"],subscript:["textformat_subscript",'<i class="icon">A<sub>1</sub></i>',"subscript"],superscript:["textformat_superscript",'<i class="icon">A<sup>1</sup></i>',"superscript"],indent:["increase_indent","format_indent_increase","indent"],outdent:["decrease_indent","format_indent_decrease","outdent"]},Ou=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=Mu(r=Tu(this,xu(t).call(this,n,[e]))),o=$.extend({},e.params.textEditor);i.useModulesParams(o),i.params=$.extend(o,n);var s=i.params.el;if(!s)return Tu(r,i);var l=g(s);if(0===l.length)return Tu(r,i);if(l[0].f7TextEditor)return Tu(r,l[0].f7TextEditor);var c=l.children(".text-editor-content");if(c.length||(l.append('<div class="text-editor-content" contenteditable></div>'),c=l.children(".text-editor-content")),$.extend(i,{app:e,$el:l,el:l[0],$contentEl:c,contentEl:c[0]}),"value"in n&&(i.value=i.params.value),"keyboard-toolbar"===i.params.mode&&(e.device.cordova||e.device.android||(i.params.mode="popover")),"string"==typeof i.params.buttons)try{i.params.buttons=JSON.parse(i.params.buttons)}catch(e){throw new Error('Framework7: TextEditor: wrong "buttons" parameter format')}return l[0].f7TextEditor=i,i.onButtonClick=i.onButtonClick.bind(i),i.onFocus=i.onFocus.bind(i),i.onBlur=i.onBlur.bind(i),i.onInput=i.onInput.bind(i),i.onPaste=i.onPaste.bind(i),i.onSelectionChange=i.onSelectionChange.bind(i),i.closeKeyboardToolbar=i.closeKeyboardToolbar.bind(i),i.attachEvents=function(){"toolbar"===i.params.mode&&i.$el.find(".text-editor-toolbar").on("click","button",i.onButtonClick),"keyboard-toolbar"===i.params.mode&&(i.$keyboardToolbarEl.on("click","button",i.onButtonClick),i.$el.parents(".page").on("page:beforeout",i.closeKeyboardToolbar)),"popover"===i.params.mode&&i.popover&&i.popover.$el.on("click","button",i.onButtonClick),i.$contentEl.on("paste",i.onPaste),i.$contentEl.on("focus",i.onFocus),i.$contentEl.on("blur",i.onBlur),i.$contentEl.on("input",i.onInput,!0),g(a).on("selectionchange",i.onSelectionChange)},i.detachEvents=function(){"toolbar"===i.params.mode&&i.$el.find(".text-editor-toolbar").off("click","button",i.onButtonClick),"keyboard-toolbar"===i.params.mode&&(i.$keyboardToolbarEl.off("click","button",i.onButtonClick),i.$el.parents(".page").off("page:beforeout",i.closeKeyboardToolbar)),"popover"===i.params.mode&&i.popover&&i.popover.$el.off("click","button",i.onButtonClick),i.$contentEl.off("paste",i.onPaste),i.$contentEl.off("focus",i.onFocus),i.$contentEl.off("blur",i.onBlur),i.$contentEl.off("input",i.onInput,!0),g(a).off("selectionchange",i.onSelectionChange)},i.useModules(),i.init(),Tu(r,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}(t,e),function(e,t,n){t&&Eu(e.prototype,t),n&&Eu(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"setValue",value:function(e){return this.value===e||(this.value=e,this.$contentEl.html(e),this.$el.trigger("texteditor:change",this.value),this.emit("local::change textEditorChange",this,this.value)),this}},{key:"getValue",value:function(){return this.value}},{key:"createLink",value:function(){var e,t=this,n=s.getSelection(),r=[];if(n&&n.anchorNode&&g(n.anchorNode).parents(t.$el).length){for(var i=n.anchorNode;i;)r.push(i),i.nextSibling&&i!==n.focusNode||(i=null),i&&(i=i.nextSibling);e=g(r).closest("a").add(g(r).children("a"))}if(e&&e.length)return e.each((function(e,t){var n=s.getSelection(),r=a.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),a.execCommand("unlink",!1),n.removeAllRanges()})),t;var o=t.getSelectionRange();return o?(t.app.dialog.prompt(t.params.linkUrlText,"",(function(e){e&&e.trim().length&&(t.setSelectionRange(o),a.execCommand("createLink",!1,e.trim()))})).$el.find("input").focus(),t):t}},{key:"insertImage",value:function(){var e=this,t=e.getSelectionRange();return t?(e.app.dialog.prompt(e.params.imageUrlText,"",(function(n){n&&n.trim().length&&(e.setSelectionRange(t),a.execCommand("insertImage",!1,n.trim()))})).$el.find("input").focus(),e):e}},{key:"removePlaceholder",value:function(){this.$contentEl.find(".text-editor-placeholder").remove()}},{key:"insertPlaceholder",value:function(){this.$contentEl.append('<div class="text-editor-placeholder">'.concat(this.params.placeholder,"</div>"))}},{key:"onSelectionChange",value:function(){if("toolbar"!==this.params.mode){var e=s.getSelection(),t=g(e.anchorNode).parents(this.contentEl).length||e.anchorNode===this.contentEl;if("keyboard-toolbar"!==this.params.mode){if("popover"===this.params.mode){var n=g(e.anchorNode).parents(this.popover.el).length||e.anchorNode===this.popover.el;if(!t&&!n)return void this.closePopover();if(!e.isCollapsed&&e.rangeCount){var r=e.getRangeAt(0).getBoundingClientRect();this.openPopover(r.x+(s.scrollX||0),r.y+(s.scrollY||0),r.width,r.height)}else e.isCollapsed&&this.closePopover()}}else t?this.openKeyboardToolbar():this.closeKeyboardToolbar()}}},{key:"onPaste",value:function(e){if(this.params.clearFormattingOnPaste&&e.clipboardData&&e.clipboardData.getData){var t=e.clipboardData.getData("text/plain");e.preventDefault(),a.execCommand("insertText",!1,t)}}},{key:"onInput",value:function(){var e=this.$contentEl.html();this.$el.trigger("texteditor:input"),this.emit("local:input textEditorInput",this),this.value=e,this.$el.trigger("texteditor:change",this.value),this.emit("local::change textEditorChange",this,this.value)}},{key:"onFocus",value:function(){this.removePlaceholder(),this.$contentEl.focus(),this.$el.trigger("texteditor:focus"),this.emit("local::focus textEditorFocus",this)}},{key:"onBlur",value:function(){if(this.params.placeholder&&""===this.$contentEl.html()&&this.insertPlaceholder(),"popover"===this.params.mode){var e=s.getSelection(),t=g(e.anchorNode).parents(this.contentEl).length||e.anchorNode===this.contentEl;a.activeElement&&this.popover&&g(a.activeElement).closest(this.popover.$el).length||t||this.closePopover()}if("keyboard-toolbar"===this.params.mode){var n=s.getSelection();g(n.anchorNode).parents(this.contentEl).length||n.anchorNode===this.contentEl||this.closeKeyboardToolbar()}this.$el.trigger("texteditor:blur"),this.emit("local::blur textEditorBlur",this)}},{key:"onButtonClick",value:function(e){var t=s.getSelection();if(g(t.anchorNode).parents(this.contentEl).length||t.anchorNode===this.contentEl){var n=g(e.target).closest("button");n.parents("form").length&&e.preventDefault();var r=n.attr("data-button"),i=this.params.customButtons&&this.params.customButtons[r];if(r&&(Pu[r]||i))if(n.trigger("texteditor:buttonclick",r),this.emit("local::buttonClick textEditorButtonClick",this,r),i)i.onClick&&i.onClick(this,n[0]);else{var o=Pu[r][2];if("createLink"!==o)if("insertImage"!==o)if(0!==o.indexOf("formatBlock"))a.execCommand(o,!1);else{var l=o.split(".")[1],c=g(t.anchorNode);c.parents(l.toLowerCase()).length||c.is(l)?a.execCommand("formatBlock",!1,"div"):a.execCommand("formatBlock",!1,l)}else this.insertImage();else this.createLink()}}}},{key:"getSelectionRange",value:function(){if(s.getSelection){var e=s.getSelection();if(e.getRangeAt&&e.rangeCount)return e.getRangeAt(0)}else if(a.selection&&a.selection.createRange)return a.selection.createRange();return null}},{key:"setSelectionRange",value:function(e){if(e)if(s.getSelection){var t=s.getSelection();t.removeAllRanges(),t.addRange(e)}else a.selection&&e.select&&e.select()}},{key:"renderButtons",value:function(){var e=this,t="";function n(t){var n="md"===e.app.theme?"material-icons":"f7-icons";if(e.params.customButtons&&e.params.customButtons[t]){var r=e.params.customButtons[t];return'<button type="button" class="text-editor-button" data-button="'.concat(t,'">').concat(r.content||"","</button>")}if(!Pu[t])return"";var i=Pu[t]["md"===e.app.theme?1:0];return'<button type="button" class="text-editor-button" data-button="'.concat(t,'">').concat(i.indexOf("<")>=0?i:'<i class="'.concat(n,'">').concat(i,"</i>"),"</button>").trim()}return e.params.buttons.forEach((function(r,i){Array.isArray(r)?(r.forEach((function(e){t+=n(e)})),i<e.params.buttons.length-1&&e.params.dividers&&(t+='<div class="text-editor-button-divider"></div>')):t+=n(r)})),t}},{key:"createToolbar",value:function(){this.$el.prepend('<div class="text-editor-toolbar">'.concat(this.renderButtons(),"</div>"))}},{key:"createKeyboardToolbar",value:function(){var e=this.$el.closest(".theme-dark").length>0||"dark"===this.app.device.prefersColorScheme();this.$keyboardToolbarEl=g('<div class="toolbar toolbar-bottom text-editor-keyboard-toolbar '.concat(e?"theme-dark":"",'"><div class="toolbar-inner">').concat(this.renderButtons(),"</div></div>"))}},{key:"createPopover",value:function(){var e=this.$el.closest(".theme-dark").length>0;this.popover=this.app.popover.create({content:'\n        <div class="popover '.concat(e?"theme-light":"theme-dark",' text-editor-popover">\n          <div class="popover-inner">').concat(this.renderButtons(),"</div>\n        </div>\n      "),closeByOutsideClick:!1,backdrop:!1})}},{key:"openKeyboardToolbar",value:function(){this.$keyboardToolbarEl.parent(this.app.root).length||(this.$el.trigger("texteditor:keyboardopen"),this.emit("local::keyboardOpen textEditorKeyboardOpen",this),this.app.root.append(this.$keyboardToolbarEl))}},{key:"closeKeyboardToolbar",value:function(){this.$keyboardToolbarEl.remove(),this.$el.trigger("texteditor:keyboardclose"),this.emit("local::keyboardClose textEditorKeyboardClose",this)}},{key:"openPopover",value:function(e,t,n,r){var i=this;i.popover&&(Object.assign(i.popover.params,{targetX:e,targetY:t,targetWidth:n,targetHeight:r}),clearTimeout(i.popoverTimeout),i.popoverTimeout=setTimeout((function(){i.popover&&(i.popover.opened?i.popover.resize():(i.$el.trigger("texteditor:popoveropen"),i.emit("local::popoverOpen textEditorPopoverOpen",i),i.popover.open()))}),400))}},{key:"closePopover",value:function(){var e=this;clearTimeout(e.popoverTimeout),e.popover&&e.popover.opened&&(e.popoverTimeout=setTimeout((function(){e.popover&&(e.$el.trigger("texteditor:popoverclose"),e.emit("local::popoverClose textEditorPopoverClose",e),e.popover.close())}),400))}},{key:"init",value:function(){return this.value?this.$contentEl.html(this.value):this.value=this.$contentEl.html(),this.params.placeholder&&""===this.value&&this.insertPlaceholder(),"toolbar"===this.params.mode?this.createToolbar():"popover"===this.params.mode?this.createPopover():"keyboard-toolbar"===this.params.mode&&this.createKeyboardToolbar(),this.attachEvents(),this.$el.trigger("texteditor:init"),this.emit("local::init textEditorInit",this),this}},{key:"destroy",value:function(){var e=this;e.$el.trigger("texteditor:beforedestroy"),e.emit("local::beforeDestroy textEditorBeforeDestroy",e),e.detachEvents(),"keyboard-toolbar"===e.params.mode&&e.$keyboardToolbarEl&&e.$keyboardToolbarEl.remove(),e.popover&&(e.popover.close(!1),e.popover.destroy()),delete e.$el[0].f7TextEditor,$.deleteProps(e),e=null}}]),t}(W),Lu={name:"textEditor",params:{textEditor:{el:null,mode:"toolbar",value:void 0,customButtons:null,buttons:[["bold","italic","underline","strikeThrough"],["orderedList","unorderedList"],["link","image"],["paragraph","h1","h2","h3"],["alignLeft","alignCenter","alignRight","alignJustify"],["subscript","superscript"],["indent","outdent"]],dividers:!0,imageUrlText:"Insert image URL",linkUrlText:"Insert link URL",placeholder:null,clearFormattingOnPaste:!0}},create:function(){this.textEditor=$.extend(X({defaultSelector:".text-editor",constructor:Ou,app:this,domProp:"f7TextEditor"}))},static:{TextEditor:Ou},on:{tabMounted:function(e){var t=this;g(e).find(".text-editor-init").each((function(e,n){var r=g(n).dataset();t.textEditor.create($.extend({el:n},r||{}))}))},tabBeforeRemove:function(e){g(e).find(".text-editor-init").each((function(e,t){t.f7TextEditor&&t.f7TextEditor.destroy()}))},pageInit:function(e){var t=this;e.$el.find(".text-editor-init").each((function(e,n){var r=g(n).dataset();t.textEditor.create($.extend({el:n},r||{}))}))},pageBeforeRemove:function(e){e.$el.find(".text-editor-init").each((function(e,t){t.f7TextEditor&&t.f7TextEditor.destroy()}))}},vnode:{"text-editor-init":{insert:function(e){var t=e.elm,n=g(t).dataset();this.textEditor.create($.extend({el:t},n||{}))},destroy:function(e){var t=e.elm;t.f7TextEditor&&t.f7TextEditor.destroy()}}}};function Au(e){return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nu(r.key),r)}}function Nu(e){var t=function(e,t){if("object"!=Au(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Au(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Au(t)?t:t+""}function Ru(e,t){if(t&&("object"==Au(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bu(e)}function ju(e){return(ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yu(e,t){return(Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fu=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Iu(this,t);var i,o=Bu(n=Ru(this,ju(t).call(this,r,[e])));if(!s.vi)throw new Error("Framework7: vi SDK not found.");void 0!==s.orientation&&(i=-90===s.orientation||90===s.orientation?"horizontal":"vertical");var a=$.extend({},e.params.vi,{appId:e.id,appVer:e.version,language:e.language,width:e.width,height:e.height,os:O.os,osVersion:O.osVersion,orientation:i});o.useModulesParams(a),o.params=$.extend(a,r);var l={},c="on autoplay fallbackOverlay fallbackOverlayText enabled".split(" ");if(Object.keys(o.params).forEach((function(e){if(!(c.indexOf(e)>=0)){var t=o.params[e];[null,void 0].indexOf(t)>=0||(l[e]=t)}})),!o.params.appId)throw new Error('Framework7: "app.id" is required to display an ad. Make sure you have specified it on app initialization.');if(!o.params.placementId)throw new Error('Framework7: "placementId" is required to display an ad.');function u(){var t=g("iframe#viAd");0!==t.length&&t.css({width:"".concat(e.width,"px"),height:"".concat(e.height,"px")})}function d(){o.$overlayEl&&(o.$overlayEl.off("click touchstart"),o.$overlayEl.remove())}function h(t){var n;t&&(o.$overlayEl=g('\n        <div class="vi-overlay">\n          '.concat(o.params.fallbackOverlayText?'<div class="vi-overlay-text">'.concat(o.params.fallbackOverlayText,"</div>"):"",'\n          <div class="vi-overlay-play-button"></div>\n        </div>\n      ').trim()),o.$overlayEl.on("touchstart",(function(){n=$.now()})),o.$overlayEl.on("click",(function(){if(!($.now()-n>300)){if(t)return t.play(),void d();o.start(),d()}})),e.root.append(o.$overlayEl))}return o.ad=new s.vi.Ad(l),$.extend(o.ad,{onAdReady:function(){e.on("resize",u),o.emit("local::ready"),o.params.autoplay&&o.start()},onAdStarted:function(){o.emit("local::started")},onAdClick:function(e){o.emit("local::click",e)},onAdImpression:function(){o.emit("local::impression")},onAdStopped:function(t){e.off("resize",u),d(),o.emit("local::stopped",t),"complete"===t&&(o.emit("local::complete"),o.emit("local::completed")),"userexit"===t&&o.emit("local::userexit"),o.destroyed=!0},onAutoPlayFailed:function(e,t){o.emit("local::autoplayFailed",e,t),e&&e.name&&-1!==e.name.indexOf("NotAllowedError")&&o.params.fallbackOverlay&&h(t)},onAdError:function(t){d(),e.off("resize",u),o.emit("local::error",t),o.destroyed=!0}}),o.init(),$.extend(o,{app:e}),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yu(e,t)}(t,e),n=t,(r=[{key:"start",value:function(){this.destroyed||this.ad&&this.ad.startAd()}},{key:"pause",value:function(){this.destroyed||this.ad&&this.ad.pauseAd()}},{key:"resume",value:function(){this.destroyed||this.ad&&this.ad.resumeAd()}},{key:"stop",value:function(){this.destroyed||this.ad&&this.ad.stopAd()}},{key:"init",value:function(){this.destroyed||this.ad&&this.ad.initAd()}},{key:"destroy",value:function(){this.destroyed=!0,this.emit("local::beforeDestroy"),$.deleteProps(this)}}])&&Du(n.prototype,r),i&&Du(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(W),Hu={name:"vi",params:{vi:{enabled:!1,autoplay:!0,fallbackOverlay:!0,fallbackOverlayText:"Please watch this ad",showMute:!0,startMuted:(O.ios||O.android)&&!O.cordova,appId:null,appVer:null,language:null,width:null,height:null,placementId:"pltd4o7ibb9rc653x14",placementType:"interstitial",videoSlot:null,showProgress:!0,showBranding:!0,os:null,osVersion:null,orientation:null,age:null,gender:null,advertiserId:null,latitude:null,longitude:null,accuracy:null,storeId:null,ip:null,manufacturer:null,model:null,connectionType:null,connectionProvider:null}},create:function(){var e=this;e.vi={sdkReady:!1,createAd:function(t){return new Fu(e,t)},loadSdk:function(){if(!e.vi.sdkReady){var t=a.createElement("script");t.onload=function(){e.emit("viSdkReady"),e.vi.sdkReady=!0},t.src="https://c.vi-serve.com/viadshtml/vi.min.js",g("head").append(t)}}}},on:{init:function(){(this.params.vi.enabled||this.passedParams.vi&&!1!==this.passedParams.vi.enabled)&&this.vi.loadSdk()}}};tt.use([pt,mt]),ce.use([me,ve,ge,ye,be,_e,ft,nt,vn,mn,yn,_n,wn,Sn,Cn,{name:"subnavbar",on:{pageInit:function(e){e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar"),e.$el.find(".subnavbar").length&&e.$el.addClass("page-with-subnavbar")}}},An,Jn,{name:"appbar"},sr,pr,wr,Pr,Br,qr,ti,ri,ai,li,ui,hi,{name:"contactsList"},ki,Li,{name:"timeline"},Ii,Wi,Ki,{name:"chip"},to,ro,{name:"checkbox"},{name:"radio"},po,Eo,Ao,Uo,Wo,oa,va,ya,xa,$a,Ba,Fa,Xa,ss,gs,zl,ec,cc,bc,$c,Bc,{name:"skeleton"},Fc,_u,ku,Lu,{name:"elevation"},{name:"typography"},Hu]);var Uu=ce;function zu(e){return function(e){if(Array.isArray(e))return Vu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vu(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qu(e){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Wu={text:function(e){return null==e?"":e},noUndefinedProps:function(e){var t={};return Object.keys(e).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t},isTrueProp:function(e){return!0===e||""===e},isStringProp:function(e){return"string"==typeof e&&""!==e},isObject:function(e){return"object"===qu(e)&&null!==e&&e.constructor&&e.constructor===Object},now:function(){return Date.now()},extend:function(){for(var e,t,n=!0,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];"boolean"==typeof i[0]?(n=i[0],e=i[1],i.splice(0,2),t=i):(e=i[0],i.splice(0,1),t=i);for(var a=0;a<t.length;a+=1){var s=i[a];if(null!=s)for(var l=Object.keys(Object(s)),c=0,u=l.length;c<u;c+=1){var d=l[c],h=Object.getOwnPropertyDescriptor(s,d);void 0!==h&&h.enumerable&&(n?Wu.isObject(e[d])&&Wu.isObject(s[d])?Wu.extend(e[d],s[d]):!Wu.isObject(e[d])&&Wu.isObject(s[d])?(e[d]={},Wu.extend(e[d],s[d])):e[d]=s[d]:e[d]=s[d])}}return e},flattenArray:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){Array.isArray(t)?e.push.apply(e,zu(Wu.flattenArray.apply(Wu,zu(t)))):e.push(t)})),e},classNames:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){"object"===qu(t)&&t.constructor===Object?Object.keys(t).forEach((function(n){t[n]&&e.push(n)})):t&&e.push(t)}));var i=[];return e.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i.join(" ")},bindMethods:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0;n<t.length;n+=1)e[t[n]]&&(e[t[n]]=e[t[n]].bind(e))}},Gu=Wu;function Ku(e){return(Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ju(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ku(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ku(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xu={colorProps:{color:String,colorTheme:String,textColor:String,bgColor:String,borderColor:String,rippleColor:String,themeDark:Boolean},colorClasses:function(e){var t,n=e.color,r=e.colorTheme,i=e.textColor,o=e.bgColor,a=e.borderColor,s=e.rippleColor;return Ju(t={"theme-dark":e.themeDark},"color-".concat(n),n),Ju(t,"color-theme-".concat(r),r),Ju(t,"text-color-".concat(i),i),Ju(t,"bg-color-".concat(o),o),Ju(t,"border-color-".concat(a),a),Ju(t,"ripple-color-".concat(s),s),t},linkIconProps:{icon:String,iconMaterial:String,iconF7:String,iconIos:String,iconMd:String,iconAurora:String,iconColor:String,iconSize:[String,Number]},linkRouterProps:{back:Boolean,external:Boolean,force:Boolean,animate:{type:Boolean,default:void 0},ignoreCache:Boolean,reloadCurrent:Boolean,reloadAll:Boolean,reloadPrevious:Boolean,reloadDetail:{type:Boolean,default:void 0},routeTabId:String,view:String,routeProps:Object,preventRouter:Boolean,transition:String},linkRouterAttrs:function(e){var t,n,r=e.force,i=e.reloadCurrent,o=e.reloadPrevious,a=e.reloadAll,s=e.reloadDetail,l=e.animate,c=e.ignoreCache,u=e.routeTabId,d=e.view,h=e.transition;return"animate"in e&&void 0!==l&&(t=l.toString()),"reloadDetail"in e&&void 0!==s&&(n=s.toString()),{"data-force":r||void 0,"data-reload-current":i||void 0,"data-reload-all":a||void 0,"data-reload-previous":o||void 0,"data-reload-detail":n,"data-animate":t,"data-ignore-cache":c||void 0,"data-route-tab-id":u||void 0,"data-view":Gu.isStringProp(d)?d:void 0,"data-transition":Gu.isStringProp(h)?h:void 0}},linkRouterClasses:function(e){var t=e.back,n=e.linkBack;return{back:t||n,external:e.external,"prevent-router":e.preventRouter}},linkActionsProps:{searchbarEnable:[Boolean,String],searchbarDisable:[Boolean,String],searchbarClear:[Boolean,String],searchbarToggle:[Boolean,String],panelOpen:[Boolean,String],panelClose:[Boolean,String],panelToggle:[Boolean,String],popupOpen:[Boolean,String],popupClose:[Boolean,String],actionsOpen:[Boolean,String],actionsClose:[Boolean,String],popoverOpen:[Boolean,String],popoverClose:[Boolean,String],loginScreenOpen:[Boolean,String],loginScreenClose:[Boolean,String],sheetOpen:[Boolean,String],sheetClose:[Boolean,String],sortableEnable:[Boolean,String],sortableDisable:[Boolean,String],sortableToggle:[Boolean,String],cardOpen:[Boolean,String],cardPreventOpen:[Boolean,String],cardClose:[Boolean,String],menuClose:{type:[Boolean,String],default:void 0}},linkActionsAttrs:function(e){var t=e.searchbarEnable,n=e.searchbarDisable,r=e.searchbarClear,i=e.searchbarToggle,o=e.panelOpen,a=e.panelClose,s=e.panelToggle,l=e.popupOpen,c=e.popupClose,u=e.actionsOpen,d=e.actionsClose,h=e.popoverOpen,f=e.popoverClose,p=e.loginScreenOpen,m=e.loginScreenClose,v=e.sheetOpen,g=e.sheetClose,y=e.sortableEnable,b=e.sortableDisable,_=e.sortableToggle,w=e.cardOpen,k=e.cardClose;return{"data-searchbar":Gu.isStringProp(t)&&t||Gu.isStringProp(n)&&n||Gu.isStringProp(r)&&r||Gu.isStringProp(i)&&i||void 0,"data-panel":Gu.isStringProp(o)&&o||Gu.isStringProp(a)&&a||Gu.isStringProp(s)&&s||void 0,"data-popup":Gu.isStringProp(l)&&l||Gu.isStringProp(c)&&c||void 0,"data-actions":Gu.isStringProp(u)&&u||Gu.isStringProp(d)&&d||void 0,"data-popover":Gu.isStringProp(h)&&h||Gu.isStringProp(f)&&f||void 0,"data-sheet":Gu.isStringProp(v)&&v||Gu.isStringProp(g)&&g||void 0,"data-login-screen":Gu.isStringProp(p)&&p||Gu.isStringProp(m)&&m||void 0,"data-sortable":Gu.isStringProp(y)&&y||Gu.isStringProp(b)&&b||Gu.isStringProp(_)&&_||void 0,"data-card":Gu.isStringProp(w)&&w||Gu.isStringProp(k)&&k||void 0}},linkActionsClasses:function(e){var t=e.searchbarEnable,n=e.searchbarDisable,r=e.searchbarClear,i=e.searchbarToggle,o=e.panelOpen,a=e.panelClose,s=e.panelToggle,l=e.popupOpen,c=e.popupClose,u=e.actionsClose,d=e.actionsOpen,h=e.popoverOpen,f=e.popoverClose,p=e.loginScreenOpen,m=e.loginScreenClose,v=e.sheetOpen,g=e.sheetClose,y=e.sortableEnable,b=e.sortableDisable,_=e.sortableToggle,w=e.cardOpen,k=e.cardPreventOpen,S=e.cardClose,E=e.menuClose;return{"searchbar-enable":t||""===t,"searchbar-disable":n||""===n,"searchbar-clear":r||""===r,"searchbar-toggle":i||""===i,"panel-close":a||""===a,"panel-open":o||""===o,"panel-toggle":s||""===s,"popup-close":c||""===c,"popup-open":l||""===l,"actions-close":u||""===u,"actions-open":d||""===d,"popover-close":f||""===f,"popover-open":h||""===h,"sheet-close":g||""===g,"sheet-open":v||""===v,"login-screen-close":m||""===m,"login-screen-open":p||""===p,"sortable-enable":y||""===y,"sortable-disable":b||""===b,"sortable-toggle":_||""===_,"card-close":S||""===S,"card-open":w||""===w,"card-prevent-open":k||""===k,"menu-close":E||""===E}}};function Qu(e){return function(e){if(Array.isArray(e))return Zu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zu(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ed,td=function(e){var t={},n=e.$props;Object.keys(n).forEach((function(e){void 0!==n[e]&&(t[e]=n[e])}));var r=[];return Object.keys(e.$slots).forEach((function(t){r.push.apply(r,Qu(e.$slots[t]))})),t.children=r,t},nd={props:Object.assign({id:[String,Number]},Xu.colorProps),name:"f7-accordion-content",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"accordion-item-content",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},rd=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=e;t.split(" ").forEach((function(e){o.$emit.apply(o,[e].concat(r))}))},id={name:"f7-accordion-item",props:Object.assign({id:[String,Number],opened:Boolean},Xu.colorProps),created:function(){Gu.bindMethods(this,"onBeforeOpen onOpen onOpened onBeforeClose onClose onClosed".split(" "))},mounted:function(){var e=this,t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(t){t.on("accordionBeforeOpen",e.onBeforeOpen),t.on("accordionOpen",e.onOpen),t.on("accordionOpened",e.onOpened),t.on("accordionBeforeClose",e.onBeforeClose),t.on("accordionClose",e.onClose),t.on("accordionClosed",e.onClosed)})))},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("accordionBeforeOpen",this.onBeforeOpen),e.off("accordionOpen",this.onOpen),e.off("accordionOpened",this.onOpened),e.off("accordionBeforeClose",this.onBeforeClose),e.off("accordionClose",this.onClose),e.off("accordionClosed",this.onClosed),delete this.eventTargetEl}},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.opened;return e("div",{style:i,class:Gu.classNames(n,"accordion-item",{"accordion-item-opened":o},Xu.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default])},methods:{onBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordionBeforeOpen accordion:beforeopen",t)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionOpen accordion:open")},onOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionOpened accordion:opened")},onBeforeClose:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordionBeforeClose accordion:beforeclose",t)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionClose accordion:close")},onClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordionClosed accordion:closed")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},od={props:Object.assign({id:[String,Number]},Xu.colorProps),name:"f7-accordion-toggle",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"accordion-item-toggle",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},ad={props:Object.assign({id:[String,Number],accordionOpposite:Boolean},Xu.colorProps),name:"f7-accordion",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.accordionOpposite;return e("div",{style:i,class:Gu.classNames(n,"accordion-list",o&&"accordion-opposite",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},sd={name:"f7-actions-button",props:Object.assign({id:[String,Number],bold:Boolean,close:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.id,i=n.className,o=n.style,a=n.bold;return this.$slots.media&&this.$slots.media.length&&(e=t("div",{class:"actions-button-media"},[this.$slots.media])),t("div",{style:o,class:Gu.classNames(i,{"actions-button":!0,"actions-button-bold":a},Xu.colorClasses(n)),ref:"el",attrs:{id:r}},[e,t("div",{class:"actions-button-text"},[this.$slots.default])])},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){var t=this.$$,n=this.$refs.el;this.props.close&&this.$f7&&n&&this.$f7.actions.close(t(n).parents(".actions-modal")),this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},ld={name:"f7-actions-group",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"actions-group",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},cd={name:"f7-actions-label",props:Object.assign({id:[String,Number],bold:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.bold;return e("div",{style:i,class:Gu.classNames(n,"actions-label",{"actions-button-bold":o},Xu.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default])},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},ud={name:"f7-actions",props:Object.assign({id:[String,Number],opened:Boolean,grid:Boolean,convertToPopover:Boolean,forceToPopover:Boolean,target:[String,Object],backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.grid;return e("div",{style:i,ref:"el",class:Gu.classNames(n,"actions-modal",{"actions-grid":o},Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7Actions&&(e?this.f7Actions.open():this.f7Actions.close())}},created:function(){Gu.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.grid,i=n.target,o=n.convertToPopover,a=n.forceToPopover,s=n.opened,l=n.closeByBackdropClick,c=n.closeByOutsideClick,u=n.closeOnEscape,d=n.backdrop,h=n.backdropEl,f={el:t,grid:r,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}};i&&(f.targetEl=i);var p=e.$options.propsData;void 0!==p.convertToPopover&&(f.convertToPopover=o),void 0!==p.forceToPopover&&(f.forceToPopover=a),void 0!==p.backdrop&&(f.backdrop=d),void 0!==p.backdropEl&&(f.backdropEl=h),void 0!==p.closeByBackdropClick&&(f.closeByBackdropClick=l),void 0!==p.closeByOutsideClick&&(f.closeByOutsideClick=c),void 0!==p.closeOnEscape&&(f.closeOnEscape=u),e.$f7ready((function(){e.f7Actions=e.$f7.actions.create(f),s&&e.f7Actions.open(!1)}))}},beforeDestroy:function(){this.f7Actions&&this.f7Actions.destroy(),delete this.f7Actions},methods:{onOpen:function(e){this.dispatchEvent("actions:open actionsOpen",e)},onOpened:function(e){this.dispatchEvent("actions:opened actionsOpened",e)},onClose:function(e){this.dispatchEvent("actions:close actionsClose",e)},onClosed:function(e){this.dispatchEvent("actions:closed actionsClosed",e)},open:function(e){if(this.f7Actions)return this.f7Actions.open(e)},close:function(e){if(this.f7Actions)return this.f7Actions.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},dd={instance:null,Framework7:null,events:null,init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=dd.events,i=dd.Framework7,o=Gu.extend({},t,{root:e});n&&n.length&&!o.routes&&(o.routes=n);var a=new i(o);ed=a,a.initialized?(dd.instance=a,ed=a,r.emit("ready",dd.instance)):a.on("init",(function(){dd.instance=a,ed=a,r.emit("ready",dd.instance)}))},ready:function(e){e&&(dd.instance?e(dd.instance):dd.events.once("ready",e))},routers:{views:[],tabs:[],modals:null}},hd=dd,fd=function(e,t,n){var r,i=e;r="function"==typeof t?t(i.state,i.props):t,Object.keys(r).forEach((function(e){i.$set(i.state,e,r[e])})),"function"==typeof n&&n()},pd={name:"f7-routable-modals",data:function(){return{state:{modals:[]}}},render:function(){var e=this.$createElement;return e("div",{ref:"el",class:"framework7-modals"},[this.state.modals.map((function(t){var n=t.component;return e(n,{key:t.id,props:t.props})}))])},updated:function(){this.routerData&&hd.events.emit("modalsRouterDidUpdate",this.routerData)},beforeDestroy:function(){this.routerData&&(hd.routers.modals=null,this.routerData=null,delete this.routerData)},mounted:function(){var e=this,t=e.$refs.el;e.routerData={modals:e.state.modals,el:t,component:e,setModals:function(t){e.setState({modals:t})}},hd.routers.modals=e.routerData},methods:{setState:function(e,t){fd(this,e,t)}}},md={name:"f7-app",props:Object.assign({id:[String,Number],params:Object,routes:Array},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className;return e("div",{ref:"el",style:r,class:Gu.classNames(i,"framework7-root",Xu.colorClasses(t)),attrs:{id:n||"framework7-root"}},[this.$slots.default,e(pd)])},mounted:function(){var e=this.props,t=e.params,n=void 0===t?{}:t,r=e.routes,i=this.$refs.el,o=i.parentNode;o&&o!==document.body&&o.parentNode===document.body&&(o.style.height="100%"),hd.instance||hd.init(i,n,r)},computed:{props:function(){return td(this)}}},vd={name:"f7-appbar",props:Object.assign({id:[String,Number],noShadow:Boolean,noHairline:Boolean,inner:{type:Boolean,default:!0},innerClass:String,innerClassName:String},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.inner,i=n.innerClass,o=n.innerClassName,a=n.className,s=n.id,l=n.style,c=n.noShadow,u=n.noHairline;return r&&(e=t("div",{class:Gu.classNames("appbar-inner",i,o)},[this.$slots.default])),t("div",{style:l,class:Gu.classNames(a,"appbar",{"no-shadow":c,"no-hairline":u},Xu.colorClasses(n)),attrs:{id:s}},[this.$slots["before-inner"],e||this.$slots.default,this.$slots["after-inner"]])},computed:{props:function(){return td(this)}}},gd={name:"f7-badge",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("span",{style:t.style,class:Gu.classNames(n,"badge",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},yd={name:"f7-block-footer",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"block-footer",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},bd={name:"f7-block-header",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"block-header",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},_d={name:"f7-block-title",props:Object.assign({id:[String,Number],large:Boolean,medium:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.large,a=t.medium;return e("div",{style:i,class:Gu.classNames(n,"block-title",{"block-title-large":o,"block-title-medium":a},Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},wd={name:"f7-block",props:Object.assign({id:[String,Number],inset:Boolean,xsmallInset:Boolean,smallInset:Boolean,mediumInset:Boolean,largeInset:Boolean,xlargeInset:Boolean,strong:Boolean,tabs:Boolean,tab:Boolean,tabActive:Boolean,accordionList:Boolean,accordionOpposite:Boolean,noHairlines:Boolean,noHairlinesMd:Boolean,noHairlinesIos:Boolean,noHairlinesAurora:Boolean},Xu.colorProps),created:function(){Gu.bindMethods(this,["onTabShow","onTabHide"])},mounted:function(){var e=this,t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(t){t.on("tabShow",e.onTabShow),t.on("tabHide",e.onTabHide)})))},beforeDestroy:function(){this.$refs.el&&this.$f7&&(this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide),delete this.eventTargetEl)},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.inset,i=t.xsmallInset,o=t.smallInset,a=t.mediumInset,s=t.largeInset,l=t.xlargeInset,c=t.strong,u=t.accordionList,d=t.accordionOpposite,h=t.tabs,f=t.tab,p=t.tabActive,m=t.noHairlines,v=t.noHairlinesIos,g=t.noHairlinesMd,y=t.noHairlinesAurora,b=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"block",{inset:r,"xsmall-inset":i,"small-inset":o,"medium-inset":a,"large-inset":s,"xlarge-inset":l,"block-strong":c,"accordion-list":u,"accordion-opposite":d,tabs:h,tab:f,"tab-active":p,"no-hairlines":m,"no-hairlines-md":g,"no-hairlines-ios":v,"no-hairlines-aurora":y},Xu.colorClasses(t)),ref:"el",attrs:{id:b}},[this.$slots.default])},methods:{onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tabShow tab:show",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tabHide tab:hide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},kd={name:"f7-icon",props:Object.assign({id:[String,Number],material:String,f7:String,icon:String,ios:String,aurora:String,md:String,tooltip:String,tooltipTrigger:String,size:[String,Number]},Xu.colorProps),data:function(){var e=this;td(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.size;return"number"!=typeof i&&parseFloat(i)!==1*i||(i="".concat(i,"px")),e("i",{ref:"el",style:Gu.extend({fontSize:i,width:i,height:i},r),class:this.classes,attrs:{id:n}},[this.iconTextComputed,this.$slots.default])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.tooltip,i=n.tooltipTrigger;r&&e.$f7ready((function(n){e.f7Tooltip=n.tooltip.create({targetEl:t,text:r,trigger:i})}))}},beforeDestroy:function(){this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},computed:{iconTextComputed:function(){var e=this.props,t=e.material,n=e.f7,r=e.md,i=e.ios,o=e.aurora,a=this.state._theme,s=t||n;return r&&a&&a.md&&(r.indexOf("material:")>=0||r.indexOf("f7:")>=0)?s=r.split(":")[1]:i&&a&&a.ios&&(i.indexOf("material:")>=0||i.indexOf("f7:")>=0)?s=i.split(":")[1]:o&&a&&a.aurora&&(o.indexOf("material:")>=0||o.indexOf("f7:")>=0)&&(s=o.split(":")[1]),s},classes:function(){var e,t={icon:!0},n=this.props,r=this.state._theme,i=n.material,o=n.f7,a=n.icon,s=n.md,l=n.ios,c=n.aurora,u=n.className;if(r&&r.ios?e=l:r&&r.md?e=s:r&&r.aurora&&(e=c),e){var d=e.split(":"),h=d[0],f=d[1];"material"!==h&&"f7"!==h||(t["material-icons"]="material"===h,t["f7-icons"]="f7"===h),"icon"===h&&(t[f]=!0)}else t={icon:!0,"material-icons":i,"f7-icons":o},a&&(t[a]=!0);return Gu.classNames(u,t,Xu.colorClasses(n))},props:function(){return td(this)}},methods:{setState:function(e,t){fd(this,e,t)}}},Sd=function(e){if(!e)return e;var t="style class domProps slot key ref attrs on props".split(" ");return Object.keys(e).forEach((function(n){if("className"===n)return e.class=e.className,void delete e.className;if("dangerouslySetInnerHTML"===n)return e.domProps||(e.domProps={}),e.domProps.innerHTML=e[n],e.domProps.innerHTML&&e.domProps.innerHTML.__html&&(e.domProps.innerHTML=e.domProps.innerHTML.__html),void delete e.dangerouslySetInnerHTML;if(n.match(/^on?([A-Z])/)){e.on||(e.on={});var r=n.replace(/(^on?)([A-Z])/,(function(e,t,n){return n.toLowerCase()}));return e.on[r]=e[n],void delete e[n]}t.indexOf(n)>=0||(e.attrs||(e.attrs={}),e.attrs[n]||(e.attrs[n]=e[n],delete e[n]))})),e},Ed={name:"f7-button",props:Object.assign({id:[String,Number],text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,type:String,href:{type:[String,Boolean],default:"#"},target:String,round:Boolean,roundMd:Boolean,roundIos:Boolean,roundAurora:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,fillAurora:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,largeAurora:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,smallAurora:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,raisedAurora:Boolean,outline:Boolean,outlineMd:Boolean,outlineIos:Boolean,outlineAurora:Boolean,active:Boolean,disabled:Boolean,tooltip:String,tooltipTrigger:String},Xu.colorProps,{},Xu.linkIconProps,{},Xu.linkRouterProps,{},Xu.linkActionsProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.text,o=r.icon,a=r.iconMaterial,s=r.iconF7,l=r.iconMd,c=r.iconIos,u=r.iconAurora,d=r.iconColor,h=r.iconSize,f=r.id,p=r.style,m=r.type;return i&&(t=n("span",[i])),(o||a||s||l||c||u)&&(e=n(kd,{attrs:{material:a,f7:s,icon:o,md:l,ios:c,aurora:u,color:d,size:h}})),n("submit"===m||"reset"===m||"button"===m?"button":"a",Sd(Object.assign({ref:"el",style:p,class:this.classes},this.attrs,{attrs:{id:f}})),[e,t,this.$slots.default])},computed:{attrs:function(){var e=this.props,t=e.href,n=e.target,r=e.tabLink,i=e.type,o=t;return!0===t&&(o="#"),!1===t&&(o=void 0),Gu.extend({href:o,target:n,type:i,"data-tab":Gu.isStringProp(r)&&r||void 0},Xu.linkRouterAttrs(e),Xu.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive,r=e.round,i=e.roundIos,o=e.roundAurora,a=e.roundMd,s=e.fill,l=e.fillIos,c=e.fillAurora,u=e.fillMd,d=e.large,h=e.largeIos,f=e.largeAurora,p=e.largeMd,m=e.small,v=e.smallIos,g=e.smallAurora,y=e.smallMd,b=e.raised,_=e.raisedIos,w=e.raisedAurora,k=e.raisedMd,S=e.active,E=e.outline,C=e.outlineIos,T=e.outlineAurora,x=e.outlineMd,M=e.disabled,$=e.className;return Gu.classNames($,"button",{"tab-link":t||""===t,"tab-link-active":n,"button-round":r,"button-round-ios":i,"button-round-aurora":o,"button-round-md":a,"button-fill":s,"button-fill-ios":l,"button-fill-aurora":c,"button-fill-md":u,"button-large":d,"button-large-ios":h,"button-large-aurora":f,"button-large-md":p,"button-small":m,"button-small-ios":v,"button-small-aurora":g,"button-small-md":y,"button-raised":b,"button-raised-ios":_,"button-raised-aurora":w,"button-raised-md":k,"button-active":S,"button-outline":E,"button-outline-ios":C,"button-outline-aurora":T,"button-outline-md":x,disabled:M},Xu.colorClasses(e),Xu.linkRouterClasses(e),Xu.linkActionsClasses(e))},props:function(){return td(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.el;t.addEventListener("click",e.onClick);var n=e.props,r=n.tooltip,i=n.tooltipTrigger,o=n.routeProps;o&&(t.f7RouteProps=o),r&&e.$f7ready((function(n){e.f7Tooltip=n.tooltip.create({targetEl:t,text:r,trigger:i})}))},updated:function(){var e=this.$refs.el,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.el;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)}},Cd={name:"f7-card-content",props:Object.assign({id:[String,Number],padding:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,o=t.padding;return e("div",{style:i,class:Gu.classNames(r,"card-content",{"card-content-padding":o},Xu.colorClasses(t)),attrs:{id:n}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Td={name:"f7-card-footer",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"card-footer",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},xd={name:"f7-card-header",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"card-header",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Md={name:"f7-card",props:Object.assign({id:[String,Number],title:[String,Number],content:[String,Number],footer:[String,Number],outline:Boolean,expandable:Boolean,expandableAnimateWidth:Boolean,expandableOpened:Boolean,animate:{type:Boolean,default:void 0},hideNavbarOnOpen:{type:Boolean,default:void 0},hideToolbarOnOpen:{type:Boolean,default:void 0},hideStatusbarOnOpen:{type:Boolean,default:void 0},scrollableEl:{type:String,default:void 0},swipeToClose:{type:Boolean,default:void 0},closeByBackdropClick:{type:Boolean,default:void 0},backdrop:{type:Boolean,default:void 0},backdropEl:{type:String,default:void 0},noShadow:Boolean,noBorder:Boolean,padding:{type:Boolean,default:!0}},Xu.colorProps),watch:{"props.expandableOpened":function(e){e?this.open():this.close()}},created:function(){Gu.bindMethods(this,"onBeforeOpen onOpen onOpened onClose onClosed".split(" "))},mounted:function(){var e=this;if(e.props.expandable){var t=e.$refs.el;t&&(e.eventTargetEl=t,e.$f7ready((function(n){n.on("cardBeforeOpen",e.onBeforeOpen),n.on("cardOpen",e.onOpen),n.on("cardOpened",e.onOpened),n.on("cardClose",e.onClose),n.on("cardClosed",e.onClosed),e.props.expandable&&e.props.expandableOpened&&e.$f7.card.open(t,!1)})))}},beforeDestroy:function(){this.props.expandable&&(this.$refs.el&&this.$f7&&(this.$f7.off("cardBeforeOpen",this.onBeforeOpen),this.$f7.off("cardOpen",this.onOpen),this.$f7.off("cardOpened",this.onOpened),this.$f7.off("cardClose",this.onClose),this.$f7.off("cardClosed",this.onClosed),this.eventTargetEl=null,delete this.eventTargetEl))},render:function(){var e,t,n,r=this.$createElement,i=this.props,o=i.className,a=i.id,s=i.style,l=i.title,c=i.content,u=i.footer,d=i.padding,h=i.outline,f=i.expandable,p=i.expandableAnimateWidth,m=i.animate,v=i.hideNavbarOnOpen,g=i.hideToolbarOnOpen,y=i.hideStatusbarOnOpen,b=i.scrollableEl,_=i.swipeToClose,w=i.closeByBackdropClick,k=i.backdrop,S=i.backdropEl,E=i.noShadow,C=i.noBorder,T=Gu.classNames(o,"card",{"card-outline":h,"card-expandable":f,"card-expandable-animate-width":p,"no-shadow":E,"no-border":C},Xu.colorClasses(i));return(l||this.$slots&&this.$slots.header)&&(e=r(xd,[l,this.$slots.header])),(c||this.$slots&&this.$slots.content)&&(t=r(Cd,{attrs:{padding:d}},[c,this.$slots.content])),(u||this.$slots&&this.$slots.footer)&&(n=r(Td,[u,this.$slots.footer])),r("div",{style:s,class:T,ref:"el",attrs:{id:a,"data-animate":void 0===m?m:m.toString(),"data-hide-navbar-on-open":void 0===v?v:v.toString(),"data-hide-toolbar-on-open":void 0===g?g:g.toString(),"data-hide-statusbar-on-open":void 0===y?y:y.toString(),"data-scrollable-el":b,"data-swipe-to-close":void 0===_?_:_.toString(),"data-close-by-backdrop-click":void 0===w?w:w.toString(),"data-backdrop":void 0===k?k:k.toString(),"data-backdrop-el":S}},[e,t,n,this.$slots.default])},methods:{open:function(){this.$refs.el&&this.$f7.card.open(this.$refs.el)},close:function(){this.$refs.el&&this.$f7.card.close(this.$refs.el)},onBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardBeforeOpen card:beforeopen",e,t)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("cardOpen card:open",e)},onOpened:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardOpened card:opened",e,t)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("cardClose card:close",e)},onClosed:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("cardClosed card:closed",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},$d={name:"f7-checkbox",props:Object.assign({id:[String,Number],checked:Boolean,indeterminate:Boolean,name:[Number,String],value:[Number,String,Boolean],disabled:Boolean,readonly:Boolean,defaultChecked:Boolean},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.name,i=n.value,o=n.disabled,a=n.readonly,s=n.checked,l=(n.defaultChecked,n.id),c=n.style;e=t("input",{ref:"inputEl",domProps:{value:i,disabled:o,readonly:a,checked:s},on:{change:this.onChange},attrs:{type:"checkbox",name:r}});var u=t("i",{class:"icon-checkbox"});return t("label",{style:c,class:this.classes,attrs:{id:l}},[e,u,this.$slots.default])},computed:{classes:function(){var e=this.props,t=e.className,n=e.disabled;return Gu.classNames(t,{checkbox:!0,disabled:n},Xu.colorClasses(e))},props:function(){return td(this)}},created:function(){Gu.bindMethods(this,["onChange"])},mounted:function(){var e=this.$refs.inputEl;this.props.indeterminate&&e&&(e.indeterminate=!0)},updated:function(){var e=this.$refs.inputEl,t=this.props.indeterminate;e&&(e.indeterminate=t)},methods:{onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},Pd={name:"f7-chip",props:Object.assign({id:[String,Number],media:String,text:[String,Number],deleteable:Boolean,mediaBgColor:String,mediaTextColor:String,outline:Boolean},Xu.colorProps,{},Xu.linkIconProps),render:function(){var e,t,n,r,i=this.$createElement,o=this.props,a=o.media,s=o.text,l=o.deleteable,c=o.className,u=o.id,d=o.style,h=o.mediaTextColor,f=o.mediaBgColor,p=o.outline,m=o.icon,v=o.iconMaterial,g=o.iconF7,y=o.iconMd,b=o.iconIos,_=o.iconAurora,w=o.iconColor,k=o.iconSize;((m||v||g||y||b||_)&&(e=i(kd,{attrs:{material:v,f7:g,icon:m,md:y,ios:b,aurora:_,color:w,size:k}})),a||e||this.$slots&&this.$slots.media)&&(t=i("div",{class:Gu.classNames("chip-media",h&&"text-color-".concat(h),f&&"bg-color-".concat(f))},[e,a,this.$slots.media]));return(s||this.$slots&&this.$slots.text)&&(n=i("div",{class:"chip-label"},[s,this.$slots.text])),l&&(r=i("a",{ref:"deleteEl",class:"chip-delete"})),i("div",{ref:"el",style:d,class:Gu.classNames(c,"chip",{"chip-outline":p},Xu.colorClasses(o)),attrs:{id:u}},[t,n,r])},created:function(){Gu.bindMethods(this,["onClick","onDeleteClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.addEventListener("click",this.onDeleteClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.removeEventListener("click",this.onDeleteClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onDeleteClick:function(e){this.dispatchEvent("delete",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}};function Od(e){return(Od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ld(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Od(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Od(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Od(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ad={name:"f7-col",props:Object.assign({id:[String,Number],tag:{type:String,default:"div"},width:{type:[Number,String],default:"auto"},xsmall:{type:[Number,String]},small:{type:[Number,String]},medium:{type:[Number,String]},large:{type:[Number,String]},xlarge:{type:[Number,String]},resizable:Boolean,resizableFixed:Boolean,resizableAbsolute:Boolean,resizableHandler:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.id,o=n.style,a=n.tag,s=n.width,l=n.xsmall,c=n.small,u=n.medium,d=n.large,h=n.xlarge,f=n.resizable,p=n.resizableFixed,m=n.resizableAbsolute,v=n.resizableHandler;return t(a,{style:o,class:Gu.classNames(r,(Ld(e={col:"auto"===s},"col-".concat(s),"auto"!==s),Ld(e,"xsmall-".concat(l),l),Ld(e,"small-".concat(c),c),Ld(e,"medium-".concat(u),u),Ld(e,"large-".concat(d),d),Ld(e,"xlarge-".concat(h),h),Ld(e,"resizable",f),Ld(e,"resizable-fixed",p),Ld(e,"resizable-absolute",m),e),Xu.colorClasses(n)),ref:"el",attrs:{id:i}},[this.$slots.default,f&&v&&t("span",{class:"resize-handler"})])},created:function(){Gu.bindMethods(this,["onClick","onResize"])},mounted:function(){var e=this;e.eventTargetEl=e.$refs.el,e.eventTargetEl.addEventListener("click",e.onClick),e.$f7ready((function(t){t.on("gridResize",e.onResize)}))},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("gridResize",this.onResize),delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onResize:function(e){e===this.eventTargetEl&&this.dispatchEvent("grid:resize gridResize")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Id={name:"f7-fab-backdrop",props:{id:[String,Number]},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"fab-backdrop"),attrs:{id:r}})},computed:{props:function(){return td(this)}}},Dd={name:"f7-fab-button",props:Object.assign({id:[String,Number],fabClose:Boolean,label:String,target:String,tooltip:String,tooltipTrigger:String},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.id,o=n.style,a=n.fabClose,s=n.label,l=n.target,c=Gu.classNames(r,{"fab-close":a,"fab-label-button":s},Xu.colorClasses(n));return s&&(e=t("span",{class:"fab-label"},[s])),t("a",{ref:"el",style:o,class:c,attrs:{id:i,target:l}},[this.$slots.default,e])},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){var e=this;e.$refs.el.addEventListener("click",e.onClick);var t=e.props,n=t.tooltip,r=t.tooltipTrigger;n&&e.$f7ready((function(t){e.f7Tooltip=t.tooltip.create({targetEl:e.$refs.el,text:n,trigger:r})}))},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},computed:{props:function(){return td(this)}}},Nd={name:"f7-fab-buttons",props:Object.assign({id:[String,Number],position:{type:String,default:"top"}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.position;return e("div",{style:i,class:Gu.classNames(n,"fab-buttons","fab-buttons-".concat(o),Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Rd={name:"f7-fab",props:Object.assign({id:[String,Number],morphTo:String,href:[Boolean,String],target:String,text:String,position:{type:String,default:"right-bottom"},tooltip:String,tooltipTrigger:String},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.morphTo,a=t.href,s=t.position,l=t.text,c=t.target,u=a;!0===u&&(u="#"),!1===u&&(u=void 0);var d,h,f=[],p=[],m=this.$slots,v=m.link,g=m.default,y=m.root,b=m.text;if(g)for(var _=0;_<g.length;_+=1){var w=g[_],k=void 0;w.tag&&w.tag.indexOf("fab-buttons")>=0&&(k=!0),k?p.push(w):f.push(w)}return(l||b&&b.length)&&(d=e("div",{class:"fab-text"},[l||b])),(f.length||v&&v.length)&&(h=e("a",{ref:"linkEl",key:"f7-fab-link",attrs:{target:c,href:u}},[f,d,v])),e("div",{style:i,class:Gu.classNames(n,"fab","fab-".concat(s),{"fab-morph":o,"fab-extended":void 0!==d},Xu.colorClasses(t)),attrs:{id:r,"data-morph-to":o}},[h,p,y])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){var e=this;e.$refs.linkEl&&e.$refs.linkEl.addEventListener("click",e.onClick);var t=e.props,n=t.tooltip,r=t.tooltipTrigger;n&&e.$f7ready((function(t){e.f7Tooltip=t.tooltip.create({targetEl:e.$refs.el,text:n,trigger:r})}))},beforeDestroy:function(){this.$refs.linkEl&&this.$refs.linkEl.removeEventListener("click",this.onClick),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},jd={props:{id:[String,Number],type:{type:String,default:"circle"},value:{type:[Number,String],default:0},size:{type:[Number,String],default:200},bgColor:{type:String,default:"transparent"},borderBgColor:{type:String,default:"#eeeeee"},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:10},valueText:[Number,String],valueTextColor:{type:String,default:"#000000"},valueFontSize:{type:[Number,String],default:31},valueFontWeight:{type:[Number,String],default:500},labelText:String,labelTextColor:{type:String,default:"#888888"},labelFontSize:{type:[Number,String],default:14},labelFontWeight:{type:[Number,String],default:400}},name:"f7-gauge",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.type,a=t.value,s=t.size,l=t.bgColor,c=t.borderBgColor,u=t.borderColor,d=t.borderWidth,h=t.valueText,f=t.valueTextColor,p=t.valueFontSize,m=t.valueFontWeight,v=t.labelText,g=t.labelTextColor,y=t.labelFontSize,b=t.labelFontWeight,_=Gu.classNames(n,"gauge"),w="semicircle"===o,k=s/2-d/2,S=2*Math.PI*k,E=Math.max(Math.min(a,1),0);return e("div",{style:i,class:_,attrs:{id:r}},[e("svg",{class:"gauge-svg",attrs:{width:"".concat(s,"px"),height:"".concat(w?s/2:s,"px"),viewBox:"0 0 ".concat(s," ").concat(w?s/2:s)}},[w&&e("path",{class:"gauge-back-semi",attrs:{d:"M".concat(s-d/2,",").concat(s/2," a1,1 0 0,0 -").concat(s-d,",0"),stroke:c,"stroke-width":d,fill:l||"none"}}),w&&e("path",{class:"gauge-front-semi",attrs:{d:"M".concat(s-d/2,",").concat(s/2," a1,1 0 0,0 -").concat(s-d,",0"),stroke:u,"stroke-width":d,"stroke-dasharray":S/2,"stroke-dashoffset":S/2*(1+E),fill:c?"none":l||"none"}}),!w&&c&&e("circle",{class:"gauge-back-circle",attrs:{stroke:c,"stroke-width":d,fill:l||"none",cx:s/2,cy:s/2,r:k}}),!w&&e("circle",{class:"gauge-front-circle",attrs:{transform:"rotate(-90 ".concat(s/2," ").concat(s/2,")"),stroke:u,"stroke-width":d,"stroke-dasharray":S,"stroke-dashoffset":S*(1-E),fill:c?"none":l||"none",cx:s/2,cy:s/2,r:k}}),h&&e("text",{class:"gauge-value-text",attrs:{x:"50%",y:w?"100%":"50%","font-weight":m,"font-size":p,fill:f,dy:w?v?-y-15:-5:0,"text-anchor":"middle","dominant-baseline":w?null:"middle"}},[h]),v&&e("text",{class:"gauge-label-text",attrs:{x:"50%",y:w?"100%":"50%","font-weight":b,"font-size":y,fill:g,dy:w?-5:h?p/2+10:0,"text-anchor":"middle","dominant-baseline":w?null:"middle"}},[v])])])},computed:{props:function(){return td(this)}}},Bd={name:"f7-toggle",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},checked:Boolean,defaultChecked:Boolean,disabled:Boolean,readonly:Boolean,name:String,value:[String,Number,Array]},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.className,i=n.disabled,o=n.id,a=n.style,s=n.name,l=n.readonly,c=n.checked,u=(n.defaultChecked,n.value),d=Gu.classNames("toggle",r,{disabled:i},Xu.colorClasses(n));return e=t("input",{ref:"inputEl",domProps:{disabled:i,readOnly:l,value:u,checked:c},on:{change:this.onChange},attrs:{type:"checkbox",name:s}}),t("label",{ref:"el",style:a,class:d,attrs:{id:o}},[e,t("span",{class:"toggle-icon"})])},watch:{"props.checked":function(e){this.f7Toggle&&(this.f7Toggle.checked=e)}},created:function(){Gu.bindMethods(this,["onChange"])},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){e.f7Toggle=t.toggle.create({el:e.$refs.el,on:{change:function(t){e.dispatchEvent("toggle:change toggleChange",t.checked)}}})}))},beforeDestroy:function(){this.f7Toggle&&this.f7Toggle.destroy&&this.f7Toggle.$el&&this.f7Toggle.destroy()},methods:{toggle:function(){this.f7Toggle&&this.f7Toggle.toggle&&this.f7Toggle.toggle()},onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Yd={name:"f7-range",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},value:{type:[Number,Array,String],default:0},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},label:{type:Boolean,default:!1},dual:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},verticalReversed:{type:Boolean,default:!1},draggableBar:{type:Boolean,default:!0},formatLabel:Function,scale:{type:Boolean,default:!1},scaleSteps:{type:Number,default:5},scaleSubSteps:{type:Number,default:0},formatScaleLabel:Function,limitKnobPosition:{type:Boolean,default:void 0},name:String,input:Boolean,inputId:String,disabled:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=this.props,r=n.id,i=n.disabled,o=n.className,a=n.style,s=n.input,l=n.inputId,c=n.name,u=n.vertical,d=n.verticalReversed;return e("div",{ref:"el",style:a,class:Gu.classNames(o,"range-slider",{"range-slider-horizontal":!u,"range-slider-vertical":u,"range-slider-vertical-reversed":u&&d,disabled:i},Xu.colorClasses(t)),attrs:{id:r}},[s&&e("input",{attrs:{type:"range",name:c,id:l}}),this.$slots.default])},watch:{"props.value":function(e){this.f7Range&&this.f7Range.setValue(e)}},mounted:function(){var e=this;e.$f7ready((function(t){if(e.props.init){var n=e.props,r=n.value,i=n.min,o=n.max,a=n.step,s=n.label,l=n.dual,c=n.draggableBar,u=n.vertical,d=n.verticalReversed,h=n.formatLabel,f=n.scale,p=n.scaleSteps,m=n.scaleSubSteps,v=n.formatScaleLabel,g=n.limitKnobPosition;e.f7Range=t.range.create(Gu.noUndefinedProps({el:e.$refs.el,value:r,min:i,max:o,step:a,label:s,dual:l,draggableBar:c,vertical:u,verticalReversed:d,formatLabel:h,scale:f,scaleSteps:p,scaleSubSteps:m,formatScaleLabel:v,limitKnobPosition:g,on:{change:function(t,n){e.dispatchEvent("range:change rangeChange",n)},changed:function(t,n){e.dispatchEvent("range:changed rangeChanged",n)}}}))}}))},beforeDestroy:function(){this.f7Range&&this.f7Range.destroy&&this.f7Range.destroy()},methods:{setValue:function(e){this.f7Range&&this.f7Range.setValue&&this.f7Range.setValue(e)},getValue:function(){if(this.f7Range&&this.f7Range.getValue)return this.f7Range.getValue()},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Fd={name:"f7-text-editor",props:Object.assign({id:[String,Number]},Xu.colorProps,{mode:{type:String,default:void 0},value:{type:String,default:void 0},buttons:Array,customButtons:Object,dividers:{type:Boolean,default:void 0},imageUrlText:{type:String,default:void 0},linkUrlText:{type:String,default:void 0},placeholder:{type:String,default:void 0},clearFormattingOnPaste:{type:Boolean,default:void 0},resizable:{type:Boolean,default:!1}}),created:function(){Gu.bindMethods(this,"onChange onInput onFocus onBlur onButtonClick onKeyboardOpen onKeyboardClose onPopoverOpen onPopoverClose".split(" "))},mounted:function(){var e=this,t=this.props,n=t.mode,r=t.value,i=t.buttons,o=t.customButtons,a=t.dividers,s=t.imageUrlText,l=t.linkUrlText,c=t.placeholder,u=t.clearFormattingOnPaste,d=Gu.noUndefinedProps({el:this.$refs.el,mode:n,value:r,buttons:i,customButtons:o,dividers:a,imageUrlText:s,linkUrlText:l,placeholder:c,clearFormattingOnPaste:u,on:{change:this.onChange,input:this.onInput,focus:this.onFocus,blur:this.onBlur,buttonClick:this.onButtonClick,keyboardOpen:this.onKeyboardOpen,keyboardClose:this.onKeyboardClose,popoverOpen:this.onPopoverOpen,popoverClose:this.onPopoverClose}});this.$f7ready((function(t){e.f7TextEditor=t.textEditor.create(d)}))},beforeDestroy:function(){this.f7TextEditor&&this.f7TextEditor.destroy&&this.f7TextEditor.destroy()},watch:{"props.value":function(){this.f7TextEditor&&this.f7TextEditor.setValue(this.props.value)}},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.resizable;return e("div",{ref:"el",style:i,class:Gu.classNames(n,"text-editor",o&&"text-editor-resizable",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots["root-start"],e("div",{class:"text-editor-content",attrs:{contenteditable:!0}},[this.$slots.default]),this.$slots["root-end"],this.$slots.root])},methods:{onChange:function(e,t){this.dispatchEvent("texteditor:change textEditorChange",t)},onInput:function(){this.dispatchEvent("texteditor:change textEditorChange")},onFocus:function(){this.dispatchEvent("texteditor:focus textEditorFocus")},onBlur:function(){this.dispatchEvent("texteditor:blur textEditorBlur")},onButtonClick:function(e,t){this.dispatchEvent("texteditor:buttonclick textEditorButtonClick",t)},onKeyboardOpen:function(){this.dispatchEvent("texteditor:keyboardopen textEditorKeyboardOpen")},onKeyboardClose:function(){this.dispatchEvent("texteditor:keyboardclose textEditorKeyboardClose")},onPopoverOpen:function(){this.dispatchEvent("texteditor:popoveropen textEditorPopoverOpen")},onPopoverClose:function(){this.dispatchEvent("texteditor:popoverclose textEditorPopoverClose")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Hd={name:"f7-input",props:Object.assign({type:String,name:String,value:[String,Number,Array,Date,Object],defaultValue:[String,Number,Array],placeholder:String,id:[String,Number],inputId:[String,Number],size:[String,Number],accept:[String,Number],autocomplete:[String],autocorrect:[String],autocapitalize:[String],spellcheck:[String],autofocus:Boolean,autosave:String,checked:Boolean,disabled:Boolean,max:[String,Number],min:[String,Number],step:[String,Number],maxlength:[String,Number],minlength:[String,Number],multiple:Boolean,readonly:Boolean,required:Boolean,inputStyle:[String,Object],pattern:String,validate:[Boolean,String],validateOnBlur:Boolean,tabindex:[String,Number],resizable:Boolean,clearButton:Boolean,noFormStoreData:Boolean,noStoreData:Boolean,ignoreStoreData:Boolean,errorMessage:String,errorMessageForce:Boolean,info:String,outline:Boolean,wrap:{type:Boolean,default:!0},dropdown:{type:[String,Boolean],default:"auto"},calendarParams:Object,colorPickerParams:Object,textEditorParams:Object},Xu.colorProps),data:function(){td(this);return{state:{inputFocused:!1,inputInvalid:!1}}},render:function(){var e,t=this.$createElement,n=this,r=n.props,i=r.type,o=r.name,a=r.value,s=r.defaultValue,l=r.placeholder,c=r.id,u=r.inputId,d=r.size,h=r.accept,f=r.autocomplete,p=r.autocorrect,m=r.autocapitalize,v=r.spellcheck,g=r.autofocus,y=r.autosave,b=r.checked,_=r.disabled,w=r.max,k=r.min,S=r.step,E=r.maxlength,C=r.minlength,T=r.multiple,x=r.readonly,M=r.required,$=r.inputStyle,P=r.pattern,O=r.validate,L=r.validateOnBlur,A=r.tabindex,I=r.resizable,D=r.clearButton,N=r.errorMessage,R=r.errorMessageForce,j=r.info,B=r.wrap,Y=r.dropdown,F=r.style,H=r.className,U=r.noStoreData,z=r.noFormStoreData,V=r.ignoreStoreData,q=r.outline,W=r.textEditorParams,G=n.domValue(),K=n.inputHasValue(),J=function(e,c){var D="file"!==i&&"datepicker"!==i&&"colorpicker"!==i,j="input"===e,Y=i;"datepicker"!==Y&&"colorpicker"!==Y||(Y="text");var F,q=Gu.classNames(!B&&H,{resizable:"textarea"===Y&&I,"no-store-data":z||U||V,"input-invalid":N&&R||n.state.inputInvalid,"input-with-value":K,"input-focused":n.state.inputFocused});D&&(F=void 0!==a?a:G);var W={};return"datepicker"!==i&&"colorpicker"!==i&&("value"in r&&(W.value=F),"defaultValue"in r&&(W.defaultValue=s)),t(e,{ref:"inputEl",style:$,class:q,domProps:Object.assign({checked:b,disabled:_,readOnly:x,multiple:T,required:M},W),on:{focus:n.onFocus,blur:n.onBlur,input:n.onInput,change:n.onChange},attrs:{name:o,type:j?Y:void 0,placeholder:l,id:u,size:d,accept:h,autocomplete:f,autocorrect:p,autocapitalize:m,spellcheck:v,autofocus:g,autoSave:y,max:w,maxlength:E,min:k,minlength:C,step:S,pattern:P,validate:"string"==typeof O&&O.length?O:void 0,"data-validate":!0===O||""===O||!0===L||""===L||void 0,"data-validate-on-blur":!0===L||""===L||void 0,tabindex:A,"data-error-message":R?void 0:N}},[c])},X=n.$slots,Q=X.default,Z=X.info;if(e="select"===i||"textarea"===i||"file"===i?"select"===i?J("select",Q):J("file"===i?"input":"textarea"):Q&&Q.length>0||!i?Q:"toggle"===i?t(Bd,{on:{change:n.onChange},attrs:{checked:b,readonly:x,name:o,value:a,disabled:_,id:u}}):"range"===i?t(Yd,{on:{rangeChange:n.onChange},attrs:{value:a,disabled:_,min:k,max:w,step:S,name:o,id:u,input:!0}}):"texteditor"===i?t(Fd,Sd(Object.assign({},W,{on:{textEditorFocus:n.onFocus,textEditorBlur:n.onBlur,textEditorInput:n.onInput,textEditorChange:n.onChange},attrs:{value:a,resizable:I,placeholder:l}}))):J("input"),B){var ee=Gu.classNames(H,"input",{"input-outline":q,"input-dropdown":"auto"===Y?"select"===i:Y},Xu.colorClasses(r));return t("div",{class:ee,style:F,attrs:{id:c}},[e,N&&R&&t("div",{class:"input-error-message"},[N]),D&&t("span",{class:"input-clear-button"}),(j||Z&&Z.length)&&t("div",{class:"input-info"},[j,this.$slots.info])])}return e},watch:{"props.value":function(){var e=this.props.type;"range"!==e&&"toggle"!==e&&this.$f7&&(this.updateInputOnDidUpdate=!0,this.f7Calendar&&this.f7Calendar.setValue(this.props.value),this.f7ColorPicker&&this.f7ColorPicker.setValue(this.props.value))}},created:function(){Gu.bindMethods(this,"onFocus onBlur onInput onChange onTextareaResize onInputNotEmpty onInputEmpty onInputClear".split(" "))},mounted:function(){var e=this;e.$f7ready((function(t){var n=e.props,r=n.validate,i=n.validateOnBlur,o=n.resizable,a=n.type,s=n.clearButton,l=n.value,c=n.defaultValue,u=n.calendarParams,d=n.colorPickerParams;if("range"!==a&&"toggle"!==a){var h=e.$refs.inputEl;h&&(h.addEventListener("input:notempty",e.onInputNotEmpty,!1),"textarea"===a&&o&&h.addEventListener("textarea:resize",e.onTextareaResize,!1),s&&(h.addEventListener("input:empty",e.onInputEmpty,!1),h.addEventListener("input:clear",e.onInputClear,!1)),"datepicker"===a&&(e.f7Calendar=t.calendar.create(Object.assign({inputEl:h,value:l,on:{change:function(t,n){e.dispatchEvent("calendar:change calendarChange",n)}}},u||{}))),"colorpicker"===a&&(e.f7ColorPicker=t.colorPicker.create(Object.assign({inputEl:h,value:l,on:{change:function(t,n){e.dispatchEvent("colorpicker:change colorPickerChange",n)}}},d||{}))),t.input.checkEmptyState(h),i||""===i||!r&&""!==r||!(null!=l&&""!==l||null!=c&&""!==c)||setTimeout((function(){e.validateInput(h)}),0),o&&t.input.resizeTextarea(h))}}))},updated:function(){var e=this.props,t=e.validate,n=e.validateOnBlur,r=e.resizable,i=this.$f7;if(i&&this.updateInputOnDidUpdate){var o=this.$refs.inputEl;if(!o)return;this.updateInputOnDidUpdate=!1,i.input.checkEmptyState(o),t&&!n&&this.validateInput(o),r&&i.input.resizeTextarea(o)}},beforeDestroy:function(){var e=this.props,t=e.type,n=e.resizable,r=e.clearButton;if("range"!==t&&"toggle"!==t){var i=this.$refs.inputEl;i&&(i.removeEventListener("input:notempty",this.onInputNotEmpty,!1),"textarea"===t&&n&&i.removeEventListener("textarea:resize",this.onTextareaResize,!1),r&&(i.removeEventListener("input:empty",this.onInputEmpty,!1),i.removeEventListener("input:clear",this.onInputClear,!1)),this.f7Calendar&&this.f7Calendar.destroy&&this.f7Calendar.destroy(),this.f7ColorPicker&&this.f7ColorPicker.destroy&&this.f7ColorPicker.destroy(),delete this.f7Calendar,delete this.f7ColorPicker)}},methods:{domValue:function(){var e=this.$refs.inputEl;if(e)return e.value},inputHasValue:function(){var e=this.props,t=e.value;if("datepicker"===e.type&&Array.isArray(t)&&0===t.length)return!1;var n=this.domValue();return void 0===t?n||0===n:t||0===t},validateInput:function(e){if(this.$f7&&e){var t=e.validity;t&&(t.valid?!1!==this.state.inputInvalid&&this.setState({inputInvalid:!1}):!0!==this.state.inputInvalid&&this.setState({inputInvalid:!0}))}},onTextareaResize:function(e){this.dispatchEvent("textarea:resize textareaResize",e)},onInputNotEmpty:function(e){this.dispatchEvent("input:notempty inputNotEmpty",e)},onInputEmpty:function(e){this.dispatchEvent("input:empty inputEmpty",e)},onInputClear:function(e){this.dispatchEvent("input:clear inputClear",e)},onInput:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.dispatchEvent.apply(e,["input"].concat(o)),!r&&""!==r&&(n||""===n)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl)},onFocus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["focus"].concat(t)),this.setState({inputFocused:!0})},onBlur:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.dispatchEvent.apply(e,["blur"].concat(o)),(n||""===n||r||""===r)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl),e.setState({inputFocused:!1})},onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["change"].concat(t)),"texteditor"===this.props.type&&this.dispatchEvent("texteditor:change textEditorChange",t[1])},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},Ud={name:"f7-link",props:Object.assign({id:[String,Number],noLinkClass:Boolean,text:String,tabLink:[Boolean,String],tabLinkActive:Boolean,tabbarLabel:Boolean,iconOnly:Boolean,badge:[String,Number],badgeColor:[String],iconBadge:[String,Number],href:{type:[String,Boolean],default:"#"},target:String,tooltip:String,tooltipTrigger:String,smartSelect:Boolean,smartSelectParams:Object},Xu.colorProps,{},Xu.linkIconProps,{},Xu.linkRouterProps,{},Xu.linkActionsProps),data:function(){return{state:{isTabbarLabel:td(this).tabbarLabel}}},render:function(){var e,t,n,r,i=this.$createElement,o=this.props,a=o.text,s=o.badge,l=o.badgeColor,c=o.iconOnly,u=o.iconBadge,d=o.icon,h=o.iconColor,f=o.iconSize,p=o.iconMaterial,m=o.iconF7,v=o.iconMd,g=o.iconIos,y=o.iconAurora,b=o.id,_=o.style,w=this.$slots.default;return a&&(s&&(n=i(gd,{attrs:{color:l}},[s])),t=i("span",{class:this.state.isTabbarLabel?"tabbar-label":""},[a,n])),(d||p||m||v||g||y)&&(u&&(r=i(gd,{attrs:{color:l}},[u])),e=i(kd,{attrs:{material:p,f7:m,icon:d,md:v,ios:g,aurora:y,color:h,size:f}},[r])),c||!a&&w&&0===w.length||!a&&!w?this.iconOnlyComputed=!0:this.iconOnlyComputed=!1,i("a",Sd(Object.assign({ref:"el",style:_,class:this.classes},this.attrs,{attrs:{id:b}})),[e,t,w])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.el;t.addEventListener("click",e.onClick);var n=e.props,r=n.tabbarLabel,i=n.tabLink,o=n.tooltip,a=n.tooltipTrigger,s=n.smartSelect,l=n.smartSelectParams,c=n.routeProps,u=!1;(r||(i||""===i)&&e.$$(t).parents(".tabbar-labels").length)&&(u=!0),e.setState({isTabbarLabel:u}),c&&(t.f7RouteProps=c),e.$f7ready((function(n){if(s){var r=Gu.extend({el:t},l||{});e.f7SmartSelect=n.smartSelect.create(r)}o&&(e.f7Tooltip=n.tooltip.create({targetEl:t,text:o,trigger:a}))}))},updated:function(){var e=this.$refs.el,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.el;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7SmartSelect&&this.f7SmartSelect.destroy&&this.f7SmartSelect.destroy(),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},computed:{attrs:function(){var e=this.props,t=e.href,n=e.target,r=e.tabLink,i=t;return!0===t&&(i="#"),!1===t&&(i=void 0),Gu.extend({href:i,target:n,"data-tab":Gu.isStringProp(r)&&r||void 0},Xu.linkRouterAttrs(e),Xu.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive,r=e.noLinkClass,i=e.smartSelect,o=e.className;return Gu.classNames(o,{link:!(r||this.state.isTabbarLabel),"icon-only":this.iconOnlyComputed,"tab-link":t||""===t,"tab-link-active":n,"smart-select":i},Xu.colorClasses(e),Xu.linkRouterClasses(e),Xu.linkActionsClasses(e))},props:function(){return td(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}}},zd={name:"f7-list-button",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],tabLink:[Boolean,String],tabLinkActive:Boolean,link:[Boolean,String],href:[Boolean,String],target:String,tooltip:String,tooltipTrigger:String},Xu.colorProps,{},Xu.linkRouterProps,{},Xu.linkActionsProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.title,a=t.text;return e("li",{style:i,class:n,attrs:{id:r}},[e("a",Sd(Object.assign({class:this.classes},this.attrs,{ref:"linkEl"})),[this.$slots.default||[o||a]])])},computed:{attrs:function(){var e=this.props,t=e.link,n=e.href,r=e.target,i=e.tabLink;return Gu.extend({href:"boolean"==typeof t&&"boolean"==typeof n?"#":t||n,target:r,"data-tab":Gu.isStringProp(i)&&i},Xu.linkRouterAttrs(e),Xu.linkActionsAttrs(e))},classes:function(){var e=this.props,t=e.tabLink,n=e.tabLinkActive;return Gu.classNames({"list-button":!0,"tab-link":t||""===t,"tab-link-active":n},Xu.colorClasses(e),Xu.linkRouterClasses(e),Xu.linkActionsClasses(e))},props:function(){return td(this)}},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)}},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){var e=this,t=e.$refs.linkEl,n=e.props,r=n.routeProps,i=n.tooltip,o=n.tooltipTrigger;r&&(t.f7RouteProps=r),t.addEventListener("click",e.onClick),e.$f7ready((function(n){i&&(e.f7Tooltip=n.tooltip.create({targetEl:t,text:i,trigger:o}))}))},updated:function(){var e=this.$refs.linkEl,t=this.props.routeProps;t&&(e.f7RouteProps=t)},beforeDestroy:function(){var e=this.$refs.linkEl;e.removeEventListener("click",this.onClick),delete e.f7RouteProps,this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},Vd={name:"f7-list-group",props:Object.assign({id:[String,Number],mediaList:Boolean,sortable:Boolean,sortableOpposite:Boolean,sortableTapHold:Boolean,sortableMoveElements:{type:Boolean,default:void 0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.mediaList,a=t.sortable,s=t.sortableOpposite,l=t.sortableTapHold,c=t.sortableMoveElements;return e("div",{style:i,class:Gu.classNames(n,"list-group",{"media-list":o,sortable:a,"sortable-tap-hold":l,"sortable-opposite":s},Xu.colorClasses(t)),attrs:{id:r,"data-sortable-move-elements":void 0!==c?c.toString():void 0}},[e("ul",[this.$slots.default])])},computed:{props:function(){return td(this)}}},qd={name:"f7-list-index",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},listEl:[String,Object],indexes:{type:[String,Array],default:"auto"},scrollList:{type:Boolean,default:!0},label:{type:Boolean,default:!1},iosItemHeight:{type:Number,default:14},mdItemHeight:{type:Number,default:14},auroraItemHeight:{type:Number,default:14}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:Gu.classNames(n,"list-index",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},beforeDestroy:function(){this.props.init&&this.f7ListIndex&&this.f7ListIndex.destroy&&this.f7ListIndex.destroy()},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n=e.$refs.el,r=e.props,i=r.listEl,o=r.indexes,a=r.iosItemHeight,s=r.mdItemHeight,l=r.auroraItemHeight,c=r.scrollList,u=r.label;e.f7ListIndex=t.listIndex.create({el:n,listEl:i,indexes:o,iosItemHeight:a,mdItemHeight:s,auroraItemHeight:l,scrollList:c,label:u,on:{select:function(t,n,r){e.dispatchEvent("listindex:select listIndexSelect",n,r)}}})}))},watch:{"props.indexes":function(){this.f7ListIndex&&(this.f7ListIndex.params.indexes=this.props.indexes,this.update())}},methods:{update:function(){this.f7ListIndex&&this.f7ListIndex.update()},scrollListToIndex:function(e){this.f7ListIndex&&this.f7ListIndex.scrollListToIndex(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Wd={name:"f7-list-input",props:Object.assign({id:[String,Number],sortable:{type:Boolean,default:void 0},media:String,dropdown:{type:[String,Boolean],default:"auto"},wrap:{type:Boolean,default:!0},input:{type:Boolean,default:!0},type:{type:String,default:"text"},name:String,value:[String,Number,Array,Date,Object],defaultValue:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean,placeholder:String,inputId:[String,Number],size:[String,Number],accept:[String,Number],autocomplete:[String],autocorrect:[String],autocapitalize:[String],spellcheck:[String],autofocus:Boolean,autosave:String,max:[String,Number],min:[String,Number],step:[String,Number],maxlength:[String,Number],minlength:[String,Number],multiple:Boolean,inputStyle:[String,Object],pattern:String,validate:[Boolean,String],validateOnBlur:Boolean,tabindex:[String,Number],resizable:Boolean,clearButton:Boolean,noFormStoreData:Boolean,noStoreData:Boolean,ignoreStoreData:Boolean,errorMessage:String,errorMessageForce:Boolean,info:String,outline:Boolean,label:[String,Number],inlineLabel:Boolean,floatingLabel:Boolean,calendarParams:Object,colorPickerParams:Object,textEditorParams:Object},Xu.colorProps),data:function(){return{state:{isSortable:td(this).sortable,inputFocused:!1,inputInvalid:!1}}},render:function(){var e,t=this.$createElement,n=this,r=n.state,i=r.inputFocused,o=r.inputInvalid,a=n.props,s=a.id,l=a.style,c=a.className,u=a.sortable,d=a.media,h=a.dropdown,f=a.input,p=a.wrap,m=a.type,v=a.name,g=a.value,y=a.defaultValue,b=a.readonly,_=a.required,w=a.disabled,k=a.placeholder,S=a.inputId,E=a.size,C=a.accept,T=a.autocomplete,x=a.autocorrect,M=a.autocapitalize,$=a.spellcheck,P=a.autofocus,O=a.autosave,L=a.max,A=a.min,I=a.step,D=a.maxlength,N=a.minlength,R=a.multiple,j=a.inputStyle,B=a.pattern,Y=a.validate,F=a.validateOnBlur,H=a.tabindex,U=a.resizable,z=a.clearButton,V=a.noFormStoreData,q=a.noStoreData,W=a.ignoreStoreData,G=a.errorMessage,K=a.errorMessageForce,J=a.info,X=a.outline,Q=a.label,Z=a.inlineLabel,ee=a.floatingLabel,te=a.textEditorParams,ne=n.domValue(),re=n.inputHasValue(),ie=u||n.state.isSortable,oe=function(e,r){var s="file"!==m&&"datepicker"!==m&&"colorpicker"!==m,l="input"===e,c=m;"datepicker"!==c&&"colorpicker"!==c||(c="text");var u,d=Gu.classNames({resizable:"textarea"===c&&U,"no-store-data":V||q||W,"input-invalid":G&&K||o,"input-with-value":re,"input-focused":i});s&&(u=void 0!==g?g:ne);var h={};return"datepicker"!==m&&"colorpicker"!==m&&("value"in a&&(h.value=u),"defaultValue"in a&&(h.defaultValue=y)),t(e,{ref:"inputEl",style:j,class:d,domProps:Object.assign({disabled:w,readOnly:b,multiple:R,required:_},h),on:{focus:n.onFocus,blur:n.onBlur,input:n.onInput,change:n.onChange},attrs:{name:v,type:l?c:void 0,placeholder:k,id:S,size:E,accept:C,autocomplete:T,autocorrect:x,autocapitalize:M,spellcheck:$,autofocus:P,autoSave:O,max:L,maxlength:D,min:A,minlength:N,step:I,pattern:B,validate:"string"==typeof Y&&Y.length?Y:void 0,"data-validate":!0===Y||""===Y||!0===F||""===F||void 0,"data-validate-on-blur":!0===F||""===F||void 0,tabindex:H,"data-error-message":K?void 0:G}},[r])};f&&(e="select"===m||"textarea"===m||"file"===m?"select"===m?oe("select",n.$slots.default):oe("file"===m?"input":"textarea"):"texteditor"===m?t(Fd,Sd(Object.assign({},te,{on:{textEditorFocus:n.onFocus,textEditorBlur:n.onBlur,textEditorInput:n.onInput,textEditorChange:n.onChange},attrs:{value:g,resizable:U,placeholder:k}}))):oe("input"));var ae=!!G||n.$slots["error-message"]&&n.$slots["error-message"].length,se=t("div",{ref:"itemContentEl",class:Gu.classNames("item-content item-input",!p&&c,!p&&{disabled:w},!p&&Xu.colorClasses(a),{"inline-label":Z,"item-input-outline":X,"item-input-focused":i,"item-input-with-info":!!J||n.$slots.info&&n.$slots.info.length,"item-input-with-value":re,"item-input-with-error-message":ae&&K||o,"item-input-invalid":ae&&K||o})},[this.$slots["content-start"],(d||n.$slots.media)&&t("div",{class:"item-media"},[d&&t("img",{attrs:{src:d}}),this.$slots.media]),t("div",{class:"item-inner"},[this.$slots["inner-start"],(Q||n.$slots.label)&&t("div",{class:Gu.classNames("item-title item-label",{"item-floating-label":ee})},[Q,this.$slots.label]),t("div",{class:Gu.classNames("item-input-wrap",{"input-dropdown":"auto"===h?"select"===m:h})},[e,this.$slots.input,ae&&K&&t("div",{class:"item-input-error-message"},[G,this.$slots["error-message"]]),z&&t("span",{class:"input-clear-button"}),(J||n.$slots.info)&&t("div",{class:"item-input-info"},[J,this.$slots.info])]),this.$slots.inner,this.$slots["inner-end"]]),this.$slots.content,this.$slots["content-end"]]);return p?t("li",{ref:"el",style:l,class:Gu.classNames(c,{disabled:w},Xu.colorClasses(a)),attrs:{id:s}},[this.$slots["root-start"],se,ie&&t("div",{class:"sortable-handler"}),this.$slots.root,this.$slots["root-end"]]):se},watch:{"props.value":function(){this.$f7&&(this.updateInputOnDidUpdate=!0,this.f7Calendar&&this.f7Calendar.setValue(this.props.value),this.f7ColorPicker&&this.f7ColorPicker.setValue(this.props.value))}},created:function(){Gu.bindMethods(this,"onChange onInput onFocus onBlur onTextareaResize onInputNotEmpty onInputEmpty onInputClear".split(" "))},mounted:function(){var e=this,t=e.$refs.el,n=e.$refs.itemContentEl;(t||n)&&(e.$f7ready((function(t){var n=e.props,r=n.validate,i=n.validateOnBlur,o=n.resizable,a=n.value,s=n.defaultValue,l=n.type,c=n.calendarParams,u=n.colorPickerParams,d=e.$refs.inputEl;d&&(d.addEventListener("input:notempty",e.onInputNotEmpty,!1),d.addEventListener("textarea:resize",e.onTextareaResize,!1),d.addEventListener("input:empty",e.onInputEmpty,!1),d.addEventListener("input:clear",e.onInputClear,!1),"datepicker"===l&&(e.f7Calendar=t.calendar.create(Object.assign({inputEl:d,value:a,on:{change:function(t,n){e.dispatchEvent("calendar:change calendarChange",n)}}},c||{}))),"colorpicker"===l&&(e.f7ColorPicker=t.colorPicker.create(Object.assign({inputEl:d,value:a,on:{change:function(t,n){e.dispatchEvent("colorpicker:change colorPickerChange",n)}}},u||{}))),i||""===i||!r&&""!==r||!(null!=a&&""!==a||null!=s&&""!==s)||setTimeout((function(){e.validateInput(d)}),0),"textarea"===l&&o&&t.input.resizeTextarea(d))})),e.$listEl=e.$$(t||n).parents(".list, .list-group").eq(0),e.$listEl.length&&e.setState({isSortable:e.$listEl.hasClass("sortable")}))},updated:function(){var e=this.$listEl;if(e&&(!e||0!==e.length)){var t=e.hasClass("sortable");t!==this.state.isSortable&&this.setState({isSortable:t});var n=this.props,r=n.validate,i=n.validateOnBlur,o=n.resizable,a=n.type,s=this.$f7;if(s&&this.updateInputOnDidUpdate){var l=this.$refs.inputEl;if(!l)return;this.updateInputOnDidUpdate=!1,r&&!i&&this.validateInput(l),"textarea"===a&&o&&s.input.resizeTextarea(l)}}},beforeDestroy:function(){var e=this.$refs.inputEl;e&&(e.removeEventListener("input:notempty",this.onInputNotEmpty,!1),e.removeEventListener("textarea:resize",this.onTextareaResize,!1),e.removeEventListener("input:empty",this.onInputEmpty,!1),e.removeEventListener("input:clear",this.onInputClear,!1),this.f7Calendar&&this.f7Calendar.destroy&&this.f7Calendar.destroy(),this.f7ColorPicker&&this.f7ColorPicker.destroy&&this.f7ColorPicker.destroy(),delete this.f7Calendar,delete this.f7ColorPicker)},methods:{domValue:function(){var e=this.$refs.inputEl;if(e)return e.value},inputHasValue:function(){var e=this.props,t=e.value;if("datepicker"===e.type&&Array.isArray(t)&&0===t.length)return!1;var n=this.domValue();return void 0===t?n||0===n:t||0===t},validateInput:function(e){if(this.$f7&&e){var t=e.validity;t&&(t.valid?!1!==this.state.inputInvalid&&this.setState({inputInvalid:!1}):!0!==this.state.inputInvalid&&this.setState({inputInvalid:!0}))}},onTextareaResize:function(e){this.dispatchEvent("textarea:resize textareaResize",e)},onInputNotEmpty:function(e){this.dispatchEvent("input:notempty inputNotEmpty",e)},onInputEmpty:function(e){this.dispatchEvent("input:empty inputEmpty",e)},onInputClear:function(e){this.dispatchEvent("input:clear inputClear",e)},onInput:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.dispatchEvent.apply(e,["input"].concat(o)),!r&&""!==r&&(n||""===n)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl)},onFocus:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["focus"].concat(t)),this.setState({inputFocused:!0})},onBlur:function(){for(var e=this,t=e.props,n=t.validate,r=t.validateOnBlur,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];e.dispatchEvent.apply(e,["blur"].concat(o)),(n||""===n||r||""===r)&&e.$refs&&e.$refs.inputEl&&e.validateInput(e.$refs.inputEl),e.setState({inputFocused:!1})},onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["change"].concat(t)),"texteditor"===this.props.type&&this.dispatchEvent("texteditor:change textEditorChange",t[0])},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},Gd={name:"f7-list-item-cell",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"item-cell",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}};function Kd(e){return function(e){if(Array.isArray(e))return Jd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Jd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jd(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Xd={name:"f7-list-item-content",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],after:[String,Number],badge:[String,Number],badgeColor:String,mediaList:Boolean,mediaItem:Boolean,checkbox:Boolean,checked:Boolean,defaultChecked:Boolean,indeterminate:Boolean,radio:Boolean,name:String,value:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean},Xu.colorProps),render:function(){var e,t,n,r,i,o,a,s,l,c,u,d,h,f=this.$createElement,p=this.props,m=p.id,v=p.className,g=p.style,y=p.radio,b=p.checkbox,_=p.value,w=p.name,k=p.checked,S=(p.defaultChecked,p.readonly),E=p.disabled,C=p.required,T=p.media,x=p.header,M=p.footer,$=p.title,P=p.subtitle,O=p.text,L=p.after,A=p.badge,I=p.mediaList,D=p.mediaItem,N=p.badgeColor,R=[],j=[],B=[],Y=[],F=[],H=[],U=[],z=[],V=[],q=[],W=[],G=[],K=[],J=[],X=[],Q=[],Z=[],ee=this.$slots.default,te=[];ee&&ee.length&&ee.forEach((function(e){Array.isArray(e)?te.push.apply(te,Kd(e)):te.push(e)}));var ne,re=this.$slots["content-start"];(re&&re.length&&R.push.apply(R,Kd(re)),te.forEach((function(e){var t;void 0!==e&&((t=e.data?e.data.slot:void 0)&&"inner"!==t||F.push(e),"content-start"===t&&R.push(e),"content"===t&&j.push(e),"content-end"===t&&B.push(e),"after-start"===t&&U.push(e),"after"===t&&z.push(e),"after-end"===t&&V.push(e),"media"===t&&q.push(e),"inner-start"===t&&Y.push(e),"inner-end"===t&&H.push(e),"before-title"===t&&W.push(e),"title"===t&&G.push(e),"after-title"===t&&K.push(e),"subtitle"===t&&J.push(e),"text"===t&&X.push(e),"header"===t&&Q.push(e),"footer"===t&&Z.push(e))})),(y||b)&&(c=f("input",{ref:"inputEl",domProps:{checked:k,readonly:S,disabled:E,required:C,value:_},on:{change:this.onChange},attrs:{name:w,type:y?"radio":"checkbox"}}),u=f("i",{class:"icon icon-".concat(y?"radio":"checkbox")})),T||q.length)&&(T&&(ne=f("img",{attrs:{src:T}})),l=f("div",{class:"item-media"},[ne,q]));var ie=D||I;return(x||Q.length)&&(d=f("div",{class:"item-header"},[x,Q])),(M||Z.length)&&(h=f("div",{class:"item-footer"},[M,Z])),($||G.length||!ie&&d||!ie&&h)&&(e=f("div",{class:"item-title"},[!ie&&d,$,G,!ie&&h])),(P||J.length)&&(a=f("div",{class:"item-subtitle"},[P,J])),(O||X.length)&&(s=f("div",{class:"item-text"},[O,X])),(L||A||z.length)&&(L&&(n=f("span",[L])),A&&(r=f(gd,{attrs:{color:N}},[A])),t=f("div",{class:"item-after"},[U,n,r,z,V])),ie?(o=f("div",{class:"item-title-row"},[W,e,K,t]),i=f("div",{ref:"innerEl",class:"item-inner"},[Y,d,o,a,s,F,h,H])):i=f("div",{ref:"innerEl",class:"item-inner"},[Y,W,e,K,t,F,H]),f(b||y?"label":"div",{ref:"el",style:g,class:Gu.classNames(v,"item-content",{"item-checkbox":b,"item-radio":y},Xu.colorClasses(p)),attrs:{id:m}},[R,c,u,l,i,j,B])},created:function(){Gu.bindMethods(this,"onClick onChange".split(" "))},mounted:function(){var e=this.$refs,t=e.el,n=e.inputEl;this.props.indeterminate&&n&&(n.indeterminate=!0),t.addEventListener("click",this.onClick)},updated:function(){var e=this.$refs.inputEl,t=this.props.indeterminate;e&&(e.indeterminate=t)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Qd={name:"f7-list-item-row",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"item-row",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Zd={name:"f7-list-item",props:Object.assign({id:[String,Number],title:[String,Number],text:[String,Number],media:String,subtitle:[String,Number],header:[String,Number],footer:[String,Number],tooltip:String,tooltipTrigger:String,link:[Boolean,String],target:String,after:[String,Number],badge:[String,Number],badgeColor:String,mediaItem:Boolean,mediaList:Boolean,divider:Boolean,groupTitle:Boolean,swipeout:Boolean,swipeoutOpened:Boolean,sortable:{type:Boolean,default:void 0},sortableOpposite:{type:Boolean,default:void 0},accordionItem:Boolean,accordionItemOpened:Boolean,smartSelect:Boolean,smartSelectParams:Object,noChevron:Boolean,chevronCenter:Boolean,checkbox:Boolean,radio:Boolean,checked:Boolean,defaultChecked:Boolean,indeterminate:Boolean,name:String,value:[String,Number,Array],readonly:Boolean,required:Boolean,disabled:Boolean,virtualListIndex:Number},Xu.colorProps,{},Xu.linkRouterProps,{},Xu.linkActionsProps),data:function(){var e=td(this);return{state:{isMedia:e.mediaItem||e.mediaList,isSortable:e.sortable,isSortableOpposite:e.sortableOpposite,isSimple:!1}}},render:function(){var e,t,n=this.$createElement,r=this.props,i=r.id,o=r.style,a=r.className,s=r.title,l=r.text,c=r.media,u=r.subtitle,d=r.header,h=r.footer,f=r.link,p=r.href,m=r.target,v=r.after,g=r.badge,y=r.badgeColor,b=r.mediaItem,_=r.mediaList,w=r.divider,k=r.groupTitle,S=r.swipeout,E=r.accordionItem,C=r.accordionItemOpened,T=r.smartSelect,x=r.checkbox,M=r.radio,$=r.checked,P=r.defaultChecked,O=r.indeterminate,L=r.name,A=r.value,I=r.readonly,D=r.required,N=r.disabled,R=r.sortable,j=r.sortableOpposite,B=r.noChevron,Y=r.chevronCenter,F=r.virtualListIndex,H=b||_||this.state.isMedia,U=R||this.state.isSortable,z=U&&(j||this.state.isSortableOpposite),V=this.state.isSimple;if(!V&&(t=n(Xd,{on:!(f||p||E||T)?{click:this.onClick,change:this.onChange}:void 0,attrs:{title:s,text:l,media:c,subtitle:u,after:v,header:d,footer:h,badge:g,badgeColor:y,mediaList:H,accordionItem:E,checkbox:x,checked:$,defaultChecked:P,indeterminate:O,radio:M,name:L,value:A,readonly:I,required:D,disabled:N}},[this.$slots["content-start"],this.$slots.content,this.$slots["content-end"],this.$slots.media,this.$slots["inner-start"],this.$slots.inner,this.$slots["inner-end"],this.$slots["after-start"],this.$slots.after,this.$slots["after-end"],this.$slots.header,this.$slots.footer,this.$slots["before-title"],this.$slots.title,this.$slots["after-title"],this.$slots.subtitle,this.$slots.text,S||E?null:this.$slots.default,U&&!1!==R&&z&&n("div",{class:"sortable-handler",slot:"content-start"})]),f||p||E||T)){var q=Object.assign({href:!0===f?"":f||p,target:m},Xu.linkRouterAttrs(r),{},Xu.linkActionsAttrs(r)),W=Gu.classNames({"item-link":!0,"smart-select":T},Xu.linkRouterClasses(r),Xu.linkActionsClasses(r));e=n("a",Sd(Object.assign({ref:"linkEl",class:W},q)),[t])}var G=Gu.classNames(a,{"item-divider":w,"list-group-title":k,"media-item":H,swipeout:S,"accordion-item":E,"accordion-item-opened":C,disabled:N&&!(M||x),"no-chevron":B,"chevron-center":Y,"disallow-sorting":!1===R},Xu.colorClasses(r));if(w||k)return n("li",{ref:"el",style:o,class:G,attrs:{id:i,"data-virtual-list-index":F}},[n("span",[this.$slots.default||[s]])]);if(V)return n("li",{ref:"el",style:o,class:G,attrs:{id:i,"data-virtual-list-index":F}},[s,this.$slots.default]);var K=f||p||T||E?e:t;return n("li",{ref:"el",style:o,class:G,attrs:{id:i,"data-virtual-list-index":F}},[this.$slots["root-start"],S?n("div",{class:"swipeout-content"},[K]):K,U&&!1!==R&&!z&&n("div",{class:"sortable-handler"}),(S||E)&&this.$slots.default,this.$slots.root,this.$slots["root-end"]])},watch:{"props.tooltip":function(e){if(!e&&this.f7Tooltip)return this.f7Tooltip.destroy(),this.f7Tooltip=null,void delete this.f7Tooltip;e&&!this.f7Tooltip&&this.$f7?this.f7Tooltip=this.$f7.tooltip.create({targetEl:this.$refs.el,text:e,trigger:this.props.tooltipTrigger}):e&&this.f7Tooltip&&this.f7Tooltip.setText(e)},"props.swipeoutOpened":function(e){if(this.props.swipeout){var t=this.$refs.el;e?this.$f7.swipeout.open(t):this.$f7.swipeout.close(t)}}},created:function(){Gu.bindMethods(this,["onClick","onChange","onSwipeoutOpen","onSwipeoutOpened","onSwipeoutClose","onSwipeoutClosed","onSwipeoutDelete","onSwipeoutDeleted","onSwipeoutOverswipeEnter","onSwipeoutOverswipeExit","onSwipeout","onAccBeforeOpen","onAccOpen","onAccOpened","onAccBeforeClose","onAccClose","onAccClosed"])},mounted:function(){var e=this,t=e.$refs,n=t.el,r=t.linkEl;if(n){var i=e.props,o=i.link,a=i.href,s=i.smartSelect,l=i.swipeout,c=i.swipeoutOpened,u=i.accordionItem,d=i.smartSelectParams,h=i.routeProps,f=i.tooltip,p=i.tooltipTrigger;!!(o||a||u||s)&&r&&r.addEventListener("click",e.onClick),r&&h&&(r.f7RouteProps=h),e.$listEl=e.$$(n).parents(".list, .list-group").eq(0),e.$listEl.length&&e.setState({isMedia:e.$listEl.hasClass("media-list"),isSimple:e.$listEl.hasClass("simple-list"),isSortable:e.$listEl.hasClass("sortable"),isSortableOpposite:e.$listEl.hasClass("sortable-opposite")}),e.$f7ready((function(t){if(e.eventTargetEl=n,l&&(t.on("swipeoutOpen",e.onSwipeoutOpen),t.on("swipeoutOpened",e.onSwipeoutOpened),t.on("swipeoutClose",e.onSwipeoutClose),t.on("swipeoutClosed",e.onSwipeoutClosed),t.on("swipeoutDelete",e.onSwipeoutDelete),t.on("swipeoutDeleted",e.onSwipeoutDeleted),t.on("swipeoutOverswipeEnter",e.onSwipeoutOverswipeEnter),t.on("swipeoutOverswipeExit",e.onSwipeoutOverswipeExit),t.on("swipeout",e.onSwipeout)),u&&(t.on("accordionBeforeOpen",e.onAccBeforeOpen),t.on("accordionOpen",e.onAccOpen),t.on("accordionOpened",e.onAccOpened),t.on("accordionBeforeClose",e.onAccBeforeClose),t.on("accordionClose",e.onAccClose),t.on("accordionClosed",e.onAccClosed)),s){var r=Gu.extend({el:n.querySelector("a.smart-select")},d||{});e.f7SmartSelect=t.smartSelect.create(r)}c&&t.swipeout.open(n),f&&(e.f7Tooltip=t.tooltip.create({targetEl:n,text:f,trigger:p}))}))}},updated:function(){var e=this.$listEl,t=this.$refs.linkEl,n=this.props.routeProps;if(t&&n&&(t.f7RouteProps=n),e&&(!e||0!==e.length)){var r=e.hasClass("media-list"),i=e.hasClass("simple-list"),o=e.hasClass("sortable"),a=e.hasClass("sortable-opposite");r!==this.state.isMedia&&this.setState({isMedia:r}),i!==this.state.isSimple&&this.setState({isSimple:i}),o!==this.state.isSortable&&(this.setState({isSortable:o}),a!==this.state.isSortableOpposite&&this.setState({isSortableOpposite:a}))}},beforeDestroy:function(){var e=this.$refs.linkEl,t=this.props,n=t.link,r=t.href,i=t.smartSelect,o=t.swipeout,a=t.accordionItem;if(e&&(!(n||r||a||i)||e.removeEventListener("click",this.onClick),delete e.f7RouteProps),this.$f7){var s=this.$f7;o&&(s.off("swipeoutOpen",this.onSwipeoutOpen),s.off("swipeoutOpened",this.onSwipeoutOpened),s.off("swipeoutClose",this.onSwipeoutClose),s.off("swipeoutClosed",this.onSwipeoutClosed),s.off("swipeoutDelete",this.onSwipeoutDelete),s.off("swipeoutDeleted",this.onSwipeoutDeleted),s.off("swipeoutOverswipeEnter",this.onSwipeoutOverswipeEnter),s.off("swipeoutOverswipeExit",this.onSwipeoutOverswipeExit),s.off("swipeout",this.onSwipeout)),a&&(s.off("accordionBeforeOpen",this.onAccBeforeOpen),s.off("accordionOpen",this.onAccOpen),s.off("accordionOpened",this.onAccOpened),s.off("accordionBeforeClose",this.onAccBeforeClose),s.off("accordionClose",this.onAccClose),s.off("accordionClosed",this.onAccClosed))}i&&this.f7SmartSelect&&this.f7SmartSelect.destroy(),this.f7Tooltip&&this.f7Tooltip.destroy&&(this.f7Tooltip.destroy(),this.f7Tooltip=null,delete this.f7Tooltip),this.eventTargetEl=null,delete this.eventTargetEl},methods:{onClick:function(e){"input"!==e.target.tagName.toLowerCase()&&this.dispatchEvent("click",e)},onSwipeoutOverswipeEnter:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:overswipeenter swipeoutOverswipeEnter")},onSwipeoutOverswipeExit:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:overswipeexit swipeoutOverswipeExit")},onSwipeoutDeleted:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:deleted swipeoutDeleted")},onSwipeoutDelete:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:delete swipeoutDelete")},onSwipeoutClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:close swipeoutClose")},onSwipeoutClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:closed swipeoutClosed")},onSwipeoutOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:open swipeoutOpen")},onSwipeoutOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("swipeout:opened swipeoutOpened")},onSwipeout:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("swipeout",t)},onAccBeforeClose:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordion:beforeclose accordionBeforeClose",t)},onAccClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:close accordionClose")},onAccClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:closed accordionClosed")},onAccBeforeOpen:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("accordion:beforeopen accordionBeforeOpen",t)},onAccOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:open accordionOpen")},onAccOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("accordion:opened accordionOpened")},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},eh={name:"f7-list",props:Object.assign({id:[String,Number],inset:Boolean,xsmallInset:Boolean,smallInset:Boolean,mediumInset:Boolean,largeInset:Boolean,xlargeInset:Boolean,mediaList:Boolean,sortable:Boolean,sortableTapHold:Boolean,sortableEnabled:Boolean,sortableMoveElements:{type:Boolean,default:void 0},sortableOpposite:Boolean,accordionList:Boolean,accordionOpposite:Boolean,contactsList:Boolean,simpleList:Boolean,linksList:Boolean,noHairlines:Boolean,noHairlinesBetween:Boolean,noHairlinesMd:Boolean,noHairlinesBetweenMd:Boolean,noHairlinesIos:Boolean,noHairlinesBetweenIos:Boolean,noHairlinesAurora:Boolean,noHairlinesBetweenAurora:Boolean,noChevron:Boolean,chevronCenter:Boolean,tab:Boolean,tabActive:Boolean,form:Boolean,formStoreData:Boolean,inlineLabels:Boolean,virtualList:Boolean,virtualListParams:Object},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.form,o=t.sortableMoveElements,a=this.$slots,s=a.list,l=a.default,c=[],u=[],d=s||[],h=Gu.flattenArray(l),f=!1;h.forEach((function(e){var t;void 0!==e&&((t=e.tag)&&!("li"===t||"F7ListItem"===t||"F7ListButton"===t||"F7ListInput"===t||t.indexOf("list-item")>=0||t.indexOf("list-button")>=0||t.indexOf("list-input")>=0||t.indexOf("f7-list-item")>=0||t.indexOf("f7-list-button")>=0||t.indexOf("f7-list-input")>=0)?f?u.push(e):c.push(e):t&&(f=!0,d.push(e)))}));var p=i?"form":"div";return d.length>0?e(p,{ref:"el",style:r,class:this.classes,attrs:{id:n,"data-sortable-move-elements":void 0!==o?o.toString():void 0}},[this.$slots["before-list"],c,e("ul",[d]),this.$slots["after-list"],u]):e(p,{ref:"el",style:r,class:this.classes,attrs:{id:n,"data-sortable-move-elements":void 0!==o?o.toString():void 0}},[this.$slots["before-list"],c,this.$slots["after-list"],u])},computed:{classes:function(){var e=this.props,t=e.inset,n=e.xsmallInset,r=e.smallInset,i=e.mediumInset,o=e.largeInset,a=e.xlargeInset,s=e.mediaList,l=e.simpleList,c=e.linksList,u=e.sortable,d=e.sortableTapHold,h=e.sortableEnabled,f=e.sortableOpposite,p=e.accordionList,m=e.accordionOpposite,v=e.contactsList,g=e.virtualList,y=e.tab,b=e.tabActive,_=e.noHairlines,w=e.noHairlinesIos,k=e.noHairlinesMd,S=e.noHairlinesAurora,E=e.noHairlinesBetween,C=e.noHairlinesBetweenIos,T=e.noHairlinesBetweenMd,x=e.noHairlinesBetweenAurora,M=e.formStoreData,$=e.inlineLabels,P=e.className,O=e.noChevron,L=e.chevronCenter;return Gu.classNames(P,"list",{inset:t,"xsmall-inset":n,"small-inset":r,"medium-inset":i,"large-inset":o,"xlarge-inset":a,"media-list":s,"simple-list":l,"links-list":c,sortable:u,"sortable-tap-hold":d,"sortable-enabled":h,"sortable-opposite":f,"accordion-list":p,"accordion-opposite":m,"contacts-list":v,"virtual-list":g,tab:y,"tab-active":b,"no-hairlines":_,"no-hairlines-md":k,"no-hairlines-ios":w,"no-hairlines-aurora":S,"no-hairlines-between":E,"no-hairlines-between-md":T,"no-hairlines-between-ios":C,"no-hairlines-between-aurora":x,"form-store-data":M,"inline-labels":$,"no-chevron":O,"chevron-center":L},Xu.colorClasses(e))},props:function(){return td(this)}},created:function(){Gu.bindMethods(this,["onSortableEnable","onSortableDisable","onSortableSort","onTabShow","onTabHide","onSubmit"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.virtualList,i=n.virtualListParams,o=n.form;e.$f7ready((function(n){if(e.eventTargetEl=t,n.on("sortableEnable",e.onSortableEnable),n.on("sortableDisable",e.onSortableDisable),n.on("sortableSort",e.onSortableSort),n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide),o&&t.addEventListener("submit",e.onSubmit),r){var a=i||{};(a.renderItem||a.itemTemplate||a.renderExternal)&&(e.f7VirtualList=n.virtualList.create(Gu.extend({el:t,on:{itemBeforeInsert:function(t,n){e.dispatchEvent("virtual:itembeforeinsert virtualItemBeforeInsert",this,t,n)},beforeClear:function(t){e.dispatchEvent("virtual:beforeclear virtualBeforeClear",this,t)},itemsBeforeInsert:function(t){e.dispatchEvent("virtual:itemsbeforeinsert virtualItemsBeforeInsert",this,t)},itemsAfterInsert:function(t){e.dispatchEvent("virtual:itemsafterinsert virtualItemsAfterInsert",this,t)}}},a)))}}))},beforeDestroy:function(){var e=this.$refs.el,t=this.$f7;e&&t&&(t.off("sortableEnable",this.onSortableEnable),t.off("sortableDisable",this.onSortableDisable),t.off("sortableSort",this.onSortableSort),t.off("tabShow",this.onTabShow),t.off("tabHide",this.onTabHide),e.removeEventListener("submit",this.onSubmit),this.eventTargetEl=null,delete this.eventTargetEl,this.virtualList&&this.f7VirtualList&&this.f7VirtualList.destroy&&this.f7VirtualList.destroy())},methods:{onSubmit:function(e){this.dispatchEvent("submit",e)},onSortableEnable:function(e){this.eventTargetEl===e&&this.dispatchEvent("sortable:enable sortableEnable")},onSortableDisable:function(e){this.eventTargetEl===e&&this.dispatchEvent("sortable:disable sortableDisable")},onSortableSort:function(e,t,n){this.eventTargetEl===n&&this.dispatchEvent("sortable:sort sortableSort",t)},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},th={name:"f7-login-screen-title",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"login-screen-title",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},nh={name:"f7-login-screen",props:Object.assign({id:[String,Number],opened:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:Gu.classNames(n,"login-screen",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7LoginScreen&&(e?this.f7LoginScreen.open():this.f7LoginScreen.close())}},created:function(){Gu.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(){e.f7LoginScreen=e.$f7.loginScreen.create({el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}}),e.props.opened&&e.f7LoginScreen.open(!1)}))},beforeDestroy:function(){this.f7LoginScreen&&this.f7LoginScreen.destroy()},methods:{onOpen:function(e){this.dispatchEvent("loginscreen:open loginScreenOpen",e)},onOpened:function(e){this.dispatchEvent("loginscreen:opened loginScreenOpened",e)},onClose:function(e){this.dispatchEvent("loginscreen:close loginScreenClose",e)},onClosed:function(e){this.dispatchEvent("loginscreen:closed loginScreenClosed",e)},open:function(e){if(this.f7LoginScreen)return this.f7LoginScreen.open(e)},close:function(e){if(this.f7LoginScreen)return this.f7LoginScreen.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},rh={name:"f7-menu-dropdown-item",props:Object.assign({id:[String,Number],text:String,link:Boolean,href:String,target:String,divider:Boolean},Xu.colorProps,{},Xu.linkRouterProps,{},Xu.linkActionsProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,o=t.link,a=t.href,s=t.text,l=t.divider,c=t.menuClose,u=o||a||""===a,d=u?"a":"div",h=Gu.classNames({"menu-dropdown-link":u&&!l,"menu-dropdown-item":!u&&!l,"menu-dropdown-divider":l},r,Xu.colorClasses(t),Xu.linkRouterClasses(t),Xu.linkActionsClasses(t),{"menu-close":void 0===c});return e(d,Sd(Object.assign({ref:"el",class:h,style:i},this.attrs,{attrs:{id:n}})),[s,this.$slots.default])},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){var e=this.$refs.el;if(e){e.addEventListener("click",this.onClick);var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},updated:function(){var e=this.$refs.el;if(e){var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},beforeDestroy:function(){var e=this.$refs.el;e&&(e.removeEventListener("click",this.onClick),delete e.f7RouteProps)},computed:{attrs:function(){var e=this.props,t=e.link,n=e.href,r=e.target,i=n;return void 0===i&&t&&(i="#"),Gu.extend({href:i,target:r},Xu.linkRouterAttrs(e),Xu.linkActionsAttrs(e))},props:function(){return td(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},ih={name:"f7-menu-dropdown",props:Object.assign({id:[String,Number],contentHeight:String,position:String,left:Boolean,center:Boolean,right:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style,o=t.contentHeight,a=t.position||"left";return t.left&&(a="left"),t.center&&(a="center"),t.right&&(a="right"),e("div",{class:Gu.classNames("menu-dropdown","menu-dropdown-".concat(a),Xu.colorClasses(t),r),style:i,attrs:{id:n}},[e("div",{class:"menu-dropdown-content",style:{height:o}},[this.$slots.default])])},computed:{props:function(){return td(this)}}},oh={name:"f7-menu-item",props:Object.assign({id:[String,Number],text:String,iconOnly:Boolean,href:String,link:Boolean,target:String,dropdown:Boolean},Xu.colorProps,{},Xu.linkIconProps,{},Xu.linkRouterProps,{},Xu.linkActionsProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.id,o=r.className,a=r.style,s=r.link,l=r.href,c=r.text,u=r.dropdown,d=r.iconOnly,h=r.icon,f=r.iconColor,p=r.iconSize,m=r.iconMaterial,v=r.iconF7,g=r.iconMd,y=r.iconIos,b=r.iconAurora,_=this.$slots;(h||m||v||g||y||b)&&(e=n(kd,{attrs:{material:m,f7:v,icon:h,md:g,ios:y,aurora:b,color:f,size:p}})),t=!!(d||!c&&_.text&&0===_.text.length||!c&&!_.text);var w=s||l||""===l?"a":"div",k=u||""===u,S=Gu.classNames({"menu-item":!0,"menu-item-dropdown":k,"icon-only":t},o,Xu.colorClasses(r),Xu.linkRouterClasses(r),Xu.linkActionsClasses(r));return n(w,Sd(Object.assign({ref:"el",class:S,style:a},this.attrs,{attrs:{id:i}})),[(c||_.text&&_.text.length||e)&&n("div",{class:"menu-item-content"},[c,e,this.$slots.text]),this.$slots.default])},created:function(){Gu.bindMethods(this,["onClick","onOpened","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){e.eventTargetEl=t,t.addEventListener("click",e.onClick);var n=e.props.routeProps;n&&(t.f7RouteProps=n),e.$f7ready((function(t){t.on("menuOpened",e.onOpened),t.on("menuClosed",e.onClosed)}))}},updated:function(){var e=this.$refs.el;if(e){var t=this.props.routeProps;t&&(e.f7RouteProps=t)}},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("menuOpened",this.onOpened),this.$f7.off("menuClosed",this.onOpened),this.eventTargetEl=null,delete e.f7RouteProps,delete this.eventTargetEl)},computed:{attrs:function(){var e=this.props,t=e.href,n=e.link,r=e.target,i=t;return void 0===i&&n&&(i="#"),Gu.extend({href:i,target:r},Xu.linkRouterAttrs(e),Xu.linkActionsAttrs(e))},props:function(){return td(this)}},methods:{onClick:function(e){this.dispatchEvent("click",e)},onOpened:function(e){this.eventTargetEl===e&&this.dispatchEvent("menuOpened menu:opened",e)},onClosed:function(e){this.eventTargetEl===e&&this.dispatchEvent("menuClosed menu:closed",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},ah={name:"f7-menu",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.className,i=t.style;return e("div",{class:Gu.classNames("menu",Xu.colorClasses(t),r),style:i,attrs:{id:n}},[e("div",{class:"menu-inner"},[this.$slots.default])])},computed:{props:function(){return td(this)}}},sh={name:"f7-message",props:Object.assign({id:[String,Number],text:String,name:String,avatar:String,type:{type:String,default:"sent"},image:String,header:String,footer:String,textHeader:String,textFooter:String,first:Boolean,last:Boolean,tail:Boolean,sameName:Boolean,sameHeader:Boolean,sameFooter:Boolean,sameAvatar:Boolean,typing:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.text,r=t.name,i=t.avatar,o=t.image,a=t.header,s=t.footer,l=t.textHeader,c=t.textFooter,u=t.typing,d=t.id,h=t.style,f=this.$slots,p=f.start,m=f.end,v=f.default,g=f["content-start"],y=f["content-end"],b=f.avatar,_=f.name,w=f.header,k=f.footer,S=f.image,E=f.text,C=f["text-header"],T=f["text-footer"],x=f["bubble-start"],M=f["bubble-end"];return e("div",{ref:"el",style:h,class:this.classes,attrs:{id:d}},[p,(i||b)&&e("div",{ref:"avatarEl",class:"message-avatar",style:{backgroundImage:i&&"url(".concat(i,")")}},[b]),e("div",{class:"message-content"},[g,(_||r)&&e("div",{ref:"nameEl",class:"message-name"},[_||r]),(w||a)&&e("div",{ref:"headerEl",class:"message-header"},[w||a]),e("div",{ref:"bubbleEl",class:"message-bubble"},[x,(S||o)&&e("div",{class:"message-image"},[S||e("img",{attrs:{src:o}})]),(C||l)&&e("div",{class:"message-text-header"},[C||l]),(E||n||u)&&e("div",{ref:"textEl",class:"message-text"},[E||n,u&&e("div",{class:"message-typing-indicator"},[e("div"),e("div"),e("div")])]),(T||c)&&e("div",{class:"message-text-footer"},[T||c]),M,v]),(k||s)&&e("div",{ref:"footerEl",class:"message-footer"},[k||s]),y]),m])},computed:{classes:function(){var e=this.props,t=e.type,n=e.typing,r=e.first,i=e.last,o=e.tail,a=e.sameName,s=e.sameHeader,l=e.sameFooter,c=e.sameAvatar,u=e.className;return Gu.classNames(u,"message",{"message-sent":"sent"===t,"message-received":"received"===t,"message-typing":n,"message-first":r,"message-last":i,"message-tail":o,"message-same-name":a,"message-same-header":s,"message-same-footer":l,"message-same-avatar":c},Xu.colorClasses(e))},props:function(){return td(this)}},created:function(){Gu.bindMethods(this,["onClick","onNameClick","onTextClick","onAvatarClick","onHeaderClick","onFooterClick","onBubbleClick"])},mounted:function(){var e=this.$refs,t=e.el,n=e.nameEl,r=e.textEl,i=e.avatarEl,o=e.headerEl,a=e.footerEl,s=e.bubbleEl;t.addEventListener("click",this.onClick),n&&n.addEventListener("click",this.onNameClick),r&&r.addEventListener("click",this.onTextClick),i&&i.addEventListener("click",this.onAvatarClick),o&&o.addEventListener("click",this.onHeaderClick),a&&a.addEventListener("click",this.onFooterClick),s&&s.addEventListener("click",this.onBubbleClick)},beforeDestroy:function(){var e=this.$refs,t=e.el,n=e.nameEl,r=e.textEl,i=e.avatarEl,o=e.headerEl,a=e.footerEl,s=e.bubbleEl;t.removeEventListener("click",this.onClick),n&&n.removeEventListener("click",this.onNameClick),r&&r.removeEventListener("click",this.onTextClick),i&&i.removeEventListener("click",this.onAvatarClick),o&&o.removeEventListener("click",this.onHeaderClick),a&&a.removeEventListener("click",this.onFooterClick),s&&s.removeEventListener("click",this.onBubbleClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onNameClick:function(e){this.dispatchEvent("click:name clickName",e)},onTextClick:function(e){this.dispatchEvent("click:text clickText",e)},onAvatarClick:function(e){this.dispatchEvent("click:avatar clickAvatar",e)},onHeaderClick:function(e){this.dispatchEvent("click:header clickHeader",e)},onFooterClick:function(e){this.dispatchEvent("click:footer clickFooter",e)},onBubbleClick:function(e){this.dispatchEvent("click:bubble clickBubble",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},lh={name:"f7-messagebar-attachment",props:Object.assign({id:[String,Number],image:String,deletable:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.deletable,r=t.image,i=t.className,o=t.id;return e("div",{ref:"el",style:t.style,class:Gu.classNames(i,"messagebar-attachment",Xu.colorClasses(t)),attrs:{id:o}},[r&&e("img",{attrs:{src:r}}),n&&e("span",{ref:"deleteEl",class:"messagebar-attachment-delete"}),this.$slots.default])},created:function(){Gu.bindMethods(this,["onClick","onDeleteClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.addEventListener("click",this.onDeleteClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick),this.$refs.deleteEl&&this.$refs.deleteEl.removeEventListener("click",this.onDeleteClick)},methods:{onClick:function(e){this.dispatchEvent("attachment:click attachmentClick",e)},onDeleteClick:function(e){this.dispatchEvent("attachment:delete attachmentDelete",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},ch={name:"f7-messagebar-attachments",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"messagebar-attachments",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},uh={name:"f7-messagebar-sheet-image",props:Object.assign({id:[String,Number],image:String,checked:Boolean},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.image,i=n.checked,o=n.id,a=n.className,s=n.style,l=Gu.classNames(a,"messagebar-sheet-image","checkbox",Xu.colorClasses(n)),c=Gu.extend({backgroundImage:r&&"url(".concat(r,")")},s||{});return e=t("input",{ref:"inputEl",domProps:{checked:i},on:{change:this.onChange},attrs:{type:"checkbox"}}),t("label",{class:l,style:c,attrs:{id:o}},[e,t("i",{class:"icon icon-checkbox"}),this.$slots.default])},created:function(){Gu.bindMethods(this,["onChange"])},methods:{onChange:function(e){this.props.checked?this.dispatchEvent("checked",e):this.dispatchEvent("unchecked",e),this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},dh={name:"f7-messagebar-sheet-item",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"messagebar-sheet-item",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},hh={name:"f7-messagebar-sheet",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"messagebar-sheet",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},fh={name:"f7-messagebar",props:Object.assign({id:[String,Number],sheetVisible:Boolean,attachmentsVisible:Boolean,top:Boolean,resizable:{type:Boolean,default:!0},bottomOffset:{type:Number,default:0},topOffset:{type:Number,default:0},maxHeight:Number,resizePage:{type:Boolean,default:!0},sendLink:String,value:[String,Number,Array],disabled:Boolean,readonly:Boolean,textareaId:[Number,String],name:String,placeholder:{type:String,default:"Message"},init:{type:Boolean,default:!0}},Xu.colorProps),created:function(){Gu.bindMethods(this,["onChange","onInput","onFocus","onBlur","onClick","onAttachmentDelete","onAttachmentClick,","onResizePage"])},render:function(){var e,t,n=this.$createElement,r=this.props,i=r.placeholder,o=r.disabled,a=r.name,s=r.readonly,l=r.resizable,c=r.value,u=r.sendLink,d=r.id,h=r.style,f=this.$slots,p=f.default,m=f["before-inner"],v=f["after-inner"],g=f["send-link"],y=f["inner-start"],b=f["inner-end"],_=f["before-area"],w=f["after-area"],k=[];p&&p.forEach((function(n){var r;void 0!==n&&((r=n.tag)&&(r.indexOf("messagebar-attachments")>=0||"F7MessagebarAttachments"===r||"f7-messagebar-attachments"===r)?e=n:r&&(r.indexOf("messagebar-sheet")>=0||"F7MessagebarSheet"===r||"f7-messagebar-sheet"===r)?t=n:k.push(n))}));var S={};return"value"in this.props&&(S.value=c),n("div",{ref:"el",style:h,class:this.classes,attrs:{id:d}},[m,n("div",{class:"toolbar-inner"},[y,n("div",{class:"messagebar-area"},[_,e,n(Hd,Sd(Object.assign({ref:"area"},S,{on:{input:this.onInput,change:this.onChange,focus:this.onFocus,blur:this.onBlur},attrs:{type:"textarea",wrap:!1,placeholder:i,disabled:o,name:a,readonly:s,resizable:l}}))),w]),(u&&u.length>0||g)&&n(Ud,{on:{click:this.onClick}},[g||u]),b,k]),v,t])},computed:{classes:function(){var e=this.props,t=e.className,n=e.attachmentsVisible,r=e.sheetVisible;return Gu.classNames(t,"toolbar","messagebar",{"messagebar-attachments-visible":n,"messagebar-sheet-visible":r},Xu.colorClasses(e))},props:function(){return td(this)}},watch:{"props.sheetVisible":function(){this.props.resizable&&this.f7Messagebar&&(this.updateSheetVisible=!0)},"props.attachmentsVisible":function(){this.props.resizable&&this.f7Messagebar&&(this.updateAttachmentsVisible=!0)}},mounted:function(){var e=this,t=e.props,n=t.init,r=t.top,i=t.resizePage,o=t.bottomOffset,a=t.topOffset,s=t.maxHeight;if(n){var l=e.$refs.el;if(l){var c=Gu.noUndefinedProps({el:l,top:r,resizePage:i,bottomOffset:o,topOffset:a,maxHeight:s,on:{attachmentDelete:e.onAttachmentDelete,attachmentClick:e.onAttachmentClick,resizePage:e.onResizePage}});e.$f7ready((function(){e.f7Messagebar=e.$f7.messagebar.create(c)}))}}},updated:function(){if(this.f7Messagebar){var e=this.props,t=e.sheetVisible,n=e.attachmentsVisible;this.updateSheetVisible&&(this.updateSheetVisible=!1,this.f7Messagebar.sheetVisible=t,this.f7Messagebar.resizePage()),this.updateAttachmentsVisible&&(this.updateAttachmentsVisible=!1,this.f7Messagebar.attachmentsVisible=n,this.f7Messagebar.resizePage())}},beforeDestroy:function(){this.f7Messagebar&&this.f7Messagebar.destroy&&this.f7Messagebar.destroy()},methods:{clear:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).clear.apply(e,arguments)},getValue:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).getValue.apply(e,arguments)},setValue:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).setValue.apply(e,arguments)},setPlaceholder:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).setPlaceholder.apply(e,arguments)},resize:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).resizePage.apply(e,arguments)},focus:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).focus.apply(e,arguments)},blur:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).blur.apply(e,arguments)},attachmentsShow:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsShow.apply(e,arguments)},attachmentsHide:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsHide.apply(e,arguments)},attachmentsToggle:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).attachmentsToggle.apply(e,arguments)},sheetShow:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetShow.apply(e,arguments)},sheetHide:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetHide.apply(e,arguments)},sheetToggle:function(){var e;if(this.f7Messagebar)return(e=this.f7Messagebar).sheetToggle.apply(e,arguments)},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},onFocus:function(e){this.dispatchEvent("focus",e)},onBlur:function(e){this.dispatchEvent("blur",e)},onClick:function(e){var t,n=this;t=n.$refs.area.$refs.inputEl.value;var r=n.f7Messagebar?function(){n.f7Messagebar.clear()}:function(){};this.dispatchEvent("submit",t,r),this.dispatchEvent("send",t,r),this.dispatchEvent("click",e)},onAttachmentDelete:function(e,t,n){this.dispatchEvent("messagebar:attachmentdelete messagebarAttachmentDelete",e,t,n)},onAttachmentClick:function(e,t,n){this.dispatchEvent("messagebar:attachmentclick messagebarAttachmentClick",e,t,n)},onResizePage:function(e){this.dispatchEvent("messagebar:resizepage messagebarResizePage",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},ph={name:"f7-messages-title",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"messages-title",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},mh={name:"f7-messages",props:Object.assign({id:[String,Number],autoLayout:{type:Boolean,default:!1},messages:{type:Array,default:function(){return[]}},newMessagesFirst:{type:Boolean,default:!1},scrollMessages:{type:Boolean,default:!0},scrollMessagesOnEdge:{type:Boolean,default:!0},firstMessageRule:Function,lastMessageRule:Function,tailMessageRule:Function,sameNameMessageRule:Function,sameHeaderMessageRule:Function,sameFooterMessageRule:Function,sameAvatarMessageRule:Function,customClassMessageRule:Function,renderMessage:Function,init:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className;return e("div",{ref:"el",style:r,class:Gu.classNames(i,"messages",Xu.colorClasses(t)),attrs:{id:n}},[this.$slots.default])},beforeUpdate:function(){if(this.props.init){var e=this.$refs.el;if(e){var t=e.children;if(t)for(var n=0;n<t.length;n+=1)t[n].classList.add("message-appeared")}}},updated:function(){var e=this.props,t=e.init,n=e.autoLayout,r=e.scrollMessages;if(t){var i=this.$refs.el;if(i){var o=i.children;if(o){for(var a=0;a<o.length;a+=1)o[a].classList.contains("message-appeared")||o[a].classList.add("message-appear-from-bottom");this.f7Messages&&this.f7Messages.layout&&n&&this.f7Messages.layout(),this.f7Messages&&this.f7Messages.scroll&&r&&this.f7Messages.scroll()}}}},mounted:function(){var e=this,t=e.props,n=t.init,r=t.autoLayout,i=t.messages,o=t.newMessagesFirst,a=t.scrollMessages,s=t.scrollMessagesOnEdge,l=t.firstMessageRule,c=t.lastMessageRule,u=t.tailMessageRule,d=t.sameNameMessageRule,h=t.sameHeaderMessageRule,f=t.sameFooterMessageRule,p=t.sameAvatarMessageRule,m=t.customClassMessageRule,v=t.renderMessage;n&&e.$f7ready((function(t){e.f7Messages=t.messages.create(Gu.noUndefinedProps({el:e.$refs.el,autoLayout:r,messages:i,newMessagesFirst:o,scrollMessages:a,scrollMessagesOnEdge:s,firstMessageRule:l,lastMessageRule:c,tailMessageRule:u,sameNameMessageRule:d,sameHeaderMessageRule:h,sameFooterMessageRule:f,sameAvatarMessageRule:p,customClassMessageRule:m,renderMessage:v}))}))},beforeDestroy:function(){this.f7Messages&&this.f7Messages.destroy&&this.f7Messages.destroy()},methods:{renderMessages:function(e,t){if(this.f7Messages)return this.f7Messages.renderMessages(e,t)},layout:function(){if(this.f7Messages)return this.f7Messages.layout()},scroll:function(e,t){if(this.f7Messages)return this.f7Messages.scroll(e,t)},clear:function(){if(this.f7Messages)return this.f7Messages.clear()},removeMessage:function(e,t){if(this.f7Messages)return this.f7Messages.removeMessage(e,t)},removeMessages:function(e,t){if(this.f7Messages)return this.f7Messages.removeMessages(e,t)},addMessage:function(){var e;if(this.f7Messages)return(e=this.f7Messages).addMessage.apply(e,arguments)},addMessages:function(){var e;if(this.f7Messages)return(e=this.f7Messages).addMessages.apply(e,arguments)},showTyping:function(e){if(this.f7Messages)return this.f7Messages.showTyping(e)},hideTyping:function(){if(this.f7Messages)return this.f7Messages.hideTyping()},destroy:function(){if(this.f7Messages)return this.f7Messages.destroy()}},computed:{props:function(){return td(this)}}};function vh(e){return function(e){if(Array.isArray(e))return gh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gh(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yh={name:"f7-nav-left",props:Object.assign({id:[String,Number],backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:Boolean},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.backLink,i=n.backLinkUrl,o=n.backLinkForce,a=n.backLinkShowText,s=n.sliding,l=n.className,c=n.style,u=n.id,d=a;if(void 0===d&&(d=!this.$theme.md),r){var h=!0!==r&&d?r:void 0;e=t(Ud,{class:h?void 0:"icon-only",on:{click:this.onBackClick},attrs:{href:i||"#",back:!0,icon:"icon-back",force:o||void 0,text:h}})}var f=Gu.classNames(l,"left",{sliding:s},Xu.colorClasses(n)),p=[],m=this.$slots;return m&&Object.keys(m).length&&Object.keys(m).forEach((function(e){p.push.apply(p,vh(m[e]))})),t("div",{style:c,class:f,attrs:{id:u}},[e,p])},created:function(){Gu.bindMethods(this,["onBackClick"])},methods:{onBackClick:function(e){this.dispatchEvent("back-click backClick click:back clickBack",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}};function bh(e){return function(e){if(Array.isArray(e))return _h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wh={name:"f7-nav-right",props:Object.assign({id:[String,Number],sliding:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.sliding,a=Gu.classNames(n,"right",{sliding:o},Xu.colorClasses(t)),s=[],l=this.$slots;return l&&Object.keys(l).length&&Object.keys(l).forEach((function(e){s.push.apply(s,bh(l[e]))})),e("div",{style:i,class:a,attrs:{id:r}},[s])},computed:{props:function(){return td(this)}}};function kh(e){return function(e){if(Array.isArray(e))return Sh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Sh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sh(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Eh={name:"f7-nav-title",props:Object.assign({id:[String,Number]},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className,o=Gu.classNames(i,"title-large",Xu.colorClasses(t)),a=[],s=this.$slots;return s&&Object.keys(s).length&&Object.keys(s).forEach((function(e){a.push.apply(a,kh(s[e]))})),e("div",{style:r,class:o,attrs:{id:n}},[e("div",{class:"title-large-text"},[a])])},computed:{props:function(){return td(this)}}};function Ch(e){return function(e){if(Array.isArray(e))return Th(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Th(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Th(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Th(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xh={name:"f7-nav-title",props:Object.assign({id:[String,Number],title:String,subtitle:String,sliding:Boolean},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.title,i=n.subtitle,o=n.id,a=n.style,s=n.sliding,l=n.className;i&&(e=t("span",{class:"subtitle"},[i]));var c,u=Gu.classNames(l,"title",{sliding:s},Xu.colorClasses(n)),d=this.$slots;return d&&Object.keys(d).length&&(c=[],Object.keys(d).forEach((function(e){var t;(t=c).push.apply(t,Ch(d[e]))}))),t("div",{style:a,class:u,attrs:{id:o}},[c,!c&&r,!c&&e])},computed:{props:function(){return td(this)}}},Mh={name:"f7-navbar",props:Object.assign({id:[String,Number],backLink:[Boolean,String],backLinkUrl:String,backLinkForce:Boolean,backLinkShowText:{type:Boolean,default:void 0},sliding:{type:Boolean,default:!0},title:String,subtitle:String,hidden:Boolean,noShadow:Boolean,noHairline:Boolean,innerClass:String,innerClassName:String,large:Boolean,largeTransparent:Boolean,transparent:Boolean,titleLarge:String},Xu.colorProps),data:function(){var e=this;td(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null,routerPositionClass:"",largeCollapsed:!1,routerNavbarRole:null,routerNavbarRoleDetailRoot:!1,routerNavbarMasterStack:!1,transparentVisible:!1}}()}},render:function(){var e,t,n,r,i=this.$createElement,o=this.props,a=o.backLink,s=o.backLinkUrl,l=o.backLinkForce,c=o.backLinkShowText,u=o.sliding,d=o.title,h=o.subtitle,f=o.innerClass,p=o.innerClassName,m=o.className,v=o.id,g=o.style,y=o.hidden,b=o.noShadow,_=o.noHairline,w=o.large,k=o.largeTransparent,S=o.transparent,E=o.titleLarge,C=this.state,T=C._theme,x=C.routerPositionClass,M=C.largeCollapsed,$=C.transparentVisible,P=T&&T.ios&&this.$f7&&!this.$f7.params.navbar.iosCenterTitle,O=T&&T.md&&this.$f7&&this.$f7.params.navbar.mdCenterTitle||T&&T.aurora&&this.$f7&&this.$f7.params.navbar.auroraCenterTitle,L=this.$slots,A=w||k,I=A&&(k||S),D=!A&&S,N=D&&$,R=Gu.classNames(m,"navbar",x&&x,{"navbar-hidden":y,"navbar-large":A,"navbar-large-transparent":I,"navbar-large-collapsed":A&&M,"navbar-transparent":D,"navbar-transparent-visible":N,"navbar-master":"master"===this.state.routerNavbarRole,"navbar-master-detail":"detail"===this.state.routerNavbarRole,"navbar-master-detail-root":!0===this.state.routerNavbarRoleDetailRoot,"navbar-master-stacked":!0===this.state.routerNavbarMasterStack,"no-shadow":b,"no-hairline":_},Xu.colorClasses(o));(a||L["nav-left"]||L.left)&&(e=i(yh,{on:{backClick:this.onBackClick},attrs:{backLink:a,backLinkUrl:s,backLinkForce:l,backLinkShowText:c}},[L["nav-left"],L.left])),(d||h||L.title)&&(t=i(xh,{attrs:{title:d,subtitle:h}},[L.title])),(L["nav-right"]||L.right)&&(n=i(wh,[L["nav-right"],L.right]));var j=E;!j&&w&&d&&(j=d),(j||L["title-large"])&&(r=i("div",{class:"title-large"},[i("div",{class:"title-large-text"},[j||"",this.$slots["title-large"]])]));var B=i("div",{class:Gu.classNames("navbar-inner",f,p,{sliding:u,"navbar-inner-left-title":P,"navbar-inner-centered-title":O})},[e,t,n,r,this.$slots.default]);return i("div",{ref:"el",style:g,class:R,attrs:{id:v}},[i("div",{class:"navbar-bg"}),this.$slots["before-inner"],B,this.$slots["after-inner"]])},created:function(){Gu.bindMethods(this,["onBackClick","onHide","onShow","onExpand","onCollapse","onNavbarPosition","onNavbarRole","onNavbarMasterStack","onNavbarMasterUnstack","onTransparentHide","onTransparentShow"])},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(n){e.eventTargetEl=t,n.on("navbarShow",e.onShow),n.on("navbarHide",e.onHide),n.on("navbarCollapse",e.onCollapse),n.on("navbarExpand",e.onExpand),n.on("navbarPosition",e.onNavbarPosition),n.on("navbarRole",e.onNavbarRole),n.on("navbarMasterStack",e.onNavbarMasterStack),n.on("navbarMasterUnstack",e.onNavbarMasterUnstack),n.on("navbarTransparentShow",e.onNavbarTransparentShow),n.on("navbarTransparentHide",e.onNavbarTransparentHide)}))},updated:function(){if(this.$f7){var e=this.$refs.el;this.$f7.navbar.size(e)}},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("navbarShow",this.onShow),e.off("navbarHide",this.onHide),e.off("navbarCollapse",this.onCollapse),e.off("navbarExpand",this.onExpand),e.off("navbarPosition",this.onNavbarPosition),e.off("navbarRole",this.onNavbarRole),e.off("navbarMasterStack",this.onNavbarMasterStack),e.off("navbarMasterUnstack",this.onNavbarMasterUnstack),e.off("navbarTransparentShow",this.onNavbarTransparentShow),e.off("navbarTransparentHide",this.onNavbarTransparentHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("navbar:hide navbarHide")},onShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("navbar:show navbarShow")},onExpand:function(e){this.eventTargetEl===e&&(this.setState({largeCollapsed:!1}),this.dispatchEvent("navbar:expand navbarExpand"))},onCollapse:function(e){this.eventTargetEl===e&&(this.setState({largeCollapsed:!0}),this.dispatchEvent("navbar:collapse navbarCollapse"))},onNavbarTransparentShow:function(e){this.eventTargetEl===e&&(this.setState({transparentVisible:!0}),this.dispatchEvent("navbar:transparentshow navbarTransparentShow"))},onNavbarTransparentHide:function(e){this.eventTargetEl===e&&(this.setState({transparentVisible:!1}),this.dispatchEvent("navbar:transparenthide navbarTransparentHide"))},onNavbarPosition:function(e,t){this.eventTargetEl===e&&this.setState({routerPositionClass:t?"navbar-".concat(t):""})},onNavbarRole:function(e,t){this.eventTargetEl===e&&this.setState({routerNavbarRole:t.role,routerNavbarRoleDetailRoot:t.detailRoot})},onNavbarMasterStack:function(e){this.eventTargetEl===e&&this.setState({routerNavbarMasterStack:!0})},onNavbarMasterUnstack:function(e){this.eventTargetEl===e&&this.setState({routerNavbarMasterStack:!1})},hide:function(e){this.$f7&&this.$f7.navbar.hide(this.$refs.el,e)},show:function(e){this.$f7&&this.$f7.navbar.show(this.$refs.el,e)},size:function(){this.$f7&&this.$f7.navbar.size(this.$refs.el)},onBackClick:function(e){this.dispatchEvent("back-click backClick click:back clickBack",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},$h={name:"f7-preloader",props:Object.assign({id:[String,Number],size:[Number,String]},Xu.colorProps),data:function(){var e=this;td(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e,t=this.$createElement,n=this.sizeComputed,r=this.props,i=r.id,o=r.style,a=r.className,s=this.state._theme,l={};return n&&(l.width="".concat(n,"px"),l.height="".concat(n,"px"),l["--f7-preloader-size"]="".concat(n,"px")),o&&Gu.extend(l,o||{}),s&&s.md?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-gap"}),t("span",{class:"preloader-inner-left"},[t("span",{class:"preloader-inner-half-circle"})]),t("span",{class:"preloader-inner-right"},[t("span",{class:"preloader-inner-half-circle"})])]):s&&s.ios?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"}),t("span",{class:"preloader-inner-line"})]):s&&s.aurora?e=t("span",{class:"preloader-inner"},[t("span",{class:"preloader-inner-circle"})]):s||(e=t("span",{class:"preloader-inner"})),t("span",{style:l,class:Gu.classNames(a,"preloader",Xu.colorClasses(r)),attrs:{id:i}},[e])},computed:{sizeComputed:function(){var e=this.props.size;return e&&"string"==typeof e&&e.indexOf("px")>=0&&(e=e.replace("px","")),e},props:function(){return td(this)}},methods:{setState:function(e,t){fd(this,e,t)}}},Ph={name:"f7-page-content",props:Object.assign({id:[String,Number],tab:Boolean,tabActive:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean},Xu.colorProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.ptr,o=r.ptrPreloader,a=r.ptrDistance,s=r.ptrBottom,l=r.ptrMousewheel,c=r.infinite,u=r.infinitePreloader,d=r.id,h=r.style,f=r.infiniteDistance,p=r.infiniteTop;return i&&o&&(e=n("div",{class:"ptr-preloader"},[n($h),n("div",{class:"ptr-arrow"})])),c&&u&&(t=n($h,{class:"infinite-scroll-preloader"})),n("div",{style:h,class:this.classes,ref:"el",attrs:{id:d,"data-ptr-distance":a||void 0,"data-ptr-mousewheel":l||void 0,"data-infinite-distance":f||void 0}},[s?null:e,p?t:null,this.$slots.default,p?null:t,s?e:null])},computed:{classes:function(){var e=this.props,t=e.className,n=e.tab,r=e.tabActive,i=e.ptr,o=e.ptrBottom,a=e.infinite,s=e.infiniteTop,l=e.hideBarsOnScroll,c=e.hideNavbarOnScroll,u=e.hideToolbarOnScroll,d=e.messagesContent,h=e.loginScreen;return Gu.classNames(t,"page-content",{tab:n,"tab-active":r,"ptr-content":i,"ptr-bottom":o,"infinite-scroll-content":a,"infinite-scroll-top":s,"hide-bars-on-scroll":l,"hide-navbar-on-scroll":c,"hide-toolbar-on-scroll":u,"messages-content":d,"login-screen-content":h},Xu.colorClasses(e))},props:function(){return td(this)}},created:function(){Gu.bindMethods(this,["onPtrPullStart","onPtrPullMove","onPtrPullEnd","onPtrRefresh","onPtrDone","onInfinite","onTabShow","onTabHide"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.ptr,i=n.infinite,o=n.tab;e.$f7ready((function(n){e.eventTargetEl=t,r&&(n.on("ptrPullStart",e.onPtrPullStart),n.on("ptrPullMove",e.onPtrPullMove),n.on("ptrPullEnd",e.onPtrPullEnd),n.on("ptrRefresh",e.onPtrRefresh),n.on("ptrDone",e.onPtrDone)),i&&n.on("infinite",e.onInfinite),o&&(n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide))}))},beforeDestroy:function(){this.$f7&&(this.$f7.off("ptrPullStart",this.onPtrPullStart),this.$f7.off("ptrPullMove",this.onPtrPullMove),this.$f7.off("ptrPullEnd",this.onPtrPullEnd),this.$f7.off("ptrRefresh",this.onPtrRefresh),this.$f7.off("ptrDone",this.onPtrDone),this.$f7.off("infinite",this.onInfinite),this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide),this.eventTargetEl=null,delete this.eventTargetEl)},methods:{onPtrPullStart:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullstart ptrPullStart")},onPtrPullMove:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullmove ptrPullMove")},onPtrPullEnd:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:pullend ptrPullEnd")},onPtrRefresh:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("ptr:refresh ptrRefresh",t)},onPtrDone:function(e){this.eventTargetEl===e&&this.dispatchEvent("ptr:done ptrDone")},onInfinite:function(e){this.eventTargetEl===e&&this.dispatchEvent("infinite")},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},Oh={name:"f7-page",props:Object.assign({id:[String,Number],name:String,stacked:Boolean,withSubnavbar:{type:Boolean,default:void 0},subnavbar:{type:Boolean,default:void 0},withNavbarLarge:{type:Boolean,default:void 0},navbarLarge:{type:Boolean,default:void 0},noNavbar:Boolean,noToolbar:Boolean,tabs:Boolean,pageContent:{type:Boolean,default:!0},noSwipeback:Boolean,ptr:Boolean,ptrDistance:Number,ptrPreloader:{type:Boolean,default:!0},ptrBottom:Boolean,ptrMousewheel:Boolean,infinite:Boolean,infiniteTop:Boolean,infiniteDistance:Number,infinitePreloader:{type:Boolean,default:!0},hideBarsOnScroll:Boolean,hideNavbarOnScroll:Boolean,hideToolbarOnScroll:Boolean,messagesContent:Boolean,loginScreen:Boolean},Xu.colorProps),data:function(){td(this);return{state:{hasSubnavbar:!1,hasNavbarLarge:!1,hasNavbarLargeCollapsed:!1,hasCardExpandableOpened:!1,routerPositionClass:"",routerForceUnstack:!1,routerPageRole:null,routerPageRoleDetailRoot:!1,routerPageMasterStack:!1}}},render:function(){var e,t,n,r,i=this.$createElement,o=this.props,a=o.id,s=o.style,l=o.name,c=o.pageContent,u=o.messagesContent,d=o.ptr,h=o.ptrDistance,f=o.ptrPreloader,p=o.ptrBottom,m=o.ptrMousewheel,v=o.infinite,g=o.infiniteDistance,y=o.infinitePreloader,b=o.infiniteTop,_=o.hideBarsOnScroll,w=o.hideNavbarOnScroll,k=o.hideToolbarOnScroll,S=o.loginScreen,E=o.className,C=o.stacked,T=o.tabs,x=o.subnavbar,M=o.withSubnavbar,$=o.navbarLarge,P=o.withNavbarLarge,O=o.noNavbar,L=o.noToolbar,A=o.noSwipeback,I=[],D=[],N=this.$slots,R=N.static,j=N.fixed,B=N.default;e="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index".split(" "),n=this.$options.propsData.messagesContent,B&&B.forEach((function(i){if(void 0!==i){var o=!1,a=i.tag;if(a){a.indexOf("subnavbar")>=0&&(t=!0),a.indexOf("navbar")>=0&&i.componentOptions&&i.componentOptions.propsData&&"large"in i.componentOptions.propsData&&(i.componentOptions.propsData.large||""===i.componentOptions.propsData.large)&&(r=!0),void 0===n&&a.indexOf("messages")>=0&&(n=!0);for(var s=0;s<e.length;s+=1)a.indexOf(e[s])>=0&&(o=!0);c&&(o?I.push(i):D.push(i))}else c&&D.push(i)}}));var Y=void 0===x&&void 0===M&&(t||this.state.hasSubnavbar),F=void 0===$&&void 0===P&&(r||this.state.hasNavbarLarge),H=Gu.classNames(E,"page",this.state.routerPositionClass,{stacked:C&&!this.state.routerForceUnstack,tabs:T,"page-with-subnavbar":x||M||Y,"page-with-navbar-large":$||P||F,"no-navbar":O,"no-toolbar":L,"no-swipeback":A,"page-master":"master"===this.state.routerPageRole,"page-master-detail":"detail"===this.state.routerPageRole,"page-master-detail-root":!0===this.state.routerPageRoleDetailRoot,"page-master-stacked":!0===this.state.routerPageMasterStack,"page-with-navbar-large-collapsed":!0===this.state.hasNavbarLargeCollapsed,"page-with-card-opened":!0===this.state.hasCardExpandableOpened,"login-screen-page":S},Xu.colorClasses(o));if(!c)return i("div",{ref:"el",style:s,class:H,attrs:{id:a,"data-name":l}},[j,R,B]);var U=i(Ph,{on:{ptrPullStart:this.onPtrPullStart,ptrPullMove:this.onPtrPullMove,ptrPullEnd:this.onPtrPullEnd,ptrRefresh:this.onPtrRefresh,ptrDone:this.onPtrDone,infinite:this.onInfinite},attrs:{ptr:d,ptrDistance:h,ptrPreloader:f,ptrBottom:p,ptrMousewheel:m,infinite:v,infiniteTop:b,infiniteDistance:g,infinitePreloader:y,hideBarsOnScroll:_,hideNavbarOnScroll:w,hideToolbarOnScroll:k,messagesContent:u||n,loginScreen:S}},[R,D]);return i("div",{ref:"el",style:s,class:H,attrs:{id:a,"data-name":l}},[I,j,U])},created:function(){Gu.bindMethods(this,["onPtrPullStart","onPtrPullMove","onPtrPullEnd","onPtrRefresh","onPtrDone","onInfinite","onPageMounted","onPageInit","onPageReinit","onPageBeforeIn","onPageBeforeOut","onPageAfterOut","onPageAfterIn","onPageBeforeRemove","onPageBeforeUnmount","onPageStack","onPageUnstack","onPagePosition","onPageRole","onPageMasterStack","onPageMasterUnstack","onPageNavbarLargeCollapsed","onPageNavbarLargeExpanded","onCardOpened","onCardClose"])},mounted:function(){var e=this,t=e.$refs.el;e.$f7ready((function(n){e.eventTargetEl=t,n.on("pageMounted",e.onPageMounted),n.on("pageInit",e.onPageInit),n.on("pageReinit",e.onPageReinit),n.on("pageBeforeIn",e.onPageBeforeIn),n.on("pageBeforeOut",e.onPageBeforeOut),n.on("pageAfterOut",e.onPageAfterOut),n.on("pageAfterIn",e.onPageAfterIn),n.on("pageBeforeRemove",e.onPageBeforeRemove),n.on("pageBeforeUnmount",e.onPageBeforeUnmount),n.on("pageStack",e.onPageStack),n.on("pageUnstack",e.onPageUnstack),n.on("pagePosition",e.onPagePosition),n.on("pageRole",e.onPageRole),n.on("pageMasterStack",e.onPageMasterStack),n.on("pageMasterUnstack",e.onPageMasterUnstack),n.on("pageNavbarLargeCollapsed",e.onPageNavbarLargeCollapsed),n.on("pageNavbarLargeExpanded",e.onPageNavbarLargeExpanded),n.on("cardOpened",e.onCardOpened),n.on("cardClose",e.onCardClose)}))},beforeDestroy:function(){if(this.$f7){var e=this.$f7;e.off("pageMounted",this.onPageMounted),e.off("pageInit",this.onPageInit),e.off("pageReinit",this.onPageReinit),e.off("pageBeforeIn",this.onPageBeforeIn),e.off("pageBeforeOut",this.onPageBeforeOut),e.off("pageAfterOut",this.onPageAfterOut),e.off("pageAfterIn",this.onPageAfterIn),e.off("pageBeforeRemove",this.onPageBeforeRemove),e.off("pageBeforeUnmount",this.onPageBeforeUnmount),e.off("pageStack",this.onPageStack),e.off("pageUnstack",this.onPageUnstack),e.off("pagePosition",this.onPagePosition),e.off("pageRole",this.onPageRole),e.off("pageMasterStack",this.onPageMasterStack),e.off("pageMasterUnstack",this.onPageMasterUnstack),e.off("pageNavbarLargeCollapsed",this.onPageNavbarLargeCollapsed),e.off("pageNavbarLargeExpanded",this.onPageNavbarLargeExpanded),e.off("cardOpened",this.onCardOpened),e.off("cardClose",this.onCardClose),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onPtrPullStart:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullstart ptrPullStart"].concat(t))},onPtrPullMove:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullmove ptrPullMove"].concat(t))},onPtrPullEnd:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:pullend ptrPullEnd"].concat(t))},onPtrRefresh:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:refresh ptrRefresh"].concat(t))},onPtrDone:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["ptr:done ptrDone"].concat(t))},onInfinite:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["infinite"].concat(t))},onPageMounted:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:mounted pageMounted",e)},onPageInit:function(e){if(this.eventTargetEl===e.el){var t=this.props,n=t.withSubnavbar,r=t.subnavbar,i=t.withNavbarLarge,o=t.navbarLarge;void 0===n&&void 0===r&&(e.$navbarEl&&e.$navbarEl.length&&e.$navbarEl.find(".subnavbar").length||e.$el.children(".navbar").find(".subnavbar").length)&&this.setState({hasSubnavbar:!0}),void 0===i&&void 0===o&&e.$navbarEl&&e.$navbarEl.hasClass("navbar-large")&&this.setState({hasNavbarLarge:!0}),this.dispatchEvent("page:init pageInit",e)}},onPageReinit:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:reinit pageReinit",e)},onPageBeforeIn:function(e){this.eventTargetEl===e.el&&(e.swipeBack||("next"===e.from&&this.setState({routerPositionClass:"page-next"}),"previous"===e.from&&this.setState({routerPositionClass:"page-previous"})),this.dispatchEvent("page:beforein pageBeforeIn",e))},onPageBeforeOut:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeout pageBeforeOut",e)},onPageAfterOut:function(e){this.eventTargetEl===e.el&&("next"===e.to&&this.setState({routerPositionClass:"page-next"}),"previous"===e.to&&this.setState({routerPositionClass:"page-previous"}),this.dispatchEvent("page:afterout pageAfterOut",e))},onPageAfterIn:function(e){this.eventTargetEl===e.el&&(this.setState({routerPositionClass:"page-current"}),this.dispatchEvent("page:afterin pageAfterIn",e))},onPageBeforeRemove:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeremove pageBeforeRemove",e)},onPageBeforeUnmount:function(e){this.eventTargetEl===e.el&&this.dispatchEvent("page:beforeunmount pageBeforeUnmount",e)},onPageStack:function(e){this.eventTargetEl===e&&this.setState({routerForceUnstack:!1})},onPageUnstack:function(e){this.eventTargetEl===e&&this.setState({routerForceUnstack:!0})},onPagePosition:function(e,t){this.eventTargetEl===e&&this.setState({routerPositionClass:"page-".concat(t)})},onPageRole:function(e,t){this.eventTargetEl===e&&this.setState({routerPageRole:t.role,routerPageRoleDetailRoot:t.detailRoot})},onPageMasterStack:function(e){this.eventTargetEl===e&&this.setState({routerPageMasterStack:!0})},onPageMasterUnstack:function(e){this.eventTargetEl===e&&this.setState({routerPageMasterStack:!1})},onPageNavbarLargeCollapsed:function(e){this.eventTargetEl===e&&this.setState({hasNavbarLargeCollapsed:!0})},onPageNavbarLargeExpanded:function(e){this.eventTargetEl===e&&this.setState({hasNavbarLargeCollapsed:!1})},onCardOpened:function(e,t){this.eventTargetEl===t&&this.setState({hasCardExpandableOpened:!0})},onCardClose:function(e,t){this.eventTargetEl===t&&this.setState({hasCardExpandableOpened:!1})},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}};function Lh(e){return(Lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ah(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Lh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ih={name:"f7-panel",props:Object.assign({id:[String,Number],side:String,effect:String,cover:Boolean,reveal:Boolean,left:Boolean,right:Boolean,opened:Boolean,resizable:Boolean,backdrop:{type:Boolean,default:!0},backdropEl:{type:String,default:void 0},visibleBreakpoint:{type:Number,default:void 0},collapsedBreakpoint:{type:Number,default:void 0},swipe:Boolean,swipeOnlyClose:Boolean,swipeActiveArea:{type:Number,default:0},swipeThreshold:{type:Number,default:0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.resizable;return e("div",{ref:"el",style:r,class:this.classes,attrs:{id:n}},[this.$slots.default,i&&e("div",{class:"panel-resize-handler"})])},computed:{classes:function(){var e,t=this.props,n=t.left,r=t.reveal,i=t.className,o=t.resizable,a=t.side,s=t.effect;return a=a||(n?"left":"right"),s=s||(r?"reveal":"cover"),Gu.classNames(i,"panel",(Ah(e={"panel-resizable":o},"panel-".concat(a),a),Ah(e,"panel-".concat(s),s),e),Xu.colorClasses(t))},props:function(){return td(this)}},watch:{"props.resizable":function(e){this.f7Panel&&(e?this.f7Panel.enableResizable():this.f7Panel.disableResizable())},"props.opened":function(e){this.f7Panel&&(e?this.f7Panel.open():this.f7Panel.close())}},created:function(){Gu.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onBackdropClick","onSwipe","onSwipeOpen","onBreakpoint","onCollapsedBreakpoint","onResize"])},mounted:function(){var e=this,t=e.$refs.el,n=e.props,r=n.opened,i=n.resizable,o=n.backdrop,a=n.backdropEl,s=n.visibleBreakpoint,l=n.collapsedBreakpoint,c=n.swipe,u=n.swipeOnlyClose,d=n.swipeActiveArea,h=n.swipeThreshold;e.$f7ready((function(){var n=e.$$;if(n){0===n(".panel-backdrop").length&&n('<div class="panel-backdrop"></div>').insertBefore(t);var f=Gu.noUndefinedProps({el:t,resizable:i,backdrop:o,backdropEl:a,visibleBreakpoint:s,collapsedBreakpoint:l,swipe:c,swipeOnlyClose:u,swipeActiveArea:d,swipeThreshold:h,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed,backdropClick:e.onBackdropClick,swipe:e.onSwipe,swipeOpen:e.onSwipeOpen,collapsedBreakpoint:e.onCollapsedBreakpoint,breakpoint:e.onBreakpoint,resize:e.onResize}});e.f7Panel=e.$f7.panel.create(f),r&&e.f7Panel.open(!1)}}))},beforeDestroy:function(){this.f7Panel&&this.f7Panel.destroy&&this.f7Panel.destroy()},methods:{onOpen:function(e){this.dispatchEvent("panel:open panelOpen",e)},onOpened:function(e){this.dispatchEvent("panel:opened panelOpened",e)},onClose:function(e){this.dispatchEvent("panel:close panelClose",e)},onClosed:function(e){this.dispatchEvent("panel:closed panelClosed",e)},onBackdropClick:function(e){this.dispatchEvent("panel:backdrop-click panelBackdropClick",e)},onSwipe:function(e){this.dispatchEvent("panel:swipe panelSwipe",e)},onSwipeOpen:function(e){this.dispatchEvent("panel:swipeopen panelSwipeOpen",e)},onBreakpoint:function(e){this.dispatchEvent("panel:breakpoint panelBreakpoint",e)},onCollapsedBreakpoint:function(e){this.dispatchEvent("panel:collapsedbreakpoint panelCollapsedBreakpoint",e)},onResize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dispatchEvent.apply(this,["panel:resize panelResize"].concat(t))},open:function(e){this.f7Panel&&this.f7Panel.open(e)},close:function(e){this.f7Panel&&this.f7Panel.close(e)},toggle:function(e){this.f7Panel&&this.f7Panel.toggle(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},Dh={name:"f7-photo-browser",props:{id:[String,Number],init:{type:Boolean,default:!0},params:Object,photos:Array,exposition:{type:Boolean,default:!0},expositionHideCaptions:{type:Boolean,default:!1},type:{type:String},navbar:{type:Boolean,default:!0},toolbar:{type:Boolean,default:!0},theme:{type:String},captionsTheme:{type:String},iconsColor:{type:String},swipeToClose:{type:Boolean,default:!0},pageBackLinkText:{type:String,default:void 0},popupCloseLinkText:{type:String,default:void 0},navbarOfText:{type:String,default:void 0},navbarShowCount:{type:Boolean,default:void 0},swiper:{type:Object},url:{type:String},routableModals:{type:Boolean,default:!0},virtualSlides:{type:Boolean,default:!0},view:[String,Object],renderNavbar:Function,renderToolbar:Function,renderCaption:Function,renderObject:Function,renderLazyPhoto:Function,renderPhoto:Function,renderPage:Function,renderPopup:Function,renderStandalone:Function},render:function(){this.$createElement;return null},watch:{"props.photos":function(e){var t=this.f7PhotoBrowser;t&&(this.f7PhotoBrowser.params.photos=e,t.opened&&t.swiper&&t.swiper.update())}},beforeDestroy:function(){this.f7PhotoBrowser&&this.f7PhotoBrowser.destroy&&this.f7PhotoBrowser.destroy()},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n;n=void 0!==e.props.params?e.props.params:Object.assign({},e.props),Object.keys(n).forEach((function(e){void 0!==n[e]&&""!==n[e]||delete n[e]})),n=Gu.extend({},n,{on:{open:function(){e.dispatchEvent("photobrowser:open photoBrowserOpen")},close:function(){e.dispatchEvent("photobrowser:close photoBrowserClose")},opened:function(){e.dispatchEvent("photobrowser:opened photoBrowserOpened")},closed:function(){e.dispatchEvent("photobrowser:closed photoBrowserClosed")},swipeToClose:function(){e.dispatchEvent("photobrowser:swipetoclose photoBrowserSwipeToClose")}}}),e.f7PhotoBrowser=t.photoBrowser.create(n)}))},methods:{open:function(e){return this.f7PhotoBrowser.open(e)},close:function(){return this.f7PhotoBrowser.close()},expositionToggle:function(){return this.f7PhotoBrowser.expositionToggle()},expositionEnable:function(){return this.f7PhotoBrowser.expositionEnable()},expositionDisable:function(){return this.f7PhotoBrowser.expositionDisable()},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Nh={name:"f7-popover",props:Object.assign({id:[String,Number],opened:Boolean,target:[String,Object],backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{ref:"el",style:t.style,class:Gu.classNames(n,"popover",Xu.colorClasses(t)),attrs:{id:r}},[e("div",{class:"popover-angle"}),e("div",{class:"popover-inner"},[this.$slots.default])])},watch:{"props.opened":function(e){this.f7Popover&&(e?this.f7Popover.open():this.f7Popover.close())}},created:function(){Gu.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.target,i=n.opened,o=n.backdrop,a=n.backdropEl,s=n.closeByBackdropClick,l=n.closeByOutsideClick,c=n.closeOnEscape,u={el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}};r&&(u.targetEl=r);var d=e.$options.propsData;void 0!==d.closeByBackdropClick&&(u.closeByBackdropClick=s),void 0!==d.closeByOutsideClick&&(u.closeByOutsideClick=l),void 0!==d.closeOnEscape&&(u.closeOnEscape=c),void 0!==d.backdrop&&(u.backdrop=o),void 0!==d.backdropEl&&(u.backdropEl=a),e.$f7ready((function(){e.f7Popover=e.$f7.popover.create(u),i&&r&&e.f7Popover.open(r,!1)}))}},beforeDestroy:function(){this.f7Popover&&this.f7Popover.destroy()},methods:{onOpen:function(e){this.dispatchEvent("popover:open popoverOpen",e)},onOpened:function(e){this.dispatchEvent("popover:opened popoverOpened",e)},onClose:function(e){this.dispatchEvent("popover:close popoverClose",e)},onClosed:function(e){this.dispatchEvent("popover:closed popoverClosed",e)},open:function(e){if(this.f7Popover)return this.f7Popover.open(e)},close:function(e){if(this.f7Popover)return this.f7Popover.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Rh={name:"f7-popup",props:Object.assign({id:[String,Number],tabletFullscreen:Boolean,opened:Boolean,animate:Boolean,backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeOnEscape:Boolean,swipeToClose:{type:[Boolean,String],default:!1},swipeHandler:[String,Object,window.HTMLElement],push:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.tabletFullscreen,a=t.push;return e("div",{ref:"el",style:i,class:Gu.classNames(n,"popup",{"popup-tablet-fullscreen":o,"popup-push":a},Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},watch:{"props.opened":function(e){this.f7Popup&&(e?this.f7Popup.open():this.f7Popup.close())}},created:function(){Gu.bindMethods(this,["onOpen","onOpened","onClose","onClosed"])},mounted:function(){var e=this,t=e.$refs.el;if(t){var n=e.props,r=n.closeByBackdropClick,i=n.backdrop,o=n.backdropEl,a=n.animate,s=n.closeOnEscape,l=n.swipeToClose,c=n.swipeHandler,u={el:t,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed}},d=e.$options.propsData;void 0!==d.closeByBackdropClick&&(u.closeByBackdropClick=r),void 0!==d.closeOnEscape&&(u.closeOnEscape=s),void 0!==d.animate&&(u.animate=a),void 0!==d.backdrop&&(u.backdrop=i),void 0!==d.backdropEl&&(u.backdropEl=o),void 0!==d.swipeToClose&&(u.swipeToClose=l),void 0!==d.swipeHandler&&(u.swipeHandler=c),e.$f7ready((function(){e.f7Popup=e.$f7.popup.create(u),e.props.opened&&e.f7Popup.open(!1)}))}},beforeDestroy:function(){this.f7Popup&&this.f7Popup.destroy()},methods:{onOpen:function(e){this.dispatchEvent("popup:open popupOpen",e)},onOpened:function(e){this.dispatchEvent("popup:opened popupOpened",e)},onClose:function(e){this.dispatchEvent("popup:close popupClose",e)},onClosed:function(e){this.dispatchEvent("popup:closed popupClosed",e)},open:function(e){if(this.f7Popup)return this.f7Popup.open(e)},close:function(e){if(this.f7Popup)return this.f7Popup.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},jh={name:"f7-progressbar",props:Object.assign({id:[String,Number],progress:Number,infinite:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.progress,r=t.id,i=t.style,o=t.infinite,a=t.className,s={transform:n?"translate3d(".concat(-100+n,"%, 0, 0)"):"",WebkitTransform:n?"translate3d(".concat(-100+n,"%, 0, 0)"):""};return e("span",{ref:"el",style:i,class:Gu.classNames(a,"progressbar",{"progressbar-infinite":o},Xu.colorClasses(t)),attrs:{id:r,"data-progress":n}},[e("span",{style:s})])},methods:{set:function(e,t){this.$f7&&this.$f7.progressbar.set(this.$refs.el,e,t)}},computed:{props:function(){return td(this)}}},Bh={name:"f7-radio",props:Object.assign({id:[String,Number],checked:Boolean,name:[Number,String],value:[Number,String,Boolean],disabled:Boolean,readonly:Boolean,defaultChecked:Boolean},Xu.colorProps),render:function(){var e,t=this.$createElement,n=this.props,r=n.name,i=n.value,o=n.disabled,a=n.readonly,s=n.checked,l=(n.defaultChecked,n.id),c=n.style,u=n.className;e=t("input",{ref:"inputEl",domProps:{value:i,disabled:o,readonly:a,checked:s},on:{change:this.onChange},attrs:{type:"radio",name:r}});var d=t("i",{class:"icon-radio"});return t("label",{style:c,class:Gu.classNames(u,"radio",{disabled:o},Xu.colorClasses(n)),attrs:{id:l}},[e,d,this.$slots.default])},created:function(){Gu.bindMethods(this,["onChange"])},methods:{onChange:function(e){this.dispatchEvent("change",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Yh={name:"f7-row",props:Object.assign({id:[String,Number],noGap:Boolean,tag:{type:String,default:"div"},resizable:Boolean,resizableFixed:Boolean,resizableAbsolute:Boolean,resizableHandler:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.tag,a=t.noGap,s=t.resizable,l=t.resizableFixed,c=t.resizableAbsolute,u=t.resizableHandler;return e(o,{style:i,class:Gu.classNames(n,"row",{"no-gap":a,resizable:s,"resizable-fixed":l,"resizable-absolute":c},Xu.colorClasses(t)),ref:"el",attrs:{id:r}},[this.$slots.default,s&&u&&e("span",{class:"resize-handler"})])},created:function(){Gu.bindMethods(this,["onClick","onResize"])},mounted:function(){var e=this;e.eventTargetEl=e.$refs.el,e.eventTargetEl.addEventListener("click",e.onClick),e.$f7ready((function(t){t.on("gridResize",e.onResize)}))},beforeDestroy:function(){var e=this.$refs.el;e&&this.$f7&&(e.removeEventListener("click",this.onClick),this.$f7.off("gridResize",this.onResize),delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onResize:function(e){e===this.eventTargetEl&&this.dispatchEvent("grid:resize gridResize")},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Fh={name:"f7-searchbar",props:Object.assign({id:[String,Number],noShadow:Boolean,noHairline:Boolean,form:{type:Boolean,default:!0},placeholder:{type:String,default:"Search"},disableButton:{type:Boolean,default:!0},disableButtonText:{type:String,default:"Cancel"},clearButton:{type:Boolean,default:!0},value:[String,Number,Array],inputEvents:{type:String,default:"change input compositionend"},expandable:Boolean,inline:Boolean,searchContainer:[String,Object],searchIn:{type:String,default:".item-title"},searchItem:{type:String,default:"li"},searchGroup:{type:String,default:".list-group"},searchGroupTitle:{type:String,default:".item-divider, .list-group-title"},foundEl:{type:[String,Object],default:".searchbar-found"},notFoundEl:{type:[String,Object],default:".searchbar-not-found"},backdrop:{type:Boolean,default:void 0},backdropEl:[String,Object],hideOnEnableEl:{type:[String,Object],default:".searchbar-hide-on-enable"},hideOnSearchEl:{type:[String,Object],default:".searchbar-hide-on-search"},ignore:{type:String,default:".searchbar-ignore"},customSearch:{type:Boolean,default:!1},removeDiacritics:{type:Boolean,default:!1},hideDividers:{type:Boolean,default:!0},hideGroups:{type:Boolean,default:!0},init:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e,t,n=this.$createElement,r=this.props,i=r.placeholder,o=r.clearButton,a=r.disableButton,s=r.disableButtonText,l=r.form,c=r.noShadow,u=r.noHairline,d=r.expandable,h=r.className,f=r.style,p=r.id,m=r.value,v=r.inline;o&&(e=n("span",{ref:"clearEl",class:"input-clear-button"})),a&&(t=n("span",{ref:"disableEl",class:"searchbar-disable-button"},[s]));var g,y=l?"form":"div",b=Gu.classNames(h,"searchbar",{"searchbar-inline":v,"no-shadow":c,"no-hairline":u,"searchbar-expandable":d},Xu.colorClasses(r));return g=n("input",{ref:"inputEl",domProps:{value:m},on:{input:this.onInput,change:this.onChange,focus:this.onFocus,blur:this.onBlur},attrs:{placeholder:i,type:"search"}}),n(y,{ref:"el",style:f,class:b,attrs:{id:p}},[this.$slots["before-inner"],n("div",{class:"searchbar-inner"},[this.$slots["inner-start"],n("div",{class:"searchbar-input-wrap"},[this.$slots["input-wrap-start"],g,n("i",{class:"searchbar-icon"}),e,this.$slots["input-wrap-end"]]),t,this.$slots["inner-end"],this.$slots.default]),this.$slots["after-inner"]])},created:function(){Gu.bindMethods(this,["onSubmit","onClearButtonClick","onDisableButtonClick","onInput","onChange","onFocus","onBlur"])},mounted:function(){var e=this,t=e.props,n=t.init,r=t.inputEvents,i=t.searchContainer,o=t.searchIn,a=t.searchItem,s=t.searchGroup,l=t.searchGroupTitle,c=t.hideOnEnableEl,u=t.hideOnSearchEl,d=t.foundEl,h=t.notFoundEl,f=t.backdrop,p=t.backdropEl,m=t.disableButton,v=t.ignore,g=t.customSearch,y=t.removeDiacritics,b=t.hideDividers,_=t.hideGroups,w=t.form,k=t.expandable,S=t.inline,E=e.$refs,C=E.el,T=E.clearEl,x=E.disableEl;w&&C&&C.addEventListener("submit",e.onSubmit,!1),T&&T.addEventListener("click",e.onClearButtonClick),x&&x.addEventListener("click",e.onDisableButtonClick),n&&e.$f7ready((function(){var t=Gu.noUndefinedProps({el:e.$refs.el,inputEvents:r,searchContainer:i,searchIn:o,searchItem:a,searchGroup:s,searchGroupTitle:l,hideOnEnableEl:c,hideOnSearchEl:u,foundEl:d,notFoundEl:h,backdrop:f,backdropEl:p,disableButton:m,ignore:v,customSearch:g,removeDiacritics:y,hideDividers:b,hideGroups:_,expandable:k,inline:S,on:{search:function(t,n,r){e.dispatchEvent("searchbar:search searchbarSearch",t,n,r)},clear:function(t,n){e.dispatchEvent("searchbar:clear searchbarClear",t,n)},enable:function(t){e.dispatchEvent("searchbar:enable searchbarEnable",t)},disable:function(t){e.dispatchEvent("searchbar:disable searchbarDisable",t)}}});Object.keys(t).forEach((function(e){""===t[e]&&delete t[e]})),e.f7Searchbar=e.$f7.searchbar.create(t)}))},beforeDestroy:function(){var e=this.$refs,t=e.el,n=e.clearEl,r=e.disableEl;this.props.form&&t&&t.removeEventListener("submit",this.onSubmit,!1),n&&n.removeEventListener("click",this.onClearButtonClick),r&&r.removeEventListener("click",this.onDisableButtonClick),this.f7Searchbar&&this.f7Searchbar.destroy&&this.f7Searchbar.destroy()},methods:{search:function(e){if(this.f7Searchbar)return this.f7Searchbar.search(e)},enable:function(){if(this.f7Searchbar)return this.f7Searchbar.enable()},disable:function(){if(this.f7Searchbar)return this.f7Searchbar.disable()},toggle:function(){if(this.f7Searchbar)return this.f7Searchbar.toggle()},clear:function(){if(this.f7Searchbar)return this.f7Searchbar.clear()},onChange:function(e){this.dispatchEvent("change",e)},onInput:function(e){this.dispatchEvent("input",e)},onFocus:function(e){this.dispatchEvent("focus",e)},onBlur:function(e){this.dispatchEvent("blur",e)},onSubmit:function(e){this.dispatchEvent("submit",e)},onClearButtonClick:function(e){this.dispatchEvent("click:clear clickClear",e)},onDisableButtonClick:function(e){this.dispatchEvent("click:disable clickDisable",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Hh={name:"f7-segmented",props:Object.assign({id:[String,Number],raised:Boolean,raisedIos:Boolean,raisedMd:Boolean,raisedAurora:Boolean,round:Boolean,roundIos:Boolean,roundMd:Boolean,roundAurora:Boolean,strong:Boolean,strongIos:Boolean,strongMd:Boolean,strongAurora:Boolean,tag:{type:String,default:"div"}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.raised,i=t.raisedIos,o=t.raisedAurora,a=t.raisedMd,s=t.round,l=t.roundIos,c=t.roundAurora,u=t.roundMd,d=t.strong,h=t.strongIos,f=t.strongMd,p=t.strongAurora,m=t.id,v=t.style;return e(t.tag,{style:v,class:Gu.classNames(n,{segmented:!0,"segmented-raised":r,"segmented-raised-ios":i,"segmented-raised-aurora":o,"segmented-raised-md":a,"segmented-round":s,"segmented-round-ios":l,"segmented-round-aurora":c,"segmented-round-md":u,"segmented-strong":d,"segmented-strong-ios":h,"segmented-strong-md":f,"segmented-strong-aurora":p},Xu.colorClasses(t)),attrs:{id:m}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Uh={name:"f7-sheet",props:Object.assign({id:[String,Number],opened:Boolean,top:Boolean,bottom:Boolean,position:String,backdrop:Boolean,backdropEl:[String,Object,window.HTMLElement],closeByBackdropClick:Boolean,closeByOutsideClick:Boolean,closeOnEscape:Boolean,push:Boolean,swipeToClose:Boolean,swipeToStep:Boolean,swipeHandler:[String,Object,window.HTMLElement]},Xu.colorProps),render:function(){var e,t=this.$createElement,n=[],r=[],i=this.props,o=i.id,a=i.style,s=i.className,l=i.top,c=i.bottom,u=i.position,d=i.push;e="navbar toolbar tabbar subnavbar searchbar messagebar fab list-index".split(" ");var h=this.$slots.default;h&&h.length&&h.forEach((function(t){if(void 0!==t){var i=!1,o=t.tag;if(o){for(var a=0;a<e.length;a+=1)o.indexOf(e[a])>=0&&(i=!0);i?n.push(t):r.push(t)}}}));var f=t("div",{class:"sheet-modal-inner"},[r]),p="bottom";return u?p=u:l?p="top":c&&(p="bottom"),t("div",{ref:"el",style:a,class:Gu.classNames(s,"sheet-modal","sheet-modal-".concat(p),{"sheet-modal-push":d},Xu.colorClasses(i)),attrs:{id:o}},[n,f])},watch:{"props.opened":function(e){this.f7Sheet&&(e?this.f7Sheet.open():this.f7Sheet.close())}},created:function(){Gu.bindMethods(this,["onOpen","onOpened","onClose","onClosed","onStepOpen","onStepClose","onStepProgress"])},mounted:function(){var e=this;if(e.$refs.el){var t=e.props,n=t.opened,r=t.backdrop,i=t.backdropEl,o=t.closeByBackdropClick,a=t.closeByOutsideClick,s=t.closeOnEscape,l=t.swipeToClose,c=t.swipeToStep,u=t.swipeHandler,d={el:e.$refs.el,on:{open:e.onOpen,opened:e.onOpened,close:e.onClose,closed:e.onClosed,stepOpen:e.onStepOpen,stepClose:e.onStepClose,stepProgress:e.onStepProgress}},h=e.$options.propsData;void 0!==h.backdrop&&(d.backdrop=r),void 0!==h.backdropEl&&(d.backdropEl=i),void 0!==h.closeByBackdropClick&&(d.closeByBackdropClick=o),void 0!==h.closeByOutsideClick&&(d.closeByOutsideClick=a),void 0!==h.closeOnEscape&&(d.closeOnEscape=s),void 0!==h.swipeToClose&&(d.swipeToClose=l),void 0!==h.swipeToStep&&(d.swipeToStep=c),void 0!==h.swipeHandler&&(d.swipeHandler=u),e.$f7ready((function(){e.f7Sheet=e.$f7.sheet.create(d),n&&e.f7Sheet.open(!1)}))}},beforeDestroy:function(){this.f7Sheet&&this.f7Sheet.destroy()},methods:{onStepProgress:function(e,t){this.dispatchEvent("sheet:stepprogress sheetStepProgress",e,t)},onStepOpen:function(e){this.dispatchEvent("sheet:stepopen sheetStepOpen",e)},onStepClose:function(e){this.dispatchEvent("sheet:stepclose sheetStepClose",e)},onOpen:function(e){this.dispatchEvent("sheet:open sheetOpen",e)},onOpened:function(e){this.dispatchEvent("sheet:opened sheetOpened",e)},onClose:function(e){this.dispatchEvent("sheet:close sheetClose",e)},onClosed:function(e){this.dispatchEvent("sheet:closed sheetClosed",e)},open:function(e){if(this.f7Sheet)return this.f7Sheet.open(e)},close:function(e){if(this.f7Sheet)return this.f7Sheet.close(e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}};function zh(e){return(zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Vh={name:"f7-skeleton-block",props:Object.assign({id:[String,Number],width:[Number,String],height:[Number,String],tag:{type:String,default:"div"}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.width,a=t.height,s=t.tag,l=Gu.classNames("skeleton-block",n,Xu.colorClasses(t)),c=i;if(o){var u="number"==typeof o?"".concat(o,"px"):o;c?"object"===zh(c)?c=Object.assign({width:u},c):"string"==typeof c&&(c="width: ".concat(u,"; ").concat(c)):c={width:u}}if(a){var d="number"==typeof a?"".concat(a,"px"):a;c?"object"===zh(c)?c=Object.assign({height:d},c):"string"==typeof c&&(c="height: ".concat(d,"; ").concat(c)):c={height:d}}return e(s,{style:c,class:l,attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}};function qh(e){return(qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Wh={name:"f7-skeleton-text",props:Object.assign({id:[String,Number],width:[Number,String],height:[Number,String],tag:{type:String,default:"span"}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.width,a=t.height,s=t.tag,l=Gu.classNames("skeleton-text",n,Xu.colorClasses(t)),c=i;if(o){var u="number"==typeof o?"".concat(o,"px"):o;c?"object"===qh(c)?c=Object.assign({width:u},c):"string"==typeof c&&(c="width: ".concat(u,"; ").concat(c)):c={width:u}}if(a){var d="number"==typeof a?"".concat(a,"px"):a;c?"object"===qh(c)?c=Object.assign({height:d},c):"string"==typeof c&&(c="height: ".concat(d,"; ").concat(c)):c={height:d}}return e(s,{style:c,class:l,attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Gh={name:"f7-stepper",props:Object.assign({id:[String,Number],init:{type:Boolean,default:!0},value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},formatValue:Function,name:String,inputId:String,input:{type:Boolean,default:!0},inputType:{type:String,default:"text"},inputReadonly:{type:Boolean,default:!1},autorepeat:{type:Boolean,default:!1},autorepeatDynamic:{type:Boolean,default:!1},wraps:{type:Boolean,default:!1},manualInputMode:{type:Boolean,default:!1},decimalPoint:{type:Number,default:4},buttonsEndInputMode:{type:Boolean,default:!0},disabled:Boolean,buttonsOnly:Boolean,round:Boolean,roundMd:Boolean,roundIos:Boolean,roundAurora:Boolean,fill:Boolean,fillMd:Boolean,fillIos:Boolean,fillAurora:Boolean,large:Boolean,largeMd:Boolean,largeIos:Boolean,largeAurora:Boolean,small:Boolean,smallMd:Boolean,smallIos:Boolean,smallAurora:Boolean,raised:Boolean,raisedMd:Boolean,raisedIos:Boolean,raisedAurora:Boolean},Xu.colorProps),render:function(){var e,t,n,r=this.$createElement,i=this.props,o=i.input,a=i.buttonsOnly,s=i.inputType,l=i.value,c=i.inputReadonly,u=i.min,d=i.max,h=i.step,f=i.id,p=i.style,m=i.name,v=i.inputId;o&&!a&&(n=r("input",{ref:"inputEl",domProps:{readOnly:c,value:l},on:{input:this.onInput,change:this.onChange},attrs:{name:m,id:v,type:s,min:"number"===s?u:void 0,max:"number"===s?d:void 0,step:"number"===s?h:void 0}}),e=r("div",{class:"stepper-input-wrap"},[n]));return o||a||(t=r("div",{class:"stepper-value"},[l])),r("div",{ref:"el",style:p,class:this.classes,attrs:{id:f}},[r("div",{ref:"minusEl",class:"stepper-button-minus"}),e,t,r("div",{ref:"plusEl",class:"stepper-button-plus"})])},computed:{classes:function(){var e=this.props,t=e.round,n=e.roundIos,r=e.roundMd,i=e.roundAurora,o=e.fill,a=e.fillIos,s=e.fillMd,l=e.fillAurora,c=e.large,u=e.largeIos,d=e.largeMd,h=e.largeAurora,f=e.small,p=e.smallIos,m=e.smallMd,v=e.smallAurora,g=e.raised,y=e.raisedMd,b=e.raisedIos,_=e.raisedAurora,w=e.disabled;return Gu.classNames(this.props.className,"stepper",{disabled:w,"stepper-round":t,"stepper-round-ios":n,"stepper-round-md":r,"stepper-round-aurora":i,"stepper-fill":o,"stepper-fill-ios":a,"stepper-fill-md":s,"stepper-fill-aurora":l,"stepper-large":c,"stepper-large-ios":u,"stepper-large-md":d,"stepper-large-aurora":h,"stepper-small":f,"stepper-small-ios":p,"stepper-small-md":m,"stepper-small-aurora":v,"stepper-raised":g,"stepper-raised-ios":b,"stepper-raised-md":y,"stepper-raised-aurora":_},Xu.colorClasses(e))},props:function(){return td(this)}},created:function(){Gu.bindMethods(this,["onInput","onMinusClick","onPlusClick"])},mounted:function(){var e=this,t=e.$refs,n=t.minusEl,r=t.plusEl;n&&n.addEventListener("click",e.onMinusClick),r&&r.addEventListener("click",e.onPlusClick),e.props.init&&e.$f7ready((function(t){var n=e.props,r=n.min,i=n.max,o=n.value,a=n.step,s=n.formatValue,l=n.autorepeat,c=n.autorepeatDynamic,u=n.wraps,d=n.manualInputMode,h=n.decimalPoint,f=n.buttonsEndInputMode,p=e.$refs.el;p&&(e.f7Stepper=t.stepper.create(Gu.noUndefinedProps({el:p,min:r,max:i,value:o,step:a,formatValue:s,autorepeat:l,autorepeatDynamic:c,wraps:u,manualInputMode:d,decimalPoint:h,buttonsEndInputMode:f,on:{change:function(t,n){e.dispatchEvent("stepper:change stepperChange",n)}}})))}))},beforeDestroy:function(){var e=this.$refs,t=e.minusEl,n=e.plusEl;t&&t.removeEventListener("click",this.onMinusClick),n&&n.removeEventListener("click",this.onPlusClick),this.props.init&&this.f7Stepper&&this.f7Stepper.destroy&&this.f7Stepper.destroy()},methods:{increment:function(){this.f7Stepper&&this.f7Stepper.increment()},decrement:function(){this.f7Stepper&&this.f7Stepper.decrement()},setValue:function(e){this.f7Stepper&&this.f7Stepper.setValue&&this.f7Stepper.setValue(e)},getValue:function(){if(this.f7Stepper&&this.f7Stepper.getValue)return this.f7Stepper.getValue()},onInput:function(e){var t=this.f7Stepper;this.dispatchEvent("input",e,t)},onChange:function(e){var t=this.f7Stepper;this.dispatchEvent("change",e,t)},onMinusClick:function(e){var t=this.f7Stepper;this.dispatchEvent("stepper:minusclick stepperMinusClick",e,t)},onPlusClick:function(e){var t=this.f7Stepper;this.dispatchEvent("stepper:plusclick stepperPlusClick",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},Kh={name:"f7-subnavbar",props:Object.assign({id:[String,Number],sliding:Boolean,title:String,inner:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.inner,r=t.title,i=t.style,o=t.id,a=t.className,s=t.sliding;return e("div",{class:Gu.classNames(a,"subnavbar",{sliding:s},Xu.colorClasses(t)),style:i,attrs:{id:o}},[n?e("div",{class:"subnavbar-inner"},[r&&e("div",{class:"subnavbar-title"},[r]),this.$slots.default]):this.$slots.default])},computed:{props:function(){return td(this)}}},Jh={name:"f7-swipeout-actions",props:Object.assign({id:[String,Number],left:Boolean,right:Boolean,side:String},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.left,r=t.right,i=t.side,o=t.className,a=t.id,s=i;return s||(n&&(s="left"),r&&(s="right")),e("div",{style:t.style,class:Gu.classNames(o,"swipeout-actions-".concat(s),Xu.colorClasses(t)),attrs:{id:a}},[this.$slots.default])},computed:{props:function(){return td(this)}}},Xh={name:"f7-swipeout-button",props:Object.assign({id:[String,Number],text:String,confirmTitle:String,confirmText:String,overswipe:Boolean,close:Boolean,delete:Boolean,href:String},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.overswipe,a=t.delete,s=t.close,l=t.href,c=t.confirmTitle,u=t.confirmText,d=t.text;return e("a",{ref:"el",style:i,class:Gu.classNames(n,{"swipeout-overswipe":o,"swipeout-delete":a,"swipeout-close":s},Xu.colorClasses(t)),attrs:{href:l||"#",id:r,"data-confirm":u||void 0,"data-confirm-title":c||void 0}},[this.$slots.default||[d]])},created:function(){Gu.bindMethods(this,["onClick"])},mounted:function(){this.$refs.el.addEventListener("click",this.onClick)},beforeDestroy:function(){this.$refs.el.removeEventListener("click",this.onClick)},methods:{onClick:function(e){this.dispatchEvent("click",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}},computed:{props:function(){return td(this)}}},Qh={name:"f7-swiper-slide",props:{id:[String,Number],zoom:Boolean},render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.zoom;return e("div",{style:i,class:Gu.classNames(n,"swiper-slide"),attrs:{id:r}},[o?e("div",{class:"swiper-zoom-container"},[this.$slots.default]):this.$slots.default])},computed:{props:function(){return td(this)}}},Zh={name:"f7-swiper",props:Object.assign({id:[String,Number],params:Object,pagination:Boolean,scrollbar:Boolean,navigation:Boolean,init:{type:Boolean,default:!0}},Xu.colorProps),render:function(){var e,t,n,r,i=this.$createElement,o=this.props,a=o.id,s=o.style,l=o.className;return this.paginationComputed&&(e=i("div",{ref:"paginationEl",class:"swiper-pagination"})),this.scrollbarComputed&&(t=i("div",{ref:"scrollbarEl",class:"swiper-scrollbar"})),this.navigationComputed&&(n=i("div",{ref:"nextEl",class:"swiper-button-next"}),r=i("div",{ref:"prevEl",class:"swiper-button-prev"})),i("div",{style:s,ref:"el",class:Gu.classNames(l,"swiper-container",Xu.colorClasses(o)),attrs:{id:a}},[this.$slots["before-wrapper"],i("div",{class:"swiper-wrapper"},[this.$slots.default]),e,t,r,n,this.$slots["after-wrapper"]])},computed:{paginationComputed:function(){var e=this.props,t=e.pagination,n=e.params;return!!(!0===t||n&&n.pagination&&!n.pagination.el)},scrollbarComputed:function(){var e=this.props,t=e.scrollbar,n=e.params;return!!(!0===t||n&&n.scrollbar&&!n.scrollbar.el)},navigationComputed:function(){var e=this.props,t=e.navigation,n=e.params;return!(!0!==t&&(!n||!n.navigation||n.navigation.nextEl||n.navigation.prevEl))},props:function(){return td(this)}},updated:function(){this.initialUpdate?this.swiper&&this.swiper.update&&this.swiper.update():this.initialUpdate=!0},mounted:function(){var e=this;e.props.init&&e.$f7ready((function(t){var n={pagination:{},navigation:{},scrollbar:{}},r=e.props,i=r.params,o=r.pagination,a=r.navigation,s=r.scrollbar;i&&Gu.extend(n,i),o&&!n.pagination.el&&(n.pagination.el=e.$refs.paginationEl),!a||n.navigation.nextEl||n.navigation.prevEl||(n.navigation.nextEl=e.$refs.nextEl,n.navigation.prevEl=e.$refs.prevEl),s&&!n.scrollbar.el&&(n.scrollbar.el=e.$refs.scrollbarEl),e.swiper=t.swiper.create(e.$refs.el,n)}))},beforeDestroy:function(){this.props.init&&this.swiper&&this.swiper.destroy&&this.swiper.destroy()}},ef={name:"f7-tab",props:Object.assign({id:[String,Number],tabActive:Boolean},Xu.colorProps),data:function(){td(this);return{state:{tabContent:null}}},render:function(){var e,t=this.$createElement,n=this.props,r=n.tabActive,i=n.id,o=n.className,a=n.style,s=this.state.tabContent,l=Gu.classNames(o,"tab",{"tab-active":r},Xu.colorClasses(n));return s&&(e=s.component),t("div",{style:a,ref:"el",class:l,attrs:{id:i}},[s?t(e,{key:s.id,props:s.props}):this.$slots.default])},created:function(){Gu.bindMethods(this,["onTabShow","onTabHide"])},updated:function(){this.routerData&&hd.events.emit("tabRouterDidUpdate",this.routerData)},beforeDestroy:function(){this.$f7&&(this.$f7.off("tabShow",this.onTabShow),this.$f7.off("tabHide",this.onTabHide)),this.routerData&&(hd.routers.tabs.splice(hd.routers.tabs.indexOf(this.routerData),1),this.routerData=null,this.eventTargetEl=null,delete this.routerData,delete this.eventTargetEl)},mounted:function(){var e=this,t=e.$refs.el;e.setState({tabContent:null}),e.$f7ready((function(){e.$f7.on("tabShow",e.onTabShow),e.$f7.on("tabHide",e.onTabHide),e.eventTargetEl=t,e.routerData={el:t,component:e,setTabContent:function(t){e.setState({tabContent:t})}},hd.routers.tabs.push(e.routerData)}))},methods:{show:function(e){this.$f7&&this.$f7.tab.show(this.$refs.el,e)},onTabShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},tf={name:"f7-tabs",props:Object.assign({id:[String,Number],animated:Boolean,swipeable:Boolean,routable:Boolean,swiperParams:{type:Object,default:void 0}},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.animated,r=t.swipeable,i=t.id,o=t.style,a=t.className,s=t.routable,l=Gu.classNames(a,Xu.colorClasses(t)),c=Gu.classNames({"tabs-animated-wrap":n,"tabs-swipeable-wrap":r}),u=Gu.classNames({tabs:!0,"tabs-routable":s});return n||r?e("div",{style:o,class:Gu.classNames(c,l),ref:"wrapEl",attrs:{id:i}},[e("div",{class:u},[this.$slots.default])]):e("div",{style:o,class:Gu.classNames(u,l),attrs:{id:i}},[this.$slots.default])},mounted:function(){var e=this.props,t=e.swipeable,n=e.swiperParams;if(t&&n){var r=this.$refs.wrapEl;r&&(r.f7SwiperParams=n)}},computed:{props:function(){return td(this)}}},nf={name:"f7-toolbar",props:Object.assign({id:[String,Number],tabbar:Boolean,labels:Boolean,scrollable:Boolean,hidden:Boolean,noShadow:Boolean,noHairline:Boolean,noBorder:Boolean,position:{type:String,default:void 0},topMd:{type:Boolean,default:void 0},topIos:{type:Boolean,default:void 0},topAurora:{type:Boolean,default:void 0},top:{type:Boolean,default:void 0},bottomMd:{type:Boolean,default:void 0},bottomIos:{type:Boolean,default:void 0},bottomAurora:{type:Boolean,default:void 0},bottom:{type:Boolean,default:void 0},inner:{type:Boolean,default:!0}},Xu.colorProps),data:function(){var e=this;td(this);return{state:function(){var t=e,n=t.$f7;return n||t.$f7ready((function(){t.setState({_theme:t.$theme})})),{_theme:n?t.$theme:null}}()}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.className,o=t.inner,a=t.tabbar,s=t.labels,l=t.scrollable,c=t.hidden,u=t.noShadow,d=t.noHairline,h=t.noBorder,f=t.topMd,p=t.topIos,m=t.topAurora,v=t.top,g=t.bottomMd,y=t.bottomIos,b=t.bottomAurora,_=t.bottom,w=t.position,k=this.state._theme;return e("div",{style:r,ref:"el",class:Gu.classNames(i,"toolbar",{tabbar:a,"toolbar-bottom":k&&k.md&&g||k&&k.ios&&y||k&&k.aurora&&b||_||"bottom"===w,"toolbar-top":k&&k.md&&f||k&&k.ios&&p||k&&k.aurora&&m||v||"top"===w,"tabbar-labels":s,"tabbar-scrollable":l,"toolbar-hidden":c,"no-shadow":u,"no-hairline":d||h},Xu.colorClasses(t)),attrs:{id:n}},[this.$slots["before-inner"],o?e("div",{class:"toolbar-inner"},[this.$slots.default]):this.$slots.default,this.$slots["after-inner"]])},created:function(){Gu.bindMethods(this,["onHide","onShow"])},updated:function(){this.props.tabbar&&this.$f7&&this.$f7.toolbar.setHighlight(this.$refs.el)},mounted:function(){var e=this,t=e.$refs.el;t&&e.$f7ready((function(n){e.eventTargetEl=t,e.props.tabbar&&n.toolbar.setHighlight(t),n.on("toolbarShow",e.onShow),n.on("toolbarHide",e.onHide)}))},beforeDestroy:function(){if(this.$refs.el&&this.$f7){var e=this.$f7;e.off("toolbarShow",this.onShow),e.off("toolbarHide",this.onHide),this.eventTargetEl=null,delete this.eventTargetEl}},methods:{onHide:function(e){this.eventTargetEl===e&&this.dispatchEvent("toolbar:hide toolbarHide")},onShow:function(e){this.eventTargetEl===e&&this.dispatchEvent("toolbar:show toolbarShow")},hide:function(e){this.$f7&&this.$f7.toolbar.hide(this.$refs.el,e)},show:function(e){this.$f7&&this.$f7.toolbar.show(this.$refs.el,e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},rf={props:Object.assign({id:[String,Number],toggle:{type:Boolean,default:void 0},itemToggle:Boolean,selectable:Boolean,selected:Boolean,opened:Boolean,label:String,loadChildren:Boolean,link:{type:[Boolean,String],default:void 0}},Xu.colorProps,{},Xu.linkActionsProps,{},Xu.linkRouterProps,{},Xu.linkIconProps),name:"f7-treeview-item",render:function(){var e,t=this.$createElement,n=this.props,r=n.id,i=n.style,o=n.toggle,a=n.label,s=n.icon,l=n.iconMaterial,c=n.iconF7,u=n.iconMd,d=n.iconIos,h=n.iconAurora,f=n.iconSize,p=n.iconColor,m=n.link,v=this.$slots,g=v.default&&v.default.length||v.children&&v.children.length||v["children-start"]&&v["children-start"].length,y=void 0===o?g:o;(s||l||c||u||d||h)&&(e=t(kd,{attrs:{material:l,f7:c,icon:s,md:u,ios:d,aurora:h,color:p,size:f}}));var b=m||""===m?"a":"div";return t("div",{ref:"el",style:i,class:this.classes,attrs:{id:r}},[t(b,Sd(Object.assign({ref:"rootEl",class:this.itemRootClasses},this.itemRootAttrs)),[this.$slots["root-start"],y&&t("div",{class:"treeview-toggle"}),t("div",{class:"treeview-item-content"},[this.$slots["content-start"],e,this.$slots.media,t("div",{class:"treeview-item-label"},[this.$slots["label-start"],a,this.$slots.label]),this.$slots.content,this.$slots["content-end"]]),this.$slots.root,this.$slots["root-end"]]),g&&t("div",{class:"treeview-item-children"},[this.$slots["children-start"],this.$slots.default,this.$slots.children])])},computed:{itemRootAttrs:function(){var e=this.props,t=e.link,n=t;return!0===t&&(n="#"),!1===t&&(n=void 0),Gu.extend({href:n},Xu.linkRouterAttrs(e),Xu.linkActionsAttrs(e))},itemRootClasses:function(){var e=this.props,t=e.selectable,n=e.selected,r=e.itemToggle;return Gu.classNames("treeview-item-root",{"treeview-item-selectable":t,"treeview-item-selected":n,"treeview-item-toggle":r},Xu.linkRouterClasses(e),Xu.linkActionsClasses(e))},classes:function(){var e=this.props,t=e.className,n=e.opened,r=e.loadChildren;return Gu.classNames(t,"treeview-item",{"treeview-item-opened":n,"treeview-load-children":r},Xu.colorClasses(e))},props:function(){return td(this)}},created:function(){Gu.bindMethods(this,["onClick","onOpen","onClose","onLoadChildren"])},mounted:function(){var e=this,t=e.$refs,n=t.el;t.rootEl.addEventListener("click",e.onClick),n&&(e.eventTargetEl=n,e.$f7ready((function(t){t.on("treeviewOpen",e.onOpen),t.on("treeviewClose",e.onClose),t.on("treeviewLoadChildren",e.onLoadChildren)})))},beforeDestroy:function(){var e=this.$refs,t=e.el;e.rootEl.removeEventListener("click",this.onClick),t&&!this.$f7&&(this.$f7.off("treeviewOpen",this.onOpen),this.$f7.off("treeviewClose",this.onClose),this.$f7.off("treeviewLoadChildren",this.onLoadChildren),this.eventTargetEl=null,delete this.eventTargetEl)},methods:{onClick:function(e){this.dispatchEvent("click",e)},onOpen:function(e){this.eventTargetEl===e&&this.dispatchEvent("treeview:open treeviewOpen",e)},onClose:function(e){this.eventTargetEl===e&&this.dispatchEvent("treeview:close treeviewClose",e)},onLoadChildren:function(e,t){this.eventTargetEl===e&&this.dispatchEvent("treeview:loadchildren treeviewLoadChildren",e,t)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))}}},of={props:Object.assign({id:[String,Number]},Xu.colorProps),name:"f7-treeview",render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id;return e("div",{style:t.style,class:Gu.classNames(n,"treeview",Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},af={name:"f7-view",props:Object.assign({id:[String,Number],tab:Boolean,tabActive:Boolean,name:String,router:Boolean,linksView:[Object,String],url:String,main:Boolean,stackPages:Boolean,xhrCache:Boolean,xhrCacheIgnore:Array,xhrCacheIgnoreGetParameters:Boolean,xhrCacheDuration:Number,preloadPreviousPage:Boolean,allowDuplicateUrls:Boolean,reloadPages:Boolean,reloadDetail:Boolean,masterDetailBreakpoint:Number,removeElements:Boolean,removeElementsWithTimeout:Boolean,removeElementsTimeout:Number,restoreScrollTopOnBack:Boolean,loadInitialPage:Boolean,iosSwipeBack:Boolean,iosSwipeBackAnimateShadow:Boolean,iosSwipeBackAnimateOpacity:Boolean,iosSwipeBackActiveArea:Number,iosSwipeBackThreshold:Number,mdSwipeBack:Boolean,mdSwipeBackAnimateShadow:Boolean,mdSwipeBackAnimateOpacity:Boolean,mdSwipeBackActiveArea:Number,mdSwipeBackThreshold:Number,auroraSwipeBack:Boolean,auroraSwipeBackAnimateShadow:Boolean,auroraSwipeBackAnimateOpacity:Boolean,auroraSwipeBackActiveArea:Number,auroraSwipeBackThreshold:Number,pushState:Boolean,pushStateRoot:String,pushStateAnimate:Boolean,pushStateAnimateOnLoad:Boolean,pushStateSeparator:String,pushStateOnLoad:Boolean,animate:Boolean,transition:String,iosDynamicNavbar:Boolean,iosAnimateNavbarBackIcon:Boolean,materialPageLoadDelay:Number,passRouteQueryToRequest:Boolean,passRouteParamsToRequest:Boolean,routes:Array,routesAdd:Array,routesBeforeEnter:[Function,Array],routesBeforeLeave:[Function,Array],init:{type:Boolean,default:!0}},Xu.colorProps),data:function(){td(this);return{state:{pages:[]}}},render:function(){var e=this.$createElement,t=this.props,n=t.id,r=t.style,i=t.tab,o=t.main,a=t.tabActive,s=t.className,l=Gu.classNames(s,"view",{"view-main":o,"tab-active":a,tab:i},Xu.colorClasses(t));return e("div",{ref:"el",style:r,class:l,attrs:{id:n}},[this.$slots.default,this.state.pages.map((function(t){var n=t.component;return e(n,{key:t.id,props:t.props})}))])},created:function(){Gu.bindMethods(this,["onSwipeBackMove","onSwipeBackBeforeChange","onSwipeBackAfterChange","onSwipeBackBeforeReset","onSwipeBackAfterReset","onTabShow","onTabHide","onViewInit"])},mounted:function(){var e=this,t=e.$refs.el;e.$f7ready((function(n){n.on("tabShow",e.onTabShow),n.on("tabHide",e.onTabHide),e.routerData={el:t,component:e,pages:e.state.pages,instance:null,setPages:function(t){e.setState({pages:t})}},hd.routers.views.push(e.routerData),e.props.init&&(e.routerData.instance=n.views.create(t,Object.assign({on:{init:e.onViewInit}},Gu.noUndefinedProps(e.$options.propsData||{}))),e.f7View=e.routerData.instance,e.f7View.on("swipebackMove",e.onSwipeBackMove),e.f7View.on("swipebackBeforeChange",e.onSwipeBackBeforeChange),e.f7View.on("swipebackAfterChange",e.onSwipeBackAfterChange),e.f7View.on("swipebackBeforeReset",e.onSwipeBackBeforeReset),e.f7View.on("swipebackAfterReset",e.onSwipeBackAfterReset))}))},beforeDestroy:function(){hd.instance&&(hd.instance.off("tabShow",this.onTabShow),hd.instance.off("tabHide",this.onTabHide)),this.f7View&&(this.f7View.off("swipebackMove",this.onSwipeBackMove),this.f7View.off("swipebackBeforeChange",this.onSwipeBackBeforeChange),this.f7View.off("swipebackAfterChange",this.onSwipeBackAfterChange),this.f7View.off("swipebackBeforeReset",this.onSwipeBackBeforeReset),this.f7View.off("swipebackAfterReset",this.onSwipeBackAfterReset),this.f7View.destroy&&this.f7View.destroy()),hd.routers.views.splice(hd.routers.views.indexOf(this.routerData),1),this.routerData=null,delete this.routerData},updated:function(){this.routerData&&hd.events.emit("viewRouterDidUpdate",this.routerData)},methods:{onViewInit:function(e){this.dispatchEvent("view:init viewInit",e),this.props.init||(this.routerData.instance=e,this.f7View=this.routerData.instance)},onSwipeBackMove:function(e){var t=e;this.dispatchEvent("swipeback:move swipeBackMove",t)},onSwipeBackBeforeChange:function(e){var t=e;this.dispatchEvent("swipeback:beforechange swipeBackBeforeChange",t)},onSwipeBackAfterChange:function(e){var t=e;this.dispatchEvent("swipeback:afterchange swipeBackAfterChange",t)},onSwipeBackBeforeReset:function(e){var t=e;this.dispatchEvent("swipeback:beforereset swipeBackBeforeReset",t)},onSwipeBackAfterReset:function(e){var t=e;this.dispatchEvent("swipeback:afterreset swipeBackAfterReset",t)},onTabShow:function(e){e===this.$refs.el&&this.dispatchEvent("tab:show tabShow",e)},onTabHide:function(e){e===this.$refs.el&&this.dispatchEvent("tab:hide tabHide",e)},dispatchEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];rd.apply(void 0,[this,e].concat(n))},setState:function(e,t){fd(this,e,t)}},computed:{props:function(){return td(this)}}},sf={name:"f7-views",props:Object.assign({id:[String,Number],tabs:Boolean},Xu.colorProps),render:function(){var e=this.$createElement,t=this.props,n=t.className,r=t.id,i=t.style,o=t.tabs;return e("div",{style:i,class:Gu.classNames(n,"views",{tabs:o},Xu.colorClasses(t)),attrs:{id:r}},[this.$slots.default])},computed:{props:function(){return td(this)}}},lf=0,cf={proto:{pageComponentLoader:function(e,t,n,r,i,o){var a,s=e;if(hd.routers.views.forEach((function(t){t.el&&t.el===e&&(a=t)})),a){var l,c={component:t,id:"".concat(Gu.now(),"_").concat(lf+=1),props:Gu.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};a.component&&(a.component.$f7router=this,a.component.$f7route=r.route),hd.events.on("viewRouterDidUpdate",(function e(t){if(t===a&&!l){hd.events.off("viewRouterDidUpdate",e);var n=s.children[s.children.length-1];c.el=n,i(n),l=!0}})),a.pages.push(c),a.setPages(a.pages)}else o()},removePage:function(e){if(e){var t,n=this;if((t="length"in e&&e[0]?e[0].f7Page:e.f7Page)&&t.route&&t.route.route&&t.route.route.keepAlive)n.app.$(e).remove();else{var r,i,o;if(hd.routers.views.forEach((function(e){e.el&&e.el===n.el&&(r=e)})),"length"in e){if(0===e.length)return;i=e[0]}else i=e;if(i)r.pages.forEach((function(e,t){e.el===i&&(o=!0,r.pages.splice(t,1),r.setPages(r.pages))})),o||i.parentNode.removeChild(i)}}},tabComponentLoader:function(e,t,n,r,i,o){var a;if(e||o(),hd.routers.tabs.forEach((function(t){t.el&&t.el===e&&(a=t)})),a){var s,l={id:"".concat(Gu.now(),"_").concat(lf+=1),component:t,props:Gu.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};a.component&&(a.component.$f7router=this,a.component.$f7route=r.route),hd.events.on("tabRouterDidUpdate",(function t(n){if(n===a&&!s){hd.events.off("tabRouterDidUpdate",t);var r=e.children[0];i(r),s=!0}})),a.setTabContent(l)}else o()},removeTabContent:function(e){if(e){var t;hd.routers.tabs.forEach((function(n){n.el&&n.el===e&&(t=n)}));var n=t&&t.component;t&&n?t.setTabContent(null):e.innerHTML=""}},modalComponentLoader:function(e,t,n,r,i,o){var a=hd.routers.modals;if(a){var s,l={component:t,id:"".concat(Gu.now(),"_").concat(lf+=1),props:Gu.extend({f7route:r.route,$f7route:r.route,f7router:this,$f7router:this},r.route.params,r.props||{})};a.component&&(a.component.$f7router=this,a.component.$f7route=r.route),hd.events.on("modalsRouterDidUpdate",(function e(){if(!s){hd.events.off("modalsRouterDidUpdate",e);var t=a.el.children[a.el.children.length-1];l.el=t,i(t),s=!0}})),a.modals.push(l),a.setModals(a.modals)}else o()},removeModal:function(e){var t,n=hd.routers.modals;n&&(n.modals.forEach((function(n){n.el===e&&(t=n)})),n.modals.splice(n.modals.indexOf(t),1),n.setModals(n.modals))}}};function uf(e){hd.ready(e)}var df={},hf={name:"phenomePlugin",installed:!1,install:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!hf.installed){hf.installed=!0;var t=this;hd.Framework7=t,hd.events=new t.Events;var n=e.Vue||i.default;i.default.component("f7-accordion-content",nd),i.default.component("f7-accordion-item",id),i.default.component("f7-accordion-toggle",od),i.default.component("f7-accordion",ad),i.default.component("f7-actions-button",sd),i.default.component("f7-actions-group",ld),i.default.component("f7-actions-label",cd),i.default.component("f7-actions",ud),i.default.component("f7-app",md),i.default.component("f7-appbar",vd),i.default.component("f7-badge",gd),i.default.component("f7-block-footer",yd),i.default.component("f7-block-header",bd),i.default.component("f7-block-title",_d),i.default.component("f7-block",wd),i.default.component("f7-button",Ed),i.default.component("f7-card-content",Cd),i.default.component("f7-card-footer",Td),i.default.component("f7-card-header",xd),i.default.component("f7-card",Md),i.default.component("f7-checkbox",$d),i.default.component("f7-chip",Pd),i.default.component("f7-col",Ad),i.default.component("f7-fab-backdrop",Id),i.default.component("f7-fab-button",Dd),i.default.component("f7-fab-buttons",Nd),i.default.component("f7-fab",Rd),i.default.component("f7-gauge",jd),i.default.component("f7-icon",kd),i.default.component("f7-input",Hd),i.default.component("f7-link",Ud),i.default.component("f7-list-button",zd),i.default.component("f7-list-group",Vd),i.default.component("f7-list-index",qd),i.default.component("f7-list-input",Wd),i.default.component("f7-list-item-cell",Gd),i.default.component("f7-list-item-content",Xd),i.default.component("f7-list-item-row",Qd),i.default.component("f7-list-item",Zd),i.default.component("f7-list",eh),i.default.component("f7-login-screen-title",th),i.default.component("f7-login-screen",nh),i.default.component("f7-menu-dropdown-item",rh),i.default.component("f7-menu-dropdown",ih),i.default.component("f7-menu-item",oh),i.default.component("f7-menu",ah),i.default.component("f7-message",sh),i.default.component("f7-messagebar-attachment",lh),i.default.component("f7-messagebar-attachments",ch),i.default.component("f7-messagebar-sheet-image",uh),i.default.component("f7-messagebar-sheet-item",dh),i.default.component("f7-messagebar-sheet",hh),i.default.component("f7-messagebar",fh),i.default.component("f7-messages-title",ph),i.default.component("f7-messages",mh),i.default.component("f7-nav-left",yh),i.default.component("f7-nav-right",wh),i.default.component("f7-nav-title-large",Eh),i.default.component("f7-nav-title",xh),i.default.component("f7-navbar",Mh),i.default.component("f7-page-content",Ph),i.default.component("f7-page",Oh),i.default.component("f7-panel",Ih),i.default.component("f7-photo-browser",Dh),i.default.component("f7-popover",Nh),i.default.component("f7-popup",Rh),i.default.component("f7-preloader",$h),i.default.component("f7-progressbar",jh),i.default.component("f7-radio",Bh),i.default.component("f7-range",Yd),i.default.component("f7-routable-modals",pd),i.default.component("f7-row",Yh),i.default.component("f7-searchbar",Fh),i.default.component("f7-segmented",Hh),i.default.component("f7-sheet",Uh),i.default.component("f7-skeleton-block",Vh),i.default.component("f7-skeleton-text",Wh),i.default.component("f7-stepper",Gh),i.default.component("f7-subnavbar",Kh),i.default.component("f7-swipeout-actions",Jh),i.default.component("f7-swipeout-button",Xh),i.default.component("f7-swiper-slide",Qh),i.default.component("f7-swiper",Zh),i.default.component("f7-tab",ef),i.default.component("f7-tabs",tf),i.default.component("f7-text-editor",Fd),i.default.component("f7-toggle",Bd),i.default.component("f7-toolbar",nf),i.default.component("f7-treeview-item",rf),i.default.component("f7-treeview",of),i.default.component("f7-view",af),i.default.component("f7-views",sf),Object.defineProperty(n.prototype,"$f7",{get:function(){return hd.instance}});var r=e.theme;"md"===r&&(df.md=!0),"ios"===r&&(df.ios=!0),"aurora"===r&&(df.aurora=!0),r&&"auto"!==r||(df.ios=!!t.device.ios,df.aurora=t.device.desktop&&t.device.electron,df.md=!df.ios&&!df.aurora),hd.ready((function(){df.ios="ios"===hd.instance.theme,df.md="md"===hd.instance.theme,df.aurora="aurora"===hd.instance.theme})),Object.defineProperty(n.prototype,"$theme",{get:function(){return{ios:hd.instance?"ios"===hd.instance.theme:df.ios,md:hd.instance?"md"===hd.instance.theme:df.md,aurora:hd.instance?"aurora"===hd.instance.theme:df.aurora}}}),n.prototype.Dom7=t.$,n.prototype.$$=t.$,n.prototype.$device=t.device,n.prototype.$request=t.request,n.prototype.$utils=t.utils,n.prototype.$f7ready=uf,Object.defineProperty(n.prototype,"$f7route",{get:function(){var e;if(this.props&&this.props.f7route)return this.props.f7route;if(this.f7route)return this.f7route;if(this._f7route)return this._f7route;this.$vnode&&this.$vnode.data&&this.$vnode.data.props&&this.$vnode.data.props.f7route&&(e=this.$vnode.data.props.f7route);for(var t=this;t&&!e;)t._f7route&&(e=t._f7route),t=t.$parent;return e},set:function(e){this._f7route=e}}),Object.defineProperty(n.prototype,"$f7router",{get:function(){var e;if(this.props&&this.props.f7router)return this.props.f7router;if(this.f7router)return this.f7router;if(this._f7router)return this._f7router;this.$vnode&&this.$vnode.data&&this.$vnode.data.props&&this.$vnode.data.props.f7route&&(e=this.$vnode.data.props.f7router);for(var t=this;t&&!e;)t._f7router?e=t._f7router:t.f7View?e=t.f7View.router:t.$refs&&t.$refs.el&&t.$refs.el.f7View&&(e=t.$refs.el.f7View.router),t=t.$parent;return e},set:function(e){this._f7router=e}}),t.Router.use(cf)}}},ff=hf,pf=(n(277),n(278),n(279),n(1)),mf=n.n(pf),vf={f7:null,handleSplashscreen:function(){var e=vf.f7;window.navigator.splashscreen&&!e.device.electron&&setTimeout((function(){window.navigator.splashscreen.hide()}),2e3)},handleAndroidBackButton:function(){vf.f7.device.electron||(vf.backButtonTimestamp=(new Date).getTime(),document.addEventListener("backbutton",(function(e){return(new Date).getTime()-vf.backButtonTimestamp<250?(vf.backButtonTimestamp=(new Date).getTime(),window.navigator.app&&window.navigator.app.exitApp&&window.navigator.app.exitApp(),!0):(vf.backButtonTimestamp=(new Date).getTime(),e.preventDefault(),!1)}),!1))},handleKeyboard:function(){var e=vf.f7;if(window.Keyboard&&window.Keyboard.shrinkView&&!e.device.electron){var t=e.$;window.Keyboard.shrinkView(!1),window.Keyboard.disableScrollingInShrinkView(!0),window.Keyboard.hideFormAccessoryBar(!0),window.addEventListener("keyboardWillShow",(function(){e.input.scrollIntoView(document.activeElement,0,!0,!0)})),window.addEventListener("keyboardDidShow",(function(){e.input.scrollIntoView(document.activeElement,0,!0,!0)})),window.addEventListener("keyboardDidHide",(function(){document.activeElement&&t(document.activeElement).parents(".messagebar").length||window.Keyboard.hideFormAccessoryBar(!1)})),window.addEventListener("keyboardHeightWillChange",(function(e){var n=e.keyboardHeight;n>0?(document.body.style.height="calc(100% - ".concat(n,"px)"),t("html").addClass("device-with-keyboard")):(document.body.style.height="",t("html").removeClass("device-with-keyboard"))})),t(document).on("touchstart","input, textarea, select",(function(e){var t=e.target.nodeName.toLowerCase(),n=e.target.type;"select"===t||["datetime-local","time","date","datetime"].indexOf(n)>=0?window.Keyboard.hideFormAccessoryBar(!1):window.Keyboard.hideFormAccessoryBar(!0)}),!0)}},init:function(e){vf.f7=e,vf.handleAndroidBackButton(),vf.handleSplashscreen(),vf.handleKeyboard()}},gf=vf,yf=n(0),bf=n.n(yf);function _f(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function wf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){_f(o,r,i,a,s,"next",e)}function s(e){_f(o,r,i,a,s,"throw",e)}a(void 0)}))}}var kf=n(85),Sf={data:function(){return{myAppVersion:7,userEmail:null,frd_email:null}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},refreshChats:function(e){var t=this;return wf(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.chatOpen){n.next=8;break}return(r={}).email_u=t.userEmail,r.email_f=e,r.domain=t.user[0].domain,n.next=7,t.$store.dispatch("getChatMessagesPlus",r);case 7:t.$store.dispatch("getTypingMessages",r);case 8:case"end":return n.stop()}}),n)})))()},refresh:function(){var e=this;return wf(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n={}).email=e.userEmail,n.domain=e.user[0].domain,e.signed_in&&e.chatOpen&&e.refreshChats(e.frd_email),!e.signed_in||e.chatOpen){t.next=13;break}return t.next=7,e.$store.dispatch("getFriendMatch",n);case 7:return t.next=9,e.$store.dispatch("getUserPersonalDetails",n);case 9:return t.next=11,e.$store.dispatch("getFriendList",n);case 11:return t.next=13,e.$store.dispatch("getTotalMessage",n);case 13:return t.next=15,e.$store.dispatch("userInSpotLight",n);case 15:return t.next=17,e.$store.dispatch("getFriendSpotLight",n);case 17:case"end":return t.stop()}}),t)})))()},sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var o={};o.title=r,o.message_details=i,e.$store.dispatch("pushNotifications",o);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return wf(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return kf(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){this.frd_email=e.email;var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){this.$store.commit("setShowTabs",!0),this.$store.commit("setChatOpen",!1),this.frd_email=null}},computed:{wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},chatOpen:function(){return this.$store.getters.chatOpen},advert_default:function(){return console.log("******** me if call ***********advert_default()",this.$store.getters.advert_default),this.$store.getters.advert_default},photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},app_version:function(){return this.$store.getters.app_version},app_db_version:function(){return this.$store.getters.app_db_version},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message},total_notify:function(){return this.$store.getters.total_notify},signed_in:function(){return this.$store.getters.signed_in}},mounted:function(){},watch:{photoStatus:function(e){e||this.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others.If you have already done, please logout and login again.")}},created:function(){var e=this;return wf(bf.a.mark((function t(){var n,r,i,o;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},e.userEmail=e.user[0].email,n.email=e.user[0].email,console.log("Nosa Nosa payload.email",n.email),n.domain=e.user[0].domain,t.next=7,e.$store.dispatch("getTotalMessage",n);case 7:return t.next=9,e.$store.dispatch("getTotalNotify",n);case 9:return t.next=11,e.$store.dispatch("getFriendMatch",n);case 11:return t.next=13,e.$store.dispatch("getUserPersonalDetails",n);case 13:return t.next=15,e.$store.dispatch("getFriendList",n);case 15:return t.next=17,e.$store.dispatch("getUserPhotoStatus",n);case 17:return t.next=19,e.$store.dispatch("getWallet",n);case 19:return t.next=21,e.$store.dispatch("getFollowers",n);case 21:return t.next=23,e.$store.dispatch("getFriendSpotLight",n);case 23:return e.$store.dispatch("getAdvertDefault"),window.hasOwnProperty("cordova")&&window.plugins.OneSignal.getIds((function(t){if(null!=t){var n={};n.playerID=t.userId,n.pushToken=t.pushToken,n.email=e.user[0].email,n.domain=e.user[0].domain,e.$store.dispatch("sendOneSignalToken",n)}})),setInterval(e.refresh,1e4),t.next=28,e.$store.dispatch("getUserPhotoStatus",n);case 28:return(r=t.sent)||console.log("Thiss_______________________________________-",r),e.checkInternet(),i=4,t.next=34,e.$store.dispatch("getAppDbVersion");case 34:if(o=t.sent,!(i<o)){t.next=39;break}return e.$store.commit("setAlertMessage","This version of the app is not supported anymore. Please update app from the Play Store."),e.$f7router.navigate("/newversion/"),t.abrupt("return");case 39:return t.abrupt("return");case 45:case"end":return t.stop()}}),t)})))()}};n(291);function Ef(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var Cf=Ef(Sf,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("diV",{staticClass:"format_menu"},[n("p",[e._v("Payout"),n("br"),e._v("$"+e._s(Number(e.user_payout).toLocaleString()))])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("\n          Gifts "),n("br"),e._v("\n          "+e._s(e.nFormatter(e.gift))+"\n        ")])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("Wallet"),n("br"),e._v(e._s(e.nFormatter(e.wallet)))])]),e._v(" "),e.total_message>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))])],1):e._e(),e._v(" "),e.total_notify>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"yellow"}},[e._v(e._s(e.total_notify))])],1):e._e(),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.friends,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.latest_message},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url1},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("circle_fill")]),e._v(" "),n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("i",{staticClass:"f7-icons size-29 color-lightgrey"},[e._v("circle_fill")]),e._v(" "),n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{link:"/viewprofile/","popover-close":"",title:"Profile"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/editProfile/","popover-close":"",title:"Settings"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/pay4me/","popover-close":"",title:"Account Topup"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/following/","popover-close":"",title:"Following"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/followers2/","popover-close":"",title:"Followers"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/addPhoto/","popover-close":"",title:"Add Photos"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/match/","popover-close":"",title:"Match"}}),e._v(" "),n("f7-list-item",{attrs:{link:"/usernotifications/","popover-close":"",title:"Notifications"}},[e.total_notify>0?n("f7-badge",{attrs:{color:"yellow"}},[e._v(e._s(e.total_notify))]):e._e()],1)],1)],1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:e.user_details[0].name,subtitle:e.user_details[0].location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":e.user_details[0].birthDate}},[e._v(e._s(e.moment(e.user_details[0].birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details[0].photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n            "+e._s(e.user_details[0].profileMessage)+"\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.email)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,null,null).exports,Tf=Ef({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"About","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("About My App")]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("p",[e._v("Fugiat perspiciatis excepturi, soluta quod non ullam deleniti. Nobis sint nemo consequuntur, fugiat. Eius perferendis animi autem incidunt vel quod tenetur nostrum, voluptate omnis quasi quidem illum consequuntur, a, quisquam.")]),e._v(" "),n("p",[e._v("Laudantium neque magnam vitae nemo quam commodi, in cum dolore obcaecati laborum, excepturi harum, optio qui, consequuntur? Obcaecati dolor sequi nesciunt culpa quia perspiciatis, reiciendis ex debitis, ut tenetur alias.")])]),e._v(" "),n("f7-block",[n("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni molestiae laudantium dignissimos est nobis delectus nemo ea alias voluptatum architecto, amet similique, saepe iste consectetur in repellat ut minus quibusdam!")]),e._v(" "),n("p",[e._v("Molestias et distinctio porro nesciunt ratione similique, magni doloribus, rerum nobis, aliquam quae reiciendis quasi modi. Nam a recusandae, fugiat in ea voluptates fuga eius, velit corrupti reprehenderit dignissimos consequatur!")]),e._v(" "),n("p",[e._v("Blanditiis, cumque quo adipisci. Molestiae, dolores dolorum quos doloremque ipsa ullam eligendi commodi deserunt doloribus inventore magni? Ea mollitia veniam nostrum nihil, iusto doloribus a at! Ea molestiae ullam delectus!")])])],1)}),[],!1,null,null,null).exports,xf=Ef({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"form"}},[n("f7-navbar",{attrs:{title:"Form","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Form Example")]),e._v(" "),n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{label:"Name",type:"text",placeholder:"Your name"}}),e._v(" "),n("f7-list-input",{attrs:{label:"E-mail",type:"email",placeholder:"E-mail"}}),e._v(" "),n("f7-list-input",{attrs:{label:"URL",type:"url",placeholder:"URL"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Password",type:"password",placeholder:"Password"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Phone",type:"tel",placeholder:"Phone"}}),e._v(" "),n("f7-list-input",{attrs:{label:"Gender",type:"select"}},[n("option",[e._v("Male")]),e._v(" "),n("option",[e._v("Female")])]),e._v(" "),n("f7-list-input",{attrs:{label:"Birth date",type:"date",placeholder:"Birth day",defaultValue:"2014-04-30"}}),e._v(" "),n("f7-list-item",{attrs:{title:"Toggle"}},[n("f7-toggle",{attrs:{slot:"after"},slot:"after"})],1),e._v(" "),n("f7-list-input",{attrs:{label:"Range",input:!1}},[n("f7-range",{attrs:{slot:"input",value:50,min:0,max:100,step:1},slot:"input"})],1),e._v(" "),n("f7-list-input",{attrs:{type:"textarea",label:"Textarea",placeholder:"Bio"}}),e._v(" "),n("f7-list-input",{attrs:{type:"textarea",label:"Resizable",placeholder:"Bio",resizable:""}})],1),e._v(" "),n("f7-block-title",[e._v("Buttons")]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col"},[e._v("Button")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{fill:""}},[e._v("Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{raised:""}},[e._v("Raised")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{raised:"",fill:""}},[e._v("Raised Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{round:""}},[e._v("Round")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{round:"",fill:""}},[e._v("Round Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{outline:""}},[e._v("Outline")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{round:"",outline:""}},[e._v("Outline Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{small:"",outline:""}},[e._v("Small")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{small:"",round:"",outline:""}},[e._v("Small Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{small:"",fill:""}},[e._v("Small")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{small:"",round:"",fill:""}},[e._v("Small Round")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{large:"",raised:""}},[e._v("Large")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:""}},[e._v("Large Fill")])],1),e._v(" "),n("f7-row",{attrs:{tag:"p"}},[n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:"",color:"red"}},[e._v("Large Red")]),e._v(" "),n("f7-button",{staticClass:"col",attrs:{large:"",fill:"",raised:"",color:"green"}},[e._v("Large Green")])],1)],1),e._v(" "),n("f7-block-title",[e._v("Checkbox group")]),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Books",title:"Books"}}),e._v(" "),n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Movies",title:"Movies"}}),e._v(" "),n("f7-list-item",{attrs:{checkbox:"",name:"my-checkbox",value:"Food",title:"Food"}})],1),e._v(" "),n("f7-block-title",[e._v("Radio buttons group")]),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Books",title:"Books"}}),e._v(" "),n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Movies",title:"Movies"}}),e._v(" "),n("f7-list-item",{attrs:{radio:"",name:"radio",value:"Food",title:"Food"}})],1)],1)}),[],!1,null,null,null).exports,Mf=Ef({data:function(){return{products:this.$f7.data.products}}},(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",{attrs:{name:"catalog"}},[t("f7-navbar",{attrs:{title:"Catalog"}}),this._v(" "),t("f7-list",this._l(this.products,(function(e){return t("f7-list-item",{key:e.id,attrs:{title:e.title,link:"/product/"+e.id+"/"}})})),1)],1)}),[],!1,null,null,null).exports,$f=Ef({},void 0,void 0,!1,null,null,null).exports,Pf=n(22),Of=n.n(Pf),Lf=n(2),Af=n.n(Lf);function If(e){return(If="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Df(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Nf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Df(o,r,i,a,s,"next",e)}function s(e){Df(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Rf,jf,Bf,Yf={name:"app",components:{Media:Of.a},data:function(){return{last_photo:null,moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0,photo_url:null,photo_state:0,videofile:!1}},watch:{back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{appUpdate:function(){return this.$store.getters.appUpdate},top_page:function(){return this.$store.getters.top_page},bottom_page:function(){return this.$store.getters.bottom_page},back_page:function(){return this.$store.getters.back_page},forward_page:function(){return this.$store.getters.forward_page},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:(Rf={nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},nextPicture:function(){if(this.photo_state++,this.videofile=!1,this.photo_state<=this.friend.photo_number){if(1==this.photo_state&&(this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1),2==this.photo_state){var e=!0;""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1)}3==this.photo_state&&(e=!0,""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.last_photo=this.friend.photo_url6,this.photo_url=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1)),4==this.photo_state&&(e=!0,""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1)),5==this.photo_state&&(e=!0,""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1)),6==this.photo_state&&(e=!0,""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.last_photo=this.friend.photo_url5,this.photo_url=this.friend.photo_url5,this.videofile=!0,e=!1))}else this.photo_state=1,this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1},handle:function(){var e=this;setTimeout((function(){e.$refs.fish.play()}),2e3)},onlineUsers:function(){var e=this;return Nf(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=mf.a.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},ilike:function(){var e=this;return Nf(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={email:"nosa.osahon@gmail.com",gender:"F",domain:"penpalamerica.com"},(r=e).$f7.request.post("https://penpalamerica.com/penpal/userpenpal.php",n,(function(e){var t=JSON.parse(e);r.$store.commit("setContacts",t)}));case 4:case"end":return t.stop()}}),t)})))()},idontlike:function(){var e=this;return Nf(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={email:"nosa.osahon@gmail.com",gender:"F",domain:"penpalamerica.com"},(r=e).$f7.request.post("https://penpalamerica.com/penpal/userpenpal.php",n,(function(e){var t=JSON.parse(e);console.log(e),r.$store.commit("setContacts",t)}));case 4:case"end":return t.stop()}}),t)})))()},checkInternet:function(){var e=this;return Nf(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=mf.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},jf="initHome",Bf=function(){this.$store.commit("setShowTabs",!0)},(jf=function(e){var t=function(e,t){if("object"!=If(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=If(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==If(t)?t:t+""}(jf))in Rf?Object.defineProperty(Rf,jf,{value:Bf,enumerable:!0,configurable:!0,writable:!0}):Rf[jf]=Bf,Rf),created:function(){var e=this;return Nf(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.$f7route.params.frd,e.friend=JSON.parse(n),e.friend_Details=e.friend,e.friend_uid_chat=e.friend.uid,e.photo_url=e.friend.photo_url1,console.log(e.friend),e.photo_state=1,e.last_photo=e.friend.photo_url1,e.checkInternet(),e.checkInternet();case 10:case"end":return t.stop()}}),t)})))()}},Ff=(n(293),Ef(Yf,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("f7-link",{attrs:{fill:"","popup-open":".demo-popup"}},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},slot:"media"})])],1),e._v(" "),n("f7-nav-right")],1),e._v(" "),e.videofile?n("div",{attrs:{id:"video"}},[n("Media",{ref:"fish",style:{width:"100%"},attrs:{kind:"video",muted:!0,src:e.photo_url,autoplay:!0,controls:!0,loop:!0},on:{pause:function(t){return e.handle()}}}),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>0?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):e._e(),e._v(" "),n("f7-col")],1)],1)],1):n("div",{attrs:{align:"center"}},[n("f7-list",{attrs:{"media-list":""}},[e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:e.photo_url},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n          , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(t.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(t.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br")],1)})),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>1?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):n("span",[e._v(" Press Back Button to continue ")]),e._v(" "),n("f7-col")],1)],1)],2)],1),e._v("\n\n  |\n")],1)}),[],!1,null,"4f858e18",null).exports);function Hf(e){return(Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uf(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function zf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Uf(o,r,i,a,s,"next",e)}function s(e){Uf(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Vf={name:"app",components:{Media:Of.a},data:function(){return{last_photo:null,moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0,photo_url:null,photo_state:0,videofile:!1}},watch:{back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{wallet:function(){return this.$store.getters.wallet},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},top_page:function(){return this.$store.getters.top_page},bottom_page:function(){return this.$store.getters.bottom_page},back_page:function(){return this.$store.getters.back_page},forward_page:function(){return this.$store.getters.forward_page},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Hf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({reportUser:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Reason for Reporting",text:"1. Sending nude pictures<br>2. Abusive language<br>3. Indecent conversation<br>4. Others",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="tel" placeholder="Enter number"  required validate pattern="[1-4]*" data-error-message="Only numbers from 1 to 4" maxlength="1"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if("1"==r||"2"==r||"3"==r||"4"==r){var i={};i.email_u=e.user[0].email,i.email_f=e.friend.email,i.domain=e.user[0].domain,i.userAbuse=r,e.$store.dispatch("reportUserToAdmin",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Select Reason for Reporting the user")},on:{open:function(){}}}).open()},unBlockUser:function(e){var t={};t.email_u=this.user[0].email,t.email_f=this.friend.email,t.domain=this.user[0].domain,this.$store.dispatch("unBlockUser",t),this.$f7.popover.close()},blockUser:function(e){var t={};t.email_u=this.user[0].email,t.email_f=this.friend.email,t.domain=this.user[0].domain,console.log(t),this.$store.dispatch("blockUser",t),this.$f7.popover.close()},giftVenus:function(e){var t=this,n=0,r="";if(1==e&&(n=100,r="Sending Venus Gift to "),2==e&&(n=500,r="Sending Mars Gift to "),3==e&&(n=1e3,r="Sending Jupiter Gift to "),this.wallet<n)this.$f7.dialog.create({title:"Wallet too low to gift "+this.friend.name,text:"Your wallet is too low. Please click TopUp Account to continue",content:"",buttons:[{text:"Cancel",close:!0},{text:"Topup Account"}],onClick:function(e,n){if(1==n){var r=t.$f7;t.$f7router.navigate("/pay4me/",{}),t.$f7.dialog.close(),r.panel.close()}},on:{open:function(){}}}).open();else this.$f7.dialog.create({title:r+this.friend.name,text:"You are about to send "+n+" Points to "+this.friend.name+". Please click send to confirm",content:"",buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(e,r){if(1==r){var i=t.$f7,o={};o.email_f=t.friend.email,o.email_u=t.user[0].email,o.domain=t.user[0].domain,o.amount=n,o.name=t.friend.name,t.$store.dispatch("sendGiftVenus",o),t.$f7.dialog.close(),i.panel.close()}},on:{open:function(){}}}).open()},nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},unMatch:function(e,t){var n=this;this.$f7.dialog.create({title:"Unmatch ".concat(t,"?"),text:"This will remove ".concat(t," from your friend list and communication between two of you will not be possible again. Please can you confirm you want this?"),content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,r){if(1==r){var i=n.$f7,o={};o.email_u=n.user[0].email,o.email_f=e,o.domain=n.user[0].domain;n.$store.dispatch("unMatchUser",o);n.$f7.dialog.close(),i.panel.close(),n.$f7.popover.close(),n.$store.commit("setAlertMessage","Done. Account Unmatched! Please close the popup.")}},on:{open:function(){}}}).open()},nextPicture:function(){if(this.photo_state++,this.videofile=!1,this.photo_state<=this.friend.photo_number){if(1==this.photo_state&&(this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1),2==this.photo_state){var e=!0;""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1)}if(3==this.photo_state){e=!0;""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.last_photo=this.friend.photo_url6,this.photo_url=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1)}if(4==this.photo_state){e=!0;""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.photo_url=this.friend.photo_url4,this.last_photo=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.last_photo=this.friend.photo_url2,this.photo_url=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1)}if(5==this.photo_state){e=!0;""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.photo_url=this.friend.photo_url5,this.last_photo=this.friend.photo_url5,this.videofile=!0,e=!1),""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.last_photo=this.friend.photo_url3,this.photo_url=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1)}if(6==this.photo_state){e=!0;""!=this.friend.photo_url6&&e&&this.last_photo!=this.friend.photo_url6&&(this.photo_url=this.friend.photo_url6,this.last_photo=this.friend.photo_url6,this.videofile=!0,e=!1),""!=this.friend.photo_url2&&e&&this.last_photo!=this.friend.photo_url2&&(this.photo_url=this.friend.photo_url2,this.last_photo=this.friend.photo_url2,e=!1),""!=this.friend.photo_url3&&e&&this.last_photo!=this.friend.photo_url3&&(this.photo_url=this.friend.photo_url3,this.last_photo=this.friend.photo_url3,e=!1),""!=this.friend.photo_url4&&e&&this.last_photo!=this.friend.photo_url4&&(this.last_photo=this.friend.photo_url4,this.photo_url=this.friend.photo_url4,e=!1),""!=this.friend.photo_url5&&e&&this.last_photo!=this.friend.photo_url5&&(this.last_photo=this.friend.photo_url5,this.photo_url=this.friend.photo_url5,this.videofile=!0,e=!1)}}else this.photo_state=1,this.photo_url=this.friend.photo_url1,this.last_photo=this.friend.photo_url1},checkInternet:function(){var e=this;return zf(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=mf.a.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),created:function(){var e=this;return zf(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.$f7route.params.frd,e.friend=JSON.parse(n),e.friend_Details=e.friend,e.friend_uid_chat=e.friend.uid,e.photo_url=e.friend.photo_url1,e.photo_state=1,e.last_photo=e.friend.photo_url1,e.checkInternet(),e.checkInternet();case 9:case"end":return t.stop()}}),t)})))()}},qf=(n(294),Ef(Vf,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"viewuserprofile"}},[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},slot:"media"})]),e._v(" "),n("f7-nav-right")],1),e._v(" "),e.videofile?n("div",{attrs:{id:"video"}},[n("Media",{ref:"fish",style:{width:"100%",height:"auto"},attrs:{kind:"video",muted:!0,src:e.photo_url,autoplay:!0,controls:!0,loop:!0}}),e._v(" "),n("f7-list",{staticClass:"wrapper",attrs:{"media-list":""}},[n("f7-list-item",{attrs:{swipeout:"",subtitle:e.friend.name}},["M"==e.friend.gender?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" M")]):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" F")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n           "+e._s(e.moment(e.friend.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.friend.location))]),e._v(" \n\n        "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(e.friend.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"","text-align":"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(e.friend.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(e.friend.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(e.friend.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(e.friend.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br")],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>0?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):e._e(),e._v(" "),n("f7-col")],1)],1)],1):n("div",[n("f7-list",{staticClass:"wrapper",attrs:{"media-list":""}},[n("f7-list-item",{attrs:{swipeout:"",subtitle:e.friend.name}},["M"==e.friend.gender?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" M")]):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(" F")]),e._v(" "),n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:e.photo_url},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n           "+e._s(e.moment(e.friend.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(e.friend.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(e.friend.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"","text-align":"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(e.friend.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(e.friend.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(e.friend.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(e.friend.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",[e._v("Send "),n("b",[e._v(e._s(e.friend.name))]),e._v(" A gift\n          ")]),e._v(" "),n("f7-col",[n("f7-link",{on:{click:function(t){return e.giftVenus(1)}}},[n("a",{staticClass:"link tooltip-init",attrs:{href:"#","data-tooltip":"Gift: Venus"}},[n("i",{staticClass:"f7-icons color-lime size-16"},[e._v("cube_box_fill")])])])],1),e._v(" "),n("f7-col",[n("f7-link",{on:{click:function(t){return e.giftVenus(2)}}},[n("a",{staticClass:"link tooltip-init",attrs:{href:"#","data-tooltip":"Gift: Mars"}},[n("i",{staticClass:"f7-icons color-deeppurple size-16"},[e._v("gift_fill")])])])],1),e._v(" "),n("f7-col",[n("f7-link",{on:{click:function(t){return e.giftVenus(3)}}},[n("a",{staticClass:"link tooltip-init",attrs:{href:"#","data-tooltip":"Gift: Jupitar"}},[n("i",{staticClass:"f7-icons color-teal size-16"},[e._v("gift_alt_fill")])])])],1)],1),e._v(" "),n("br"),e._v(" "),n("br")],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{gap:""}},[n("f7-col"),e._v(" "),e.friend.photo_number>1?n("f7-col",[n("f7-button",{attrs:{fill:""},on:{click:e.nextPicture}},[e._v("Next")])],1):e._e()],1)],1)],1)],1),e._v(" "),n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",[n("p",{attrs:{"text-align":"center"}},[n("f7-link",{staticClass:"formatLinks",on:{click:function(t){return e.blockUser(e.friend.email)}}},[e._v("\n          Block\n        ")])],1)]),e._v(" "),n("f7-col",[n("p",{attrs:{"text-align":"center"}},[n("f7-link",{staticClass:"formatLinks",on:{click:function(t){return e.unBlockUser(e.friend.email)}}},[e._v("\n          Unblock\n        ")])],1)]),e._v(" "),n("f7-col",[n("p",{attrs:{"text-align":"center"}},[n("f7-link",{staticClass:"formatLinks",on:{click:function(t){return e.reportUser()}}},[e._v(" Report ")])],1)]),e._v(" "),n("f7-col",[n("p",{attrs:{"text-align":"center"}},[n("f7-link",{staticClass:"formatLinks",on:{click:function(t){return e.unMatch(e.friend.email,e.friend.name)}}},[e._v("\n          UnMatch\n        ")])],1)])],1)],1)}),[],!1,null,"25cdfa52",null).exports),Wf=Ef({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Dynamic Route","back-link":"Back"}}),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("ul",[n("li",[n("b",[e._v("Url:")]),e._v(" "+e._s(e.$f7route.url))]),e._v(" "),n("li",[n("b",[e._v("Path:")]),e._v(" "+e._s(e.$f7route.path))]),e._v(" "),n("li",[n("b",[e._v("Hash:")]),e._v(" "+e._s(e.$f7route.hash))]),e._v(" "),n("li",[n("b",[e._v("Params:")]),e._v(" "),n("ul",e._l(e.$f7route.params,(function(t,r){return n("li",{key:r},[n("b",[e._v(e._s(r)+":")]),e._v(" "+e._s(t))])})),0)]),e._v(" "),n("li",[n("b",[e._v("Query:")]),e._v(" "),n("ul",e._l(e.$f7route.query,(function(t,r){return n("li",{key:r},[n("b",[e._v(e._s(r)+":")]),e._v(" "+e._s(t))])})),0)]),e._v(" "),n("li",[n("b",[e._v("Route:")]),e._v(" "+e._s(e.$f7route.route.path))])])]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("f7-link",{on:{click:function(t){return e.$f7router.back()}}},[e._v("Go back via Router API")])],1)],1)}),[],!1,null,null,null).exports,Gf=Ef({data:function(){return{user:this.$f7route.context.user}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:e.user.firstName+" "+e.user.lastName,"back-link":"Back"}}),e._v(" "),n("f7-block",{attrs:{strong:""}},[e._v("\n    "+e._s(e.user.about)+"\n  ")]),e._v(" "),n("f7-list",e._l(e.user.links,(function(e,t){return n("f7-list-item",{key:t,attrs:{link:e.url,title:e.title,external:"",target:"_blank"}})})),1)],1)}),[],!1,null,null,null).exports,Kf=Ef({},(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",[t("f7-navbar",{attrs:{title:"Not found","back-link":"Back"}}),this._v(" "),t("f7-block",{attrs:{strong:""}},[t("p",[this._v("Sorry")]),this._v(" "),t("p",[this._v("Requested content not found.")])])],1)}),[],!1,null,null,null).exports,Jf=n(18),Xf={computed:{alert_message:function(){return this.$store.getters.alert_message},quit_application:function(){return this.$store.getters.quit_application}},watch:{alert_message:function(e){var t=this;null!=e&&(this.showToastBottom(e),setTimeout((function(){t.$store.commit("setAlertMessage",null)}),200))},quit_application:function(e){null!=e&&(this.quitAppDialogue(e),this.$store.commit("setQuitApplication",null))}},methods:{showToastBottom:function(e){this.toastBottom&&!this.toastBottom.destroyed||(this.toastBottom=this.$f7.toast.create({text:e,closeTimeout:4e3,position:"center",destroyOnClose:!0})),this.toastBottom.open()},quitAppDialogue:function(e){var t=this;this.$f7.dialog.create({title:"Quit",text:"Are you sure you want to quit Application?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(e,n){var r=t.$f7;1==n?(t.$store.commit("setQuitApplication",null),t.$f7.dialog.close(),r.panel.close(),window.hasOwnProperty("cordova")&&window.navigator.app.exitApp()):(t.$store.commit("setQuitApplication",null),t.$f7.dialog.close(),r.panel.close())},on:{open:function(){}}}).open()}}};n(13);function Qf(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var Zf={data:function(){return{email:null,password:null,time_left:-1,app_agree:!1}},mixins:[Xf],computed:{show_resend_email:function(){return this.$store.getters.show_resend_email},pageStatus:function(){return this.$store.getters.pageStatus}},methods:{myFunction:function(){},userConsent:function(){var e={country:"Nigeria",phonenumber:"2348022225545"},t=JSON.stringify(e);this.$store.commit("setAlertMessage","Phone Verified"),this.$f7router.navigate("/signup/"+encodeURIComponent(t))},onCheckBoxChange:function(){},getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},forgetPassword:function(){var e=this,t=mf.a.auth();null!=this.email?t.sendPasswordResetEmail(this.email).then((function(){e.$store.commit("setAlertMessage","A reset email has been sent to your inbox")})).catch((function(t){e.$store.commit("setAlertMessage",t)})):e.$store.commit("setAlertMessage","Please enter your email")},color:function(e){return e<=0?"#007aff":"gray"},resendEmail:function(){this.time_left<=0&&(this.$store.dispatch("sendVerification"),this.countDown())},countDown:function(){var e=this;e.time_left=20;var t=Object(Jf.setInterval)((function(){e.time_left-=1,e.time_left<=0&&Object(Jf.clearInterval)(t)}),1e3)},signIn:function(){var e,t=this;return(e=bf.a.mark((function e(){var n,r;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.hasOwnProperty("cordova")){e.next=7;break}return e.next=3,t.$store.dispatch("checkConnection");case 3:if("offline"!=e.sent){e.next=7;break}return t.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),e.abrupt("return");case 7:if(null==t.email||null==t.password){e.next=19;break}return(n={}).email=t.email,n.password=t.password,ed.dialog.preloader("Logging you to the App.<br>First time might take long.<br>Please wait..."),e.next=14,t.$store.dispatch("signIn",n);case 14:r=e.sent,ed.dialog.close(),"1"==r&&t.$store.commit("setAlertMessage","Please Verify Your Email..."),e.next=20;break;case 19:t.$store.commit("setAlertMessage","Provide valid email and password to continue... ");case 20:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Qf(o,r,i,a,s,"next",e)}function s(e){Qf(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){}},ep=(n(295),Ef(Zf,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{staticClass:"page-one",attrs:{name:"signin","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Penpal America")]),e._v(" "),n("div",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.email,label:"E-mail",type:"email",placeholder:"Your e-mail","clear-button":"",validate:""},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.password,label:"Password",type:"password",placeholder:"Your password","clear-button":""},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.signIn}},[e._v("Sign in")]),e._v(" "),n("br"),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[e.show_resend_email?n("f7-link",{attrs:{color:e.color(e.time_left)},on:{click:e.resendEmail}},[e._v("\n          Resend Confirmation Email\n          "),e.time_left>0?n("span",[e._v("  "+e._s(e.time_left))]):e._e()]):e._e(),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.userConsent}},[e._v("Don't have an account? Sign up")]),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.forgetPassword}},[e._v("Forget Password")]),e._v(" "),n("br")],1)],1)],1)],1)}),[],!1,null,"f7f10fc0",null).exports);function tp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function np(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){tp(o,r,i,a,s,"next",e)}function s(e){tp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var rp={data:function(){return{user_agree_general:!1,email:null,password:null,time_left:-1,app_agree:!1}},mixins:[Xf],computed:{show_resend_email:function(){return this.$store.getters.show_resend_email},pageStatus:function(){return this.$store.getters.pageStatus}},methods:{onUserConsentChange:function(e){e.target.value;e.target.checked?this.user_agree_general=!0:this.user_agree_general=!1},myFunction:function(){},userConsent:function(){var e=this;console.log("james");var t=!1;this.$f7.dialog.create({title:"App User's Consent Required",text:"",content:"<div class='page' data-page='home' style='height: 300px; position:relative'><div class='page-content infinite-scroll-content' style='overflow: auto'><div class='list simple-list'><h2>Privacy Policy</h2><p>Swift Alliance builds the Penpal America App as a social network app. This SERVICE is provided by Swift Alliance at no cost and is intended for use as is.</p><p> This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.   </p> <p> If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. we will not use or share your information with anyone except as described in this Privacy Policy.   </p> <p> The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Penpal America unless otherwise defined in this Privacy Policy.   </p> <p><strong>Information Collection and Use</strong></p> <p> For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to Contacts in your Phonebook,Your Phone Number,Your Profile Picture. The information that we request will be securely saved on our secure Servers, we will never share these information without your permission. <br>  your name, number, and your profile Picture will be available publicly to other users.   </p> <p> The app does use third party services that may collect information used to identify you. </p><div><p> we want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.   </p>    <p><strong>Permissions we request</strong></p> <p> <ul>   <li>Contacts: to be able to communicate with your Friends that are in your Contacts</li>   <li>Camera: to be able to Take Pictures/Videos and to be able to make Video Calls.</li>   <li>Microphpone: to be able to send Voice Messages and also to be able to make Voice/Video Calls.</li>   <li>Storage: to save the Sent/Received Files in your Device</li> </ul>   </p>    <p><strong>Cookies</strong></p> <p> Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.   </p> <p> This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.   </p> <p><strong>Service Providers</strong></p> <p> we may employ third-party companies and individuals due to the following reasons:   </p> <ul><li>To facilitate our Service;</li> <li>To provide the Service on our behalf;</li> <li>To perform Service-related services; or</li> <li>To assist us in analyzing how our Service is used.</li></ul> <p> we want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.   </p> <p><strong>Security</strong></p> <p> we value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.   </p> <p><strong>Links to Other Sites</strong></p> <p> This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. we have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.   </p> <p><strong>Children’s Privacy</strong></p> <p> These Services do not address anyone under the age of 13. we do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.   </p> <p><strong>Changes to This Privacy Policy</strong></p> <p> we may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. we will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.   </p> <p><strong>Contact Us</strong></p> <p> If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us at support@penpalamerica.com   </p>  <div class='list media-list'><label class='item-checkbox item-content'><input type='checkbox' name='demo-media-checkbox' value ='1' /><i class='icon icon-checkbox'></i><p>I agree with the above conditions.</p></label></div></div><div class='preloader infinite-scroll-preloader'></div></div></div>",buttons:[{text:"Decline",close:!0},{text:"I Agree"}],onClick:function(n,r){if(1==r)if(t){var i=e.$f7;e.$f7router.navigate("/phoneverify/"),e.$f7.dialog.close(),i.panel.close()}else e.$store.commit("setAlertMessage","Scroll to bottom page to accept Terms & Conditions before continuing. ")},on:{open:function(){}}}).open();(0,this.Dom7)('[name="demo-media-checkbox"]').on("change",(function(e){t=!!e.target.checked}))},onCheckBoxChange:function(){},getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},forgetPassword:function(){var e=this;return np(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e,mf.a.auth(),null==e.email){t.next=14;break}return r="",(i={}).email=e.email,i.domain="penpalamerica.com",t.next=9,n.$store.dispatch("resetPassword",i);case 9:r=t.sent,console.log(r),"0"==r?n.$store.commit("setAlertMessage","We have sent an email to ".concat(i.email," to reset your password")):n.$store.commit("setAlertMessage","We cannot find account associated with the email"),t.next=15;break;case 14:n.$store.commit("setAlertMessage","Please enter your email");case 15:case"end":return t.stop()}}),t)})))()},color:function(e){return e<=0?"#007aff":"gray"},resendEmail:function(){if(null!=this.email){if(this.time_left<=0){var e={};e.email=this.email,e.domain="penpalamerica.com",this.$store.dispatch("sendVerification",e),this.countDown()}}else this.$store.commit("setAlertMessage","Please provide your valid email")},countDown:function(){var e=this;e.time_left=20;var t=Object(Jf.setInterval)((function(){e.time_left-=1,e.time_left<=0&&Object(Jf.clearInterval)(t)}),1e3)},signIn:function(){var e=this;return np(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.user_agree_general){t.next=3;break}return e.$store.commit("setAlertMessage","Please agree to the terms and conditions before continuing with signin"),t.abrupt("return");case 3:if(!window.hasOwnProperty("cordova")){t.next=10;break}return t.next=6,e.$store.dispatch("checkConnection");case 6:if("offline"!=t.sent){t.next=10;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 10:if(null==e.email||null==e.password){t.next=20;break}return(n={}).email=e.email,n.password=e.password,t.next=16,e.$store.dispatch("signInMySQL",n);case 16:"1"==t.sent&&e.$store.commit("setAlertMessage","Please Verify Your Email..."),t.next=21;break;case 20:e.$store.commit("setAlertMessage","Provide valid email and password to continue... ");case 21:case"end":return t.stop()}}),t)})))()},individualMigration:function(){mf.a.database().ref("users").child("6HKyTaBMx1NyTgSHlzNJM6uafwH2").once("value",(function(e){var t,n=(t=new Date(e.dateCreated)).getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds(),r=(t=new Date(e.lastSeen)).getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds(),i={birthDate:e.birthDate,country:e.country,dateCreated:n,email:e.email,emailverified:e.emailverified,gender:e.gender,lastSeen:r,location:e.location,name:e.name,phonenumber:e.phonenumber,photoUpload:e.photoUpload,photo_url1:e.photo_url,profileMessage:e.profileMessage,userToken:e.userToken,userType:e.userType,domain:"penpalamerica.com"};Uu.request.post("https://penpalamerica.com/penpal/migrationpenpal.php",i,function(){var e=np(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("-1"!=t){e.next=3;break}return e.next=3,mf.a.database().ref("users").child("6HKyTaBMx1NyTgSHlzNJM6uafwH2").update({migrated:!0}).catch((function(e){console.log(e.message)}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}))}},created:function(){}},ip=(n(296),Ef(rp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pageStatus?n("f7-page",{staticClass:"page-one",attrs:{name:"signin","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Penpal America")]),e._v(" "),n("div",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.email,label:"E-mail",type:"email",placeholder:"Your e-mail","clear-button":"",validate:""},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.password,label:"Password",type:"password",placeholder:"Your password","clear-button":""},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.signIn}},[e._v("Sign in")]),e._v(" "),n("br"),e._v(" "),n("div",{staticClass:"list media-list",staticStyle:{"text-align":"center",color:"red","font-size":"smaller"}},[n("label",{staticClass:"item-checkbox item-content"},[n("input",{attrs:{type:"checkbox",name:"demo-media-checkbox"},on:{change:e.onUserConsentChange}}),e._v(" "),n("i",{staticClass:"icon icon-checkbox"}),e._v(" "),n("p",[e._v("\n            By clicking on the checkbox, you agree with our terms and\n            conditions below.\n          ")])])]),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[e.show_resend_email?n("f7-link",{attrs:{color:e.color(e.time_left)},on:{click:e.resendEmail}},[e._v("\n          Resend Confirmation Email\n          "),e.time_left>0?n("span",[e._v("  "+e._s(e.time_left))]):e._e()]):e._e(),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.userConsent}},[e._v("Don't have an account? Sign up")]),e._v(" "),n("br"),e._v(" "),n("f7-link",{on:{click:e.forgetPassword}},[e._v("Forget Password")]),e._v(" "),n("br"),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/terms.html",external:""}},[e._v("Terms and Conditions |\n        ")]),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/privacy.html",external:""}},[e._v("Privacy")])],1)],1)],1)],1):e._e()}),[],!1,null,"02edad00",null).exports),op={data:function(){return{email:null,password:null,time_left:-1,app_agree:!1}},methods:{gotoSignIn:function(){this.$f7router.navigate("/signin/")},gotoHome:function(){this.$f7router.navigate("/../index.html/",External)}},created:function(){}},ap=(n(297),Ef(op,(function(){var e=this.$createElement,t=this._self._c||e;return t("f7-page",{attrs:{name:"firstpage","no-swipeback":""}},[t("div",{staticClass:"page-one",attrs:{align:"center"}},[t("f7-block",[t("h1",[t("font",{attrs:{color:"white"}},[this._v("Welcome to Penpal America")])],1),this._v(" "),t("h3",[t("font",{attrs:{color:"white"}},[this._v("Register today to chat with Americans")])],1),this._v(" "),t("div",{staticClass:"halfcol"},[t("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:this.gotoSignIn}},[this._v("Get Started")]),this._v(" "),t("br")],1)])],1)])}),[],!1,null,"64c62117",null).exports);function sp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var lp={mixins:[Xf],f7Page:Oh,f7LoginScreenTitle:th,f7List:eh,f7ListItem:Zd,f7ListButton:zd,f7BlockFooter:yd,f7ListInput:Wd,data:function(){return{name:null,email:null,password:null,phonenumber:null,country:null,gender:null,lastseen:null,location:null,profileMessage:null,dateofbirth:null,tempPayload:null}},computed:{pageStatus:function(){return this.$store.getters.pageStatus},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},signed_up:function(){return this.$store.getters.signed_up},valid_inputs:function(){return this.$store.getters.valid_inputs}},watch:{signed_up:function(e){1==e&&this.$f7router.navigate("/signin/")},valid_inputs:function(e){}},methods:{getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},signUp:function(){var e,t=this;return(e=bf.a.mark((function e(){var n,r,i,o,a,s,l,c;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,(r={}).phonenumber=t.phonenumber,r.country=t.country,r.userToken="web",!t.name){e.next=16;break}if(!(t.name.length<3)){e.next=13;break}return n.$store.dispatch("verifyInputs","Name must be 3 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 13:r.name=t.name;case 14:e.next=19;break;case 16:return n.$store.dispatch("verifyInputs","Enter Your Name ( 3 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 19:if(!t.email){e.next=23;break}r.email=t.email,e.next=26;break;case 23:return n.$store.dispatch("verifyInputs","Enter Valid Email Address"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 26:if(!t.password){e.next=36;break}if(!(t.password.length<6)){e.next=33;break}return n.$store.dispatch("verifyInputs","Password must be 6 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 33:r.password=t.password;case 34:e.next=39;break;case 36:return n.$store.dispatch("verifyInputs","Enter Your Password ( 6 characters long minimum )"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 39:if(!t.dateofbirth){e.next=53;break}if(i=new Date(t.dateofbirth),o=new Date,a=o-i,!(Math.floor(a/315576e5)<18)){e.next=50;break}return n.$store.dispatch("verifyInputs","Service is for Persons 18+"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 50:r.dateofbirth=Af()(String(t.dateofbirth)).format("YYYY/MM/DD/");case 51:e.next=56;break;case 53:return n.$store.dispatch("verifyInputs","Please Enter your age"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 56:if(!t.location){e.next=66;break}if(!(t.location.length<2)){e.next=63;break}return n.$store.dispatch("verifyInputs","location must be 2 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 63:r.location=t.location;case 64:e.next=69;break;case 66:return n.$store.dispatch("verifyInputs","Enter Your location ( 2 characters long minimum )"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 69:if(!t.gender){e.next=73;break}r.gender=t.gender,e.next=76;break;case 73:return n.$store.dispatch("verifyInputs","Select Gender from the list"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 76:if(!t.profileMessage){e.next=86;break}if(!(t.profileMessage.length<10)){e.next=83;break}return n.$store.dispatch("verifyInputs","Profile Message must be 10 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 83:r.profileMessage=t.profileMessage;case 84:e.next=89;break;case 86:return n.$store.dispatch("verifyInputs","Enter Profile Message ( 10 characters long minimum)"),n.$store.dispatch("resetVerifyInputs"),e.abrupt("return");case 89:if(r.photoURL=t.image_url,r.userType="1",r.userStatus="offline",r.lastSeen=Date.now(),r.photoUpload="false",!t.valid_inputs){e.next=102;break}if(!n.files){e.next=102;break}return e.next=98,n.$store.dispatch("uploadImageMySQL",n.files[0]);case 98:s=e.sent,console.log("image not surURL",s),r.photoUpload="true",r.photoURL=s;case 102:l=(l=(l=(l=(l=(l=t.country).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),"M"==r.gender?r.genderSearch="F":r.genderSearch="M",c={photoUpload:r.photoUpload,password:r.password,name:r.name,email:r.email,payment_method:r.email,phonenumber:t.phonenumber,location:r.location,profileMessage:r.profileMessage,country:l,gender:r.gender,genderSearch:r.genderSearch,birthDate:r.dateofbirth,photo_url1:r.photoURL,domain:"penpalamerica.com"},t.$f7.request.post("https://penpalamerica.com/penpal/registerpenpal.php",c,(function(e){if(console.log(e),"0"==e)return n.$store.commit("setSignedUp",!0),n.$store.commit("setPageStatus",!0),n.$store.commit("setAlertMessage","A verification email has been sent to ".concat(r.email)),void n.$f7router.navigate("/firstpage/");"-1"!=e?"1"!=e?"3"!=e?"2"!=e?n.$store.commit("setAlertMessage","Unknow Error Occurred during registration. Please try later."):n.$store.commit("setAlertMessage","Some SignUp Fields are misssing"):n.$store.commit("setAlertMessage","User already exists (phonenumber)"):n.$store.commit("setAlertMessage","User already exists (email)"):n.$store.commit("setAlertMessage","Database Error! Please try again or contact Admin")}));case 111:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){sp(o,r,i,a,s,"next",e)}function s(e){sp(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){this.$store.commit("setSignedUp",!1);var e=this.$f7route.params.phone,t=JSON.parse(e);this.phonenumber=t.phonenumber,this.country=t.country}},cp=(n(298),Ef(lp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pageStatus?n("f7-page",{attrs:{name:"signup","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Sign Up")]),e._v(" "),n("f7-navbar",{attrs:{title:"Sign up","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Display name",required:"",validate:""},domProps:{value:e.name},on:{input:function(t){e.name=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("E-mail")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"email",placeholder:"Your e-mail",required:"",validate:""},domProps:{value:e.email},on:{input:function(t){e.email=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Gender")]),e._v(" "),n("div",{staticClass:"item-input-wrap input-dropdown-wrap"},[n("select",{attrs:{placeholder:"Please choose..."},domProps:{value:e.gender},on:{input:function(t){e.gender=t.target.value}}},[n("option",{attrs:{value:"M"}},[e._v("Male")]),e._v(" "),n("option",{attrs:{value:"F"}},[e._v("Female")])])])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Password")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"password",placeholder:"Your password"},domProps:{value:e.password},on:{input:function(t){e.password=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Birthday")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"date",placeholder:"Please choose..."},domProps:{value:e.dateofbirth},on:{input:function(t){e.dateofbirth=t.target.value}}})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Location")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Your Present location"},domProps:{value:e.location},on:{input:function(t){e.location=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("span",{attrs:{"v-if":e.valid_inputs}}),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Message")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("textarea",{staticClass:"resizable",attrs:{placeholder:"Your Profile Message",maxlength:"200"},domProps:{value:e.profileMessage},on:{input:function(t){e.profileMessage=t.target.value}}})])])])])]),e._v(" "),n("div",[n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.signUp}},[e._v("Sign up")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}}),e._v(" "),n("br"),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/terms.html",external:""}},[e._v("Terms and Conditions |\n      ")]),e._v(" "),n("f7-link",{attrs:{href:"https://penpalamerica.com/privacy.html",external:""}},[e._v("Privacy")])],1)],1)],1):e._e()}),[],!1,null,"d7d66df0",null).exports);function up(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var dp={mixins:[Xf],data:function(){return{name:null,email:null,password:null}},computed:{user:function(){return this.$store.getters.user},group_image_url:function(){return this.$store.getters.group_image_url},display_name:{get:function(){return this.$store.getters.display_name},set:function(e){this.$store.commit("setDisplayName",e)}},user_location:{get:function(){return this.$store.getters.user_location},set:function(e){this.$store.commit("setUserLocation",e)}},profile_message:{get:function(){return this.$store.getters.profile_message},set:function(e){this.$store.commit("setProfileMessage",e)}},uploadFile:{get:function(){return this.$store.getters.uploadFile},set:function(e){this.$store.commit("setUploadFile",e)}},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{uploadFile:function(e){if(e>0){this.$f7.progressbar.set("#demo-inline-progressbar",e)}e>99&&this.$store.commit("setUploadFile",0)}},methods:{launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},updateProfile:function(e){var t,n=this;return(t=bf.a.mark((function e(){var t,r,i;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=n).display_name.length<2)){e.next=4;break}return t.$store.commit("setAlertMessage","Display name is too short"),e.abrupt("return");case 4:if(!(t.user_location.length<2)){e.next=7;break}return t.$store.commit("setAlertMessage","Your location is too short"),e.abrupt("return");case 7:if(!(t.profile_message.length<10)){e.next=10;break}return t.$store.commit("setAlertMessage","profile message is too short"),e.abrupt("return");case 10:if(!t.files){e.next=33;break}return e.next=13,t.$store.dispatch("uploadImageMySQL",t.files[0]);case 13:return r=e.sent,(i={}).email=t.user[0].email,i.name=t.display_name,i.location=t.user_location,i.profileMessage=t.profile_message,i.domain=t.user[0].domain,i.photo_url1=r,e.next=23,n.$store.dispatch("updateUserProfile",i);case 23:if("0"!=e.sent){e.next=30;break}return e.next=27,n.$store.dispatch("getUserPersonalDetails",i);case 27:t.$store.commit("setAlertMessage","Your profile has been updated"),e.next=31;break;case 30:t.$store.commit("setAlertMessage","Sorry we cannot update your profile at this time");case 31:e.next=49;break;case 33:return(i={}).email=t.user[0].email,i.name=t.display_name,i.location=t.user_location,i.profileMessage=t.profile_message,i.domain=t.user[0].domain,e.next=41,n.$store.dispatch("updateUserProfile",i);case 41:if("0"!=e.sent){e.next=48;break}return e.next=45,n.$store.dispatch("getUserPersonalDetails",i);case 45:t.$store.commit("setAlertMessage","Your profile has been updated"),e.next=49;break;case 48:t.$store.commit("setAlertMessage","Sorry we cannot update your profile at this time");case 49:case"end":return e.stop()}}),e)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){up(o,r,i,a,s,"next",e)}function s(e){up(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){null!=this.user[0].photo_url1&&this.$store.commit("setImageURL",this.user[0].photo_url1),null!=this.user[0].name&&this.$store.commit("setDisplayName",this.user[0].name),null!=this.user[0].location&&this.$store.commit("setUserLocation",this.user[0].location),null!=this.user[0].profileMessage&&this.$store.commit("setProfileMessage",this.user[0].profileMessage)}},hp=(n(299),Ef(dp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"editprofile"}},[n("f7-navbar",{attrs:{title:"Edit Profile","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("div",{staticClass:"align-center"},[n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Display Name")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Display name",required:"",validate:""},domProps:{value:e.display_name},on:{input:function(t){e.display_name=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Your Location")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Enter Your Location",required:"",validate:""},domProps:{value:e.user_location},on:{input:function(t){e.user_location=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])]),e._v(" "),n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Profile Message")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("textarea",{staticClass:"resizable",attrs:{placeholder:"Enter Your Profile Message",maxlength:"200"},domProps:{value:e.profile_message},on:{input:function(t){e.profile_message=t.target.value}}})])])])])]),e._v(" "),n("f7-block",[e.uploadFile>0?n("div",[n("p",[n("f7-progressbar",{attrs:{progress:0,id:"demo-inline-progressbar"}})],1)]):e._e(),e._v(" "),n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.updateProfile(!0)}}},[e._v("Update Profile")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})],1)],1)],1)}),[],!1,null,"e77ca5ee",null).exports);function fp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var pp={name:"app",components:{mixins:[Xf],Media:Of.a},data:function(){return{name:null,email:null,password:null,photoURL:null,addvideo:"https://penpalamerica.com/images/addvideo.jpg"}},computed:{delete_photo2:function(){return this.$store.getters.delete_photo2},delete_photo3:function(){return this.$store.getters.delete_photo3},delete_photo4:function(){return this.$store.getters.delete_photo4},delete_photo5:function(){return this.$store.getters.delete_photo5},delete_photo6:function(){return this.$store.getters.delete_photo6},user:function(){return this.$store.getters.user},image_url:function(){return this.$store.getters.image_url},image_url1:function(){return this.$store.getters.image_url1},image_url2:function(){return this.$store.getters.image_url2},image_url3:function(){return this.$store.getters.image_url3},image_url4:function(){return this.$store.getters.image_url4},image_url5:function(){return this.$store.getters.image_url5},image_url6:function(){return this.$store.getters.image_url6},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{},methods:{deletePhoto:function(e){var t=this;this.$f7.dialog.create({title:"Delete Photo?",text:"Do you want to Delete this Photo?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(n,r){if(1==r){var i=t.$f7,o={};o.email=t.user[0].email,o.domain=t.user[0].domain,o.url=e,t.$store.dispatch("deletePhoto",o),t.$f7.dialog.close(),i.panel.close()}},on:{open:function(){}}}).open()},launchFilePicker:function(e){"1"==e&&(this.photoURL="1"),"2"==e&&(this.photoURL="2"),"3"==e&&(this.photoURL="3"),"4"==e&&(this.photoURL="4"),"5"==e&&(this.photoURL="5"),"6"==e&&(this.photoURL="6"),this.$refs.file.click()},onFilePicked:function(){var e,t=this;return(e=bf.a.mark((function e(){var n,r,i,o;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,r="setImageURL"+t.photoURL,(i={}).action_name=r,i.url=t.photoURL,e.next=7,t.$store.dispatch("readFilePlus",i);case 7:if(!n.files){e.next=16;break}return(o={}).files=n.files[0],o.url=t.photoURL,o.email=n.user[0].email,o.domain=n.user[0].domain,e.next=15,n.$store.dispatch("uploadImageMySQLAddPhoto",o);case 15:e.sent;case 16:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){fp(o,r,i,a,s,"next",e)}function s(e){fp(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){null!=this.user[0].photo_url1&&this.$store.commit("setImageURL1",this.user[0].photo_url1),""!=this.user[0].photo_url2&&(this.$store.commit("setDeletePhoto2",!0),this.$store.commit("setImageURL2",this.user[0].photo_url2)),""!=this.user[0].photo_url3&&(this.$store.commit("setDeletePhoto3",!0),this.$store.commit("setImageURL3",this.user[0].photo_url3)),""!=this.user[0].photo_url4&&(this.$store.commit("setDeletePhoto4",!0),this.$store.commit("setImageURL4",this.user[0].photo_url4)),""!=this.user[0].photo_url5&&(this.$store.commit("setDeletePhoto5",!0),this.$store.commit("setImageURL5",this.user[0].photo_url5)),""!=this.user[0].photo_url6&&(this.$store.commit("setDeletePhoto6",!0),this.$store.commit("setImageURL6",this.user[0].photo_url6)),null!=this.user[0].name&&this.$store.commit("setDisplayName",this.user[0].name),null!=this.user[0].location&&this.$store.commit("setUserLocation",this.user[0].location),null!=this.user[0].profileMessage&&this.$store.commit("setProfileMessage",this.user[0].profileMessage)}},mp=(n(300),Ef(pp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"addphoto"}},[n("f7-navbar",{attrs:{title:"Add Photos","back-link":"Back"}}),e._v(" "),n("f7-block",[n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Profile Picture")]),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url1,alt:""},on:{click:function(t){return e.launchFilePicker(1)}}})])]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo2?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(2)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url2,alt:""},on:{click:function(t){return e.launchFilePicker(2)}}})])])],1),e._v(" "),n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo3?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(3)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url3,alt:""},on:{click:function(t){return e.launchFilePicker(3)}}})])]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo4?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(4)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url4,alt:""},on:{click:function(t){return e.launchFilePicker(4)}}})])])],1),e._v(" "),n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("Media",{ref:"fish",style:{width:"50%",align:"left"},attrs:{kind:"video",muted:!0,src:e.image_url5,autoplay:!1,controls:!0,loop:!0}}),n("br"),e._v(" "),n("img",{staticClass:"img-class",attrs:{src:e.addvideo,alt:""},on:{click:function(t){return e.launchFilePicker(5)}}}),e._v(" "),e.delete_photo5?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(5)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e()],1)]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("Media",{ref:"fish",style:{width:"50%"},attrs:{kind:"video",muted:!0,src:e.image_url6,autoplay:!1,controls:!0,loop:!0}}),n("br"),e._v(" "),n("img",{staticClass:"img-class",attrs:{src:e.addvideo,alt:""},on:{click:function(t){return e.launchFilePicker(6)}}}),e._v(" "),e.delete_photo6?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(6)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e()],1)])],1)],1),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})])],1)],1)}),[],!1,null,"97334af2",null).exports);function vp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var gp={name:"app",components:{mixins:[Xf],Media:Of.a},data:function(){return{name:null,email:null,password:null,photoURL:null,addvideo:"https://penpalamerica.com/images/addvideo.jpg"}},computed:{delete_photo2:function(){return this.$store.getters.delete_photo2},delete_photo3:function(){return this.$store.getters.delete_photo3},delete_photo4:function(){return this.$store.getters.delete_photo4},delete_photo5:function(){return this.$store.getters.delete_photo5},delete_photo6:function(){return this.$store.getters.delete_photo6},user:function(){return this.$store.getters.user},image_url:function(){return this.$store.getters.image_url},image_url1:function(){return this.$store.getters.image_url1},image_url2:function(){return this.$store.getters.image_url2},image_url3:function(){return this.$store.getters.image_url3},image_url4:function(){return this.$store.getters.image_url4},image_url5:function(){return this.$store.getters.image_url5},image_url6:function(){return this.$store.getters.image_url6},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{},methods:{deletePhoto:function(e){var t=this;this.$f7.dialog.create({title:"Delete Photo?",text:"Do you want to Delete this Photo?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(n,r){if(1==r){var i=t.$f7,o={};o.email=t.user[0].email,o.domain=t.user[0].domain,o.url=e,t.$store.dispatch("deletePhoto",o),t.$f7.dialog.close(),i.panel.close()}},on:{open:function(){}}}).open()},launchFilePicker:function(e){"1"==e&&(this.photoURL="1"),"2"==e&&(this.photoURL="2"),"3"==e&&(this.photoURL="3"),"4"==e&&(this.photoURL="4"),"5"==e&&(this.photoURL="5"),"6"==e&&(this.photoURL="6"),this.$refs.file.click()},onFilePicked:function(){var e,t=this;return(e=bf.a.mark((function e(){var n,r,i,o;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,r="setImageURL"+t.photoURL,(i={}).action_name=r,i.url=t.photoURL,e.next=7,t.$store.dispatch("readFilePlus",i);case 7:if(!n.files){e.next=16;break}return(o={}).files=n.files[0],o.url=t.photoURL,o.email=n.user[0].email,o.domain=n.user[0].domain,e.next=15,n.$store.dispatch("uploadImageMySQLAddPhoto",o);case 15:e.sent;case 16:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){vp(o,r,i,a,s,"next",e)}function s(e){vp(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){null!=this.user[0].photo_url1&&this.$store.commit("setImageURL1",this.user[0].photo_url1),""!=this.user[0].photo_url2&&(this.$store.commit("setDeletePhoto2",!0),this.$store.commit("setImageURL2",this.user[0].photo_url2)),""!=this.user[0].photo_url3&&(this.$store.commit("setDeletePhoto3",!0),this.$store.commit("setImageURL3",this.user[0].photo_url3)),""!=this.user[0].photo_url4&&(this.$store.commit("setDeletePhoto4",!0),this.$store.commit("setImageURL4",this.user[0].photo_url4)),""!=this.user[0].photo_url5&&(this.$store.commit("setDeletePhoto5",!0),this.$store.commit("setImageURL5",this.user[0].photo_url5)),""!=this.user[0].photo_url6&&(this.$store.commit("setDeletePhoto6",!0),this.$store.commit("setImageURL6",this.user[0].photo_url6)),null!=this.user[0].name&&this.$store.commit("setDisplayName",this.user[0].name),null!=this.user[0].location&&this.$store.commit("setUserLocation",this.user[0].location),null!=this.user[0].profileMessage&&this.$store.commit("setProfileMessage",this.user[0].profileMessage)}},yp=(n(301),Ef(gp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"addphotoVideo"}},[n("f7-navbar",{attrs:{title:"Add Photos/Videos","back-link":"Back"}}),e._v(" "),n("f7-block",[n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Profile Picture")]),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url1,alt:""},on:{click:function(t){return e.launchFilePicker(1)}}})])]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photos/Videos")]),e._v(" "),e.delete_photo2?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(2)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url2,alt:""},on:{click:function(t){return e.launchFilePicker(2)}}})])])],1),e._v(" "),n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo3?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(3)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url3,alt:""},on:{click:function(t){return e.launchFilePicker(3)}}})])]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("span",{staticStyle:{"font-size":"10px","margin-left":"5px"}},[e._v("Add Photo")]),e._v(" "),e.delete_photo4?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(4)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e(),e._v(" "),n("br"),e._v(" "),n("img",{staticClass:"image--cover",attrs:{src:e.image_url4,alt:""},on:{click:function(t){return e.launchFilePicker(4)}}})])])],1),e._v(" "),n("f7-row",[n("f7-col",[n("div",{staticClass:"wrapper"},[n("Media",{ref:"fish",style:{width:"50%",align:"left"},attrs:{kind:"video",muted:!0,src:e.image_url5,autoplay:!1,controls:!0,loop:!0}}),n("br"),e._v(" "),n("img",{staticClass:"img-class",attrs:{src:e.addvideo,alt:""},on:{click:function(t){return e.launchFilePicker(5)}}}),e._v(" "),e.delete_photo5?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(5)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e()],1)]),e._v(" "),n("f7-col",[n("div",{staticClass:"wrapper"},[n("Media",{ref:"fish",style:{width:"50%"},attrs:{kind:"video",muted:!0,src:e.image_url6,autoplay:!1,controls:!0,loop:!0}}),n("br"),e._v(" "),n("img",{staticClass:"img-class",attrs:{src:e.addvideo,alt:""},on:{click:function(t){return e.launchFilePicker(6)}}}),e._v(" "),e.delete_photo6?n("span",[n("f7-link",{on:{click:function(t){return e.deletePhoto(6)}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("bin_xmark_fill")])])],1):e._e()],1)])],1)],1),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})])],1)],1)}),[],!1,null,"e4d58888",null).exports);function bp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var _p=n(85),wp={data:function(){return{userEmail:null}},methods:{editPaymentMethod:function(){var e=this;this.$f7.dialog.create({title:"Enter New PayPal Email",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New PayPal Email" maxlength="100"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.paypal=r,i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("editPayPal",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},formatNumber:function(e){return _p(e).format("0,0.00")}},computed:{photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details}},watch:{},created:function(){return(e=bf.a.mark((function e(){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){bp(o,r,i,a,s,"next",e)}function s(e){bp(o,r,i,a,s,"throw",e)}a(void 0)}))})();var e}},kp=(n(302),Ef(wp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{"back-link":"Back",title:e.user_details[0].name,subtitle:e.user_details[0].location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":e.user_details[0].birthDate}},[e._v(e._s(e.moment(e.user_details[0].birthDate,"YYYYMMDD").fromNow(!0)))])])]),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details[0].photo_url1}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n        "+e._s(e.user_details[0].profileMessage)+"\n      ")])]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(e.user_details[0].fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(e.user_details[0].following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(e.user_details[0].gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(e.user_details[0].wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n        "+e._s(this.user_details[0].email)+" --\x3e Only you see this\n      ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n        "+e._s(this.user_details[0].phonenumber)+" --\x3e Only you see this\n      ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("PayPal (Gifts Payment)")]),e._v(" "),n("br"),e._v("\n        "+e._s(this.user_details[0].payment_method)+" "),n("f7-link",{on:{click:function(t){return e.editPaymentMethod()}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("pencil")])])],1)]),e._v(" "),n("br"),e._v(" "),n("br")],1)],1)}),[],!1,null,"67f565ce",null).exports);function Sp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var Ep={mixins:[Xf],props:{f7router:{}},data:function(){return{name:null,email:null,password:null}},computed:{user:function(){return this.$store.getters.user},upload_button:function(){return this.$store.getters.upload_button},group_image_url:function(){return this.$store.getters.group_image_url},uploadFile:{get:function(){return this.$store.getters.uploadFile},set:function(e){this.$store.commit("setUploadFile",e)}},image_url:function(){return this.$store.getters.image_url},files:function(){return this.$store.getters.files},photo_url:function(){return this.$store.getters.photo_url}},watch:{uploadFile:function(e){if(e>0){this.$f7.progressbar.set("#demo-inline-progressbar",e)}e>99&&this.$store.commit("setUploadFile",0)}},methods:{launchFilePicker:function(){this.$refs.file.click()},signOut:function(){this.$store.dispatch("signOut")},onFilePicked:function(){this.$store.dispatch("readFile","setImageURL")},updateProfile:function(e){var t,n=this;return(t=bf.a.mark((function e(){var t,r,i;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=n).files){e.next=19;break}return console.log("files to update",t.files[0]),(r={}).email=t.user[0].email,r.photo=t.files[0],r.domain=t.user[0].domain,e.next=9,t.$store.dispatch("uploadImageMySQLPlus",r);case 9:if(i=e.sent,console.log("nosablue",i),"0"!=i){e.next=16;break}return t.$store.dispatch("signOutPlus"),e.abrupt("return");case 16:t.$store.commit("setAlertMessage","Sorry Profile Picture could not be updated now");case 17:e.next=20;break;case 19:t.$store.commit("setAlertMessage","Select an Image File before continue with the upload");case 20:case"end":return e.stop()}}),e)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){Sp(o,r,i,a,s,"next",e)}function s(e){Sp(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){this.$store.commit("setGroupImageURL","https://penpalamerica.com/images/profilepicture.png"),null!=this.photo_url&&this.$store.commit("setImageURL",this.photo_url)}},Cp=(n(303),Ef(Ep,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"editprofile"}},[e.upload_button?n("div",[n("f7-navbar",{attrs:{title:"Upload Your Picture","back-link":"Back"}})],1):n("div",[n("f7-navbar",{attrs:{title:"Upload Your Picture"}})],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.image_url,alt:""},on:{click:e.launchFilePicker}}),e._v(" "),e.upload_button?n("p",{staticStyle:{color:"blue"}},[e._v("\n      Click the back button to continue\n    ")]):n("p",{staticStyle:{color:"red"}},[e._v("\n      Update Your Profile before chatting with Pals...\n    ")])]),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[e.uploadFile>0?n("div",[n("p",[n("f7-progressbar",{attrs:{progress:0,id:"demo-inline-progressbar"}})],1)]):e._e(),e._v(" "),e.upload_button?n("div",[n("p",[e._v("Update Profile")])]):n("div",[n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.updateProfile(!0)}}},[e._v("Update Profile")])],1),e._v(" "),n("div",[n("br"),n("br"),e._v(" "),n("f7-button",{attrs:{raised:""},on:{click:function(t){return e.signOut(!0)}}},[e._v("Sign Out")])],1),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})])],1)])}),[],!1,null,"dce451f4",null).exports),Tp=n(272),xp=n.n(Tp),Mp=(n(304),{components:{VuePhoneNumberInput:xp.a,f7Page:Oh,f7LoginScreenTitle:th,f7List:eh,f7ListItem:Zd,f7ListButton:zd,f7BlockFooter:yd,f7ListInput:Wd},data:function(){return{confirmationResult:null,phonenumber:null,phoneNumber2:null,phoneNumber3:"0665656565",defaultCountry:"",countriesList:[],countriesIgnored:[],translations:{countrySelectorLabel:"Code pays",countrySelectorError:"Choisir un pays",phoneNumberLabel:"Numéro de téléphone"},results:{},results2:{},results3:{},dark:!1,disabled:!1,hasLoaderActive:!1,hasErrorActive:!1,status:!1,phNo:"",appVerifier:"",otp:""}},methods:{getOS:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n},getCountryName:function(e){var t="";switch(e){case"AF":t="Afghanistan";break;case"AL":t="Albania";break;case"DZ":t="Algeria";break;case"AS":t="American Samoa";break;case"AD":t="Andorra";break;case"AO":t="Angola";break;case"AI":t="Anguilla";break;case"AQ":t="Antarctica";break;case"AG":t="Antigua and Barbuda";break;case"AR":t="Argentina";break;case"AM":t="Armenia";break;case"AW":t="Aruba";break;case"AU":t="Australia";break;case"AT":t="Austria";break;case"AZ":t="Azerbaijan";break;case"BS":t="Bahamas";break;case"BH":t="Bahrain";break;case"BD":t="Bangladesh";break;case"BB":t="Barbados";break;case"BY":t="Belarus";break;case"BE":t="Belgium";break;case"BZ":t="Belize";break;case"BJ":t="Benin";break;case"BM":t="Bermuda";break;case"BT":t="Bhutan";break;case"BO":t="Bolivia";break;case"BQ":t="Bonaire";break;case"BA":t="Bosnia Herzegovina";break;case"BW":t="Botswana";break;case"IO":t="Br. Indian Ocean Terr.";break;case"VG":t="Br. Virgin Isds";break;case"BR":t="Brazil";break;case"BN":t="Brunei Darussalam";break;case"BG":t="Bulgaria";break;case"BF":t="Burkina Faso";break;case"BI":t="Burundi";break;case"CV":t="Cabo Verde";break;case"KH":t="Cambodia";break;case"CM":t="Cameroon";break;case"CA":t="Canada";break;case"KY":t="Cayman Isds";break;case"CF":t="Central African Rep.";break;case"TD":t="Chad";break;case"CL":t="Chile";break;case"CN":t="China";break;case"HK":t="China, Hong Kong SAR";break;case"MO":t="China, Macao SAR";break;case"CX":t="Christmas Isds";break;case"CC":t="Cocos Isds";break;case"CO":t="Colombia";break;case"KM":t="Comoros";break;case"CG":t="Congo";break;case"CK":t="Cook Isds";break;case"CR":t="Costa Rica";break;case"CI":t="Côte d'Ivoire";break;case"HR":t="Croatia";break;case"CU":t="Cuba";break;case"CW":t="Curaçao";break;case"CY":t="Cyprus";break;case"CZ":t="Czechia";break;case"CS":t="Czechoslovakia";break;case"KP":t="Dem. People's Rep. of Korea";break;case"CD":t="Dem. Rep. of the Congo";break;case"DK":t="Denmark";break;case"DJ":t="Djibouti";break;case"DM":t="Dominica";break;case"DO":t="Dominican Rep.";break;case"PK":t="East and West Pakistan";break;case"EC":t="Ecuador";break;case"EG":t="Egypt";break;case"SV":t="El Salvador";break;case"GQ":t="Equatorial Guinea";break;case"ER":t="Eritrea";break;case"EE":t="Estonia";break;case"ET":t="Ethiopia";break;case"EU":t="EU-28";break;case"FO":t="Faeroe Isds";break;case"FK":t="Falkland Isds (Malvinas)";break;case"FJ":t="Fiji";break;case"FI":t="Finland";break;case"YE":t="Fmr Arab Rep. of Yemen";break;case"DD":t="Fmr Dem. Rep. of Germany";break;case"VD":t="Fmr Dem. Rep. of Vietnam";break;case"YD":t="Fmr Dem. Yemen";break;case"ET":t="Fmr Ethiopia";break;case"DE":t="Fmr Fed. Rep. of Germany";break;case"PC":t="Fmr Pacific Isds";break;case"PA":t="Fmr Panama, excl.Canal Zone";break;case"PZ":t="Fmr Panama-Canal-Zone";break;case"VN":t="Fmr Rep. of Vietnam";break;case"SD":t="Fmr Sudan";break;case"SU":t="Fmr USSR";break;case"YU":t="Fmr Yugoslavia";break;case"FQ":t="Fr. South Antarctic Terr.";break;case"FR":t="France";break;case"GF":t="French Guiana";break;case"PF":t="French Polynesia";break;case"FM":t="FS Micronesia";break;case"GA":t="Gabon";break;case"GM":t="Gambia";break;case"GE":t="Georgia";break;case"DE":t="Germany";break;case"GH":t="Ghana";break;case"GI":t="Gibraltar";break;case"GR":t="Greece";break;case"GL":t="Greenland";break;case"GD":t="Grenada";break;case"GP":t="Guadeloupe";break;case"GU":t="Guam";break;case"GT":t="Guatemala";break;case"GN":t="Guinea";break;case"GW":t="Guinea-Bissau";break;case"GY":t="Guyana";break;case"HT":t="Haiti";break;case"HM":t="Heard Island and McDonald Islands";break;case"VA":t="Holy See (Vatican City State)";break;case"HN":t="Honduras";break;case"HU":t="Hungary";break;case"IS":t="Iceland";break;case"IN":t="India";break;case"ID":t="Indonesia";break;case"IR":t="Iran";break;case"IQ":t="Iraq";break;case"IE":t="Ireland";break;case"IL":t="Israel";break;case"IT":t="Italy";break;case"JM":t="Jamaica";break;case"JP":t="Japan";break;case"JO":t="Jordan";break;case"KZ":t="Kazakhstan";break;case"KE":t="Kenya";break;case"KI":t="Kiribati";break;case"KW":t="Kuwait";break;case"KG":t="Kyrgyzstan";break;case"LA":t="Lao People's Dem. Rep.";break;case"LV":t="Latvia";break;case"LB":t="Lebanon";break;case"LS":t="Lesotho";break;case"LR":t="Liberia";break;case"LY":t="Libya";break;case"LT":t="Lithuania";break;case"LU":t="Luxembourg";break;case"MG":t="Madagascar";break;case"MW":t="Malawi";break;case"MY":t="Malaysia";break;case"MV":t="Maldives";break;case"ML":t="Mali";break;case"MT":t="Malta";break;case"MH":t="Marshall Isds";break;case"MQ":t="Martinique";break;case"MR":t="Mauritania";break;case"MU":t="Mauritius";break;case"YT":t="Mayotte";break;case"MX":t="Mexico";break;case"MN":t="Mongolia";break;case"ME":t="Montenegro";break;case"MS":t="Montserrat";break;case"MA":t="Morocco";break;case"MZ":t="Mozambique";break;case"MM":t="Myanmar";break;case"MP":t="N Mariana Isds";break;case"NA":t="Namibia";break;case"NR":t="Nauru";break;case"NP":t="Nepal";break;case"AN":t="Neth Antilles";break;case"NL":t="Netherlands";break;case"NC":t="New Caledonia";break;case"NZ":t="New Zealand";break;case"NI":t="Nicaragua";break;case"NE":t="Niger";break;case"NG":t="Nigeria";break;case"NU":t="Niue";break;case"NF":t="Norfolk Isds";break;case"NO":t="Norway";break;case"OM":t="Oman";break;case"PK":t="Pakistan";break;case"PW":t="Palau";break;case"PA":t="Panama";break;case"PG":t="Papua New Guinea";break;case"PY":t="Paraguay";break;case"PE":t="Peru";break;case"PH":t="Philippines";break;case"PN":t="Pitcairn";break;case"PL":t="Poland";break;case"PT":t="Portugal";break;case"QA":t="Qatar";break;case"KR":t="Rep of Korea";break;case"MD":t="Rep of Moldova";break;case"RE":t="Réunion";break;case"RO":t="Romania";break;case"RU":t="Russian Federation";break;case"RW":t="Rwanda";break;case"BL":t="Saint Barthélemy";break;case"SH":t="Saint Helena";break;case"KN":t="Saint Kitts and Nevis";break;case"KN":t="Saint Kitts, Nevis and Anguilla";break;case"LC":t="Saint Lucia";break;case"SX":t="Saint Maarten";break;case"PM":t="Saint Pierre and Miquelon";break;case"VC":t="Saint Vincent and the Grenadines";break;case"WS":t="Samoa";break;case"SM":t="San Marino";break;case"ST":t="Sao Tome and Principe";break;case"SA":t="Saudi Arabia";break;case"SN":t="Senegal";break;case"RS":t="Serbia";break;case"CS":t="Serbia and Montenegro";break;case"SC":t="Seychelles";break;case"SL":t="Sierra Leone";break;case"SG":t="Singapore";break;case"SK":t="Slovakia";break;case"SI":t="Slovenia";break;case"SB":t="Solomon Isds";break;case"SO":t="Somalia";break;case"ZA":t="South Africa";break;case"GS":t="South Georgia";break;case"SS":t="South Sudan";break;case"ES":t="Spain";break;case"LK":t="Sri Lanka";break;case"PS":t="State of Palestine";break;case"SD":t="Sudan";break;case"SR":t="Suriname";break;case"SZ":t="Swaziland";break;case"SE":t="Sweden";break;case"CH":t="Switzerland";break;case"SY":t="Syria";break;case"TJ":t="Tajikistan";break;case"MK":t="TFYR of Macedonia";break;case"TH":t="Thailand";break;case"TL":t="Timor-Leste";break;case"TG":t="Togo";break;case"TK":t="Tokelau";break;case"TO":t="Tonga";break;case"TT":t="Trinidad and Tobago";break;case"TN":t="Tunisia";break;case"TR":t="Turkey";break;case"TM":t="Turkmenistan";break;case"TC":t="Turks and Caicos Isds";break;case"TV":t="Tuvalu";break;case"UG":t="Uganda";break;case"UA":t="Ukraine";break;case"AE":t="United Arab Emirates";break;case"GB":t="United Kingdom";break;case"TZ":t="United Rep. of Tanzania";break;case"UM":t="United States Minor Outlying Islands";break;case"UY":t="Uruguay";break;case"VI":t="US Virgin Isds";break;case"US":t="United States";break;case"UZ":t="Uzbekistan";break;case"VU":t="Vanuatu";break;case"VE":t="Venezuela";break;case"VN":t="Viet Nam";break;case"WF":t="Wallis and Futuna Isds";break;case"EH":t="Western Sahara";break;case"WL":t="World";break;case"YE":t="Yemen";break;case"ZM":t="Zambia";break;case"ZW":t="Zimbabwe";break;default:t="Unknown"}return t},onUpdate:function(e){this.results=e},onUpdate2:function(e){this.results2=e},onUpdate3:function(e){this.results3=e},sendOtp:function(){var e=this;if(this.phNo=this.results.formattedNumber,this.phNo.length<6)this.$store.commit("setAlertMessage","Invalid Phone Number/OTP Format !");else{if(window.hasOwnProperty("cordova"))cordova.plugins.firebase.auth.verifyPhoneNumber(this.phNo,0).then((function(t){e.confirmationResult=t,e.$store.commit("setAlertMessage","SMS sent to your mobile Phone")})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone. Error received: "+t)}));else{var t=this.appVerifier;mf.a.auth().signInWithPhoneNumber(this.phNo,t).then((function(t){window.confirmationResult=t,e.$store.commit("setAlertMessage","SMS sent to your mobile Phone")})).catch((function(t){e.$store.commit("setAlertMessage","Error ! SMS not sent. Error received "+t)}))}this.phNo;"Android"==this.getOS()||this.getOS()}},verifyOtp:function(){var e=this;if(this.phNo.length<6||6!=this.otp.length)this.$store.commit("setAlertMessage","Invalid Phone Number/OTP Format !");else{var t=this.otp;window.hasOwnProperty("cordova")?cordova.plugins.firebase.auth.signInWithVerificationId(this.confirmationResult,t).then((function(){var t={};t.country=e.getCountryName(e.results.countryCode),t.phonenumber=e.results.formattedNumber;var n=JSON.stringify(t);e.$store.commit("setAlertMessage","Phone Verified"),e.$f7router.navigate("/signup/"+encodeURIComponent(n))})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)})):window.confirmationResult.confirm(t).then((function(t){var n={};n.country=e.getCountryName(e.results.countryCode),n.phonenumber=e.results.formattedNumber;var r=JSON.stringify(n);e.$store.commit("setAlertMessage","Phone Verified"),e.$f7router.navigate("/signup/"+encodeURIComponent(r))})).catch((function(t){e.$store.commit("setAlertMessage","Couldn't verify your phone "+t.message)}))}},initReCaptcha:function(){var e=this;setTimeout((function(){window.recaptchaVerifier=new mf.a.auth.RecaptchaVerifier("recaptcha-container",{size:"invisible",callback:function(e){},"expired-callback":function(){}}),e.appVerifier=window.recaptchaVerifier}),1e3)}},computed:{resultsTable:function(){return Object.keys(this.results)},resultsTable2:function(){return Object.keys(this.results2)},resultsTable3:function(){return Object.keys(this.results3)}},created:function(){this.initReCaptcha()}}),$p=(n(305),Ef(Mp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"verifyphonenumber","no-swipeback":"","login-screen":""}},[n("f7-login-screen-title",[e._v("Verify Your Phone Number")]),e._v(" "),n("f7-navbar",{attrs:{title:"Phone Verification","back-link":"Back"}}),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-block",[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("div",{staticClass:"component mb-2"},[n("VuePhoneNumberInput",{staticClass:"mb-2",attrs:{id:"phoneNumber1",color:"dodgerblue",dark:e.dark,disabled:e.disabled,"ignored-countries":e.countriesIgnored,"preferred-countries":e.countriesList,loader:e.hasLoaderActive,clearable:"",error:e.hasErrorActive},on:{update:e.onUpdate},model:{value:e.phonenumber,callback:function(t){e.phonenumber=t},expression:"phonenumber"}}),e._v(" "),n("b",[e._v("Phone number")]),e._v("\n          : "+e._s(e.results.formattedNumber)+"\n        ")],1),e._v(" "),n("br"),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.sendOtp}},[e._v("Get OTP")]),e._v(" "),n("div",{attrs:{id:"recaptcha-container"}}),e._v(" "),n("f7-list-input",{attrs:{value:e.otp,label:"Enter OTP Received",type:"text",placeholder:"Enter OTP","clear-button":""},on:{input:function(t){e.otp=t.target.value}}})],1),e._v(" "),n("f7-button",{attrs:{fill:"",color:"blue"},on:{click:e.verifyOtp}},[e._v("Verify")]),e._v(" "),n("br"),e._v(" "),n("f7-button",{attrs:{fill:"",color:"blue"},on:{click:function(t){return e.sendOtp()}}},[e._v("Resend OTP")])],1)],1)],1)}),[],!1,null,"443f87ca",null).exports),Pp={data:function(){return{image1:n(306),image2:n(307)}},computed:{app_version:function(){return this.$store.getters.app_version}},created:function(){}},Op=(n(308),Ef(Pp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"newupdate"}},[n("f7-navbar",{attrs:{title:"Update Your App"}}),e._v(" "),n("f7-block",[n("h3",{attrs:{tag:"",align:"center"}},[e._v("Update App from Google Play")]),e._v(" "),n("p",{attrs:{tag:"",align:"center"}},[e._v("\n      This version of the app is not supported anymore.\n    ")]),e._v(" "),n("p",{attrs:{tag:"",align:"center"}},[e._v("\n      Please click below link to update Penpal America App\n    ")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)],1)}),[],!1,null,"5b82d4ba",null).exports),Lp=(n(309),{data:function(){return{emailcode:null,userEmail:null}},methods:{signIn:function(){this.$f7router.navigate("/firstpage/")},verifyEmail:function(){var e=this;console.log("verify Email");var t={emailcode:this.emailcode,email:this.userEmail};this.$f7.request.post("https://penpalamerica.com/register/verifyemailpenpalamerica.php",t,(function(t){"0"==t&&(console.log(t),e.$store.commit("setAlertMessage","Email Verification complete. Please login"),e.$f7.dialog.close(),e.$f7router.navigate("/signinbackup/")),"1"==t&&e.$store.commit("setAlertMessage","Email Code supplied is not correct")}))}},created:function(){this.$store.commit("setSignedUp",!1);var e=this.$f7route.params.email;this.userEmail=e,console.log(e)}}),Ap=(n(387),Ef(Lp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"verifyemail"}},[n("f7-navbar",{attrs:{title:"Verify Your Email"}}),e._v(" "),n("div",[n("div",{staticClass:"pagealign"},[n("h3",[e._v("Please Verify The Email Below")]),e._v(" "),n("p",[e._v(e._s(e.userEmail))])]),e._v(" "),n("f7-block",[n("div",{staticClass:"list inline-labels no-hairlines-md"},[n("ul",[n("li",{staticClass:"item-content item-input"},[n("div",{staticClass:"item-media"},[n("i",{staticClass:"icon demo-list-icon"})]),e._v(" "),n("div",{staticClass:"item-inner"},[n("div",{staticClass:"item-title item-label"},[e._v("Email Code")]),e._v(" "),n("div",{staticClass:"item-input-wrap"},[n("input",{attrs:{type:"text",placeholder:"Enter Email Code",required:"",validate:""},domProps:{value:e.emailcode},on:{input:function(t){e.emailcode=t.target.value}}}),e._v(" "),n("span",{staticClass:"input-clear-button"})])])])])])]),e._v(" "),n("f7-block",[n("f7-button",{attrs:{fill:"","open-confirm":""},on:{click:e.verifyEmail}},[e._v("Verify Email")]),e._v(" "),n("br"),e._v(" "),n("div",{staticStyle:{"text-align":"center"}},[n("f7-link",{on:{click:e.signIn}},[e._v("Back to SignIn")])],1)],1)],1)],1)}),[],!1,null,"5aa40895",null).exports),Ip={computed:{contacts:function(){return this.$store.getters.contacts}},methods:{addFrd:function(e){var t={};t.sender=mf.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)}},created:function(){this.$store.dispatch("getAllUsers")}},Dp=(n(388),Ef(Ip,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Contacts","back-link":"Back"}}),e._v(" "),n("f7-list",{attrs:{"media-list":""}},e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},["online"==t.userStatus?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e(),e._v(" "),"offline"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{size:"1",color:"grey"}},[e._v(e._s(e.moment(t.lastSeen).format("LLL"))+";")])],1):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"})])})),1)],1)}),[],!1,null,"38b09e4b",null).exports),Np=n(273);function Rp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function jp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Rp(o,r,i,a,s,"next",e)}function s(e){Rp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Bp,Yp={components:{Rave:n.n(Np).a},data:function(){return{raveKey:"FLWPUBK-581258c33a65e85bc6116e0596a71662-X",email:"",amount1:1,amount2:3,amount3:5,amount4:10,amount5:20,amount6:50,plan:107036,fname:"",lname:"",subaccounts:[],country:"US",currency:"USD",meta:[{metaname:"Swift",metavalue:"Swift Alliance"}],sub:[{id:"1324"},{id:"1221"}],payment_status:null,friend:null,friend_Details:null}},computed:{wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},user:function(){return this.$store.getters.user},reference:function(){return this.$store.getters.reference},user_details:function(){return this.$store.getters.user_details},user_country:function(){return this.$store.getters.user_country}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},callback:function(e){var t={};if(t.email=this.user[0].email,t.domain=this.user[0].domain,t.name=this.user[0].name,this.$store.dispatch("getReference",t),"00"==e.respcode&&"Approved. Successful"==e.respmsg||"00"==e.respcode&&"Approved"==e.respmsg||"00"==e.respcode&&"Approved by Financial Institution"==e.respmsg||"00"==e.respcode&&"successful"==e.status||"successful"==e.status){this.payment_status=e.status;var n=e.data.data.amount,r={email:this.user[0].email,payment_amount:n,payment_status:e.data.data.status,payment_message:e.respmsg,charged_amount:e.tx.charged_amount,currency:e.tx.currency,paymentId:e.tx.id,txRef:e.tx.txRef,domain:t.domain};this.$f7.request.post("https://penpalamerica.com/penpal/penpalflutterpayment.php",r,(function(e){}))}if("00"==e.data.data.responsecode&&"Approved by Financial Institution"==e.data.data.responsemessage){this.payment_status=e.tx.status;n=e.tx.amount,r={email:this.user[0].email,payment_amount:n,payment_status:e.tx.status,payment_message:e.data.data.responsemessage,charged_amount:e.tx.charged_amount,currency:e.tx.currency,paymentId:e.tx.id,txRef:e.tx.txRef,domain:t.domain};this.$f7.request.post("https://penpalamerica.com/penpal/penpalflutterpayment.php",r,(function(e){}))}},close:(Bp=jp(bf.a.mark((function e(t){var n;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n={}).email=this.user[0].email,n.domain=this.user[0].domain,n.name=this.user[0].name,e.next=6,this.$store.dispatch("getWallet",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return Bp.apply(this,arguments)})},created:function(){var e=this;return jp(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email=e.user[0].email,n.domain=e.user[0].domain,n.name=e.user[0].name,e.$store.dispatch("getReference",n),e.fname=n.name,e.email=n.email,t.next=9,e.$store.dispatch("getWallet",n);case 9:case"end":return t.stop()}}),t)})))()}},Fp=(n(389),Ef(Yp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"pay4me"}},[n("f7-navbar",{attrs:{title:"Acct Topup","back-link":"Back"}},[n("f7-nav-right",[n("div",{staticClass:"wallet"},[e._v("\n        Payout"),n("br"),e._v("$"+e._s(Number(e.user_payout).toLocaleString())+"\n      ")]),e._v(" "),n("div",{staticClass:"wallet"},[e._v("\n        Gifts"),n("br"),e._v(e._s(e.nFormatter(e.gift))+"\n      ")]),e._v(" "),n("div",{staticClass:"wallet"},[e._v("\n        Wallet"),n("br"),e._v(e._s(e.nFormatter(e.wallet))+"\n      ")])])],1),e._v(" "),n("f7-block-title",[n("b",[e._v("Top Up Your Account")])]),e._v(" "),n("f7-block",{attrs:{strong:""}},[n("p",[e._v("\n      Top up your Account to be able to chat and gift other users...\n    ")])]),e._v(" "),n("f7-block",[n("f7-row",{staticClass:"grid-demo"},[n("f7-col",{attrs:{width:"50",medium:"25"}},[n("Rave",{attrs:{email:e.email,amount:e.amount1,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",{staticClass:"f7-icons size-22"},[e._v("bag")]),e._v(" "),n("i",[e._v(" Bronze ($1.0)")]),n("br"),e._v(" "),n("i",{staticStyle:{"font-size":"10px",color:"yellow"}},[e._v("Gives 10 points")])])],1),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},[n("Rave",{attrs:{email:e.email,amount:e.amount2,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",{staticClass:"f7-icons size-22"},[e._v("bag_badge_minus")]),e._v(" "),n("i",[e._v(" Silver ($3.0)")]),n("br"),e._v(" "),n("i",{staticStyle:{"font-size":"10px",color:"yellow"}},[e._v("Gives 30 points")])])],1),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},[n("Rave",{attrs:{email:e.email,amount:e.amount3,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",{staticClass:"f7-icons size-22"},[e._v("bag_badge_plus")]),e._v(" "),n("i",[e._v(" Gold ($5.0)")]),n("br"),e._v(" "),n("i",{staticStyle:{"font-size":"10px",color:"yellow"}},[e._v("Gives 50 points")])])],1),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},[n("Rave",{attrs:{email:e.email,amount:e.amount4,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",{staticClass:"f7-icons size-22"},[e._v("bag_fill")]),e._v(" "),n("i",[e._v(" Dimond ($10.0)")]),n("br"),e._v(" "),n("i",{staticStyle:{"font-size":"10px",color:"yellow"}},[e._v("Gives 100 points")])])],1),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},[n("Rave",{attrs:{email:e.email,amount:e.amount5,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",{staticClass:"f7-icons size-22"},[e._v("bag_fill_badge_minus")]),e._v(" "),n("i",[e._v(" Platinum ($20.0)")]),n("br"),e._v(" "),n("i",{staticStyle:{"font-size":"10px",color:"yellow"}},[e._v("Gives 200 points")])])],1),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},[n("Rave",{attrs:{email:e.email,amount:e.amount6,reference:e.reference,"rave-key":e.raveKey,callback:e.callback,close:e.close,metadata:e.meta,subaccounts:e.subaccounts,paymentPlan:e.plan,customerFirstname:e.fname,customerLastname:e.lname,paymentOptions:"card,barter,account,ussd",hostedPayemt:"1",customTitle:"Swift Alliance Ltd",currency:"USD",country:"US","style-class":"paymentbtn"}},[n("i",{staticClass:"f7-icons size-22"},[e._v("bag_fill_badge_plus")]),e._v(" "),n("i",[e._v("Rhodium ($50.0)")]),n("br"),e._v(" "),n("i",{staticStyle:{"font-size":"10px",color:"yellow"}},[e._v("Gives 500 points")]),e._v(" "),n("i")])],1)],1)],1),e._v(" "),n("f7-block",[e.payment_status?n("div",{attrs:{align:"center"}},[n("span",[e._v("Payment   "+e._s(e.payment_status)+". You can perform another account\n        or start using your wallet from now")])]):e._e()])],1)}),[],!1,null,"278977c8",null).exports);function Hp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Up(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Hp(o,r,i,a,s,"next",e)}function s(e){Hp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var zp={data:function(){return{moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{photoStatus:function(e){},back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{total_notify:function(){return this.$store.getters.total_notify},wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},app_version:function(){return this.$store.getters.app_version},photoStatus:function(){return this.$store.getters.photoStatus},total_message:function(){return this.$store.getters.total_message},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{reportUser:function(e,t){var n=this,r=this,i=r.$f7;this.$f7.popover.close();this.$f7.dialog.create({title:"Reason for Reporting",text:"1. Sending nude pictures<br>2. Abusive language<br>3. Indecent conversation<br>4. Others",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="tel" placeholder="Enter number"  required validate pattern="[1-4]*" data-error-message="Only numbers from 1 to 4" maxlength="1"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(o,a){var s=o.$el.find(".dialog-input").val().trim();if("1"==s||"2"==s||"3"==s||"4"==s){var l={};l.email_u=n.user[0].email,l.email_f=e,l.domain=n.user[0].domain,l.userAbuse=s,n.$store.dispatch("reportUserToAdmin",l),n.$f7.dialog.close(),console.log("easy");n.user[0].email;var c={email_u:n.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:n.user[0].genderSearch};i.request.post("https://penpalamerica.com/penpal/penpalmatchplus.php",c,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, you missed a match! ".concat(t," picked you as a friend"))}));c={};c={email:n.user[0].email,genderSearch:n.user[0].genderSearch,domain:"penpalamerica.com"},console.log("get",c),i.request.post("https://penpalamerica.com/penpal/userpenpal.php",c,(function(t){var n=JSON.parse(t);n[0].email==e?(console.log("this done again3"),i.request.post("https://penpalamerica.com/penpal/userpenpal.php",c,(function(t){var n=JSON.parse(t);n[0].email==e?console.log("this done again2"):(console.log("this done again"),r.$store.commit("setContacts",n))}))):r.$store.commit("setContacts",n)}))}else 1==a&&n.$store.commit("setAlertMessage","Select Reason for Reporting the user")},on:{open:function(){}}}).open()},nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},onlineUsers:function(){var e=this;return Up(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=firebase.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},ilike:function(e,t){var n=this.user[0].email,r={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},i=this,o=i.$f7;o.request.post("https://penpalamerica.com/penpal/penpalmatch.php",r,function(){var r=Up(bf.a.mark((function r(a){var s,l,c,u,d,h=this;return bf.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("0"!=(s=JSON.parse(a))[0].response){r.next=22;break}return(l={}).email=e,l.domain="penpalamerica.com",r.next=7,i.$store.dispatch("getOnesignalPlayerIDPlus",l);case 7:null!=(c=r.sent)&&((u={}).onesignal_playerID=c,u.message="You have a new like. Please checkout for this pal that likes you",i.$store.dispatch("sendNotification",u)),(u={}).email_u=s[0].email,u.email_f=e,u.photo_url=s[0].photo_url1,u.friend_name=t,u.profileMessage=s[0].profileMessage,u.domain="penpalamerica.com",u.name=s[0].myname,i.$store.dispatch("sendEmailNotificationLike",u),d={email:s[0].email,genderSearch:s[0].genderSearch,name:s[0].name,domain:"penpalamerica.com"},o.request.post("https://penpalamerica.com/penpal/userpenpal.php",d,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)})),r.next=42;break;case 22:if("1"!=s[0].response){r.next=42;break}return(l={}).email=e,l.domain="penpalamerica.com",r.next=28,i.$store.dispatch("getOnesignalPlayerIDPlus",l);case 28:null!=(c=r.sent)&&((u={}).onesignal_playerID=c,u.message="You have a new match with "+s[0].myname,i.$store.dispatch("sendNotification",u)),(u={}).email_u=s[0].email,u.email_f=e,u.photo_url=s[0].photo_url1,u.friend_name=t,u.profileMessage=s[0].profileMessage,u.domain="penpalamerica.com",u.name=s[0].myname,i.$store.dispatch("sendEmailNotificationMatch",u),o.dialog.create({title:"Wow! It is a match!",text:"Send A Message to "+s[0].name,content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your Message" maxlength="200"></div></div>',buttons:[{text:"Not Now..",close:!0},{text:"Submit Message"}],onClick:function(t,r){var a=t.$el.find(".dialog-input").val().trim();if(a.length>0){i.$store.dispatch("sendMessage",{email_f:e,msg:a,img:null,email_u:n,domain:"penpalamerica.com",sentby:n}),i.$f7.dialog.close(),i.$store.commit("setAlertMessage","Message Sent.");var l={email:s[0].email,genderSearch:s[0].genderSearch,name:s[0].name,domain:"penpalamerica.com"};o.request.post("https://penpalamerica.com/penpal/userpenpal.php",l,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)}))}else 1==r&&h.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){}}}).open(),d={email:s[0].email,genderSearch:s[0].genderSearch,name:s[0].name,domain:"penpalamerica.com"},o.request.post("https://penpalamerica.com/penpal/userpenpal.php",d,(function(e){var t=JSON.parse(e);i.$store.commit("setContacts",t)}));case 42:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}())},idontlike:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalmatchplus.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, you missed a match! ".concat(t," picked you as a friend"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/userpenpal.php",n,(function(t){var o=JSON.parse(t);o[0].email==e?(console.log("this done again3"),i.request.post("https://penpalamerica.com/penpal/userpenpal.php",n,(function(t){var n=JSON.parse(t);n[0].email==e?console.log("this done again2"):(console.log("this done again"),r.$store.commit("setContacts",n))}))):r.$store.commit("setContacts",o)}))},fans:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalsetfollowing.php",n,(function(e){"0"==e&&(r.$store.commit("setAlertMessage","Hey, You are now following ".concat(t,". You will not miss any action from ").concat(t," again")),r.$store.commit("setNoRecordFollowing",!1))}));this.user[0].email,n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch};i.request.post("https://penpalamerica.com/penpal/penpalmatchplus.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, you missed a match! ".concat(t," picked you as a friend"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/userpenpal.php",n,(function(t){var o=JSON.parse(t);o[0].email==e?(console.log("this done again3"),i.request.post("https://penpalamerica.com/penpal/userpenpal.php",n,(function(t){var n=JSON.parse(t);n[0].email==e?console.log("this done again2"):(console.log("this done again"),r.$store.commit("setContacts",n))}))):r.$store.commit("setContacts",o)}))},checkInternet:function(){var e=this;return Up(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=firebase.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/gallery/"+encodeURIComponent(t))}},created:function(){var e=this;return Up(bf.a.mark((function t(){var n,r,i,o,a;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getWallet",i);case 12:return t.next=14,e.$store.dispatch("getUserPhotoStatus",i);case 14:if(t.sent){t.next=18;break}return e.$f7router.navigate("/editprofilepicture/",{}),t.abrupt("return");case 18:o={email:e.user[0].email,genderSearch:e.user[0].genderSearch,domain:e.user[0].domain},(a=e).$f7.request.post("https://penpalamerica.com/penpal/userpenpal.php",o,(function(e){var t=JSON.parse(e);a.$store.commit("setContacts",t)})),e.checkInternet();case 23:case"end":return t.stop()}}),t)})))()}},Vp=(n(390),Ef(zp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("diV",{staticClass:"format_menu"},[n("p",[e._v("Payout"),n("br"),e._v("$"+e._s(Number(e.user_payout).toLocaleString()))])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("\n          Gifts "),n("br"),e._v("\n          "+e._s(e.nFormatter(e.gift))+"\n        ")])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("Wallet"),n("br"),e._v(e._s(e.nFormatter(e.wallet)))])]),e._v(" "),e.total_message>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))])],1):e._e(),e._v(" "),e.total_notify>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"yellow"}},[e._v(e._s(e.total_notify))])],1):e._e(),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{"text-align":"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{"text-align":"center"}},[n("h3",[e._v("Update App from Google Play Member")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",{attrs:{align:"center"}},[n("f7-list",{attrs:{"media-list":""}},e._l(e.contacts,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name},on:{click:function(n){return e.gotoGallery(t)}}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:t.photo_url1},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n          , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"","text-align":"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(t.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(t.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("f7-row",{attrs:{"no-gap":"","text-align":"center"}},[n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.idontlike(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"multiply_circle_fill",color:"red"}})],1),e._v(" "),n("br"),e._v("Don't Like")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.fans(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"heart_circle_fill",color:"yellow"}})],1),n("br"),e._v("Follow")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.ilike(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"heart_circle_fill",color:"green"}})],1),n("br"),e._v("I Like")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.reportUser(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"drop_fill",color:"red"}})],1),n("br"),e._v("\n            Report  "+e._s(t.name))],1)],1)],1)})),1)],1),e._v(" "),e._v("\n  |\n")],1)}),[],!1,null,"340981e2",null).exports);function qp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Wp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){qp(o,r,i,a,s,"next",e)}function s(e){qp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Gp={data:function(){return{moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{photoStatus:function(e){},back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{lastFollowingEmail:function(){return this.$store.getters.lastFollowingEmail},noRecordFollowing:function(){return this.$store.getters.noRecordFollowing},wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},app_version:function(){return this.$store.getters.app_version},photoStatus:function(){return this.$store.getters.photoStatus},total_message:function(){return this.$store.getters.total_message},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},followings:function(){return this.$store.getters.followings},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},onlineUsers:function(){var e=this;return Wp(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=firebase.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},unfollowing:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com"},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalunfollowing.php",n,(function(e){"0"==e?r.$store.commit("setAlertMessage","You started unfollowing  ".concat(t," ... ")):r.$store.commit("setAlertMessage","Sorry you cannot unfollow  ".concat(t," now... Kindly try later"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalfollowing.php",n,(function(e){if("#"==e)r.$store.commit("setNoRecordFollowing",!0);else{var t=JSON.parse(e);r.$store.commit("setFollowings",t)}}))},nextRecord:function(e,t){this.user[0].email;var n=(this.user[0].email,this.user[0].genderSearch),r=this,i=r.$f7;n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalfollowing.php",n,(function(e){if("#"==e)r.$store.commit("setNoRecordFollowing",!0);else{var t=JSON.parse(e);r.lastFollowingEmail==t[0].email&&r.$store.commit("setAlertMessage","You just have 1 fan that you are following. Please follow more fans"),r.$store.commit("setFollowings",t),r.$store.commit("setLastFollowingEmail",t[0].email)}}))},fans:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalfans.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, You are now a fan to ".concat(t,". You will not miss any action from ").concat(t," again"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalfollowing.php",n,(function(e){var t=JSON.parse(e);r.$store.commit("setFollowings",t)}))},checkInternet:function(){var e=this;return Wp(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=firebase.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/gallery/"+encodeURIComponent(t))}},created:function(){var e=this;return Wp(bf.a.mark((function t(){var n,r,i,o,a,s;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getWallet",i);case 12:return t.next=14,e.$store.dispatch("getUserPhotoStatus",i);case 14:if(t.sent){t.next=17;break}return t.abrupt("return");case 17:o={email:e.user[0].email,genderSearch:e.user[0].genderSearch,domain:e.user[0].domain},s=(a=e).$f7,a.$store.commit("setNoRecordFollowing",!1),s.request.post("https://penpalamerica.com/penpal/penpalfollowing.php",o,(function(e){if("#"==e)a.$store.commit("setNoRecordFollowing",!0);else{var t=JSON.parse(e);a.$store.commit("setFollowings",t),a.$store.commit("setLastFollowingEmail",t[0].email)}})),e.checkInternet();case 23:case"end":return t.stop()}}),t)})))()}},Kp=(n(391),Ef(Gp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Following","back-link":"Back"}},[n("f7-nav-right")],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play Member")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",{attrs:{align:"center"}},[e.noRecordFollowing?n("div",{staticClass:"topMargin"},[n("h2",[e._v("No following Now")]),e._v(" "),n("p",[e._v("\n        You are not following anyone at this time."),n("br"),e._v("You can start\n        following someone now so that he can also follow you too...\n      ")])]):n("div",[n("f7-list",{attrs:{"media-list":""}},e._l(e.followings,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:t.photo_url1},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n            , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(t.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(t.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col"),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.unfollowing(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"heart_circle_fill",color:"yellow"}})],1),n("br"),e._v("UnFollowing")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.nextRecord(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"arrow_right_circle_fill",color:"blue"}})],1),n("br"),e._v("Next")],1),e._v(" "),n("f7-col")],1)],1)})),1)],1)]),e._v(" "),e._v("\n  |\n")],1)}),[],!1,null,"be74fdda",null).exports);function Jp(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Xp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Jp(o,r,i,a,s,"next",e)}function s(e){Jp(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Qp={data:function(){return{moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{photoStatus:function(e){},lastFollowersEmail:function(e){},back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{total_notify:function(){return this.$store.getters.total_notify},lastFollowersEmail:function(){return this.$store.getters.lastFollowersEmail},noRecordFollowers:function(){return this.$store.getters.noRecordFollowers},wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},app_version:function(){return this.$store.getters.app_version},photoStatus:function(){return this.$store.getters.photoStatus},total_message:function(){return this.$store.getters.total_message},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},followers:function(){return this.$store.getters.followers},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},onlineUsers:function(){var e=this;return Xp(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=firebase.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},followBack:function(e,t){var n=this;return Xp(bf.a.mark((function r(){var i,o,a;return bf.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(i={}).email=n.user[0].email,i.domain=n.user[0].domain,n.user[0].email,o={email_u:n.user[0].email,email_f:e,domain:n.user[0].domain},(a=n).$f7.request.post("https://penpalamerica.com/penpal/penpalsetfollowers.php",o,(function(e){console.log(e),"0"==e?(a.$store.commit("setAlertMessage","Hey, You are now following ".concat(t,". You will not miss any action from ").concat(t," again")),a.$store.commit("setNoRecordFollowers",!1)):(console.log(e),a.$store.commit("setAlertMessage","Database issue! Sorry you cannnot follow ".concat(t," now. Please try again latter")))})),r.next=10,a.$store.dispatch("getFollowers",i);case 10:case"end":return r.stop()}}),r)})))()},chatFollower:function(e){e.user_email=this.user[0].email,e.domain=this.user[0].domain;var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},nextFollower:function(e,t){var n=this;return Xp(bf.a.mark((function e(){var t,r;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={email:n.user[0].email,domain:n.user[0].domain},(r=n).$f7.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",t,(function(e){if("#"==e)r.$store.commit("setNoRecordFollowers",!0);else{var t=JSON.parse(e);r.lastFollowersEmail==t[0].email&&r.$store.commit("setAlertMessage","You just have 1 follower"),r.$store.commit("setFollowers",t),r.$store.commit("setLastFollowersEmail",t[0].email)}}));case 4:case"end":return e.stop()}}),e)})))()},fans:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalfans.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, You are now a fan to ".concat(t,". You will not miss any action from ").concat(t," again"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",n,(function(e){var t=JSON.parse(e);r.$store.commit("setFollowers",t)}))},checkInternet:function(){var e=this;return Xp(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=firebase.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/gallery/"+encodeURIComponent(t))}},created:function(){var e=this;return Xp(bf.a.mark((function t(){var n,r,i,o,a,s;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getWallet",i);case 12:return t.next=14,e.$store.dispatch("getUserPhotoStatus",i);case 14:if(t.sent){t.next=18;break}return e.$f7router.navigate("/editprofilepicture/",{}),t.abrupt("return");case 18:o={email:e.user[0].email,genderSearch:e.user[0].genderSearch,domain:e.user[0].domain},s=(a=e).$f7,a.$store.commit("setNoRecordFollowers",!1),s.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",o,(function(e){if("#"==e)a.$store.commit("setNoRecordFollowers",!0);else{var t=JSON.parse(e);a.$store.commit("setFollowers",t),a.$store.commit("setLastFollowersEmail",t[0].email)}})),e.checkInternet();case 24:case"end":return t.stop()}}),t)})))()}},Zp=(n(392),Ef(Qp,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("diV",{staticClass:"format_menu"},[n("p",[e._v("Payout"),n("br"),e._v("$"+e._s(Number(e.user_payout).toLocaleString()))])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("\n          Gifts "),n("br"),e._v("\n          "+e._s(e.nFormatter(e.gift))+"\n        ")])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("Wallet"),n("br"),e._v(e._s(e.nFormatter(e.wallet)))])]),e._v(" "),e.total_message>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))])],1):e._e(),e._v(" "),e.total_notify>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"yellow"}},[e._v(e._s(e.total_notify))])],1):e._e(),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play Member")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",{attrs:{align:"center"}},[e.noRecordFollowers?n("div",{staticClass:"topMargin"},[n("h2",[e._v("No followers Now")]),e._v(" "),n("p",[e._v("You don't have any followrs at this time.")])]):n("div",[n("f7-list",{attrs:{"media-list":""}},e._l(e.followers,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:t.photo_url1},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n            , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(t.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(t.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col"),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.followBack(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"heart_circle_fill",color:"yellow"}})],1),n("br"),e._v("Follow Back")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.chatFollower(t)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"chat_bubble_text_fill",color:"green"}})],1),n("br"),e._v("Chat")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.nextFollower(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:" arrow_right_circle_fill",color:"blue"}})],1),n("br"),e._v("Next\n            ")],1),e._v(" "),n("f7-col")],1)],1)})),1)],1)]),e._v(" "),e._v("\n  |\n")],1)}),[],!1,null,"e90cddb2",null).exports);function em(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function tm(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){em(o,r,i,a,s,"next",e)}function s(e){em(o,r,i,a,s,"throw",e)}a(void 0)}))}}var nm={data:function(){return{moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{photoStatus:function(e){},lastFollowersEmail:function(e){},back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{total_notify:function(){return this.$store.getters.total_notify},lastFollowersEmail:function(){return this.$store.getters.lastFollowersEmail},noRecordFollowers:function(){return this.$store.getters.noRecordFollowers},wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},app_version:function(){return this.$store.getters.app_version},photoStatus:function(){return this.$store.getters.photoStatus},total_message:function(){return this.$store.getters.total_message},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},followers:function(){return this.$store.getters.followers},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},onlineUsers:function(){var e=this;return tm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=firebase.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},followBack:function(e,t){var n=this;return tm(bf.a.mark((function r(){var i,o,a;return bf.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(i={}).email=n.user[0].email,i.domain=n.user[0].domain,n.user[0].email,o={email_u:n.user[0].email,email_f:e,domain:n.user[0].domain},(a=n).$f7.request.post("https://penpalamerica.com/penpal/penpalsetfollowers.php",o,(function(e){console.log(e),"0"==e?(a.$store.commit("setAlertMessage","Hey, You are now following ".concat(t,". You will not miss any action from ").concat(t," again")),a.$store.commit("setNoRecordFollowers",!1)):(console.log(e),a.$store.commit("setAlertMessage","Database issue! Sorry you cannnot follow ".concat(t," now. Please try again latter")))})),r.next=10,a.$store.dispatch("getFollowers",i);case 10:case"end":return r.stop()}}),r)})))()},chatFollower:function(e){e.user_email=this.user[0].email,e.domain=this.user[0].domain;var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},nextFollower:function(e,t){var n=this;return tm(bf.a.mark((function e(){var t,r;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={email:n.user[0].email,domain:n.user[0].domain},(r=n).$f7.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",t,(function(e){if("#"==e)r.$store.commit("setNoRecordFollowers",!0);else{var t=JSON.parse(e);r.lastFollowersEmail==t[0].email&&r.$store.commit("setAlertMessage","You just have 1 follower"),r.$store.commit("setFollowers",t),r.$store.commit("setLastFollowersEmail",t[0].email)}}));case 4:case"end":return e.stop()}}),e)})))()},fans:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalfans.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, You are now a fan to ".concat(t,". You will not miss any action from ").concat(t," again"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",n,(function(e){var t=JSON.parse(e);r.$store.commit("setFollowers",t)}))},checkInternet:function(){var e=this;return tm(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=firebase.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/gallery/"+encodeURIComponent(t))}},created:function(){var e=this;return tm(bf.a.mark((function t(){var n,r,i,o,a,s;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getWallet",i);case 12:return t.next=14,e.$store.dispatch("getUserPhotoStatus",i);case 14:if(t.sent){t.next=17;break}return t.abrupt("return");case 17:o={email:e.user[0].email,genderSearch:e.user[0].genderSearch,domain:e.user[0].domain},s=(a=e).$f7,a.$store.commit("setNoRecordFollowers",!1),s.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",o,(function(e){if("#"==e)a.$store.commit("setNoRecordFollowers",!0);else{var t=JSON.parse(e);a.$store.commit("setFollowers",t),a.$store.commit("setLastFollowersEmail",t[0].email)}})),e.checkInternet();case 23:case"end":return t.stop()}}),t)})))()}},rm=(n(393),Ef(nm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Followers","back-link":"Back"}},[n("f7-nav-right")],1),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play Member")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",{attrs:{align:"center"}},[e.noRecordFollowers?n("div",{staticClass:"topMargin"},[n("h2",[e._v("No followers Now")]),e._v(" "),n("p",[e._v("You don't have any followrs at this time.")])]):n("div",[n("f7-list",{attrs:{"media-list":""}},e._l(e.followers,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:t.photo_url1},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n            , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(t.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(t.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col"),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.followBack(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"heart_circle_fill",color:"yellow"}})],1),n("br"),e._v("Follow Back")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.chatFollower(t)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"chat_bubble_text_fill",color:"green"}})],1),n("br"),e._v("Chat")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.nextFollower(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:" arrow_right_circle_fill",color:"blue"}})],1),n("br"),e._v("Next\n            ")],1),e._v(" "),n("f7-col")],1)],1)})),1)],1)]),e._v(" "),e._v("\n  |\n")],1)}),[],!1,null,"44b0f28a",null).exports);function im(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function om(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){im(o,r,i,a,s,"next",e)}function s(e){im(o,r,i,a,s,"throw",e)}a(void 0)}))}}var am={data:function(){return{moderator:!0,appState:1,ref:{},cursor:null,pageSize:3,backPage:!1,forwardPage:!0,topPage:!1,bottomPage:!0}},watch:{photoStatus:function(e){},back_page:function(e){null!=e&&(this.backPage=e)},forward_page:function(e){null!=e&&(this.forwardPage=e)},top_page:function(e){null!=e&&(this.topPage=e)},bottom_page:function(e){null!=e&&(this.bottomPage=e)},db_reference:function(e){null!=e&&(this.ref=e)},db_cursor:function(e){null!=e&&(this.cursor=e)}},computed:{total_notify:function(){return this.$store.getters.total_notify},lastEliteEmail:function(){return this.$store.getters.lastEliteEmail},noRecordElite:function(){return this.$store.getters.noRecordElite},wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},app_version:function(){return this.$store.getters.app_version},photoStatus:function(){return this.$store.getters.photoStatus},total_message:function(){return this.$store.getters.total_message},user:function(){return this.$store.getters.user},appUpdate:function(){return this.$store.getters.appUpdate},db_reference:function(){return this.ref=this.$store.getters.db_reference,this.$store.getters.db_reference},db_cursor:function(){return this.$store.getters.db_cursor},elites:function(){return this.$store.getters.elites},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},onlineUsers:function(){var e=this;return om(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("getUserPageSize");case 2:e.pageSize=t.sent,(n={}).ref=e.ref,n.cursor=e.cursor,n.pageSize=e.pageSize,n.uid=firebase.auth().currentUser.uid,e.$store.dispatch("gotoTopPageOnline",n);case 9:case"end":return t.stop()}}),t)})))()},followBack:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com"},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalsetfollowers.php",n,(function(e){console.log(e),"0"==e?(r.$store.commit("setAlertMessage","Hey, You are now following ".concat(t,". You will not miss any action from ").concat(t," again")),r.$store.commit("setNoRecordElite",!1)):(console.log(e),r.$store.commit("setAlertMessage","Database issue! Sorry you cannnot follow ".concat(t," now. Please try again latter")))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalelites.php",n,(function(e){if("#"==e)r.$store.commit("setNoRecordElite",!0);else{var t=JSON.parse(e);r.$store.commit("setElites",t),r.$store.commit("setNoRecordElite",!1)}}))},chatFollower:function(e){e.user_email=this.user[0].email,e.domain=this.user[0].domain,console.log(e);var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},nextFollower:function(e,t){this.user[0].email;var n=(this.user[0].email,this.user[0].genderSearch),r=this,i=r.$f7;n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalelites.php",n,(function(e){if("#"==e)r.$store.commit("setNoRecordElite",!0);else{var t=JSON.parse(e);r.lastEliteEmail==t[0].email&&r.$store.commit("setAlertMessage","We just have 1 Elite"),r.$store.commit("setElites",t),r.$store.commit("setLastEliteEmail",t[0].email),r.$store.commit("setNoRecordElite",!1)}}))},fans:function(e,t){this.user[0].email;var n={email_u:this.user[0].email,email_f:e,domain:"penpalamerica.com",name:t,genderSearch:this.user[0].genderSearch},r=this,i=r.$f7;i.request.post("https://penpalamerica.com/penpal/penpalfans.php",n,(function(e){"0"==e&&r.$store.commit("setAlertMessage","Hey, You are now a fan to ".concat(t,". You will not miss any action from ").concat(t," again"))}));n={email:this.user[0].email,genderSearch:this.user[0].genderSearch,domain:"penpalamerica.com"};i.request.post("https://penpalamerica.com/penpal/penpalelites.php",n,(function(e){var t=JSON.parse(e);if("#"==e)r.$store.commit("setNoRecordElite",!0);else{t=JSON.parse(e);r.$store.commit("setElites",t),r.$store.commit("setLastEliteEmail",t[0].email),r.$store.commit("setNoRecordElite",!1)}}))},checkInternet:function(){var e=this;return om(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=firebase.auth().currentUser.uid,t.recipient=e.uid,this.$store.dispatch("sendRequest",t)},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/gallery/"+encodeURIComponent(t))}},created:function(){var e=this;return om(bf.a.mark((function t(){var n,r,i,o,a,s;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getWallet",i);case 12:return t.next=14,e.$store.dispatch("getUserPhotoStatus",i);case 14:if(t.sent){t.next=17;break}return t.abrupt("return");case 17:o={email:e.user[0].email,genderSearch:e.user[0].genderSearch,domain:e.user[0].domain},s=(a=e).$f7,a.$store.commit("setNoRecordElite",!1),s.request.post("https://penpalamerica.com/penpal/penpalelites.php",o,(function(e){if("#"==e)a.$store.commit("setNoRecordElite",!0);else{var t=JSON.parse(e);a.$store.commit("setElites",t),a.$store.commit("setLastEliteEmail",t[0].email),a.$store.commit("setNoRecordElite",!1)}})),e.checkInternet();case 23:case"end":return t.stop()}}),t)})))()}},sm=(n(394),Ef(am,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("diV",{staticClass:"format_menu"},[n("p",[e._v("Payout"),n("br"),e._v("$"+e._s(Number(e.user_payout).toLocaleString()))])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("\n          Gifts "),n("br"),e._v("\n          "+e._s(e.nFormatter(e.gift))+"\n        ")])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("Wallet"),n("br"),e._v(e._s(e.nFormatter(e.wallet)))])]),e._v(" "),e.total_message>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))])],1):e._e(),e._v(" "),e.total_notify>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"yellow"}},[e._v(e._s(e.total_notify))])],1):e._e(),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),n("p",{staticStyle:{"font-size":"10px","text-align":"center"}},[e._v("Fans who have recharged their accounts are shown here. You cannot see yourself even when you have recharged but others can.")]),e._v(" "),e.appUpdate?n("div",[n("f7-block",[n("f7-block-title",{attrs:{align:"center"}},[n("h1",[e._v("App Update Available")])]),e._v(" "),"Android"==e.app_version?n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},[n("div",{staticClass:"page-content",attrs:{align:"center"}},[n("h3",[e._v("Update App from Google Play Member")]),e._v(" "),n("p",[e._v("Please click below link to update Penpal America App")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.penpalamerica.penpal",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/googleimage.png":"file:./images/googleimage.png",width:"50%",height:"50%"}})])],1)])],1):e._e(),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},["iOS"==e.app_version?n("div",{staticClass:"page-content"},[n("h3",[e._v("Update App from App Store")]),e._v(" "),n("f7-link",{attrs:{href:"https://play.google.com/store/apps/details?id=com.chatme24.chatme24",external:""}},[n("img",{attrs:{src:e.$device.desktop?"/images/appleimage.png":"file:/images/appleimage.png",width:"50%"}})])],1):e._e()])],1)],1)],1):n("div",{attrs:{align:"center"}},[e.noRecordElite?n("div",{staticClass:"topMargin"},[n("h2",[e._v("No Elites For Now")])]):n("div",[n("f7-list",{attrs:{"media-list":""}},e._l(e.elites,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",subtitle:t.name}},[n("img",{staticClass:"imagePicture",attrs:{slot:"title",src:t.photo_url1},slot:"title"}),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v("\n            , "+e._s(e.moment(t.birthDate,"YYYYMMDD").fromNow(!0))),n("br")]),e._v(" "),n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location)),n("br")]),e._v(" "),n("span",{attrs:{slot:"text"},slot:"text"},[e._v(e._s(t.profileMessage))]),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col",[n("b",[e._v("Fans")]),n("br"),e._v(e._s(e.nFormatter(t.fans)))]),e._v(" "),n("f7-col",[n("b",[e._v("Following")]),e._v(" "),n("br"),e._v(e._s(t.following))]),e._v(" "),n("f7-col",[n("b",[e._v("Philanthropy")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.gift_out)))]),e._v(" "),n("f7-col",[n("b",[e._v("Treasure")]),e._v(" "),n("br"),e._v(e._s(e.nFormatter(t.wallet_backup)))])],1),e._v(" "),n("br"),e._v(" "),n("br"),e._v(" "),n("f7-row",{attrs:{"no-gap":"",align:"center"}},[n("f7-col"),e._v(" "),n("f7-col"),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.chatFollower(t)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:"chat_bubble_text_fill",color:"green"}})],1),n("br"),e._v("Chat")],1),e._v(" "),n("f7-col",[n("f7-link",{attrs:{fill:""},on:{click:function(n){return e.nextFollower(t.email,t.name)}}},[n("f7-icon",{staticClass:"f7-icons size-40",attrs:{f7:" arrow_right_circle_fill",color:"blue"}})],1),n("br"),e._v("Next\n            ")],1),e._v(" "),n("f7-col"),e._v(" "),n("f7-col")],1)],1)})),1)],1)]),e._v(" "),e._v("\n  |\n")],1)}),[],!1,null,"2ea1ddbd",null).exports);function lm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function cm(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){lm(o,r,i,a,s,"next",e)}function s(e){lm(o,r,i,a,s,"throw",e)}a(void 0)}))}}var um={data:function(){return{}},methods:{sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var o={};o.title=r,o.message_details=i,e.$store.dispatch("pushNotifications",o);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return cm(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection2");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return numeral(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){var e=this;return cm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$store.commit("setShowTabs",!0),(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=6,e.$store.dispatch("getFriendMatch",n);case 6:return t.next=8,e.$store.dispatch("getFriendList",n);case 8:case"end":return t.stop()}}),t)})))()}},computed:{photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},friendsMatch:function(){return this.$store.getters.friendsMatch},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message}},mounted:function(){var e=this;return cm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n={}).email=e.user[0].email,n.domain=e.user[0].domain;case 3:case"end":return t.stop()}}),t)})))()},watch:{photoStatus:function(e){e||this.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others")}},created:function(){var e=this;return cm(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getUserPhotoStatus",i);case 12:if(t.sent){t.next=15;break}return t.abrupt("return");case 15:return e.checkInternet(),t.abrupt("return");case 23:case"end":return t.stop()}}),t)})))()}},dm=(n(395),Ef(um,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Following","back-link":"Back"}},[n("f7-nav-right")],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.friendsMatch,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.latest_message},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url1},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:this.user_details.name,subtitle:this.user_details.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.user_details.birthDate}},[e._v(e._s(e.moment(this.user_details.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details.photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.profileMessage)+"\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.email)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,"ca1a27d2",null).exports);function hm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function fm(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){hm(o,r,i,a,s,"next",e)}function s(e){hm(o,r,i,a,s,"throw",e)}a(void 0)}))}}var pm=n(85),mm={data:function(){return{}},methods:{nFormatter:function(e){return e>=1e9?(e/1e9).toFixed(1).replace(/\.0$/,"")+"G":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"K":e},addSpotLight:function(){var e=this;return fm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=5,e.$store.dispatch("addSpotLight",n);case 5:return t.next=7,e.$store.dispatch("userInSpotLight",n);case 7:case"end":return t.stop()}}),t)})))()},removeSpotLight:function(){var e=this;return fm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=5,e.$store.dispatch("removeSpotLight",n);case 5:return t.next=7,e.$store.dispatch("userInSpotLight",n);case 7:case"end":return t.stop()}}),t)})))()},sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var o={};o.title=r,o.message_details=i,e.$store.dispatch("pushNotifications",o);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return fm(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection2");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return pm(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){var e=this;return fm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$store.commit("setShowTabs",!0),(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=6,e.$store.dispatch("getFriendMatch",n);case 6:return t.next=8,e.$store.dispatch("getFriendList",n);case 8:case"end":return t.stop()}}),t)})))()}},computed:{wallet:function(){return this.$store.getters.wallet},gift:function(){return this.$store.getters.gift},total_notify:function(){return this.$store.getters.total_notify},inspotlight:function(){return this.$store.getters.inspotlight},photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},spotLight:function(){return this.$store.getters.spotLight},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message}},mounted:function(){var e=this;return fm(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n={}).email=e.user[0].email,n.domain=e.user[0].domain;case 3:case"end":return t.stop()}}),t)})))()},watch:{photoStatus:function(e){e||this.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others")}},created:function(){var e=this;return fm(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getUserPhotoStatus",i);case 12:if(t.sent){t.next=16;break}return e.$f7router.navigate("/editprofilepicture/",{}),t.abrupt("return");case 16:return e.checkInternet(),t.abrupt("return");case 24:case"end":return t.stop()}}),t)})))()}},vm=(n(396),Ef(mm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"home"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right",[n("diV",{staticClass:"format_menu"},[n("p",[e._v("Payout"),n("br"),e._v("$"+e._s(Number(e.user_payout).toLocaleString()))])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("\n          Gifts "),n("br"),e._v("\n          "+e._s(e.nFormatter(e.gift))+"\n        ")])]),e._v(" "),n("diV",{staticClass:"format_menu"},[n("p",[e._v("Wallet"),n("br"),e._v(e._s(e.nFormatter(e.wallet)))])]),e._v(" "),e.total_message>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(e.total_message))])],1):e._e(),e._v(" "),e.total_notify>0?n("f7-icon",{attrs:{slot:"right",f7:"bell"},slot:"right"},[n("f7-badge",{attrs:{color:"yellow"}},[e._v(e._s(e.total_notify))])],1):e._e(),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),e.inspotlight?n("div",{staticClass:"halfcol"},[n("f7-button",{attrs:{color:"blue",fill:""},on:{click:e.removeSpotLight}},[e._v("Remove me")]),e._v(" "),n("p",{staticStyle:{"font-size":"8px"}},[e._v("\n      Your Profile has been added. You cannot see it but others can.\n    ")])],1):n("div",{staticClass:"halfcol"},[n("f7-button",{attrs:{color:"green",fill:""},on:{click:e.addSpotLight}},[e._v("Add me here")]),e._v(" "),n("p",{staticStyle:{"font-size":"10px"}},[e._v("\n      Add yourself here to get more views and chats for next 7 days. This\n      feature is free.\n    ")])],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.spotLight,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.profileMessage},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url1},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:this.user_details.name,subtitle:this.user_details.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.user_details.birthDate}},[e._v(e._s(e.moment(this.user_details.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details.photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.profileMessage)+"\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.email)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,"7bcadcb8",null).exports);function gm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ym(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){gm(o,r,i,a,s,"next",e)}function s(e){gm(o,r,i,a,s,"throw",e)}a(void 0)}))}}var bm={data:function(){return{}},methods:{addPhoto:function(){var e=this;return ym(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("hello"),e.$f7router.navigate("/addPhotoVideo/");case 2:case"end":return t.stop()}}),t)})))()},removeSpotLight:function(){var e=this;return ym(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=5,e.$store.dispatch("removeSpotLight",n);case 5:return t.next=7,e.$store.dispatch("userInSpotLight",n);case 7:case"end":return t.stop()}}),t)})))()},sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var o={};o.title=r,o.message_details=i,e.$store.dispatch("pushNotifications",o);e.chat_group_name;e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},checkInternet:function(){var e=this;return ym(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.hasOwnProperty("cordova")){t.next=5;break}return t.next=3,e.$store.dispatch("checkConnection2");case 3:"offline"==t.sent&&e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return t.stop()}}),t)})))()},formatNumber:function(e){return numeral(e).format("0,0.00")},logoutApp:function(){var e=this.$f7;this.$store.dispatch("signOut"),this.$f7.popover.close(),e.panel.close()},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))},initHome:function(){var e=this;return ym(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$store.commit("setShowTabs",!0),(n={}).email=e.user[0].email,n.domain=e.user[0].domain,t.next=6,e.$store.dispatch("getFriendMatch",n);case 6:return t.next=8,e.$store.dispatch("getFriendList",n);case 8:case"end":return t.stop()}}),t)})))()}},computed:{inspotlight:function(){return this.$store.getters.inspotlight},photoStatus:function(){return this.$store.getters.photoStatus},user:function(){return this.$store.getters.user},user_payout:{get:function(){return this.formatNumber(this.$store.getters.user_payout)},set:function(e){this.$store.commit("setUserLocation",e)}},user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate},user_details:function(){return this.$store.getters.user_details},spotLight:function(){return this.$store.getters.spotLight},friend_requests:function(){return this.$store.getters.friend_requests},message_count:function(){return this.$store.getters.message_count},total_message:function(){return this.$store.getters.total_message}},mounted:function(){var e=this;return ym(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n={}).email=e.user[0].email,n.domain=e.user[0].domain;case 3:case"end":return t.stop()}}),t)})))()},watch:{photoStatus:function(e){e||this.$store.commit("setAlertMessage","Please Upload Profile Picture before chatting with others")}},created:function(){var e=this;return ym(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=4,t.next=3,e.$store.dispatch("getAppDbVersion");case 3:if(r=t.sent,!(n<r)){t.next=7;break}return e.$f7router.navigate("/newversion/"),t.abrupt("return");case 7:return(i={}).email=e.user[0].email,i.domain=e.user[0].domain,t.next=12,e.$store.dispatch("getUserPhotoStatus",i);case 12:if(t.sent){t.next=15;break}return t.abrupt("return");case 15:return e.checkInternet(),t.abrupt("return");case 23:case"end":return t.stop()}}),t)})))()}},_m=(n(397),Ef(bm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"match"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{attrs:{sliding:!1,large:""}},[n("f7-nav-left",[n("f7-link",{attrs:{"icon-ios":"f7:menu","icon-aurora":"f7:menu","icon-md":"material:menu","panel-open":"left"}})],1),e._v(" "),n("f7-nav-title",{attrs:{sliding:"",right:""}},[e._v("Penpal America")]),e._v(" "),n("f7-nav-right"),e._v(" "),n("f7-nav-title-large",{attrs:{sliding:""}},[e._v("Penpal America")]),e._v(" "),n("f7-subnavbar",{attrs:{inner:!1}},[n("f7-searchbar",{attrs:{"search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1)],1),e._v(" "),n("div",{staticClass:"halfcol"},[n("f7-button",{attrs:{color:"green",fill:""},on:{click:e.addPhoto}},[e._v("Add Photo/Video")]),e._v(" "),n("p",{staticStyle:{"font-size":"12px"}},[e._v("\n      Share videos or photo messages. Your video or Photo messages will be\n      remove after 24 hours. No nude photos or videos\n    ")])],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.spotLight,(function(t,r){return n("f7-list-item",{key:r,attrs:{title:t.name,text:t.profileMessage},on:{click:function(n){return e.gotoChat(t)}}},[t.message_count>0?n("f7-badge",{attrs:{slot:"after-title",color:"red"},slot:"after-title"},[e._v(e._s(t.message_count))]):e._e(),e._v(" "),n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url1},slot:"media"}),e._v(" "),"online"==t.userStatus?n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"green"}},[e._v("online")])],1):n("span",{attrs:{slot:"footer"},slot:"footer"},[n("font",{attrs:{color:"grey"}},[e._v("offline")])],1),e._v(" "),t.location?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[e._v(e._s(t.location))]):e._e(),e._v(" "),2==t.userType||3==t.userType?n("span",{attrs:{slot:"after-title"},slot:"after-title"},[e._v("Moderator")]):e._e()],1)})),1),e._v(" "),n("f7-popup",{staticClass:"demo-popup-user",attrs:{"backdrop:false":""}},[n("f7-page",[n("f7-navbar",{attrs:{title:this.user_details.name,subtitle:this.user_details.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.user_details.birthDate}},[e._v(e._s(e.moment(this.user_details.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.user_details.photo_url}})]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.profileMessage)+"\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Email")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.email)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[n("b",[e._v("Your Phone Number")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.user_details.phonenumber)+" --\x3e Only you see this\n          ")])]),e._v(" "),n("br"),e._v(" "),n("br")])],1)],1)],1)}),[],!1,null,"2471814c",null).exports);function wm(e){return(wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function km(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var Sm={data:function(){return{moderator:!0,appState:1,scores:[]}},watch:{},computed:{contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({checkInternet:function(){var e,t=this;return(e=bf.a.mark((function e(){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.hasOwnProperty("cordova")){e.next=5;break}return e.next=3,t.$store.dispatch("checkConnection");case 3:"offline"==e.sent&&t.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){km(o,r,i,a,s,"next",e)}function s(e){km(o,r,i,a,s,"throw",e)}a(void 0)}))})()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=mf.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),mounted:function(){var e=this;this.$f7ready((function(t){var n=e;n.$f7.request.get("https://penpalamerica.com/sportsupdate/goalalert/pullgoals.php",(function(e){var t=JSON.parse(e);n.scores=t}))}))},created:function(){this.checkInternet()}},Em=(n(398),Ef(Sm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Live Scores","back-link":"Back"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-list",{staticClass:"search-list searchbar-found",attrs:{"media-list":""}},e._l(e.scores,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.league}},[n("span",{attrs:{slot:"title"},slot:"title"},[n("br"),e._v(e._s(e._f("capitalize")(t.teamhost)))]),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(" v ")]),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e._f("capitalize")(t.teamvisitor))),n("br")]),e._v(" "),r%2==0?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("f7-badge",{attrs:{color:"green"}},[e._v(e._s(t.score))])],1):e._e(),e._v(" "),r%2==1?n("span",{attrs:{slot:"subtitle"},slot:"subtitle"},[n("f7-badge",{attrs:{color:"red"}},[e._v(e._s(t.score))])],1):e._e(),e._v(" "),""!=t.matchtime?n("span",{attrs:{slot:"text"},slot:"text"},[e._v("\n        "+e._s(t.matchtime)+"'\n      ")]):e._e(),e._v(" "),n("span",{attrs:{slot:"footer"},slot:"footer"},[e._v("\n        "+e._s(t.matchstatus)+"\n      ")])])})),1)],1)}),[],!1,null,"14cb92a6",null).exports);function Cm(e){return(Cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var xm={data:function(){return{moderator:!0,appState:1,englishclubs:[],spainclubs:[],franceclubs:[],germanclubs:[],italyclubs:[]}},watch:{},computed:{contacts:function(){return this.$store.getters.contacts},friends:function(){return this.$store.getters.friends},friend_requests:function(){return this.$store.getters.friend_requests}},methods:function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Cm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Cm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({checkInternet:function(){var e,t=this;return(e=bf.a.mark((function e(){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.hasOwnProperty("cordova")){e.next=5;break}return e.next=3,t.$store.dispatch("checkConnection");case 3:"offline"==e.sent&&t.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...");case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Tm(o,r,i,a,s,"next",e)}function s(e){Tm(o,r,i,a,s,"throw",e)}a(void 0)}))})()},initHome:function(){this.$store.commit("setShowTabs",!0)},addFrd:function(e){var t={};t.sender=mf.a.auth().currentUser.uid,t.recipient=e.uid,console.log("request",t),this.$store.dispatch("sendRequest",t)},gotoChat:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/chat/"+encodeURIComponent(t))}},"initHome",(function(){this.$store.commit("setShowTabs",!0)})),mounted:function(){var e=this;this.$f7ready((function(t){var n=e,r=n.$f7;r.request.get("https://penpalamerica.com/sportsupdate/goalalert/pullstandingeng.php",(function(e){var t=JSON.parse(e);n.englishclubs=t,console.log(t)})),r.request.get("https://penpalamerica.com/sportsupdate/goalalert/pullstandingspa.php",(function(e){var t=JSON.parse(e);n.spainclubs=t})),r.request.get("https://penpalamerica.com/sportsupdate/goalalert/pullstandingfrance.php",(function(e){var t=JSON.parse(e);n.franceclubs=t}))}))},created:function(){this.checkInternet()}},Mm=(n(399),Ef(xm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"},on:{"page:beforein":e.initHome}},[n("f7-navbar",{staticClass:"navbar color-theme-orange",attrs:{title:"Club Standings","back-link":"Back"}},[n("f7-nav-right",[n("f7-link",{staticClass:"searchbar-enable",attrs:{"data-searchbar":".searchbar-demo","icon-ios":"f7:search","icon-aurora":"f7:search","icon-md":"material:search",color:"blue"}})],1),e._v(" "),n("f7-searchbar",{staticClass:"searchbar-demo",attrs:{expandable:"","search-container":".search-list","search-in":".item-title","disable-button":!e.$theme.aurora}})],1),e._v(" "),n("f7-list",{staticClass:"searchbar-not-found"},[n("f7-list-item",{attrs:{title:"Nothing found"}})],1),e._v(" "),n("f7-block-title",[n("b",[e._v("Premiership")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.englishclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2),e._v(" "),n("f7-block-title",[n("b",[e._v("La Liga")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.spainclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2),e._v(" "),n("f7-block-title",[n("b",[e._v("France Ligue 1")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[n("b",[e._v("SN")])]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[n("b",[e._v("Clubs")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("P")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("W")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("D")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("L")])]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[n("b",[e._v("GD")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("PTS")])]),e._v(" "),n("f7-col",{attrs:{width:"15"}},[n("b",[e._v("Last 5")])])],1),e._v(" "),e._l(e.franceclubs,(function(t,r){return n("f7-row",{key:r,attrs:{"no-gap":""}},[n("f7-col",{attrs:{width:"10"}},[e._v(e._s(t.SN))]),e._v(" "),n("f7-col",{attrs:{width:"35"}},[e._v(e._s(t.team))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.P))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.W))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.D))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.L))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.GD))]),e._v(" "),n("f7-col",{attrs:{width:"5"}},[e._v(e._s(t.PTS))]),e._v(" "),"1"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P1?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P2?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P3?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P4?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e(),e._v(" "),"1"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"check_circle",color:"green"}})],1):e._e(),e._v(" "),"2"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"remove_circle",color:"gray"}})],1):e._e(),e._v(" "),"3"==t.P5?n("f7-col",{attrs:{width:"5"}},[n("f7-icon",{attrs:{material:"cancel",color:"red"}})],1):e._e()],1)}))],2)],1)}),[],!1,null,"ec4ddb26",null).exports),$m={methods:{confirm:function(e){this.$store.dispatch("confirmRequest",e)},remove:function(e){this.$store.dispatch("deleteRequest",e)}},computed:{friend_requests:function(){return this.$store.getters.friend_requests}},created:function(){this.$store.dispatch("getMyRequests")}},Pm=(n(400),Ef($m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Requests","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Friend requests")]),e._v(" "),n("f7-list",{attrs:{"media-list":""}},e._l(e.friend_requests,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"green"},on:{click:function(n){return e.confirm(t)}}},[e._v("Add")]),e._v(" "),n("f7-swipeout-button",{attrs:{color:"red"},on:{click:function(n){return e.remove(t)}}},[e._v("Delete")])],1)],1)})),1)],1)}),[],!1,null,"626b71e2",null).exports),Om=n(82),Lm=n.n(Om);function Am(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Im(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Am(o,r,i,a,s,"next",e)}function s(e){Am(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Dm={data:function(){return{messageText:"",username:null,textdate:null,giftMessage:null,deleteSerial:null,hold_message:null,friend_email:null,friend:null,friend_Details:null,attachments:[],sheetVisible:!1,typingMessage:{},responseInProgress:!1,messagetype:"video"}},computed:{replyMessageURL:function(){return this.$store.getters.replyMessageURL},replyMessage:function(){return this.$store.getters.replyMessage},wallet:function(){return this.$store.getters.wallet},user_payout:function(){return this.$store.getters.user_payout},gift:function(){return this.$store.getters.gift},files:function(){return this.$store.getters.files},chatOpen:function(){return this.$store.getters.chatOpen},user:function(){return this.$store.getters.user},onesignal_playerID:function(){return this.$store.getters.onesignal_playerID},advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},sent_by:function(){return this.$store.getters.sent_by},received_by:function(){return this.$store.getters.received_by},subscribe_affiliate_friend:function(){return this.$store.getters.subscribe_affiliate_friend},block_by_friend:function(){return this.$store.getters.block_by_friend},friend_status:function(){return this.$store.getters.friend_status},ban_status:function(){return this.$store.getters.ban_status},user_status:function(){return this.$store.getters.user_status},images:function(){return this.$store.getters.images},chat_messages:function(){return this.$store.getters.chat_messages},typing_message:function(){return this.$store.getters.typing_message},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.replyMessage?"Message":this.attachments.length>0?"Add comment or Send":"Message"}},beforeDestroy:function(){var e={},t={};e.email_u=this.user[0].email,e.email_f=this.friend.email,e.domain="penpalamerica.com",t.email=this.user[0].email,t.domain="penpalamerica.com",this.$store.dispatch("resetMessageCount",e),this.$store.dispatch("updateUserStatus",t)},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages}))},watch:{},methods:{convertURIToImageData:function(e){return new Promise((function(t,n){if(null==e)return n();var r=document.createElement("canvas"),i=r.getContext("2d"),o=new Image;o.addEventListener("load",(function(){r.width=o.width,r.height=o.height,i.drawImage(o,0,0,r.width,r.height),t(i.getImageData(0,0,r.width,r.height))}),!1),o.src=e}))},replyMe:function(){var e=this;return Im(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$f7.popover.close(),e.$store.commit("setReplyMessage",!0),(n={}).email=e.user[0].email,n.text=e.giftMessage,n.username=e.username,n.textdate=e.textdate,t.next=10,e.$store.dispatch("convertTextToImage",n);case 10:r=t.sent,e.$store.commit("setReplyMessageURL",r),e.attachments.unshift(r);case 13:case"end":return t.stop()}}),t)})))()},gifttemp:function(e,t,n,r){this.giftMessage=e,this.deleteSerial=t,this.username=n,this.textdate=r},gifttemp2:function(e,t,n,r){this.giftMessage=e,this.deleteSerial=t,this.username=n,this.textdate=r},giftVenus:function(e){var t=this,n=0,r="";if(1==e&&(n=100,r="Sending Venus Gift to "),2==e&&(n=500,r="Sending Mars Gift to "),3==e&&(n=1e3,r="Sending Jupiter Gift to "),this.wallet<n)this.$f7.dialog.create({title:"Wallet too low to gift "+this.friend.name,text:"Your wallet is too low. Please click TopUp Account to continue",content:"",buttons:[{text:"Cancel",close:!0},{text:"Topup Account"}],onClick:function(e,n){if(1==n){var r=t.$f7;t.$f7router.navigate("/pay4me/",{}),t.$f7.dialog.close(),r.panel.close()}},on:{open:function(){}}}).open();else this.$f7.dialog.create({title:r+this.friend.name,text:"You are about to send "+n+" Points to "+this.friend.name+". Please click send to confirm",content:"",buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(e,r){if(1==r){var i=t.$f7,o={};o.email_f=t.friend.email,o.email_u=t.user[0].email,o.domain=t.user[0].domain,o.amount=n,o.name=t.friend.name,t.$store.dispatch("sendGiftVenus",o),t.$f7.dialog.close(),i.panel.close()}},on:{open:function(){}}}).open()},deleteMessage:function(e){var t=this,n=this.$f7;n.popover.close();var r;this.$f7.dialog.create({title:"Delete Message?",text:"Do you want to Delete this Message?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:(r=Im(bf.a.mark((function r(i,o){var a;return bf.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(1!=o){r.next=12;break}return(a={}).email_f=t.friend.email,a.email_u=t.user[0].email,a.domain=t.user[0].domain,a.message_id=e,r.next=8,t.$store.dispatch("deleteMessage",a);case 8:t.$f7.dialog.close(),n.panel.close(),r.next=12;break;case 12:case"end":return r.stop()}}),r)}))),function(e,t){return r.apply(this,arguments)}),on:{open:function(){}}}).open()},deleteMessageMe:function(e){var t=this,n=this.$f7;n.popover.close();var r;this.$f7.dialog.create({title:"Delete Message?",text:"Do you want to Delete this Message?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:(r=Im(bf.a.mark((function r(i,o){var a;return bf.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(1!=o){r.next=12;break}return(a={}).email_f=t.friend.email,a.email_u=t.user[0].email,a.domain=t.user[0].domain,a.message_id=e,r.next=8,t.$store.dispatch("deleteMessageMe",a);case 8:t.$f7.dialog.close(),n.panel.close(),r.next=12;break;case 12:case"end":return r.stop()}}),r)}))),function(e,t){return r.apply(this,arguments)}),on:{open:function(){}}}).open()},deleteMessageMePlus:function(e){var t=this,n=this.$f7;n.popover.close();var r;this.$f7.dialog.create({title:"Delete Message?",text:"Do you want to Delete this Message?",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:(r=Im(bf.a.mark((function r(i,o){var a;return bf.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(1!=o){r.next=12;break}return(a={}).email_f=t.friend.email,a.email_u=t.user[0].email,a.domain=t.user[0].domain,a.message_id=e,r.next=8,t.$store.dispatch("deleteMessageMePlus",a);case 8:t.$f7.dialog.close(),n.panel.close(),r.next=12;break;case 12:case"end":return r.stop()}}),r)}))),function(e,t){return r.apply(this,arguments)}),on:{open:function(){}}}).open()},gotoGallery:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/viewuserprofile/"+encodeURIComponent(t))},placeAdvert:function(){cordova.InAppBrowser.open("http://apache.org","_blank","location=yes"),window.open("https://www.swiftallianceltd.com/","_system")},unMatch:function(e,t){var n=this;this.$f7.dialog.close(),this.$f7.popover.close();this.$f7.dialog.create({title:"Unmatch ".concat(t,"?"),text:"This will remove ".concat(t," from your friend list and communication between two of you will not be possible again. Please can you confirm you want this?"),content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,r){if(1==r){var i=n.$f7,o={};o.email_u=n.user[0].email,o.email_f=e,o.domain=n.user[0].domain;n.$store.dispatch("unMatchUser",o);n.$f7.dialog.close(),i.panel.close(),n.$f7.popover.close(),n.$store.commit("setAlertMessage","Done. Account Unmatched! Please close the popup.")}},on:{open:function(){}}}).open()},initHome:function(){},refreshTyping:function(){var e=this;return Im(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.chatOpen&&((n={}).email_u=e.user[0].email,n.email_f=e.friend.email,n.domain=e.user[0].domain,e.$store.dispatch("getTypingMessages",n));case 1:case"end":return t.stop()}}),t)})))()},activeUsers:function(e){return chat_messages.filter((function(e){return"B6CMLDC11DUQVcDzWSKG2OFcIgi2"==e.sentby}))},pay4me:function(e){var t=JSON.stringify(e);this.$f7router.navigate("/pay4me/"+encodeURIComponent(t))},reportUser:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Reason for Reporting",text:"1. Sending nude pictures<br>2. Abusive language<br>3. Indecent conversation<br>4. Others",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="tel" placeholder="Enter number"  required validate pattern="[1-4]*" data-error-message="Only numbers from 1 to 4" maxlength="1"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if("1"==r||"2"==r||"3"==r||"4"==r){var i={};i.email_u=e.user[0].email,i.email_f=e.friend.email,i.domain=e.user[0].domain,i.userAbuse=r,e.$store.dispatch("reportUserToAdmin",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Select Reason for Reporting the user")},on:{open:function(){}}}).open()},unBlockUser:function(e){var t={};t.email_u=this.user[0].email,t.email_f=this.friend.email,t.domain=this.user[0].domain,this.$store.dispatch("unBlockUser",t),this.$f7.popover.close()},blockUser:function(e){var t={};t.email_u=this.user[0].email,t.email_f=this.friend.email,t.domain=this.user[0].domain,this.$store.dispatch("blockUser",t),this.$f7.popover.close()},addModerator:function(e){this.$store.dispatch("addModerator",this.friend.uid),this.$f7.popover.close()},removeModerator:function(e){this.$store.dispatch("removeModerator",this.friend.uid),this.$f7.popover.close()},unBanUser:function(e){this.$store.dispatch("unBanUser",this.friend.uid),this.$store.dispatch("getBanUserStatus",this.friend.uid),this.$f7.popover.close()},banUser:function(e){var t=this;return Im(bf.a.mark((function e(){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$f7.popover.close(),t.$f7.dialog.create({title:"Reason for Banning User",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Reason for Banning"  required validate  maxlength="100"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(e,n){var r=e.$el.find(".dialog-input").val().trim();if(0!=r.length){if(r.length<10)return void t.$store.commit("setAlertMessage","Reason provided too short...");var i={};i.uid=t.friend.uid,i.comments=r,t.$store.dispatch("banUser",i),t.$store.dispatch("getBanUserStatus",t.friend.uid),t.$store.commit("setAlertMessage","User has been banned");var o={uid:t.friend.uid,comments:r};t.$f7.request.post("https://penpalamerica.com/statistics/banuser.php",o,(function(e){}))}else 1==n&&t.$store.commit("setAlertMessage","Provide Reason for Banning the user")},on:{open:function(){}}}).open();case 2:case"end":return e.stop()}}),e)})))()},gotoKeyDown:function(e){var t=this;return Im(bf.a.mark((function e(){var n;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n={}).email_u=t.user[0].email,n.email_f=t.friend.email,n.domain=t.user[0].domain,e.next=6,t.$store.dispatch("sendDownTypingMessage",n);case 6:t.$store.dispatch("getTypingMessages",n);case 7:case"end":return e.stop()}}),e)})))()},gotoKeyUp:function(e){var t=this,n={};n.email_u=this.user[0].email,n.email_f=this.friend.email,n.domain=this.user[0].domain,setTimeout(Im(bf.a.mark((function e(){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$store.dispatch("getTypingMessages",n);case 1:case"end":return e.stop()}}),e)}))),3e3)},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},isFirstMessage:function(e,t){var n=this.chat_messages[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.chat_messages[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.chat_messages[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0],this.$store.commit("setReplyMessage",!1)},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this;return Im(bf.a.mark((function t(){var n,r,i,o,a,s,l;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n={}).email_u=e.user[0].email,n.email=e.user[0].email,n.email_f=e.friend.email,n.domain=e.friend.domain,n.amount=1,r=n,e.$store.dispatch("getWallet",n),t.next=10,e.$store.dispatch("checkUserBlocked",n);case 10:if("1"!=(i=t.sent)){t.next=14;break}return e.$store.commit("setAlertMessage","You have blocked the user, please unblock the user before sending message..."),t.abrupt("return");case 14:if("2"!=i){t.next=17;break}return e.$store.commit("setAlertMessage","You have been blocked by this user"),t.abrupt("return");case 17:return t.next=19,e.$store.dispatch("checkUserUnmatch",n);case 19:if("1"!=(i=t.sent)){t.next=23;break}return e.$store.commit("setAlertMessage","This account has been unmatched and messages cannot be sent to it..."),t.abrupt("return");case 23:if("2"!=i){t.next=26;break}return e.$store.commit("setAlertMessage","This account has been unmatched and messages cannot be sent to it..."),t.abrupt("return");case 26:if(!window.hasOwnProperty("cordova")){t.next=33;break}return t.next=29,e.$store.dispatch("checkConnection");case 29:if("offline"!=t.sent){t.next=33;break}return e.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),t.abrupt("return");case 33:if(null==e.onesignal_playerID){t.next=42;break}return(n={}).onesignal_playerID=e.onesignal_playerID,n.message="You have a new message from "+e.user[0].name,n.photo_url1=e.user[0].photo_url1,t.next=40,e.$store.dispatch("sendNotificationPlus",n);case 40:t.next=52;break;case 42:return(n={}).email_u=e.user[0].email,n.email_f=e.friend.email,n.photo_url=e.user[0].photo_url1,n.friend_name=e.friend.name,n.profileMessage=e.user[0].profileMessage,n.domain=e.friend.domain,n.name=e.user[0].name,t.next=52,e.$store.dispatch("sendEmailNotification",n);case 52:if(a=(o=e).messagebar.getValue().replace(/\n/g,"<br>").trim(),s=[],o.attachments.forEach((function(e){s.push({image:e})})),a.trim().length&&s.push({text:a}),0!==s.length){t.next=59;break}return t.abrupt("return");case 59:return t.next=61,e.$store.dispatch("checkMessageType",r);case 61:if(l=t.sent,1,"Sender"!=l){t.next=75;break}if(!(e.wallet<1)){t.next=69;break}return e.$f7.dialog.create({title:"Wallet too low to send message to "+e.friend.name,text:"Your wallet is too low. Please click TopUp Account to continue",content:"",buttons:[{text:"Cancel",close:!0},{text:"Topup Account"}],onClick:function(t,n){if(1==n){var r=e.$f7;e.$f7router.navigate("/pay4me/",{}),e.$f7.dialog.close(),r.panel.close()}},on:{open:function(){}}}).open(),t.abrupt("return");case 69:return t.next=71,e.$store.dispatch("chargeUser",r);case 71:if("0"==t.sent){t.next=75;break}return e.$store.commit("setAlertMessage","Sorry, we cannot charge you this time. Please try again or report to Admin"),t.abrupt("return");case 75:if(!(o.attachments.length>0)){t.next=85;break}if(!e.replyMessage||null==e.replyMessageURL){t.next=82;break}return t.next=79,o.$store.dispatch("sendMessage",{email_f:o.friend.email,msg:a,img:e.replyMessageURL,email_u:o.friend.user_email,domain:o.friend.domain,sentby:o.friend.user_email,messageType:l});case 79:e.$store.commit("setReplyMessage",!1),t.next=83;break;case 82:Lm.a.forEach(o.files,(function(e){o.$store.dispatch("uploadImageMySQLChat",e).then((function(e){o.$store.dispatch("sendMessage",{email_f:o.friend.email,msg:a,img:e,email_u:o.friend.user_email,domain:o.friend.domain,sentby:o.friend.user_email,messageType:l})}))}));case 83:t.next=87;break;case 85:return t.next=87,o.$store.dispatch("sendMessage",{email_f:o.friend.email,msg:a,img:null,email_u:o.friend.user_email,domain:o.friend.domain,sentby:o.friend.user_email,messageType:l});case 87:if("Reply"!=l){t.next=92;break}return t.next=90,e.$store.dispatch("payUser",r);case 90:0!=t.sent&&e.$store.commit("setAlertMessage","Sorry, we could not pay you for replying to this chat. Please report it to Admin");case 92:o.attachments=[],o.sheetVisible=!1,o.messagebar.clear(),a.length>0&&o.messagebar.focus();case 96:case"end":return t.stop()}}),t)})))()},resetTypingMessage:function(){var e=this;setTimeout((function(){e.$store.dispatch("sendUpTypingMessage",e.friend_Details)}),4e3)}},created:function(){this.$store.commit("setChatOpen",!0);var e=this.$f7route.params.frd;this.friend=JSON.parse(e),this.friend_Details=this.friend,this.friend_email=this.friend.email;var t={};t.email=this.user[0].email,t.domain=this.user[0].domain,this.$store.dispatch("getUserPersonalDetails",t),this.$store.commit("setShowTabs",!1);var n={};n.email_u=this.user[0].email,n.email=this.friend.email,n.domain=this.user[0].domain,this.$store.dispatch("getOnesignalPlayerID",n),t.email_u=this.user[0].email,t.email_f=this.friend.email,t.domain=this.user[0].domain,this.$store.dispatch("getChatMessages",t),this.$store.dispatch("getWallet",t),setInterval(this.refreshTyping,5e3)}},Nm=(n(401),Ef(Dm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return(e.friend_email=e.friend.email)?n("div",[n("f7-page",{on:{"page:beforein":e.initHome}},["online"==this.friend.userStatus?n("div",[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus,"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},on:{click:function(t){return e.gotoGallery(e.friend)}},slot:"media"})]),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1)],1):n("div",[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.userStatus+" "+e.moment(this.friend.lastSeen,"YYYYMMDD").fromNow(),"back-link":"Back"}},[n("div",{attrs:{slot:"left"},slot:"left"},[n("img",{staticClass:"small-avatar2",attrs:{slot:"media",src:this.friend.photo_url1},on:{click:function(t){return e.gotoGallery(e.friend)}},slot:"media"})]),e._v(" "),n("f7-link",{attrs:{slot:"right","popover-open":".popover-menu"},slot:"right"},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])])],1)],1),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible},nativeOn:{keydown:function(t){return e.gotoKeyDown(e.friend)},keyup:function(t){return e.gotoKeyUp(e.friend)}}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:paperclip","icon-aurora":"f7:Paperclip","icon-md":"material:link"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.chat_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,i){return n("f7-message",{key:i,attrs:{name:t.name,type:t.type,image:t.image,avatar:t.avatar,first:e.isFirstMessage(t,r),last:e.isLastMessage(t,r),tail:e.isTailMessage(t,r)}},["received"!=t.type?n("div",{attrs:{slot:"text"},slot:"text"},["1"==t.messagedeleted||"2"==t.messagedeleted?n("div",[n("span",[n("i",{staticClass:"f7-icons size-16 color-icon-white"},[e._v(" nosign")]),e._v("\n                 "),n("i",[e._v("You deleted this message")])])]):n("div",[n("f7-link",{staticClass:"color-white",attrs:{slot:"right","popover-open":".popover-menu-reply-delete"},on:{click:function(n){return e.gifttemp(t.text,t.sn,t.name,t.smalldate)}},slot:"right"},[t.text?n("span",{domProps:{innerHTML:e._s(t.text)}}):e._e()])],1)]):n("div",{attrs:{slot:"text"},slot:"text"},["1"==t.messagedeleted?n("div",[n("i",{staticClass:"f7-icons size-16 color-icon-white"},[e._v(" nosign")]),e._v(" "),n("i",[e._v("This message was deleted")])]):e._e(),e._v(" "),"3"==t.messagedeleted?n("div",[n("i",{staticClass:"f7-icons size-16 color-icon-white"},[e._v(" nosign")]),e._v(" "),n("i",[e._v("This message was deleted by you")])]):e._e(),e._v(" "),"0"==t.messagedeleted||"2"==t.messagedeleted?n("div",[n("f7-link",{staticClass:"color-gray",attrs:{slot:"right","popover-open":".popover-menu-reply"},on:{click:function(n){return e.gifttemp2(t.text,t.sn,t.name,t.smalldate)}},slot:"right"},[t.text?n("span",{domProps:{innerHTML:e._s(t.text)}}):e._e()])],1):e._e()]),e._v(" "),n("div",{attrs:{slot:"text","text-align":"right"},slot:"text"},["2"==t.read?n("span",{staticClass:"chat-time"},["1"==t.status?n("div",[e._v("\n                "+e._s(t.smalldate)+"\n                "),n("i",{staticClass:"material-icons color-greenyellow size-12"},[e._v("done_all")])]):n("div",[e._v(e._s(t.smalldate))])]):n("span",{staticClass:"chat-time"},["1"==t.status?n("div",[e._v("\n                "+e._s(t.smalldate)+"\n                "),n("i",{staticClass:"material-icons color-white size-12"},[e._v("done")])]):n("div",[e._v(e._s(t.smalldate))])])])])})),e._v(" "),e.friend.email==e.sent_by&&(e.friend_Details.user_email=e.received_by)&&1==e.typing_message?n("f7-message",{attrs:{type:"received",typing:!0,first:!0,last:!0,tail:!0,header:e.friend_Details.name+" is typing",avatar:e.friend_Details.photo_url1}}):e._e()],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}}),e._v(" "),"3"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Ban User"},on:{click:function(t){return e.banUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Ban User"},on:{click:function(t){return e.unBanUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Add Moderator"},on:{click:function(t){return e.addModerator(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Remove Moderator"},on:{click:function(t){return e.removeModerator(""+e.friend)}}})],1)],1):e._e(),e._v(" "),"2"==e.user_status?n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Ban User"},on:{click:function(t){return e.banUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Ban User"},on:{click:function(t){return e.unBanUser(""+e.friend)}}})],1)],1):e._e(),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Un-Match Friend"},on:{click:function(t){return e.unMatch(e.friend.email,e.friend.name)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Block User"},on:{click:function(t){return e.blockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Unblock User"},on:{click:function(t){return e.unBlockUser(""+e.friend)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Report User"},on:{click:function(t){return e.reportUser(""+e.friend)}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popover-menu-reply"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Reply"},on:{click:function(t){return e.replyMe(e.giftMessage)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Delete Message for me"},on:{click:function(t){return e.deleteMessageMePlus(e.deleteSerial)}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popover-menu-reply-delete"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Reply"},on:{click:function(t){return e.replyMe(e.giftMessage)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Delete Message for everyone"},on:{click:function(t){return e.deleteMessage(e.deleteSerial)}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Delete Message for me"},on:{click:function(t){return e.deleteMessageMe(e.deleteSerial)}}})],1)],1),e._v(" "),n("f7-popup",{staticClass:"demo-popup"},[n("f7-page",[n("f7-navbar",{attrs:{title:this.friend.name,subtitle:this.friend.location}},[n("div",{attrs:{slot:"default"},slot:"default"},[n("span",{attrs:{"v-if":this.friend.birthDate}},[e._v(e._s(e.moment(this.friend.birthDate,"YYYYMMDD").fromNow(!0)))])]),e._v(" "),n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover1",attrs:{src:this.friend.photo_url1}})]),e._v(" "),n("p",[n("b",[e._v("Status:")]),e._v("\n            "+e._s(this.friend.userStatus)),n("br"),e._v(" "),"offline"==this.friend.userStatus?n("span",[n("b",[e._v("Lastseen:")]),e._v("\n              "+e._s(e.moment(this.friend.lastSeen).fromNow())+" ")]):e._e(),n("br"),e._v(" "),n("b",[e._v("Profile Message")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.friend.profileMessage)+"\n\n            "),n("br"),n("b",[e._v("Location")]),e._v(" "),n("br"),e._v("\n            "+e._s(this.friend.location)+"\n          ")]),e._v(" "),n("p",[e._v("\n            UnMatch  "+e._s(this.friend.name)+"\n            "),n("f7-link",{on:{click:function(t){return e.unMatch(e.friend.email,e.friend.name)}}},[n("f7-icon",{attrs:{material:"delete",color:"blue"}})],1)],1)]),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts visit Swift Alliance Limited website")]),e._v(" "),n("f7-link",{attrs:{href:"https://www.swiftallianceltd.com/",external:""}},[e._v("Place Advert")])],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMessage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts visit Swift Alliance Limited website")]),e._v(" "),n("f7-link",{attrs:{href:"https://www.swiftallianceltd.com/",external:""}},[e._v("Place Advert")])],1)],1)],1)],1)],1):e._e()}),[],!1,null,"0e26e364",null).exports),Rm={data:function(){return{posts:[],myUrl:"https://247sms.com"}},computed:{user_notifications:function(){return this.$store.getters.user_notifications},user:function(){return this.$store.getters.user}},methods:{},created:function(){var e={};e.email=this.user[0].email,e.domain=this.user[0].domain,this.$store.dispatch("getUserNotifications",e),this.$store.dispatch("resetTotalNotify",e)}},jm=(n(402),Ef(Rm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"notifications"}},[n("f7-navbar",{attrs:{title:"Notifications","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("h1",[n("b",[e._v("Recent Notifications")])])]),e._v(" "),n("f7-block",e._l(e.user_notifications,(function(t,r){return n("f7-list",{key:r},[n("h2",{domProps:{innerHTML:e._s(t.title)}}),e._v(" "),n("p",{domProps:{innerHTML:e._s(t.messageDetails)}}),e._v(" "),n("span",{staticClass:"small-time",domProps:{innerHTML:e._s(e.moment(t.dateCreated).format("MMMM Do YYYY, h:mm a"))}})])})),1)],1)}),[],!1,null,"59cf50ee",null).exports),Bm=Ef({data:function(){return{agreement:!1}},computed:{user_country:function(){return this.$store.getters.user_country},subscribe_affiliate:function(){return this.$store.getters.subscribe_affiliate}},methods:{onCheckBoxChange:function(e){e.target.value;e.target.checked?this.agreement=!0:this.agreement=!1},deactivateAffiliate:function(){var e=this;this.$f7.dialog.create({title:"Delete Gift Feature?",text:"Your Gifts including your earns for the month  will be deleted. Confirm if you want to continue with deleting your Gift Account.",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,n){if(1==n){var r=e.$f7;e.$store.dispatch("deleteAffiliate"),e.$f7.dialog.close(),r.panel.close(),e.$store.dispatch("getUserAffiliate")}},on:{open:function(){}}}).open()},activateAffiliate:function(){var e=this;if(this.agreement)if("Nigeria"==this.user_country){this.$f7.popover.close();this.$f7.dialog.create({title:"Bank Details",text:"",content:"<div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input' type='text' placeholder='Bank Name' required /></div></div><div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input account-number' type='text' placeholder='Account - Number' required /></div></div><div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input account-name' type='text' placeholder='Account Name' required /></div></div>",buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".account-number").val().trim(),o=t.$el.find(".account-name").val().trim();if(r.length>=2)if(10==i.length)if(o.length>=2){var a={};a.bank_name=r,a.account_number=i,a.account_name=o,a.paypal="",e.$store.dispatch("processAffiliate",a),e.$f7.dialog.close(),e.$store.dispatch("getUserAffiliate")}else e.$store.commit("setAlertMessage","Account Name too short");else e.$store.commit("setAlertMessage","Account Number is too short or too long");else 1==n&&e.$store.commit("setAlertMessage","Bank Name too short")},on:{open:function(){}}}).open()}else{this.$f7.popover.close();this.$f7.dialog.create({title:"Paypal Details",text:"",content:"<div class='dialog-input-field item-input'><div class='item-input-wrap'><input class='dialog-input' type='text' placeholder='PayPay Details' required /></div></div>",buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>=2){var i={bank_name:"",account_number:"",account_name:""};i.paypal=r,e.$store.dispatch("processAffiliate",i),e.$f7.dialog.close(),e.$store.dispatch("getUserAffiliate")}else 1==n&&e.$store.commit("setAlertMessage","Your PayPal Details are too Short")},on:{open:function(){}}}).open()}else this.$store.commit("setAlertMessage","Check I agree button to continue...")}},created:function(){this.$store.dispatch("getUserCountry"),this.$store.dispatch("getUserAffiliate")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about"}},[n("f7-navbar",{attrs:{title:"Gift Program","back-link":"Back"}}),e._v(" "),n("f7-block-title",[n("b",[e._v("Join Our Gift Program")])]),e._v(" "),"Nigeria"==e.user_country?n("f7-block",{attrs:{strong:""}},[n("p",[e._v("The Gift features once activated allows members to send you real money. We have three categories of Gifts: Bronze, Silver or Gold. For your country, Bronze is N1,000.00, Silver is N3,000 and Gold is N5,000")]),e._v(" "),n("p",[e._v("You get paid on Friday Whenever your earnings reach N5,000 or more. Note for any money you earn we charge 25% admin fees. This means if a member sends you Bronze of N1,000, we will credit your account with N750.")])]):n("f7-block",[n("p",[e._v("The Gift features once activated allows members to send you real money. We have three categories of Gifts: Bronze, Silver or Gold. For your country, Bronze is $2.00, Silver is $5.00 and Gold is $10.00")]),e._v(" "),n("p",[e._v("You get paid on Friday Whenever your earnings reach $25.00 or more. Note for any money you earn we charge 25% admin fees. This means if a member sends you Bronze of $2.0, we will credit your account with $1.50.")])]),e._v(" "),n("div",[this.subscribe_affiliate?n("f7-block",[n("p",[n("font",{attrs:{color:"green"}},[e._v("Your Affiliate Account is Active")])],1),e._v(" "),n("f7-button",{attrs:{fill:"",color:"red"},on:{click:e.deactivateAffiliate}},[e._v("DeActivate Program")])],1):n("f7-block",[n("div",{staticClass:"list media-list"},[n("f7-list",[n("f7-list-item",{attrs:{checkbox:"",title:"I agree with the above conditions.",name:"affiliate-checkbox",color:"green"},on:{change:e.onCheckBoxChange}})],1)],1),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.activateAffiliate}},[e._v("Activate Program")])],1)],1)],1)}),[],!1,null,null,null).exports,Ym={components:{f7Page:Oh,f7LoginScreenTitle:th,f7List:eh,f7ListItem:Zd,f7ListButton:zd,f7BlockFooter:yd,f7ListInput:Wd},data:function(){return{twitter:null,instagram:null}},methods:{registerModerator:function(){var e={};null!=this.twitter&&null!=this.instagram?(e.twitter=this.twitter,e.instagram=this.instagram,this.$store.dispatch("processModerator",e),this.$store.commit("setAlertMessage","Your Form received and Email sent to you. Please check your email."),this.twitter=null,this.instagram=null):this.$store.commit("setAlertMessage","Please provide your Twitter and Instagram details")},created:function(){}}},Fm=(n(403),Ef(Ym,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"about","no-swipeback":"","login-screen":""}},[n("f7-navbar",{attrs:{title:"Be A Moderator","back-link":"Back"}}),e._v(" "),n("f7-block",[n("p",[n("b",[e._v("Be Our Moderator.")])])]),e._v(" "),n("f7-block",[n("p",[e._v("\n      Do you have over 500 followers in your Twitter and Instagram Pages?"),n("br"),e._v("\n      If Yes, please complete the form below to be selected as our Moderator.\n    ")])]),e._v(" "),n("div",{staticClass:"align-center"},[n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.twitter,label:"Your Twitter Handle",type:"text",placeholder:"Your Twitter Handle","clear-button":"",required:""},on:{input:function(t){e.twitter=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{value:e.instagram,label:"Your Instagram IG",type:"text",placeholder:"Your Instagram IG","clear-button":"",required:""},on:{input:function(t){e.instagram=t.target.value}}})],1)],1),e._v(" "),n("div",[n("f7-block",[n("f7-button",{attrs:{fill:""},on:{click:e.registerModerator}},[e._v("Submit")])],1)],1)],1)}),[],!1,null,"45d5b5de",null).exports),Hm={data:function(){return{userCountry:null,text1:"Join Chatme24 to meet new friends",text2:"Join Penpal America to meet new friends",everydayblogger:[],weekblogger:[],monthblogger:{type:Array,default:function(){return[{}]}},todayblogger:[]}},watch:{user_country:function(e){}},methods:{advertrouter:function(e){this.$f7router.navigate("https://247sms.com",External)},gotoJoinGroup:function(e){this.$store.dispatch("addGroupMember"),this.$store.commit("setAlertMessage","You have been added to the group")},gotoGroup:function(e){this.$f7router.navigate("/chatgroup/")},init:function(){var e=this;this.$store.commit("setShowTabs",!0);this.$f7ready((function(t){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(t){var n={country:t.val().country},r=e,i=r.$f7;i.request.post("https://penpalamerica.com/register/sportsnewsupdatefrench.php",n,(function(e){var t=JSON.parse(e);r.everydayblogger=t})),i.request.post("https://penpalamerica.com/register/sportsnewsupdategermany.php",n,(function(e){var t=JSON.parse(e);r.todayblogger=t})),i.request.post("https://penpalamerica.com/register/sportsnewsupdatespain.php",n,(function(e){var t=JSON.parse(e);r.weekblogger=t})),i.request.post("https://penpalamerica.com/register/sportsnewsupdateengland.php",n,(function(e){var t=JSON.parse(e);r.monthblogger=t}))}))}))}},computed:{advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},chat_groups:function(){return this.$store.getters.chat_groups},user_country:function(){return this.$store.getters.user_country}},mounted:function(){},created:function(){this.init()}},Um=(n(404),Ef(Hm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"chatgroups"},on:{"page:beforein":e.init}},[n("f7-navbar",{attrs:{title:"Sports Update","back-link":"Back"}}),e._v(" "),n("f7-block",[n("f7-block",[n("h4",[e._v("Premier League Updates")]),e._v(" "),n("p",[e._v("Powered By Google Alert")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("Spain La Liga Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("Germany - Bundesliga Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("h4",[e._v("French - Ligue1 Sports Updates")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"100",medium:"50"}},e._l(e.everydayblogger,(function(t,r){return n("p",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("br"),e._v(e._s(t.content)+"\n\n            "),n("f7-link",{attrs:{href:t.link,external:""}},[e._v(" Read More --\x3e ")])],1)})),0)],1),e._v(" "),n("p",[e._v("Source: Google Alert")])],1)],1)],1)}),[],!1,null,"1d0b922a",null).exports),zm={data:function(){return{userCountry:null,text1:"Join Chatme24 to meet new friends",text2:"Join Penpal America to meet new friends",weekblogger:[],monthblogger:[],todayblogger:[]}},watch:{},methods:{advertrouter:function(e){this.$f7router.navigate("https://247sms.com",External)},gotoJoinGroup:function(e){this.$store.dispatch("addGroupMember"),this.$store.commit("setAlertMessage","You have been added to the group")},gotoGroup:function(e){this.$f7router.navigate("/chatgroup/")},init:function(){var e=this;this.$store.commit("setShowTabs",!0);this.$f7ready((function(t){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(t){var n={country:t.val().country},r=e,i=r.$f7;i.request.post("https://penpalamerica.com//statistics//todayblogger.php",n,(function(e){var t=JSON.parse(e);r.todayblogger=t})),i.request.post("https://penpalamerica.com//statistics//weekblogger.php",n,(function(e){var t=JSON.parse(e);r.weekblogger=t})),i.request.post("https://penpalamerica.com//statistics//monthblogger.php",n,(function(e){var t=JSON.parse(e);r.monthblogger=t}))}))}))}},computed:{advert_default:function(){return this.$store.getters.advert_default},advert_country:function(){return this.$store.getters.advert_country},chat_groups:function(){return this.$store.getters.chat_groups},user_country:function(){return this.$store.getters.user_country}},mounted:function(){},created:function(){this.init()}},Vm=(n(405),Ef(zm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"chatgroups"},on:{"page:beforein":e.init}},[n("div",{staticClass:"wrapper"},[n("f7-navbar",{attrs:{title:"Football Blogging"}}),e._v(" "),n("f7-block",[n("f7-link",{on:{click:e.gotoGroup}},[e._v("Start 247footballchat Blogging")]),e._v(" "),n("f7-block",[n("h4",[e._v("This Month Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.name)+"\n            ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.monthblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.scores)+"\n            ")])})),0)],1),e._v(" "),n("h4",[e._v("This Week Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.name)+"\n            ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.weekblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.scores)+"\n            ")])})),0)],1),e._v(" "),n("h4",[e._v("Today's Top Bloggers")]),e._v(" "),n("f7-row",[n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.name)+"\n            ")])})),0),e._v(" "),n("f7-col",{attrs:{width:"50",medium:"25"}},e._l(e.todayblogger,(function(t,r){return n("p",{key:r},[e._v("\n              "+e._s(t.scores)+"\n            ")])})),0)],1)],1)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("h4",[n("b",[e._v("Paid Adverts")])]),e._v(" "),n("span",[e._v("\n      To place your adverts below send mail to support@247footballchat.com\n    ")])]),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_country,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("f7-block",[n("f7-row",{attrs:{"no-gap":""}},[n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2==0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2==0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0),e._v(" "),n("f7-col",e._l(e.advert_default,(function(t,r){return n("p",{key:r},[r%2>0?n("f7-link",{attrs:{href:t.url,external:""}},[n("img",{staticClass:"image--cover",attrs:{src:t.image,alt:t.alternate}})]):e._e(),e._v(" "),r%2>0?n("span",[n("br"),e._v(e._s(t.textMesage))]):e._e()],1)})),0)],1)],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("p",[e._v("To place your adverts here send mail to support@247footballchat.com")])])],1)}),[],!1,null,"e7d30c40",null).exports);function qm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var Wm={data:function(){return{user_uid:null,openBraket:" (",closeBraket:")",chatgroup:null,attachments:[],sheetVisible:!1,typingMessage:null,messagesData:[],responseInProgress:!1,appState:1,moderator:!0}},computed:{total_group_messages:function(){return this.$store.getters.total_group_messages},number_online:function(){return this.$store.getters.number_online},typing_message_group:function(){return this.$store.getters.typing_message_group},app_state:function(){return this.$store.getters.app_state},user_status:function(){return this.$store.getters.user_status},chat_group_name:function(){return this.$store.getters.chat_group_name},group_messages:function(){return this.$store.getters.group_messages},images:function(){return this.$store.getters.images},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},watch:{typing_message_group:function(e){}},beforeDestroy:function(){this.$store.dispatch("statisticsUsersOnlineRemove")},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages})),this.$store.dispatch("getGroupName2")},methods:{sendBroadCast:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Send Broadcast Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Title"  required maxlength="50"> <div class="item-input-wrap"><input class="dialog-input body" type="textarea" placeholder="Enter Message"  resizable required maxlength="200"></div></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Send"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim(),i=t.$el.find(".body").val().trim();if(""!=r&&""!=i){var o={};o.title=r,o.message_details=i,e.$store.dispatch("pushNotifications",o);var a={group_name:e.chat_group_name,message:"Broadcast: Title: "+r+" Message: "+i,img:null};e.$store.dispatch("sendGroupMessage",a),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Fields cannot be empty")},on:{open:function(){}}}).open()},liveScores:function(){this.$f7router.navigate("/livescores/"),this.$f7.popover.close()},sportsUpdate:function(){this.$f7router.navigate("/sportsupdate/"),this.$f7.popover.close()},standing:function(){this.$f7router.navigate("/standings/"),this.$f7.popover.close()},placeAdvert:function(){var e=this;this.$f7.popover.close();this.$f7.dialog.create({title:"Provide Advert Details",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input-URL" type="text" placeholder="URL"  required validate  maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-image" type="text" placeholder="Image URL"  required validate  maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-alternate" type="text" placeholder="Alternate"  required validate  maxlength="100"></div><div class="item-input-wrap"><input class="dialog-input-textmessage" type="text" placeholder="Text Message"  required validate  maxlength="200"></div><div class="item-input-wrap"><input class="dialog-input-country" type="text" placeholder="Country"  required validate  maxlength="50"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Submit"}],onClick:function(t,n){var r=t.$el.find(".dialog-input-URL").val().trim(),i=t.$el.find(".dialog-input-image").val().trim(),o=t.$el.find(".dialog-input-alternate").val().trim(),a=t.$el.find(".dialog-input-textmessage").val().trim(),s=t.$el.find(".dialog-input-country").val().trim();if(0!=r.length)if(0!=i.length)if(0!=o.length)if(0!=a.length)if(0!=s.length){var l={url:r,image:i,alternate:o,textMesage:a,country:s};e.$store.dispatch("placeAdvert",l),e.$store.commit("setAlertMessage","Advert Placed Successfully")}else e.$store.commit("setAlertMessage","Provide Country message");else e.$store.commit("setAlertMessage","Provide Text message");else e.$store.commit("setAlertMessage","Provide Alternate message");else e.$store.commit("setAlertMessage","Provide Image message");else e.$store.commit("setAlertMessage","Provide URL message")},on:{open:function(){}}}).open();this.$f7.popover.close()},lockApp:function(){this.$store.dispatch("closeAppState"),this.$store.dispatch("getAppState"),this.$f7.popover.close()},openApp:function(){this.$store.dispatch("openAppState"),this.$store.dispatch("getAppState"),this.$f7.popover.close()},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},leaveGroup:function(){var e={};e.group_name=this.chat_group_name,this.$store.dispatch("leaveGroup",e)},goto:function(e){this.$f7router.navigate(e)},isFirstMessage:function(e,t){var n=this.messagesData[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e,t=this;return(e=bf.a.mark((function e(){var n,r,i,o,a,s,l;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.hasOwnProperty("cordova")){e.next=7;break}return e.next=3,t.$store.dispatch("checkConnection");case 3:if("offline"!=e.sent){e.next=7;break}return t.$store.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue..."),e.abrupt("return");case 7:return e.next=9,t.$store.dispatch("getUserStatus");case 9:return e.next=11,t.$store.dispatch("getAppState");case 11:if(t.app_state||"1"!=t.user_status){e.next=14;break}return t.$store.commit("setAlertMessage","Only moderators can send messages now"),e.abrupt("return");case 14:if("0"!=t.user_status){e.next=17;break}return t.$store.commit("setAlertMessage","You have been banned from using this service"),e.abrupt("return");case 17:if(r=(n=t).messagebar.getValue().replace(/\n/g,"<br>").trim(),i=[],n.attachments.forEach((function(e){i.push({image:e})})),r.trim().length&&i.push({text:r}),0!==i.length){e.next=24;break}return e.abrupt("return");case 24:if(!(n.attachments.length>0)){e.next=28;break}_.forEach(n.attachments,(function(e){n.$store.dispatch("uploadChatImages",e).then((function(e){var i={group_name:t.chat_group_name,message:r,img:e};n.$store.dispatch("sendGroupMessage",i)}))})),e.next=38;break;case 28:return o={group_name:t.chat_group_name,message:r,img:null},n.$store.dispatch("sendGroupMessage",o),e.next=32,t.$store.dispatch("getUserCountry");case 32:return a=e.sent,e.next=35,t.$store.dispatch("getUserEmail");case 35:s=e.sent,l={uid:mf.a.auth().currentUser.uid,country:a,email:s,name:mf.a.auth().currentUser.displayName},t.$f7.request.post("https://penpalamerica.com/statistics/statistics.php",l,(function(e){}));case 38:n.attachments=[],n.sheetVisible=!1,n.messagebar.clear(),r.length&&n.messagebar.focus(),n.responseInProgress;case 43:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){qm(o,r,i,a,s,"next",e)}function s(e){qm(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},created:function(){this.user_uid=mf.a.auth().currentUser.uid,this.$store.commit("setShowTabs",!1),this.$store.dispatch("getGroupMessages"),this.$store.dispatch("getAppState"),this.$store.dispatch("getUserStatus"),this.$store.dispatch("statisticsUsersOnline"),this.$store.dispatch("getTotalGroupMessages")}},Gm=(n(406),Ef(Wm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Online: "+e.number_online,subtitle:"Messages sent: "+e.total_group_messages,"back-link":"Back"}},[n("f7-nav-right",[e.app_state?n("span",[n("f7-link",{attrs:{href:"/livescores/"}},[e._v("Live")]),e._v("  ")],1):n("span",[e._v("G-Closed  ")]),e._v(" "),"3"==e.user_status?n("f7-link",{attrs:{"popover-open":".popover-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e(),e._v(" "),"2"==e.user_status?n("f7-link",{attrs:{"popover-open":".popoverModerator-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e(),e._v(" "),"1"==e.user_status?n("f7-link",{attrs:{"popover-open":".popoverUser-menu"}},[n("i",{staticClass:"f7-icons"},[e._v("ellipsis_vertical")])]):e._e()],1)],1),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.group_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,i){return n("f7-message",{key:i,attrs:{type:t.type,image:t.image,name:t.displayName+e.openBraket+t.club+e.closeBraket,club:t.club,avatar:t.avatar,first:e.isFirstMessage(t,r),last:e.isLastMessage(t,r),tail:e.isTailMessage(t,r)}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),t.text?n("span",{staticClass:"chat-time",attrs:{slot:"text"},domProps:{innerHTML:e._s(t.smalldate)},slot:"text"}):e._e()])})),e._v(" "),e.typing_message_group>0?n("f7-message",{attrs:{type:"received",typing:!0,first:!0,last:!0,tail:!0,header:e.typing_message_group+" Person(s) typing"}}):e._e()],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}}),e._v(" "),n("f7-popover",{staticClass:"popover-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Close Gateway"},on:{click:function(t){return e.lockApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Open Gate"},on:{click:function(t){return e.openApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Place Advert"},on:{click:function(t){return e.placeAdvert()}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popoverModerator-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Close Gateway"},on:{click:function(t){return e.lockApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Open Gate"},on:{click:function(t){return e.openApp()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Send Broadcast Message"},on:{click:function(t){return e.sendBroadCast()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}})],1)],1),e._v(" "),n("f7-popover",{staticClass:"popoverUser-menu"},[n("f7-list",[n("f7-list-item",{attrs:{"popover-close":"",title:"Live Scores"},on:{click:function(t){return e.liveScores()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Sports Update"},on:{click:function(t){return e.sportsUpdate()}}}),e._v(" "),n("f7-list-item",{attrs:{"popover-close":"",title:"Standings"},on:{click:function(t){return e.standing()}}})],1)],1)],1)}),[],!1,null,"a6b40e0e",null).exports),Km=Ef({data:function(){return{friend:null,friend_Details:null,attachments:[],sheetVisible:!1,responseInProgress:!1}},computed:{images:function(){return this.$store.getters.images},post_chat_messages:function(){return this.$store.getters.post_chat_messages},attachmentsVisible:function(){return this.attachments.length>0},placeholder:function(){return this.attachments.length>0?"Add comment or Send":"Message"}},mounted:function(){var e=this;e.$f7ready((function(){e.messagebar=e.$refs.messagebar.f7Messagebar,e.messages=e.$refs.messages.f7Messages}))},methods:{launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFileMessage")},isFirstMessage:function(e,t){var n=this.messagesData[t-1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isLastMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},isTailMessage:function(e,t){var n=this.messagesData[t+1];return!e.isTitle&&(!n||n.type!==e.type||n.name!==e.name)},deleteAttachment:function(e){var t=this.attachments.indexOf(e);this.attachments.splice(t,1)[0]},handleAttachment:function(e){var t=this.$$(e.target).parents("label.checkbox").index(),n=this.images[t];e.target.checked?this.attachments.unshift(n):this.attachments.splice(this.attachments.indexOf(n),1)},sendMessage:function(){var e=this,t=e.messagebar.getValue().replace(/\n/g,"<br>").trim(),n=[];e.attachments.forEach((function(e){n.push({image:e})})),t.trim().length&&n.push({text:t}),0!==n.length&&(e.attachments.length>0?_.forEach(e.attachments,(function(n){e.$store.dispatch("uploadChatImages",n).then((function(n){e.$store.dispatch("sendMessageToFriends",{friend:e.friend,msg:t,img:n})}))})):e.$store.dispatch("sendMessageToFriends",{friend:e.friend,msg:t,img:null}),e.attachments=[],e.sheetVisible=!1,e.messagebar.clear(),t.length>0&&e.messagebar.focus())}},created:function(){this.$store.commit("setShowTabs",!1),this.$store.dispatch("getPostChatMessages")}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",[n("f7-navbar",{attrs:{title:"Post Messages To Your Friends","back-link":"Back"}}),e._v(" "),n("f7-messagebar",{ref:"messagebar",attrs:{placeholder:e.placeholder,"attachments-visible":e.attachmentsVisible,"sheet-visible":e.sheetVisible}},[n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:folder","icon-aurora":"f7:folder","icon-md":"material:folder"},on:{click:e.launchFilePicker},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-start","icon-ios":"f7:camera_fill","icon-aurora":"f7:camera_fill","icon-md":"material:camera_alt"},on:{click:function(t){e.sheetVisible=!e.sheetVisible}},slot:"inner-start"}),e._v(" "),n("f7-link",{attrs:{slot:"inner-end","icon-ios":"f7:arrow_up_fill","icon-aurora":"f7:arrow_up_fill","icon-md":"material:send"},on:{click:e.sendMessage},slot:"inner-end"}),e._v(" "),n("f7-messagebar-attachments",e._l(e.attachments,(function(t,r){return n("f7-messagebar-attachment",{key:r,attrs:{image:t},on:{"attachment:delete":function(n){return e.deleteAttachment(t)}}})})),1),e._v(" "),n("f7-messagebar-sheet",e._l(e.images,(function(t,r){return n("f7-messagebar-sheet-image",{key:r,attrs:{image:t,checked:e.attachments.indexOf(t)>=0},on:{change:e.handleAttachment}})})),1)],1),e._v(" "),n("f7-messages",{ref:"messages"},e._l(e.post_chat_messages,(function(t,r){return n("div",{key:r,staticClass:"messages"},[n("f7-messages-title",[n("b",[e._v(e._s(r))])]),e._v(" "),e._l(t,(function(t,r){return n("f7-message",{key:r,attrs:{type:t.type,image:t.image,name:t.name,avatar:t.avatar}},[t.text?n("span",{attrs:{slot:"text"},domProps:{innerHTML:e._s(t.text)},slot:"text"}):e._e(),e._v(" "),t.text?n("span",{staticClass:"chat-time",attrs:{slot:"text"},domProps:{innerHTML:e._s(t.smalldate)},slot:"text"}):e._e()])}))],2)})),0),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:e.onFilePicked}})],1)}),[],!1,null,null,null).exports;function Jm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}var Xm={data:function(){return{group_name:"New Group"}},computed:{group_image_url:function(){return this.$store.getters.group_image_url},files:function(){return this.$store.getters.files}},methods:{createGroup:function(){var e,t=this;return(e=bf.a.mark((function e(){var n;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n={}).name=t.group_name,n.pic=t.group_image_url,console.log(n),!t.files){e.next=8;break}return e.next=7,t.$store.dispatch("uploadFile","group_profile/");case 7:n.pic=e.sent;case 8:t.$store.dispatch("createGroup",n);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Jm(o,r,i,a,s,"next",e)}function s(e){Jm(o,r,i,a,s,"throw",e)}a(void 0)}))})()},launchFilePicker:function(){this.$refs.file.click()},onFilePicked:function(){this.$store.dispatch("readFile","setGroupImageURL")}},created:function(){this.$store.commit("setGroupImageURL","https://firebasestorage.googleapis.com/v0/b/PenpalAmerica-4c8cf.appspot.com/o/group_profile%2Fgroup%20icon.jpg?alt=media&token=2a2ef2b7-31fb-4677-a1d6-664c48791542")}},Qm=(n(407),Ef(Xm,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"newgroup"}},[n("f7-navbar",{attrs:{title:"New group","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("New group")]),e._v(" "),n("f7-block",[n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.group_image_url,alt:""},on:{click:e.launchFilePicker}})]),e._v(" "),n("f7-list",{attrs:{"no-hairlines-md":""}},[n("f7-list-input",{attrs:{value:e.group_name,label:"Group Name",type:"text",placeholder:"Your group name","clear-button":""},on:{input:function(t){e.group_name=t.target.value}}})],1),e._v(" "),n("f7-button",{attrs:{fill:""},on:{click:e.createGroup}},[e._v("Create New Group")]),e._v(" "),n("input",{ref:"file",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.onFilePicked}})],1)],1)}),[],!1,null,"067745cc",null).exports);function Zm(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ev(e){return function(e){if(Array.isArray(e))return tv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tv(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nv={data:function(){return{group_name:null}},computed:{p_members:function(){var e=ev(this.$store.getters.friends);return _.forEach(this.group_members,(function(t){var n=_.findIndex(e,t);e.splice(n,1)})),e},group_members:function(){return this.$store.getters.group_members}},methods:{add:function(e){var t={};t.newmember=e,t.group_name=this.group_name,this.$store.dispatch("addMember",t)}},created:function(){var e,t=this;return(e=bf.a.mark((function e(){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.group_name=t.$f7route.params.group_name,t.$store.dispatch("getGroupMembers",t.group_name);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Zm(o,r,i,a,s,"next",e)}function s(e){Zm(o,r,i,a,s,"throw",e)}a(void 0)}))})()}},rv=(n(408),Ef(nv,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"addmembers"}},[n("f7-navbar",{attrs:{title:"Add Members","back-link":"Back"}}),e._v(" "),n("f7-block-title",[e._v("Add members")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.p_members,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"green"},on:{click:function(n){return e.add(t)}}},[e._v("Add")])],1)],1)})),1)],1)],1)}),[],!1,null,"45580f0e",null).exports),iv={data:function(){return{group_name:null}},computed:{group_members:function(){return this.$store.getters.group_members}},created:function(){this.group_name=this.$f7route.params.group_name,this.$store.dispatch("getGroupMembers",this.group_name)}},ov=(n(409),Ef(iv,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"groupinfo"}},[n("f7-navbar",{attrs:{title:"groupinfo","back-link":"Back"}}),e._v(" "),e.group_members.length>0?n("f7-block-title",[e._v(e._s(e.group_members.length)+" member"+e._s(e.group_members.length>1?"s":""))]):n("f7-block-title",[e._v("No members yet")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.group_members,(function(e,t){return n("f7-list-item",{key:t,attrs:{swipeout:"",title:e.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:e.photo_url},slot:"media"})])})),1)],1)],1)}),[],!1,null,"045a652f",null).exports),av={data:function(){return{group_name:null}},methods:{remove:function(e){var t={};t.member=e,t.group_name=this.group_name,this.$store.dispatch("removeMember",t)}},computed:{group_members:function(){return this.$store.getters.group_members}},created:function(){this.group_name=this.$f7route.params.group_name,this.$store.dispatch("getGroupMembers",this.group_name)}},sv=(n(410),[{path:"/",component:Cf},{path:"/signin/",component:ip},{path:"/signinbackup/",component:ep},{path:"/firstpage/",component:ap},{path:"/signup/:phone",component:cp},{path:"/viewprofile/",component:kp},{path:"/editprofile/",component:hp},{path:"/addphoto/",component:mp},{path:"/addphotovideo/",component:yp},{path:"/editprofilepicture/",component:Cp},{path:"/phoneverify/",component:$p},{path:"/verifyemail/:email",component:Ap},{path:"/members/",component:Vp},{path:"/following/",component:Kp},{path:"/followers/",component:Zp},{path:"/followers2/",component:rm},{path:"/elite/",component:sm},{path:"/match/",component:dm},{path:"/spotlight/",component:vm},{path:"/update/",component:_m},{path:"/newversion/",component:Op},{path:"/about/",name:"AboutPage",component:Tf},{path:"/form/",component:xf},{path:"/catalog/",component:Mf},{path:"/pay4me/",component:Fp},{path:"/settings/",component:$f},{path:"/contacts/",component:Dp},{path:"/requests/",component:Pm},{path:"/chat/:frd",component:Nm},{path:"/gallery/:frd",component:Ff},{path:"/viewuserprofile/:frd",component:qf},{path:"/usernotifications/",component:jm},{path:"/livescores/",component:Em},{path:"/sportsupdate/",component:Um},{path:"/standings/",component:Mm},{path:"/affiliate/",component:Bm},{path:"/beamoderator/",component:Fm},{path:"/chatgroups/",component:Vm},{path:"/chatgroup/",component:Gm},{path:"/postfriends/",component:Km},{path:"/newgroup/",component:Qm},{path:"/addmembers/:group_name",component:rv},{path:"/groupmembers/:group_name",component:Ef(av,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-page",{attrs:{name:"groupmembers"}},[n("f7-navbar",{attrs:{title:"groupmembers","back-link":"Back"}}),e._v(" "),e.group_members.length>0?n("f7-block-title",[e._v(e._s(e.group_members.length)+" member"+e._s(e.group_members.length>1?"s":""))]):n("f7-block-title",[e._v("No members yet")]),e._v(" "),n("f7-block",[n("f7-list",{attrs:{"media-list":""}},e._l(e.group_members,(function(t,r){return n("f7-list-item",{key:r,attrs:{swipeout:"",title:t.name}},[n("img",{staticClass:"small-avatar",attrs:{slot:"media",src:t.photo_url},slot:"media"}),e._v(" "),n("f7-swipeout-actions",{attrs:{right:""}},[n("f7-swipeout-button",{attrs:{color:"red"},on:{click:function(n){return e.remove(t)}}},[e._v("Remove")])],1)],1)})),1)],1)],1)}),[],!1,null,"12041dd4",null).exports},{path:"/groupinfo/:group_name",component:ov},{path:"/dynamic-route/blog/:blogId/post/:postId/",component:Wf},{path:"/request-and-load/user/:userId/",async:function(e,t,n,r){var i=this.app;i.preloader.show();e.params.userId;setTimeout((function(){i.preloader.hide(),n({component:Gf},{context:{user:{firstName:"Vladimir",lastName:"Kharlampidi",about:"Hello, i am creator of Framework7! Hope you like it!",links:[{title:"Framework7 Website",url:"http://framework7.io"},{title:"Framework7 Forum",url:"http://forum.framework7.io"}]}}})}),1e3)}},{path:"(.*)",component:Kf}]);mf.a.initializeApp({apiKey:"AIzaSyBOrXDYXQam4RhmVBe_ea2EwUHvRrTiwms",authDomain:"penpalamerica.firebaseapp.com",databaseURL:"https://penpalamerica.firebaseio.com",projectId:"penpalamerica",storageBucket:"penpalamerica.appspot.com",messagingSenderId:"737042362490",appId:"1:737042362490:web:55c82badf582b5765b4bc3"});var lv={data:function(){return{userEmail:null,f7params:{id:"com.penpalamerica.penpal",name:"Penpal America",theme:"auto",data:function(){return{user:{firstName:"John",lastName:"Doe"},products:[{id:"1",title:"Apple iPhone 8",description:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nisi tempora similique reiciendis, error nesciunt vero, blanditiis pariatur dolor, minima sed sapiente rerum, dolorem corrupti hic modi praesentium unde saepe perspiciatis."},{id:"2",title:"Apple iPhone 8 Plus",description:"Velit odit autem modi saepe ratione totam minus, aperiam, labore quia provident temporibus quasi est ut aliquid blanditiis beatae suscipit odio vel! Nostrum porro sunt sint eveniet maiores, dolorem itaque!"},{id:"3",title:"Apple iPhone X",description:"Expedita sequi perferendis quod illum pariatur aliquam, alias laboriosam! Vero blanditiis placeat, mollitia necessitatibus reprehenderit. Labore dolores amet quos, accusamus earum asperiores officiis assumenda optio architecto quia neque, quae eum."}]}},routes:sv,input:{scrollIntoViewOnFocus:this.$device.cordova&&!this.$device.electron,scrollIntoViewCentered:this.$device.cordova&&!this.$device.electron},statusbar:{overlay:this.$device.cordova&&this.$device.ios||"auto",iosOverlaysWebView:!0,androidOverlaysWebView:!1}},username:"",password:""}},mixins:[Xf],computed:{user:function(){return this.$store.getters.user},user_pageSize:function(){return this.$store.getters.user_pageSize},show_tabbar:function(){return this.$store.getters.show_tabbar},signed_in:function(){return this.$store.getters.signed_in},photo_url:function(){return this.$store.getters.photo_url},display_name:function(){return this.$store.getters.display_name},user_location:function(){return this.$store.getters.user_location},user_club:function(){return this.$store.getters.user_club},profile_message:function(){return this.$store.getters.profile_message}},watch:{user:function(e){null!=e&&(this.userEmail=e[0].email)}},methods:{deleteAccount:function(){var e=this;this.$f7.dialog.create({title:"Delete Account?",text:"Your Profile including your messages will be deleted. Confirm if you want to continue with the Account Deletion",content:"",buttons:[{text:"No",close:!0},{text:"Yes"}],onClick:function(t,n){if(1==n){var r=e.$f7,i={};i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("deleteAccount",i),e.$f7.dialog.close(),r.panel.close()}},on:{open:function(){}}}).open()},editClub:function(){var e=this;this.$f7.dialog.create({title:"Enter your new club name",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New Club" maxlength="10"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.club=r,e.$store.dispatch("editClub",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},editLocation:function(){var e=this;this.$f7.dialog.create({title:"Enter New Location",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter Your New Location" maxlength="50"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.location=r,i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("editLocation",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},genderSearch:function(){var e=this;this.$f7.dialog.create({title:"Enter Gender Search ( M or F)",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter New Gender Search" required maxlength="1" ></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.genderSearch=r,i.email=e.user[0].email,i.domain=e.user[0].domain,"M"==r||"F"==r?(e.$store.dispatch("editgenderSearch",i),e.$f7.dialog.close()):e.$store.commit("setAlertMessage","Allowed inputs are 'M' or 'F'")}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){}}}).open()},editProfileMessage:function(){var e=this;this.$f7.dialog.create({title:"Enter New Profile Message",text:"",content:'<div class="dialog-input-field item-input"><div class="item-input-wrap"><input class="dialog-input" type="text" placeholder="Enter New Profile Message" maxlength="200"></div></div>',buttons:[{text:"Cancel",close:!0},{text:"Ok"}],onClick:function(t,n){var r=t.$el.find(".dialog-input").val().trim();if(r.length>0){var i={};i.profileMessage=r,i.email=e.user[0].email,i.domain=e.user[0].domain,e.$store.dispatch("editProfileMessage",i),e.$f7.dialog.close()}else 1==n&&e.$store.commit("setAlertMessage","Empty Message is not allowed")},on:{open:function(){console.log("OPEN")}}}).open()},sendTokenToServer:function(e){console.log(e)},alertLoginData:function(){this.$f7.dialog.alert("Username: "+this.username+"<br>Password: "+this.password)},signOut:function(){var e=this.$f7;this.$store.dispatch("signOut"),e.panel.close()}},mounted:function(){this.$f7ready((function(e){e.device.cordova&&gf.init(e)}))}},cv=(n(411),Ef(lv,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("f7-app",{attrs:{params:e.f7params}},[n("f7-panel",{attrs:{left:"",cover:"","theme-dark":""}},[e.signed_in?n("f7-view",[n("f7-page",[n("f7-block",[n("f7-block",[e._v("Display Name:  "+e._s(e.user[0].name))])],1),e._v(" "),n("div",{staticClass:"wrapper"},[n("img",{staticClass:"image--cover",attrs:{src:e.user[0].photo_url1,alt:""}})]),e._v(" "),n("f7-block",[e._v("\n          Location:  "+e._s(e.user[0].location)+"\n          "),n("f7-link",{on:{click:function(t){return e.editLocation()}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("pencil")])])],1),e._v(" "),n("f7-block",[e._v("\n          Profile Message:  "+e._s(e.user[0].profileMessage)+"\n          "),n("f7-link",{on:{click:function(t){return e.editProfileMessage()}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("pencil")])])],1),e._v(" "),n("f7-block",[e._v("\n          Gender Search:  "+e._s(e.user[0].genderSearch)+"\n          "),n("f7-link",{on:{click:function(t){return e.genderSearch()}}},[n("i",{staticClass:"f7-icons size-29 color-icon-red"},[e._v("pencil")])])],1),e._v(" "),n("f7-block",[e._v("\n          Delete Account\n          "),n("f7-link",{on:{click:function(t){return e.deleteAccount()}}},[n("i",{staticClass:"f7-icons size-12 color-icon-red"},[e._v("bin_xmark_fill")])])],1),e._v(" "),n("f7-list",[n("f7-list-item",{attrs:{view:".view-main","panel-close":"",title:"Sign out"},on:{click:e.signOut}})],1)],1)],1):e._e()],1),e._v(" "),e.signed_in?n("f7-views",{staticClass:"safe-areas",attrs:{tabs:""}},[n("f7-toolbar",{directives:[{name:"show",rawName:"v-show",value:e.show_tabbar,expression:"show_tabbar"}],attrs:{tabbar:"",labels:"",bottom:""}},[n("f7-link",{attrs:{"tab-link":"#view-home","tab-link-active":"","icon-ios":"f7:home_fil","icon-aurora":"f7:home_fil","icon-md":"material:favorite",text:"Friends"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-members","icon-ios":"f7:people_round_fill","icon-aurora":"f7:people_round_fill","icon-md":"material:person",text:"Members"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-followers","icon-ios":"f7:persons_round_fill","icon-aurora":"f7:persons_round_fill","icon-md":"material:grade",text:"Followers"}}),e._v(" "),n("f7-link",{attrs:{"tab-link":"#view-spotlight","icon-ios":"f7:persons_round_fill","icon-aurora":"f7:persons_round_fill","icon-md":"material:visibility",text:"Spotlight"}})],1),e._v(" "),n("f7-view",{attrs:{id:"view-home",main:"",tab:"","tab-active":"",url:"/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-members",name:"members",tab:"",url:"/members/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-followers",name:"followers",tab:"",url:"/followers/"}}),e._v(" "),n("f7-view",{attrs:{id:"view-spotlight",name:"spotlight",tab:"",url:"/spotlight/"}})],1):e._e(),e._v(" "),e.signed_in?e._e():n("f7-view",{attrs:{url:"/firstpage/",main:!0}}),e._v(" "),n("f7-popup",{attrs:{id:"my-popup"}},[n("f7-view",[n("f7-page",[n("f7-navbar",{attrs:{title:"Popup"}},[n("f7-nav-right",[n("f7-link",{attrs:{"popup-close":""}},[e._v("Close")])],1)],1),e._v(" "),n("f7-block",[n("p",[e._v("Popup content goes here.")])])],1)],1)],1),e._v(" "),n("f7-login-screen",{attrs:{id:"my-login-screen"}},[n("f7-view",[n("f7-page",{attrs:{"login-screen":""}},[n("f7-login-screen-title",[e._v("Login")]),e._v(" "),n("f7-list",{attrs:{form:""}},[n("f7-list-input",{attrs:{type:"text",name:"username",placeholder:"Your username",value:e.username},on:{input:function(t){e.username=t.target.value}}}),e._v(" "),n("f7-list-input",{attrs:{type:"password",name:"password",placeholder:"Your password",value:e.password},on:{input:function(t){e.password=t.target.value}}})],1),e._v(" "),n("f7-list",[n("f7-list-button",{attrs:{title:"Sign In","login-screen-close":""},on:{click:e.alertLoginData}}),e._v(" "),n("f7-block-footer",[e._v("\n              Some text about login information.\n              "),n("br"),e._v('Click "Sign In" to close Login Screen\n            ')])],1)],1)],1)],1)],1)}),[],!1,null,"d1915e1a",null).exports),uv=n(101);function dv(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function hv(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){dv(o,r,i,a,s,"next",e)}function s(e){dv(o,r,i,a,s,"throw",e)}a(void 0)}))}}function fv(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n}var pv={state:{user:[],upload_button:!1,app_db_version:null,app_version:null,signed_in:!1,signed_up:!1,valid_inputs:!0,show_resend_email:!1,photo_url:null,display_name:null,user_location:null,genderSearch:null,profile_message:null,total_message:null,total_notify:null,pageStatus:!0},getters:{pageStatus:function(e){return e.pageStatus},user:function(e){return e.user},upload_button:function(e){return e.upload_button},genderSearch:function(e){return e.genderSearch},app_version:function(e){return e.app_version},app_db_version:function(e){return e.app_db_version},valid_inputs:function(e){return e.valid_inputs},signed_in:function(e){return e.signed_in},signed_up:function(e){return e.signed_up},show_resend_email:function(e){return e.show_resend_email},photo_url:function(e){return e.photo_url},display_name:function(e){return e.display_name},user_location:function(e){return e.user_location},profile_message:function(e){return e.profile_message},total_message:function(e){return e.total_message},total_notify:function(e){return e.total_notify}},mutations:{setUser:function(e,t){e.user=t},setPageStatus:function(e,t){e.pageStatus=t},setUploadButton:function(e,t){e.upload_button=t},setGenderSearch:function(e,t){e.genderSearch=t},setAppVersion:function(e,t){e.app_version=t},setAppDbVersion:function(e,t){e.app_db_version=t},setValidInputs:function(e,t){e.valid_inputs=t},setSignedIn:function(e,t){e.signed_in=t},setSignedUp:function(e,t){e.signed_up=t},setShowResendEmail:function(e,t){e.show_resend_email=t},setPhotoURL:function(e,t){e.photo_url=t},setDisplayName:function(e,t){e.display_name=t},setUserLocation:function(e,t){e.user_location=t},setProfileMessage:function(e,t){e.profile_message=t},setTotalMessage:function(e,t){e.total_message=t},setTotalNotify:function(e,t){e.total_notify=t}},actions:{checkConnection:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),new Promise((function(e,t){var n=navigator.connection.type,r={};r[Connection.UNKNOWN]="Unknown connection",r[Connection.ETHERNET]="Ethernet connection",r[Connection.WIFI]="WiFi connection",r[Connection.CELL_2G]="Cell 2G connection",r[Connection.CELL_3G]="Cell 3G connection",r[Connection.CELL_4G]="Cell 4G connection",r[Connection.CELL]="Cell generic connection",r[Connection.NONE]="No network connection","No network connection"==r[n]?e("offline"):e("online")})).catch((function(e){reject(e)}))},getAppDbVersion:function(e){e.commit;return new Promise((function(e,t){var n={domain:"penpalamerica.com"},r=n;Uu.request.post("https://penpalamerica.com/penpal/penpalgetappversion.php",r,(function(t){e(t)}))}))},getAppVersion:function(e){var t=e.commit;"Android"==fv()&&t("setAppVersion","Android"),"iOS"==fv()&&t("setAppVersion","iOS")},resetVerifyInputs:function(e){(0,e.commit)("setValidInputs",!0)},verifyInputs:function(e,t){var n=e.commit;n("setValidInputs",!1),n("setAlertMessage",t)},rerouteuser:function(e){var t=e.commit;t("setSignedIn",!1),t("setAlertMessage","Please verify with your email"),t("setShowResendEmail",!0)},signInMySQL:function(e,t){return hv(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,o={email:t.email,password:t.password,domain:"penpalamerica.com"},Uu.request.post("https://penpalamerica.com/penpal/loginpenpal.php",o,function(){var e=hv(bf.a.mark((function e(t){var n,a,s;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=JSON.parse(t),a={email:n[0].email,domain:"penpalamerica.com"},"0"!=n[0].response){e.next=14;break}return e.next=5,i("getUserPersonalDetails",a);case 5:s=e.sent,sessionStorage.setItem("email",s[0].email),sessionStorage.setItem("domain",s[0].domain),localStorage.setItem("localemail",s[0].email),localStorage.setItem("localdomain",s[0].domain),r("setAlertMessage","Welcome ".concat(n[0].name)),r("setSignedIn",!0),r("setShowResendEmail",!1),Uu.request.post("https://penpalamerica.com/penpal/loginpenpalnotifications.php",o,function(){var e=hv(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("response",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 14:"1"==n[0].response&&(r("setAlertMessage","Check your email and verify your account."),r("setShowResendEmail",!0)),"2"==n[0].response&&r("setAlertMessage","User not found. Kindly create a new Account"),"3"==n[0].response&&r("setAlertMessage","Incorret login details. Please try again"),"4"==n[0].response&&r("setAlertMessage","Your Account has been banned. Contact Admin"),"5"==n[0].response&&r("setAlertMessage","This account was deleted by you. Contact support if you want it restored"),"-1"==n[0].response&&r("setAlertMessage","Database Error! Please try again or contact Admin");case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){r("setAlertMessage","Network Issue. Please check your internet connection and  try again")}));case 3:case"end":return n.stop()}}),n)})))()},getUserPersonalDetailsPlus:function(e,t){var n=e.commit;return new Promise((function(e,r){Uu.request.post("https://penpalamerica.com/penpal/userdetailspenpal.php",t,function(){var t=hv(bf.a.mark((function t(r){var i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("User details data",r),i=JSON.parse(r),n("setUser",i),n("setUserDetails",i),n("setSignedIn",!0),n("setShowResendEmail",!1),e(i);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},getUserPersonalDetails:function(e,t){var n=e.commit;return new Promise((function(e,r){Uu.request.post("https://penpalamerica.com/penpal/userdetailspenpal.php",t,function(){var t=hv(bf.a.mark((function t(r){var i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=JSON.parse(r),n("setUser",i),n("setUserDetails",i),e(i);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},signIn:function(e,t){return hv(bf.a.mark((function n(){var r,i,o,a,s,l,c,u;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=e.dispatch,o="0",a="0",s="",n.next=6,mf.a.auth().signInWithEmailAndPassword(t.email,t.password).then((function(e){console.log("check check");mf.a.auth().onAuthStateChanged((function(e){if(null!=e)if(e.emailVerified){ed.dialog.close(),r("setAlertMessage","Welcome ".concat(e.displayName)),r("setSignedIn",!0),r("setShowResendEmail",!1);var t=mf.a.auth().currentUser.uid;mf.a.database().ref("users/"+t).update({userStatus:"online"})}else ed.dialog.close(),r("setSignedIn",!1),r("setAlertMessage","Please verify with your email"),r("setShowResendEmail",!0);else ed.dialog.close()}))})).catch((function(e){a="1",s=e.message,console.log("Old user",s)}));case 6:if(console.log("continue",a),"1"!=a){n.next=24;break}return(l={}).email=t.email,l.password=t.password,n.next=13,i("checkUserExistsAmerica",l);case 13:if(!(null!=(c=n.sent)&&c.length>0)){n.next=23;break}return o="1",n.next=18,i("signUpOldUser",c);case 18:return u=n.sent,n.next=21,i("deleteOldAccount",u);case 21:n.next=24;break;case 23:r("setAlertMessage",s);case 24:return n.abrupt("return",o);case 25:case"end":return n.stop()}}),n)})))()},signUp:function(e,t){var n=e.commit,r=e.dispatch,i=t.country;i=(i=(i=(i=(i=i.replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),null!=t.email&&null!=t.password&&mf.a.auth().createUserWithEmailAndPassword(t.email,t.password).then((function(e){mf.a.database().ref("users").child(e.user.uid).set({uid:e.user.uid,country:i,name:t.name,email:t.email,gender:t.gender,phonenumber:t.phonenumber,location:t.location,profileMessage:t.profileMessage,birthDate:t.dateofbirth,emailverified:!1,photo_url:t.photoURL,userType:t.userType,userStatus:t.userStatus,lastSeen:t.lastSeen,userToken:t.userToken,dateCreated:t.lastSeen,payout:"0",photoUpload:t.photoUpload,pageSize:3,serviceExpiration:t.lastSeen}),e.user.updateProfile({displayName:t.name,photoURL:t.photoURL}).then((function(){r("sendVerification"),n("setSignedUp",!0)})).catch((function(e){n("setAlertMessage",e.message)}))})).catch((function(e){n("setAlertMessage",e.message)}))},signUpOldUser:function(e,t){var n=e.commit,r=e.dispatch;if(null!=t[0].email&&null!=t[0].password)return mf.a.auth().createUserWithEmailAndPassword(t[0].email,t[0].password).then((function(e){mf.a.database().ref("users").child(e.user.uid).set({uid:e.user.uid,photoUpload:t[0].photoUpload,country:t[0].country,name:t[0].name,email:t[0].email,gender:t[0].gender,phonenumber:t[0].phonenumber,location:t[0].location,profileMessage:t[0].profileMessage,birthDate:t[0].birthDate,emailverified:t[0].emailverified,photo_url:t[0].photo_url,userType:t[0].userType,userStatus:t[0].userStatus,lastSeen:t[0].lastSeen,userToken:t[0].userToken,dateCreated:t[0].lastSeen,payout:t[0].payout,pageSize:t[0].pageSize,serviceExpiration:t[0].serviceExpiration}),e.user.updateProfile({displayName:t[0].name,photoURL:t[0].photoURL}).then((function(){r("sendVerification"),n("setSignedUp",!0),console.log("updated profile",t[0].email)})).catch((function(e){console.log(e.message),n("setAlertMessage",e.message)}))})).catch((function(e){console.log(e.message),n("setAlertMessage",e.message)})),t[0].uid;console.log("parameters are null")},signOutPlus:function(e){var t=e.commit;t("setShowResendEmail",!0),t("setAlertMessage","Profile Picture uploaded successfully. Please login again  to start chatting"),t("setSignedIn",!1),sessionStorage.clear(),localStorage.clear()},signOut:function(e){var t=e.commit;t("setShowResendEmail",!0),t("setAlertMessage","You have been signed out"),t("setSignedIn",!1),sessionStorage.clear(),localStorage.clear()},countryExist:function(e,t){return hv(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,console.log("country Exists module"),i=(i=(i=(i=(i=(i=t).replace(".","")).replace("#","")).replace("$","")).replace("[","")).replace("]",""),n.next=10,r("checkUserExists2",i);case 10:"#"==n.sent&&mf.a.database().ref("/appState").child(i).set({appStateValue:"0"}).catch((function(e){}));case 12:case"end":return n.stop()}}),n)})))()},sendVerification:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalsendVerification.php",r,(function(e){console.log(e),n("setAlertMessage","0"!=e?"1"==e?"We cannot find the  email provide. No verification email sent.":"A verification email cannot be sent now":"A verification email has been sent to ".concat(t.email))}))}}},mv=n(274),vv=n(3),gv=n(83),yv=n(23);function bv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _v(e,t){this._pairs=[],e&&Object(yv.a)(e,this,t)}const wv=_v.prototype;wv.append=function(e,t){this._pairs.push([e,t])},wv.toString=function(e){const t=e?function(t){return e.call(this,t,bv)}:bv;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var kv=_v;function Sv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ev(e,t,n){if(!t)return e;const r=n&&n.encode||Sv,i=n&&n.serialize;let o;if(o=i?i(t,n):vv.a.isURLSearchParams(t)?t.toString():new kv(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var Cv=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vv.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Tv=n(7),xv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mv={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:kv,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const $v="undefined"!=typeof window&&"undefined"!=typeof document,Pv="object"==typeof navigator&&navigator||void 0,Ov=$v&&(!Pv||["ReactNative","NativeScript","NS"].indexOf(Pv.product)<0),Lv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Av=$v&&window.location.href||"http://localhost";var Iv={...r,...Mv};var Dv=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&vv.a.isArray(r)?r.length:o,s?(vv.a.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&vv.a.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&vv.a.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(vv.a.isFormData(e)&&vv.a.isFunction(e.entries)){const n={};return vv.a.forEachEntry(e,(e,r)=>{t(function(e){return vv.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const Nv={transitional:xv,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=vv.a.isObject(e);if(i&&vv.a.isHTMLForm(e)&&(e=new FormData(e)),vv.a.isFormData(e))return r?JSON.stringify(Dv(e)):e;if(vv.a.isArrayBuffer(e)||vv.a.isBuffer(e)||vv.a.isStream(e)||vv.a.isFile(e)||vv.a.isBlob(e)||vv.a.isReadableStream(e))return e;if(vv.a.isArrayBufferView(e))return e.buffer;if(vv.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(yv.a)(e,new Iv.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Iv.isNode&&vv.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=vv.a.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(yv.a)(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(vv.a.isString(e))try{return(t||JSON.parse)(e),vv.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Nv.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(vv.a.isResponse(e)||vv.a.isReadableStream(e))return e;if(e&&vv.a.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Tv.a.from(e,Tv.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Iv.classes.FormData,Blob:Iv.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vv.a.forEach(["delete","get","head","post","put","patch"],e=>{Nv.headers[e]={}});var Rv=Nv;const jv=vv.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Bv=Symbol("internals");function Yv(e){return e&&String(e).trim().toLowerCase()}function Fv(e){return!1===e||null==e?e:vv.a.isArray(e)?e.map(Fv):String(e)}function Hv(e,t,n,r,i){return vv.a.isFunction(r)?r.call(this,t,n):(i&&(t=n),vv.a.isString(t)?vv.a.isString(r)?-1!==t.indexOf(r):vv.a.isRegExp(r)?r.test(t):void 0:void 0)}class Uv{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Yv(t);if(!i)throw new Error("header name must be a non-empty string");const o=vv.a.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Fv(e))}const o=(e,t)=>vv.a.forEach(e,(e,n)=>i(e,n,t));if(vv.a.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(vv.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&jv[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(vv.a.isHeaders(e))for(const[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=Yv(e)){const n=vv.a.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(vv.a.isFunction(t))return t.call(this,e,n);if(vv.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Yv(e)){const n=vv.a.findKey(this,e);return!(!n||void 0===this[n]||t&&!Hv(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Yv(e)){const i=vv.a.findKey(n,e);!i||t&&!Hv(0,n[i],i,t)||(delete n[i],r=!0)}}return vv.a.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Hv(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return vv.a.forEach(this,(r,i)=>{const o=vv.a.findKey(n,i);if(o)return t[o]=Fv(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();a!==i&&delete t[i],t[a]=Fv(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vv.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vv.a.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Bv]=this[Bv]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Yv(e);t[r]||(!function(e,t){const n=vv.a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return vv.a.isArray(e)?e.forEach(r):r(e),this}}Uv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vv.a.reduceDescriptors(Uv.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),vv.a.freezeMethods(Uv);var zv=Uv;function Vv(e,t){const n=this||Rv,r=t||n,i=zv.from(r.headers);let o=r.data;return vv.a.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function qv(e){return!(!e||!e.__CANCEL__)}function Wv(e,t,n){Tv.a.call(this,null==e?"canceled":e,Tv.a.ERR_CANCELED,t,n),this.name="CanceledError"}vv.a.inherits(Wv,Tv.a,{__CANCEL__:!0});var Gv=Wv,Kv=n(84);function Jv(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Tv.a("Request failed with status code "+n.status,[Tv.a.ERR_BAD_REQUEST,Tv.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Xv=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}};var Qv=function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]};const Zv=(e,t,n=3)=>{let r=0;const i=Xv(50,250);return Qv(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eg=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tg=e=>(...t)=>vv.a.asap(()=>e(...t));var ng=Iv.hasStandardBrowserEnv?function(){const e=Iv.navigator&&/(msie|trident)/i.test(Iv.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=vv.a.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},rg=Iv.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];vv.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),vv.a.isString(r)&&a.push("path="+r),vv.a.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ig(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const og=e=>e instanceof zv?{...e}:e;function ag(e,t){t=t||{};const n={};function r(e,t,n){return vv.a.isPlainObject(e)&&vv.a.isPlainObject(t)?vv.a.merge.call({caseless:n},e,t):vv.a.isPlainObject(t)?vv.a.merge({},t):vv.a.isArray(t)?t.slice():t}function i(e,t,n){return vv.a.isUndefined(t)?vv.a.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!vv.a.isUndefined(t))return r(void 0,t)}function a(e,t){return vv.a.isUndefined(t)?vv.a.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(og(e),og(t),!0)};return vv.a.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);vv.a.isUndefined(a)&&o!==s||(n[r]=a)})),n}var sg=e=>{const t=ag({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=zv.from(s),t.url=Ev(ig(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),vv.a.isFormData(r))if(Iv.hasStandardBrowserEnv||Iv.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Iv.hasStandardBrowserEnv&&(i&&vv.a.isFunction(i)&&(i=i(t)),i||!1!==i&&ng(t.url))){const e=o&&a&&rg.read(a);e&&s.set(o,e)}return t};var lg="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=sg(e);let i=r.data;const o=zv.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:f}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=zv.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Jv((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new Tv.a("Request aborted",Tv.a.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Tv.a("Network Error",Tv.a.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||xv;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Tv.a(t,i.clarifyTimeoutError?Tv.a.ETIMEDOUT:Tv.a.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&vv.a.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),vv.a.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Zv(f,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=Zv(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Gv(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===Iv.protocols.indexOf(g)?n(new Tv.a("Unsupported protocol "+g+":",Tv.a.ERR_BAD_REQUEST,e)):m.send(i||null)}))};var cg=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Tv.a?t:new Gv(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new Tv.a(`timeout ${t} of ms exceeded`,Tv.a.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>vv.a.asap(a),s}};const ug=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},dg=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},hg=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of dg(e))yield*ug(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},fg="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,pg=fg&&"function"==typeof ReadableStream,mg=fg&&("function"==typeof TextEncoder?(vg=new TextEncoder,e=>vg.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var vg;const gg=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yg=pg&&gg(()=>{let e=!1;const t=new Request(Iv.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),bg=pg&&gg(()=>vv.a.isReadableStream(new Response("").body)),_g={stream:bg&&(e=>e.body)};var wg;fg&&(wg=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!_g[e]&&(_g[e]=vv.a.isFunction(wg[e])?t=>t[e]():(t,n)=>{throw new Tv.a(`Response type '${e}' is not supported`,Tv.a.ERR_NOT_SUPPORT,n)})}));const kg=async(e,t)=>{const n=vv.a.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(vv.a.isBlob(e))return e.size;if(vv.a.isSpecCompliantForm(e)){const t=new Request(Iv.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vv.a.isArrayBufferView(e)||vv.a.isArrayBuffer(e)?e.byteLength:(vv.a.isURLSearchParams(e)&&(e+=""),vv.a.isString(e)?(await mg(e)).byteLength:void 0)})(t):n};var Sg=fg&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=sg(e);c=c?(c+"").toLowerCase():"text";let f,p=cg([i,o&&o.toAbortSignal()],a);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&yg&&"get"!==n&&"head"!==n&&0!==(v=await kg(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(vv.a.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=eg(v,Zv(tg(l)));r=hg(n.body,65536,e,t)}}vv.a.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(f);const a=bg&&("stream"===c||"response"===c);if(bg&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=vv.a.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&eg(t,Zv(tg(s),!0))||[];o=new Response(hg(o.body,65536,n,()=>{r&&r(),m&&m()}),e)}c=c||"text";let g=await _g[vv.a.findKey(_g,c)||"text"](o,e);return!a&&m&&m(),await new Promise((t,n)=>{Jv(t,n,{data:g,headers:zv.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Tv.a("Network Error",Tv.a.ERR_NETWORK,e,f),{cause:t.cause||t});throw Tv.a.from(t,t&&t.code,e,f)}});const Eg={http:Kv.a,xhr:lg,fetch:Sg};vv.a.forEach(Eg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Cg=e=>`- ${e}`,Tg=e=>vv.a.isFunction(e)||null===e||!1===e;var xg=e=>{e=vv.a.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Tg(n)&&(r=Eg[(t=String(n)).toLowerCase()],void 0===r))throw new Tv.a(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(Cg).join("\n"):" "+Cg(e[0]):"as no adapter specified";throw new Tv.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Mg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gv(null,e)}function $g(e){return Mg(e),e.headers=zv.from(e.headers),e.data=Vv.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xg(e.adapter||Rv.adapter)(e).then((function(t){return Mg(e),t.data=Vv.call(e,e.transformResponse,t),t.headers=zv.from(t.headers),t}),(function(t){return qv(t)||(Mg(e),t&&t.response&&(t.response.data=Vv.call(e,e.transformResponse,t.response),t.response.headers=zv.from(t.response.headers))),Promise.reject(t)}))}const Pg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pg[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Og={};Pg.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Tv.a(r(i," has been removed"+(t?" in "+t:"")),Tv.a.ERR_DEPRECATED);return t&&!Og[i]&&(Og[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var Lg={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Tv.a("options must be an object",Tv.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new Tv.a("option "+o+" must be "+n,Tv.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Tv.a("Unknown option "+o,Tv.a.ERR_BAD_OPTION)}},validators:Pg};const Ag=Lg.validators;class Ig{constructor(e){this.defaults=e,this.interceptors={request:new Cv,response:new Cv}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ag(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Lg.assertOptions(n,{silentJSONParsing:Ag.transitional(Ag.boolean),forcedJSONParsing:Ag.transitional(Ag.boolean),clarifyTimeoutError:Ag.transitional(Ag.boolean)},!1),null!=r&&(vv.a.isFunction(r)?t.paramsSerializer={serialize:r}:Lg.assertOptions(r,{encode:Ag.function,serialize:Ag.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&vv.a.merge(i.common,i[t.method]);i&&vv.a.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=zv.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[$g.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let h=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=$g.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ev(ig((e=ag(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}vv.a.forEach(["delete","get","head","options"],(function(e){Ig.prototype[e]=function(t,n){return this.request(ag(n||{},{method:e,url:t,data:(n||{}).data}))}})),vv.a.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(ag(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ig.prototype[e]=t(),Ig.prototype[e+"Form"]=t(!0)}));var Dg=Ig;class Ng{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Gv(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ng((function(t){e=t})),cancel:e}}}var Rg=Ng;const jg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jg).forEach(([e,t])=>{jg[t]=e});var Bg=jg;const Yg=function e(t){const n=new Dg(t),r=Object(gv.a)(Dg.prototype.request,n);return vv.a.extend(r,Dg.prototype,n,{allOwnKeys:!0}),vv.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ag(t,n))},r}(Rv);Yg.Axios=Dg,Yg.CanceledError=Gv,Yg.CancelToken=Rg,Yg.isCancel=qv,Yg.VERSION="1.7.7",Yg.toFormData=yv.a,Yg.AxiosError=Tv.a,Yg.Cancel=Yg.CanceledError,Yg.all=function(e){return Promise.all(e)},Yg.spread=function(e){return function(t){return e.apply(null,t)}},Yg.isAxiosError=function(e){return vv.a.isObject(e)&&!0===e.isAxiosError},Yg.mergeConfig=ag,Yg.AxiosHeaders=zv,Yg.formToJSON=e=>Dv(vv.a.isHTMLForm(e)?new FormData(e):e),Yg.getAdapter=xg,Yg.HttpStatusCode=Bg,Yg.default=Yg;var Fg,Hg=Yg,Ug={state:{image_url:"https://penpalamerica.com/images/profilepicture.png",image_url1:"https://penpalamerica.com/images/profilepicture.png",image_url2:"https://penpalamerica.com/images/profilepicture.png",image_url3:"https://penpalamerica.com/images/profilepicture.png",image_url4:"https://penpalamerica.com/images/profilepicture.png",image_url5:"https://penpalamerica.com/images/profilepicture.png",image_url6:"https://penpalamerica.com/images/profilepicture.png",files:null,images:[],group_image_url:"https://penpalamerica.com/images/profilepicture.png",uploadFile:0},getters:{image_url:function(e){return e.image_url},image_url1:function(e){return e.image_url1},image_url2:function(e){return e.image_url2},image_url3:function(e){return e.image_url3},image_url4:function(e){return e.image_url4},image_url5:function(e){return e.image_url5},image_url6:function(e){return e.image_url6},files:function(e){return e.files},images:function(e){return e.images},group_image_url:function(e){return e.group_image_url},uploadFile:function(e){return e.uploadFile}},mutations:{setUploadFile:function(e,t){e.uploadFile=t},setImageURL:function(e,t){e.image_url=t},setImageURL1:function(e,t){e.image_url1=t},setImageURL2:function(e,t){e.image_url2=t},setImageURL3:function(e,t){e.image_url3=t},setImageURL4:function(e,t){e.image_url4=t},setImageURL5:function(e,t){e.image_url5=t},setImageURL6:function(e,t){e.image_url6=t},setGroupImageURL:function(e,t){e.group_image_url=t},setFiles:function(e,t){e.files=t},setImages:function(e,t){e.images=t}},actions:{readFileMessage:function(e){var t=e.commit,n=event.target.files;if(n[0].size>2097152)t("setAlertMessage","The File size is greater than 2MB. Kindly upload image less than 2MB");else for(var r=0;r<n.length;r++){var i=n[r];if(!i.type.match("image"))return void t("setAlertMessage","Invalid File Format. Upload Images only");var o=new FileReader,a=[];o.addEventListener("load",(function(e){var t=e.target;a.push(t.result)})),t("setFiles",n),t("setImages",a),o.readAsDataURL(i)}},readFile:function(e,t){var n=e.commit,r=event.target.files;n("setFiles",r);var i=new FileReader,o=r[0];o.size<=2097152?(i.readAsDataURL(o),i.addEventListener("load",(function(){var e=i.result;n(t,e)}))):n("setAlertMessage","The image size is greater than 2MB")},readFilePlus:function(e,t){var n=e.commit;return new Promise((function(e,r){var i=event.target.files;n("setFiles",i);var o=new FileReader,a=i[0];if(5!=t.url&&6!=t.url||"image/jpeg"!=a.type&&"image/png"!=a.type&&"image/pjpeg"!=a.type)if(1!=t.url&&2!=t.url&&3!=t.url&&4!=t.url||"video/mp4"!=a.type){if("image/jpeg"==a.type||"image/png"==a.type||"image/pjpeg"==a.type){if(!(a.size<=3145728))return void n("setAlertMessage","The image size is greater than 3MB");o.readAsDataURL(a),o.addEventListener("load",(function(){var e=o.result;n(t.action_name,e)}))}if("video/mp4"==a.type){if(!(a.size<=10485760))return void n("setAlertMessage","The video File is greater than 10MB");o.readAsDataURL(a),o.addEventListener("load",(function(){var e=o.result;n(t.action_name,e)}))}e(i)}else n("setAlertMessage","Only Image is allowed here");else n("setAlertMessage","Only Video is allowed here")}))},uploadFile:function(e,t){var n=e.commit,r=e.state;return console.log("file upload module",t),new Promise((function(e,i){var o=r.files[0],a=mf.a.storage().ref(t+"/"+Object(mv.v4)()+".jpg").put(o);a.on("state_changed",(function(e){var t=e.bytesTransferred/e.totalBytes*100;n("setUploadFile",t)}),(function(e){i(e)}),(function(){a.snapshot.ref.getDownloadURL().then((function(t){e(t)}))}))}))},uploadImageMySQL:function(e,t){var n=this,r=e.commit;return new Promise((function(e,i){var o=new FormData;o.append("name","photo"),o.append("photo",t);Hg.post("https://penpalamerica.com/penpalamerica/upload/php/upload.php",o,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(t){var i=JSON.stringify(t),o=JSON.parse(i);n.updateResponse=o,console.log("Display2",t.data[0].message),r("setImages",t.data[0].message),e(t.data[0].message)}))}))},uploadImageMySQLAddPhoto:function(e,t){var n=this,r=e.commit;return new Promise((function(e,i){var o=new FormData;o.append("name","photo"),o.append("photo",t.files);var a="";Hg.post("https://penpalamerica.com/penpalamerica/upload/php/upload.php",o,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(i){var o=JSON.stringify(i),s=JSON.parse(o);n.updateResponse=s,a=i.data[0].errorNo;var l=i.data[0].message;if("0"==a){var c={url:t.url,url_details:l,domain:t.domain,email:t.email},u="setImageURL"+t.url;console.log("action_name2",u),Uu.request.post("https://penpalamerica.com/penpal/uploadaddphoto.php",c,(function(e){if("0"==e)return r(u,l),void r("setAlertMessage","Photo Uploaded Successfully")}))}e("done")}))}))},uploadImageMySQLPlus:function(e,t){e.commit;return new Promise((function(e,n){var r=new FormData;r.append("name","photo"),r.append("photo",t.photo),r.append("email",t.email),r.append("domain",t.domain);Hg.post("https://penpalamerica.com/penpal/uploadplus.php",r,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(t){console.log("image upload response > ",t),"0"==t.data?e("0"):e("1")}))}))},uploadImageMySQLChat:function(e,t){var n=this,r=e.commit;return new Promise((function(e,i){var o=new FormData;o.append("name","photo"),o.append("photo",t);Hg.post("https://penpalamerica.com/penpalamerica/upload/php/uploadchat.php",o,{header:{"Content-Type":"image/png","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE"}}).then((function(t){var i=JSON.stringify(t),o=JSON.parse(i);n.updateResponse=o,console.log("Display2",t.data[0].message),r("setImages",t.data[0].message),e(t.data[0].message)}))}))},uploadChatImages:function(e,t){e.commit;return new Promise((function(e,n){var r=Math.random().toString(36).substr(2,9);console.log("file upload images",t);var i=mf.a.storage().ref("chat_images/"+"".concat(r,".png")).putString(t,"data_url",{contentType:"image/png"});i.on("state_changed",(function(e){var t=e.bytesTransferred/e.totalBytes*100;console.log("Upload is "+t+"% done")}),(function(e){n(e)}),(function(){i.snapshot.ref.getDownloadURL().then((function(t){e(t)}))}))}))}}},zg=mf.a.database().ref("/requests"),Vg=mf.a.database().ref("/friends"),qg=mf.a.database().ref("/chats"),Wg=(mf.a.database().ref("/users"),mf.a.database().ref("/groups")),Gg=mf.a.database().ref("/messageCount"),Kg=(mf.a.database().ref("/typingMessage"),mf.a.database().ref("/blockfriends")),Jg=(mf.a.database().ref("/reportfriends"),mf.a.database().ref("/userNotifications")),Xg=mf.a.database().ref("/postMessages");n(414);function Qg(e){return(Qg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zg(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Qg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ey(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ty(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ey(o,r,i,a,s,"next",e)}function s(e){ey(o,r,i,a,s,"throw",e)}a(void 0)}))}}function ny(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ry(e){return!!e.match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/)}function iy(e,t){Uu.request.post("https://penpalamerica.com/penpal/migrationpenpal.php",e,function(){var e=ty(bf.a.mark((function e(n){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("0"!=n){e.next=3;break}return e.next=3,mf.a.database().ref("users").child(t).update({migrated2:!0});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var oy={state:{wallet:0,user_payout:0,gift:0,replyMessageURL:null,replyMessage:!1,noRecordFollowing:!1,noRecordFollowers:!1,noRecordElite:!1,lastFollowersEmail:null,lastFollowingEmail:null,lastEliteEmail:null,delete_photo2:!1,delete_photo3:!1,delete_photo4:!1,delete_photo5:!1,delete_photo6:!1,advert_default:null,photoStatus:!1,chatOpen:!1,appUpdate:!1,updatePreloader:0,searchResult:0,top_page:!1,bottom_page:!0,back_page:!1,forward_page:!0,db_reference:null,db_cursor:null,onesignal_playerID:null,sent_by:null,received_by:null,subscribe_affiliate_friend:!1,reference:null,contacts:[],followings:[],followers:[],elites:[],search_contacts:[],friends:[],friendsMatch:[],spotLight:[],inspotlight:!1,friend_requests:[],message_count:[],chat_messages:[],typing_message:0,friend_status:0,block_by_friend:0,members:[],user_details:[]},getters:{replyMessageURL:function(e){return e.replyMessageURL},replyMessage:function(e){return e.replyMessage},lastEliteEmail:function(e){return e.lastEliteEmail},lastFollowersEmail:function(e){return e.lastFollowersEmail},lastFollowingEmail:function(e){return e.lastFollowingEmail},noRecordFollowing:function(e){return e.noRecordFollowing},noRecordFollowers:function(e){return e.noRecordFollowers},noRecordElite:function(e){return e.noRecordElite},wallet:function(e){return e.wallet},user_payout:function(e){return e.user_payout},gift:function(e){return e.gift},delete_photo2:function(e){return e.delete_photo2},delete_photo3:function(e){return e.delete_photo3},delete_photo4:function(e){return e.delete_photo4},delete_photo5:function(e){return e.delete_photo5},delete_photo6:function(e){return e.delete_photo6},advert_default:function(e){return e.advert_default},inspotlight:function(e){return e.inspotlight},spotLight:function(e){return e.spotLight},photoStatus:function(e){return e.photoStatus},chatOpen:function(e){return e.chatOpen},friendsMatch:function(e){return e.friendsMatch},updatePreloader:function(e){return e.updatePreloader},appUpdate:function(e){return e.appUpdate},searchResult:function(e){return e.searchResult},top_page:function(e){return e.top_page},bottom_page:function(e){return e.bottom_page},back_page:function(e){return e.back_page},forward_page:function(e){return e.forward_page},db_reference:function(e){return e.db_reference},db_cursor:function(e){return e.db_cursor},onesignal_playerID:function(e){return e.onesignal_playerID},sent_by:function(e){return e.sent_by},received_by:function(e){return e.received_by},subscribe_affiliate_friend:function(e){return e.subscribe_affiliate_friend},reference:function(e){return e.reference},contacts:function(e){return e.contacts},followings:function(e){return e.followings},followers:function(e){return e.followers},elites:function(e){return e.elites},search_contacts:function(e){return e.search_contacts},friends:function(e){return e.friends},members:function(e){return e.members},friend_requests:function(e){return e.friend_requests},message_count:function(e){return e.message_count},chat_messages:function(e){return e.chat_messages},typing_message:function(e){return e.typing_message},friend_status:function(e){return e.friend_status},block_by_friend:function(e){return e.block_by_friend},user_details:function(e){return e.user_details}},mutations:{setReplyMessage:function(e,t){e.replyMessage=t},setReplyMessageURL:function(e,t){e.replyMessageURL=t},setLastFollowersEmail:function(e,t){e.lastFollowersEmail=t},setLastFollowingEmail:function(e,t){e.lastFollowingEmail=t},setLastEliteEmail:function(e,t){e.lastEliteEmail=t},setNoRecordFollowers:function(e,t){e.noRecordFollowers=t},setNoRecordFollowing:function(e,t){e.noRecordFollowing=t},setNoRecordElite:function(e,t){e.noRecordElite=t},setFollowings:function(e,t){e.followings=t},setFollowers:function(e,t){e.followers=t},setElites:function(e,t){e.elites=t},setWallet:function(e,t){e.wallet=t},setUserPayout:function(e,t){e.user_payout=t},setGift:function(e,t){e.gift=t},setInSpotLight:function(e,t){e.inspotlight=t},setSpotLight:function(e,t){e.spotLight=t},setDeletePhoto2:function(e,t){e.delete_photo2=t},setDeletePhoto3:function(e,t){e.delete_photo3=t},setDeletePhoto4:function(e,t){e.delete_photo4=t},setDeletePhoto5:function(e,t){e.delete_photo5=t},setDeletePhoto6:function(e,t){e.delete_photo6=t},setAdvertDefault:function(e,t){e.advert_default=t},setReceivedBy:function(e,t){e.received_by=t},setPhotoStatus:function(e,t){e.photoStatus=t},setChatOpen:function(e,t){e.chatOpen=t},setFriendsMatch:function(e,t){e.friendsMatch=t},setAppUpdate:function(e,t){e.appUpdate=t},setSearchResult:function(e,t){e.searchResult=t},setUpdatePreloader:function(e,t){e.updatePreloader=t},setTopPage:function(e,t){e.top_page=t},setBottomPage:function(e,t){e.bottom_page=t},setBackPage:function(e,t){e.back_page=t},setForwardPage:function(e,t){e.forward_page=t},setDbReference:function(e,t){e.db_reference=t},setDbCursor:function(e,t){e.db_cursor=t},setOnesignalPlayerID:function(e,t){e.onesignal_playerID=t},setSentBy:function(e,t){e.sent_by=t},setSubscribeAffiliateFriend:function(e,t){e.subscribe_affiliate_friend=t},setReference:function(e,t){e.reference=t},setSearchContacts:function(e,t){e.search_contacts=t},setContacts:function(e,t){e.contacts=t},setFriends:function(e,t){e.friends=t},setMembers:function(e,t){e.members=t},setFriendRequests:function(e,t){e.friend_requests=t},setMessageCount:function(e,t){e.message_count=t},setChatMessages:function(e,t){e.chat_messages=t},setTypingMessage:function(e,t){e.typing_message=t},setFriendStatus:function(e,t){e.friend_status=t},setBlockByFriend:function(e,t){e.block_by_friend=t},setUserDetails:function(e,t){e.user_details=t}},actions:(Fg={convertTextToImage:function(e,t){return ny(e),new Promise((function(e,n){var r=t;Uu.request.post("https://penpalamerica.com/penpal/penpaltexttoimage.php",r,(function(t){e(t)}))}))},getFollowers:function(e,t){var n=e.commit;new Promise((function(e,r){var i=t;Uu.request.post("https://penpalamerica.com/penpal/penpalfollowers.php",i,(function(t){if("#"!=t){var r=JSON.parse(t);n("setFollowers",r),n("setNoRecordFollowers",!1),n("setLastFollowersEmail",r[0].email),e(r[0].email)}else n("setNoRecordFollowers",!0),e(t)}))}))},getElites:function(e,t){var n=e.commit;new Promise((function(e,r){var i=t;Uu.request.post("https://penpalamerica.com/penpal/penpalelites.php",i,(function(t){if("#"!=t){var r=JSON.parse(t);n("setElites",r),n("setLastEliteEmail",r[0].email),n("setNoRecordElite",!1),e(r[0].email)}else n("setNoRecordFollowers",!0),e(t)}))}))},getFollowing:function(e,t){var n=e.commit;new Promise((function(e,r){var i=t;Uu.request.post("https://penpalamerica.com/penpal/penpalfollowing.php",i,(function(t){if(t.length>0){var r=JSON.parse(t);n("setFollowings",r),n("setNoRecordFollowing",!1),n("setLastFollowingEmail",r[0].email),e(r[0].email)}else n("setNoRecordFollowing",!0),e(t)}))}))},getWallet:function(e,t){var n=e.commit;return new Promise((function(e,r){var i={};i.domain=t.domain,i.email=t.email;var o=i;Uu.request.post("https://penpalamerica.com/penpal/penpalwallet.php",o,(function(t){var r=JSON.parse(t);n("setWallet",r),e(t)})),Uu.request.post("https://penpalamerica.com/penpal/penpaluserpayout.php",o,(function(t){var r=JSON.parse(t);n("setUserPayout",r),e(t)})),Uu.request.post("https://penpalamerica.com/penpal/penpalgift.php",o,(function(t){var r=JSON.parse(t);n("setGift",r),e(t)}))}))},getAdvertDefault:function(e){var t=e.commit;return new Promise((function(e,n){var r={domain:"penpalamerica.com"},i=r;Uu.request.post("https://penpalamerica.com/penpal/penpaladverts.php",i,(function(n){var r=JSON.parse(n);t("setAdvertDefault",r),e(n)}))}))},getAdvertCountry:function(e){return ty(bf.a.mark((function t(){var n;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.commit,e.dispatch,n("setAdvertCountry",myAdverts);case 2:case"end":return t.stop()}}),t)})))()},unMatchUser:function(e,t){return ny(e),new Promise((function(e,n){var r=t;Uu.request.post("https://penpalamerica.com/penpal/penpalunmatch.php",r,(function(t){e(t)}))}))},sendEmailNotificationLike:function(e,t){return ny(e),new Promise((function(e,n){var r=t;Uu.request.post("https://penpalamerica.com/penpal/penpalemailnotificationlike.php",r,(function(t){e(t)}))}))},sendEmailNotificationMatch:function(e,t){return ny(e),new Promise((function(e,n){var r=t;Uu.request.post("https://penpalamerica.com/penpal/penpalemailnotificationmatch.php",r,(function(t){e(t)}))}))},sendEmailNotification:function(e,t){return ny(e),new Promise((function(e,n){var r=t;Uu.request.post("https://penpalamerica.com/penpal/penpalemailnotification.php",r,(function(t){e(t)}))}))},resetPassword:function(e,t){return ny(e),new Promise((function(e,n){var r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalsendpasswordreset.php",r,(function(t){e(t)}))}))},sendOneSignalToken:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:ny(e),r={playerID:t.playerID,pushToken:t.pushToken,email:t.email,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpalonesignal.php",r,(function(e){}));case 3:case"end":return n.stop()}}),n)})))()},getUserNotifications:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpalnotifications.php",i,(function(e){var t=JSON.parse(e);r("setUserNotifications",t)}));case 3:case"end":return n.stop()}}),n)})))()},updateUserProfile:function(e,t){e.commit;return new Promise((function(e,n){var r={name:t.name,profileMessage:t.profileMessage,location:t.location,email:t.email,domain:t.domain,photo_url1:t.photo_url1};Uu.request.post("https://penpalamerica.com/penpal/penpalupdateuserprofile.php",r,(function(t){e(t)}))}))},updateUserStatus:function(e,t){e.commit;var n={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalupdateuserstatus.php",n,(function(e){JSON.parse(e)}))},addSpotLight:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpaladdspotlight.php",r,(function(e){JSON.parse(e);"0"==e&&n("setAlertMessage","Your profile added to spotlight")}))},removeSpotLight:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalremovespotlight.php",r,(function(e){JSON.parse(e);"0"==e&&n("setAlertMessage","Your profile has been removed from spotlight")}))},userInSpotLight:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalgetsportlight.php",r,(function(e){JSON.parse(e);n("setInSpotLight","1"==e)}))},getFriendSpotLight:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalspotlight.php",r,function(){var e=ty(bf.a.mark((function e(t){var r;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=JSON.parse(t),e.next=3,n("setSpotLight",r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},getFriendList:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalfriends.php",r,(function(e){if("#"!=e){var t=JSON.parse(e);n("setFriends",t)}}))},getFriendMatch:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalmatchtable.php",r,function(){var e=ty(bf.a.mark((function e(t){var r;return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("#"==t){e.next=4;break}return r=JSON.parse(t),e.next=4,n("setFriendsMatch",r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},deleteOldAccount:function(e,t){e.commit},checkUserExistsAmerica:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.dispatch,r=[],i=new Promise((function(e,n){mf.a.database().ref("users").orderByValue().on("value",(function(n){var i=n.val();for(var o in i)if(i[o].email===t.email){var a={};i[o].photo.includes("https://firebasestorage.googleapis.com/v0/b/penpalamerica.appspot.com/o/image_profile")?a.photoUpload=!0:a.photoUpload=!1,a.uid=i[o].uid,a.password=t.password,a.country=i[o].country,a.name=i[o].name,a.email=i[o].email,a.gender=i[o].gender,a.phonenumber=i[o].phonenumber,a.location=i[o].location,a.profileMessage=i[o].profileMessage,a.birthDate=i[o].birthDate,a.emailverified=!1,a.photo_url=i[o].photo,a.userType=i[o].userType,a.userStatus=i[o].userStatus,a.lastSeen=i[o].lastSeen,a.userToken=i[o].userToken,a.dateCreated=i[o].lastSeen,a.payout="0",a.pageSize=3,a.serviceExpiration=i[o].serviceExpiration,r.push(a);break}e(r)}))})),n.abrupt("return",i);case 4:case"end":return n.stop()}}),n)})))()},sendLatestMessage:function(e,t){return ty(bf.a.mark((function n(){var r,i,o,a,s,l;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,i=mf.a.auth().currentUser.uid,o=t.userkey,a=t.friend.uid,t.friend.frd_key,s="",n.next=8,r("getUserMessageCount",t);case 8:if(null!=(l=n.sent)?isNaN(l)?l=0:l++:l=0,s=null!=t.img?"photo":t.msg,n.prev=11,null==s||null==a){n.next=15;break}return n.next=15,Vg.child(a).child(o).update({message_count:l,latest_message:s,uid:i});case 15:n.next=19;break;case 17:n.prev=17,n.t0=n.catch(11);case 19:case"end":return n.stop()}}),n,null,[[11,17]])})))()},getOnesignalPlayerIDPlus:function(e,t){e.commit;return new Promise((function(e,n){var r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalgetonesignal.php",r,(function(t){e("0"!=t?t:null)}))}))},getOnesignalPlayerID:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalgetonesignal.php",r,(function(e){n("setOnesignalPlayerID","0"!=e?e:null)}))},getFriendAffiliate:function(e,t){var n=e.commit,r=t;mf.a.database().ref("pay4me").child(r).once("value",(function(e){null!=e.val()&&null!=e.val()?n("setSubscribeAffiliateFriend",!0):n("setSubscribeAffiliateFriend",!1)}))},updateReadMessage:function(e,t){e.dispatch;var n=mf.a.auth().currentUser.uid,r=(t.userkey,t.uid);t.frd_key,mf.a.auth().currentUser;qg.child(r).child(n).on("value",(function(e){var t=e.val();_.forEach(t,(function(e,t){try{qg.child(r).child(n).child(t).update({read:"2"})}catch(e){console.log(e)}}))}))},resetMessageCount:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:ny(e),r={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpaltotalmessagesupdate.php",r,function(){var e=ty(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},getUserMessageCount:function(e,t){return ny(e),new Promise((function(e,n){var r=t.friend.uid,i=t.userkey;Vg.child(r).child(i).once("value",(function(t){t.val()?e(t.val().message_count):e("0")})).catch((function(e){n(e)}))}))},confirmFriendRequest:function(e,t){e.dispatch;try{Vg.child(mf.a.auth().currentUser.uid).push({uid:t.friend.uid,message_count:"0",latest_message:" "}),Vg.child(t.friend.uid).push({message_count:"0",latest_message:" ",uid:mf.a.auth().currentUser.uid})}catch(e){reject(err)}return"010220"},createFriendTables:function(e,t){e.dispatch;try{var n=Vg.child(mf.a.auth().currentUser.uid).push().key;Vg.child(mf.a.auth().currentUser.uid).child(n).update({uid:t.friend.uid,message_count:"0",latest_message:" "}),Vg.child(t.friend.uid).child(n).update({message_count:"0",latest_message:" ",uid:mf.a.auth().currentUser.uid})}catch(e){console.log(e)}return n},sendDownTypingMessage:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:ny(e),r={email_u:t.email_u,email_f:t.email_f,type:"1",domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpaltyping.php",r,function(){var e=ty(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},sendUpTypingMessage:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:ny(e),r={email_u:t.email_u,email_f:t.email_f,type:"0",domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpaltyping.php",r,function(){var e=ty(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},getTypingMessages:function(e,t){var n=e.commit;if(null!=t.email_u&&null!=t.email_f){var r={email_u:t.email_u,email_f:t.email_f,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpaltypingcommit.php",r,function(){var e=ty(bf.a.mark((function e(r){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"1"==r&&(n("setSentBy",t.email_u),n("setReceivedBy",t.email_f),n("setTypingMessage","1")),"2"==r&&(n("setSentBy",t.email_f),n("setReceivedBy",t.email_u),n("setTypingMessage","1")),"3"==r&&(n("setSentBy",t.email_u),n("setReceivedBy",t.email_f),n("setSentBy",t.email_f),n("setReceivedBy",t.email_u),n("setTypingMessage","1")),"0"==r&&n("setTypingMessage","0");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},getUserKey:function(e,t){return ny(e),new Promise((function(e,n){var r=t.friend.uid;Vg.child(r).orderByChild("uid").equalTo(mf.a.auth().currentUser.uid).once("value",(function(t){var n;for(var r in t.val())n=r;e(n)})).catch((function(e){n(e)}))}))},getUserMessageCount2:function(e,t){return ny(e),new Promise((function(e,n){var r=t.friend.uid,i=t.friend.userKey;Gg.child(r).child(i).orderByChild("uid").equalTo(mf.a.auth().currentUser.uid).on("value",(function(t){e(t.message_count)})).catch((function(e){n(e)}))}))},getChatMessagesPlus:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.dispatch,r=e.commit,i={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpalgetmessages.php",i,(function(e){var n=JSON.parse(e),i="";_.forEach(n,(function(e){e.type=e.sentby==t.email_u?"sent":"received",e.name=e.sentby==t.email_u?e.myName:e.myFriendName,e.date=Af()(e.datecreated).format("MMMM Do dddd"),e.smalldate=Af()(e.datecreated).format("LTS"),e.sentby==t.email_u?e.status="1":e.status="0",i=e.datecreated}));var o=_.groupBy(n,"date"),a=sessionStorage.getItem("last_update"),s=sessionStorage.getItem("friend_email");i>a&&s==t.email_f&&(r("setChatMessages",o),r("setSentBy",sh.email_u),sessionStorage.setItem("last_update",i))}));case 3:case"end":return n.stop()}}),n)})))()},getChatMessagesPromise:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.dispatch,r=e.commit,i=new Promise((function(e,n){var o={email_u:t.email_u,email_f:t.email_f,domain:t.domain};return Uu.request.post("https://penpalamerica.com/penpal/penpalgetmessages.php",o,(function(n){var i=JSON.parse(n);_.forEach(i,(function(e){e.type=e.sentby==t.email_u?"sent":"received",e.name=e.sentby==t.email_u?e.myName:e.myFriendName,e.date=Af()(e.datecreated).format("MMMM Do dddd"),e.smalldate=Af()(e.datecreated).format("LTS"),e.sentby==t.email_u?e.status="1":e.status="0",e.datecreated}));var o=_.groupBy(i,"date");r("setChatMessages",o),r("setSentBy",sh.email_u),e(o)})),i}));case 2:case"end":return n.stop()}}),n)})))()},getChatMessages:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.dispatch,r=e.commit,i={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpalgetmessages.php",i,(function(e){var n=JSON.parse(e),i="";_.forEach(n,(function(e){e.type=e.sentby==t.email_u?"sent":"received",e.name=e.sentby==t.email_u?e.myName:e.myFriendName,e.date=Af()(e.datecreated).format("MMMM Do dddd"),e.smalldate=Af()(e.datecreated).format("LTS"),e.sentby==t.email_u?e.status="1":e.status="0",i=e.datecreated}));var o=_.groupBy(n,"date");sessionStorage.setItem("last_update",i),sessionStorage.setItem("friend_email",t.email_f),r("setChatMessages",o),r("setSentBy",sh.email_u)}));case 3:case"end":return n.stop()}}),n)})))()},resetTotalNotify:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalresettotalnotifications.php",r,function(){var e=ty(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("setTotalNotify",0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},getTotalNotify:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpaltotalnotifications.php",r,function(){var e=ty(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("setTotalNotify",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},getTotalMessage:function(e,t){var n=e.commit,r={email:t.email,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpaltotalmessages.php",r,function(){var e=ty(bf.a.mark((function e(t){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n("setTotalMessage",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},confirmRequest:function(e,t){var n=e.dispatch;return new Promise((function(e,r){Vg.child(mf.a.auth().currentUser.uid).push({uid:t.uid}).then((function(){Vg.child(t.uid).push({uid:mf.a.auth().currentUser.uid})})).then((function(){n("deleteRequest",t).then((function(){e(!0)}))})).catch((function(e){r(e)}))}))},deleteRequest:function(e,t){return ny(e),new Promise((function(e,n){zg.child(mf.a.auth().currentUser.uid).orderByChild("sender").equalTo(t.uid).once("value",(function(t){var r;for(var i in t.val())r=i;zg.child(mf.a.auth().currentUser.uid).child(r).remove().then((function(){e(!0)})).catch((function(e){n(e)}))})).catch((function(e){n(e)}))}))},getMyRequests:function(e){return ty(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getAllUsers");case 3:i=t.sent,zg.child(mf.a.auth().currentUser.uid).on("value",(function(e){var t=_.map(e.val(),"sender"),r=[];_.forEach(t,(function(e){var t=_.find(i,["uid",e]);r.push(t)})),n("setFriendRequests",r)}));case 5:case"end":return t.stop()}}),t)})))()},sendMessage:function(e,t){return ty(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,o={email_f:t.email_f,message:t.msg,image_url:t.img,email_u:t.email_u,domain:t.domain,sentby:t.sentby,messageType:t.messageType},Uu.request.post("https://penpalamerica.com/penpal/penpalchatmessages.php",o,function(){var e=ty(bf.a.mark((function e(n){return bf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:JSON.parse(n),i("getChatMessages",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){r("setAlertMessage","Network Issue. Please check your internet connection and  try again")}));case 3:case"end":return n.stop()}}),n)})))()},sendNotificationPlus:function(e,t){ny(e);var r=t.onesignal_playerID,i={app_id:"1bdd80c5-cabb-4296-9e59-ef5fa8638eed",contents:{en:t.message},headings:{en:"penpalamerica.com"},large_icon:t.photo_url1,include_player_ids:[r]},o={host:"onesignal.com",port:443,path:"/api/v1/notifications",method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"}},a=n(268).request(o,(function(e){e.on("data",(function(e){}))}));a.on("error",(function(e){console.log(e)})),a.write(JSON.stringify(i)),a.end()},sendNotification:function(e,t){ny(e);var r=t.onesignal_playerID,i={app_id:"d020a469-2d65-4261-89b1-e46983faf44c",contents:{en:t.message},include_player_ids:[r]},o={host:"onesignal.com",port:443,path:"/api/v1/notifications",method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"}},a=n(268).request(o,(function(e){e.on("data",(function(e){}))}));a.on("error",(function(e){console.log(e)})),a.write(JSON.stringify(i)),a.end()},getMyFriendsList:function(e,t){return ny(e),new Promise((function(e,n){var r=t.friend.uid;Vg.child(r).orderByChild("uid").equalTo(mf.a.auth().currentUser.uid).once("value",(function(t){var n=null;for(var r in t.val())n=r;e(n)})).catch((function(e){n(e)}))}))},checkUserExists2:function(e,t){return ny(e),new Promise((function(e,n){mf.a.database().ref("appState").child(t).on("value",(function(t){null!=t.val()&&null!=t.val()?e("OK"):e("#")}))}))},checkUserExists:function(e,t){return ny(e),new Promise((function(e,n){mf.a.database().ref("users").orderByValue().on("value",(function(n){var r=n.val(),i=[];_.forEach(r,(function(e){e.country==t&&i.push(e)})),e(i)}))}))},getAllUsers:function(e){return ty(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,e.dispatch,[],r=new Promise((function(e,t){mf.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i=[];_.forEach(r,(function(e){mf.a.auth().currentUser.uid!==e.uid&&i.push(e)})),n("setContacts",i),e(i)}))})),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()},mergeMessages:function(e,t){return ny(e),new Promise((function(e,n){var r=mf.a.auth().currentUser;qg.child(r.uid).child(t.uid).on("value",(function(t){e(t.val())}))}))},mergeMessagesFriend:function(e,t){return ny(e),new Promise((function(e,n){var r=mf.a.auth().currentUser;qg.child(t.uid).child(r.uid).on("value",(function(t){e(t.val())}))}))},getMessageCount:function(e){e.commit;return new Promise((function(e,t){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(t){e(t.val().country)}))}))},checkUserInFriendList:function(e,t){var n=e.commit,r=mf.a.auth().currentUser.uid;if(null!=t.frd_key){var i=t.frd_key;return new Promise((function(e,t){Vg.child(r).child(i).once("value",(function(t){t.val()&&e(t.val().message_count)})).catch((function(e){t(e)}))}))}n("setAlertMessage","User not in your friend list")},blockUser:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,e.dispatch,i={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpaladdblockuser.php",i,(function(e){r("setAlertMessage","0"==e?"User has been blocked":"User cannot be blocked now. Please try again later")}));case 3:case"end":return n.stop()}}),n)})))()},unBlockUser:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,e.dispatch,i={email_u:t.email_u,email_f:t.email_f,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpalunblockuser.php",i,(function(e){r("setAlertMessage","0"==e?"User has been un-blocked":"User cannot be un-blocked now. Please try again later")}));case 3:case"end":return n.stop()}}),n)})))()},checkUserUnmatch:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=new Promise((function(e,n){var r={email_u:t.email_u,email_f:t.email_f,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalgetunmatch.php",r,(function(t){e(t)}))})),n.abrupt("return",r);case 3:case"end":return n.stop()}}),n)})))()},checkMessageType:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ny(e),r=new Promise((function(e,n){var r={email_u:t.email_u,email_f:t.email_f,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalcheckmessagetype.php",r,(function(t){e(t)}))})),n.abrupt("return",r);case 3:case"end":return n.stop()}}),n)})))()},chargeUser:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,i=new Promise((function(e,n){var i={email_u:t.email_u,email_f:t.email_f,domain:t.domain,pay_amount:t.amount};Uu.request.post("https://penpalamerica.com/penpal/penpalchargeusermessage.php",i,(function(n){r("getWallet",t),e(n)}))})),n.abrupt("return",i);case 3:case"end":return n.stop()}}),n)})))()},payUser:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.dispatch,r=new Promise((function(e,n){var r={email_u:t.email_u,email_f:t.email_f,domain:t.domain,pay_amount:t.amount};Uu.request.post("https://penpalamerica.com/penpal/penpalpayuser.php",r,(function(t){console.log(t),e(t)}))})),n.abrupt("return",r);case 3:case"end":return n.stop()}}),n)})))()},checkUserBlocked:function(e,t){return ty(bf.a.mark((function n(){var r;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=new Promise((function(e,n){var r={email_u:t.email_u,email_f:t.email_f,domain:t.domain};Uu.request.post("https://penpalamerica.com/penpal/penpalgetblockuser.php",r,(function(t){e(t)}))})),n.abrupt("return",r);case 3:case"end":return n.stop()}}),n)})))()},userMigration:function(e){return ty(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,e.dispatch,n=0,r=new Promise((function(e,t){mf.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i="F";_.forEach(r,(function(e,t){if(null==e.migrated2){n++,i="M"==e.gender?"F":"M";var r,o=(r=new Date(e.dateCreated)).getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()+" "+r.getHours()+":"+r.getMinutes()+":"+r.getSeconds(),a=(r=new Date(e.lastSeen)).getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()+" "+r.getHours()+":"+r.getMinutes()+":"+r.getSeconds(),s={birthDate:e.birthDate,country:e.country,dateCreated:o,email:e.email,emailverified:e.emailverified,gender:e.gender,genderSearch:i,lastSeen:a,location:e.location,name:e.name,phonenumber:e.phonenumber,photoUpload:e.photoUpload,photo_url1:e.photo_url,profileMessage:e.profileMessage,userToken:e.userToken,userType:e.userType,domain:"penpalamerica.com"};setTimeout(iy(s,t),5e3),n++}})),e(n)}))})),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()},checkBlockByFriend:function(e,t){return ty(bf.a.mark((function n(){var r,i,o,a;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,null!=t.frd_key){n.next=5;break}return"0",r("setBlockByFriend","0"),n.abrupt("return","0");case 5:return i=mf.a.auth().currentUser.uid,o=t.uid,a=new Promise((function(e,t){Kg.child(o).child(i).once("value",(function(t){t.val()&&r("setBlockByFriend",t.val().flag),e(t.val())})).catch((function(e){t(e)}))})),n.abrupt("return",a);case 9:case"end":return n.stop()}}),n)})))()},getAllUsersMigration:function(e){return ty(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,e.dispatch,[],0,r=new Promise((function(e,t){mf.a.database().ref("users").orderByValue().on("value",(function(t){var r=t.val(),i=0;_.forEach(r,(function(e,t){if(null==e.birthDate&&(n=null!=e.age?Af()().subtract(e.age,"years").format("YYYY-MM-DD"):Af()().subtract(20,"years").format("YYYY-MM-DD"),mf.a.database().ref("users").child(t).update({name:e.userName,uid:t,phonenumber:e.phone,birthDate:n,emailverified:!1,photo_url:e.photo,userType:"1",userStatus:"offline",lastSeen:mf.a.database.ServerValue.TIMESTAMP,userToken:"web",dateCreated:mf.a.database.ServerValue.TIMESTAMP,payout:"0",photoUpload:!1,pageSize:3,serviceExpiration:mf.a.database.ServerValue.TIMESTAMP}),++i>100))return!1})),e(i)}))})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))()},reportUserToAdmin:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,e.dispatch,i={email_u:t.email_u,email_f:t.email_f,userAbuse:t.userAbuse,domain:t.domain},Uu.request.post("https://penpalamerica.com/penpal/penpalreportuser.php",i,(function(e){r("setAlertMessage","0"==e?"Your report has been submitted and will be reviewed by admin":"Your report cannot be submitted now, please try again later. ")}));case 3:case"end":return n.stop()}}),n)})))()},editPayPal:function(e,t){return ty(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,ry(i=t.paypal)){n.next=5;break}return r("setAlertMessage","Your new email is not valid"),n.abrupt("return");case 5:o={paypal_email:i,domain:t.domain,email:t.email},Uu.request.post("https://penpalamerica.com/penpal/penpalupdatepaypal.php",o,(function(e){r("setAlertMessage","0"==e?"Your new PayPal Email has been updated.":"Sorry, your new PayPal Email cannot be updated  ")}));case 7:case"end":return n.stop()}}),n)})))()},editLocation:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.location.length<2)){n.next=4;break}return r("setAlertMessage","Your Location is too short"),n.abrupt("return");case 4:if(!(t.location.length>50)){n.next=7;break}return r("setAlertMessage","Your Location is too long"),n.abrupt("return");case 7:i={location:t.location,domain:t.domain,email:t.email},Uu.request.post("https://penpalamerica.com/penpal/penpalupdateuserlocation.php",i,(function(e){"0"==e?(r("setUserLocation",t.location),r("setAlertMessage","Your location has been updated.")):r("setAlertMessage","Sorry, Your location cannot be updated now")}));case 9:case"end":return n.stop()}}),n)})))()},editgenderSearch:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={genderSearch:t.genderSearch,domain:t.domain,email:t.email},Uu.request.post("https://penpalamerica.com/penpal/penpalupdateusergendersearch.php",i,(function(e){"0"==e?(r("setGenderSearch",t.genderSearch),r("setAlertMessage","Your genderSearch has been updated.")):r("setAlertMessage","Sorry, Your genderSearch cannot be changed now")}));case 3:case"end":return n.stop()}}),n)})))()},editProfileMessage:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,!(t.profileMessage.length<10)){n.next=4;break}return r("setAlertMessage","profile message is too short"),n.abrupt("return");case 4:if(!(t.profileMessage.length>200)){n.next=7;break}return self.$store.commit("setAlertMessage","profile message is too long"),n.abrupt("return");case 7:i={profileMessage:t.profileMessage,domain:t.domain,email:t.email},Uu.request.post("https://penpalamerica.com/penpal/penpalupdateuserprofilemessage.php",i,(function(e){"0"==e?(r("setProfileMessage",t.profileMessage),r("setAlertMessage","Your new Profile message has been updated.")):r("setAlertMessage","Sorry, Your new Profile Message cannot be changed now")}));case 9:case"end":return n.stop()}}),n)})))()},getReference:function(e,t){var n=e.commit,r="";"penpalamerica.com"==t.domain&&(r="ame"),"penpaleurope.com"==t.domain&&(r="eur"),"penpalasia.com"==t.domain&&(r="asi"),"penpalafrica.com"==t.domain&&(r="afr"),"americanmeets.com"==t.domain&&(r="can"),"misscomely.com"==t.domain&&(r="mis");for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<10;o++)r+=i.charAt(Math.floor(Math.random()*i.length));n("setReference",r)},deleteAccount:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i={domain:t.domain,email:t.email},Uu.request.post("https://penpalamerica.com/penpal/penpaldeleteuseraccount.php",i,(function(e){"0"==e?(r("setAlertMessage","Your Account has been deleted"),r("setShowResendEmail",!1),r("setSignedIn",!1)):r("setAlertMessage","Your Account cannot be deleted now, please try again")}));case 3:case"end":return n.stop()}}),n)})))()},deleteMessage:function(e,t){return ty(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.dispatch,i=e.commit,o=new Promise((function(e,n){var a={message_id:t.message_id,domain:t.domain,email_u:t.email_u,email_f:t.email_f};return Uu.request.post("https://penpalamerica.com/penpal/penpaldeleteusermessage.php",a,(function(e){"0"==e?(i("setAlertMessage","The message has been deleted"),r("getChatMessagesPromise",t)):i("setAlertMessage","The message could not be deleted now, please try again")})),o}));case 2:case"end":return n.stop()}}),n)})))()},deleteMessageMe:function(e,t){return ty(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.dispatch,i=e.commit,o=new Promise((function(e,n){var a={message_id:t.message_id,domain:t.domain,email_u:t.email_u,email_f:t.email_f};return Uu.request.post("https://penpalamerica.com/penpal/penpaldeleteusermessageme.php",a,(function(e){"0"==e?(i("setAlertMessage","The message has been deleted"),r("getChatMessagesPromise",t)):i("setAlertMessage","The message could not be deleted now, please try again")})),o}));case 2:case"end":return n.stop()}}),n)})))()},deleteMessageMePlus:function(e,t){return ty(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.dispatch,i=e.commit,o=new Promise((function(e,n){var a={message_id:t.message_id,domain:t.domain,email_u:t.email_u,email_f:t.email_f};return Uu.request.post("https://penpalamerica.com/penpal/penpaldeleteusermessagemeplus.php",a,(function(e){"0"==e?(i("setAlertMessage","The message has been deleted"),r("getChatMessagesPromise",t)):i("setAlertMessage","The message could not be deleted now, please try again")})),o}));case 2:case"end":return n.stop()}}),n)})))()},sendGiftVenus:function(e,t){return ty(bf.a.mark((function n(){var r,i,o,a;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,o="",100==t.amount&&(o="You just received a Venus Gift worths 100 points"),500==t.amount&&(o="You just received a Mars Gift worths  500 points"),1e3==t.amount&&(o="You just received a Jupiter Gift worths 1000 points"),a={domain:t.domain,email_u:t.email_u,email_f:t.email_f,pay_amount:t.amount},Uu.request.post("https://penpalamerica.com/penpal/penpalsendgiftvenus.php",a,(function(e){"1"==e&&r("setAlertMessage","Your wallet is to low to gift "+t.name+" Top up your account"),"0"==e?(r("setAlertMessage","Venus Gift successful sent to "+t.name),i("sendMessage",{email_f:t.email_f,msg:o,img:"",email_u:t.email_u,domain:t.domain,sentby:t.email_u})):r("setAlertMessage","Sorry Venue Gifting is not possible now, please try again")}));case 7:case"end":return n.stop()}}),n)})))()},deletePhoto:function(e,t){return ty(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,"https://penpalamerica.com/images/profilepicture.png",i={url:t.url,domain:t.domain,email:t.email},Uu.request.post("https://penpalamerica.com/penpal/penpaldeleteuserphotos.php",i,(function(e){var n="setDeletePhoto"+t.url,i="setImageURL"+t.url;"0"==e?(r("setAlertMessage","Your Photo has been deleted"),r(n,!1),r(i,"https://penpalamerica.com/images/profilepicture.png")):r("setAlertMessage","Your Photo cannot be deleted now, please try again")}));case 4:case"end":return n.stop()}}),n)})))()},addModerator:function(e,t){var n=e.commit;mf.a.database().ref("users/"+t).update({userType:"2"}),mf.a.database().ref("userProfile/"+t).update({userType:"2"}),n("setAlertMessage","User Account has been changed to Moderator")},removeModerator:function(e,t){var n=e.commit;mf.a.database().ref("users/"+t).update({userType:"1"}),mf.a.database().ref("userProfile/"+t).update({userType:"1"}),n("setAlertMessage","Moderator Profile has been removed from your Account")},getAllUsersNew:function(e){return ty(bf.a.mark((function t(){var n,r,i,o,a,s;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,i=mf.a.database().ref("/users"),n("setDbReference",i),o=mf.a.auth().currentUser.uid,t.next=6,r("getUserPageSize");case 6:return a=t.sent,s=new Promise((function(e,t){(i=(i=i.orderByKey()).limitToFirst(a+1)).once("value").then((function(t){var r=[],i={};t.forEach((function(e){r.push(e.key),r.length!=a+1?e.key!=o&&(i[e.key]=e.val()):n("setDbCursor",e.key)})),n("setContacts",i),e(i)}))})),t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})))()},getAllUsersForward:function(e,t){return ty(bf.a.mark((function n(){var r,i,o,a,s,l;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,o=t.dbReference,a=t.cursor,s=t.uid,l=t.pageSize,(o=(o=(o=o.orderByKey()).limitToFirst(l+1)).startAt(a)).once("value").then((function(e){var t,n=[],a={};if(!Object.keys(e.val()).length)return(t={}).ref=o,t.pageSize=l,t.uid=s,void i("gotoBottomPage",t);if(Object.keys(e.val()).length<l+1)return(t={}).ref=o,t.pageSize=l,t.uid=s,void i("gotoBottomPage",t);var c=0;e.forEach((function(e){n.push(e.key),n.length!=l+1?e.key!=s?a[e.key]=e.val():c=1:1==c?(a[e.key]=e.val(),r("setDbCursor",e.key)):r("setDbCursor",e.key)})),r("setTopPage",!0),r("setBottomPage",!0),r("setForwardPage",!0),r("setBackPage",!0),r("setContacts",a)}));case 9:case"end":return n.stop()}}),n)})))()},getAllUsersBackward:function(e,t){return ty(bf.a.mark((function n(){var r,i,o,a,s,l;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,i=e.dispatch,o=t.dbReference,a=t.cursor,s=t.uid,l=t.pageSize,(o=(o=(o=o.orderByKey()).limitToLast(l+1)).endAt(a)).once("value").then((function(e){var t,n=[],a={};return Object.keys(e.val()).length?Object.keys(e.val()).length<l+1?((t={}).ref=o,t.pageSize=l,t.uid=s,void i("gotoTopPage",t)):(e.forEach((function(e){n.push(e.key),1!=n.length?e.key!=s&&(a[e.key]=e.val()):r("setDbCursor",e.key)})),r("setTopPage",!0),r("setBottomPage",!0),r("setBackPage",!0),r("setForwardPage",!0),void r("setContacts",a)):((t={}).ref=o,t.pageSize=l,t.uid=s,void i("gotoTopPage",t))}));case 9:case"end":return n.stop()}}),n)})))()},gotoTopPage:function(e,t){var n=e.commit,r=t.pageSize,i=t.uid,o=mf.a.database().ref("/users");(o=(o=o.orderByKey()).limitToFirst(r+1)).once("value").then((function(e){var t=[],o={};Object.keys(e.val()).length&&(e.forEach((function(e){t.push(e.key),t.length!=r+1?e.key!=i&&(o[e.key]=e.val()):n("setDbCursor",e.key)})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",o))}))}},Zg(Fg,"gotoTopPage",(function(e,t){var n=e.commit,r=t.pageSize,i=t.uid,o=mf.a.database().ref("/users");(o=(o=o.orderByChild("dateCreated")).limitToFirst(r+1)).once("value").then((function(e){var t=[],o={};Object.keys(e.val()).length&&(e.forEach((function(e){t.push(e.key),t.length!=r+1?e.key!=i&&(o[e.key]=e.val()):n("setDbCursor",e.key)})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",o))}))})),Zg(Fg,"gotoSearchUsers",(function(e,t){var n=e.commit,r=(t.pageSize,t.uid),i=t.userStatus,o=mf.a.database().ref("/users");(o=o.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length&&(n("setUpdatePreloader",1),e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().userStatus==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",!0))})),n("setTopPage",!1),n("setBottomPage",!0),n("setForwardPage",!0),n("setBackPage",!1),n("setContacts",t))}))})),Zg(Fg,"searchUsersOnline",(function(e,t){var n=e.commit,r=t.uid,i=mf.a.database().ref("/users"),o=0;return(i=i.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&"online"==e.val().userStatus&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),o++)})),n("setSearchContacts",t),0===o&&n("setSearchResult",2)):n("setSearchResult",2)})),o})),Zg(Fg,"searchUsersName",(function(e,t){var n=e.commit,r=t.uid,i=t.name,o=mf.a.database().ref("/users"),a=0;return(o=o.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().name==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),a++)})),n("setSearchContacts",t),0===a&&n("setSearchResult",2)):n("setSearchResult",2)})),a})),Zg(Fg,"searchUsersLocation",(function(e,t){var n=e.commit,r=t.uid,i=t.location,o=mf.a.database().ref("/users"),a=0;return(o=o.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().location==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),a++)})),n("setSearchContacts",t),0===a&&n("setSearchResult",2)):n("setSearchResult",2)})),a})),Zg(Fg,"searchUsersCountry",(function(e,t){var n=e.commit,r=t.uid,i=t.country,o=mf.a.database().ref("/users"),a=0;return(o=o.orderByKey()).once("value").then((function(e){var t={};Object.keys(e.val()).length?(e.forEach((function(e){null!=e.val()&&e.key!=r&&e.val().country==i&&null!=e.val().name&&(t[e.key]=e.val(),n("setSearchResult",1),a++)})),n("setSearchContacts",t),0===a&&n("setSearchResult",2)):n("setSearchResult",2)})),a})),Zg(Fg,"gotoBottomPage",(function(e,t){var n=e.commit,r=t.pageSize,i=t.uid,o=mf.a.database().ref("/users");(o=(o=o.orderByChild("dateCreated")).limitToLast(r+1)).once("value").then((function(e){var t=[],r={};Object.keys(e.val()).length&&(e.forEach((function(e){t.push(e.key),1!=t.length?e.key!=i&&(r[e.key]=e.val()):n("setDbCursor",e.key)})),n("setTopPage",!0),n("setBottomPage",!1),n("setForwardPage",!1),n("setBackPage",!0),n("setContacts",r))}))})),Zg(Fg,"getUserPageSize",(function(e){return ny(e),new Promise((function(e,t){var n=mf.a.auth().currentUser.uid;mf.a.database().ref("/users").child(n).on("value",(function(t){t.val()?e(t.val().pageSize):e(3)}))}))})),Zg(Fg,"getUserPhotoStatus",(function(e,t){var n=e.commit;return new Promise((function(e,r){var i=t;Uu.request.post("https://penpalamerica.com/penpal/getuserphotostatus.php",i,(function(t){"0"==t?(n("setPhotoStatus",!0),e(!0)):(n("setPhotoStatus",!1),e(!1))}))}))})),Zg(Fg,"sendRequest",(function(e,t){e.commit;return new Promise((function(e,n){zg.child(t.recipient).push({sender:t.sender}).then((function(){e({success:!0})})).catch((function(e){n(e)}))}))})),Fg)};function ay(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function sy(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ly(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){sy(o,r,i,a,s,"next",e)}function s(e){sy(o,r,i,a,s,"throw",e)}a(void 0)}))}}var cy={state:{advert_country:null,subscribe_affiliate:!1,user_country:null,chat_groups:null,group_members:null,friend_members:null,group_messages:null,chat_group_name:null,user_status:null,app_state:!0,ban_status:!1,typing_message_group:0,number_online:0,total_group_messages:0,user_notifications:[],post_chat_messages:[]},getters:{subscribe_affiliate:function(e){return e.subscribe_affiliate},post_chat_messages:function(e){return e.post_chat_messages},friend_members:function(e){return e.friend_members},total_group_messages:function(e){return e.total_group_messages},chat_groups:function(e){return e.chat_groups},number_online:function(e){return e.number_online},group_members:function(e){return e.group_members},group_messages:function(e){return e.group_messages},chat_group_name:function(e){return e.chat_group_name},user_status:function(e){return e.user_status},app_state:function(e){return e.app_state},ban_status:function(e){return e.ban_status},typing_message_group:function(e){return e.typing_message_group},user_notifications:function(e){return e.user_notifications},user_country:function(e){return e.user_country}},mutations:{setAdvertCountry:function(e,t){e.advert_country=t},setSubscribeAffiliate:function(e,t){e.subscribe_affiliate=t},setPostChatMessages:function(e,t){e.post_chat_messages=t},setFriendMembers:function(e,t){e.friend_members=t},setNumberOnline:function(e,t){e.number_online=t},setTotalGroupMessages:function(e,t){e.total_group_messages=t},setChatGroups:function(e,t){e.chat_groups=t},setGroupMembers:function(e,t){e.group_members=t},setGroupMessages:function(e,t){e.group_messages=t},setChatGroupName:function(e,t){e.chat_group_name=t},setUserStatus:function(e,t){e.user_status=t},setAppState:function(e,t){e.app_state=t},setBanStatus:function(e,t){e.ban_status=t},setTypingMessageGroup:function(e,t){e.typing_message_group=t},setUserNotifications:function(e,t){e.user_notifications=t},setUserCountry:function(e,t){e.user_country=t}},actions:{sendLatestGroupMessage:function(e,t){return ly(bf.a.mark((function t(){return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.dispatch;case 1:case"end":return t.stop()}}),t)})))()},placeAdvert:function(e,t){var n=e.commit,r={};r["/adverts/"+mf.a.database().ref().child("/adverts/").push().key]=t,mf.a.database().ref().update(r),n("setAlertMessage","Advert Placed successfully")},getGroupMessages:function(e){return ly(bf.a.mark((function t(){var n,r,i,o;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,i=[],t.next=4,r("getUserCountry");case 4:i.country=t.sent,o=mf.a.auth().currentUser,Wg.child(i.country).child("msgboard").on("value",(function(e){var t=e.val(),r=[];_.forEach(t,(function(e){e.type=e.sentby==o.uid?"sent":"received",e.date=Af()(e.timestamp).format("MMMM Do dddd"),e.smalldate=Af()(e.timestamp).format("LTS"),r.push(e)}));var i=_.groupBy(r,"date");n("setGroupMessages",i)}),(function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},sendGroupMessage:function(e,t){return ly(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.dispatch;try{Wg.child(t.group_name).child("msgboard").push({club:userClub,sentby:mf.a.auth().currentUser.uid,displayName:mf.a.auth().currentUser.displayName,avatar:mf.a.auth().currentUser.photoURL,image:t.img,text:t.message,timestamp:mf.a.database.ServerValue.TIMESTAMP})}catch(e){console.log(e)}return n.prev=2,n.next=5,r("getTotalGroupMessages");case 5:if(-5==(i=n.sent)&&(i=1),!(null!=i&&i>0)){n.next=14;break}return i++,n.next=11,r("getUserCountry");case 11:return o=n.sent,n.next=14,mf.a.database().ref("/appStatistics").child(o).update({totalMessages:i});case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(2),console.log(n.t0);case 19:case"end":return n.stop()}}),n,null,[[2,16]])})))()},leaveGroup:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ay(e),n.prev=1,r="",n.next=5,Wg.child(mf.a.auth().currentUser.uid).child(t.group_name).once("value",(function(e){r=e.val().owner}));case 5:return n.next=7,Wg.child(r).child(t.group_name).child("members");case 7:return(i=n.sent).orderByChild("uid").equalTo(mf.a.auth().currentUser.uid).once("value",(function(e){var t;for(var n in e.val())t=n;i.child(t).remove()})),n.next=11,Wg.child(mf.a.auth().currentUser.uid).child(t.group_name).remove();case 11:return n.next=13,dispatch("getGroupMembers",t.group_name);case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(1),console.log(n.t0);case 18:case"end":return n.stop()}}),n,null,[[1,15]])})))()},removeMember:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.prev=1,n.next=4,Wg.child(mf.a.auth().currentUser.uid).child(t.group_name).child("members");case 4:return(i=n.sent).orderByChild("uid").equalTo(t.member.uid).once("value",(function(e){var t;for(var n in e.val())t=n;i.child(t).remove()})),n.next=8,Wg.child(t.member.uid).child(t.group_name).remove();case 8:return n.next=10,r("getGroupMembers",t.group_name);case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),console.log(n.t0);case 15:case"end":return n.stop()}}),n,null,[[1,12]])})))()},getGroupMembers:function(e,t){return ly(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i="",n.next=4,Wg.child(mf.a.auth().currentUser.uid).child(t).once("value",(function(e){i=e.val().owner}));case 4:return o=new Promise((function(e,n){Wg.child(i).child(t).once("value",(function(t){var n=t.val().members,i=[];for(var o in n)i.push(n[o]);e(n),r("setGroupMembers",i)}),(function(e){n(e)}))})),n.abrupt("return",o);case 6:case"end":return n.stop()}}),n)})))()},addMember:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.prev=1,n.next=4,Wg.child(mf.a.auth().currentUser.uid).child(t.group_name).child("members").push(t.newmember);case 4:return n.next=6,r("getGroupImage",t.group_name);case 6:return i=n.sent,n.next=9,Wg.child(t.newmember.uid).child(t.group_name).set({group_pic:i,msgboard:"",owner:mf.a.auth().currentUser.uid});case 9:r("getGroupMembers",t.group_name),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),console.log(n.t0);case 15:case"end":return n.stop()}}),n,null,[[1,12]])})))()},banUser:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ay(e),r=t.uid,i=t.comments,n.prev=3,n.next=6,mf.a.database().ref("/users/").child(r).update({userType:"0",BanReasons:i});case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(3),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[3,8]])})))()},unBanUser:function(e,t){return ly(bf.a.mark((function n(){return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ay(e),n.prev=1,n.next=4,mf.a.database().ref("/users/").child(t).update({userType:"1"});case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(1),console.log(n.t0);case 9:case"end":return n.stop()}}),n,null,[[1,6]])})))()},closeAppState:function(e){return ly(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.prev=1,t.next=4,r("getUserCountry");case 4:return i=t.sent,t.next=7,mf.a.database().ref("/appState").child(i).update({appStateValue:"1"});case 7:n("setAppState",!1),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},openAppState:function(e){return ly(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.prev=1,t.next=4,r("getUserCountry");case 4:return i=t.sent,t.next=7,mf.a.database().ref("/appState").child(i).update({appStateValue:"0"});case 7:n("setAppState",!0),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))()},getGroupImage:function(e,t){return ay(e),new Promise((function(e,n){Wg.child(mf.a.auth().currentUser.uid).child(t).once("value",(function(t){var n=t.val().group_pic;e(n)})).catch((function(e){n(e)}))}))},getStaticGroupImage:function(e,t){ay(e);return new Promise((function(e,n){Wg.child("C0KUjyHioShrmY646lnmqgs3sFO2").child(t).once("value",(function(t){var n=t.val().group_pic;e(n)})).catch((function(e){n(e)}))}))},createGroup:function(e,t){return ay(e),new Promise((function(e,n){Wg.child(mf.a.auth().currentUser.uid).child(t.name).set({group_pic:t.pic,msgboard:"",owner:mf.a.auth().currentUser.uid}).then((function(t){e(!0)})).catch((function(e){n(e)}))}))},getUserDetails:function(e){e.commit;return new Promise((function(e,t){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(t){e(t.val())}))}))},getUserCountry:function(e){var t=e.commit;return new Promise((function(e,n){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(n){t("setUserCountry",n.val().country),e(n.val().country)}))}))},getUserEmail:function(e){e.commit;return new Promise((function(e,t){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(t){e(t.val().email)}))}))},getUserClub:function(e){e.commit;return new Promise((function(e,t){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(t){e(t.val().club)}))}))},getGroupName2:function(e){var t=e.commit;return new Promise((function(e,n){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(n){n.val();e(n.val().country),[].push(n.val()),t("setChatGroupName",n.val().country)}))}))},getBanUserStatus:function(e,t){var n=e.commit;return new Promise((function(e,r){mf.a.database().ref("users").child(t).once("value",(function(t){e(t.val().userType),"0"==t.val().userType?n("setBanStatus",!0):n("setBanStatus",!1)}))}))},getUserStatus:function(e){var t=e.commit;return new Promise((function(e,n){mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(n){e(n.val().userType),t("setUserStatus",n.val().userType)}))}))},getAppState:function(e){return ly(bf.a.mark((function t(){var n,r,i,o;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return i=t.sent,o=new Promise((function(e,t){mf.a.database().ref("appState").child(i).once("value",(function(t){e(t.val().appStateValue),"1"==t.val().appStateValue?n("setAppState",!1):n("setAppState",!0)}))})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},getOnlineStatistics:function(e){return ly(bf.a.mark((function t(){var n,r,i,o;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return i=t.sent,o=new Promise((function(e,t){mf.a.database().ref("/appStatistics").child(i).on("value",(function(t){n("setNumberOnline",t.val().online),e(t.val().online)}))})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},getTotalGroupMessages:function(e){return ly(bf.a.mark((function t(){var n,r,i,o;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:return i=t.sent,o=new Promise((function(e,t){mf.a.database().ref("/appStatistics").child(i).on("value",(function(t){-5==t.val().totalMessages?(n("setTotalGroupMessages",0),e(t.val().totalMessages)):(n("setTotalGroupMessages",t.val().totalMessages),e(t.val().totalMessages))}))})),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},statisticsUsersOnline:function(e){return ly(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.commit,n=e.dispatch,t.prev=1,t.next=4,n("getOnlineStatistics");case 4:return r=t.sent,r++,t.next=8,n("getUserCountry");case 8:return i=t.sent,t.next=11,mf.a.database().ref("/appStatistics").child(i).update({online:r}).catch((function(e){console.log(e)}));case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))()},statisticsUsersOnlineRemove:function(e){return ly(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.dispatch,t.prev=1,t.next=4,n("getOnlineStatistics");case 4:return(r=t.sent)>0&&r--,t.next=8,n("getUserCountry");case 8:return i=t.sent,t.next=11,mf.a.database().ref("/appStatistics").child(i).update({online:r});case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[1,13]])})))()},pushNotifications:function(e,t){return ly(bf.a.mark((function n(){var r,i,o;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,e.dispatch,i=mf.a.auth().currentUser.uid,o=Jg.child(i).push().key,n.next=5,Jg.child(o).update({title:t.title,message_details:t.message_details,uid:i,timestamp:mf.a.database.ServerValue.TIMESTAMP});case 5:r("setAlertMessage","Your broadcast message has been sent!");case 6:case"end":return n.stop()}}),n)})))()},getFriendMembers:function(e){return ly(bf.a.mark((function t(){var n,r;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=new Promise((function(e,t){Vg.child(mf.a.auth().currentUser.uid).once("value",(function(t){var r=t.val(),i=[];for(var o in r)i.push(r[o]);e(r),n("setFriendMembers",i)}),(function(e){t(e)}))})),t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})))()},sendMessageToFriends:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=e.dispatch,n.prev=1,n.next=4,r("getFriendMembers");case 4:i=n.sent,_.forEach(i,(function(e){mf.a.auth().currentUser.uid!=e.uid&&null!=e.uid&&null!=e.uid&&qg.child(mf.a.auth().currentUser.uid).child(e.uid).push({sentby:mf.a.auth().currentUser.uid,text:"Post Message:<br>"+t.msg,image:t.img,timestamp:mf.a.database.ServerValue.TIMESTAMP})})),Xg.child(mf.a.auth().currentUser.uid).push({sentby:mf.a.auth().currentUser.uid,text:"Post Message: "+t.msg,image:t.img,timestamp:mf.a.database.ServerValue.TIMESTAMP}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),console.log("loop error",n.t0);case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},getPostChatMessages:function(e){var t=e.commit,n=mf.a.auth().currentUser;Xg.child(n.uid).on("value",(function(e){var r=e.val();_.forEach(r,(function(e){e.type=e.sentby==n.uid?"sent":"received",e.name=(e.sentby,n.uid,n.displayName),e.date=Af()(e.timestamp).format("MMMM Do dddd"),e.smalldate=Af()(e.timestamp).format("LTS")}));var i=_.groupBy(r,"date");t("setPostChatMessages",i)}))},getUserPayout:function(e){var t=e.commit;mf.a.database().ref("pay4me").child(mf.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()&&mf.a.database().ref("users").child(mf.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()&&t("setUserPayout",e.val().payout)}))}))},getUserAffiliate:function(e){var t=e.commit;mf.a.database().ref("pay4me").child(mf.a.auth().currentUser.uid).once("value",(function(e){null!=e.val()&&null!=e.val()?t("setSubscribeAffiliate",!0):t("setSubscribeAffiliate",!1)}))},deleteAffiliate:function(e){var t=e.commit,n=mf.a.auth().currentUser.uid;mf.a.database().ref("pay4me/".concat(n,"/")).remove(),t("setSubscribeAffiliate",!1),t("setAlertMessage","Your Pay4me Program has been deleted")},processModerator:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=mf.a.auth().currentUser.uid,n.prev=2,n.next=5,mf.a.database().ref("/beAModerator/").child(i).update({twitter_handle:t.twitter,instagram_IG:t.instagram,timestamp:mf.a.database.ServerValue.TIMESTAMP});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),r("setAlertMessage",n.t0);case 10:case"end":return n.stop()}}),n,null,[[2,7]])})))()},processAffiliate:function(e,t){return ly(bf.a.mark((function n(){var r,i;return bf.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=mf.a.auth().currentUser.uid,n.prev=2,n.next=5,mf.a.database().ref("/pay4me/").child(i).update({bank_name:t.bank_name,account_name:t.account_name,account_number:t.account_number,paypal:t.paypal});case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(2),console.log(n.t0);case 10:r("setAlertMessage","Your account activated for Gift Program");case 11:case"end":return n.stop()}}),n,null,[[2,7]])})))()},getMyGroups:function(e){return ly(bf.a.mark((function t(){var n,r,i;return bf.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,r=e.dispatch,t.next=3,r("getUserCountry");case 3:i=t.sent,Wg.once("value",(function(e){var t=[];if(null!=e.val()){var r=0,o=e.val();for(var a in o){if(a==i&&0==r){var s={name:a,pic:o[a].group_pic,owner:o[a].owner};r=1}t.push(s)}}n("setChatGroups",t)}));case 5:case"end":return t.stop()}}),t)})))()}}};i.default.use(uv.a);var uy=new uv.a.Store({modules:{auth:pv,file:Ug,chat:oy,groupchat:cy},state:{alert_message:null,show_tabbar:!0,quit_application:null},getters:{alert_message:function(e){return e.alert_message},quit_application:function(e){return e.quit_application},show_tabbar:function(e){return e.show_tabbar}},mutations:{setAlertMessage:function(e,t){e.alert_message=t},setQuitApplication:function(e,t){e.quit_application=t},setShowTabs:function(e,t){e.show_tabbar=t}}});i.default.prototype.moment=Af.a,Uu.use(ff,Lm.a);var dy=null,hy=sessionStorage.getItem("email"),fy=sessionStorage.getItem("domain");if(null!=hy){var py={};py={email:hy,domain:fy};uy.dispatch("getUserPersonalDetailsPlus",py)}else{var my=localStorage.getItem("localemail"),vy=localStorage.getItem("localdomain");if(null!=my){py={},py={email:my,domain:vy};uy.dispatch("getUserPersonalDetailsPlus",py)}}dy||(dy=new i.default({el:"#app",render:function(e){return e(cv)},store:uy,components:{app:cv},on:{init:function(e){}}}));if(window.hasOwnProperty("cordova")){var gy=function(){AdMob?AdMob.createBanner({adId:yy.banner,position:AdMob.AD_POSITION.BOTTOM_CENTER,overlap:!1,offsetTopBar:!1,autoShow:!0,bgColor:"black"}):alert("admob plugin not ready")},yy={};yy=(/(android)/i.test(navigator.userAgent)||/(ipod|iphone|ipad)/i.test(navigator.userAgent),{banner:"ca-app-pub-3672658228483041/1754491371"}),window.hasOwnProperty("cordova")?document.addEventListener("deviceready",gy,!1):gy(),document.addEventListener("deviceready",(function(){window.plugins.OneSignal.startInit("1bdd80c5-cabb-4296-9e59-ef5fa8638eed").handleNotificationOpened((function(e){})).inFocusDisplaying(window.plugins.OneSignal.OSInFocusDisplayOption.Notification).endInit(),document.addEventListener("offline",(function(){uy.commit("setAlertMessage","It seems you are offline. Kindly check internet connection to continue...")}),!1),document.addEventListener("backbutton",(function(){uy.commit("setQuitApplication","1")}),!1);cordova.plugins.firebase.messaging.getBadge().then((function(e){cordova.plugins.firebase.messaging.setBadge(e++)})),cordova.plugins.firebase.messaging.setBadge(100),cordova.plugins.firebase.messaging.onBackgroundMessage((function(e){}))}))}}]);
//# sourceMappingURL=app.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit