/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[455],[,,,,function(e,t,n){"use strict";n.d(t,"k",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"C",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"p",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"q",(function(){return w})),n.d(t,"s",(function(){return S})),n.d(t,"j",(function(){return _})),n.d(t,"v",(function(){return C})),n.d(t,"o",(function(){return O})),n.d(t,"i",(function(){return A})),n.d(t,"x",(function(){return T})),n.d(t,"y",(function(){return P})),n.d(t,"D",(function(){return M})),n.d(t,"z",(function(){return x})),n.d(t,"d",(function(){return I})),n.d(t,"c",(function(){return R})),n.d(t,"H",(function(){return j})),n.d(t,"w",(function(){return D})),n.d(t,"I",(function(){return N})),n.d(t,"F",(function(){return L})),n.d(t,"m",(function(){return B})),n.d(t,"E",(function(){return U})),n.d(t,"u",(function(){return F})),n.d(t,"G",(function(){return z})),n.d(t,"r",(function(){return $})),n.d(t,"t",(function(){return H})),n.d(t,"g",(function(){return G})),n.d(t,"B",(function(){return V})),n.d(t,"f",(function(){return W})),n.d(t,"e",(function(){return K})),n.d(t,"A",(function(){return Y})),n.d(t,"n",(function(){return X})),n.d(t,"h",(function(){return J}));var r=n(21),o=n(35),c=(n(0),n(6),n(12),n(768),n(7),n(66),n(22),n(54),n(226),n(24),n(28),n(543),n(443),n(9),n(5),n(34),n(50),n(33),n(460),n(10),n(11),n(69),n(92),n(98),n(8),n(60),n(1));function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return c.a.extend({name:n||e.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:t}},render:function(t,n){var data=n.data,r=n.props,o=n.children;return data.staticClass="".concat(e," ").concat(data.staticClass||"").trim(),t(r.tag,data,o)}})}function h(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,(function o(c){n(c),e.removeEventListener(t,o,r)}),r)}var d=!1;try{if("undefined"!=typeof window){var f=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testListener",f,f),window.removeEventListener("testListener",f,f)}}catch(e){console.warn(e)}function m(e,t,n,r){e.addEventListener(t,n,!!d&&r)}function v(e,path,t){var n=path.length-1;if(n<0)return void 0===e?t:e;for(var i=0;i<n;i++){if(null==e)return t;e=e[path[i]]}return null==e||void 0===e[path[n]]?t:e[path[n]]}function y(a,b){if(a===b)return!0;if(a instanceof Date&&b instanceof Date&&a.getTime()!==b.getTime())return!1;if(a!==Object(a)||b!==Object(b))return!1;var e=Object.keys(a);return e.length===Object.keys(b).length&&e.every((function(p){return y(a[p],b[p])}))}function w(e,path,t){return null!=e&&path&&"string"==typeof path?void 0!==e[path]?e[path]:v(e,(path=(path=path.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),t):t}function S(e,t,n){if(null==t)return void 0===e?n:e;if(e!==Object(e))return void 0===n?e:n;if("string"==typeof t)return w(e,t,n);if(Array.isArray(t))return v(e,t,n);if("function"!=typeof t)return n;var r=t(e,n);return void 0===r?n:r}function _(e){return Array.from({length:e},(function(e,t){return t}))}function C(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return 0;var t=+window.getComputedStyle(e).getPropertyValue("z-index");return t||C(e.parentNode)}function O(e,t){for(var n={},i=0;i<t.length;i++){var r=t[i];void 0!==e[r]&&(n[r]=e[r])}return n}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return null==e||""===e?void 0:isNaN(+e)?String(e):"".concat(Number(e)).concat(t)}function T(e){return(e||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function E(e){return null!==e&&"object"===Object(o.a)(e)}var P=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function M(e,t){var component=e.$vuetify.icons.component;if(t.startsWith("$")){var n=w(e,"$vuetify.icons.values.".concat(t.split("$").pop().split(".").pop()),t);if("string"!=typeof n)return n;t=n}return null==component?t:{component:component,props:{icon:t}}}function x(e){return Object.keys(e)}var k=/-(\w)/g,I=function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))};function R(a,b){for(var e=[],i=0;i<b.length;i++)a.indexOf(b[i])<0&&e.push(b[i]);return e}function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}function D(e,t,n){for(var r,o=t[0],c=[],i=0;i<e.length;i++){var l=e[i],h=w(l,o,null);r!==h&&(r=h,c.push({name:null!=h?h:"",items:[]})),c[c.length-1].items.push(l)}return c}function N(e){return null!=e?Array.isArray(e)?e:[e]:[]}function L(e,t,n,o,c){if(null===t||!t.length)return e;var l=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return e.sort((function(a,b){for(var i=0;i<t.length;i++){var e=t[i],o=w(a,e),h=w(b,e);if(n[i]){var d=[h,o];o=d[0],h=d[1]}if(c&&c[e]){var f=c[e](o,h);if(!f)continue;return f}if(null!==o||null!==h){if(o instanceof Date&&h instanceof Date)return o.getTime()-h.getTime();var m=[o,h].map((function(s){return(s||"").toString().toLocaleLowerCase()})),v=Object(r.a)(m,2);if((o=v[0])!==(h=v[1]))return isNaN(o)||isNaN(h)?l.compare(o,h):Number(o)-Number(h)}}return 0}))}function B(e,t,n){return null!=e&&null!=t&&"boolean"!=typeof e&&-1!==e.toString().toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}function U(e,t){return t?""===(t=t.toString().toLowerCase()).trim()?e:e.filter((function(e){return Object.keys(e).some((function(n){return B(w(e,n),t)}))})):e}function F(e,t,n){return e.$slots.hasOwnProperty(t)&&e.$scopedSlots.hasOwnProperty(t)&&e.$scopedSlots[t].name?n?"v-slot":"scoped":e.$slots.hasOwnProperty(t)?"normal":e.$scopedSlots.hasOwnProperty(t)?"scoped":void 0}function z(e,t){var n=!1;return function(){if(!n)return n=!0,setTimeout((function(){return n=!1}),t),e.apply(void 0,arguments)}}function $(e,t){return Object.keys(t).filter((function(t){return t.startsWith(e)})).reduce((function(n,r){return n[r.replace(e,"")]=t[r],n}),{})}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",data=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.$scopedSlots.hasOwnProperty(t)?e.$scopedSlots[t](data instanceof Function?data():data):!e.$slots.hasOwnProperty(t)||data&&!n?void 0:e.$slots[t]}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))}function V(e,t){return e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0").repeat(Math.max(0,t-e.length))}function W(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=0;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function K(e){return e?Object.keys(e).reduce((function(t,n){return t[I(n)]=e[n],t}),{}):{}}function Y(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var t in e){var n=source[t],r=e[t];E(n)&&E(r)?source[t]=Y(n,r):source[t]=r}return source}function X(e,t){return Array(e).fill(t)}function J(e){if(e.composedPath)return e.composedPath();for(var path=[],t=e.target;t;){if(path.push(t),"HTML"===t.tagName)return path.push(document),path.push(window),path;t=t.parentElement}return path}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.a.extend({mixins:t})}},,,,,,function(e,t,n){"use strict";n.d(t,"k",(function(){return w})),n.d(t,"m",(function(){return S})),n.d(t,"l",(function(){return _})),n.d(t,"e",(function(){return C})),n.d(t,"b",(function(){return O})),n.d(t,"s",(function(){return A})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return E})),n.d(t,"d",(function(){return P})),n.d(t,"r",(function(){return M})),n.d(t,"j",(function(){return x})),n.d(t,"t",(function(){return I})),n.d(t,"o",(function(){return j})),n.d(t,"q",(function(){return D})),n.d(t,"f",(function(){return N})),n.d(t,"c",(function(){return L})),n.d(t,"i",(function(){return B})),n.d(t,"p",(function(){return U})),n.d(t,"a",(function(){return W})),n.d(t,"v",(function(){return K})),n.d(t,"n",(function(){return Y})),n.d(t,"u",(function(){return X}));var r=n(35),o=n(2),c=n(0),l=n(21),h=(n(15),n(12),n(6),n(49),n(94),n(7),n(39),n(122),n(22),n(54),n(24),n(66),n(192),n(10),n(11),n(8),n(9),n(5),n(489),n(34),n(50),n(51),n(33),n(460),n(69),n(207),n(92),n(36),n(1)),d=n(239);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function w(e){h.a.config.errorHandler&&h.a.config.errorHandler(e)}function S(e){return e.then((function(e){return e.default||e}))}function _(e){return e.$options&&"function"==typeof e.$options.fetch&&!e.$options.fetch.length}function C(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=v(e.$children||[]);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.$fetch&&n.push(o),o.$children&&C(o,n)}}catch(e){r.e(e)}finally{r.f()}return n}function O(e,t){if(t||!e.options.__hasNuxtData){var n=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=n,e.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m(m({},data),t)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function A(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=h.a.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],e.matched.map((function(e,r){return Object.keys(e[n]).map((function(o){return t&&t.push(r),e[n][o]}))})))}function E(e){return T(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"instances")}function P(e,t){return Array.prototype.concat.apply([],e.matched.map((function(e,n){return Object.keys(e.components).reduce((function(r,o){return e.components[o]?r.push(t(e.components[o],e.instances[o],e,o,n)):delete e.components[o],r}),[])})))}function M(e,t){return Promise.all(P(e,function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,r,o,c){var l,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n||n.options){e.next=11;break}return e.prev=1,e.next=4,n();case 4:n=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),e.t0&&"ChunkLoadError"===e.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(h=parseInt(window.sessionStorage.getItem("nuxt-reload")))||h+6e4<l)&&(window.sessionStorage.setItem("nuxt-reload",l),window.location.reload(!0))),e.t0;case 11:return o.components[c]=n=A(n),e.abrupt("return","function"==typeof t?t(n,r,o,c):n);case 13:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t,n,r,o){return e.apply(this,arguments)}}()))}function x(e){return k.apply(this,arguments)}function k(){return(k=Object(o.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,M(t);case 4:return e.abrupt("return",m(m({},t),{},{meta:T(t).map((function(e,n){return m(m({},e.options.meta),(t.matched[n]||{}).meta)}))}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t){return R.apply(this,arguments)}function R(){return(R=Object(o.a)(regeneratorRuntime.mark((function e(t,n){var o,c,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.context||(t.context={isStatic:!0,isDev:!1,isHMR:!1,app:t,store:t.store,payload:n.payload,error:n.error,base:t.router.options.base,env:{NUXT_ENV_BUILD_INFO:'{\n  "abbrevId": "dcb1a9a",\n  "id": "dcb1a9a5d4c986840bae9cb3ccefce47c118ba7c",\n  "branch": "master",\n  "commitTime": "2024-10-25T08:29:38.000Z",\n  "buildTime": "2024-10-25T08:31:33.446Z"\n}'}},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),n.ssrContext&&(t.context.ssrContext=n.ssrContext),t.context.redirect=function(e,path,n){if(e){t.context._redirected=!0;var o=Object(r.a)(path);if("number"==typeof e||"undefined"!==o&&"object"!==o||(n=path||{},path=e,o=Object(r.a)(path),e=302),"object"===o&&(path=t.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=Object(d.d)(path,n),window.location.assign(path),new Error("ERR_REDIRECT");t.context.next({path:path,query:n,status:e})}},t.context.nuxtState=window.__NUXT__),e.next=3,Promise.all([x(n.route),x(n.from)]);case 3:o=e.sent,c=Object(l.a)(o,2),h=c[0],f=c[1],n.route&&(t.context.route=h),n.from&&(t.context.from=f),n.error&&(t.context.error=n.error),t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!1,t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{};case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,t,n){return!e.length||t._redirected||t._errored||n&&n.aborted?Promise.resolve():D(e[0],t).then((function(){return j(e.slice(1),t,n)}))}function D(e,t){var n;return(n=2===e.length?new Promise((function(n){e(t,(function(e,data){e&&t.error(e),n(data=data||{})}))})):e(t))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function N(base,e){if("hash"===e)return window.location.hash.replace(/^#\//,"");base=decodeURI(base).slice(0,-1);var path=decodeURI(window.location.pathname);base&&path.startsWith(base)&&(path=path.slice(base.length));var t=(path||"/")+window.location.search+window.location.hash;return Object(d.c)(t)}function L(e,t){return function(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===Object(r.a)(e[i])&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",V(t)));return function(t,r){for(var path="",data=t||{},o=(r||{}).pretty?z:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!=typeof l){var h=data[l.name||"pathMatch"],d=void 0;if(null==h){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Array.isArray(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(d=o(h[f]),!n[c].test(d))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(d)+"`");path+=(0===f?l.prefix:l.delimiter)+d}}else{if(d=l.asterisk?$(h):o(h),!n[c].test(d))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+d+'"');path+=l.prefix+d}}else path+=l}return path}}(function(e,t){var n,r=[],o=0,c=0,path="",l=t&&t.delimiter||"/";for(;null!=(n=F.exec(e));){var h=n[0],d=n[1],f=n.index;if(path+=e.slice(c,f),c=f+h.length,d)path+=d[1];else{var m=e[c],v=n[2],y=n[3],w=n[4],S=n[5],_=n[6],C=n[7];path&&(r.push(path),path="");var O=null!=v&&null!=m&&m!==v,A="+"===_||"*"===_,T="?"===_||"*"===_,E=n[2]||l,pattern=w||S;r.push({name:y||o++,prefix:v||"",delimiter:E,optional:T,repeat:A,partial:O,asterisk:Boolean(C),pattern:pattern?G(pattern):C?".*":"[^"+H(E)+"]+?"})}}c<e.length&&(path+=e.substr(c));path&&r.push(path);return r}(e,t),t)}function B(e,t){var n={},r=m(m({},e),t);for(var o in r)String(e[o])!==String(t[o])&&(n[o]=!0);return n}function U(e){var t;if(e.message||"string"==typeof e)t=e.message||e;else try{t=JSON.stringify(e,null,2)}catch(n){t="[".concat(e.constructor.name,"]")}return m(m({},e),{},{message:t,statusCode:e.statusCode||e.status||e.response&&e.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(e){window.onNuxtReadyCbs.push(e)};var F=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function z(e,t){var n=t?/[?#]/g:/[/?#]/g;return encodeURI(e).replace(n,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function $(e){return z(e,!0)}function H(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function G(e){return e.replace(/([=!:$/()])/g,"\\$1")}function V(e){return e&&e.sensitive?"":"i"}function W(e,t,n){e.$options[t]||(e.$options[t]=[]),e.$options[t].includes(n)||e.$options[t].push(n)}var K=d.b,Y=(d.e,d.a);function X(e){try{window.history.scrollRestoration=e}catch(e){}}},,,,function(e,t,n){"use strict";var r=n(364);t.a=r.a},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return d}));var r=n(615),o=n(4),c=Object(o.k)("v-card__actions"),l=Object(o.k)("v-card__subtitle"),h=Object(o.k)("v-card__text"),d=Object(o.k)("v-card__title");r.a},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f}));n(12),n(39),n(122),n(22),n(24),n(34),n(51),n(206),n(460),n(69);var r=n(316);function o(e,t,n){if(!r.a.config.silent){if(n&&(t={_isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return"[Vuetify] ".concat(e)+(t?function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,i){return"".concat(0===i?"---\x3e ":" ".repeat(5+2*i)).concat(Array.isArray(e)?"".concat(y(e[0]),"... (").concat(e[1]," recursive calls)"):y(e))})).join("\n")}return"\n\n(found in ".concat(y(e),")")}(t):"")}}function c(e,t,n){var r=o(e,t,n);null!=r&&console.warn(r)}function l(e,t,n){var r=o(e,t,n);null!=r&&console.error(r)}function h(e,t,n,r){c("[UPGRADE] '".concat(e,"' is deprecated, use '").concat(t,"' instead."),n,r)}function d(e,t,n,r){l("[BREAKING] '".concat(e,"' has been removed, use '").concat(t,"' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide"),n,r)}function f(e,t,n){c("[REMOVED] '".concat(e,"' has been removed. You can safely omit it."),t,n)}var m=/(?:^|[-_])(\w)/g,v=function(e){return e.replace(m,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};function y(e,t){if(e.$root===e)return"<Root>";var n="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,o=n.__file;if(!r&&o){var c=o.match(/([^/\\]+)\.vue$/);r=c&&c[1]}return(r?"<".concat(v(r),">"):"<Anonymous>")+(o&&!1!==t?" at ".concat(o):"")}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return A}));var r=n(4),o=n(620),c=n(623),l=n(423),h=n(621),d=n(624),f=(n(6),n(7),n(10),n(11),n(9),n(5),n(8),n(0)),m=(n(28),n(228));function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(f.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var w=m.a.extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes:function(){return y(y({"v-list-item__avatar--horizontal":this.horizontal},m.a.options.computed.classes.call(this)),{},{"v-avatar--tile":this.tile||this.horizontal})}},render:function(e){var t=m.a.options.render.call(this,e);return t.data=t.data||{},t.data.staticClass+=" v-list-item__avatar",t}}),S=n(368),_=Object(r.k)("v-list-item__action-text","span"),C=Object(r.k)("v-list-item__content","div"),O=Object(r.k)("v-list-item__title","div"),A=Object(r.k)("v-list-item__subtitle","div");o.a,c.a,l.a,d.a,h.a,S.a},function(e,t,n){"use strict";n.d(t,"b",(function(){return h}));n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0);function o(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var l=n(1).a.extend().extend({name:"themeable",provide:function(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data:function(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark:function(){return this.$vuetify.theme.dark||!1},isDark:function(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses:function(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark:function(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses:function(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler:function(e,t){e!==t&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});function h(e){var t=c(c({},e.props),e.injections),n=l.options.computed.isDark.call(t);return l.options.computed.themeClasses.call({isDark:n})}t.a=l},,,,,,,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(8);var r=n(21),o=n(0),c=(n(5),n(50),n(98),n(1)),l=n(26),h=n(197);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=c.a.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor:function(e){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof data.style?(Object(l.b)("style must be an object",this),data):"string"==typeof data.class?(Object(l.b)("class must be an object",this),data):(Object(h.n)(e)?data.style=f(f({},data.style),{},{"background-color":"".concat(e),"border-color":"".concat(e)}):e&&(data.class=f(f({},data.class),{},Object(o.a)({},e,!0))),data)},setTextColor:function(e){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof data.style)return Object(l.b)("style must be an object",this),data;if("string"==typeof data.class)return Object(l.b)("class must be an object",this),data;if(Object(h.n)(e))data.style=f(f({},data.style),{},{color:"".concat(e),"caret-color":"".concat(e)});else if(e){var t=e.toString().trim().split(" ",2),n=Object(r.a)(t,2),c=n[0],d=n[1];data.class=f(f({},data.class),{},Object(o.a)({},c+"--text",!0)),d&&(data.class["text--"+d]=!0)}return data}}})},,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(1257),o=n(1258),c=n(815);function l(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=d.prototype:(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,n){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(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 v(this,e)}return f(this,e,t,n)}function f(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);d.TYPED_ARRAY_SUPPORT?(e=t).__proto__=d.prototype:e=y(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!d.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|S(t,n);e=h(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(d.isBuffer(t)){var n=0|w(t.length);return 0===(e=h(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?h(e,0):y(e,t);if("Buffer"===t.type&&c(t.data))return y(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function m(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 v(e,t){if(m(t),e=h(e,t<0?0:0|w(t)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function y(e,t){var n=t.length<0?0:0|w(t.length);e=h(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function w(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function S(e,t){if(d.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 X(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function _(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 L(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function C(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function O(e,t,n,r,o){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=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,o);if("number"==typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,o){var i,c=1,l=e.length,h=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;c=2,l/=2,h/=2,n/=2}function d(e,i){return 1===c?e[i]:e.readUInt16BE(i*c)}if(o){var f=-1;for(i=n;i<l;i++)if(d(e,i)===d(t,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===h)return f*c}else-1!==f&&(i-=i-f),f=-1}else for(n+h>l&&(n=l-h),i=n;i>=0;i--){for(var m=!0,v=0;v<h;v++)if(d(e,i+v)!==d(t,v)){m=!1;break}if(m)return i}return-1}function T(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var c=t.length;if(c%2!=0)throw new TypeError("Invalid hex string");r>c/2&&(r=c/2);for(var i=0;i<r;++i){var l=parseInt(t.substr(2*i,2),16);if(isNaN(l))return i;e[n+i]=l}return i}function E(e,t,n,r){return J(Y(t,e.length-n),e,n,r)}function P(e,t,n,r){return J(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,n,r)}function M(e,t,n,r){return P(e,t,n,r)}function x(e,t,n,r){return J(X(t),e,n,r)}function k(e,t,n,r){return J(function(e,t){for(var n,r,o,c=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o=n%256,c.push(o),c.push(r);return c}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,c,l,h,d=e[i],f=null,m=d>239?4:d>223?3:d>191?2:1;if(i+m<=n)switch(m){case 1:d<128&&(f=d);break;case 2:128==(192&(o=e[i+1]))&&(h=(31&d)<<6|63&o)>127&&(f=h);break;case 3:o=e[i+1],c=e[i+2],128==(192&o)&&128==(192&c)&&(h=(15&d)<<12|(63&o)<<6|63&c)>2047&&(h<55296||h>57343)&&(f=h);break;case 4:o=e[i+1],c=e[i+2],l=e[i+3],128==(192&o)&&128==(192&c)&&128==(192&l)&&(h=(15&d)<<18|(63&o)<<12|(63&c)<<6|63&l)>65535&&h<1114112&&(f=h)}null===f?(f=65533,m=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=m}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=j));return n}(r)}t.Buffer=d,t.SlowBuffer=function(e){+e!=e&&(e=0);return d.alloc(+e)},t.INSPECT_MAX_BYTES=50,d.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=l(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,t,n){return f(null,e,t,n)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,t,n){return function(e,t,n,r){return m(t),t<=0?h(e,t):void 0!==n?"string"==typeof r?h(e,t).fill(n,r):h(e,t).fill(n):h(e,t)}(null,e,t,n)},d.allocUnsafe=function(e){return v(null,e)},d.allocUnsafeSlow=function(e){return v(null,e)},d.isBuffer=function(b){return!(null==b||!b._isBuffer)},d.compare=function(a,b){if(!d.isBuffer(a)||!d.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var e=a.length,t=b.length,i=0,n=Math.min(e,t);i<n;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?1:0},d.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}},d.concat=function(e,t){if(!c(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=d.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var o=e[i];if(!d.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},d.byteLength=S,d.prototype._isBuffer=!0,d.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 i=0;i<e;i+=2)C(this,i,i+1);return this},d.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 i=0;i<e;i+=4)C(this,i,i+3),C(this,i+1,i+2);return this},d.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 i=0;i<e;i+=8)C(this,i,i+7),C(this,i+1,i+6),C(this,i+2,i+5),C(this,i+3,i+4);return this},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):_.apply(this,arguments)},d.prototype.equals=function(b){if(!d.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===d.compare(this,b)},d.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+">"},d.prototype.compare=function(e,t,n,r,o){if(!d.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var c=(o>>>=0)-(r>>>=0),l=(n>>>=0)-(t>>>=0),h=Math.min(c,l),f=this.slice(r,o),m=e.slice(t,n),i=0;i<h;++i)if(f[i]!==m[i]){c=f[i],l=m[i];break}return c<l?-1:l<c?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return O(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return O(this,e,t,n,!1)},d.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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var c=!1;;)switch(r){case"hex":return T(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return P(this,e,t,n);case"latin1":case"binary":return M(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function D(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 N(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 L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=K(e[i]);return o}function B(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function U(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 F(e,t,n,r,o,c){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<c)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(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 $(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 H(e,t,n,r,o,c){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,c){return c||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,c){return c||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}d.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),d.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=d.prototype;else{var o=t-e;n=new d(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},d.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},d.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},d.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),o.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),o.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(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},d.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);F(this,e,t,n,o-1,-o)}var i=0,c=1,sub=0;for(this[t]=255&e;++i<n&&(c*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/c>>0)-sub&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);F(this,e,t,n,o-1,-o)}var i=n-1,c=1,sub=0;for(this[t+i]=255&e;--i>=0&&(c*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/c>>0)-sub&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},d.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||!d.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},d.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 code=e.charCodeAt(0);code<256&&(e=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.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 i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=d.isBuffer(e)?e:Y(new d(e,r).toString()),c=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%c]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(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,o=null,c=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&c.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&c.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;c.push(n)}else if(n<2048){if((t-=2)<0)break;c.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;c.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;c.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return c}function X(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(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(67))},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(46),o=r.Buffer;function c(e,t){for(var n in e)t[n]=e[n]}function l(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=l),l.prototype=Object.create(o.prototype),c(o,l),l.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},l.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},l.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},l.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},,,,,,,,,,,,,function(e,t,n){"use strict";(function(t){const{randomBytes:r}=n(1281),{inspect:{custom:o},promisify:c}=n(879),l=n(1374),h=c(r),d=14e11,f=5694967295e3,m=20,v=`Valid KSUID timestamps must be in milliseconds since ${new Date(0).toISOString()},\n  no earlier than ${new Date(d).toISOString()} and no later than ${new Date(f).toISOString()}\n`.trim().replace(/(\n|\s)+/g," ").replace(/\.000Z/g,"Z");function y(e,n){const r=Math.floor((e-d)/1e3),o=t.allocUnsafe(4);return o.writeUInt32BE(r,0),t.concat([o,n],m)}const w=new WeakMap;class S{constructor(e){if(!S.isValid(e))throw new TypeError("Valid KSUID buffers are 20 bytes");w.set(this,e),Object.defineProperty(this,"buffer",{enumerable:!0,get:()=>t.from(e)})}get raw(){return t.from(w.get(this).slice(0))}get date(){return new Date(1e3*this.timestamp+d)}get timestamp(){return w.get(this).readUInt32BE(0)}get payload(){const e=w.get(this).slice(4,m);return t.from(e)}get string(){return l.encode(w.get(this),27).padStart(27,"0")}compare(e){return w.has(e)?w.get(this).compare(w.get(e),0,m):0}equals(e){return this===e||w.has(e)&&0===this.compare(e)}toString(){return`${this[Symbol.toStringTag]} { ${this.string} }`}toJSON(){return this.string}[o](){return this.toString()}static async random(time=Date.now()){const e=await h(16);return new S(y(Number(time),e))}static randomSync(time=Date.now()){const e=r(16);return new S(y(Number(time),e))}static fromParts(e,n){if(!Number.isInteger(e)||e<d||e>f)throw new TypeError(v);if(!t.isBuffer(n)||16!==n.byteLength)throw new TypeError("Valid KSUID payloads are 16 bytes");return new S(y(e,n))}static isValid(e){return t.isBuffer(e)&&e.byteLength===m}static parse(e){if(27!==e.length)throw new TypeError("Valid encoded KSUIDs are 27 characters");const n=l.decode(e,m);if(n.byteLength===m)return new S(n);const r=t.allocUnsafe(m),o=m-n.byteLength;return r.fill(0,0,o),n.copy(r,o),new S(r)}}Object.defineProperty(S.prototype,Symbol.toStringTag,{value:"KSUID"}),Object.defineProperty(S,"MAX_STRING_ENCODED",{value:"aWgEPTl1tmebfsQzFP4bxwgy80V"}),Object.defineProperty(S,"MIN_STRING_ENCODED",{value:"000000000000000000000000000"}),e.exports=S}).call(this,n(46).Buffer)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return S}));n(6),n(49),n(94),n(7),n(66),n(54),n(24),n(10),n(11),n(5),n(50),n(33),n(8),n(36);var r=n(0),o=n(21),c=(n(12),n(9),n(34),n(490),n(98),n(4));function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!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 i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var pattern={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function m(style){var e,t={},n=d(style.split(pattern.styleList));try{for(n.s();!(e=n.n()).done;){var r=e.value.split(pattern.styleProp),l=Object(o.a)(r,2),h=l[0],f=l[1];(h=h.trim())&&("string"==typeof f&&(f=f.trim()),t[Object(c.d)(h)]=f)}}catch(e){n.e(e)}finally{n.f()}return t}function v(){for(var e,t={},i=arguments.length;i--;)for(var n=0,r=Object.keys(arguments[i]);n<r.length;n++)switch(e=r[n]){case"class":case"directives":arguments[i][e]&&(t[e]=w(t[e],arguments[i][e]));break;case"style":arguments[i][e]&&(t[e]=y(t[e],arguments[i][e]));break;case"staticClass":if(!arguments[i][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[i][e].trim();break;case"on":case"nativeOn":arguments[i][e]&&(t[e]=S(t[e],arguments[i][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[i][e])break;t[e]||(t[e]={}),t[e]=h(h({},arguments[i][e]),t[e]);break;default:t[e]||(t[e]=arguments[i][e])}return t}function y(e,source){return e?source?(e=Object(c.I)("string"==typeof e?m(e):e)).concat("string"==typeof source?m(source):source):e:source}function w(e,source){return source?e&&e?Object(c.I)(e).concat(source):source:e}function S(){if(!(arguments.length<=0?void 0:arguments[0]))return arguments.length<=1?void 0:arguments[1];if(!(arguments.length<=1?void 0:arguments[1]))return arguments.length<=0?void 0:arguments[0];for(var e={},i=2;i--;){var t=i<0||arguments.length<=i?void 0:arguments[i];for(var n in t)t[n]&&(e[n]?e[n]=[].concat(t[n],e[n]):e[n]=t[n])}return e}},,,function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return d}));var o=function(){return void 0!==e},c=function(){return"undefined"!=typeof window},l=function(){return"undefined"!=typeof document},h=function(){return void 0!==r},d=function(object,e){return!!Object.keys(object).find((function(t){return t.startsWith(e)}))}}).call(this,n(67),n(83))},function(e,t,n){"use strict";n(6),n(10),n(11),n(9),n(8);var r=n(0),o=(n(12),n(7),n(22),n(28),n(5),n(1420),n(23)),c=n(377),l=(n(1422),n(38)),h=n(30),d=n(13),f=n(4),m=Object(d.a)(l.a,h.a).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(e,t){return this.$createElement("div",{staticClass:"v-messages__message",key:t},Object(f.t)(this,"default",{message:e,key:t})||[e])}},render:function(e){return e("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),v=n(186),y=n(512),w=n(75);function S(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var _=Object(d.a)(v.a,y.a).extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data:function(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense,"v-input--hide-spin-buttons":this.hideSpinButtons},this.themeClasses)},computedId:function(){return this.id||"input-".concat(this._uid)},hasDetails:function(){return this.messagesToDisplay.length>0},hasHint:function(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return!(!this.$slots.label&&!this.label)},internalValue:{get:function(){return this.lazyValue},set:function(e){this.lazyValue=e,this.$emit(this.$_modelEvent,e)}},isDirty:function(){return!!this.lazyValue},isLabelActive:function(){return this.isDirty},messagesToDisplay:function(){var e=this;return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((function(t){if("string"==typeof t)return t;var n=t(e.internalValue);return"string"==typeof n?n:""})).filter((function(e){return""!==e})):[]},showDetails:function(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value:function(e){this.lazyValue=e}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control",attrs:{title:this.attrs$.title}},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(e,t){var n,r=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=this["".concat(e,"Icon")],h="click:".concat(Object(f.x)(e)),d=!(!this.listeners$[h]&&!t),m={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendOuter:"appendAction",clear:"clear"}[e],label=d&&m?this.$vuetify.lang.t("$vuetify.input.".concat(m),null!==(n=this.label)&&void 0!==n?n:""):void 0,data=Object(w.a)({attrs:{"aria-label":label,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light,tabindex:"clear"===e?-1:void 0},on:d?{click:function(e){e.preventDefault(),e.stopPropagation(),r.$emit(h,e),t&&t(e)},mouseup:function(e){e.preventDefault(),e.stopPropagation()}}:void 0},c);return this.$createElement("div",{staticClass:"v-input__icon",class:e?"v-input__icon--".concat(Object(f.x)(e)):void 0},[this.$createElement(o.a,data,l)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(f.i)(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(c.a,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var e=this;return this.showDetails?this.$createElement(m,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:function(t){return Object(f.t)(e,"message",t)}}}):null},genSlot:function(e,t,slot){if(!slot.length)return null;var n="".concat(e,"-").concat(t);return this.$createElement("div",{staticClass:"v-input__".concat(n),ref:n},slot)},genPrependSlot:function(){var slot=[];return this.$slots.prepend?slot.push(this.$slots.prepend):this.prependIcon&&slot.push(this.genIcon("prepend")),this.genSlot("prepend","outer",slot)},genAppendSlot:function(){var slot=[];return this.$slots.append?slot.push(this.$slots.append):this.appendIcon&&slot.push(this.genIcon("append")),this.genSlot("append","outer",slot)},onClick:function(e){this.$emit("click",e)},onMouseDown:function(e){this.hasMouseDown=!0,this.$emit("mousedown",e)},onMouseUp:function(e){this.hasMouseDown=!1,this.$emit("mouseup",e)}},render:function(e){return e("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}});t.a=_},,,,,,,,,,function(e,t,n){"use strict";var r=Array.isArray;t.a=r},function(e,t,n){"use strict";n(12),n(24),n(28),n(60),n(1390);var r=n(4),o=80;function c(e,t){e.style.transform=t,e.style.webkitTransform=t}function l(e){return"TouchEvent"===e.constructor.name}function h(e){return"KeyboardEvent"===e.constructor.name}var d={show:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t._ripple&&t._ripple.enabled){var r=document.createElement("span"),o=document.createElement("span");r.appendChild(o),r.className="v-ripple__container",n.class&&(r.className+=" ".concat(n.class));var d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,o=0;if(!h(e)){var c=t.getBoundingClientRect(),d=l(e)?e.touches[e.touches.length-1]:e;r=d.clientX-c.left,o=d.clientY-c.top}var f=0,m=.3;t._ripple&&t._ripple.circle?(m=.15,f=t.clientWidth/2,f=n.center?f:f+Math.sqrt(Math.pow(r-f,2)+Math.pow(o-f,2))/4):f=Math.sqrt(Math.pow(t.clientWidth,2)+Math.pow(t.clientHeight,2))/2;var v="".concat((t.clientWidth-2*f)/2,"px"),y="".concat((t.clientHeight-2*f)/2,"px");return{radius:f,scale:m,x:n.center?v:"".concat(r-f,"px"),y:n.center?y:"".concat(o-f,"px"),centerX:v,centerY:y}}(e,t,n),f=d.radius,m=d.scale,v=d.x,y=d.y,w=d.centerX,S=d.centerY,_="".concat(2*f,"px");o.className="v-ripple__animation",o.style.width=_,o.style.height=_,t.appendChild(r);var C=window.getComputedStyle(t);C&&"static"===C.position&&(t.style.position="relative",t.dataset.previousPosition="static"),o.classList.add("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--visible"),c(o,"translate(".concat(v,", ").concat(y,") scale3d(").concat(m,",").concat(m,",").concat(m,")")),o.dataset.activated=String(performance.now()),setTimeout((function(){o.classList.remove("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--in"),c(o,"translate(".concat(w,", ").concat(S,") scale3d(1,1,1)"))}),0)}},hide:function(e){if(e&&e._ripple&&e._ripple.enabled){var t=e.getElementsByClassName("v-ripple__animation");if(0!==t.length){var n=t[t.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var r=performance.now()-Number(n.dataset.activated),o=Math.max(250-r,0);setTimeout((function(){n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout((function(){var t;1===e.getElementsByClassName("v-ripple__animation").length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),(null===(t=n.parentNode)||void 0===t?void 0:t.parentNode)===e&&e.removeChild(n.parentNode)}),300)}),o)}}}}};function f(e){return void 0===e||!!e}function m(e){var t={},element=e.currentTarget;if(element&&element._ripple&&!element._ripple.touched&&!e.rippleStop){if(e.rippleStop=!0,l(e))element._ripple.touched=!0,element._ripple.isTouch=!0;else if(element._ripple.isTouch)return;if(t.center=element._ripple.centered||h(e),element._ripple.class&&(t.class=element._ripple.class),l(e)){if(element._ripple.showTimerCommit)return;element._ripple.showTimerCommit=function(){d.show(e,element,t)},element._ripple.showTimer=window.setTimeout((function(){element&&element._ripple&&element._ripple.showTimerCommit&&(element._ripple.showTimerCommit(),element._ripple.showTimerCommit=null)}),o)}else d.show(e,element,t)}}function v(e){var element=e.currentTarget;if(element&&element._ripple){if(window.clearTimeout(element._ripple.showTimer),"touchend"===e.type&&element._ripple.showTimerCommit)return element._ripple.showTimerCommit(),element._ripple.showTimerCommit=null,void(element._ripple.showTimer=setTimeout((function(){v(e)})));window.setTimeout((function(){element._ripple&&(element._ripple.touched=!1)})),d.hide(element)}}function y(e){var element=e.currentTarget;element&&element._ripple&&(element._ripple.showTimerCommit&&(element._ripple.showTimerCommit=null),window.clearTimeout(element._ripple.showTimer))}var w=!1;function S(e){w||e.keyCode!==r.y.enter&&e.keyCode!==r.y.space||(w=!0,m(e))}function _(e){w=!1,v(e)}function C(e){!0===w&&(w=!1,v(e))}function O(e,t,n){var r=f(t.value);r||d.hide(e),e._ripple=e._ripple||{},e._ripple.enabled=r;var o=t.value||{};o.center&&(e._ripple.centered=!0),o.class&&(e._ripple.class=t.value.class),o.circle&&(e._ripple.circle=o.circle),r&&!n?(e.addEventListener("touchstart",m,{passive:!0}),e.addEventListener("touchend",v,{passive:!0}),e.addEventListener("touchmove",y,{passive:!0}),e.addEventListener("touchcancel",v),e.addEventListener("mousedown",m),e.addEventListener("mouseup",v),e.addEventListener("mouseleave",v),e.addEventListener("keydown",S),e.addEventListener("keyup",_),e.addEventListener("blur",C),e.addEventListener("dragstart",v,{passive:!0})):!r&&n&&A(e)}function A(e){e.removeEventListener("mousedown",m),e.removeEventListener("touchstart",m),e.removeEventListener("touchend",v),e.removeEventListener("touchmove",y),e.removeEventListener("touchcancel",v),e.removeEventListener("mouseup",v),e.removeEventListener("mouseleave",v),e.removeEventListener("keydown",S),e.removeEventListener("keyup",_),e.removeEventListener("dragstart",v),e.removeEventListener("blur",C)}var T={bind:function(e,t,n){O(e,t,!1)},unbind:function(e){delete e._ripple,A(e)},update:function(e,t){t.value!==t.oldValue&&O(e,t,f(t.oldValue))}};t.a=T},function(e,t,n){"use strict";n.d(t,"b",(function(){return F}));n(6),n(49),n(94),n(10),n(11),n(9),n(34),n(8);var r=n(0),o=(n(12),n(7),n(105),n(66),n(39),n(22),n(54),n(129),n(24),n(246),n(5),n(50),n(51),n(33),n(92),n(98),n(1431),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(36),n(60),n(892),n(1433),n(149)),c=n(223),l=(n(122),n(369)),h=n(106),d=n(551),f=n(423),m=n(624),v=n(29),y=n(620),w=n(90),S=n(38),_=n(30),C=n(4),O=n(13);function A(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?A(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):A(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var E=Object(O.a)(S.a,_.a).extend({name:"v-select-list",directives:{ripple:w.a},props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:null,selectedItems:{type:Array,default:function(){return[]}}},computed:{parsedItems:function(){var e=this;return this.selectedItems.map((function(t){return e.getValue(t)}))},tileActiveClass:function(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile:function(){var e={attrs:{role:void 0},on:{mousedown:function(e){return e.preventDefault()}}};return this.$createElement(f.a,e,[this.genTileContent(this.noDataText)])}},methods:{genAction:function(e,t){var n=this;return this.$createElement(m.a,[this.$createElement(l.a,{props:{color:this.color,value:t,ripple:!1},on:{input:function(){return n.$emit("select",e)}}})])},genDivider:function(e){return this.$createElement(h.a,{props:e})},genFilteredText:function(text){if(text=text||"",!this.searchInput||this.noFilter)return text;var e=this.getMaskedCharacters(text),t=e.start,n=e.middle,r=e.end;return[t,this.genHighlight(n),r]},genHeader:function(e){return this.$createElement(d.a,{props:e},e.header)},genHighlight:function(text){return this.$createElement("span",{staticClass:"v-list-item__mask"},text)},getMaskedCharacters:function(text){var e=(this.searchInput||"").toString().toLocaleLowerCase(),t=text.toLocaleLowerCase().indexOf(e);return t<0?{start:text,middle:"",end:""}:{start:text.slice(0,t),middle:text.slice(t,t+e.length),end:text.slice(t+e.length)}},genTile:function(e){var t=this,n=e.item,r=e.index,o=e.disabled,c=void 0===o?null:o,l=e.value,h=void 0!==l&&l;h||(h=this.hasItem(n)),n===Object(n)&&(c=null!==c?c:this.getDisabled(n));var d={attrs:{"aria-selected":String(h),id:"list-item-".concat(this._uid,"-").concat(r),role:"option"},on:{mousedown:function(e){e.preventDefault()},click:function(){return c||t.$emit("select",n)}},props:{activeClass:this.tileActiveClass,disabled:c,ripple:!0,inputValue:h}};if(!this.$scopedSlots.item)return this.$createElement(f.a,d,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(n,h):null,this.genTileContent(n,r)]);var m=this.$scopedSlots.item({parent:this,item:n,attrs:T(T({},d.attrs),d.props),on:d.on});return this.needsTile(m)?this.$createElement(f.a,d,m):m},genTileContent:function(e){return this.$createElement(v.a,[this.$createElement(v.c,[this.genFilteredText(this.getText(e))])])},hasItem:function(e){return this.parsedItems.indexOf(this.getValue(e))>-1},needsTile:function(slot){return 1!==slot.length||null==slot[0].componentOptions||"v-list-item"!==slot[0].componentOptions.Ctor.options.name},getDisabled:function(e){return Boolean(Object(C.s)(e,this.itemDisabled,!1))},getText:function(e){return String(Object(C.s)(e,this.itemText,e))},getValue:function(e){return Object(C.s)(e,this.itemValue,this.getText(e))}},render:function(){for(var e=[],t=this.items.length,n=0;n<t;n++){var r=this.items[n];this.hideSelected&&this.hasItem(r)||(null==r?e.push(this.genTile({item:r,index:n})):r.header?e.push(this.genHeader(r)):r.divider?e.push(this.genDivider(r)):e.push(this.genTile({item:r,index:n})))}return e.length||e.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&e.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&e.push(this.$slots["append-item"]),this.$createElement(y.a,{staticClass:"v-select-list",class:this.themeClasses,attrs:{role:"listbox",tabindex:-1},props:{dense:this.dense}},e)}}),P=n(79),M=n(138),x=n(367),k=n(221),I=n(1).a.extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}}),R=n(274),j=n(75),D=n(26);function N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return L(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 L(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function B(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function U(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?B(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):B(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var F={closeOnClick:!1,closeOnContentClick:!1,disableKeys:!0,openOnClick:!1,maxHeight:304},z=Object(O.a)(M.a,x.a,k.a,I);t.a=z.extend().extend({name:"v-select",directives:{ClickOutside:R.a},props:{appendIcon:{type:String,default:"$dropdown"},attach:{type:null,default:!1},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,disableLookup:Boolean,eager:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"primary"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:function(){return F}},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,smallChips:Boolean},data:function(){return{cachedItems:this.cacheItems?this.items:[],menuIsBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems:function(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes:function(){return U(U({},M.a.options.computed.classes.call(this)),{},{"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive,"v-select--is-multi":this.multiple})},computedItems:function(){return this.allItems},computedOwns:function(){return"list-".concat(this._uid)},computedCounterValue:function(){var e,t=this.multiple?this.selectedItems:(null!==(e=this.getText(this.selectedItems[0]))&&void 0!==e?e:"").toString();return"function"==typeof this.counterValue?this.counterValue(t):t.length},directives:function(){var e=this;return this.isFocused?[{name:"click-outside",value:{handler:this.blur,closeConditional:this.closeConditional,include:function(){return e.getOpenDependentElements()}}}]:void 0},dynamicHeight:function(){return"auto"},hasChips:function(){return this.chips||this.smallChips},hasSlot:function(){return Boolean(this.hasChips||this.$scopedSlots.selection)},isDirty:function(){return this.selectedItems.length>0},listData:function(){var e=this.$vnode&&this.$vnode.context.$options._scopeId;return{attrs:U(U({},e?Object(r.a)({},e,!0):{}),{},{id:this.computedOwns}),props:{action:this.multiple,color:this.itemColor,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,itemDisabled:this.itemDisabled,itemText:this.itemText,itemValue:this.itemValue,noDataText:this.$vuetify.lang.t(this.noDataText),selectedItems:this.selectedItems},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList:function(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Object(D.b)("assert: staticList should not be called if slots are used"),this.$createElement(E,this.listData)},virtualizedItems:function(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:function(){return!0},$_menuProps:function(){var e="string"==typeof this.menuProps?this.menuProps.split(","):this.menuProps;return Array.isArray(e)&&(e=e.reduce((function(e,p){return e[p.trim()]=!0,e}),{})),U(U({},F),{},{eager:this.eager,value:this.menuCanShow&&this.isMenuActive,nudgeBottom:e.offsetY?1:0},e)}},watch:{internalValue:function(e){var t=this;this.initialValue=e,this.setSelectedItems(),this.multiple&&this.$nextTick((function(){var e;null===(e=t.$refs.menu)||void 0===e||e.updateDimensions()})),this.hideSelected&&this.$nextTick((function(){t.onScroll()}))},isMenuActive:function(e){var t=this;window.setTimeout((function(){return t.onMenuActiveChange(e)}))},items:{immediate:!0,handler:function(e){var t=this;this.cacheItems&&this.$nextTick((function(){t.cachedItems=t.filterDuplicates(t.cachedItems.concat(e))})),this.setSelectedItems()}}},methods:{blur:function(e){M.a.options.methods.blur.call(this,e),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1,this.setMenuIndex(-1)},activateMenu:function(){this.isInteractive&&!this.isMenuActive&&(this.isMenuActive=!0)},clearableCallback:function(){var e=this;this.setValue(this.multiple?[]:null),this.setMenuIndex(-1),this.$nextTick((function(){return e.$refs.input&&e.$refs.input.focus()})),this.openOnClear&&(this.isMenuActive=!0)},closeConditional:function(e){return!this.isMenuActive||!this._isDestroyed&&(!this.getContent()||!this.getContent().contains(e.target))&&this.$el&&!this.$el.contains(e.target)&&e.target!==this.$el},filterDuplicates:function(e){for(var t=new Map,n=0;n<e.length;++n){var r=e[n];if(null!=r)if(r.header||r.divider)t.set(r,r);else{var o=this.getValue(r);!t.has(o)&&t.set(o,r)}}return Array.from(t.values())},findExistingIndex:function(e){var t=this,n=this.getValue(e);return(this.internalValue||[]).findIndex((function(i){return t.valueComparator(t.getValue(i),n)}))},getContent:function(){return this.$refs.menu&&this.$refs.menu.$refs.content},genChipSelection:function(e,t){var n=this,r=this.isDisabled||this.getDisabled(e),c=!r&&this.isInteractive;return this.$createElement(o.a,{staticClass:"v-chip--select",attrs:{tabindex:-1},props:{close:this.deletableChips&&c,disabled:r,inputValue:t===this.selectedIndex,small:this.smallChips},on:{click:function(e){c&&(e.stopPropagation(),n.selectedIndex=t)},"click:close":function(){return n.onChipInput(e)}},key:JSON.stringify(this.getValue(e))},this.getText(e))},genCommaSelection:function(e,t,n){var r=t===this.selectedIndex&&this.computedColor,o=this.isDisabled||this.getDisabled(e);return this.$createElement("div",this.setTextColor(r,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":o},key:JSON.stringify(this.getValue(e))}),"".concat(this.getText(e)).concat(n?"":", "))},genDefaultSlot:function(){var e=this.genSelections(),input=this.genInput();return Array.isArray(e)?e.push(input):(e.children=e.children||[],e.children.push(input)),[this.genFieldset(),this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,e,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot(),this.genHiddenInput()]),this.genMenu(),this.genProgress()]},genIcon:function(e,t,n){var r=P.a.options.methods.genIcon.call(this,e,t,n);return"append"===e&&(r.children[0].data=Object(j.a)(r.children[0].data,{attrs:{tabindex:r.children[0].componentOptions.listeners&&"-1","aria-hidden":"true","aria-label":void 0}})),r},genInput:function(){var input=M.a.options.methods.genInput.call(this);return delete input.data.attrs.name,input.data=Object(j.a)(input.data,{domProps:{value:null},attrs:{readonly:!0,type:"text","aria-readonly":String(this.isReadonly),"aria-activedescendant":Object(C.q)(this.$refs.menu,"activeTile.id"),autocomplete:Object(C.q)(input.data,"attrs.autocomplete","off"),placeholder:this.isDirty||!this.persistentPlaceholder&&!this.isFocused&&this.hasLabel?void 0:this.placeholder},on:{keypress:this.onKeyPress}}),input},genHiddenInput:function(){return this.$createElement("input",{domProps:{value:this.lazyValue},attrs:{type:"hidden",name:this.attrs$.name}})},genInputSlot:function(){var e=M.a.options.methods.genInputSlot.call(this);return e.data.attrs=U(U({},e.data.attrs),{},{role:"button","aria-haspopup":"listbox","aria-expanded":String(this.isMenuActive),"aria-owns":this.computedOwns}),e},genList:function(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot:function(){var e=this,t=["prepend-item","no-data","append-item"].filter((function(t){return e.$slots[t]})).map((function(t){return e.$createElement("template",{slot:t},e.$slots[t])}));return this.$createElement(E,U({},this.listData),t)},genMenu:function(){var e=this,t=this.$_menuProps;return t.activator=this.$refs["input-slot"],"attach"in t||(""===this.attach||!0===this.attach||"attach"===this.attach?t.attach=this.$el:t.attach=this.attach),this.$createElement(c.a,{attrs:{role:void 0},props:t,on:{input:function(t){e.isMenuActive=t,e.isFocused=t},scroll:this.onScroll},ref:"menu"},[this.genList()])},genSelections:function(){var e,t=this.selectedItems.length,n=new Array(t);for(e=this.$scopedSlots.selection?this.genSlotSelection:this.hasChips?this.genChipSelection:this.genCommaSelection;t--;)n[t]=e(this.selectedItems[t],t,t===n.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},n)},genSlotSelection:function(e,t){var n=this;return this.$scopedSlots.selection({attrs:{class:"v-chip--select"},parent:this,item:e,index:t,select:function(e){e.stopPropagation(),n.selectedIndex=t},selected:t===this.selectedIndex,disabled:!this.isInteractive})},getMenuIndex:function(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled:function(e){return Object(C.s)(e,this.itemDisabled,!1)},getText:function(e){return Object(C.s)(e,this.itemText,e)},getValue:function(e){return Object(C.s)(e,this.itemValue,this.getText(e))},onBlur:function(e){e&&this.$emit("blur",e)},onChipInput:function(e){this.multiple?this.selectItem(e):this.setValue(null),0===this.selectedItems.length?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick:function(e){this.isInteractive&&(this.isAppendInner(e.target)||(this.isMenuActive=!0),this.isFocused||(this.isFocused=!0,this.$emit("focus")),this.$emit("click",e))},onEscDown:function(e){e.preventDefault(),this.isMenuActive&&(e.stopPropagation(),this.isMenuActive=!1)},onKeyPress:function(e){var t=this;if(!(this.multiple||!this.isInteractive||this.disableLookup||e.key.length>1||e.ctrlKey||e.metaKey||e.altKey)){var n=performance.now();n-this.keyboardLookupLastTime>1e3&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=e.key.toLowerCase(),this.keyboardLookupLastTime=n;var r=this.allItems.findIndex((function(e){var n;return(null!==(n=t.getText(e))&&void 0!==n?n:"").toString().toLowerCase().startsWith(t.keyboardLookupPrefix)})),o=this.allItems[r];-1!==r&&(this.lastItem=Math.max(this.lastItem,r+5),this.setValue(this.returnObject?o:this.getValue(o)),this.$nextTick((function(){return t.$refs.menu.getTiles()})),setTimeout((function(){return t.setMenuIndex(r)})))}},onKeyDown:function(e){var t=this;if(!this.isReadonly||e.keyCode===C.y.tab){var n=e.keyCode,menu=this.$refs.menu;if(this.$emit("keydown",e),menu)return this.isMenuActive&&[C.y.up,C.y.down,C.y.home,C.y.end,C.y.enter].includes(n)&&this.$nextTick((function(){menu.changeListIndex(e),t.$emit("update:list-index",menu.listIndex)})),[C.y.enter,C.y.space].includes(n)&&this.activateMenu(),!this.isMenuActive&&[C.y.up,C.y.down,C.y.home,C.y.end].includes(n)?this.onUpDown(e):n===C.y.esc?this.onEscDown(e):n===C.y.tab?this.onTabDown(e):n===C.y.space?this.onSpaceDown(e):void 0}},onMenuActiveChange:function(e){if(!(this.multiple&&!e||this.getMenuIndex()>-1)){var menu=this.$refs.menu;if(menu&&this.isDirty){this.$refs.menu.getTiles();for(var i=0;i<menu.tiles.length;i++)if("true"===menu.tiles[i].getAttribute("aria-selected")){this.setMenuIndex(i);break}}}},onMouseUp:function(e){var t=this;this.hasMouseDown&&3!==e.which&&this.isInteractive&&this.isAppendInner(e.target)&&this.$nextTick((function(){return t.isMenuActive=!t.isMenuActive})),M.a.options.methods.onMouseUp.call(this,e)},onScroll:function(){var e=this;if(this.isMenuActive){if(this.lastItem>this.computedItems.length)return;this.getContent().scrollHeight-(this.getContent().scrollTop+this.getContent().clientHeight)<200&&(this.lastItem+=20)}else requestAnimationFrame((function(){var content=e.getContent();content&&(content.scrollTop=0)}))},onSpaceDown:function(e){e.preventDefault()},onTabDown:function(e){var menu=this.$refs.menu;if(menu){var t=menu.activeTile;!this.multiple&&t&&this.isMenuActive?(e.preventDefault(),e.stopPropagation(),t.click()):this.blur(e)}},onUpDown:function(e){var t=this,menu=this.$refs.menu;if(menu){if(e.preventDefault(),this.multiple)return this.activateMenu();var n=e.keyCode;menu.isBooted=!0,window.requestAnimationFrame((function(){if(menu.getTiles(),!menu.hasClickableTiles)return t.activateMenu();switch(n){case C.y.up:menu.prevTile();break;case C.y.down:menu.nextTile();break;case C.y.home:menu.firstTile();break;case C.y.end:menu.lastTile()}t.selectItem(t.allItems[t.getMenuIndex()])}))}},selectItem:function(e){var t=this;if(this.multiple){var n=(this.internalValue||[]).slice(),i=this.findExistingIndex(e);if(-1!==i?n.splice(i,1):n.push(e),this.setValue(n.map((function(i){return t.returnObject?i:t.getValue(i)}))),this.hideSelected)this.setMenuIndex(-1);else{var r=this.allItems.indexOf(e);~r&&(this.$nextTick((function(){return t.$refs.menu.getTiles()})),setTimeout((function(){return t.setMenuIndex(r)})))}}else this.setValue(this.returnObject?e:this.getValue(e)),this.isMenuActive=!1},setMenuIndex:function(e){this.$refs.menu&&(this.$refs.menu.listIndex=e)},setSelectedItems:function(){var e,t=this,n=[],r=N(this.multiple&&Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]);try{var o=function(){var r=e.value,o=t.allItems.findIndex((function(e){return t.valueComparator(t.getValue(e),t.getValue(r))}));o>-1&&n.push(t.allItems[o])};for(r.s();!(e=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}this.selectedItems=n},setValue:function(e){this.valueComparator(e,this.internalValue)||(this.internalValue=e,this.$emit("change",e))},isAppendInner:function(e){var t=this.$refs["append-inner"];return t&&(t===e||t.contains(e))}}})},,,,,,function(e,t,n){"use strict";var r,o,c,l,h,d,f,m,v,y,w,S,_;n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return h})),function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"}(r||(r={})),function(e){e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"}(o||(o={})),function(e){e.Record="1",e.UpdateEndpoint="2"}(c||(c={})),function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"}(l||(l={})),function(e){e.FederatedSignIn="30"}(h||(h={})),function(e){e.Subscribe="1",e.GraphQl="2"}(d||(d={})),function(e){e.None="0"}(f||(f={})),function(e){e.None="0"}(m||(m={})),function(e){e.None="0"}(v||(v={})),function(e){e.Convert="1",e.Identify="2",e.Interpret="3"}(y||(y={})),function(e){e.Subscribe="1"}(w||(w={})),function(e){e.None="0"}(S||(S={})),function(e){e.Put="1",e.Get="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6"}(_||(_={}))},,,,,function(e,t,n){"use strict";var r=n(514),o="object"==typeof self&&self&&self.Object===Object&&self,c=r.a||o||Function("return this")();t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));n(6),n(10),n(11),n(9);var r=n(0),o=(n(7),n(43),n(105),n(54),n(129),n(28),n(5),n(8),n(1413),n(367)),c=n(365),l=n(30),h=n(13),d=n(26);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var m=Object(h.a)(o.a,c.a,l.a).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data:function(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-item-group":!0},this.themeClasses)},selectedIndex:function(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem:function(){if(!this.multiple)return this.selectedItems[0]},selectedItems:function(){var e=this;return this.items.filter((function(t,n){return e.toggleMethod(e.getValue(t,n))}))},selectedValues:function(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod:function(){var e=this;if(!this.multiple)return function(t){return e.valueComparator(e.internalValue,t)};var t=this.internalValue;return Array.isArray(t)?function(n){return t.some((function(t){return e.valueComparator(t,n)}))}:function(){return!1}}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created:function(){this.multiple&&!Array.isArray(this.internalValue)&&Object(d.c)("Model must be bound to an array if the multiple property is true.",this)},methods:{genData:function(){return{class:this.classes}},getValue:function(e,i){return void 0===e.value?i:e.value},onClick:function(e){this.updateInternalValue(this.getValue(e,this.items.indexOf(e)))},register:function(e){var t=this,n=this.items.push(e)-1;e.$on("change",(function(){return t.onClick(e)})),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(e,n)},unregister:function(e){if(!this._isDestroyed){var t=this.items.indexOf(e),n=this.getValue(e,t);if(this.items.splice(t,1),!(this.selectedValues.indexOf(n)<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((function(e){return e!==n})):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}}},updateItem:function(e,t){var n=this.getValue(e,t);e.isActive=this.toggleMethod(n)},updateItemsState:function(){var e=this;this.$nextTick((function(){if(e.mandatory&&!e.selectedItems.length)return e.updateMandatory();e.items.forEach(e.updateItem)}))},updateInternalValue:function(e){this.multiple?this.updateMultiple(e):this.updateSingle(e)},updateMandatory:function(e){if(this.items.length){var t=this.items.slice();e&&t.reverse();var n=t.find((function(e){return!e.disabled}));if(n){var r=this.items.indexOf(n);this.updateInternalValue(this.getValue(n,r))}}},updateMultiple:function(e){var t=this,n=(Array.isArray(this.internalValue)?this.internalValue:[]).slice(),r=n.findIndex((function(n){return t.valueComparator(n,e)}));this.mandatory&&r>-1&&n.length-1<1||null!=this.max&&r<0&&n.length+1>this.max||(r>-1?n.splice(r,1):n.push(e),this.internalValue=n)},updateSingle:function(e){var t=this.valueComparator(this.internalValue,e);this.mandatory&&t||(this.internalValue=t?void 0:e)}},render:function(e){return e(this.tag,this.genData(),this.$slots.default)}});m.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}})},,,function(e,t,n){"use strict";var r=n(618);t.a=r.a},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n(0),o=n(1);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input";return o.a.extend({name:"toggleable",model:{prop:e,event:t},props:Object(r.a)({},e,{required:!1}),data:function(){return{isActive:!!this[e]}},watch:Object(r.a)(Object(r.a)({},e,(function(e){this.isActive=!!e})),"isActive",(function(n){!!n!==this[e]&&this.$emit(t,n)}))})}var l=c();t.a=l},,,,,,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.Logger=void 0;const o=r(n(495)),c="mediasoup-client";t.Logger=class{constructor(e){e?(this._debug=(0,o.default)(`${c}:${e}`),this._warn=(0,o.default)(`${c}:WARN:${e}`),this._error=(0,o.default)(`${c}:ERROR:${e}`)):(this._debug=(0,o.default)(c),this._warn=(0,o.default)(`${c}:WARN`),this._error=(0,o.default)(`${c}:ERROR`)),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}get debug(){return this._debug}get warn(){return this._warn}get error(){return this._error}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return w})),n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return _}));n(12);var r=n(75);function o(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=Array()).concat.apply(e,[t].concat(r))}function c(e){return{name:e,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:arguments.length>2?arguments[2]:void 0},origin:{type:String,default:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top center 0"}},render:function(t,n){var c="transition".concat(n.props.group?"-group":""),data={props:{name:e,mode:n.props.mode},on:{beforeEnter:function(e){e.style.transformOrigin=n.props.origin,e.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(data.on.leave=o(data.on.leave,(function(e){var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,o=e.offsetHeight;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=t+"px",e.style.left=n+"px",e.style.width=r+"px",e.style.height=o+"px"})),data.on.afterLeave=o(data.on.afterLeave,(function(e){if(e&&e._transitionInitialStyles){var t=e._transitionInitialStyles,n=t.position,r=t.top,o=t.left,c=t.width,l=t.height;delete e._transitionInitialStyles,e.style.position=n||"",e.style.top=r||"",e.style.left=o||"",e.style.width=c||"",e.style.height=l||""}}))),n.props.hideOnLeave&&(data.on.leave=o(data.on.leave,(function(e){e.style.setProperty("display","none","important")}))),t(c,Object(r.a)(n.data,data),n.children)}}}function l(e,t){return{name:e,functional:!0,props:{mode:{type:String,default:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out"}},render:function(n,o){return n("transition",Object(r.a)(o.data,{props:{name:e},on:t}),o.children)}}}var h=n(0),d=n(4),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"width":"height",n="offset".concat(Object(d.H)(t));return{beforeEnter:function(e){e._parent=e.parentNode,e._initialStyle=Object(h.a)({transition:e.style.transition,overflow:e.style.overflow},t,e.style[t])},enter:function(r){var o=r._initialStyle;r.style.setProperty("transition","none","important"),r.style.overflow="hidden";var c="".concat(r[n],"px");r.style[t]="0",r.offsetHeight,r.style.transition=o.transition,e&&r._parent&&r._parent.classList.add(e),requestAnimationFrame((function(){r.style[t]=c}))},afterEnter:o,enterCancelled:o,leave:function(e){e._initialStyle=Object(h.a)({transition:"",overflow:e.style.overflow},t,e.style[t]),e.style.overflow="hidden",e.style[t]="".concat(e[n],"px"),e.offsetHeight,requestAnimationFrame((function(){return e.style[t]="0"}))},afterLeave:r,leaveCancelled:r};function r(t){e&&t._parent&&t._parent.classList.remove(e),o(t)}function o(e){var n=e._initialStyle[t];e.style.overflow=e._initialStyle.overflow,null!=n&&(e.style[t]=n),delete e._initialStyle}},m=(c("carousel-transition"),c("carousel-reverse-transition"),c("tab-transition"),c("tab-reverse-transition"),c("menu-transition"),c("fab-transition","center center","out-in")),v=(c("dialog-transition"),c("dialog-bottom-transition"),c("dialog-top-transition"),c("fade-transition")),y=c("scale-transition"),w=(c("scroll-x-transition"),c("scroll-x-reverse-transition"),c("scroll-y-transition"),c("scroll-y-reverse-transition"),c("slide-x-transition")),S=(c("slide-x-reverse-transition"),c("slide-y-transition"),c("slide-y-reverse-transition"),l("expand-transition",f())),_=l("expand-x-transition",f("",!0))},function(e,t,n){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},,,function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},,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 o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),o=n("5ca1"),c=n("2aba"),l=n("32e9"),h=n("84f2"),d=n("41a0"),f=n("7f20"),m=n("38fd"),v=n("2b4c")("iterator"),y=!([].keys&&"next"in[].keys()),w="keys",S="values",_=function(){return this};e.exports=function(e,t,n,C,O,A,T){d(n,t,C);var E,P,M,x=function(e){if(!y&&e in j)return j[e];switch(e){case w:case S:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",I=O==S,R=!1,j=e.prototype,D=j[v]||j["@@iterator"]||O&&j[O],N=D||x(O),L=O?I?x("entries"):N:void 0,B="Array"==t&&j.entries||D;if(B&&(M=m(B.call(new e)))!==Object.prototype&&M.next&&(f(M,k,!0),r||"function"==typeof M[v]||l(M,v,_)),I&&D&&D.name!==S&&(R=!0,N=function(){return D.call(this)}),r&&!T||!y&&!R&&j[v]||l(j,v,N),h[t]=N,h[k]=_,O)if(E={values:I?N:x(S),keys:A?N:x(w),entries:L},T)for(P in E)P in j||c(j,P,E[P]);else o(o.P+o.F*(y||R),t,E);return E}},"02f4":function(e,t,n){var r=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var a,b,s=String(o(t)),i=r(n),c=s.length;return i<0||i>=c?e?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===c||(b=s.charCodeAt(i+1))<56320||b>57343?e?s.charAt(i):a:e?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"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"),o=n("e11e");e.exports=Object.keys||function(e){return r(e,o)}},1495:function(e,t,n){var r=n("86cc"),o=n("cb7c"),c=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);for(var n,l=c(t),h=l.length,i=0;h>i;)r.f(e,n=l[i++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),o=n("32e9"),c=n("79e5"),l=n("be13"),h=n("2b4c"),d=n("520a"),f=h("species"),m=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),v=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var y=h(e),w=!c((function(){var t={};return t[y]=function(){return 7},7!=""[e](t)})),S=w?!c((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[f]=function(){return n}),n[y](""),!t})):void 0;if(!w||!S||"replace"===e&&!m||"split"===e&&!v){var _=/./[y],C=n(l,y,""[e],(function(e,t,n,r,o){return t.exec===d?w&&!o?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),O=C[0],A=C[1];r(String.prototype,e,O),o(RegExp.prototype,y,2==t?function(e,t){return A.call(e,this,t)}:function(e){return A.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),o=n("7726").document,c=r(o)&&r(o.createElement);e.exports=function(e){return c?o.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),c="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:c?r(t):"Object"==(l=r(t))&&"function"==typeof t.callee?"Arguments":l}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),o=n("32e9"),c=n("69a8"),l=n("ca5a")("src"),h=n("fa5b"),d="toString",f=(""+h).split(d);n("8378").inspectSource=function(e){return h.call(e)},(e.exports=function(e,t,n,h){var d="function"==typeof n;d&&(c(n,"name")||o(n,"name",t)),e[t]!==n&&(d&&(c(n,l)||o(n,l,e[t]?""+e[t]:f.join(String(t)))),e===r?e[t]=n:h?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,d,(function(){return"function"==typeof this&&this[l]||h.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),o=n("1495"),c=n("e11e"),l=n("613b")("IE_PROTO"),h=function(){},d="prototype",f=function(){var e,iframe=n("230e")("iframe"),i=c.length;for(iframe.style.display="none",n("fab2").appendChild(iframe),iframe.src="javascript:",(e=iframe.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;i--;)delete f[d][c[i]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=r(e),n=new h,h[d]=null,n[l]=e):n=f(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),o=n("ca5a"),c=n("7726").Symbol,l="function"==typeof c;(e.exports=function(e){return r[e]||(r[e]=l&&c[e]||(l?c:o)("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"),o=n("d2c8"),c="includes";r(r.P+r.F*n("5147")(c),"String",{includes:function(e){return!!~o(this,e,c).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(object,e,t){return r.f(object,e,o(1,t))}:function(object,e,t){return object[e]=t,object}},"38fd":function(e,t,n){var r=n("69a8"),o=n("4bf8"),c=n("613b")("IE_PROTO"),l=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),o=n("4630"),c=n("7f20"),l={};n("32e9")(l,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(l,{next:o(1,n)}),c(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(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)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(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}},"520a":function(e,t,n){"use strict";var r,o,c=n("0bfb"),l=RegExp.prototype.exec,h=String.prototype.replace,d=l,f="lastIndex",m=(r=/a/,o=/b*/g,l.call(r,"a"),l.call(o,"a"),0!==r[f]||0!==o[f]),v=void 0!==/()??/.exec("")[1];(m||v)&&(d=function(e){var t,n,r,i,o=this;return v&&(n=new RegExp("^"+o.source+"$(?!\\s)",c.call(o))),m&&(t=o[f]),r=l.call(o,e),m&&r&&(o[f]=o.global?r.index+r[0].length:t),v&&r&&r.length>1&&h.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=d},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),o=n("7726"),c="__core-js_shared__",l=o[c]||(o[c]={});(e.exports=function(e,t){return l[e]||(l[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),o=n("8378"),c=n("32e9"),l=n("2aba"),h=n("9b43"),d="prototype",f=function(e,t,source){var n,m,v,y,w=e&f.F,S=e&f.G,_=e&f.S,C=e&f.P,O=e&f.B,A=S?r:_?r[t]||(r[t]={}):(r[t]||{})[d],T=S?o:o[t]||(o[t]={}),E=T[d]||(T[d]={});for(n in S&&(source=t),source)v=((m=!w&&A&&void 0!==A[n])?A:source)[n],y=O&&m?h(v,r):C&&"function"==typeof v?h(Function.call,v):v,A&&l(A,n,v,e&f.U),T[n]!=v&&c(T,n,y),C&&E[n]!=v&&(E[n]=v)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},"5eda":function(e,t,n){var r=n("5ca1"),o=n("8378"),c=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],l={};l[e]=t(n),r(r.S+r.F*c((function(){n(1)})),"Object",l)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var c=n.call(e,t);if("object"!=typeof c)throw new TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return r[e]||(r[e]=o(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)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),o=n("c366")(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),o=n("be13");e.exports=function(e){return r(o(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,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),o=n("2621"),c=n("52a7"),l=n("4bf8"),h=n("626a"),d=Object.assign;e.exports=!d||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||Object.keys(d({},t)).join("")!=r}))?function(e,source){for(var t=l(e),n=arguments.length,d=1,f=o.f,m=c.f;n>d;)for(var v,y=h(arguments[d++]),w=f?r(y).concat(f(y)):r(y),S=w.length,_=0;S>_;)m.call(y,v=w[_++])&&(t[v]=y[v]);return t}:d},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"),o=Math.max,c=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):c(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,o=n("69a8"),c=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,c)&&r(e,c,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),o=n("c69a"),c=n("6a99"),l=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=c(t,!0),r(n),o)try{return l(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}},"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(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,n){return e.call(t,a,b,n)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),o=Array.prototype;null==o[r]&&n("32e9")(o,r,{}),e.exports=function(e){o[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),o=n("4bf8"),c=n("9def"),l=n("4588"),h=n("0390"),d=n("5f1b"),f=Math.max,m=Math.min,v=Math.floor,y=/\$([$&`']|\d\d?|<[^>]*>)/g,w=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,S){return[function(r,o){var c=e(this),l=null==r?void 0:r[t];return void 0!==l?l.call(r,c,o):n.call(String(c),r,o)},function(e,t){var o=S(n,e,this,t);if(o.done)return o.value;var v=r(e),y=String(this),w="function"==typeof t;w||(t=String(t));var C=v.global;if(C){var O=v.unicode;v.lastIndex=0}for(var A=[];;){var T=d(v,y);if(null===T)break;if(A.push(T),!C)break;""===String(T[0])&&(v.lastIndex=h(y,c(v.lastIndex),O))}for(var E,P="",M=0,i=0;i<A.length;i++){T=A[i];for(var x=String(T[0]),k=f(m(l(T.index),y.length),0),I=[],R=1;R<T.length;R++)I.push(void 0===(E=T[R])?E:String(E));var j=T.groups;if(w){var D=[x].concat(I,k,y);void 0!==j&&D.push(j);var N=String(t.apply(void 0,D))}else N=_(x,y,k,I,j,t);k>=M&&(P+=y.slice(M,k)+N,M=k+x.length)}return P+y.slice(M)}];function _(e,t,r,c,l,h){var d=r+e.length,f=c.length,m=w;return void 0!==l&&(l=o(l),m=y),n.call(h,m,(function(n,o){var h;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(d);case"<":h=l[o.slice(1,-1)];break;default:var m=+o;if(0===m)return n;if(m>f){var y=v(m/10);return 0===y?n:y<=f?void 0===c[y-1]?o.charAt(1):c[y-1]+o.charAt(1):n}h=c[m-1]}return void 0===h?"":h}))}}))},aae3:function(e,t,n){var r=n("d3f4"),o=n("2d95"),c=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),o=n("0d58"),c=n("2aba"),l=n("7726"),h=n("32e9"),d=n("84f2"),f=n("2b4c"),m=f("iterator"),v=f("toStringTag"),y=d.Array,w={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},S=o(w),i=0;i<S.length;i++){var _,C=S[i],O=w[C],A=l[C],T=A&&A.prototype;if(T&&(T[m]||h(T,m,y),T[v]||h(T,v,C),d[C]=y,O))for(_ in r)T[_]||c(T,_,r[_],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),o=n("9def"),c=n("77f1");e.exports=function(e){return function(t,n,l){var h,d=r(t),f=o(d.length),m=c(l,f);if(e&&n!=n){for(;f>m;)if((h=d[m++])!=h)return!0}else for(;f>m;m++)if((e||m in d)&&d[m]===n)return e||m||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return d})),n("a481");var r,o,c="undefined"!=typeof window?window.console:e.console,l=/-(\w)/g,h=(r=function(e){return e.replace(l,(function(e,t){return t?t.toUpperCase():""}))},o=Object.create(null),function(e){return o[e]||(o[e]=r(e))});function d(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function f(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},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 g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},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"),o=n("d53b"),c=n("84f2"),l=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=l(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,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),c.Arguments=c.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}},ce10:function(e,t,n){var r=n("69a8"),o=n("6821"),c=n("c366")(!1),l=n("613b")("IE_PROTO");e.exports=function(object,e){var t,n=o(object),i=0,h=[];for(t in n)t!=l&&r(n,t)&&h.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~c(h,t)||h.push(t));return h}},d2c8:function(e,t,n){var r=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),o=n("9def"),c=n("d2c8"),l="startsWith",h=""[l];r(r.P+r.F*n("5147")(l),"String",{startsWith:function(e){var t=c(this,e,l),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(t){var i,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(t.stack)||[!1])[1];for(i in n)if(n[i].src==e||"interactive"==n[i].readyState)return n[i];return null}}})}(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},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";var r;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function l(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,o=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(t.push(c.value),!i||t.length!==i);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}return t}}(e,i)||c(e,i)||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 h(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(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.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var d=n("a352"),f=n.n(d),m=n("c649");function v(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function y(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),v.call(t,e,n)}}function w(e){return["transition-group","TransitionGroup"].includes(e)}function S(slot,e,t){return slot[t]||(e[t]?e[t]():void 0)}var _=["Start","Add","Remove","Update","End"],C=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"].concat(_,C).map((function(e){return"on"+e})),A=null,T={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=l(e,1)[0].componentOptions;return!!t&&w(t.tag)}(t);var n=function(e,slot,t){var n=0,r=0,header=S(slot,t,"header");header&&(n=header.length,e=e?[].concat(h(header),h(e)):h(header));var footer=S(slot,t,"footer");return footer&&(r=footer.length,e=e?[].concat(h(e),h(footer)):h(footer)),{children:e,headerOffset:n,footerOffset:r}}(t,this.$slots,this.$scopedSlots),r=n.children,o=n.headerOffset,c=n.footerOffset;this.headerOffset=o,this.footerOffset=c;var d=function(e,t){var n=null,r=function(e,t){n=function(object,e,t){return void 0===t||((object=object||{})[e]=t),object}(n,e,t)};if(r("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var o=t.on,c=t.props,l=t.attrs;return r("on",o),r("props",c),Object.assign(n.attrs,l),n}(this.$attrs,this.componentData);return e(this.getTag(),d,r)},created:function(){null!==this.list&&null!==this.value&&m.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};_.forEach((function(n){t["on"+n]=y.call(e,n)})),C.forEach((function(n){t["on"+n]=v.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m.a)(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new f.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m.a)(t);-1===O.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,r){if(!e)return[];var o=e.map((function(e){return e.elm})),c=t.length-r,l=h(t).map((function(e,t){return t>=c?o.length:o.indexOf(e)}));return n?l.filter((function(e){return-1!==e})):l}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,element){return e.map((function(e){return e.elm})).indexOf(element)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&w(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=h(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,h(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,component=this.getUnderlyingPotencialDraggableComponent(t);if(!component)return{component:component};var r=component.realList,o={list:r,component:component};if(t!==n&&r&&component.getUnderlyingVm){var c=component.getUnderlyingVm(n);if(c)return Object.assign(c,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),A=e.item},onDragAdd:function(e){var element=e.item._underlying_vm_;if(void 0!==element){Object(m.d)(e.item);var t=this.getVmIndex(e.newIndex);this.spliceList(t,0,element),this.computeIndexes();var n={element:element,newIndex:t};this.emitChanges({added:n})}},onDragRemove:function(e){if(Object(m.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m.d)(e.clone)},onDragUpdate:function(e){Object(m.d)(e.item),Object(m.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=h(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),o=e.component.getVmIndex(r);return-1===n.indexOf(A)&&t.willInsertAfter?o+1:o},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),o=this.context,c=this.computeFutureIndex(r,e);return Object.assign(o,{futureIndex:c}),n(Object.assign({},e,{relatedContext:r,draggedContext:o}),t)},onDragEnd:function(){this.computeIndexes(),A=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",T);var E=T;t.default=E}}).default},e.exports=r(n(1503))},,function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function c(e,base,t){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==base&&"be"!==base||(t=base,base=10),this._init(e||0,base||10,t||"be"))}var l;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(1322).Buffer}catch(e){}function h(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function d(e,t,n){var r=h(e,n);return n-1>=t&&(r|=h(e,n-1)<<4),r}function f(e,t,n,r){for(var o=0,c=Math.min(e.length,n),i=t;i<c;i++){var l=e.charCodeAt(i)-48;o*=r,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===base?this._parseHex(e,n,t):(this._parseBase(e,base,n),"le"===t&&this._initArray(this.toArray(),base,t)))},c.prototype._initNumber=function(e,base,t){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"===t&&this._initArray(this.toArray(),base,t)},c.prototype._initArray=function(e,base,t){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 n,o,c=0;if("be"===t)for(i=e.length-1,n=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===t)for(i=0,n=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this.strip()},c.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o=0,c=0;if("be"===n)for(i=e.length-1;i>=t;i-=2)r=d(e,t,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)r=d(e,t,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;this.strip()},c.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=e.length-t,c=o%n,l=Math.min(o,o-c)+t,h=0,i=t;i<l;i+=n)h=f(e,i,i+n,base),this.imuln(r),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==c){var d=1;for(h=f(e,i,e.length,base),i=0;i<c;i++)d*=base;this.imuln(d),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this.strip()},c.prototype.copy=function(e){e.words=new Array(this.length);for(var i=0;i<this.length;i++)e.words[i]=this.words[i];e.length=this.length,e.negative=this.negative,e.red=this.red},c.prototype.clone=function(){var e=new c(null);return this.copy(e),e},c.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","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"],v=[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],y=[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 w(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,c=67108863&o,l=o/67108864|0;n.words[0]=c;for(var h=1;h<r;h++){for(var d=l>>>26,f=67108863&l,m=Math.min(h,t.length-1),v=Math.max(0,h-e.length+1);v<=m;v++){var i=h-v|0;d+=(o=(a=0|e.words[i])*(b=0|t.words[v])+f)/67108864|0,f=67108863&o}n.words[h]=0|f,l=0|d}return 0!==l?n.words[h]=0|l:n.length--,n.strip()}c.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var n=0,o=0,i=0;i<this.length;i++){var c=this.words[i],l=(16777215&(c<<n|o)).toString(16);t=0!==(o=c>>>24-n&16777215)||i!==this.length-1?m[6-l.length]+l+t:l+t,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var h=v[base],d=y[base];t="";var f=this.clone();for(f.negative=0;!f.isZero();){var w=f.modn(d).toString(base);t=(f=f.idivn(d)).isZero()?w+t:m[h-w.length]+w+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}r(!1,"Base should be between 2 and 36")},c.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},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==l),this.toArrayLike(l,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),c=n||Math.max(1,o);r(o<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===t,h=new e(c),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),h[i]=b;for(;i<c;i++)h[i]=0}else{for(i=0;i<c-o;i++)h[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),h[c-i-1]=b}return h},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.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},c.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},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(e+=b,26!==b)break}return e},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},c.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return 0!==this.negative},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]|e.words[i];return this.strip()},c.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},c.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=b.length,this.strip()},c.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},c.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},c.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},c.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.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()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},c.prototype.iadd=function(e){var t,a,b;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?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i<b.length;i++)t=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&t,n=t>>>26;for(;0!==n&&i<a.length;i++)t=(0|a.words[i])+n,this.words[i]=67108863&t,n=t>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},c.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)},c.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 a,b,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i<b.length;i++)r=(t=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&t;for(;0!==r&&i<a.length;i++)r=(t=(0|a.words[i])+r)>>26,this.words[i]=67108863&t;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(e){return this.clone().isub(e)};var S=function(e,t,n){var r,o,c,a=e.words,b=t.words,l=n.words,h=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,S=0|a[2],_=8191&S,C=S>>>13,O=0|a[3],A=8191&O,T=O>>>13,E=0|a[4],P=8191&E,M=E>>>13,x=0|a[5],k=8191&x,I=x>>>13,R=0|a[6],j=8191&R,D=R>>>13,N=0|a[7],L=8191&N,B=N>>>13,U=0|a[8],F=8191&U,z=U>>>13,$=0|a[9],H=8191&$,G=$>>>13,V=0|b[0],W=8191&V,K=V>>>13,Y=0|b[1],X=8191&Y,J=Y>>>13,Z=0|b[2],Q=8191&Z,ee=Z>>>13,te=0|b[3],ne=8191&te,re=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],ce=8191&se,ue=se>>>13,le=0|b[6],he=8191&le,de=le>>>13,fe=0|b[7],pe=8191&fe,me=fe>>>13,ge=0|b[8],ve=8191&ge,be=ge>>>13,ye=0|b[9],we=8191&ye,Se=ye>>>13;n.negative=e.negative^t.negative,n.length=19;var _e=(h+(r=Math.imul(f,W))|0)+((8191&(o=(o=Math.imul(f,K))+Math.imul(m,W)|0))<<13)|0;h=((c=Math.imul(m,K))+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(y,W),o=(o=Math.imul(y,K))+Math.imul(w,W)|0,c=Math.imul(w,K);var Ce=(h+(r=r+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,J)|0)+Math.imul(m,X)|0))<<13)|0;h=((c=c+Math.imul(m,J)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(_,W),o=(o=Math.imul(_,K))+Math.imul(C,W)|0,c=Math.imul(C,K),r=r+Math.imul(y,X)|0,o=(o=o+Math.imul(y,J)|0)+Math.imul(w,X)|0,c=c+Math.imul(w,J)|0;var Oe=(h+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(m,Q)|0))<<13)|0;h=((c=c+Math.imul(m,ee)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(A,W),o=(o=Math.imul(A,K))+Math.imul(T,W)|0,c=Math.imul(T,K),r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,J)|0)+Math.imul(C,X)|0,c=c+Math.imul(C,J)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0;var Ae=(h+(r=r+Math.imul(f,ne)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(m,ne)|0))<<13)|0;h=((c=c+Math.imul(m,re)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(P,W),o=(o=Math.imul(P,K))+Math.imul(M,W)|0,c=Math.imul(M,K),r=r+Math.imul(A,X)|0,o=(o=o+Math.imul(A,J)|0)+Math.imul(T,X)|0,c=c+Math.imul(T,J)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(y,ne)|0,o=(o=o+Math.imul(y,re)|0)+Math.imul(w,ne)|0,c=c+Math.imul(w,re)|0;var Te=(h+(r=r+Math.imul(f,oe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(m,oe)|0))<<13)|0;h=((c=c+Math.imul(m,ae)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(k,W),o=(o=Math.imul(k,K))+Math.imul(I,W)|0,c=Math.imul(I,K),r=r+Math.imul(P,X)|0,o=(o=o+Math.imul(P,J)|0)+Math.imul(M,X)|0,c=c+Math.imul(M,J)|0,r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(C,ne)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(w,oe)|0,c=c+Math.imul(w,ae)|0;var Ee=(h+(r=r+Math.imul(f,ce)|0)|0)+((8191&(o=(o=o+Math.imul(f,ue)|0)+Math.imul(m,ce)|0))<<13)|0;h=((c=c+Math.imul(m,ue)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,W),o=(o=Math.imul(j,K))+Math.imul(D,W)|0,c=Math.imul(D,K),r=r+Math.imul(k,X)|0,o=(o=o+Math.imul(k,J)|0)+Math.imul(I,X)|0,c=c+Math.imul(I,J)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,o=(o=o+Math.imul(A,re)|0)+Math.imul(T,ne)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(C,oe)|0,c=c+Math.imul(C,ae)|0,r=r+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ue)|0;var Pe=(h+(r=r+Math.imul(f,he)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(m,he)|0))<<13)|0;h=((c=c+Math.imul(m,de)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,W),o=(o=Math.imul(L,K))+Math.imul(B,W)|0,c=Math.imul(B,K),r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,J)|0)+Math.imul(D,X)|0,c=c+Math.imul(D,J)|0,r=r+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(I,Q)|0,c=c+Math.imul(I,ee)|0,r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(M,ne)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,o=(o=o+Math.imul(A,ae)|0)+Math.imul(T,oe)|0,c=c+Math.imul(T,ae)|0,r=r+Math.imul(_,ce)|0,o=(o=o+Math.imul(_,ue)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ue)|0,r=r+Math.imul(y,he)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(w,he)|0,c=c+Math.imul(w,de)|0;var Me=(h+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((c=c+Math.imul(m,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,W),o=(o=Math.imul(F,K))+Math.imul(z,W)|0,c=Math.imul(z,K),r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,J)|0)+Math.imul(B,X)|0,c=c+Math.imul(B,J)|0,r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(D,Q)|0,c=c+Math.imul(D,ee)|0,r=r+Math.imul(k,ne)|0,o=(o=o+Math.imul(k,re)|0)+Math.imul(I,ne)|0,c=c+Math.imul(I,re)|0,r=r+Math.imul(P,oe)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,c=c+Math.imul(M,ae)|0,r=r+Math.imul(A,ce)|0,o=(o=o+Math.imul(A,ue)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ue)|0,r=r+Math.imul(_,he)|0,o=(o=o+Math.imul(_,de)|0)+Math.imul(C,he)|0,c=c+Math.imul(C,de)|0,r=r+Math.imul(y,pe)|0,o=(o=o+Math.imul(y,me)|0)+Math.imul(w,pe)|0,c=c+Math.imul(w,me)|0;var xe=(h+(r=r+Math.imul(f,ve)|0)|0)+((8191&(o=(o=o+Math.imul(f,be)|0)+Math.imul(m,ve)|0))<<13)|0;h=((c=c+Math.imul(m,be)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(H,W),o=(o=Math.imul(H,K))+Math.imul(G,W)|0,c=Math.imul(G,K),r=r+Math.imul(F,X)|0,o=(o=o+Math.imul(F,J)|0)+Math.imul(z,X)|0,c=c+Math.imul(z,J)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(B,Q)|0,c=c+Math.imul(B,ee)|0,r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(D,ne)|0,c=c+Math.imul(D,re)|0,r=r+Math.imul(k,oe)|0,o=(o=o+Math.imul(k,ae)|0)+Math.imul(I,oe)|0,c=c+Math.imul(I,ae)|0,r=r+Math.imul(P,ce)|0,o=(o=o+Math.imul(P,ue)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ue)|0,r=r+Math.imul(A,he)|0,o=(o=o+Math.imul(A,de)|0)+Math.imul(T,he)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(_,pe)|0,o=(o=o+Math.imul(_,me)|0)+Math.imul(C,pe)|0,c=c+Math.imul(C,me)|0,r=r+Math.imul(y,ve)|0,o=(o=o+Math.imul(y,be)|0)+Math.imul(w,ve)|0,c=c+Math.imul(w,be)|0;var ke=(h+(r=r+Math.imul(f,we)|0)|0)+((8191&(o=(o=o+Math.imul(f,Se)|0)+Math.imul(m,we)|0))<<13)|0;h=((c=c+Math.imul(m,Se)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,X),o=(o=Math.imul(H,J))+Math.imul(G,X)|0,c=Math.imul(G,J),r=r+Math.imul(F,Q)|0,o=(o=o+Math.imul(F,ee)|0)+Math.imul(z,Q)|0,c=c+Math.imul(z,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(B,ne)|0,c=c+Math.imul(B,re)|0,r=r+Math.imul(j,oe)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,c=c+Math.imul(D,ae)|0,r=r+Math.imul(k,ce)|0,o=(o=o+Math.imul(k,ue)|0)+Math.imul(I,ce)|0,c=c+Math.imul(I,ue)|0,r=r+Math.imul(P,he)|0,o=(o=o+Math.imul(P,de)|0)+Math.imul(M,he)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(A,pe)|0,o=(o=o+Math.imul(A,me)|0)+Math.imul(T,pe)|0,c=c+Math.imul(T,me)|0,r=r+Math.imul(_,ve)|0,o=(o=o+Math.imul(_,be)|0)+Math.imul(C,ve)|0,c=c+Math.imul(C,be)|0;var Ie=(h+(r=r+Math.imul(y,we)|0)|0)+((8191&(o=(o=o+Math.imul(y,Se)|0)+Math.imul(w,we)|0))<<13)|0;h=((c=c+Math.imul(w,Se)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(H,Q),o=(o=Math.imul(H,ee))+Math.imul(G,Q)|0,c=Math.imul(G,ee),r=r+Math.imul(F,ne)|0,o=(o=o+Math.imul(F,re)|0)+Math.imul(z,ne)|0,c=c+Math.imul(z,re)|0,r=r+Math.imul(L,oe)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,c=c+Math.imul(B,ae)|0,r=r+Math.imul(j,ce)|0,o=(o=o+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,c=c+Math.imul(D,ue)|0,r=r+Math.imul(k,he)|0,o=(o=o+Math.imul(k,de)|0)+Math.imul(I,he)|0,c=c+Math.imul(I,de)|0,r=r+Math.imul(P,pe)|0,o=(o=o+Math.imul(P,me)|0)+Math.imul(M,pe)|0,c=c+Math.imul(M,me)|0,r=r+Math.imul(A,ve)|0,o=(o=o+Math.imul(A,be)|0)+Math.imul(T,ve)|0,c=c+Math.imul(T,be)|0;var Re=(h+(r=r+Math.imul(_,we)|0)|0)+((8191&(o=(o=o+Math.imul(_,Se)|0)+Math.imul(C,we)|0))<<13)|0;h=((c=c+Math.imul(C,Se)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(H,ne),o=(o=Math.imul(H,re))+Math.imul(G,ne)|0,c=Math.imul(G,re),r=r+Math.imul(F,oe)|0,o=(o=o+Math.imul(F,ae)|0)+Math.imul(z,oe)|0,c=c+Math.imul(z,ae)|0,r=r+Math.imul(L,ce)|0,o=(o=o+Math.imul(L,ue)|0)+Math.imul(B,ce)|0,c=c+Math.imul(B,ue)|0,r=r+Math.imul(j,he)|0,o=(o=o+Math.imul(j,de)|0)+Math.imul(D,he)|0,c=c+Math.imul(D,de)|0,r=r+Math.imul(k,pe)|0,o=(o=o+Math.imul(k,me)|0)+Math.imul(I,pe)|0,c=c+Math.imul(I,me)|0,r=r+Math.imul(P,ve)|0,o=(o=o+Math.imul(P,be)|0)+Math.imul(M,ve)|0,c=c+Math.imul(M,be)|0;var je=(h+(r=r+Math.imul(A,we)|0)|0)+((8191&(o=(o=o+Math.imul(A,Se)|0)+Math.imul(T,we)|0))<<13)|0;h=((c=c+Math.imul(T,Se)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(H,oe),o=(o=Math.imul(H,ae))+Math.imul(G,oe)|0,c=Math.imul(G,ae),r=r+Math.imul(F,ce)|0,o=(o=o+Math.imul(F,ue)|0)+Math.imul(z,ce)|0,c=c+Math.imul(z,ue)|0,r=r+Math.imul(L,he)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(B,he)|0,c=c+Math.imul(B,de)|0,r=r+Math.imul(j,pe)|0,o=(o=o+Math.imul(j,me)|0)+Math.imul(D,pe)|0,c=c+Math.imul(D,me)|0,r=r+Math.imul(k,ve)|0,o=(o=o+Math.imul(k,be)|0)+Math.imul(I,ve)|0,c=c+Math.imul(I,be)|0;var De=(h+(r=r+Math.imul(P,we)|0)|0)+((8191&(o=(o=o+Math.imul(P,Se)|0)+Math.imul(M,we)|0))<<13)|0;h=((c=c+Math.imul(M,Se)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(H,ce),o=(o=Math.imul(H,ue))+Math.imul(G,ce)|0,c=Math.imul(G,ue),r=r+Math.imul(F,he)|0,o=(o=o+Math.imul(F,de)|0)+Math.imul(z,he)|0,c=c+Math.imul(z,de)|0,r=r+Math.imul(L,pe)|0,o=(o=o+Math.imul(L,me)|0)+Math.imul(B,pe)|0,c=c+Math.imul(B,me)|0,r=r+Math.imul(j,ve)|0,o=(o=o+Math.imul(j,be)|0)+Math.imul(D,ve)|0,c=c+Math.imul(D,be)|0;var Ne=(h+(r=r+Math.imul(k,we)|0)|0)+((8191&(o=(o=o+Math.imul(k,Se)|0)+Math.imul(I,we)|0))<<13)|0;h=((c=c+Math.imul(I,Se)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(H,he),o=(o=Math.imul(H,de))+Math.imul(G,he)|0,c=Math.imul(G,de),r=r+Math.imul(F,pe)|0,o=(o=o+Math.imul(F,me)|0)+Math.imul(z,pe)|0,c=c+Math.imul(z,me)|0,r=r+Math.imul(L,ve)|0,o=(o=o+Math.imul(L,be)|0)+Math.imul(B,ve)|0,c=c+Math.imul(B,be)|0;var Le=(h+(r=r+Math.imul(j,we)|0)|0)+((8191&(o=(o=o+Math.imul(j,Se)|0)+Math.imul(D,we)|0))<<13)|0;h=((c=c+Math.imul(D,Se)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(H,pe),o=(o=Math.imul(H,me))+Math.imul(G,pe)|0,c=Math.imul(G,me),r=r+Math.imul(F,ve)|0,o=(o=o+Math.imul(F,be)|0)+Math.imul(z,ve)|0,c=c+Math.imul(z,be)|0;var Be=(h+(r=r+Math.imul(L,we)|0)|0)+((8191&(o=(o=o+Math.imul(L,Se)|0)+Math.imul(B,we)|0))<<13)|0;h=((c=c+Math.imul(B,Se)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(H,ve),o=(o=Math.imul(H,be))+Math.imul(G,ve)|0,c=Math.imul(G,be);var Ue=(h+(r=r+Math.imul(F,we)|0)|0)+((8191&(o=(o=o+Math.imul(F,Se)|0)+Math.imul(z,we)|0))<<13)|0;h=((c=c+Math.imul(z,Se)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Fe=(h+(r=Math.imul(H,we))|0)+((8191&(o=(o=Math.imul(H,Se))+Math.imul(G,we)|0))<<13)|0;return h=((c=Math.imul(G,Se))+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=_e,l[1]=Ce,l[2]=Oe,l[3]=Ae,l[4]=Te,l[5]=Ee,l[6]=Pe,l[7]=Me,l[8]=xe,l[9]=ke,l[10]=Ie,l[11]=Re,l[12]=je,l[13]=De,l[14]=Ne,l[15]=Le,l[16]=Be,l[17]=Ue,l[18]=Fe,0!==h&&(l[19]=h,n.length++),n};function _(e,t,n){return(new C).mulp(e,t,n)}function C(e,t){this.x=e,this.y=t}Math.imul||(S=w),c.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?S(this,e,t):r<63?w(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,c=0;c<n.length-1;c++){var l=o;o=0;for(var h=67108863&r,d=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=d;f++){var i=c-f,m=(0|e.words[i])*(0|t.words[f]),v=67108863&m;h=67108863&(v=v+h|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[c]=h,r=l,l=o}return 0!==r?n.words[c]=r:n.length--,n.strip()}(this,e,t):_(this,e,t),n},C.prototype.makeRBT=function(e){for(var t=new Array(e),n=c.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},C.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},C.prototype.permute=function(e,t,n,r,o,c){for(var i=0;i<c;i++)r[i]=t[e[i]],o[i]=n[e[i]]},C.prototype.transform=function(e,t,n,r,o,c){this.permute(c,e,t,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,h=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=h,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],S=n[p+v+s],_=r[p+v+s],C=f*S-m*_;_=f*_+m*S,S=C,n[p+v]=y+S,r[p+v]=w+_,n[p+v+s]=y-S,r[p+v+s]=w-_,v!==l&&(C=h*f-d*m,m=h*m+d*f,f=C)}},C.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},C.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=e[i];e[i]=e[n-i-1],e[n-i-1]=r,r=t[i],t[i]=-t[n-i-1],t[n-i-1]=-r}},C.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var r=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&r,n=r<67108864?0:r/67108864|0}return e},C.prototype.convert13b=function(e,t,n,o){for(var c=0,i=0;i<t;i++)c+=0|e[i],n[2*i]=8191&c,c>>>=13,n[2*i+1]=8191&c,c>>>=13;for(i=2*t;i<o;++i)n[i]=0;r(0===c),r(0==(-8192&c))},C.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},C.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),c=this.stub(r),l=new Array(r),h=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(e.words,e.length,l,r),this.convert13b(t.words,t.length,f,r),this.transform(l,c,h,d,r,o),this.transform(f,c,m,v,r,o);for(var i=0;i<r;i++){var w=h[i]*m[i]-d[i]*v[i];d[i]=h[i]*v[i]+d[i]*m[i],h[i]=w}return this.conjugate(h,d,r),this.transform(h,d,y,c,r,o),this.conjugate(y,c,r),this.normalize13b(y,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},c.prototype.mul=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},c.prototype.mulf=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),_(this,e,t)},c.prototype.imul=function(e){return this.clone().mulTo(e,this)},c.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,o=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.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,o=n%26;t[n]=(e.words[r]&1<<o)>>>o}return t}(e);if(0===t.length)return new c(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var q=n.sqr();i<t.length;i++,q=q.sqr())0!==t[i]&&(n=n.mul(q));return n},c.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var i,t=e%26,s=(e-t)/26,n=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&n,l=(0|this.words[i])-c<<t;this.words[i]=l|o,o=c>>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},c.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},c.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var c=e%26,s=Math.min((e-c)/26,this.length),mask=67108863^67108863>>>c<<c,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var h=0;for(i=this.length-1;i>=0&&(0!==h||i>=o);i--){var d=0|this.words[i];this.words[i]=h<<26-c|d>>>c,h=d&mask}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<<t;return!(this.length<=s)&&!!(this.words[s]&q)},c.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<<t;this.words[this.length-1]&=mask}return this.strip()},c.prototype.maskn=function(e){return this.clone().imaskn(e)},c.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)},c.prototype._iaddn=function(e){this.words[0]+=e;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},c.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},c.prototype.addn=function(e){return this.clone().iaddn(e)},c.prototype.subn=function(e){return this.clone().isubn(e)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(e,t,n){var i,o,c=e.length+n;this._expand(c);var l=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+l;var h=(0|e.words[i])*t;l=((o-=67108863&h)>>26)-(h/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var n=(this.length,e.length),a=this.clone(),b=e,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var h=o-1;h>=0;h--){var d=67108864*(0|a.words[b.length+h])+(0|a.words[b.length+h-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,h);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,h),a.isZero()||(a.negative^=1);q&&(q.words[h]=d)}return q&&q.strip(),a.strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},c.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(div=l.div.neg()),"div"!==t&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var div,o,l},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.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),o=e.andln(1),c=n.cmp(r);return c<0||1===o&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var p=(1<<26)%e,t=0,i=this.length-1;i>=0;i--)t=(p*t+(0|this.words[i]))%e;return t},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var n=new c(1),o=new c(0),l=new c(0),h=new c(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var d=t.clone(),f=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(t.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(l.isOdd()||h.isOdd())&&(l.iadd(d),h.isub(f)),l.iushrn(1),h.iushrn(1);e.cmp(t)>=0?(e.isub(t),n.isub(l),o.isub(h)):(t.isub(e),l.isub(n),h.isub(o))}return{a:l,b:h,gcd:t.iushln(g)}},c.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new c(1),n=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var h=0,d=1;0==(b.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(b.iushrn(h);h-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(n)):(b.isub(a),n.isub(t))}return(e=0===a.cmpn(1)?t:n).cmpn(0)<0&&e.iadd(p),e},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<<t;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.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 o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},c.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},c.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){a<b?t=-1:a>b&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new x(e)},c.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)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var O={k256:null,p224:null,p192:null,p25519:null};function A(e,p){this.name=e,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function T(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=c._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 k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}A.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.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):void 0!==n.strip?n.strip():n._strip(),n},A.prototype.split=function(input,e){input.iushrn(this.n,0,e)},A.prototype.imulK=function(e){return e.imul(this.k)},o(T,A),T.prototype.split=function(input,output){for(var mask=4194303,e=Math.min(input.length,9),i=0;i<e;i++)output.words[i]=input.words[i];if(output.length=e,input.length<=9)return input.words[0]=0,void(input.length=1);var t=input.words[9];for(output.words[output.length++]=t&mask,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(n&mask)<<4|t>>>22,t=n}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},T.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(E,A),o(P,A),o(M,A),M.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(O[e])return O[e];var t;if("k256"===e)t=new T;else if("p224"===e)t=new E;else if("p192"===e)t=new P;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return O[e]=t,t},x.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},x.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},x.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},x.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},x.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},x.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},x.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},x.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},x.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},x.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},x.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},x.prototype.isqr=function(a){return this.imul(a,a.clone())},x.prototype.sqr=function(a){return this.mul(a,a)},x.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var t=this.m.add(new c(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new c(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new c(2*h*h).toRed(this);0!==this.pow(h,l).cmp(o);)h.redIAdd(o);for(var d=this.pow(h,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new c(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},x.prototype.invm=function(a){var e=a._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(a,e){if(e.isZero())return new c(1).toRed(this);if(0===e.cmpn(1))return a.clone();var t=new Array(16);t[0]=new c(1).toRed(this),t[1]=a;for(var i=2;i<t.length;i++)t[i]=this.mul(t[i-1],a);var n=t[0],r=0,o=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],d=l-1;d>=0;d--){var f=h>>d&1;n!==t[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,t[r]),o=0,r=0)):o=0}l=26}return n},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new k(e)},o(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},k.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},k.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(486)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var r=n(0),o=(n(12),n(1)),c=n(26);function l(e,t){return function(){return Object(c.c)("The ".concat(e," component must be used inside a ").concat(t))}}function h(e,t,n){var c=t&&n?{register:l(t,n),unregister:l(t,n)}:null;return o.a.extend({name:"registrable-inject",inject:Object(r.a)({},e,{default:c})})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.a.extend({name:"registrable-provide",provide:function(){return Object(r.a)({},e,t?this:{register:this.register,unregister:this.unregister})}})}},,function(e,t,n){"use strict";var r=n(102).a.Symbol;t.a=r},,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(12),n(34),n(69),n(98),n(230),n(1)),c=n(90),l=n(4);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=o.a.extend({name:"routable",directives:{Ripple:c.a},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:function(){return{isActive:!1,proxyClass:""}},computed:{classes:function(){var e={};return this.to||(this.activeClass&&(e[this.activeClass]=this.isActive),this.proxyClass&&(e[this.proxyClass]=this.isActive)),e},computedRipple:function(){var e;return null!==(e=this.ripple)&&void 0!==e?e:!this.disabled&&this.isClickable},isClickable:function(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink:function(){return this.to||this.href||this.link},styles:function(){return{}}},watch:{$route:"onRouteChange"},mounted:function(){this.onRouteChange()},methods:{generateRouteLink:function(){var e,t=this.exact,data=Object(r.a)(Object(r.a)({attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}]},this.to?"nativeOn":"on",d(d({},this.$listeners),"click"in this?{click:this.click}:void 0)),"ref","link");if(void 0===this.exact&&(t="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){var n=this.activeClass,o=this.exactActiveClass||n;this.proxyClass&&(n="".concat(n," ").concat(this.proxyClass).trim(),o="".concat(o," ").concat(this.proxyClass).trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(data.props,{to:this.to,exact:t,exactPath:this.exactPath,activeClass:n,exactActiveClass:o,append:this.append,replace:this.replace})}else"a"===(e=(this.href?"a":this.tag)||"div")&&this.href&&(data.attrs.href=this.href);return this.target&&(data.attrs.target=this.target),{tag:e,data:data}},onRouteChange:function(){var e=this;if(this.to&&this.$refs.link&&this.$route){var t="".concat(this.activeClass||""," ").concat(this.proxyClass||"").trim(),n="".concat(this.exactActiveClass||""," ").concat(this.proxyClass||"").trim()||t,path="_vnode.data.class."+(this.exact?n:t);this.$nextTick((function(){!Object(l.q)(e.$refs.link,path)===e.isActive&&e.toggle()}))}},toggle:function(){this.isActive=!this.isActive}}})},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomNumber=t.clone=void 0,t.clone=function(e){return void 0===e?void 0:Number.isNaN(e)?NaN:"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))},t.generateRandomNumber=function(){return Math.round(1e7*Math.random())}},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(8);var r=n(95),o=n(14),c=n(0),l=(n(328),n(39),n(329),n(28),n(1419),n(5),n(50),n(892),n(79)),h=(n(12),n(1423),n(30)),d=n(13);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var v=Object(d.a)(h.a).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render:function(e,t){var n=t.props,r=parseInt(n.max,10),o=parseInt(n.value,10),content=r?"".concat(o," / ").concat(r):String(n.value);return e("div",{staticClass:"v-counter",class:m({"error--text":r&&o>r},Object(h.b)(t))},content)}}),y=n(377),w=n(233),S=n(26),_=n(1);var C=n(312),O=n(512),A=n(175),T=n(90),E=n(379),P=n(4),M=["title"];function x(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function k(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?x(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):x(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var I,R=Object(d.a)(l.a,(I={onVisible:["onResize","tryAutofocus"]},_.a.extend({name:"intersectable",data:function(){return{isIntersecting:!1}},mounted:function(){w.a.inserted(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},destroyed:function(){w.a.unbind(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},methods:{onObserve:function(e,t,n){if(this.isIntersecting=n,n)for(var i=0,r=I.onVisible.length;i<r;i++){var o=this[I.onVisible[i]];"function"!=typeof o?Object(S.c)(I.onVisible[i]+" method is not available on the instance but referenced in intersectable mixin options"):o()}}}})),C.a),j=["color","file","time","date","datetime-local","week","month"];t.a=R.extend().extend({name:"v-text-field",directives:{resize:A.a,ripple:T.a},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,persistentPlaceholder:Boolean,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:function(){return{badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}},computed:{classes:function(){return k(k({},l.a.options.computed.classes.call(this)),{},{"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped})},computedColor:function(){var e=O.a.options.computed.computedColor.call(this);return this.soloInverted&&this.isFocused?this.color||"primary":e},computedCounterValue:function(){return"function"==typeof this.counterValue?this.counterValue(this.internalValue):Object(o.a)((this.internalValue||"").toString()).length},hasCounter:function(){return!1!==this.counter&&null!=this.counter},hasDetails:function(){return l.a.options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get:function(){return this.lazyValue},set:function(e){this.lazyValue=e,this.$emit("input",this.lazyValue)}},isDirty:function(){var e;return(null===(e=this.lazyValue)||void 0===e?void 0:e.toString().length)>0||this.badInput},isEnclosed:function(){return this.filled||this.isSolo||this.outlined},isLabelActive:function(){return this.isDirty||j.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var e=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(e-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:e,right:"auto"}:{left:"auto",right:e}},showLabel:function(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue:function(){return this.isFocused||this.isLabelActive||this.persistentPlaceholder}},watch:{outlined:"setLabelWidth",label:function(){this.$nextTick(this.setLabelWidth)},prefix:function(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value:function(e){this.lazyValue=e}},created:function(){this.$attrs.hasOwnProperty("box")&&Object(S.a)("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(S.a)("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Object(S.c)("shaped should be used with either filled or outlined",this)},mounted:function(){var e=this;this.$watch((function(){return e.labelValue}),this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame((function(){e.isBooted=!0,requestAnimationFrame((function(){e.isIntersecting||e.onResize()}))}))},methods:{focus:function(){this.onFocus()},blur:function(e){var t=this;window.requestAnimationFrame((function(){t.$refs.input&&t.$refs.input.blur()}))},clearableCallback:function(){var e=this;this.$refs.input&&this.$refs.input.focus(),this.$nextTick((function(){return e.internalValue=null}))},genAppendSlot:function(){var slot=[];return this.$slots["append-outer"]?slot.push(this.$slots["append-outer"]):this.appendOuterIcon&&slot.push(this.genIcon("appendOuter")),this.genSlot("append","outer",slot)},genPrependInnerSlot:function(){var slot=[];return this.$slots["prepend-inner"]?slot.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&slot.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",slot)},genIconSlot:function(){var slot=[];return this.$slots.append?slot.push(this.$slots.append):this.appendIcon&&slot.push(this.genIcon("append")),this.genSlot("append","inner",slot)},genInputSlot:function(){var input=l.a.options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(input.children=input.children||[],input.children.unshift(e)),input},genClearIcon:function(){return this.clearable?this.isDirty?this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback)]):this.genSlot("append","inner",[this.$createElement("div")]):null},genCounter:function(){var e,t,n;if(!this.hasCounter)return null;var r=!0===this.counter?this.attrs$.maxlength:this.counter,o={dark:this.dark,light:this.light,max:r,value:this.computedCounterValue};return null!==(n=null===(t=(e=this.$scopedSlots).counter)||void 0===t?void 0:t.call(e,{props:o}))&&void 0!==n?n:this.$createElement(v,{props:o})},genControl:function(){return l.a.options.methods.genControl.call(this)},genDefaultSlot:function(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset:function(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel:function(){if(!this.showLabel)return null;var data={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(y.a,data,this.$slots.label||this.label)},genLegend:function(){var e=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,span=this.$createElement("span",{domProps:{innerHTML:"&#8203;"},staticClass:"notranslate"});return this.$createElement("legend",{style:{width:this.isSingle?void 0:Object(P.i)(e)}},[span])},genInput:function(){var e=Object.assign({},this.listeners$);delete e.change;var t=this.attrs$,n=(t.title,Object(r.a)(t,M));return this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:k(k({},n),{},{autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.persistentPlaceholder||this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.type}),on:Object.assign(e,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages:function(){if(!this.showDetails)return null;var e=l.a.options.methods.genMessages.call(this),t=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[e,t])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(e){return this.$createElement("div",{class:"v-text-field__".concat(e),ref:e},this[e])},onBlur:function(e){var t=this;this.isFocused=!1,e&&this.$nextTick((function(){return t.$emit("blur",e)}))},onClick:function(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus:function(e){if(this.$refs.input){var t=Object(E.a)(this.$el);if(t)return t.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,e&&this.$emit("focus",e)))}},onInput:function(e){var t=e.target;this.internalValue=t.value,this.badInput=t.validity&&t.validity.badInput},onKeyDown:function(e){e.keyCode===P.y.enter&&this.lazyValue!==this.initialValue&&(this.initialValue=this.lazyValue,this.$emit("change",this.initialValue)),this.$emit("keydown",e)},onMouseDown:function(e){e.target!==this.$refs.input&&(e.preventDefault(),e.stopPropagation()),l.a.options.methods.onMouseDown.call(this,e)},onMouseUp:function(e){this.hasMouseDown&&this.focus(),l.a.options.methods.onMouseUp.call(this,e)},setLabelWidth:function(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth:function(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth:function(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus:function(){if(!this.autofocus||"undefined"==typeof document||!this.$refs.input)return!1;var e=Object(E.a)(this.$el);return!(!e||e.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue:function(e){this.hasColor=e,e?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize:function(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(35),o=n(121);function c(e){Object(o.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var r=n(539),o=n(764),c=n(182);t.a=function(object){return Object(c.a)(object)?Object(r.a)(object):Object(o.a)(object)}},,function(e,t,n){"use strict";var r=n(626);t.a=r.a},function(e,t,n){"use strict";var r=n(422);t.a=r.a},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidStateError=t.UnsupportedError=void 0;class r extends Error{constructor(e){super(e),this.name="UnsupportedError",Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,r):this.stack=new Error(e).stack}}t.UnsupportedError=r;class o extends Error{constructor(e){super(e),this.name="InvalidStateError",Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,o):this.stack=new Error(e).stack}}t.InvalidStateError=o},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(52),o=n(53),c=function(){return Object(o.a)((function e(){Object(r.a)(this,e),this.framework={}}),[{key:"init",value:function(e,t){}}])}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n(126);function c(e,t,n){return Object(o.a)(e,t,n).extend({name:"groupable",props:{activeClass:{type:String,default:function(){if(this[e])return this[e].activeClass}},disabled:Boolean},data:function(){return{isActive:!1}},computed:{groupClasses:function(){return this.activeClass?Object(r.a)({},this.activeClass,this.isActive):{}}},created:function(){this[e]&&this[e].register(this)},beforeDestroy:function(){this[e]&&this[e].unregister(this)},methods:{toggle:function(e){this.disabled&&e?e.preventDefault():this.$emit("change")}}})}c("itemGroup")},function(e,t,n){"use strict";var r,o=n(515),c=n(102).a["__core-js_shared__"],l=(r=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";var h=function(e){return!!l&&l in e},d=n(118),f=n(240),m=/^\[object .+?Constructor\]$/,v=Function.prototype,y=Object.prototype,w=v.toString,S=y.hasOwnProperty,_=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var C=function(e){return!(!Object(d.a)(e)||h(e))&&(Object(o.a)(e)?_:m).test(Object(f.a)(e))};var O=function(object,e){return null==object?void 0:object[e]};t.a=function(object,e){var t=O(object,e);return C(t)?t:void 0}},,,function(e,t,n){"use strict";var r=n(232);t.a=r.a},,,,,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.canReceive=t.canSend=t.generateProbatorRtpParameters=t.reduceCodecs=t.getSendingRemoteRtpParameters=t.getSendingRtpParameters=t.getRecvRtpCapabilities=t.getExtendedRtpCapabilities=t.validateSctpStreamParameters=t.validateSctpParameters=t.validateNumSctpStreams=t.validateSctpCapabilities=t.validateRtcpParameters=t.validateRtpEncodingParameters=t.validateRtpHeaderExtensionParameters=t.validateRtpCodecParameters=t.validateRtpParameters=t.validateRtpHeaderExtension=t.validateRtcpFeedback=t.validateRtpCodecCapability=t.validateRtpCapabilities=void 0;const l=c(n(1637)),h=c(n(137));function d(e){const t=new RegExp("^(audio|video)/(.+)","i");if("object"!=typeof e)throw new TypeError("codec is not an object");if(!e.mimeType||"string"!=typeof e.mimeType)throw new TypeError("missing codec.mimeType");const n=t.exec(e.mimeType);if(!n)throw new TypeError("invalid codec.mimeType");if(e.kind=n[1].toLowerCase(),e.preferredPayloadType&&"number"!=typeof e.preferredPayloadType)throw new TypeError("invalid codec.preferredPayloadType");if("number"!=typeof e.clockRate)throw new TypeError("missing codec.clockRate");"audio"===e.kind?"number"!=typeof e.channels&&(e.channels=1):delete e.channels,e.parameters&&"object"==typeof e.parameters||(e.parameters={});for(const t of Object.keys(e.parameters)){let n=e.parameters[t];if(void 0===n&&(e.parameters[t]="",n=""),"string"!=typeof n&&"number"!=typeof n)throw new TypeError(`invalid codec parameter [key:${t}s, value:${n}]`);if("apt"===t&&"number"!=typeof n)throw new TypeError("invalid codec apt parameter")}e.rtcpFeedback&&Array.isArray(e.rtcpFeedback)||(e.rtcpFeedback=[]);for(const t of e.rtcpFeedback)f(t)}function f(e){if("object"!=typeof e)throw new TypeError("fb is not an object");if(!e.type||"string"!=typeof e.type)throw new TypeError("missing fb.type");e.parameter&&"string"==typeof e.parameter||(e.parameter="")}function m(e){if("object"!=typeof e)throw new TypeError("ext is not an object");if("audio"!==e.kind&&"video"!==e.kind)throw new TypeError("invalid ext.kind");if(!e.uri||"string"!=typeof e.uri)throw new TypeError("missing ext.uri");if("number"!=typeof e.preferredId)throw new TypeError("missing ext.preferredId");if(e.preferredEncrypt&&"boolean"!=typeof e.preferredEncrypt)throw new TypeError("invalid ext.preferredEncrypt");if(e.preferredEncrypt||(e.preferredEncrypt=!1),e.direction&&"string"!=typeof e.direction)throw new TypeError("invalid ext.direction");e.direction||(e.direction="sendrecv")}function v(e){if("object"!=typeof e)throw new TypeError("params is not an object");if(e.mid&&"string"!=typeof e.mid)throw new TypeError("params.mid is not a string");if(!Array.isArray(e.codecs))throw new TypeError("missing params.codecs");for(const t of e.codecs)y(t);if(e.headerExtensions&&!Array.isArray(e.headerExtensions))throw new TypeError("params.headerExtensions is not an array");e.headerExtensions||(e.headerExtensions=[]);for(const t of e.headerExtensions)w(t);if(e.encodings&&!Array.isArray(e.encodings))throw new TypeError("params.encodings is not an array");e.encodings||(e.encodings=[]);for(const t of e.encodings)S(t);if(e.rtcp&&"object"!=typeof e.rtcp)throw new TypeError("params.rtcp is not an object");e.rtcp||(e.rtcp={}),_(e.rtcp)}function y(e){const t=new RegExp("^(audio|video)/(.+)","i");if("object"!=typeof e)throw new TypeError("codec is not an object");if(!e.mimeType||"string"!=typeof e.mimeType)throw new TypeError("missing codec.mimeType");const n=t.exec(e.mimeType);if(!n)throw new TypeError("invalid codec.mimeType");if("number"!=typeof e.payloadType)throw new TypeError("missing codec.payloadType");if("number"!=typeof e.clockRate)throw new TypeError("missing codec.clockRate");"audio"===n[1].toLowerCase()?"number"!=typeof e.channels&&(e.channels=1):delete e.channels,e.parameters&&"object"==typeof e.parameters||(e.parameters={});for(const t of Object.keys(e.parameters)){let n=e.parameters[t];if(void 0===n&&(e.parameters[t]="",n=""),"string"!=typeof n&&"number"!=typeof n)throw new TypeError(`invalid codec parameter [key:${t}s, value:${n}]`);if("apt"===t&&"number"!=typeof n)throw new TypeError("invalid codec apt parameter")}e.rtcpFeedback&&Array.isArray(e.rtcpFeedback)||(e.rtcpFeedback=[]);for(const t of e.rtcpFeedback)f(t)}function w(e){if("object"!=typeof e)throw new TypeError("ext is not an object");if(!e.uri||"string"!=typeof e.uri)throw new TypeError("missing ext.uri");if("number"!=typeof e.id)throw new TypeError("missing ext.id");if(e.encrypt&&"boolean"!=typeof e.encrypt)throw new TypeError("invalid ext.encrypt");e.encrypt||(e.encrypt=!1),e.parameters&&"object"==typeof e.parameters||(e.parameters={});for(const t of Object.keys(e.parameters)){let n=e.parameters[t];if(void 0===n&&(e.parameters[t]="",n=""),"string"!=typeof n&&"number"!=typeof n)throw new TypeError("invalid header extension parameter")}}function S(e){if("object"!=typeof e)throw new TypeError("encoding is not an object");if(e.ssrc&&"number"!=typeof e.ssrc)throw new TypeError("invalid encoding.ssrc");if(e.rid&&"string"!=typeof e.rid)throw new TypeError("invalid encoding.rid");if(e.rtx&&"object"!=typeof e.rtx)throw new TypeError("invalid encoding.rtx");if(e.rtx&&"number"!=typeof e.rtx.ssrc)throw new TypeError("missing encoding.rtx.ssrc");if(e.dtx&&"boolean"==typeof e.dtx||(e.dtx=!1),e.scalabilityMode&&"string"!=typeof e.scalabilityMode)throw new TypeError("invalid encoding.scalabilityMode")}function _(e){if("object"!=typeof e)throw new TypeError("rtcp is not an object");if(e.cname&&"string"!=typeof e.cname)throw new TypeError("invalid rtcp.cname");e.reducedSize&&"boolean"==typeof e.reducedSize||(e.reducedSize=!0)}function C(e){if("object"!=typeof e)throw new TypeError("numStreams is not an object");if("number"!=typeof e.OS)throw new TypeError("missing numStreams.OS");if("number"!=typeof e.MIS)throw new TypeError("missing numStreams.MIS")}function O(e){return!!e&&/.+\/rtx$/i.test(e.mimeType)}function A(e,t,{strict:n=!1,modify:r=!1}={}){const o=e.mimeType.toLowerCase();if(o!==t.mimeType.toLowerCase())return!1;if(e.clockRate!==t.clockRate)return!1;if(e.channels!==t.channels)return!1;switch(o){case"video/h264":if(n){if((e.parameters["packetization-mode"]||0)!==(t.parameters["packetization-mode"]||0))return!1;if(!l.isSameProfile(e.parameters,t.parameters))return!1;let n;try{n=l.generateProfileLevelIdForAnswer(e.parameters,t.parameters)}catch(e){return!1}r&&(n?(e.parameters["profile-level-id"]=n,t.parameters["profile-level-id"]=n):(delete e.parameters["profile-level-id"],delete t.parameters["profile-level-id"]))}break;case"video/vp9":if(n){if((e.parameters["profile-id"]||0)!==(t.parameters["profile-id"]||0))return!1}}return!0}function T(e,t){return(!e.kind||!t.kind||e.kind===t.kind)&&e.uri===t.uri}function E(e,t){const n=[];for(const r of e.rtcpFeedback||[]){const e=(t.rtcpFeedback||[]).find((e=>e.type===r.type&&(e.parameter===r.parameter||!e.parameter&&!r.parameter)));e&&n.push(e)}return n}t.validateRtpCapabilities=function(e){if("object"!=typeof e)throw new TypeError("caps is not an object");if(e.codecs&&!Array.isArray(e.codecs))throw new TypeError("caps.codecs is not an array");e.codecs||(e.codecs=[]);for(const t of e.codecs)d(t);if(e.headerExtensions&&!Array.isArray(e.headerExtensions))throw new TypeError("caps.headerExtensions is not an array");e.headerExtensions||(e.headerExtensions=[]);for(const t of e.headerExtensions)m(t)},t.validateRtpCodecCapability=d,t.validateRtcpFeedback=f,t.validateRtpHeaderExtension=m,t.validateRtpParameters=v,t.validateRtpCodecParameters=y,t.validateRtpHeaderExtensionParameters=w,t.validateRtpEncodingParameters=S,t.validateRtcpParameters=_,t.validateSctpCapabilities=function(e){if("object"!=typeof e)throw new TypeError("caps is not an object");if(!e.numStreams||"object"!=typeof e.numStreams)throw new TypeError("missing caps.numStreams");C(e.numStreams)},t.validateNumSctpStreams=C,t.validateSctpParameters=function(e){if("object"!=typeof e)throw new TypeError("params is not an object");if("number"!=typeof e.port)throw new TypeError("missing params.port");if("number"!=typeof e.OS)throw new TypeError("missing params.OS");if("number"!=typeof e.MIS)throw new TypeError("missing params.MIS");if("number"!=typeof e.maxMessageSize)throw new TypeError("missing params.maxMessageSize")},t.validateSctpStreamParameters=function(e){if("object"!=typeof e)throw new TypeError("params is not an object");if("number"!=typeof e.streamId)throw new TypeError("missing params.streamId");let t=!1;if("boolean"==typeof e.ordered?t=!0:e.ordered=!0,e.maxPacketLifeTime&&"number"!=typeof e.maxPacketLifeTime)throw new TypeError("invalid params.maxPacketLifeTime");if(e.maxRetransmits&&"number"!=typeof e.maxRetransmits)throw new TypeError("invalid params.maxRetransmits");if(e.maxPacketLifeTime&&e.maxRetransmits)throw new TypeError("cannot provide both maxPacketLifeTime and maxRetransmits");if(t&&e.ordered&&(e.maxPacketLifeTime||e.maxRetransmits))throw new TypeError("cannot be ordered with maxPacketLifeTime or maxRetransmits");if(t||!e.maxPacketLifeTime&&!e.maxRetransmits||(e.ordered=!1),e.label&&"string"!=typeof e.label)throw new TypeError("invalid params.label");if(e.protocol&&"string"!=typeof e.protocol)throw new TypeError("invalid params.protocol")},t.getExtendedRtpCapabilities=function(e,t){const n={codecs:[],headerExtensions:[]};for(const r of t.codecs||[]){if(O(r))continue;const t=(e.codecs||[]).find((e=>A(e,r,{strict:!0,modify:!0})));if(!t)continue;const o={mimeType:t.mimeType,kind:t.kind,clockRate:t.clockRate,channels:t.channels,localPayloadType:t.preferredPayloadType,localRtxPayloadType:void 0,remotePayloadType:r.preferredPayloadType,remoteRtxPayloadType:void 0,localParameters:t.parameters,remoteParameters:r.parameters,rtcpFeedback:E(t,r)};n.codecs.push(o)}for(const r of n.codecs){const n=e.codecs.find((e=>O(e)&&e.parameters.apt===r.localPayloadType)),o=t.codecs.find((e=>O(e)&&e.parameters.apt===r.remotePayloadType));n&&o&&(r.localRtxPayloadType=n.preferredPayloadType,r.remoteRtxPayloadType=o.preferredPayloadType)}for(const r of t.headerExtensions){const t=e.headerExtensions.find((e=>T(e,r)));if(!t)continue;const o={kind:r.kind,uri:r.uri,sendId:t.preferredId,recvId:r.preferredId,encrypt:t.preferredEncrypt,direction:"sendrecv"};switch(r.direction){case"sendrecv":o.direction="sendrecv";break;case"recvonly":o.direction="sendonly";break;case"sendonly":o.direction="recvonly";break;case"inactive":o.direction="inactive"}n.headerExtensions.push(o)}return n},t.getRecvRtpCapabilities=function(e){const t={codecs:[],headerExtensions:[]};for(const n of e.codecs){const e={mimeType:n.mimeType,kind:n.kind,preferredPayloadType:n.remotePayloadType,clockRate:n.clockRate,channels:n.channels,parameters:n.localParameters,rtcpFeedback:n.rtcpFeedback};if(t.codecs.push(e),!n.remoteRtxPayloadType)continue;const r={mimeType:`${n.kind}/rtx`,kind:n.kind,preferredPayloadType:n.remoteRtxPayloadType,clockRate:n.clockRate,parameters:{apt:n.remotePayloadType},rtcpFeedback:[]};t.codecs.push(r)}for(const n of e.headerExtensions){if("sendrecv"!==n.direction&&"recvonly"!==n.direction)continue;const e={kind:n.kind,uri:n.uri,preferredId:n.recvId,preferredEncrypt:n.encrypt,direction:n.direction};t.headerExtensions.push(e)}return t},t.getSendingRtpParameters=function(e,t){const n={mid:void 0,codecs:[],headerExtensions:[],encodings:[],rtcp:{}};for(const r of t.codecs){if(r.kind!==e)continue;const t={mimeType:r.mimeType,payloadType:r.localPayloadType,clockRate:r.clockRate,channels:r.channels,parameters:r.localParameters,rtcpFeedback:r.rtcpFeedback};if(n.codecs.push(t),r.localRtxPayloadType){const e={mimeType:`${r.kind}/rtx`,payloadType:r.localRtxPayloadType,clockRate:r.clockRate,parameters:{apt:r.localPayloadType},rtcpFeedback:[]};n.codecs.push(e)}}for(const r of t.headerExtensions){if(r.kind&&r.kind!==e||"sendrecv"!==r.direction&&"sendonly"!==r.direction)continue;const t={uri:r.uri,id:r.sendId,encrypt:r.encrypt,parameters:{}};n.headerExtensions.push(t)}return n},t.getSendingRemoteRtpParameters=function(e,t){const n={mid:void 0,codecs:[],headerExtensions:[],encodings:[],rtcp:{}};for(const r of t.codecs){if(r.kind!==e)continue;const t={mimeType:r.mimeType,payloadType:r.localPayloadType,clockRate:r.clockRate,channels:r.channels,parameters:r.remoteParameters,rtcpFeedback:r.rtcpFeedback};if(n.codecs.push(t),r.localRtxPayloadType){const e={mimeType:`${r.kind}/rtx`,payloadType:r.localRtxPayloadType,clockRate:r.clockRate,parameters:{apt:r.localPayloadType},rtcpFeedback:[]};n.codecs.push(e)}}for(const r of t.headerExtensions){if(r.kind&&r.kind!==e||"sendrecv"!==r.direction&&"sendonly"!==r.direction)continue;const t={uri:r.uri,id:r.sendId,encrypt:r.encrypt,parameters:{}};n.headerExtensions.push(t)}if(n.headerExtensions.some((e=>"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"===e.uri)))for(const e of n.codecs)e.rtcpFeedback=(e.rtcpFeedback||[]).filter((e=>"goog-remb"!==e.type));else if(n.headerExtensions.some((e=>"http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"===e.uri)))for(const e of n.codecs)e.rtcpFeedback=(e.rtcpFeedback||[]).filter((e=>"transport-cc"!==e.type));else for(const e of n.codecs)e.rtcpFeedback=(e.rtcpFeedback||[]).filter((e=>"transport-cc"!==e.type&&"goog-remb"!==e.type));return n},t.reduceCodecs=function(e,t){const n=[];if(t){for(let r=0;r<e.length;++r)if(A(e[r],t)){n.push(e[r]),O(e[r+1])&&n.push(e[r+1]);break}if(0===n.length)throw new TypeError("no matching codec found")}else n.push(e[0]),O(e[1])&&n.push(e[1]);return n},t.generateProbatorRtpParameters=function(e){v(e=h.clone(e));const t={mid:"probator",codecs:[],headerExtensions:[],encodings:[{ssrc:1234}],rtcp:{cname:"probator"}};return t.codecs.push(e.codecs[0]),t.codecs[0].payloadType=127,t.headerExtensions=e.headerExtensions,t},t.canSend=function(e,t){return t.codecs.some((t=>t.kind===e))},t.canReceive=function(e,t){if(v(e),0===e.codecs.length)return!1;const n=e.codecs[0];return t.codecs.some((e=>e.remotePayloadType===n.payloadType))}},function(e,t,n){var r=n(1642),o=n(1643);t.write=o,t.parse=r.parse,t.parseParams=r.parseParams,t.parseFmtpConfig=r.parseFmtpConfig,t.parsePayloads=r.parsePayloads,t.parseRemoteCandidates=r.parseRemoteCandidates,t.parseImageAttributes=r.parseImageAttributes,t.parseSimulcastStreamList=r.parseSimulcastStreamList},,function(e,t,n){"use strict";var r=n(198),o=n(146);t.a=function(e){return"symbol"==typeof e||Object(o.a)(e)&&"[object Symbol]"==Object(r.a)(e)}},function(e,t,n){"use strict";var r=n(421);t.a=r.a},,function(e,t,n){"use strict";var r={inserted:function(e,t,n){var r=t.value,o=t.options||{passive:!0};window.addEventListener("resize",r,o),e._onResize=Object(e._onResize),e._onResize[n.context._uid]={callback:r,options:o},t.modifiers&&t.modifiers.quiet||r()},unbind:function(e,t,n){var r;if(null===(r=e._onResize)||void 0===r?void 0:r[n.context._uid]){var o=e._onResize[n.context._uid],c=o.callback,l=o.options;window.removeEventListener("resize",c,l),delete e._onResize[n.context._uid]}}};t.a=r},,,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,o=n(125),c=n(178),l=n(864);r.assert=c,r.toArray=l.toArray,r.zero2=l.zero2,r.toHex=l.toHex,r.encode=l.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<<t+1,c=e.clone(),i=0;i<r.length;i++){var l,h=c.andln(o-1);c.isOdd()?(l=h>(o>>1)-1?(o>>1)-h:h,c.isubn(l)):l=0,r[i]=l,c.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,o=0,c=0;e.cmpn(-o)>0||t.cmpn(-c)>0;){var l,h,d=e.andln(3)+o&3,f=t.andln(3)+c&3;3===d&&(d=-1),3===f&&(f=-1),l=0==(1&d)?0:3!==(r=e.andln(7)+o&7)&&5!==r||2!==f?d:-d,n[0].push(l),h=0==(1&f)?0:3!==(r=t.andln(7)+c&7)&&5!==r||2!==d?f:-f,n[1].push(h),2*o===l+1&&(o=1-o),2*c===h+1&&(c=1-c),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 o(e,"hex","le")}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HandlerInterface=void 0;const r=n(309);class o extends r.EnhancedEventEmitter{constructor(){super()}}t.HandlerInterface=o},function(e,t,n){"use strict";var r=n(515),o=n(371);t.a=function(e){return null!=e&&Object(o.a)(e.length)&&!Object(r.a)(e)}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,c=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!=e};function h(){h.init.call(this)}e.exports=h,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,c),r(n)}function c(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}O(e,t,c,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&O(e,"error",t,n)}(e,o,{once:!0})}))},h.EventEmitter=h,h.prototype._events=void 0,h.prototype._eventsCount=0,h.prototype._maxListeners=void 0;var d=10;function f(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function m(e){return void 0===e._maxListeners?h.defaultMaxListeners:e._maxListeners}function v(e,t,n,r){var o,c,l,h;if(f(n),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),c=e._events),l=c[t]),void 0===l)l=c[t]=n,++e._eventsCount;else if("function"==typeof l?l=c[t]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),(o=m(e))>0&&l.length>o&&!l.warned){l.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=l.length,h=d,console&&console.warn&&console.warn(h)}return e}function y(){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 w(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=y.bind(r);return o.listener=n,r.wrapFn=o,o}function S(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(o):C(o,o.length)}function _(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 C(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function O(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(c){r.once&&e.removeEventListener(t,o),n(c)}))}}Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e||e<0||l(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");d=e}}),h.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},h.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||l(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},h.prototype.getMaxListeners=function(){return m(this)},h.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var h=r[e];if(void 0===h)return!1;if("function"==typeof h)c(h,this,t);else{var d=h.length,f=C(h,d);for(i=0;i<d;++i)c(f[i],this,t)}return!0},h.prototype.addListener=function(e,t){return v(this,e,t,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(e,t){return v(this,e,t,!0)},h.prototype.once=function(e,t){return f(t),this.on(e,w(this,e,t)),this},h.prototype.prependOnceListener=function(e,t){return f(t),this.prependListener(e,w(this,e,t)),this},h.prototype.removeListener=function(e,t){var n,r,o,i,c;if(f(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(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},h.prototype.off=h.prototype.removeListener,h.prototype.removeAllListeners=function(e){var t,n,i;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 r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);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(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},h.prototype.listeners=function(e){return S(this,e,!0)},h.prototype.rawListeners=function(e){return S(this,e,!1)},h.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},h.prototype.listenerCount=_,h.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},,function(e,t,n){"use strict";var r=n(288),o=n(448);var c=function(object,source,e,t){var n=e.length,c=n,l=!t;if(null==object)return!c;for(object=Object(object);n--;){var data=e[n];if(l&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++n<c;){var h=(data=e[n])[0],d=object[h],f=data[1];if(l&&data[2]){if(void 0===d&&!(h in object))return!1}else{var m=new r.a;if(t)var v=t(d,f,h,object,source,m);if(!(void 0===v?Object(o.a)(f,d,3,t,m):v))return!1}}return!0},l=n(118);var h=function(e){return e==e&&!Object(l.a)(e)},d=n(147);var f=function(object){for(var e=Object(d.a)(object),t=e.length;t--;){var n=e[t],r=object[n];e[t]=[n,r,h(r)]}return e};var m=function(e,t){return function(object){return null!=object&&(object[e]===t&&(void 0!==t||e in Object(object)))}};var v=function(source){var e=f(source);return 1==e.length&&e[0][2]?m(e[0][0],e[0][1]):function(object){return object===source||c(object,source,e)}},y=n(540);var w=function(object,e){return null!=object&&e in Object(object)},S=n(528),_=n(359),C=n(89),O=n(372),A=n(371),T=n(279);var E=function(object,path,e){for(var t=-1,n=(path=Object(S.a)(path,object)).length,r=!1;++t<n;){var o=Object(T.a)(path[t]);if(!(r=null!=object&&e(object,o)))break;object=object[o]}return r||++t!=n?r:!!(n=null==object?0:object.length)&&Object(A.a)(n)&&Object(O.a)(o,n)&&(Object(C.a)(object)||Object(_.a)(object))};var P=function(object,path){return null!=object&&E(object,path,w)},M=n(374);var x=function(path,e){return Object(M.a)(path)&&h(e)?m(Object(T.a)(path),e):function(object){var t=Object(y.a)(object,path);return void 0===t&&t===e?P(object,path):Object(o.a)(e,t,3)}},k=n(262);var I=function(e){return function(object){return null==object?void 0:object[e]}},R=n(373);var j=function(path){return function(object){return Object(R.a)(object,path)}};var D=function(path){return Object(M.a)(path)?I(Object(T.a)(path)):j(path)};t.a=function(e){return"function"==typeof e?e:null==e?k.a:"object"==typeof e?Object(C.a)(e)?x(e[0],e[1]):v(e):D(e)}},function(e,t,n){"use strict";var r=n(1);function o(e){return function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||this.$delete(this.$data[e],r);for(var o in t)this.$set(this.$data[e],o,t[o])}}t.a=r.a.extend({data:function(){return{attrs$:{},listeners$:{}}},created:function(){this.$watch("$attrs",o("attrs$"),{immediate:!0}),this.$watch("$listeners",o("listeners$"),{immediate:!0})}})},function(e,t,n){"use strict";function r(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,c=null!=n&&n.width?String(n.width):o;r=e.formattingValues[c]||e.formattingValues[o]}else{var l=e.defaultWidth,h=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[h]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],c=t.match(o);if(!c)return null;var l,h=c[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(d,(function(pattern){return pattern.test(h)})):function(object,e){for(var t in object)if(object.hasOwnProperty(t)&&e(object[t]))return t;return}(d,(function(pattern){return pattern.test(h)}));return l=e.valueCallback?e.valueCallback(f):f,{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(h.length)}}}n.d(t,"a",(function(){return r}))},,,,,,,,function(e,t,n){"use strict";var r=n(160),o=n(102),c=Object(r.a)(o.a,"DataView"),l=n(286),h=Object(r.a)(o.a,"Promise"),d=n(458),f=Object(r.a)(o.a,"WeakMap"),m=n(198),v=n(240),y="[object Map]",w="[object Promise]",S="[object Set]",_="[object WeakMap]",C="[object DataView]",O=Object(v.a)(c),A=Object(v.a)(l.a),T=Object(v.a)(h),E=Object(v.a)(d.a),P=Object(v.a)(f),M=m.a;(c&&M(new c(new ArrayBuffer(1)))!=C||l.a&&M(new l.a)!=y||h&&M(h.resolve())!=w||d.a&&M(new d.a)!=S||f&&M(new f)!=_)&&(M=function(e){var t=Object(m.a)(e),n="[object Object]"==t?e.constructor:void 0,r=n?Object(v.a)(n):"";if(r)switch(r){case O:return C;case A:return y;case T:return w;case E:return S;case P:return _}return t});t.a=M},function(e,t,n){"use strict";n.d(t,"n",(function(){return m})),n.d(t,"k",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"j",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"g",(function(){return _})),n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return O})),n.d(t,"f",(function(){return A})),n.d(t,"i",(function(){return T})),n.d(t,"h",(function(){return E})),n.d(t,"e",(function(){return M})),n.d(t,"c",(function(){return x})),n.d(t,"o",(function(){return k})),n.d(t,"l",(function(){return R}));var r=n(0),o=n(21),c=(n(6),n(12),n(7),n(122),n(22),n(54),n(24),n(10),n(11),n(9),n(5),n(293),n(34),n(50),n(206),n(460),n(69),n(92),n(98),n(8),n(26)),l=n(4),h=n(290);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function m(e){return!!e&&!!e.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function v(e){var t;if("number"==typeof e)t=e;else{if("string"!=typeof e)throw new TypeError("Colors can only be numbers or strings, recieved ".concat(null==e?e:e.constructor.name," instead"));var n="#"===e[0]?e.substring(1):e;3===n.length&&(n=n.split("").map((function(e){return e+e})).join("")),6!==n.length&&Object(c.c)("'".concat(e,"' is not a valid rgb color")),t=parseInt(n,16)}return t<0?(Object(c.c)("Colors cannot be negative: '".concat(e,"'")),t=0):(t>16777215||isNaN(t))&&(Object(c.c)("'".concat(e,"' is not a valid rgb color")),t=16777215),t}function y(e){var t=e.toString(16);return t.length<6&&(t="0".repeat(6-t.length)+t),"#"+t}function w(e){return y(v(e))}function S(e){var t=e.h,s=e.s,n=e.v,a=e.a,r=function(e){var r=(e+t/60)%6;return n-n*s*Math.max(Math.min(r,4-r,1),0)},o=[r(5),r(3),r(1)].map((function(e){return Math.round(255*e)}));return{r:o[0],g:o[1],b:o[2],a:a}}function _(e){if(!e)return{h:0,s:1,v:1,a:1};var t=e.r/255,g=e.g/255,b=e.b/255,n=Math.max(t,g,b),r=Math.min(t,g,b),o=0;n!==r&&(n===t?o=60*(0+(g-b)/(n-r)):n===g?o=60*(2+(b-t)/(n-r)):n===b&&(o=60*(4+(t-g)/(n-r)))),o<0&&(o+=360);var c=[o,0===n?0:(n-r)/n,n];return{h:c[0],s:c[1],v:c[2],a:e.a}}function C(e){var t=e.h,s=e.s,n=e.v,a=e.a,r=n-n*s/2;return{h:t,s:1===r||0===r?0:(n-r)/Math.min(r,1-r),l:r,a:a}}function O(e){var t=e.h,s=e.s,n=e.l,a=e.a,r=n+s*Math.min(n,1-n);return{h:t,s:0===r?0:2-2*n/r,v:r,a:a}}function A(e){return"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(e.a,")")}function T(e){return A(f(f({},e),{},{a:1}))}function E(e){var t=function(e){var t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()};return"#".concat([t(e.r),t(e.g),t(e.b),t(Math.round(255*e.a))].join(""))}function P(e){var t=Object(l.f)(e.slice(1),2).map((function(e){return parseInt(e,16)}));return{r:t[0],g:t[1],b:t[2],a:Math.round(t[3]/255*100)/100}}function M(e){return _(P(e))}function x(e){return E(S(e))}function k(e){return e.startsWith("#")&&(e=e.slice(1)),3!==(e=e.replace(/([^0-9a-f])/gi,"F")).length&&4!==e.length||(e=e.split("").map((function(e){return e+e})).join("")),e=6===e.length?Object(l.B)(e,8,"F"):Object(l.B)(Object(l.B)(e,6),8,"F"),"#".concat(e).toUpperCase().substr(0,9)}function I(e){return(e.r<<16)+(e.g<<8)+e.b}function R(e,t){var n=Object(h.b)(I(e)),r=Object(o.a)(n,2)[1],c=Object(h.b)(I(t)),l=Object(o.a)(c,2)[1];return(Math.max(r,l)+.05)/(Math.min(r,l)+.05)}},function(e,t,n){"use strict";var r=n(128),o=Object.prototype,c=o.hasOwnProperty,l=o.toString,h=r.a?r.a.toStringTag:void 0;var d=function(e){var t=c.call(e,h),n=e[h];try{e[h]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[h]=n:delete e[h]),o},f=Object.prototype.toString;var m=function(e){return f.call(e)},v=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?d(e):m(e)}},function(e,t,n){"use strict";var r=n(1628),o=n(1629);function c(){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=T,t.resolve=function(source,e){return T(source,!1,!0).resolve(e)},t.resolveObject=function(source,e){return source?T(source,!1,!0).resolveObject(e):e},t.format=function(e){o.isString(e)&&(e=T(e));return e instanceof c?e.format():c.prototype.format.call(e)},t.Url=c;var l=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),m=["'"].concat(f),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],w=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=n(1630);function T(e,t,n){if(e&&o.isObject(e)&&e instanceof c)return e;var u=new c;return u.parse(e,t,n),u}c.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),h=-1!==c&&c<e.indexOf("#")?"?":"#",f=e.split(h);f[0]=f[0].replace(/\\/g,"/");var T=e=f.join(h);if(T=T.trim(),!n&&1===e.split("#").length){var E=d.exec(T);if(E)return this.path=T,this.href=T,this.pathname=E[1],E[2]?(this.search=E[2],this.query=t?A.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var P=l.exec(T);if(P){var M=(P=P[0]).toLowerCase();this.protocol=M,T=T.substr(P.length)}if(n||P||T.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===T.substr(0,2);!x||P&&C[P]||(T=T.substr(2),this.slashes=!0)}if(!C[P]&&(x||P&&!O[P])){for(var k,I,R=-1,i=0;i<y.length;i++){-1!==(j=T.indexOf(y[i]))&&(-1===R||j<R)&&(R=j)}-1!==(I=-1===R?T.lastIndexOf("@"):T.lastIndexOf("@",R))&&(k=T.slice(0,I),T=T.slice(I+1),this.auth=decodeURIComponent(k)),R=-1;for(i=0;i<v.length;i++){var j;-1!==(j=T.indexOf(v[i]))&&(-1===R||j<R)&&(R=j)}-1===R&&(R=T.length),this.host=T.slice(0,R),T=T.slice(R),this.parseHost(),this.hostname=this.hostname||"";var D="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!D)for(var N=this.hostname.split(/\./),L=(i=0,N.length);i<L;i++){var B=N[i];if(B&&!B.match(w)){for(var U="",F=0,z=B.length;F<z;F++)B.charCodeAt(F)>127?U+="x":U+=B[F];if(!U.match(w)){var $=N.slice(0,i),H=N.slice(i+1),G=B.match(S);G&&($.push(G[1]),H.unshift(G[2])),H.length&&(T="/"+H.join(".")+T),this.hostname=$.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),D||(this.hostname=r.toASCII(this.hostname));var p=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+p,this.href+=this.host,D&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!_[M])for(i=0,L=m.length;i<L;i++){var W=m[i];if(-1!==T.indexOf(W)){var K=encodeURIComponent(W);K===W&&(K=escape(W)),T=T.split(W).join(K)}}var Y=T.indexOf("#");-1!==Y&&(this.hash=T.substr(Y),T=T.slice(0,Y));var X=T.indexOf("?");if(-1!==X?(this.search=T.substr(X),this.query=T.substr(X+1),t&&(this.query=A.parse(this.query)),T=T.slice(0,X)):t&&(this.search="",this.query={}),T&&(this.pathname=T),O[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){p=this.pathname||"";var s=this.search||"";this.path=p+s}return this.href=this.format(),this},c.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||"",c=!1,l="";this.host?c=e+this.host:this.hostname&&(c=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(c+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(l=A.stringify(this.query));var h=this.search||l&&"?"+l||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||O[t])&&!1!==c?(c="//"+(c||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):c||(c=""),r&&"#"!==r.charAt(0)&&(r="#"+r),h&&"?"!==h.charAt(0)&&(h="?"+h),t+c+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(h=h.replace("#","%23"))+r},c.prototype.resolve=function(e){return this.resolveObject(T(e,!1,!0)).format()},c.prototype.resolveObject=function(e){if(o.isString(e)){var t=new c;t.parse(e,!1,!0),e=t}for(var n=new c,r=Object.keys(this),l=0;l<r.length;l++){var h=r[l];n[h]=this[h]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var d=Object.keys(e),f=0;f<d.length;f++){var m=d[f];"protocol"!==m&&(n[m]=e[m])}return O[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!O[e.protocol]){for(var v=Object.keys(e),y=0;y<v.length;y++){var w=v[y];n[w]=e[w]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||C[e.protocol])n.pathname=e.pathname;else{for(var S=(e.pathname||"").split("/");S.length&&!(e.host=S.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==S[0]&&S.unshift(""),S.length<2&&S.unshift(""),n.pathname=S.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 p=n.pathname||"",s=n.search||"";n.path=p+s}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var _=n.pathname&&"/"===n.pathname.charAt(0),A=e.host||e.pathname&&"/"===e.pathname.charAt(0),T=A||_||n.host&&e.pathname,E=T,P=n.pathname&&n.pathname.split("/")||[],M=(S=e.pathname&&e.pathname.split("/")||[],n.protocol&&!O[n.protocol]);if(M&&(n.hostname="",n.port=null,n.host&&(""===P[0]?P[0]=n.host:P.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===S[0]?S[0]=e.host:S.unshift(e.host)),e.host=null),T=T&&(""===S[0]||""===P[0])),A)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,P=S;else if(S.length)P||(P=[]),P.pop(),P=P.concat(S),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(M)n.hostname=n.host=P.shift(),(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!P.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=P.slice(-1)[0],k=(n.host||e.host||P.length>1)&&("."===x||".."===x)||""===x,I=0,i=P.length;i>=0;i--)"."===(x=P[i])?P.splice(i,1):".."===x?(P.splice(i,1),I++):I&&(P.splice(i,1),I--);if(!T&&!E)for(;I--;I)P.unshift("..");!T||""===P[0]||P[0]&&"/"===P[0].charAt(0)||P.unshift(""),k&&"/"!==P.join("/").substr(-1)&&P.push("");var R,j=""===P[0]||P[0]&&"/"===P[0].charAt(0);M&&(n.hostname=n.host=j?"":P.length?P.shift():"",(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift()));return(T=T||n.host&&P.length)&&!j&&P.unshift(""),P.length?n.pathname=P.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.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},c.prototype.parseHost=function(){var e=this.host,t=h.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){"use strict";n.d(t,"a",(function(){return tt}));var r=function(e,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},r(e,b)};function o(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}var c,l,h,d=function(){return d=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},d.apply(this,arguments)};function f(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))}function m(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function y(e){return e&&!!["provider"].find((function(t){return e.hasOwnProperty(t)}))}function w(e){return void 0!==e.redirectSignIn}!function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(c||(c={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError"}(l||(l={})),function(e){e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.OPENID_CONNECT="OPENID_CONNECT",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.AWS_LAMBDA="AWS_LAMBDA"}(h||(h={}));var S=n(390),_=n(638),C=n(1729),O=n(669),A=n(1025),T=n(384);function E(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var P=function(){return P=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},P.apply(this,arguments)},M=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(e,t){return"string"==typeof e?T.parse(e,t):"object"==typeof e&&null!==e?e:{}}(e,t),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=T.parse(document.cookie,e))},e.prototype._emitChange=function(e){for(var i=0;i<this.changeListeners.length;++i)this.changeListeners[i](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),E(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=E(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var r;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=P(P({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=T.serialize(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=P(P({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=P({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=T.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),x=n(222),k=function(){return k=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},k.apply(this,arguments)},I=Object(x.a)().isBrowser,R=function(){function e(e){void 0===e&&(e={}),this.cookies=new M,this.store=I?window.localStorage:Object.create(null),this.cookies=e.req?new M(e.req.headers.cookie):new M,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!1,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(t,i){return e.key(i)})).forEach((function(t){return e.removeItem(t)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){this.setLocalItem(e,t);var n=e.split(".").pop();["LastAuthUser","accessToken","refreshToken","idToken"].includes(null!=n?n:"")&&this.setUniversalItem(e,t,{expires:new Date(Date.now()+31536e6)})},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t,n){void 0===n&&(n={}),this.cookies.set(e,t,k(k({},n),{path:"/",sameSite:!0,secure:!I||"localhost"!==window.location.hostname}))},e}(),j=n(1024);var D=n(639),N=function(){function e(data){var e=data||{},t=e.ValidationData,n=e.Username,r=e.Password,o=e.AuthParameters,c=e.ClientMetadata;this.validationData=t||{},this.authParameters=o||{},this.clientMetadata=c||{},this.username=n,this.password=r}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),L=n(46),B=n(1023);var U,F=function(){function e(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],i=0;i<t;i+=4)n.push(Object(B.a)());return new e(n,t)},t.toString=function(){return function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),z=n(237),$=H;function H(a,b){null!=a&&this.fromString(a,b)}function G(){return new H(null)}var V="undefined"!=typeof navigator;V&&"Microsoft Internet Explorer"==navigator.appName?(H.prototype.am=function(i,e,t,n,r,o){for(var c=32767&e,l=e>>15;--o>=0;){var h=32767&this[i],d=this[i++]>>15,f=l*h+d*c;r=((h=c*h+((32767&f)<<15)+t[n]+(1073741823&r))>>>30)+(f>>>15)+l*d+(r>>>30),t[n++]=1073741823&h}return r},U=30):V&&"Netscape"!=navigator.appName?(H.prototype.am=function(i,e,t,n,r,o){for(;--o>=0;){var c=e*this[i++]+t[n]+r;r=Math.floor(c/67108864),t[n++]=67108863&c}return r},U=26):(H.prototype.am=function(i,e,t,n,r,o){for(var c=16383&e,l=e>>14;--o>=0;){var h=16383&this[i],d=this[i++]>>14,f=l*h+d*c;r=((h=c*h+((16383&f)<<14)+t[n]+r)>>28)+(f>>14)+l*d,t[n++]=268435455&h}return r},U=28),H.prototype.DB=U,H.prototype.DM=(1<<U)-1,H.prototype.DV=1<<U;H.prototype.FV=Math.pow(2,52),H.prototype.F1=52-U,H.prototype.F2=2*U-52;var W,K,Y="0123456789abcdefghijklmnopqrstuvwxyz",X=new Array;for(W="0".charCodeAt(0),K=0;K<=9;++K)X[W++]=K;for(W="a".charCodeAt(0),K=10;K<36;++K)X[W++]=K;for(W="A".charCodeAt(0),K=10;K<36;++K)X[W++]=K;function J(e){return Y.charAt(e)}function Z(s,i){var e=X[s.charCodeAt(i)];return null==e?-1:e}function Q(i){var e=G();return e.fromInt(i),e}function ee(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function te(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function ne(e){return L.Buffer.from((new F).random(e).toString(),"hex")}te.prototype.convert=function(e){var t=G();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(H.ZERO)>0&&this.m.subTo(t,t),t},te.prototype.revert=function(e){var t=G();return e.copyTo(t),this.reduce(t),t},te.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var i=0;i<this.m.t;++i){var t=32767&e[i],n=t*this.mpl+((t*this.mph+(e[i]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[t=i+this.m.t]+=this.m.am(0,n,e,i,0,this.m.t);e[t]>=e.DV;)e[t]-=e.DV,e[++t]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},te.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},te.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},H.prototype.copyTo=function(e){for(var i=this.t-1;i>=0;--i)e[i]=this[i];e.t=this.t,e.s=this.s},H.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},H.prototype.fromString=function(s,b){var e;if(16==b)e=4;else if(8==b)e=3;else if(2==b)e=1;else if(32==b)e=5;else{if(4!=b)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");e=2}this.t=0,this.s=0;for(var i=s.length,t=!1,n=0;--i>=0;){var r=Z(s,i);r<0?"-"==s.charAt(i)&&(t=!0):(t=!1,0==n?this[this.t++]=r:n+e>this.DB?(this[this.t-1]|=(r&(1<<this.DB-n)-1)<<n,this[this.t++]=r>>this.DB-n):this[this.t-1]|=r<<n,(n+=e)>=this.DB&&(n-=this.DB))}this.clamp(),t&&H.ZERO.subTo(this,this)},H.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},H.prototype.dlShiftTo=function(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e,t.s=this.s},H.prototype.drShiftTo=function(e,t){for(var i=e;i<this.t;++i)t[i-e]=this[i];t.t=Math.max(this.t-e,0),t.s=this.s},H.prototype.lShiftTo=function(e,t){var i,n=e%this.DB,r=this.DB-n,o=(1<<r)-1,c=Math.floor(e/this.DB),l=this.s<<n&this.DM;for(i=this.t-1;i>=0;--i)t[i+c+1]=this[i]>>r|l,l=(this[i]&o)<<n;for(i=c-1;i>=0;--i)t[i]=0;t[c]=l,t.t=this.t+c+1,t.s=this.s,t.clamp()},H.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,c=(1<<r)-1;t[0]=this[n]>>r;for(var i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&c)<<o,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&c)<<o),t.t=this.t-n,t.clamp()}},H.prototype.subTo=function(a,e){for(var i=0,t=0,n=Math.min(a.t,this.t);i<n;)t+=this[i]-a[i],e[i++]=t&this.DM,t>>=this.DB;if(a.t<this.t){for(t-=a.s;i<this.t;)t+=this[i],e[i++]=t&this.DM,t>>=this.DB;t+=this.s}else{for(t+=this.s;i<a.t;)t-=a[i],e[i++]=t&this.DM,t>>=this.DB;t-=a.s}e.s=t<0?-1:0,t<-1?e[i++]=this.DV+t:t>0&&(e[i++]=t),e.t=i,e.clamp()},H.prototype.multiplyTo=function(a,e){var t=this.abs(),n=a.abs(),i=t.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i<n.t;++i)e[i+t.t]=t.am(0,n[i],e,i,0,t.t);e.s=0,e.clamp(),this.s!=a.s&&H.ZERO.subTo(e,e)},H.prototype.squareTo=function(e){for(var t=this.abs(),i=e.t=2*t.t;--i>=0;)e[i]=0;for(i=0;i<t.t-1;++i){var n=t.am(i,t[i],e,2*i,0,1);(e[i+t.t]+=t.am(i+1,2*t[i],e,2*i+1,n,t.t-i-1))>=t.DV&&(e[i+t.t]-=t.DV,e[i+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(i,t[i],e,2*i,0,1)),e.s=0,e.clamp()},H.prototype.divRemTo=function(e,q,t){var n=e.abs();if(!(n.t<=0)){var r=this.abs();if(r.t<n.t)return null!=q&&q.fromInt(0),void(null!=t&&this.copyTo(t));null==t&&(t=G());var o=G(),c=this.s,l=e.s,h=this.DB-ee(n[n.t-1]);h>0?(n.lShiftTo(h,o),r.lShiftTo(h,t)):(n.copyTo(o),r.copyTo(t));var d=o.t,f=o[d-1];if(0!=f){var m=f*(1<<this.F1)+(d>1?o[d-2]>>this.F2:0),v=this.FV/m,y=(1<<this.F1)/m,w=1<<this.F2,i=t.t,S=i-d,_=null==q?G():q;for(o.dlShiftTo(S,_),t.compareTo(_)>=0&&(t[t.t++]=1,t.subTo(_,t)),H.ONE.dlShiftTo(d,_),_.subTo(o,o);o.t<d;)o[o.t++]=0;for(;--S>=0;){var C=t[--i]==f?this.DM:Math.floor(t[i]*v+(t[i-1]+w)*y);if((t[i]+=o.am(0,C,t,S,0,d))<C)for(o.dlShiftTo(S,_),t.subTo(_,t);t[i]<--C;)t.subTo(_,t)}null!=q&&(t.drShiftTo(d,q),c!=l&&H.ZERO.subTo(q,q)),t.t=d,t.clamp(),h>0&&t.rShiftTo(h,t),c<0&&H.ZERO.subTo(t,t)}}},H.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},H.prototype.addTo=function(a,e){for(var i=0,t=0,n=Math.min(a.t,this.t);i<n;)t+=this[i]+a[i],e[i++]=t&this.DM,t>>=this.DB;if(a.t<this.t){for(t+=a.s;i<this.t;)t+=this[i],e[i++]=t&this.DM,t>>=this.DB;t+=this.s}else{for(t+=this.s;i<a.t;)t+=a[i],e[i++]=t&this.DM,t>>=this.DB;t+=a.s}e.s=t<0?-1:0,t>0?e[i++]=t:t<-1&&(e[i++]=this.DV+t),e.t=i,e.clamp()},H.prototype.toString=function(b){if(this.s<0)return"-"+this.negate().toString(b);var e;if(16==b)e=4;else if(8==b)e=3;else if(2==b)e=1;else if(32==b)e=5;else{if(4!=b)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");e=2}var t,n=(1<<e)-1,r=!1,o="",i=this.t,p=this.DB-i*this.DB%e;if(i-- >0)for(p<this.DB&&(t=this[i]>>p)>0&&(r=!0,o=J(t));i>=0;)p<e?(t=(this[i]&(1<<p)-1)<<e-p,t|=this[--i]>>(p+=this.DB-e)):(t=this[i]>>(p-=e)&n,p<=0&&(p+=this.DB,--i)),t>0&&(r=!0),r&&(o+=J(t));return r?o:"0"},H.prototype.negate=function(){var e=G();return H.ZERO.subTo(this,e),e},H.prototype.abs=function(){return this.s<0?this.negate():this},H.prototype.compareTo=function(a){var e=this.s-a.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-a.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-a[i]))return e;return 0},H.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ee(this[this.t-1]^this.s&this.DM)},H.prototype.mod=function(a){var e=G();return this.abs().divRemTo(a,null,e),this.s<0&&e.compareTo(H.ZERO)>0&&a.subTo(e,e),e},H.prototype.equals=function(a){return 0==this.compareTo(a)},H.prototype.add=function(a){var e=G();return this.addTo(a,e),e},H.prototype.subtract=function(a){var e=G();return this.subTo(a,e),e},H.prototype.multiply=function(a){var e=G();return this.multiplyTo(a,e),e},H.prototype.divide=function(a){var e=G();return this.divRemTo(a,e,null),e},H.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=Q(1),c=new te(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var g=new Array,l=3,h=r-1,d=(1<<r)-1;if(g[1]=c.convert(this),r>1){var f=G();for(c.sqrTo(g[1],f);l<=d;)g[l]=G(),c.mulTo(f,g[l-2],g[l]),l+=2}var m,v,y=e.t-1,w=!0,S=G();for(i=ee(e[y])-1;y>=0;){for(i>=h?m=e[y]>>i-h&d:(m=(e[y]&(1<<i+1)-1)<<h-i,y>0&&(m|=e[y-1]>>this.DB+i-h)),l=r;0==(1&m);)m>>=1,--l;if((i-=l)<0&&(i+=this.DB,--y),w)g[m].copyTo(o),w=!1;else{for(;l>1;)c.sqrTo(o,S),c.sqrTo(S,o),l-=2;l>0?c.sqrTo(o,S):(v=o,o=S,S=v),c.mulTo(S,g[m],o)}for(;y>=0&&0==(e[y]&1<<i);)c.sqrTo(o,S),v=o,o=S,S=v,--i<0&&(i=this.DB-1,--y)}var _=c.revert(o);return n(null,_),_},H.ZERO=Q(0),H.ONE=Q(1);var re=/^[89a-f]/i,ie=function(){function e(e){this.N=new $("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new $("2",16),this.k=new $(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue((function(){})),this.infoBits=L.Buffer.from("Caldera Derived Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,(function(n,r){n&&e(n,null),t.largeAValue=r,e(null,t.largeAValue)}))},t.generateRandomSmallA=function(){var e=ne(128).toString("hex");return new $(e,16)},t.generateRandomString=function(){return ne(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,t,n){var r=this;this.randomPassword=this.generateRandomString();var o=""+e+t+":"+this.randomPassword,c=this.hash(o),l=ne(16).toString("hex");this.SaltToHashDevices=this.padHex(new $(l,16)),this.g.modPow(new $(this.hexHash(this.SaltToHashDevices+c),16),this.N,(function(e,t){e&&n(e,null),r.verifierDevices=r.padHex(t),n(null,null)}))},t.calculateA=function(a,e){var t=this;this.g.modPow(a,this.N,(function(n,r){n&&e(n,null),r.mod(t.N).equals($.ZERO)&&e(new Error("Illegal paramater. A mod N cannot be 0."),null),e(null,r)}))},t.calculateU=function(e,t){return this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new $(this.UHexHash,16)},t.hash=function(e){var t=new z.Sha256;t.update(e);var n=t.digestSync(),r=L.Buffer.from(n).toString("hex");return new Array(64-r.length).join("0")+r},t.hexHash=function(e){return this.hash(L.Buffer.from(e,"hex"))},t.computehkdf=function(e,t){var n=L.Buffer.concat([this.infoBits,L.Buffer.from(String.fromCharCode(1),"utf8")]),r=new z.Sha256(t);r.update(e);var o=r.digestSync(),c=new z.Sha256(o);return c.update(n),c.digestSync().slice(0,16)},t.getPasswordAuthenticationKey=function(e,t,n,r,o){var c=this;if(n.mod(this.N).equals($.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,n),this.UValue.equals($.ZERO))throw new Error("U cannot be zero.");var l=""+this.poolName+e+":"+t,h=this.hash(l),d=new $(this.hexHash(this.padHex(r)+h),16);this.calculateS(d,n,(function(e,t){e&&o(e,null);var n=c.computehkdf(L.Buffer.from(c.padHex(t),"hex"),L.Buffer.from(c.padHex(c.UValue),"hex"));o(null,n)}))},t.calculateS=function(e,t,n){var r=this;this.g.modPow(e,this.N,(function(o,c){o&&n(o,null),t.subtract(r.k.multiply(c)).modPow(r.smallAValue.add(r.UValue.multiply(e)),r.N,(function(e,t){e&&n(e,null),n(null,t.mod(r.N))}))}))},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(e){if(!(e instanceof $))throw new Error("Not a BigInteger");var t=e.compareTo($.ZERO)<0,n=e.abs().toString(16);if(n=n.length%2!=0?"0"+n:n,n=re.test(n)?"00"+n:n,t){var r=n.split("").map((function(e){var t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)})).join("");(n=new $(r,16).add($.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},e}(),oe=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(L.Buffer.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();function ae(e,p){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,p){return e.__proto__=p,e},ae(e,p)}var se=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).AccessToken;return e.call(this,n||"")||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ae(t,n),r}(oe);function ce(e,p){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,p){return e.__proto__=p,e},ce(e,p)}var ue=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).IdToken;return e.call(this,n||"")||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ce(t,n),r}(oe),le=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),he={userAgent:"aws-amplify/5.0.4",isReactNative:"undefined"!=typeof navigator&&"ReactNative"===navigator.product},de=function(){function e(e){var t=void 0===e?{}:e,n=t.IdToken,r=t.RefreshToken,o=t.AccessToken,c=t.ClockDrift;if(null==o||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=o,this.clockDrift=void 0===c?this.calculateClockDrift():c}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}(),fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],me=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=pe[e.getUTCDay()],n=fe[e.getUTCMonth()],r=e.getUTCDate(),o=e.getUTCHours();o<10&&(o="0"+o);var c=e.getUTCMinutes();c<10&&(c="0"+c);var l=e.getUTCSeconds();return l<10&&(l="0"+l),t+" "+n+" "+r+" "+o+":"+c+":"+l+" UTC "+e.getUTCFullYear()},e}(),ge=function(){function e(e){var t=void 0===e?{}:e,n=t.Name,r=t.Value;this.Name=n||"",this.Value=r||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}(),ve={},be=function(){function e(){}return e.setItem=function(e,t){return ve[e]=t,ve[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(ve,e)?ve[e]:void 0},e.removeItem=function(e){return delete ve[e]},e.clear=function(){return ve={}},e}(),ye=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=be}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),we="undefined"!=typeof navigator?he.isReactNative?"react-native":navigator.userAgent:"nodejs",Se=function(){function e(data){if(null==data||null==data.Username||null==data.Pool)throw new Error("Username and Pool information are required.");this.username=data.Username||"",this.pool=data.Pool,this.Session=null,this.client=data.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=data.Storage||(new ye).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,t){var n=this,r=e.getAuthParameters();r.USERNAME=this.username;var o=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),c={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:o};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",c,(function(e,data){if(e)return t.onFailure(e);var r=data.ChallengeName,o=data.ChallengeParameters;return"CUSTOM_CHALLENGE"===r?(n.Session=data.Session,t.customChallenge(o)):(n.signInUserSession=n.getCognitoUserSession(data.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.signInUserSession))}))},t.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow type is invalid."))},t.authenticateUserDefaultAuth=function(e,t){var n,r,o=this,c=new ie(this.pool.getUserPoolName()),l=new me,h={};null!=this.deviceKey&&(h.DEVICE_KEY=this.deviceKey),h.USERNAME=this.username,c.getLargeAValue((function(d,f){d&&t.onFailure(d),h.SRP_A=f.toString(16),"CUSTOM_AUTH"===o.authenticationFlowType&&(h.CHALLENGE_NAME="SRP_A");var m=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),v={AuthFlow:o.authenticationFlowType,ClientId:o.pool.getClientId(),AuthParameters:h,ClientMetadata:m};o.getUserContextData(o.username)&&(v.UserContextData=o.getUserContextData(o.username)),o.client.request("InitiateAuth",v,(function(h,data){if(h)return t.onFailure(h);var d=data.ChallengeParameters;o.username=d.USER_ID_FOR_SRP,o.userDataKey=o.keyPrefix+"."+o.username+".userData",n=new $(d.SRP_B,16),r=new $(d.SALT,16),o.getCachedDeviceKeyAndPassword(),c.getPasswordAuthenticationKey(o.username,e.getPassword(),n,r,(function(e,n){e&&t.onFailure(e);var r=l.getNowString(),h=L.Buffer.concat([L.Buffer.from(o.pool.getUserPoolName(),"utf8"),L.Buffer.from(o.username,"utf8"),L.Buffer.from(d.SECRET_BLOCK,"base64"),L.Buffer.from(r,"utf8")]),f=new z.Sha256(n);f.update(h);var v=f.digestSync(),y=L.Buffer.from(v).toString("base64"),w={};w.USERNAME=o.username,w.PASSWORD_CLAIM_SECRET_BLOCK=d.SECRET_BLOCK,w.TIMESTAMP=r,w.PASSWORD_CLAIM_SIGNATURE=y,null!=o.deviceKey&&(w.DEVICE_KEY=o.deviceKey);var S={ChallengeName:"PASSWORD_VERIFIER",ClientId:o.pool.getClientId(),ChallengeResponses:w,Session:data.Session,ClientMetadata:m};o.getUserContextData()&&(S.UserContextData=o.getUserContextData()),function e(t,n){return o.client.request("RespondToAuthChallenge",t,(function(r,c){return r&&"ResourceNotFoundException"===r.code&&-1!==r.message.toLowerCase().indexOf("device")?(w.DEVICE_KEY=null,o.deviceKey=null,o.randomPassword=null,o.deviceGroupKey=null,o.clearCachedDeviceKeyAndPassword(),e(t,n)):n(r,c)}))}(S,(function(e,n){return e?t.onFailure(e):o.authenticateUserInternal(n,c,t)}))}))}))}))},t.authenticateUserPlainUsernamePassword=function(e,t){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),r.PASSWORD){var o=new ie(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var c=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),l={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:c};this.getUserContextData(this.username)&&(l.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",l,(function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,o,t)}))}else t.onFailure(new Error("PASSWORD parameter is required"))},t.authenticateUserInternal=function(e,t,n){var r=this,o=e.ChallengeName,c=e.ChallengeParameters;if("SMS_MFA"===o)return this.Session=e.Session,n.mfaRequired(o,c);if("SELECT_MFA_TYPE"===o)return this.Session=e.Session,n.selectMFAType(o,c);if("MFA_SETUP"===o)return this.Session=e.Session,n.mfaSetup(o,c);if("SOFTWARE_TOKEN_MFA"===o)return this.Session=e.Session,n.totpRequired(o,c);if("CUSTOM_CHALLENGE"===o)return this.Session=e.Session,n.customChallenge(c);if("NEW_PASSWORD_REQUIRED"===o){this.Session=e.Session;var l=null,h=null,d=[],f=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(c&&(l=JSON.parse(e.ChallengeParameters.userAttributes),h=JSON.parse(e.ChallengeParameters.requiredAttributes)),h)for(var i=0;i<h.length;i++)d[i]=h[i].substr(f.length);return n.newPasswordRequired(l,d)}if("DEVICE_SRP_AUTH"===o)return this.Session=e.Session,void this.getDeviceResponse(n);this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=o,this.cacheTokens();var m=e.AuthenticationResult.NewDeviceMetadata;if(null==m)return n.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(o){if(o)return n.onFailure(o);var c={Salt:L.Buffer.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:L.Buffer.from(t.getVerifierDevices(),"hex").toString("base64")};r.verifierDevices=c.PasswordVerifier,r.deviceGroupKey=m.DeviceGroupKey,r.randomPassword=t.getRandomPassword(),r.client.request("ConfirmDevice",{DeviceKey:m.DeviceKey,AccessToken:r.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:c,DeviceName:we},(function(t,o){return t?n.onFailure(t):(r.deviceKey=e.AuthenticationResult.NewDeviceMetadata.DeviceKey,r.cacheDeviceKeyAndPassword(),!0===o.UserConfirmationNecessary?n.onSuccess(r.signInUserSession,o.UserConfirmationNecessary):n.onSuccess(r.signInUserSession))}))}))},t.completeNewPasswordChallenge=function(e,t,n,r){var o=this;if(!e)return n.onFailure(new Error("New password is required."));var c=new ie(this.pool.getUserPoolName()),l=c.getNewPasswordRequiredChallengeUserAttributePrefix(),h={};t&&Object.keys(t).forEach((function(e){h[l+e]=t[e]})),h.NEW_PASSWORD=e,h.USERNAME=this.username;var d={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:h,Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(d.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",d,(function(e,t){return e?n.onFailure(e):o.authenticateUserInternal(t,c,n)}))},t.getDeviceResponse=function(e,t){var n=this,r=new ie(this.deviceGroupKey),o=new me,c={};c.USERNAME=this.username,c.DEVICE_KEY=this.deviceKey,r.getLargeAValue((function(l,h){l&&e.onFailure(l),c.SRP_A=h.toString(16);var d={ChallengeName:"DEVICE_SRP_AUTH",ClientId:n.pool.getClientId(),ChallengeResponses:c,ClientMetadata:t,Session:n.Session};n.getUserContextData()&&(d.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",d,(function(t,data){if(t)return e.onFailure(t);var c=data.ChallengeParameters,l=new $(c.SRP_B,16),h=new $(c.SALT,16);r.getPasswordAuthenticationKey(n.deviceKey,n.randomPassword,l,h,(function(t,r){if(t)return e.onFailure(t);var l=o.getNowString(),h=L.Buffer.concat([L.Buffer.from(n.deviceGroupKey,"utf8"),L.Buffer.from(n.deviceKey,"utf8"),L.Buffer.from(c.SECRET_BLOCK,"base64"),L.Buffer.from(l,"utf8")]),d=new z.Sha256(r);d.update(h);var f=d.digestSync(),m=L.Buffer.from(f).toString("base64"),v={};v.USERNAME=n.username,v.PASSWORD_CLAIM_SECRET_BLOCK=c.SECRET_BLOCK,v.TIMESTAMP=l,v.PASSWORD_CLAIM_SIGNATURE=m,v.DEVICE_KEY=n.deviceKey;var y={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:v,Session:data.Session};n.getUserContextData()&&(y.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",y,(function(t,r){return t?e.onFailure(t):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),e.onSuccess(n.signInUserSession))}))}))}))}))},t.confirmRegistration=function(e,t,n,r){var o={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:t,ClientMetadata:r};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",o,(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.sendCustomChallengeAnswer=function(e,t,n){var r=this,o={};o.USERNAME=this.username,o.ANSWER=e;var c=new ie(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var l={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",l,(function(e,data){return e?t.onFailure(e):r.authenticateUserInternal(data,c,t)}))},t.sendMFACode=function(e,t,n,r){var o=this,c={};c.USERNAME=this.username,c.SMS_MFA_CODE=e;var l=n||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===l&&(c.SOFTWARE_TOKEN_MFA_CODE=e),null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey);var h={ChallengeName:l,ChallengeResponses:c,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",h,(function(e,n){if(e)return t.onFailure(e);if("DEVICE_SRP_AUTH"!==n.ChallengeName){if(o.signInUserSession=o.getCognitoUserSession(n.AuthenticationResult),o.cacheTokens(),null==n.AuthenticationResult.NewDeviceMetadata)return t.onSuccess(o.signInUserSession);var r=new ie(o.pool.getUserPoolName());r.generateHashDevice(n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(e){if(e)return t.onFailure(e);var c={Salt:L.Buffer.from(r.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:L.Buffer.from(r.getVerifierDevices(),"hex").toString("base64")};o.verifierDevices=c.PasswordVerifier,o.deviceGroupKey=n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,o.randomPassword=r.getRandomPassword(),o.client.request("ConfirmDevice",{DeviceKey:n.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:o.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:c,DeviceName:we},(function(e,r){return e?t.onFailure(e):(o.deviceKey=n.AuthenticationResult.NewDeviceMetadata.DeviceKey,o.cacheDeviceKeyAndPassword(),!0===r.UserConfirmationNecessary?t.onSuccess(o.signInUserSession,r.UserConfirmationNecessary):t.onSuccess(o.signInUserSession))}))}))}else o.getDeviceResponse(t)}))},t.changePassword=function(e,t,n,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:r},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.enableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);var t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.setUserMfaPreference=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.disableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.deleteUser=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t},(function(t){return t?e(t,null):(n.clearCachedUser(),e(null,"SUCCESS"))}))},t.updateAttributes=function(e,t,n){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:n},(function(e,n){return e?t(e,null):r.getUserData((function(){return t(null,"SUCCESS",n)}),{bypassCache:!0})}))},t.getUserAttributes=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){if(t)return e(t,null);for(var r=[],i=0;i<n.UserAttributes.length;i++){var o={Name:n.UserAttributes[i].Name,Value:n.UserAttributes[i].Value},c=new ge(o);r.push(c)}return e(null,r)}))},t.getMFAOptions=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){return t?e(t,null):e(null,n.MFAOptions)}))},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(e){var t=this;return void 0===e&&(e={}),new Promise((function(n){var r=t.signInUserSession.getRefreshToken();r&&r.getToken()?t.refreshSession(r,n,e.clientMetadata):n()}))},t.getUserData=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return this.clearCachedUserData(),e(new Error("User is not authenticated"),null);var r=this.getUserDataFromCache();if(r)if(this.isFetchUserDataAndTokenRequired(t))this.fetchUserData().then((function(data){return n.refreshSessionIfPossible(t).then((function(){return data}))})).then((function(data){return e(null,data)})).catch(e);else try{return void e(null,JSON.parse(r))}catch(t){return this.clearCachedUserData(),void e(t,null)}else this.fetchUserData().then((function(data){e(null,data)})).catch(e)},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then((function(data){return e.cacheUserData(data),data}))},t.deleteAttributes=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?t(e,null):n.getUserData((function(){return t(null,"SUCCESS")}),{bypassCache:!0})}))},t.resendConfirmationCode=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.client.request("ResendConfirmationCode",n,(function(t,n){return t?e(t,null):e(null,n)}))},t.getSession=function(e,t){if(void 0===t&&(t={}),null==this.username)return e(new Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var n="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,r=n+".idToken",o=n+".accessToken",c=n+".refreshToken",l=n+".clockDrift";if(this.storage.getItem(r)){var h=new ue({IdToken:this.storage.getItem(r)}),d=new se({AccessToken:this.storage.getItem(o)}),f=new le({RefreshToken:this.storage.getItem(c)}),m=parseInt(this.storage.getItem(l),0)||0,v=new de({IdToken:h,AccessToken:d,RefreshToken:f,ClockDrift:m});if(v.isValid())return this.signInUserSession=v,e(null,this.signInUserSession);if(!f.getToken())return e(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(f,e,t.clientMetadata)}else e(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,t,n){var r=this,o=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(t):t,c={};c.REFRESH_TOKEN=e.getToken();var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),h=l+".LastAuthUser";if(this.storage.getItem(h)){this.username=this.storage.getItem(h);var d=l+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(d),c.DEVICE_KEY=this.deviceKey}var f={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:c,ClientMetadata:n};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",f,(function(t,n){if(t)return"NotAuthorizedException"===t.code&&r.clearCachedUser(),o(t,null);if(n){var c=n.AuthenticationResult;return Object.prototype.hasOwnProperty.call(c,"RefreshToken")||(c.RefreshToken=e.getToken()),r.signInUserSession=r.getCognitoUserSession(c),r.cacheTokens(),o(null,r.signInUserSession)}}))},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",o=e+"."+this.username+".clockDrift",c=e+".LastAuthUser";this.storage.setItem(t,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(o,""+this.signInUserSession.getClockDrift()),this.storage.setItem(c,this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.setItem(t,this.deviceKey),this.storage.setItem(n,this.randomPassword),this.storage.setItem(r,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPassword=this.storage.getItem(n),this.deviceGroupKey=this.storage.getItem(r))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r)},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",o=e+".LastAuthUser",c=e+"."+this.username+".clockDrift";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r),this.storage.removeItem(o),this.storage.removeItem(c)},t.getCognitoUserSession=function(e){var t=new ue(e),n=new se(e),r=new le(e);return new de({IdToken:t,AccessToken:n,RefreshToken:r})},t.forgotPassword=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.getUserContextData()&&(n.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",n,(function(t,data){return t?e.onFailure(t):"function"==typeof e.inputVerificationCode?e.inputVerificationCode(data):e.onSuccess(data)}))},t.confirmPassword=function(e,t,n,r){var o={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:t,ClientMetadata:r};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",o,(function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getAttributeVerificationCode=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},(function(e,data){return e?t.onFailure(e):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(data):t.onSuccess("SUCCESS")}))},t.verifyAttribute=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getDevice=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},(function(t,data){return t?e.onFailure(t):e.onSuccess(data)}))},t.forgetSpecificDevice=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},(function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")}))},t.forgetDevice=function(e){var t=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(n){return t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKeyAndPassword(),e.onSuccess(n)}})},t.setDeviceStatusRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.setDeviceStatusNotRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.listDevices=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));var r={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(r.PaginationToken=t),this.client.request("ListDevices",r,(function(e,data){return e?n.onFailure(e):n.onSuccess(data)}))},t.globalSignOut=function(e){var t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(n){return n?e.onFailure(n):(t.clearCachedUser(),e.onSuccess("SUCCESS"))}))},t.signOut=function(e){var t=this;e&&"function"==typeof e?this.getSession((function(n,r){if(n)return e(n);t.revokeTokens((function(n){t.cleanClientData(),e(n)}))})):this.cleanClientData()},t.revokeTokens=function(e){if(void 0===e&&(e=function(){}),"function"!=typeof e)throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession)return e(new Error("User is not authenticated"));if(!this.signInUserSession.getAccessToken())return e(new Error("No Access token available"));var t=this.signInUserSession.getRefreshToken().getToken(),n=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(n)&&t)return this.revokeToken({token:t,callback:e});e()},t.isSessionRevocable=function(e){if(e&&"function"==typeof e.decodePayload)try{return!!e.decodePayload().origin_jti}catch(e){}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(e){var t=e.token,n=e.callback;this.client.requestWithRetry("RevokeToken",{Token:t,ClientId:this.pool.getClientId()},(function(e){if(e)return n(e);n()}))},t.sendMFASelectionAnswer=function(e,t){var n=this,r={};r.USERNAME=this.username,r.ANSWER=e;var o={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:r,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",o,(function(r,data){return r?t.onFailure(r):(n.Session=data.Session,"SMS_MFA"===e?t.mfaRequired(data.ChallengeName,data.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===e?t.totpRequired(data.ChallengeName,data.ChallengeParameters):void 0)}))},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,data){return t?e.onFailure(t):e.associateSecretCode(data.SecretCode)})):this.client.request("AssociateSoftwareToken",{Session:this.Session},(function(n,data){return n?e.onFailure(n):(t.Session=data.Session,e.associateSecretCode(data.SecretCode))}))},t.verifySoftwareToken=function(e,t,n){var r=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:t},(function(e,data){return e?n.onFailure(e):n.onSuccess(data)})):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:t},(function(e,data){if(e)return n.onFailure(e);r.Session=data.Session;var t={};t.USERNAME=r.username;var o={ChallengeName:"MFA_SETUP",ClientId:r.pool.getClientId(),ChallengeResponses:t,Session:r.Session};r.getUserContextData()&&(o.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",o,(function(e,t){return e?n.onFailure(e):(r.signInUserSession=r.getCognitoUserSession(t.AuthenticationResult),r.cacheTokens(),n.onSuccess(r.signInUserSession))}))}))},e}();n(987);function _e(){}_e.prototype.userAgent=he.userAgent;var Ce=function(e){_e.framework=e};function Oe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ee(e,t)}function Ae(e){var t="function"==typeof Map?new Map:void 0;return Ae=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 Te(e,arguments,Pe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ee(r,e)},Ae(e)}function Te(e,t,n){return Te=function(){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}}()?Reflect.construct.bind():function(e,t,n){var a=[null];a.push.apply(a,t);var r=new(Function.bind.apply(e,a));return n&&Ee(r,n.prototype),r},Te.apply(null,arguments)}function Ee(e,p){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,p){return e.__proto__=p,e},Ee(e,p)}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}var Me=function(e){function t(t,code,n,r){var o;return(o=e.call(this,t)||this).code=code,o.name=n,o.statusCode=r,o}return Oe(t,e),t}(Ae(Error)),xe=function(){function e(e,t,n){this.endpoint=t||"https://cognito-idp."+e+".amazonaws.com/";var r=(n||{}).credentials;this.fetchOptions=r?{credentials:r}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var n=this;return new Promise((function(r,o){n.request(e,t,(function(e,data){e?o(new Me(e.message,e.code,e.name,e.statusCode)):r(data)}))}))},t.requestWithRetry=function(e,t,n){var r=this;(function(e,t,n){void 0===n&&(n=je);return Re(e,t,function(e){var t=100,n=100;return function(r){var o=Math.pow(2,r)*t+n*Math.random();return!(o>e)&&o}}(n))})((function(p){return new Promise((function(t,n){r.request(e,p,(function(e,r){e?n(e):t(r)}))}))}),[t],5e3).then((function(e){return n(null,e)})).catch((function(e){return n(e)}))},t.request=function(e,t,n){var r,o,c,l={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":(r=_e.category?" "+_e.category:"",o=_e.framework?" framework/"+_e.framework:"",""+_e.prototype.userAgent+r+o),"Cache-Control":"no-store"},h=Object.assign({},this.fetchOptions,{headers:l,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,h).then((function(e){return c=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(data){if(c.ok)return n(null,data);data;var code=(data.__type||data.code).split("#").pop(),e=new Error(data.message||data.Message||null);return e.name=code,e.code=code,n(e)})).catch((function(e){if(c&&c.headers&&c.headers.get("x-amzn-errortype"))try{var code=c.headers.get("x-amzn-errortype").split(":")[0],t=new Error(c.status?c.status.toString():null);return t.code=code,t.name=code,t.statusCode=c.status,n(t)}catch(t){return n(e)}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)}))},e}(),ke={debug:function(){}},Ie=(Error,function(e){return e&&e.nonRetryable});function Re(e,t,n,r){if(void 0===r&&(r=1),"function"!=typeof e)throw Error("functionToRetry must be a function");return ke.debug(e.name+" attempt #"+r+" with args: "+JSON.stringify(t)),e.apply(void 0,t).catch((function(o){if(ke.debug("error on "+e.name,o),Ie(o))throw ke.debug(e.name+" non retryable error",o),o;var c=n(r,t,o);if(ke.debug(e.name+" retrying in "+c+" ms"),!1!==c)return new Promise((function(e){return setTimeout(e,c)})).then((function(){return Re(e,t,n,r+1)}));throw o}))}var je=3e5;var De,Ne=function(){function e(data,e){var t=data||{},n=t.UserPoolId,r=t.ClientId,o=t.endpoint,c=t.fetchOptions,l=t.AdvancedSecurityDataCollectionFlag;if(!n||!r)throw new Error("Both UserPoolId and ClientId are required.");if(n.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(n))throw new Error("Invalid UserPoolId format.");var h=n.split("_")[0];this.userPoolId=n,this.clientId=r,this.client=new xe(h,o,c),this.advancedSecurityDataCollectionFlag=!1!==l,this.storage=data.Storage||(new ye).getStorage(),e&&(this.wrapRefreshSessionCallback=e)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,o,c){var l=this,h={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:c};this.getUserContextData(e)&&(h.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",h,(function(t,data){if(t)return o(t,null);var n={Username:e,Pool:l,Storage:l.storage},r={user:new Se(n),userConfirmed:data.UserConfirmed,userSub:data.UserSub,codeDeliveryDetails:data.CodeDeliveryDetails};return o(null,r)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new Se(n)}return null},t.getUserContextData=function(e){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),Le=n(388),Be=function(){function e(data){if(void 0===data&&(data={}),data.domain&&(this.domain=data.domain),data.path?this.path=data.path:this.path="/",Object.prototype.hasOwnProperty.call(data,"expires")?this.expires=data.expires:this.expires=365,Object.prototype.hasOwnProperty.call(data,"secure")?this.secure=data.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(data,"sameSite")){if(!["strict","lax","none"].includes(data.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===data.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=data.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),Le.set(e,t,n),Le.get(e)},t.getItem=function(e){return Le.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),Le.remove(e,t)},t.clear=function(){for(var e=Le.get(),t=Object.keys(e).length,n=0;n<t;++n)this.removeItem(Object.keys(e)[n]);return{}},e}(),Ue=n(199),Fe=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},ze=n(97),$e=("undefined"!=typeof Symbol&&"function"==typeof Symbol.for&&Symbol.for("INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"),"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default"),He=function(e,data,t){_.a.dispatch("auth",{event:e,data:data,message:t},"Auth",$e)},Ge=new S.a("OAuth"),Ve=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,o=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||Fe,this._config=t,this._cognitoClientId=n,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))},e.prototype.oauthSignIn=function(e,t,n,r,o,l){void 0===e&&(e="code"),void 0===o&&(o=c.Cognito);var h=this._generateState(32),f=l?h+"-"+l.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):h;!function(e){window.sessionStorage.setItem("oauth_state",e)}(f);var m,y=this._generateRandom(128);m=y,window.sessionStorage.setItem("ouath_pkce_key",m);var w=this._generateChallenge(y),S=this._scopes.join(" "),_="https://"+t+"/oauth2/authorize?"+Object.entries(d(d({redirect_uri:n,response_type:e,client_id:r,identity_provider:o,scope:S,state:f},"code"===e?{code_challenge:w}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=v(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");Ge.debug("Redirecting to "+_),this._urlOpener(_,n)},e.prototype._handleCodeFlow=function(e){return f(this,void 0,void 0,(function(){var code,t,n,r,o,c,l,h,body,f,y,S,_,C,A,T;return m(this,(function(m){switch(m.label){case 0:return code=(Object(Ue.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=v(t,2),o=r[0],c=r[1];return d(d({},e),((n={})[o]=c,n))}),{code:void 0}).code,t=Object(Ue.parse)(e).pathname||"/",n=Object(Ue.parse)(this._config.redirectSignIn).pathname||"/",code&&t===n?(r="https://"+this._config.domain+"/oauth2/token",He("codeFlow",{},"Retrieving tokens from "+r),o=w(this._config)?this._cognitoClientId:this._config.clientID,c=w(this._config)?this._config.redirectSignIn:this._config.redirectUri,E=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),h=d({grant_type:"authorization_code",code:code,client_id:o,redirect_uri:c},(l=E)?{code_verifier:l}:{}),Ge.debug("Calling token endpoint: "+r+" with",h),body=Object.entries(h).map((function(e){var t=v(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),f={category:ze.b.Auth,action:ze.a.FederatedSignIn},[4,fetch(r,{method:"POST",headers:(T={"Content-Type":"application/x-www-form-urlencoded"},T["x-amz-user-agent"]=Object(O.b)(f),T),body:body})]):[2];case 1:return[4,m.sent().json()];case 2:if(y=m.sent(),S=y.access_token,_=y.refresh_token,C=y.id_token,A=y.error)throw new Error(A);return[2,{accessToken:S,refreshToken:_,idToken:C}]}var E}))}))},e.prototype._handleImplicitFlow=function(e){return f(this,void 0,void 0,(function(){var t,n,r;return m(this,(function(o){return t=(Object(Ue.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=v(t,2),o=r[0],c=r[1];return d(d({},e),((n={})[o]=c,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,He("implicitFlow",{},"Got tokens from "+e),Ge.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return f(this,void 0,void 0,(function(){var t,n,r,o,c,l,h;return m(this,(function(f){switch(f.label){case 0:if(f.trys.push([0,5,,6]),t=e?d(d({},(Object(Ue.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=v(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),(Object(Ue.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=v(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return o=this._validateState(t),Ge.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(c=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,d.apply(void 0,[d.apply(void 0,c.concat([f.sent()])),{state:o}])];case 2:return l=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,d.apply(void 0,[d.apply(void 0,l.concat([f.sent()])),{state:o}])];case 4:return[3,6];case 5:throw h=f.sent(),Ge.debug("Error handling auth response.",h),h;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return f(this,void 0,void 0,(function(){var e,t,n;return m(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=w(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=w(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=v(e,2);return t[0]+"="+t[1]})).join("&"),He("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),Ge.debug("Signing out from "+e),[2,this._urlOpener(e,n)]}))}))},e.prototype._generateState=function(e){for(var t="",i=e,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";i>0;--i)t+=n[Math.round(61*Math.random())];return t},e.prototype._generateChallenge=function(code){var e=new z.Sha256;e.update(code);var t=e.digestSync(),n=L.Buffer.from(t).toString("base64");return this._base64URL(n)},e.prototype._base64URL=function(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var i=0;i<e;i+=1)t[i]=66*Math.random()|0;return this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],i=0;i<e.byteLength;i+=1){var r=e[i]%62;n.push(t[r])}return n.join("")},e}();!function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in"}(De||(De={}));var We=new S.a("AuthError"),qe=function(e){function t(n){var r=this,o=Ye[n],c=o.message,l=o.log;return(r=e.call(this,c)||this).constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="AuthError",r.log=l||c,We.error(r.log),r}return o(t,e),t}(Error),Ke=function(e){function t(n){var r=e.call(this,n)||this;return r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="NoUserPoolError",r}return o(t,e),t}(qe),Ye={noConfig:{message:De.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly.\n            This error is typically caused by one of the following scenarios:\n\n            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n            \n            2. There might be multiple conflicting versions of amplify packages in your node_modules.\n\t\t\t\tRefer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n        "},missingAuthConfig:{message:De.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly. \n            The configuration object is missing required auth properties.\n            This error is typically caused by one of the following scenarios:\n\n            1. Did you run `amplify push` after adding auth via `amplify add auth`?\n                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n        "},emptyUsername:{message:De.EMPTY_USERNAME},invalidUsername:{message:De.INVALID_USERNAME},emptyPassword:{message:De.EMPTY_PASSWORD},emptyCode:{message:De.EMPTY_CODE},signUpError:{message:De.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:De.NO_MFA},invalidMFA:{message:De.INVALID_MFA},emptyChallengeResponse:{message:De.EMPTY_CHALLENGE},noUserSession:{message:De.NO_USER_SESSION},deviceConfig:{message:De.DEVICE_CONFIG},networkError:{message:De.NETWORK_ERROR},autoSignInError:{message:De.AUTOSIGNIN_ERROR},default:{message:De.DEFAULT_MSG}},Xe=new S.a("AuthClass"),Je="aws.cognito.signin.user.admin",Ze="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Qe=function(e,data,t){_.a.dispatch("auth",{event:e,data:data,message:t},"Auth",Ze)},et=function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Credentials=C.a,this.wrapRefreshSessionCallback=function(e){return function(t,data){return data?Qe("tokenRefresh",void 0,"New token retrieved"):Qe("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,data)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),_.a.listen("auth",(function(e){switch(e.payload.event){case"verify":case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}})),_e.category="auth",Ce(O.a.framework),O.a.observeFrameworkChanges((function(){Ce(O.a.framework)}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};Xe.debug("configure Auth");var n=Object.assign({},this._config,Object(A.a)(e).Auth,e);this._config=n;var r=this._config,o=r.userPoolId,c=r.userPoolWebClientId,h=r.cookieStorage,d=r.oauth,f=r.region,m=r.identityPoolId,v=r.mandatorySignIn,y=r.refreshHandlers,S=r.identityPoolRegion,_=r.clientMetadata,C=r.endpoint,O=r.storage;if(O){if(!this._isValidAuthStorage(O))throw Xe.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=O}else this._storage=h?new Be(h):e.ssr?new R:(new j.a).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var T={UserPoolId:o,ClientId:c,endpoint:C};T.Storage=this._storage,this.userPool=new Ne(T,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:v,region:f,userPoolId:o,identityPoolId:m,refreshHandlers:y,storage:this._storage,identityPoolRegion:S});var E=d?w(this._config.oauth)?d:d.awsCognito:void 0;if(E){var P=Object.assign({cognitoClientId:c,UserPoolId:o,domain:E.domain,scopes:E.scope,redirectSignIn:E.redirectSignIn,redirectSignOut:E.redirectSignOut,responseType:E.responseType,Storage:this._storage,urlOpener:E.urlOpener,clientMetadata:_},E.options);this._oAuthHandler=new Ve({scopes:P.scopes,config:P,cognitoClientId:P.cognitoClientId});var M={};!function(e){if(Object(x.a)().isBrowser&&window.location)e({url:window.location.href});else if(!Object(x.a)().isNode)throw new Error("Not supported")}((function(e){var n=e.url;M[n]||(M[n]=!0,t._handleAuthResponse(n))}))}(Qe("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem)||(this.isTrueStorageValue("amplify-polling-started")&&(Qe("autoSignIn_failure",null,l.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started"));return this._config},e.prototype.signUp=function(e){for(var t,n,r,o=this,c=[],h=1;h<arguments.length;h++)c[h-1]=arguments[h];if(!this.userPool)return this.rejectNoUserPool();var d,f=null,m=null,v=[],y=null,w={enabled:!1},S={},_={};if(e&&"string"==typeof e){f=e,m=c?c[0]:null;var C=c?c[1]:null,O=c?c[2]:null;C&&v.push(new ge({Name:"email",Value:C})),O&&v.push(new ge({Name:"phone_number",Value:O}))}else{if(!e||"object"!=typeof e)return this.rejectAuthError(l.SignUpError);f=e.username,m=e.password,e&&e.clientMetadata?d=e.clientMetadata:this._config.clientMetadata&&(d=this._config.clientMetadata);var A=e.attributes;A&&Object.keys(A).map((function(e){v.push(new ge({Name:e,Value:A[e]}))}));var T=e.validationData;T&&(y=[],Object.keys(T).map((function(e){y.push(new ge({Name:e,Value:T[e]}))}))),(w=null!==(t=e.autoSignIn)&&void 0!==t?t:{enabled:!1}).enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),S=null!==(n=w.validationData)&&void 0!==n?n:{},_=null!==(r=w.clientMetaData)&&void 0!==r?r:{})}return f?m?(Xe.debug("signUp attrs:",v),Xe.debug("signUp validation data:",y),new Promise((function(e,t){o.userPool.signUp(f,m,v,y,(function(n,data){n?(Qe("signUp_failure",n,f+" failed to signup"),t(n)):(Qe("signUp",data,f+" has signed up successfully"),w.enabled&&o.handleAutoSignIn(f,m,S,_,data),e(data))}),d)}))):this.rejectAuthError(l.EmptyPassword):this.rejectAuthError(l.EmptyUsername)},e.prototype.handleAutoSignIn=function(e,t,n,r,data){this.autoSignInInitiated=!0;var o=new N({Username:e,Password:t,ValidationData:n,ClientMetadata:r});data.userConfirmed?this.signInAfterUserConfirmed(o):"link"===this._config.signUpVerificationMethod?this.handleLinkAutoSignIn(o):this.handleCodeAutoSignIn(o)},e.prototype.handleCodeAutoSignIn=function(e){var t=this,n=function(r){"confirmSignUp"===r.payload.event&&t.signInAfterUserConfirmed(e,n)};_.a.listen("auth",n)},e.prototype.handleLinkAutoSignIn=function(e){var t=this;this._storage.setItem("amplify-polling-started","true");var n=Date.now(),r=setInterval((function(){Date.now()-n>18e4?(clearInterval(r),Qe("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),t._storage.removeItem("amplify-auto-sign-in")):t.signInAfterUserConfirmed(e,null,r)}),5e3)},e.prototype.signInAfterUserConfirmed=function(e,t,n){return f(this,void 0,void 0,(function(){var r,o,c=this;return m(this,(function(l){switch(l.label){case 0:r=this.createCognitoUser(e.getUsername()),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,r.authenticateUser(e,this.authCallbacks(r,(function(r){Qe("autoSignIn",r,e.getUsername()+" has signed in successfully"),t&&_.a.remove("auth",t),n&&(clearInterval(n),c._storage.removeItem("amplify-polling-started")),c._storage.removeItem("amplify-auto-sign-in")}),(function(e){Xe.error(e),c._storage.removeItem("amplify-auto-sign-in")})))];case 2:return l.sent(),[3,4];case 3:return o=l.sent(),Xe.error(o),[3,4];case 4:return[2]}}))}))},e.prototype.confirmSignUp=function(e,code,t){var n=this;if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(l.EmptyUsername);if(!code)return this.rejectAuthError(l.EmptyCode);var r,o=this.createCognitoUser(e),c=!t||"boolean"!=typeof t.forceAliasCreation||t.forceAliasCreation;return t&&t.clientMetadata?r=t.clientMetadata:this._config.clientMetadata&&(r=this._config.clientMetadata),new Promise((function(t,h){o.confirmRegistration(code,c,(function(r,data){r?h(r):(Qe("confirmSignUp",data,e+" has been confirmed successfully"),n.isTrueStorageValue("amplify-auto-sign-in")&&!n.autoSignInInitiated&&(Qe("autoSignIn_failure",null,l.AutoSignInError),n._storage.removeItem("amplify-auto-sign-in")),t(data))}),r)}))},e.prototype.isTrueStorageValue=function(e){var t=this._storage.getItem(e);return!!t&&"true"===t},e.prototype.resendSignUp=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(l.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(e,r){n.resendConfirmationCode((function(t,data){t?r(t):e(data)}),t)}))},e.prototype.signIn=function(e,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var r=null,o=null,c={};if("string"==typeof e)r=e,o=t;else{if(!e.username)return this.rejectAuthError(l.InvalidUsername);void 0!==t&&Xe.warn("The password should be defined under the first parameter object!"),r=e.username,o=e.password,c=e.validationData}if(!r)return this.rejectAuthError(l.EmptyUsername);var h=new N({Username:r,Password:o,ValidationData:c,ClientMetadata:n});return o?this.signInWithPassword(h):this.signInWithoutPassword(h)},e.prototype.authCallbacks=function(e,t,n){var r=this,o=this;return{onSuccess:function(c){return f(r,void 0,void 0,(function(){var r,l,h,d;return m(this,(function(f){switch(f.label){case 0:Xe.debug(c),delete e.challengeName,delete e.challengeParam,f.label=1;case 1:return f.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return f.sent(),[4,this.Credentials.set(c,"session")];case 3:return r=f.sent(),Xe.debug("succeed to get cognito credentials",r),[3,9];case 4:return l=f.sent(),Xe.debug("cannot get cognito credentials",l),[3,9];case 5:return f.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return h=f.sent(),o.user=h,Qe("signIn",h,"A user "+e.getUsername()+" has been signed in"),t(h),[3,8];case 7:return d=f.sent(),Xe.error("Failed to get the signed in user",d),n(d),[3,8];case 8:return[7];case 9:return[2]}}))}))},onFailure:function(t){Xe.debug("signIn failure",t),Qe("signIn_failure",t,e.getUsername()+" failed to signin"),n(t)},customChallenge:function(n){Xe.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,t(e)},mfaRequired:function(n,r){Xe.debug("signIn MFA required"),e.challengeName=n,e.challengeParam=r,t(e)},mfaSetup:function(n,r){Xe.debug("signIn mfa setup",n),e.challengeName=n,e.challengeParam=r,t(e)},newPasswordRequired:function(n,r){Xe.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:n,requiredAttributes:r},t(e)},totpRequired:function(n,r){Xe.debug("signIn totpRequired"),e.challengeName=n,e.challengeParam=r,t(e)},selectMFAType:function(n,r){Xe.debug("signIn selectMFAType",n),e.challengeName=n,e.challengeParam=r,t(e)}}},e.prototype.signInWithPassword=function(e){var t=this;if(this.pendingSignIn)throw new Error("Pending sign-in attempt already in progress");var n=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new Promise((function(r,o){n.authenticateUser(e,t.authCallbacks(n,(function(e){t.pendingSignIn=null,r(e)}),(function(e){t.pendingSignIn=null,o(e)})))})),this.pendingSignIn},e.prototype.signInWithoutPassword=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise((function(r,o){n.initiateAuth(e,t.authCallbacks(n,r,o))}))},e.prototype.getMFAOptions=function(e){return new Promise((function(t,n){e.getMFAOptions((function(e,r){if(e)return Xe.debug("get MFA Options failed",e),void n(e);Xe.debug("get MFA options success",r),t(r)}))}))},e.prototype.getPreferredMFA=function(e,t){var n=this,r=this;return new Promise((function(o,c){var l=n._config.clientMetadata,h=!!t&&t.bypassCache;e.getUserData((function(t,data){return f(n,void 0,void 0,(function(){var n,l;return m(this,(function(h){switch(h.label){case 0:if(!t)return[3,5];if(Xe.debug("getting preferred mfa failed",t),!this.isSessionInvalid(t))return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return h.sent(),[3,4];case 3:return n=h.sent(),c(new Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return c(t),[2];case 5:return(l=r._getMfaTypeFromUserData(data))?(o(l),[2]):(c("invalid MFA Type"),[2])}}))}))}),{bypassCache:h,clientMetadata:l})}))},e.prototype._getMfaTypeFromUserData=function(data){var e=null,t=data.PreferredMfaSetting;if(t)e=t;else{var n=data.UserMFASettingList;if(n)0===n.length?e="NOMFA":Xe.debug("invalid case for getPreferredMFA",data);else e=data.MFAOptions?"SMS_MFA":"NOMFA"}return e},e.prototype._getUserData=function(e,t){var n=this;return new Promise((function(r,o){e.getUserData((function(t,data){return f(n,void 0,void 0,(function(){var n;return m(this,(function(c){switch(c.label){case 0:if(!t)return[3,5];if(Xe.debug("getting user data failed",t),!this.isSessionInvalid(t))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return c.sent(),[3,4];case 3:return n=c.sent(),o(new Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return o(t),[2];case 5:r(data),c.label=6;case 6:return[2]}}))}))}),t)}))},e.prototype.setPreferredMFA=function(e,t){return f(this,void 0,void 0,(function(){var n,r,o,c,h,d,v=this;return m(this,(function(y){switch(y.label){case 0:return n=this._config.clientMetadata,[4,this._getUserData(e,{bypassCache:!0,clientMetadata:n})];case 1:switch(r=y.sent(),o=null,c=null,t){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return c={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return o={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return h=r.UserMFASettingList,[4,this._getMfaTypeFromUserData(r)];case 5:if("NOMFA"===(d=y.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===d)o={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==d)return[2,this.rejectAuthError(l.InvalidMFA)];c={PreferredMfa:!1,Enabled:!1}}return h&&0!==h.length&&h.forEach((function(e){"SMS_MFA"===e?o={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(c={PreferredMfa:!1,Enabled:!1})})),[3,7];case 6:return Xe.debug("no validmfa method provided"),[2,this.rejectAuthError(l.NoMFA)];case 7:return this,[2,new Promise((function(t,r){e.setUserMfaPreference(o,c,(function(o,c){if(o)return Xe.debug("Set user mfa preference error",o),r(o);Xe.debug("Set user mfa success",c),Xe.debug("Caching the latest user data into local"),e.getUserData((function(n,data){return f(v,void 0,void 0,(function(){var o;return m(this,(function(l){switch(l.label){case 0:if(!n)return[3,5];if(Xe.debug("getting user data failed",n),!this.isSessionInvalid(n))return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return l.sent(),[3,4];case 3:return o=l.sent(),r(new Error("Session is invalid due to: "+n.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return[2,r(n)];case 5:return[2,t(c)]}}))}))}),{bypassCache:!0,clientMetadata:n})}))}))]}}))}))},e.prototype.disableSMS=function(e){return new Promise((function(t,n){e.disableMFA((function(e,data){if(e)return Xe.debug("disable mfa failed",e),void n(e);Xe.debug("disable mfa succeed",data),t(data)}))}))},e.prototype.enableSMS=function(e){return new Promise((function(t,n){e.enableMFA((function(e,data){if(e)return Xe.debug("enable mfa failed",e),void n(e);Xe.debug("enable mfa succeed",data),t(data)}))}))},e.prototype.setupTOTP=function(e){return new Promise((function(t,n){e.associateSoftwareToken({onFailure:function(e){Xe.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e){Xe.debug("associateSoftwareToken success",e),t(e)}})}))},e.prototype.verifyTotpToken=function(e,t){var n;Xe.debug("verification totp token",e,t),e&&"function"==typeof e.getSignInUserSession&&(n=e.getSignInUserSession());var r=null==n?void 0:n.isValid();return new Promise((function(n,o){e.verifySoftwareToken(t,"My TOTP device",{onFailure:function(e){Xe.debug("verifyTotpToken failed",e),o(e)},onSuccess:function(data){r||Qe("signIn",e,"A user "+e.getUsername()+" has been signed in"),Qe("verify",e,"A user "+e.getUsername()+" has been verified"),Xe.debug("verifyTotpToken success",data),n(data)}})}))},e.prototype.confirmSignIn=function(e,code,t,n){var r=this;if(void 0===n&&(n=this._config.clientMetadata),!code)return this.rejectAuthError(l.EmptyCode);var o=this;return new Promise((function(c,l){e.sendMFACode(code,{onSuccess:function(t){return f(r,void 0,void 0,(function(){var n,r,l,h;return m(this,(function(d){switch(d.label){case 0:Xe.debug(t),d.label=1;case 1:return d.trys.push([1,4,5,10]),[4,this.Credentials.clear()];case 2:return d.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=d.sent(),Xe.debug("succeed to get cognito credentials",n),[3,10];case 4:return r=d.sent(),Xe.debug("cannot get cognito credentials",r),[3,10];case 5:o.user=e,d.label=6;case 6:return d.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return l=d.sent(),e.attributes=l.attributes,[3,9];case 8:return h=d.sent(),Xe.debug("cannot get updated Cognito User",h),[3,9];case 9:return Qe("signIn",e,"A user "+e.getUsername()+" has been signed in"),c(e),[7];case 10:return[2]}}))}))},onFailure:function(e){Xe.debug("confirm signIn failure",e),l(e)}},t,n)}))},e.prototype.completeNewPassword=function(e,t,n,r){var o=this;if(void 0===n&&(n={}),void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(l.EmptyPassword);var c=this;return new Promise((function(l,h){e.completeNewPasswordChallenge(t,n,{onSuccess:function(t){return f(o,void 0,void 0,(function(){var n,r;return m(this,(function(o){switch(o.label){case 0:Xe.debug(t),o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return o.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=o.sent(),Xe.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=o.sent(),Xe.debug("cannot get cognito credentials",r),[3,6];case 5:return c.user=e,Qe("signIn",e,"A user "+e.getUsername()+" has been signed in"),l(e),[7];case 6:return[2]}}))}))},onFailure:function(e){Xe.debug("completeNewPassword failure",e),Qe("completeNewPassword_failure",e,o.user+" failed to complete the new password flow"),h(e)},mfaRequired:function(t,n){Xe.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=n,l(e)},mfaSetup:function(t,n){Xe.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,l(e)},totpRequired:function(t,n){Xe.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,l(e)}},r)}))},e.prototype.sendCustomChallengeAnswer=function(e,t,n){var r=this;if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(l.EmptyChallengeResponse);return new Promise((function(o,c){e.sendCustomChallengeAnswer(t,r.authCallbacks(e,o,c),n)}))},e.prototype.deleteUserAttributes=function(e,t){var n=this;return new Promise((function(r,o){n.userSession(e).then((function(n){e.deleteAttributes(t,(function(e,t){return e?o(e):r(t)}))}))}))},e.prototype.deleteUser=function(){return f(this,void 0,void 0,(function(){var e,t,n=this;return m(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._storageSync];case 1:return r.sent(),[3,3];case 2:throw e=r.sent(),Xe.debug("Failed to sync cache info into memory",e),new Error(e);case 3:return t=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(e,r){return f(n,void 0,void 0,(function(){var n,o=this;return m(this,(function(c){if(this.userPool){if(!(n=this.userPool.getCurrentUser()))return Xe.debug("Failed to get user from user pool"),[2,r(new Error("No current user."))];n.getSession((function(c,l){return f(o,void 0,void 0,(function(){var o,l=this;return m(this,(function(h){switch(h.label){case 0:if(!c)return[3,5];if(Xe.debug("Failed to get the user session",c),!this.isSessionInvalid(c))return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return h.sent(),[3,4];case 3:return o=h.sent(),r(new Error("Session is invalid due to: "+c.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return[2,r(c)];case 5:n.deleteUser((function(o,c){if(o)r(o);else{Qe("userDeleted",c,"The authenticated user has been deleted."),n.signOut(),l.user=null;try{l.cleanCachedItems()}catch(e){Xe.debug("failed to clear cached items")}t?l.oAuthSignOutRedirect(e,r):(Qe("signOut",l.user,"A user has been signed out"),e(c))}})),h.label=6;case 6:return[2]}}))}))}))}else Xe.debug("no Congito User pool"),r(new Error("Cognito User pool does not exist"));return[2]}))}))}))]}}))}))},e.prototype.updateUserAttributes=function(e,t,n){var r=this;void 0===n&&(n=this._config.clientMetadata);var o=[],c=this;return new Promise((function(l,h){c.userSession(e).then((function(c){for(var d in t)if("sub"!==d&&d.indexOf("_verified")<0){var f={Name:d,Value:t[d]};o.push(f)}e.updateAttributes(o,(function(e,n,details){if(e)return Qe("updateUserAttributes_failure",e,"Failed to update attributes"),h(e);var o=r.createUpdateAttributesResultList(t,null==details?void 0:details.CodeDeliveryDetailsList);return Qe("updateUserAttributes",o,"Attributes successfully updated"),l(n)}),n)}))}))},e.prototype.createUpdateAttributesResultList=function(e,t){var n={};return Object.keys(e).forEach((function(e){n[e]={isUpdated:!0};var r=null==t?void 0:t.find((function(t){return t.AttributeName===e}));r&&(n[e].isUpdated=!1,n[e].codeDeliveryDetails=r)})),n},e.prototype.userAttributes=function(e){var t=this;return new Promise((function(n,r){t.userSession(e).then((function(t){e.getUserAttributes((function(e,t){e?r(e):n(t)}))}))}))},e.prototype.verifiedContact=function(e){var t=this;return this.userAttributes(e).then((function(e){var n=t.attributesToObject(e),r={},o={};return n.email&&(n.email_verified?o.email=n.email:r.email=n.email),n.phone_number&&(n.phone_number_verified?o.phone_number=n.phone_number:r.phone_number=n.phone_number),{verified:o,unverified:r}}))},e.prototype.isErrorWithMessage=function(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Access Token has been revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has been revoked"===e.message},e.prototype.isUserDisabledError=function(e){return this.isErrorWithMessage(e)&&"User is disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return this.isErrorWithMessage(e)&&"User does not exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has expired"===e.message},e.prototype.isPasswordResetRequiredError=function(e){return this.isErrorWithMessage(e)&&"Password reset required for the user"===e.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(e){return this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||this.isRefreshTokenExpiredError(e)||this.isPasswordResetRequiredError(e)},e.prototype.cleanUpInvalidSession=function(e){return f(this,void 0,void 0,(function(){var t=this;return m(this,(function(n){switch(n.label){case 0:e.signOut(),this.user=null,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return n.sent(),[3,4];case 3:return n.sent(),Xe.debug("failed to clear cached items"),[3,4];case 4:return this.isSignedInHostedUI()?[2,new Promise((function(e,n){t.oAuthSignOutRedirect(e,n)}))]:(Qe("signOut",this.user,"A user has been signed out"),[2])}}))}))},e.prototype.currentUserPoolUser=function(e){var t=this;return this.userPool?new Promise((function(n,r){t._storageSync.then((function(){return f(t,void 0,void 0,(function(){var t,o,c,l,h,d,v=this;return m(this,(function(y){switch(y.label){case 0:return this.isOAuthInProgress()?(Xe.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise((function(e){var t=setTimeout((function(){Xe.debug("OAuth signIn in progress timeout"),_.a.remove("auth",n),e()}),1e4);function n(r){var o=r.payload.event;"cognitoHostedUI"!==o&&"cognitoHostedUI_failure"!==o||(Xe.debug("OAuth signIn resolved: "+o),clearTimeout(t),_.a.remove("auth",n),e())}_.a.listen("auth",n)}))]):[3,2];case 1:y.sent(),y.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return Xe.debug("Failed to get user from user pool"),r("No current user"),[2];y.label=3;case 3:return y.trys.push([3,7,,8]),[4,this._userSession(t)];case 4:return o=y.sent(),(c=!!e&&e.bypassCache)?[4,this.Credentials.clear()]:[3,6];case 5:y.sent(),y.label=6;case 6:return l=this._config.clientMetadata,h=o.getAccessToken().decodePayload().scope,(void 0===h?"":h).split(" ").includes(Je)?(t.getUserData((function(e,data){return f(v,void 0,void 0,(function(){var o,c,l,i,h,d,f;return m(this,(function(m){switch(m.label){case 0:if(!e)return[3,7];if(Xe.debug("getting user data failed",e),!this.isSessionInvalid(e))return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return m.sent(),[3,4];case 3:return o=m.sent(),r(new Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return r(e),[3,6];case 5:n(t),m.label=6;case 6:return[2];case 7:for(c=data.PreferredMfaSetting||"NOMFA",l=[],i=0;i<data.UserAttributes.length;i++)h={Name:data.UserAttributes[i].Name,Value:data.UserAttributes[i].Value},d=new ge(h),l.push(d);return f=this.attributesToObject(l),Object.assign(t,{attributes:f,preferredMFA:c}),[2,n(t)]}}))}))}),{bypassCache:c,clientMetadata:l}),[3,8]):(Xe.debug("Unable to get the user data because the "+Je+" is not in the scopes of the access token"),[2,n(t)]);case 7:return d=y.sent(),r(d),[3,8];case 8:return[2]}}))}))})).catch((function(e){return Xe.debug("Failed to sync cache info into memory",e),r(e)}))})):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(e){return f(this,void 0,void 0,(function(){var t,n,r,o,c;return m(this,(function(l){switch(l.label){case 0:Xe.debug("getting current authenticated user"),t=null,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this._storageSync];case 2:return l.sent(),[3,4];case 3:throw n=l.sent(),Xe.debug("Failed to sync cache info into memory",n),n;case 4:try{(r=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(t=d(d({},r.user),{token:r.token}))}catch(e){Xe.debug("cannot load federated user from auth storage")}return t?(this.user=t,Xe.debug("get current authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Xe.debug("get current authenticated userpool user"),o=null,l.label=6;case 6:return l.trys.push([6,8,,9]),[4,this.currentUserPoolUser(e)];case 7:return o=l.sent(),[3,9];case 8:return"No userPool"===(c=l.sent())&&Xe.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),Xe.debug("The user is not authenticated by the error",c),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=o,[2,this.user]}}))}))},e.prototype.currentSession=function(){var e=this;return Xe.debug("Getting current session"),this.userPool?new Promise((function(t,n){e.currentUserPoolUser().then((function(r){e.userSession(r).then((function(e){t(e)})).catch((function(e){Xe.debug("Failed to get the current session",e),n(e)}))})).catch((function(e){Xe.debug("Failed to get the current user",e),n(e)}))})):Promise.reject(new Error("No User Pool in the configuration."))},e.prototype._userSession=function(e){return f(this,void 0,void 0,(function(){var t,n,r=this;return m(this,(function(o){switch(o.label){case 0:if(!e)return Xe.debug("the user is null"),[2,this.rejectAuthError(l.NoUserSession)];t=this._config.clientMetadata,0===this.inflightSessionPromiseCounter&&(this.inflightSessionPromise=new Promise((function(n,o){e.getSession((function(t,c){return f(r,void 0,void 0,(function(){var r;return m(this,(function(l){switch(l.label){case 0:if(!t)return[3,5];if(Xe.debug("Failed to get the session from user",e),!this.isSessionInvalid(t))return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return l.sent(),[3,4];case 3:return r=l.sent(),o(new Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return o(t),[2];case 5:return Xe.debug("Succeed to get the user session",c),n(c),[2]}}))}))}),{clientMetadata:t})}))),this.inflightSessionPromiseCounter++,o.label=1;case 1:return o.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return n=o.sent(),e.signInUserSession=n,[2,n];case 3:return this.inflightSessionPromiseCounter--,[7];case 4:return[2]}}))}))},e.prototype.userSession=function(e){return this._userSession(e)},e.prototype.currentUserCredentials=function(){return f(this,void 0,void 0,(function(){var e,t,n=this;return m(this,(function(r){switch(r.label){case 0:Xe.debug("Getting current user credentials"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),[3,4];case 3:throw e=r.sent(),Xe.debug("Failed to sync cache info into memory",e),e;case 4:t=null;try{t=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(e){Xe.debug("failed to get or parse item aws-amplify-federatedInfo",e)}return t?[2,this.Credentials.refreshFederatedToken(t)]:[2,this.currentSession().then((function(e){return Xe.debug("getting session success",e),n.Credentials.set(e,"session")})).catch((function(){return Xe.debug("getting guest credentials"),n.Credentials.set(null,"guest")}))]}}))}))},e.prototype.currentCredentials=function(){return Xe.debug("getting current credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(e,t,n){return void 0===n&&(n=this._config.clientMetadata),new Promise((function(r,o){e.getAttributeVerificationCode(t,{onSuccess:function(e){return r(e)},onFailure:function(e){return o(e)}},n)}))},e.prototype.verifyUserAttributeSubmit=function(e,t,code){return code?new Promise((function(n,r){e.verifyAttribute(t,code,{onSuccess:function(data){n(data)},onFailure:function(e){r(e)}})})):this.rejectAuthError(l.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(e){var t=this;return t.currentUserPoolUser().then((function(n){return t.verifyUserAttribute(n,e)}))},e.prototype.verifyCurrentUserAttributeSubmit=function(e,code){var t=this;return t.currentUserPoolUser().then((function(n){return t.verifyUserAttributeSubmit(n,e,code)}))},e.prototype.cognitoIdentitySignOut=function(e,t){return f(this,void 0,void 0,(function(){var n,r,o=this;return m(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this._storageSync];case 1:return c.sent(),[3,3];case 2:throw n=c.sent(),Xe.debug("Failed to sync cache info into memory",n),n;case 3:return r=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(n,c){if(e&&e.global){Xe.debug("user global sign out",t);var l=o._config.clientMetadata;t.getSession((function(e,l){return f(o,void 0,void 0,(function(){var o,l=this;return m(this,(function(h){switch(h.label){case 0:if(!e)return[3,5];if(Xe.debug("failed to get the user session",e),!this.isSessionInvalid(e))return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return h.sent(),[3,4];case 3:return o=h.sent(),c(new Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return[2,c(e)];case 5:return t.globalSignOut({onSuccess:function(data){if(Xe.debug("global sign out success"),!r)return n();l.oAuthSignOutRedirect(n,c)},onFailure:function(e){return Xe.debug("global sign out failed",e),c(e)}}),[2]}}))}))}),{clientMetadata:l})}else Xe.debug("user sign out",t),t.signOut((function(){if(!r)return n();o.oAuthSignOutRedirect(n,c)}))}))]}}))}))},e.prototype.oAuthSignOutRedirect=function(e,t){Object(x.a)().isBrowser?this.oAuthSignOutRedirectOrReject(t):this.oAuthSignOutAndResolve(e)},e.prototype.oAuthSignOutAndResolve=function(e){this._oAuthHandler.signOut(),e()},e.prototype.oAuthSignOutRedirectOrReject=function(e){this._oAuthHandler.signOut(),setTimeout((function(){return e(Error("Signout timeout fail"))}),3e3)},e.prototype.signOut=function(e){return f(this,void 0,void 0,(function(){var t;return m(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return n.sent(),[3,3];case 2:return n.sent(),Xe.debug("failed to clear cached items"),[3,3];case 3:return this.userPool?(t=this.userPool.getCurrentUser())?[4,this.cognitoIdentitySignOut(e,t)]:[3,5]:[3,7];case 4:return n.sent(),[3,6];case 5:Xe.debug("no current Cognito user"),n.label=6;case 6:return[3,8];case 7:Xe.debug("no Cognito User pool"),n.label=8;case 8:return Qe("signOut",this.user,"A user has been signed out"),this.user=null,[2]}}))}))},e.prototype.cleanCachedItems=function(){return f(this,void 0,void 0,(function(){return m(this,(function(e){switch(e.label){case 0:return[4,this.Credentials.clear()];case 1:return e.sent(),[2]}}))}))},e.prototype.changePassword=function(e,t,n,r){var o=this;return void 0===r&&(r=this._config.clientMetadata),new Promise((function(c,l){o.userSession(e).then((function(o){e.changePassword(t,n,(function(e,data){return e?(Xe.debug("change password failure",e),l(e)):c(data)}),r)}))}))},e.prototype.forgotPassword=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(l.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(r,o){n.forgotPassword({onSuccess:function(){r()},onFailure:function(t){Xe.debug("forgot password failure",t),Qe("forgotPassword_failure",t,e+" forgotPassword failed"),o(t)},inputVerificationCode:function(data){Qe("forgotPassword",n,e+" has initiated forgot password flow"),r(data)}},t)}))},e.prototype.forgotPasswordSubmit=function(e,code,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(l.EmptyUsername);if(!code)return this.rejectAuthError(l.EmptyCode);if(!t)return this.rejectAuthError(l.EmptyPassword);var r=this.createCognitoUser(e);return new Promise((function(o,c){r.confirmPassword(code,t,{onSuccess:function(t){Qe("forgotPasswordSubmit",r,e+" forgotPasswordSubmit successful"),o(t)},onFailure:function(t){Qe("forgotPasswordSubmit_failure",t,e+" forgotPasswordSubmit failed"),c(t)}},n)}))},e.prototype.currentUserInfo=function(){return f(this,void 0,void 0,(function(){var source,e,t,n,r,o,c;return m(this,(function(l){switch(l.label){case 0:return(source=this.Credentials.getCredSource())&&"aws"!==source&&"userPool"!==source?[3,9]:[4,this.currentUserPoolUser().catch((function(e){return Xe.error(e)}))];case 1:if(!(c=l.sent()))return[2,null];l.label=2;case 2:return l.trys.push([2,8,,9]),[4,this.userAttributes(c)];case 3:e=l.sent(),t=this.attributesToObject(e),n=null,l.label=4;case 4:return l.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return n=l.sent(),[3,7];case 6:return r=l.sent(),Xe.debug("Failed to retrieve credentials while getting current user info",r),[3,7];case 7:return[2,{id:n?n.identityId:void 0,username:c.getUsername(),attributes:t}];case 8:return o=l.sent(),Xe.error("currentUserInfo error",o),[2,{}];case 9:return"federated"===source?[2,(c=this.user)||{}]:[2]}}))}))},e.prototype.federatedSignIn=function(e,t,n){return f(this,void 0,void 0,(function(){var r,o,l,h,d,f,v,S,_,C,O;return m(this,(function(m){switch(m.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===e&&this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation with Identity Pools requires tokens passed as arguments");return y(e)||(A=e)&&["customProvider"].find((function(e){return A.hasOwnProperty(e)}))||function(e){return e&&!!["customState"].find((function(t){return e.hasOwnProperty(t)}))}(e)||void 0===e?(r=e||{provider:c.Cognito},d=y(r)?r.provider:r.customProvider,y(r),o=r.customState,this._config.userPoolId&&(l=w(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,h=w(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,h,l,d,o)),[3,4]):[3,1];case 1:d=e;try{(f=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&Xe.warn("There is already a signed in user: "+f+" in your app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(e){}return v=t.token,S=t.identity_id,_=t.expires_at,[4,this.Credentials.set({provider:d,token:v,identity_id:S,user:n,expires_at:_},"federation")];case 2:return C=m.sent(),[4,this.currentAuthenticatedUser()];case 3:return O=m.sent(),Qe("signIn",O,"A user "+O.username+" has been signed in"),Xe.debug("federated sign in credentials",C),[2,C];case 4:return[2]}var A}))}))},e.prototype._handleAuthResponse=function(e){return f(this,void 0,void 0,(function(){var t,n,r,o,c,l,h,d,f,y,w,S,_,C;return m(this,(function(m){switch(m.label){case 0:if(this.oAuthFlowInProgress)return Xe.debug("Skipping URL "+e+" current flow in progress"),[2];m.label=1;case 1:if(m.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw new Error("OAuth responses require a User Pool defined in config");if(Qe("parsingCallbackUrl",{url:e},"The callback url is being parsed"),t=e||(Object(x.a)().isBrowser?window.location.href:""),n=!!(Object(Ue.parse)(t).query||"").split("&").map((function(e){return e.split("=")})).find((function(e){var t=v(e,1)[0];return"code"===t||"error"===t})),r=!!(Object(Ue.parse)(t).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).find((function(e){var t=v(e,1)[0];return"access_token"===t||"error"===t})),!n&&!r)return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),m.label=2;case 2:return m.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(t)];case 3:return o=m.sent(),c=o.accessToken,l=o.idToken,h=o.refreshToken,d=o.state,f=new de({IdToken:new ue({IdToken:l}),RefreshToken:new le({RefreshToken:h}),AccessToken:new se({AccessToken:c})}),y=void 0,this._config.identityPoolId?[4,this.Credentials.set(f,"session")]:[3,5];case 4:y=m.sent(),Xe.debug("AWS credentials",y),m.label=5;case 5:return w=/-/.test(d),(S=this.createCognitoUser(f.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(f),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Qe("signIn",S,"A user "+S.getUsername()+" has been signed in"),Qe("cognitoHostedUI",S,"A user "+S.getUsername()+" has been signed in via Cognito Hosted UI"),w&&(_=d.split("-").splice(1).join("-"),Qe("customOAuthState",_.match(/.{2}/g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""),"State for user "+S.getUsername())),[2,y];case 6:return C=m.sent(),Xe.debug("Error in cognito hosted auth response",C),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Qe("signIn_failure",C,"The OAuth response flow failed"),Qe("cognitoHostedUI_failure",C,"A failure occurred when returning to the Cognito Hosted UI"),Qe("customState_failure",C,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}}))}))},e.prototype.essentialCredentials=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e.prototype.attributesToObject=function(e){var t=this,n={};return e&&e.map((function(e){"email_verified"===e.Name||"phone_number_verified"===e.Name?n[e.Name]=t.isTruthyString(e.Value)||!0===e.Value:n[e.Name]=e.Value})),n},e.prototype.isTruthyString=function(e){return"function"==typeof e.toLowerCase&&"true"===e.toLowerCase()},e.prototype.createCognitoUser=function(e){var t={Username:e,Pool:this.userPool};t.Storage=this._storage;var n=this._config.authenticationFlowType,r=new Se(t);return n&&r.setAuthenticationFlowType(n),r},e.prototype._isValidAuthStorage=function(e){return!!e&&"function"==typeof e.getItem&&"function"==typeof e.setItem&&"function"==typeof e.removeItem&&"function"==typeof e.clear},e.prototype.noUserPoolErrorHandler=function(e){return!e||e.userPoolId&&e.identityPoolId?l.NoConfig:l.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return Promise.reject(new qe(e))},e.prototype.rejectNoUserPool=function(){var e=this.noUserPoolErrorHandler(this._config);return Promise.reject(new Ke(e))},e.prototype.rememberDevice=function(){return f(this,void 0,void 0,(function(){var e,t;return m(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),Xe.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n){e.setDeviceStatusRemembered({onSuccess:function(data){t(data)},onFailure:function(e){"InvalidParameterException"===e.code?n(new qe(l.DeviceConfig)):"NetworkError"===e.code?n(new qe(l.NetworkError)):n(e)}})}))]}}))}))},e.prototype.forgetDevice=function(){return f(this,void 0,void 0,(function(){var e,t;return m(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),Xe.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n){e.forgetDevice({onSuccess:function(data){t(data)},onFailure:function(e){"InvalidParameterException"===e.code?n(new qe(l.DeviceConfig)):"NetworkError"===e.code?n(new qe(l.NetworkError)):n(e)}})}))]}}))}))},e.prototype.fetchDevices=function(){return f(this,void 0,void 0,(function(){var e,t;return m(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:throw t=n.sent(),Xe.debug("The user is not authenticated by the error",t),new Error("The user is not authenticated");case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n){var r={onSuccess:function(data){var e=data.Devices.map((function(e){var t=e.DeviceAttributes.find((function(e){return"device_name"===e.Name}))||{};return{id:e.DeviceKey,name:t.Value}}));t(e)},onFailure:function(e){"InvalidParameterException"===e.code?n(new qe(l.DeviceConfig)):"NetworkError"===e.code?n(new qe(l.NetworkError)):n(e)}};e.listDevices(60,null,r)}))]}}))}))},e}(),tt=new et(null);D.a.register(tt)},,,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(8);var r=n(21),o=n(0),c=(n(328),n(329),n(28),n(5),n(1406),n(232)),l=n(510),h=n(4),d=n(26);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=c.a.extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:function(){return{isExtended:!1}},computed:{computedHeight:function(){var e=this.computedContentHeight;if(!this.isExtended)return e;var t=parseInt(this.extensionHeight);return this.isCollapsed?e:e+(isNaN(t)?0:t)},computedContentHeight:function(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes:function(){return m(m({},c.a.options.computed.classes.call(this)),{},{"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent})},isCollapsed:function(){return this.collapse},isProminent:function(){return this.prominent},styles:function(){return m(m({},this.measurableStyles),{},{height:Object(h.i)(this.computedHeight)})}},created:function(){var e=this;[["app","<v-app-bar app>"],["manual-scroll",'<v-app-bar :value="false">'],["clipped-left","<v-app-bar clipped-left>"],["clipped-right","<v-app-bar clipped-right>"],["inverted-scroll","<v-app-bar inverted-scroll>"],["scroll-off-screen","<v-app-bar scroll-off-screen>"],["scroll-target","<v-app-bar scroll-target>"],["scroll-threshold","<v-app-bar scroll-threshold>"],["card","<v-app-bar flat>"]].forEach((function(t){var n=Object(r.a)(t,2),o=n[0],c=n[1];e.$attrs.hasOwnProperty(o)&&Object(d.a)(o,c,e)}))},methods:{genBackground:function(){var e={height:Object(h.i)(this.computedHeight),src:this.src},image=this.$scopedSlots.img?this.$scopedSlots.img({props:e}):this.$createElement(l.a,{props:e});return this.$createElement("div",{staticClass:"v-toolbar__image"},[image])},genContent:function(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:Object(h.i)(this.computedContentHeight)}},Object(h.t)(this))},genExtension:function(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:Object(h.i)(this.extensionHeight)}},Object(h.t)(this,"extension"))}},render:function(e){this.isExtended=this.extended||!!this.$scopedSlots.extension;var t=[this.genContent()],data=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&t.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&t.unshift(this.genBackground()),e(this.tag,data,t)}})},,,,,,,,,function(e,t,n){"use strict";var r=n(178),o=n(47);function c(e,i){return 55296==(64512&e.charCodeAt(i))&&(!(i<0||i+1>=e.length)&&56320==(64512&e.charCodeAt(i+1)))}function l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function h(e){return 1===e.length?"0"+e:e}function d(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=o,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 p=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);r<128?n[p++]=r:r<2048?(n[p++]=r>>6|192,n[p++]=63&r|128):c(e,i)?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),n[p++]=r>>18|240,n[p++]=r>>12&63|128,n[p++]=r>>6&63|128,n[p++]=63&r|128):(n[p++]=r>>12|224,n[p++]=r>>6&63|128,n[p++]=63&r|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=h(e[i].toString(16));return t},t.htonl=l,t.toHex32=function(e,t){for(var n="",i=0;i<e.length;i++){var r=e[i];"little"===t&&(r=l(r)),n+=d(r.toString(16))}return n},t.zero2=h,t.zero8=d,t.join32=function(e,t,n,o){var c=n-t;r(c%4==0);for(var l=new Array(c/4),i=0,h=t;i<l.length;i++,h+=4){var d;d="big"===o?e[h]<<24|e[h+1]<<16|e[h+2]<<8|e[h+3]:e[h+3]<<24|e[h+2]<<16|e[h+1]<<8|e[h],l[i]=d>>>0}return l},t.split32=function(e,t){for(var n=new Array(4*e.length),i=0,r=0;i<e.length;i++,r+=4){var o=e[i];"big"===t?(n[r]=o>>>24,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=255&o):(n[r+3]=o>>>24,n[r+2]=o>>>16&255,n[r+1]=o>>>8&255,n[r]=255&o)}return n},t.rotr32=function(e,b){return e>>>b|e<<32-b},t.rotl32=function(e,b){return e<<b|e>>>32-b},t.sum32=function(a,b){return a+b>>>0},t.sum32_3=function(a,b,e){return a+b+e>>>0},t.sum32_4=function(a,b,e,t){return a+b+e+t>>>0},t.sum32_5=function(a,b,e,t,n){return a+b+e+t+n>>>0},t.sum64=function(e,t,n,r){var o=e[t],c=r+e[t+1]>>>0,l=(c<r?1:0)+n+o;e[t]=l>>>0,e[t+1]=c},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,o,c,l,dl){var h=0,d=t;return h+=(d=d+r>>>0)<t?1:0,h+=(d=d+c>>>0)<c?1:0,e+n+o+l+(h+=(d=d+dl>>>0)<dl?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,c,l,dl){return t+r+c+dl>>>0},t.sum64_5_hi=function(e,t,n,r,o,c,l,dl,h,d){var f=0,m=t;return f+=(m=m+r>>>0)<t?1:0,f+=(m=m+c>>>0)<c?1:0,f+=(m=m+dl>>>0)<dl?1:0,e+n+o+l+h+(f+=(m=m+d>>>0)<d?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,c,l,dl,h,d){return t+r+c+dl+d>>>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){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,c.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,o.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var o=r(n(419)),c=r(n(145));e.exports=t.default},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.applyCodecParameters=t.getCname=t.extractDtlsParameters=t.extractRtpCapabilities=void 0;const l=c(n(170));t.extractRtpCapabilities=function({sdpObject:e}){const t=new Map,n=[];let r=!1,o=!1;for(const c of e.media){const e=c.type;switch(e){case"audio":if(r)continue;r=!0;break;case"video":if(o)continue;o=!0;break;default:continue}for(const n of c.rtp){const r={kind:e,mimeType:`${e}/${n.codec}`,preferredPayloadType:n.payload,clockRate:n.rate,channels:n.encoding,parameters:{},rtcpFeedback:[]};t.set(r.preferredPayloadType,r)}for(const e of c.fmtp||[]){const n=l.parseParams(e.config),r=t.get(e.payload);r&&(n&&n.hasOwnProperty("profile-level-id")&&(n["profile-level-id"]=String(n["profile-level-id"])),r.parameters=n)}for(const n of c.rtcpFb||[]){const r={type:n.type,parameter:n.subtype};if(r.parameter||delete r.parameter,"*"!==n.payload){const e=t.get(n.payload);if(!e)continue;e.rtcpFeedback.push(r)}else for(const n of t.values())n.kind!==e||/.+\/rtx$/i.test(n.mimeType)||n.rtcpFeedback.push(r)}for(const t of c.ext||[]){if(t["encrypt-uri"])continue;const r={kind:e,uri:t.uri,preferredId:t.value};n.push(r)}}return{codecs:Array.from(t.values()),headerExtensions:n}},t.extractDtlsParameters=function({sdpObject:e}){let t,n=e.setup,r=e.fingerprint;if(!n||!r){const t=(e.media||[]).find((e=>0!==e.port));var o,c;if(t)null!==(o=n)&&void 0!==o||(n=t.setup),null!==(c=r)&&void 0!==c||(r=t.fingerprint)}if(!n)throw new Error("no a=setup found at SDP session or media level");if(!r)throw new Error("no a=fingerprint found at SDP session or media level");switch(n){case"active":t="client";break;case"passive":t="server";break;case"actpass":t="auto"}return{role:t,fingerprints:[{algorithm:r.type,value:r.hash}]}},t.getCname=function({offerMediaObject:e}){const t=(e.ssrcs||[]).find((line=>"cname"===line.attribute));return t?t.value:""},t.applyCodecParameters=function({offerRtpParameters:e,answerMediaObject:t}){for(const n of e.codecs){const e=n.mimeType.toLowerCase();if("audio/opus"!==e)continue;if(!(t.rtp||[]).find((e=>e.payload===n.payloadType)))continue;t.fmtp=t.fmtp||[];let r=t.fmtp.find((e=>e.payload===n.payloadType));r||(r={payload:n.payloadType,config:""},t.fmtp.push(r));const o=l.parseParams(r.config);switch(e){case"audio/opus":{const e=n.parameters["sprop-stereo"];void 0!==e&&(o.stereo=e?1:0);break}}r.config="";for(const e of Object.keys(o))r.config&&(r.config+=";"),r.config+=`${e}=${o[e]}`}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteSdp=void 0;const l=c(n(170)),h=n(116),d=n(1644),f=new h.Logger("RemoteSdp");t.RemoteSdp=class{constructor({iceParameters:e,iceCandidates:t,dtlsParameters:n,sctpParameters:r,plainRtpParameters:o,planB:c=!1}){if(this._mediaSections=[],this._midToIndex=new Map,this._iceParameters=e,this._iceCandidates=t,this._dtlsParameters=n,this._sctpParameters=r,this._plainRtpParameters=o,this._planB=c,this._sdpObject={version:0,origin:{address:"0.0.0.0",ipVer:4,netType:"IN",sessionId:1e4,sessionVersion:0,username:"mediasoup-client"},name:"-",timing:{start:0,stop:0},media:[]},e&&e.iceLite&&(this._sdpObject.icelite="ice-lite"),n){this._sdpObject.msidSemantic={semantic:"WMS",token:"*"};const e=this._dtlsParameters.fingerprints.length;this._sdpObject.fingerprint={type:n.fingerprints[e-1].algorithm,hash:n.fingerprints[e-1].value},this._sdpObject.groups=[{type:"BUNDLE",mids:""}]}o&&(this._sdpObject.origin.address=o.ip,this._sdpObject.origin.ipVer=o.ipVersion)}updateIceParameters(e){f.debug("updateIceParameters() [iceParameters:%o]",e),this._iceParameters=e,this._sdpObject.icelite=e.iceLite?"ice-lite":void 0;for(const t of this._mediaSections)t.setIceParameters(e)}updateDtlsRole(e){f.debug("updateDtlsRole() [role:%s]",e),this._dtlsParameters.role=e;for(const t of this._mediaSections)t.setDtlsRole(e)}getNextMediaSectionIdx(){for(let e=0;e<this._mediaSections.length;++e){const t=this._mediaSections[e];if(t.closed)return{idx:e,reuseMid:t.mid}}return{idx:this._mediaSections.length}}send({offerMediaObject:e,reuseMid:t,offerRtpParameters:n,answerRtpParameters:r,codecOptions:o,extmapAllowMixed:c=!1}){const l=new d.AnswerMediaSection({iceParameters:this._iceParameters,iceCandidates:this._iceCandidates,dtlsParameters:this._dtlsParameters,plainRtpParameters:this._plainRtpParameters,planB:this._planB,offerMediaObject:e,offerRtpParameters:n,answerRtpParameters:r,codecOptions:o,extmapAllowMixed:c});t?this._replaceMediaSection(l,t):this._midToIndex.has(l.mid)?this._replaceMediaSection(l):this._addMediaSection(l)}receive({mid:e,kind:t,offerRtpParameters:n,streamId:r,trackId:o}){const c=this._midToIndex.get(e);let l;if(void 0!==c&&(l=this._mediaSections[c]),l)l.planBReceive({offerRtpParameters:n,streamId:r,trackId:o}),this._replaceMediaSection(l);else{l=new d.OfferMediaSection({iceParameters:this._iceParameters,iceCandidates:this._iceCandidates,dtlsParameters:this._dtlsParameters,plainRtpParameters:this._plainRtpParameters,planB:this._planB,mid:e,kind:t,offerRtpParameters:n,streamId:r,trackId:o});const c=this._mediaSections.find((e=>e.closed));c?this._replaceMediaSection(l,c.mid):this._addMediaSection(l)}}pauseMediaSection(e){this._findMediaSection(e).pause()}resumeSendingMediaSection(e){this._findMediaSection(e).resume()}resumeReceivingMediaSection(e){this._findMediaSection(e).resume()}disableMediaSection(e){this._findMediaSection(e).disable()}closeMediaSection(e){const t=this._findMediaSection(e);return e===this._firstMid?(f.debug("closeMediaSection() | cannot close first media section, disabling it instead [mid:%s]",e),this.disableMediaSection(e),!1):(t.close(),this._regenerateBundleMids(),!0)}muxMediaSectionSimulcast(e,t){const n=this._findMediaSection(e);n.muxSimulcastStreams(t),this._replaceMediaSection(n)}planBStopReceiving({mid:e,offerRtpParameters:t}){const n=this._findMediaSection(e);n.planBStopReceiving({offerRtpParameters:t}),this._replaceMediaSection(n)}sendSctpAssociation({offerMediaObject:e}){const t=new d.AnswerMediaSection({iceParameters:this._iceParameters,iceCandidates:this._iceCandidates,dtlsParameters:this._dtlsParameters,sctpParameters:this._sctpParameters,plainRtpParameters:this._plainRtpParameters,offerMediaObject:e});this._addMediaSection(t)}receiveSctpAssociation({oldDataChannelSpec:e=!1}={}){const t=new d.OfferMediaSection({iceParameters:this._iceParameters,iceCandidates:this._iceCandidates,dtlsParameters:this._dtlsParameters,sctpParameters:this._sctpParameters,plainRtpParameters:this._plainRtpParameters,mid:"datachannel",kind:"application",oldDataChannelSpec:e});this._addMediaSection(t)}getSdp(){return this._sdpObject.origin.sessionVersion++,l.write(this._sdpObject)}_addMediaSection(e){this._firstMid||(this._firstMid=e.mid),this._mediaSections.push(e),this._midToIndex.set(e.mid,this._mediaSections.length-1),this._sdpObject.media.push(e.getObject()),this._regenerateBundleMids()}_replaceMediaSection(e,t){if("string"==typeof t){const n=this._midToIndex.get(t);if(void 0===n)throw new Error(`no media section found for reuseMid '${t}'`);const r=this._mediaSections[n];this._mediaSections[n]=e,this._midToIndex.delete(r.mid),this._midToIndex.set(e.mid,n),this._sdpObject.media[n]=e.getObject(),this._regenerateBundleMids()}else{const t=this._midToIndex.get(e.mid);if(void 0===t)throw new Error(`no media section found with mid '${e.mid}'`);this._mediaSections[t]=e,this._sdpObject.media[t]=e.getObject()}}_findMediaSection(e){const t=this._midToIndex.get(e);if(void 0===t)throw new Error(`no media section found with mid '${e}'`);return this._mediaSections[t]}_regenerateBundleMids(){this._dtlsParameters&&(this._sdpObject.groups[0].mids=this._mediaSections.filter((e=>!e.closed)).map((e=>e.mid)).join(" "))}}},function(e,t,n){"use strict";n(5),n(8);var r=n(4),o=function(e){var t=e.touchstartX,n=e.touchendX,r=e.touchstartY,o=e.touchendY;e.offsetX=n-t,e.offsetY=o-r,Math.abs(e.offsetY)<.5*Math.abs(e.offsetX)&&(e.left&&n<t-16&&e.left(e),e.right&&n>t+16&&e.right(e)),Math.abs(e.offsetX)<.5*Math.abs(e.offsetY)&&(e.up&&o<r-16&&e.up(e),e.down&&o>r+16&&e.down(e))};function c(e){var t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:function(e){return function(e,t){var n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start&&t.start(Object.assign(e,t))}(e,t)},touchend:function(e){return function(e,t){var n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end&&t.end(Object.assign(e,t)),o(t)}(e,t)},touchmove:function(e){return function(e,t){var n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move&&t.move(Object.assign(e,t))}(e,t)}}}var l={inserted:function(e,t,n){var o=t.value,l=o.parent?e.parentElement:e,h=o.options||{passive:!0};if(l){var d=c(t.value);l._touchHandlers=Object(l._touchHandlers),l._touchHandlers[n.context._uid]=d,Object(r.z)(d).forEach((function(e){l.addEventListener(e,d[e],h)}))}},unbind:function(e,t,n){var o=t.value.parent?e.parentElement:e;if(o&&o._touchHandlers){var c=o._touchHandlers[n.context._uid];Object(r.z)(c).forEach((function(e){o.removeEventListener(e,c[e])})),delete o._touchHandlers[n.context._uid]}}};t.a=l},function(e,t,n){"use strict";n(28);var r=n(4),o=n(1);t.a=o.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var e={},t=Object(r.i)(this.height),n=Object(r.i)(this.minHeight),o=Object(r.i)(this.minWidth),c=Object(r.i)(this.maxHeight),l=Object(r.i)(this.maxWidth),h=Object(r.i)(this.width);return t&&(e.height=t),n&&(e.minHeight=n),o&&(e.minWidth=o),c&&(e.maxHeight=c),l&&(e.maxWidth=l),h&&(e.width=h),e}}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(1),o=n(4),c={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.a.extend({name:"positionable",props:e.length?Object(o.o)(c,e):c})}t.a=l()},function(e,t,n){"use strict";var r=n(14),o=n(13);function c(e){for(var t=[],n=0;n<e.length;n++){var o=e[n];o.isActive&&o.isDependent?t.push(o):t.push.apply(t,Object(r.a)(c(o.$children)))}return t}t.a=Object(o.a)().extend({name:"dependent",data:function(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive:function(e){if(!e)for(var t=this.getOpenDependents(),n=0;n<t.length;n++)t[n].isActive=!1}},methods:{getOpenDependents:function(){return this.closeDependents?c(this.$children):[]},getOpenDependentElements:function(){for(var e=[],t=this.getOpenDependents(),n=0;n<t.length;n++)e.push.apply(e,Object(r.a)(t[n].getClickableDependentElements()));return e},getClickableDependentElements:function(){var e=[this.$el];return this.$refs.content&&e.push(this.$refs.content),this.overlay&&e.push(this.overlay.$el),e.push.apply(e,Object(r.a)(this.getOpenDependentElements())),e}}})},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(data){return r=!0,t=!1,data}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},o=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}}}).call(this,n(83))},function(e,t,n){"use strict";var r=n(619);t.a=r.a},,,,,function(e,t,n){"use strict";var r=n(625);t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1014),o=Object.defineProperty,c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(a,b)=>{for(var e in b||(b={}))l.call(b,e)&&d(a,e,b[e]);if(c)for(var e of c(b))h.call(b,e)&&d(a,e,b[e]);return a};function m(e,t,n={},r={}){if("string"==typeof t){return v(t,n,e,r)}return v(e,t,void 0,r)}function v(e,t,n,o){const{renderedPath:c,remainingParams:l}=path(e,t),h=function(e){return Object.keys(e).filter((t=>null!=e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{})}(l),d=function(e,t){var n,o;if(Object.keys(e).length<1)return"";const c={format:null!=(o=null==(n=null==t?void 0:t.objectFormat)?void 0:n.format)?o:"RFC1738",arrayFormat:null==t?void 0:t.arrayFormat};return r.stringify(e,c)}(h,o),f=y(c,"?",d);return n?function(e,t,n){return e.length?y(t,"/",n):y(t,"?",n)}(c,n,f):f}function path(template,e){const t=f({},e),n=template.replace(/:[_A-Za-z]+[_A-Za-z0-9]*/g,(p=>{const n=p.slice(1);return function(e,t){const n=["boolean","string","number"];if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`Missing value for path parameter ${t}.`);if(!n.includes(typeof e[t]))throw new TypeError(`Path parameter ${t} cannot be of type ${typeof e[t]}. Allowed types are: ${n.join(", ")}.`);if("string"==typeof e[t]&&""===e[t].trim())throw new Error(`Path parameter ${t} cannot be an empty string.`)}(e,n),delete t[n],encodeURIComponent(e[n])}));return{renderedPath:n,remainingParams:t}}function y(e,t,n){const r=e.endsWith(t)?e.slice(0,-t.length):e,o=n.startsWith(t)?n.slice(t.length):n;return""===r||""===o?r+o:r+t+o}},,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1388),n(186)),c=n(38),l=n(353),h=n(219),d=n(363),f=n(30),m=n(13);function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(m.a)(o.a,c.a,l.a,h.a,d.a,f.a).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes:function(){return y(y(y({"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped},this.themeClasses),this.elevationClasses),this.roundedClasses)},styles:function(){return this.measurableStyles}},render:function(e){var data={class:this.classes,style:this.styles,on:this.listeners$};return e(this.tag,this.setBackgroundColor(this.color,data),this.$slots.default)}})},function(e,t,n){"use strict";var r=n(35);n(5);function o(e,t,n){var r,o=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];o&&(o.observer.unobserve(e),delete e._observe[n.context._uid])}var c={inserted:function(e,t,n){if("undefined"!=typeof window&&"IntersectionObserver"in window){var c=t.modifiers||{},l=t.value,h="object"===Object(r.a)(l)?l:{handler:l,options:{}},d=h.handler,f=h.options,m=new IntersectionObserver((function(){var r,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=arguments.length>1?arguments[1]:void 0,f=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];if(f){var m=l.some((function(e){return e.isIntersecting}));!d||c.quiet&&!f.init||c.once&&!m&&!f.init||d(l,h,m),m&&c.once?o(e,t,n):f.init=!0}}),f);e._observe=Object(e._observe),e._observe[n.context._uid]={init:!1,observer:m},m.observe(e)}},unbind:o};t.a=c},function(e,t,n){"use strict";var r=n(35),o=(n(39),n(24),n(9),n(5),n(263)),c=n(110),l=n(13),h=n(4),d=n(26),f=Object(l.a)(o.a,c.a);t.a=f.extend({name:"activatable",props:{activator:{default:null,validator:function(e){return["string","object"].includes(Object(r.a)(e))}},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:function(){return{activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}},watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted:function(){var e=Object(h.u)(this,"activator",!0);e&&["v-slot","normal"].includes(e)&&Object(d.b)('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><v-btn v-on="on">\'',this),this.addActivatorEvents()},beforeDestroy:function(){this.removeActivatorEvents()},methods:{addActivatorEvents:function(){if(this.activator&&!this.disabled&&this.getActivator()){this.listeners=this.genActivatorListeners();for(var e=0,t=Object.keys(this.listeners);e<t.length;e++){var n=t[e];this.getActivator().addEventListener(n,this.listeners[n])}}},genActivator:function(){var e=Object(h.t)(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=e,e},genActivatorAttributes:function(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners:function(){var e=this;if(this.disabled)return{};var t={};return this.openOnHover?(t.mouseenter=function(t){e.getActivator(t),e.runDelay("open")},t.mouseleave=function(t){e.getActivator(t),e.runDelay("close")}):this.openOnClick&&(t.click=function(t){var n=e.getActivator(t);n&&n.focus(),t.stopPropagation(),e.isActive=!e.isActive}),this.openOnFocus&&(t.focus=function(t){e.getActivator(t),t.stopPropagation(),e.isActive=!e.isActive}),t},getActivator:function(e){if(this.activatorElement)return this.activatorElement;var t=null;if(this.activator){var n=this.internalActivator?this.$el:document;t="string"==typeof this.activator?n.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else if(1===this.activatorNode.length||this.activatorNode.length&&!e){var r=this.activatorNode[0].componentInstance;t=r&&r.$options.mixins&&r.$options.mixins.some((function(e){return e.options&&["activatable","menuable"].includes(e.options.name)}))?r.getActivator():this.activatorNode[0].elm}else e&&(t=e.currentTarget||e.target);return this.activatorElement=(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,this.activatorElement},getContentSlot:function(){return Object(h.t)(this,"default",this.getValueProxy(),!0)},getValueProxy:function(){var e=this;return{get value(){return e.isActive},set value(t){e.isActive=t}}},removeActivatorEvents:function(){if(this.activator&&this.activatorElement){for(var e=0,t=Object.keys(this.listeners);e<t.length;e++){var n=t[e];this.activatorElement.removeEventListener(n,this.listeners[n])}this.listeners={}}},resetActivator:function(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return h}));n(7),n(5),n(50);var r=n(79),o=n(456),c=n(367),l=n(13);function h(e){e.preventDefault()}t.a=Object(l.a)(r.a,o.a,c.a).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor:function(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var e=this,t=this.value,input=this.internalValue;return this.isMultiple?!!Array.isArray(input)&&input.some((function(n){return e.valueComparator(n,t)})):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,input):Boolean(input):this.valueComparator(input,this.trueValue)},isDirty:function(){return this.isActive},rippleState:function(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue:function(e){this.lazyValue=e,this.hasColor=e}},methods:{genLabel:function(){var label=r.a.options.methods.genLabel.call(this);return label?(label.data.on={click:h},label):label},genInput:function(e,t){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:e,type:e},t),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:h},ref:"input"})},onClick:function(e){this.onChange(),this.$emit("click",e)},onChange:function(){var e=this;if(this.isInteractive){var t=this.value,input=this.internalValue;if(this.isMultiple){Array.isArray(input)||(input=[]);var n=input.length;(input=input.filter((function(n){return!e.valueComparator(n,t)}))).length===n&&input.push(t)}else input=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(input,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(input,t)?null:t:!input;this.validate(!0,input),this.internalValue=input,this.hasColor=input}},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e)},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e)},onKeydown:function(e){}}})},function(e,t,n){"use strict";(function(e){var r=n(514),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=c&&c.exports===o&&r.a.process,h=function(){try{var e=c&&c.require&&c.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(e){}}();t.a=h}).call(this,n(605)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,n(985).__exportStar)(n(1621),t)},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",output=Math.abs(e).toString();output.length<t;)output="0"+output;return n+output}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=Function.prototype.toString;t.a=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return Vf})),n.d(t,"a",(function(){return k.a}));var r={};n.r(r),n.d(r,"AppDeckModePopin",(function(){return Y})),n.d(r,"AppMainAppBar",(function(){return X})),n.d(r,"AppMainDrawer",(function(){return J})),n.d(r,"AppSystemBar",(function(){return Z})),n.d(r,"AppVoilaEnd",(function(){return Q})),n.d(r,"AppVoilaLogo",(function(){return ee})),n.d(r,"AppVoilaLogoResponsive",(function(){return te})),n.d(r,"BackstageImageStateCard",(function(){return ne})),n.d(r,"IntegrationsBouyguesCrmSection",(function(){return re})),n.d(r,"IntegrationsHiveSection",(function(){return ie})),n.d(r,"IntegrationsHubSpotSection",(function(){return oe})),n.d(r,"IntegrationsKollectiveSection",(function(){return ae})),n.d(r,"IntegrationsPublicApiSection",(function(){return se})),n.d(r,"IntegrationsPublicClientCreateDialog",(function(){return ce})),n.d(r,"IntegrationsPublicClientRevealDialog",(function(){return ue})),n.d(r,"IntegrationsSsoSamlSection",(function(){return le})),n.d(r,"CommonActivityCard",(function(){return he})),n.d(r,"CommonAdminOnly",(function(){return de})),n.d(r,"CommonAutocomplete",(function(){return fe})),n.d(r,"CommonAvatar",(function(){return pe})),n.d(r,"CommonAvatarPicture",(function(){return me})),n.d(r,"CommonChipDivider",(function(){return ge})),n.d(r,"CommonColorSelector",(function(){return ve})),n.d(r,"CommonConfirmationDialog",(function(){return be})),n.d(r,"CommonCopyLink",(function(){return ye})),n.d(r,"CommonCount",(function(){return we})),n.d(r,"CommonDecksDialog",(function(){return Se})),n.d(r,"CommonEmojiView",(function(){return _e})),n.d(r,"CommonFontView",(function(){return Ce})),n.d(r,"CommonFooterStepper",(function(){return Oe})),n.d(r,"CommonGlobalSaving",(function(){return Ae})),n.d(r,"CommonImageView",(function(){return Te})),n.d(r,"CommonInformationDialog",(function(){return Ee})),n.d(r,"CommonLoader",(function(){return Pe})),n.d(r,"CommonLoaderWithProgress",(function(){return Me})),n.d(r,"CommonNl2br",(function(){return xe})),n.d(r,"CommonPaletteView",(function(){return ke})),n.d(r,"CommonPassword",(function(){return Ie})),n.d(r,"CommonPeriodButtonGroup",(function(){return Re})),n.d(r,"CommonPeriodFormDialog",(function(){return je})),n.d(r,"CommonStatisticsCard",(function(){return De})),n.d(r,"CommonStatisticsContainer",(function(){return Ne})),n.d(r,"CommonTooltip",(function(){return Le})),n.d(r,"CommonTranslate",(function(){return Be})),n.d(r,"LoginEmailSentPopup",(function(){return Ue})),n.d(r,"LoginPopup",(function(){return Fe})),n.d(r,"LoginOrDivider",(function(){return ze})),n.d(r,"ProgramAttendeeEmail",(function(){return $e})),n.d(r,"ProgramAttendeeOrigin",(function(){return He})),n.d(r,"ProgramAttendeeTableHeader",(function(){return Ge})),n.d(r,"ProgramEventAttendees",(function(){return Ve})),n.d(r,"ProgramEventTemplateCard",(function(){return We})),n.d(r,"SpeakersCreateSpeakerForm",(function(){return qe})),n.d(r,"SpeakersFakeSpeakerSelector",(function(){return Ke})),n.d(r,"SpeakersSessionSpeakerDialog",(function(){return Ye})),n.d(r,"SpeakersSpeakerDialog",(function(){return Xe})),n.d(r,"SpeakersSpeakerItem",(function(){return Je})),n.d(r,"SpeakersSpeakerPhoto",(function(){return Ze})),n.d(r,"SpeakersSpeakerSelector",(function(){return Qe})),n.d(r,"SpeakersStudioSpeakerDialog",(function(){return et})),n.d(r,"SpeakersFakeSpeakersConfiguration",(function(){return tt})),n.d(r,"SessionDialog",(function(){return nt})),n.d(r,"ThemesAddEmojiThemeDialog",(function(){return it})),n.d(r,"ThemesEmojiSetEditor",(function(){return ot})),n.d(r,"ThemesPaletteEditor",(function(){return at})),n.d(r,"VideoConvertedVideoItem",(function(){return st})),n.d(r,"VideoConvertedVideoItemStatus",(function(){return ct})),n.d(r,"VideoHlsPreview",(function(){return ut})),n.d(r,"VideoLabeledVideoDialog",(function(){return lt})),n.d(r,"VideoCard",(function(){return ht})),n.d(r,"VideoPreviewDialog",(function(){return ft})),n.d(r,"AppAppBarAlarmMenu",(function(){return pt})),n.d(r,"AppAppBarBackstageChatButton",(function(){return mt})),n.d(r,"AppAppBarSubscribeButton",(function(){return gt})),n.d(r,"AppAppBarUserMenu",(function(){return vt})),n.d(r,"AppMenu",(function(){return bt})),n.d(r,"AppMenuItem",(function(){return yt})),n.d(r,"BackstageAdminAssetsAdminSection",(function(){return wt})),n.d(r,"BackstageAdminAttendeeMinutes",(function(){return St})),n.d(r,"BackstageAdminControlTower",(function(){return _t})),n.d(r,"BackstageAdminMixerOrganizerPresence",(function(){return Ct})),n.d(r,"BackstageAdminOrganizations",(function(){return Ot})),n.d(r,"BackstageEmailIdentityDialog",(function(){return At})),n.d(r,"BackstageEmailIdentityStatus",(function(){return Tt})),n.d(r,"BackstagePagesCodeEditor",(function(){return Et})),n.d(r,"BackstagePagesPageLinkDialog",(function(){return Pt})),n.d(r,"BackstagePartnerKeysDirectAccessSampleCode",(function(){return Mt})),n.d(r,"BackstagePartnerKeysIntegrationInfoDialog",(function(){return xt})),n.d(r,"BackstagePartnerKeyDetailsDialog",(function(){return kt})),n.d(r,"BackstagePartnerKeyFormDialog",(function(){return It})),n.d(r,"BackstagePartnerKeySampleCode",(function(){return Rt})),n.d(r,"BackstageProgramsCreateEventDialog",(function(){return jt})),n.d(r,"BackstageProgramsEventCardSkeleton",(function(){return Dt})),n.d(r,"BackstageProgramsEventFilterField",(function(){return Nt})),n.d(r,"BackstageProgramsEventPanel",(function(){return Lt})),n.d(r,"BackstageProgramsEventSubmenu",(function(){return Bt})),n.d(r,"BackstageProgramsEventTemplateCard",(function(){return Ut})),n.d(r,"BackstageProgramsGoToSite",(function(){return Ft})),n.d(r,"BackstageProgramsProgramSelector",(function(){return zt})),n.d(r,"BackstageProgramsProgramSelectorItem",(function(){return $t})),n.d(r,"BackstageProgramsRgpdInfoDialog",(function(){return Ht})),n.d(r,"BackstageSessionsCreateSessionDialog",(function(){return Gt})),n.d(r,"BackstageSessionsDuplicateSessionDialog",(function(){return Vt})),n.d(r,"BackstageSessionsSessionCard",(function(){return Wt})),n.d(r,"BackstageSessionsSessionImage",(function(){return qt})),n.d(r,"BackstageSessionsSessionLinkDialog",(function(){return Kt})),n.d(r,"BackstageSessionsWelcomeSessionCard",(function(){return Yt})),n.d(r,"BackstageSessionsWelcomeSessionCards",(function(){return Xt})),n.d(r,"BackstageSubscribeCustomerInfo",(function(){return Jt})),n.d(r,"BackstageSubscribePlanButtonToggle",(function(){return Zt})),n.d(r,"BackstageSubscribeAccountSummary",(function(){return Qt})),n.d(r,"BackstageSubscribeAddressSummary",(function(){return en})),n.d(r,"BackstageSubscribeDialog",(function(){return tn})),n.d(r,"BackstageSubscribePaymentSummary",(function(){return nn})),n.d(r,"BackstageSubscribeStatusDialog",(function(){return rn})),n.d(r,"BackstageSubscribeSummary",(function(){return on})),n.d(r,"BackstageSubscribeUpgradeDialog",(function(){return an})),n.d(r,"BackstageSubscribeVoilaPlan",(function(){return sn})),n.d(r,"BackstageTeamAddTeamFormDialog",(function(){return cn})),n.d(r,"BackstageTeamEditOrganizerDialog",(function(){return un})),n.d(r,"BackstageTeamSelectOrganizersDialog",(function(){return ln})),n.d(r,"BackstageWebBuilder",(function(){return hn})),n.d(r,"CommonAlertsAlertContainer",(function(){return dn})),n.d(r,"CommonAlertsAlertItem",(function(){return fn})),n.d(r,"CommonAlertsAlertMessage",(function(){return pn})),n.d(r,"CommonBadgesAdminBadge",(function(){return mn})),n.d(r,"CommonBadgesLiveBadge",(function(){return gn})),n.d(r,"CommonBadgesRecordingBadge",(function(){return vn})),n.d(r,"CommonButtonsButton",(function(){return bn})),n.d(r,"CommonButtonsComboButton",(function(){return yn})),n.d(r,"CommonButtonsCopyButton",(function(){return wn})),n.d(r,"CommonButtonsDangerButton",(function(){return Sn})),n.d(r,"CommonButtonsIconButton",(function(){return _n})),n.d(r,"CommonChartsHistogramRating",(function(){return Cn})),n.d(r,"CommonChipsChip",(function(){return On})),n.d(r,"CommonChipsChipContainer",(function(){return An})),n.d(r,"CommonDialogsCloseDialog",(function(){return Tn})),n.d(r,"CommonDialogsDeckModeLinkDialog",(function(){return En})),n.d(r,"CommonDialogsFullscreenDialog",(function(){return Pn})),n.d(r,"CommonEditorRichTextEditor",(function(){return Mn})),n.d(r,"CommonEmojisClapperBoardEmoji",(function(){return xn})),n.d(r,"CommonEmojisFlashlightEmoji",(function(){return kn})),n.d(r,"CommonEmojisFramedPictureEmoji",(function(){return In})),n.d(r,"CommonEmojisHeadphoneEmoji",(function(){return Rn})),n.d(r,"CommonEmojisLightBulbEmoji",(function(){return jn})),n.d(r,"CommonEmojisMutedSpeakerEmoji",(function(){return Dn})),n.d(r,"CommonEmojisRocketEmoji",(function(){return Nn})),n.d(r,"CommonFormsDateTimePicker",(function(){return Ln})),n.d(r,"CommonFormsDateTimeRangePicker",(function(){return Bn})),n.d(r,"CommonFormsDurationPicker",(function(){return Un})),n.d(r,"CommonFormsFormExpandable",(function(){return Fn})),n.d(r,"CommonFormsFormGroup",(function(){return zn})),n.d(r,"CommonFormsFormGroupAlert",(function(){return $n})),n.d(r,"CommonFormsFormGroupExpandable",(function(){return Hn})),n.d(r,"CommonFormsFormGroupHeader",(function(){return Gn})),n.d(r,"CommonFormsFormI18n",(function(){return Vn})),n.d(r,"CommonFormsLabelledSwitch",(function(){return Wn})),n.d(r,"CommonFormsReactiveSwitch",(function(){return qn})),n.d(r,"CommonFormsRichRadioGroup",(function(){return Kn})),n.d(r,"CommonFormsSearchBar",(function(){return Yn})),n.d(r,"CommonFormsTimezonePicker",(function(){return Xn})),n.d(r,"CommonLayoutsPageContainer",(function(){return Jn})),n.d(r,"CommonLayoutsVerticalMenuLayout",(function(){return Zn})),n.d(r,"CommonLibraryAssetLabeledLibraryImageAssetDialog",(function(){return Qn})),n.d(r,"CommonLibraryImageAssetCard",(function(){return er})),n.d(r,"CommonLibraryImageAssetSelector",(function(){return nr})),n.d(r,"CommonLibraryImageAssetSelectorDialog",(function(){return rr})),n.d(r,"CommonLibraryImageAssetUploader",(function(){return ir})),n.d(r,"CommonLibraryVideoAssetSelector",(function(){return or})),n.d(r,"CommonLibraryVideoAssetSelectorDialog",(function(){return ar})),n.d(r,"CommonLibraryVideoAssetSelectorPreview",(function(){return sr})),n.d(r,"CommonLoadersTableBodyLoader",(function(){return cr})),n.d(r,"CommonMenuActionMenu",(function(){return ur})),n.d(r,"CommonMenuActionMenuItem",(function(){return lr})),n.d(r,"CommonMenuExportMenu",(function(){return dr})),n.d(r,"CommonPictureItem",(function(){return fr})),n.d(r,"CommonQrcodeQrCode",(function(){return pr})),n.d(r,"CommonTablesDraggableTable",(function(){return mr})),n.d(r,"CommonTablesTable",(function(){return gr})),n.d(r,"CommonUploadAssetUploader",(function(){return vr})),n.d(r,"CommonUploadAssetUploaderUrlMenu",(function(){return yr})),n.d(r,"CommonUploadBackgroundUploads",(function(){return wr})),n.d(r,"CommonUploadBackgroundUploadsButton",(function(){return Sr})),n.d(r,"CommonUploadImageAssetUploader",(function(){return _r})),n.d(r,"CommonUploadImageCropperDialog",(function(){return Cr})),n.d(r,"CommonUploadSimpleAssetUploader",(function(){return Or})),n.d(r,"CommonUploadDialog",(function(){return Ar})),n.d(r,"CommonUploadVideoAssetUploader",(function(){return Tr})),n.d(r,"CommonWidgetsBigWidget",(function(){return Er})),n.d(r,"OrganizationSettingsLogs",(function(){return Pr})),n.d(r,"OrganizationSettings",(function(){return Mr})),n.d(r,"ProgramAttendeesAddAttendeeMenuButton",(function(){return xr})),n.d(r,"ProgramAttendeesAdvancedSelectionDialog",(function(){return kr})),n.d(r,"ProgramAttendeesAttendeeDialog",(function(){return Ir})),n.d(r,"ProgramAttendeesCriteriaMenu",(function(){return Rr})),n.d(r,"ProgramAttendeesCriteriaSelector",(function(){return jr})),n.d(r,"ProgramAttendeesEmailAttachmentEditor",(function(){return Dr})),n.d(r,"ProgramAttendeesEmailBodyEditor",(function(){return Nr})),n.d(r,"ProgramAttendeesEmailStatisticValue",(function(){return Lr})),n.d(r,"ProgramAttendeesEmailTrackingStatisticsDialog",(function(){return Br})),n.d(r,"ProgramAttendeesFilterTitle",(function(){return Ur})),n.d(r,"ProgramAttendeesHeaderCard",(function(){return Fr})),n.d(r,"ProgramAttendeesHeaderDraggable",(function(){return zr})),n.d(r,"ProgramAttendeesHeaderSelectorDialog",(function(){return $r})),n.d(r,"ProgramAttendeesImportAttendeesAlertEventNominative",(function(){return Hr})),n.d(r,"ProgramAttendeesImportAttendeesColumnSelector",(function(){return Gr})),n.d(r,"ProgramAttendeesImportAttendeesColumnSelectorDialog",(function(){return Vr})),n.d(r,"ProgramAttendeesImportAttendeesCopyPasteDialog",(function(){return Wr})),n.d(r,"ProgramAttendeesImportAttendeesFileDialog",(function(){return qr})),n.d(r,"ProgramAttendeesInvitationLinkDialog",(function(){return Kr})),n.d(r,"ProgramAttendeesOperatorSelector",(function(){return Yr})),n.d(r,"ProgramAttendeesUploadJob",(function(){return Xr})),n.d(r,"ProgramAttendeesUploadJobs",(function(){return Jr})),n.d(r,"ProgramRecordingsScreenshotsDownloadDialog",(function(){return Zr})),n.d(r,"ProgramSessionsVideoIn",(function(){return Qr})),n.d(r,"ProgramSessionsVideoOut",(function(){return ei})),n.d(r,"ProgramSpeakersSpeakerDeleteDialog",(function(){return ti})),n.d(r,"ProgramStatisticsChatMessagesCounters",(function(){return ni})),n.d(r,"ProgramStatisticsDownloadReportsStatisticsDialog",(function(){return ri})),n.d(r,"ProgramStatisticsEngagementStatistics",(function(){return ii})),n.d(r,"ProgramStatisticsHeartbeatsCounters",(function(){return oi})),n.d(r,"ProgramStatisticsReactionsCounters",(function(){return ai})),n.d(r,"ProgramSupervisionPlayerPreview",(function(){return si})),n.d(r,"SessionSubtitleForm",(function(){return ci})),n.d(r,"ThemesLibraryAssetSection",(function(){return ui})),n.d(r,"ThemesLibraryContentSectionItem",(function(){return hi})),n.d(r,"ThemesLibrarySection",(function(){return di})),n.d(r,"BackstageAdminOrganizationsAddOrganizationDialog",(function(){return fi})),n.d(r,"BackstageAdminOrganizationsAddUserOrganizationDialog",(function(){return pi})),n.d(r,"BackstageAdminOrganizationsOrganizationMenuItem",(function(){return mi})),n.d(r,"BackstageAdminOrganizationsTable",(function(){return gi})),n.d(r,"BackstageAdminOrganizationsSelectOrganizationDialog",(function(){return vi})),n.d(r,"BackstagePagesFormsPageBannerMediaForm",(function(){return bi})),n.d(r,"BackstagePagesFormsPageBannerPlanningForm",(function(){return yi})),n.d(r,"BackstageProgramsFormsEventConfigurationForm",(function(){return wi})),n.d(r,"BackstageProgramsFormsEventLanguagesForm",(function(){return Si})),n.d(r,"BackstageProgramsFormsEventNominativeForm",(function(){return _i})),n.d(r,"BackstageProgramsFormsEventOrganizersForm",(function(){return Ci})),n.d(r,"BackstageProgramsFormsEventPresentationForm",(function(){return Oi})),n.d(r,"BackstageProgramsFormsEventRecordingForm",(function(){return Ai})),n.d(r,"BackstageProgramsFormsEventTemplateForm",(function(){return Ti})),n.d(r,"BackstageProgramsFormsEventTypeForm",(function(){return Ei})),n.d(r,"BackstageSessionsFormsBreakoutSessionLinkForm",(function(){return Pi})),n.d(r,"BackstageSessionsFormsSessionDescriptionForm",(function(){return Mi})),n.d(r,"BackstageSessionsFormsSessionPresentationForm",(function(){return xi})),n.d(r,"BackstageSessionsFormsSessionTypeForm",(function(){return ki})),n.d(r,"BackstageSessionsFormsSpeakersAssociationForm",(function(){return Ii})),n.d(r,"BackstageSessionsStatisticsAudienceFunnelCard",(function(){return Ri})),n.d(r,"BackstageSessionsStatisticsAudienceStatisticsCard",(function(){return ji})),n.d(r,"BackstageSessionsStatisticsChatStatisticsCard",(function(){return Di})),n.d(r,"BackstageSessionsStatisticsReactionStatisticsCard",(function(){return Ni})),n.d(r,"BackstageSessionsStatisticsSessionStatisticsDateRange",(function(){return Li})),n.d(r,"BackstageSessionsStatisticsSessionStatisticsDialog",(function(){return Bi})),n.d(r,"BackstageSessionsStatisticsSessionStatisticsLayout",(function(){return Ui})),n.d(r,"BackstageSessionsStatisticsSessionStatisticsTimeMenu",(function(){return Fi})),n.d(r,"BackstageSessionsStatisticsSessionStatisticsTimeSelector",(function(){return zi})),n.d(r,"BackstageSessionsStatisticsActivities",(function(){return $i})),n.d(r,"BackstageSessionsStatisticsApexCharts",(function(){return Hi})),n.d(r,"BackstageSessionsStatisticsGlobal",(function(){return Gi})),n.d(r,"BackstageWebBuilderCommonThemeElementActions",(function(){return Vi})),n.d(r,"BackstageWebBuilderAttendeePreview",(function(){return Wi})),n.d(r,"BackstageWebBuilderPanel",(function(){return qi})),n.d(r,"BackstageWebBuilderPlayerPreview",(function(){return Ki})),n.d(r,"BackstageWebBuilderDisplayCampaignDialog",(function(){return Yi})),n.d(r,"BackstageWebBuilderDisplayCampaignDisplayPreview",(function(){return Xi})),n.d(r,"BackstageWebBuilderDisplayCampaignFormatForm",(function(){return Ji})),n.d(r,"BackstageWebBuilderDisplayCampaignFormats",(function(){return Zi})),n.d(r,"BackstageWebBuilderDisplayCampaignFormatsPanel",(function(){return Qi})),n.d(r,"BackstageWebBuilderDisplayCampaignPreview",(function(){return eo})),n.d(r,"BackstageWebBuilderDisplayCampaignsManager",(function(){return to})),n.d(r,"BackstageWebBuilderDisplayCampaignsPanel",(function(){return no})),n.d(r,"BackstageWebBuilderGeneralAdvancedGeneralForm",(function(){return ro})),n.d(r,"BackstageWebBuilderGeneralAttendeeSectionsForm",(function(){return io})),n.d(r,"BackstageWebBuilderGeneralEmojisForm",(function(){return oo})),n.d(r,"BackstageWebBuilderGeneralFontsForm",(function(){return ao})),n.d(r,"BackstageWebBuilderGeneralSectionsForm",(function(){return so})),n.d(r,"BackstageWebBuilderGeneralNavigationBarForm",(function(){return co})),n.d(r,"BackstageWebBuilderGeneralPalettesForm",(function(){return uo})),n.d(r,"BackstageWebBuilderGeneralPanel",(function(){return lo})),n.d(r,"BackstageWebBuilderPagesAdvancedMenu",(function(){return ho})),n.d(r,"BackstageWebBuilderPagesBannerForm",(function(){return fo})),n.d(r,"BackstageWebBuilderPagesCollectDataForm",(function(){return po})),n.d(r,"BackstageWebBuilderPagesHighlightSessionForm",(function(){return mo})),n.d(r,"BackstageWebBuilderPagesPageDialog",(function(){return go})),n.d(r,"BackstageWebBuilderPagesPageSectionsForm",(function(){return vo})),n.d(r,"BackstageWebBuilderPagesManager",(function(){return bo})),n.d(r,"BackstageWebBuilderPagesMenu",(function(){return yo})),n.d(r,"BackstageWebBuilderPagesRichTextForm",(function(){return wo})),n.d(r,"BackstageWebBuilderPagesSectionCreationSelector",(function(){return So})),n.d(r,"BackstageWebBuilderPagesSectionForm",(function(){return _o})),n.d(r,"BackstageWebBuilderPagesSessionsForm",(function(){return Co})),n.d(r,"BackstageWebBuilderPagesSpeakersForm",(function(){return Oo})),n.d(r,"BackstageWebBuilderPagesTitleForm",(function(){return Ao})),n.d(r,"BackstageWebBuilderAdvancedPagePanel",(function(){return To})),n.d(r,"BackstageWebBuilderPagePanel",(function(){return Eo})),n.d(r,"CommonFormsDynamicForm",(function(){return Po})),n.d(r,"CommonFormsDynamicFormField",(function(){return Mo})),n.d(r,"CommonFormsDynamicFormFieldDescription",(function(){return xo})),n.d(r,"CommonFormsDynamicFormFieldModeViewer",(function(){return ko})),n.d(r,"CommonFormsDynamicFormFieldOption",(function(){return Io})),n.d(r,"ProgramAccessChip",(function(){return Ro})),n.d(r,"ProgramAccessHeader",(function(){return jo})),n.d(r,"ProgramAccessTypes",(function(){return Do})),n.d(r,"ProgramAccessAttendeesAccessAdvancedAccessOptions",(function(){return No})),n.d(r,"ProgramAccessAttendeesAccessDomains",(function(){return Lo})),n.d(r,"ProgramAccessAttendeesAccessFormConfig",(function(){return Bo})),n.d(r,"ProgramAccessAttendeesAccessFormFullscreenConfiguration",(function(){return Uo})),n.d(r,"ProgramAccessAttendeesAccessGdprDescription",(function(){return Fo})),n.d(r,"ProgramAccessAttendeesAccessInvitationDialog",(function(){return zo})),n.d(r,"ProgramAccessAttendeesAccessNewsletterSubscription",(function(){return $o})),n.d(r,"ProgramAccessAttendeesAccessRegistrationConfig",(function(){return Ho})),n.d(r,"ProgramAccessAttendeesAccessSharedPersonalData",(function(){return Go})),n.d(r,"ProgramAccessAttendeesAccessSignupUrl",(function(){return Vo})),n.d(r,"ProgramAccessAttendeesAccessVisibilitySelector",(function(){return Wo})),n.d(r,"ProgramAccessAttendees",(function(){return qo})),n.d(r,"ProgramAccessAttendeesCampaignDialog",(function(){return Ko})),n.d(r,"ProgramAccessAttendeesCampaignName",(function(){return Yo})),n.d(r,"ProgramAccessAttendeesCampaignPanel",(function(){return Xo})),n.d(r,"ProgramAccessAttendeesCampaignPanelEmailContent",(function(){return Jo})),n.d(r,"ProgramAccessAttendeesCampaignPanelRecipients",(function(){return Zo})),n.d(r,"ProgramAccessAttendeesCampaignPanelSchedule",(function(){return Qo})),n.d(r,"ProgramAccessAttendeesCampaignPanelSender",(function(){return ea})),n.d(r,"ProgramAccessAttendeesCampaignRecipient",(function(){return ta})),n.d(r,"ProgramAccessAttendeesCampaignRecipientSummary",(function(){return na})),n.d(r,"ProgramAccessAttendeesCampaignStats",(function(){return ra})),n.d(r,"ProgramAccessAttendeesCampaignStatus",(function(){return ia})),n.d(r,"ProgramAccessAttendeesCampaignCampaigns",(function(){return oa})),n.d(r,"ProgramAccessAttendeesEmailTemplatesEmailsTemplateDialog",(function(){return aa})),n.d(r,"ProgramAccessAttendeesEmailTemplatesEmailsTemplates",(function(){return sa})),n.d(r,"ProgramSessionsConductorChapterMixin",(function(){return ca})),n.d(r,"ProgramSessionsConductorAppBar",(function(){return ua})),n.d(r,"ProgramSessionsConductorItemIcon",(function(){return la})),n.d(r,"ProgramSessionsConductorPermanentActivities",(function(){return ha})),n.d(r,"ProgramSessionsConductorEraseContentsDialog",(function(){return da})),n.d(r,"ProgramSessionsConductorLiveInformation",(function(){return fa})),n.d(r,"ProgramSessionsConductorServiceMessageDialog",(function(){return pa})),n.d(r,"ProgramSessionsConductorStudioAppBar",(function(){return ma})),n.d(r,"ProgramSessionsConductorStudioBackButton",(function(){return ga})),n.d(r,"ProgramSessionsConductorStudioDestinationsButton",(function(){return va})),n.d(r,"ProgramSessionsConsoleConfigureOutputStream",(function(){return ba})),n.d(r,"ProgramSessionsModerateLiveStatus",(function(){return ya})),n.d(r,"ProgramSessionsModerateAppBar",(function(){return wa})),n.d(r,"ProgramSessionsModerateIframeApi",(function(){return Sa})),n.d(r,"ProgramSessionsModerateMessages",(function(){return _a})),n.d(r,"ProgramSessionsPreviewLanguageChooser",(function(){return Ca})),n.d(r,"ProgramSessionsSourcesEditSourceDialog",(function(){return Oa})),n.d(r,"ProgramSessionsSourcesImportSourceDialog",(function(){return Aa})),n.d(r,"ProgramSessionsSourcesSourceProtocol",(function(){return Ta})),n.d(r,"ProgramSessionsSourcesSourceSettings",(function(){return Ea})),n.d(r,"ProgramSessionsSourcesSourceSettingsDialog",(function(){return Pa})),n.d(r,"ProgramSessionsSourcesSourceStateBadge",(function(){return Ma})),n.d(r,"ProgramSessionsSourcesSubtitleLanguagesViewer",(function(){return xa})),n.d(r,"ProgramSessionsStatisticsAverageTime",(function(){return ka})),n.d(r,"ProgramSessionsStatisticsChatStatistics",(function(){return Ia})),n.d(r,"ProgramSessionsStatisticsFlagStatistics",(function(){return Ra})),n.d(r,"ProgramSessionsStatisticsPollHistograms",(function(){return ja})),n.d(r,"ProgramSessionsStatisticsQuizCountResults",(function(){return Da})),n.d(r,"ProgramSessionsStatisticsQuizPodium",(function(){return Na})),n.d(r,"ProgramSessionsStatisticsReactionDonuts",(function(){return La})),n.d(r,"ProgramSessionsStatisticsReactionStatistics",(function(){return Ba})),n.d(r,"ProgramSessionsStatisticsSatisfactionSurveyRating",(function(){return Ua})),n.d(r,"ProgramSessionsStatisticsToolStatistics",(function(){return Fa})),n.d(r,"ProgramSessionsStatisticsWordcloudRanking",(function(){return za})),n.d(r,"ProgramSessionsVelotypeInput",(function(){return $a})),n.d(r,"ThemesLibraryBackgroundsBackgroundSection",(function(){return Ha})),n.d(r,"ThemesLibraryEmojisetsEmojiSetCreateEditDialog",(function(){return Ga})),n.d(r,"ThemesLibraryEmojisetsEmojiSetSectionItem",(function(){return Va})),n.d(r,"ThemesLibraryEmojisetsEmojiSetsSection",(function(){return Wa})),n.d(r,"ThemesLibraryFlagsFlagSection",(function(){return qa})),n.d(r,"ThemesLibraryFontsFontSectionItem",(function(){return Ka})),n.d(r,"ThemesLibraryFontsSection",(function(){return Ya})),n.d(r,"ThemesLibraryForegroundsForegroundSection",(function(){return Xa})),n.d(r,"ThemesLibraryPalettesPaletteCreateEditDialog",(function(){return Ja})),n.d(r,"ThemesLibraryPalettesPaletteSectionItem",(function(){return Za})),n.d(r,"ThemesLibraryPalettesSection",(function(){return Qa})),n.d(r,"ThemesLibraryProductsPrice",(function(){return es})),n.d(r,"ThemesLibraryProductsProductCard",(function(){return ts})),n.d(r,"ThemesLibraryProductsProductDialog",(function(){return ns})),n.d(r,"ThemesLibraryProductsProductForm",(function(){return rs})),n.d(r,"ThemesLibraryProductsProductSection",(function(){return is})),n.d(r,"ThemesLibraryProductsProductSelector",(function(){return os})),n.d(r,"ThemesLibraryVideosVideoSection",(function(){return as})),n.d(r,"BackstageWebBuilderDisplayStatisticsCampaignStatisticsChartCard",(function(){return ss})),n.d(r,"BackstageWebBuilderDisplayStatisticsCampaignStatisticsCharts",(function(){return cs})),n.d(r,"BackstageWebBuilderDisplayStatisticsCampaignStatisticsDialog",(function(){return us})),n.d(r,"BackstageWebBuilderDisplayStatisticsCampaignStatisticsLayout",(function(){return ls})),n.d(r,"ProgramAccessAttendeesCampaignBannersForm",(function(){return hs})),n.d(r,"ProgramAccessAttendeesCampaignContentForm",(function(){return ds})),n.d(r,"ProgramAccessAttendeesCampaignEmailBodyForm",(function(){return fs})),n.d(r,"ProgramAccessAttendeesCampaignEmailIcsForm",(function(){return ps})),n.d(r,"ProgramAccessAttendeesCampaignInivtationLinkForm",(function(){return ms})),n.d(r,"ProgramAccessAttendeesCampaignLabelForm",(function(){return gs})),n.d(r,"ProgramAccessAttendeesCampaignRecipientsEmails",(function(){return vs})),n.d(r,"ProgramAccessAttendeesCampaignRecipientsForm",(function(){return bs})),n.d(r,"ProgramAccessAttendeesCampaignRecipientsSelector",(function(){return ys})),n.d(r,"ProgramAccessAttendeesCampaignScheduleForm",(function(){return ws})),n.d(r,"ProgramAccessAttendeesCampaignScheduleIcsForm",(function(){return Ss})),n.d(r,"ProgramAccessAttendeesCampaignSchedulePlanning",(function(){return _s})),n.d(r,"ProgramAccessAttendeesCampaignSenderForm",(function(){return Cs})),n.d(r,"ProgramSessionsConductorConfiguration",(function(){return Os})),n.d(r,"ProgramSessionsConductorDestinationsDestinationActions",(function(){return As})),n.d(r,"ProgramSessionsConductorDestinationsDestinationChip",(function(){return Ts})),n.d(r,"ProgramSessionsConductorDestinationsDestinationForm",(function(){return Es})),n.d(r,"ProgramSessionsConductorDestinationsDestinationLogo",(function(){return Ps})),n.d(r,"ProgramSessionsConductorDestinationsDialog",(function(){return Ms})),n.d(r,"ProgramSessionsConductorDestinationsPanel",(function(){return xs})),n.d(r,"ProgramSessionsConductorPlayer",(function(){return ks})),n.d(r,"ProgramSessionsConductorPlayerContainer",(function(){return Is})),n.d(r,"ProgramSessionsConductorPlayerIframeTypes",(function(){return Rs})),n.d(r,"ProgramSessionsConductorPlayerAppBar",(function(){return js})),n.d(r,"ProgramSessionsConductorSettingsBurgerMenuSettings",(function(){return Ds})),n.d(r,"ProgramSessionsConductorSettingsDialog",(function(){return Ns})),n.d(r,"ProgramSessionsConductorSettingsHiveSettings",(function(){return Ls})),n.d(r,"ProgramSessionsConductorSettingsKollectiveSettings",(function(){return Bs})),n.d(r,"ProgramSessionsConductorSettingsPlayerSettings",(function(){return Us})),n.d(r,"ProgramSessionsConductorSettingsSubtitlesSettings",(function(){return Fs})),n.d(r,"ProgramSessionsConductorSettingsVideoOrientationSelector",(function(){return zs})),n.d(r,"ProgramSessionsConductorStudioMixerState",(function(){return $s})),n.d(r,"ProgramSessionsConductorStudioProStudio",(function(){return Hs})),n.d(r,"ProgramSessionsConductorStudioSpeakerLinkDialog",(function(){return Gs})),n.d(r,"ProgramSessionsConductorStudioSpeakerStreamLinkDialog",(function(){return Vs})),n.d(r,"ProgramSessionsConductorStudioSpeakersPermissionsConfiguration",(function(){return Ws})),n.d(r,"ProgramSessionsConductorStudioChat",(function(){return qs})),n.d(r,"ProgramSessionsConductorStudioMobileInfoDialog",(function(){return Ks})),n.d(r,"ProgramSessionsConductorStudioWebStudio",(function(){return Ys})),n.d(r,"ProgramSessionsConductorTimelineActivityCard",(function(){return Xs})),n.d(r,"ProgramSessionsConductorTimelineActivityChooserDialog",(function(){return Js})),n.d(r,"ProgramSessionsConductorTimelineActuatorButton",(function(){return Zs})),n.d(r,"ProgramSessionsConductorCard",(function(){return Qs})),n.d(r,"ProgramSessionsConductorDraggable",(function(){return ec})),n.d(r,"ProgramSessionsConductorTimeline",(function(){return tc})),n.d(r,"ProgramSessionsConductorTimelineDurationChip",(function(){return nc})),n.d(r,"ProgramSessionsConductorTimelineEngagementRate",(function(){return rc})),n.d(r,"ProgramSessionsConductorTimelineHourChipDivider",(function(){return ic})),n.d(r,"ProgramSessionsReplayRecordings",(function(){return oc})),n.d(r,"ProgramSessionsReplayReplayManagementPodcastRecording",(function(){return ac})),n.d(r,"ProgramSessionsReplay",(function(){return sc})),n.d(r,"ProgramSessionsReplayEditor",(function(){return cc})),n.d(r,"ProgramSessionsReplayPlayerPreview",(function(){return uc})),n.d(r,"ProgramSessionsReplayPublisher",(function(){return lc})),n.d(r,"ProgramSessionsReplayRecordingChooser",(function(){return hc})),n.d(r,"ProgramSessionsReplayRecordingCropper",(function(){return dc})),n.d(r,"ProgramSessionsReplayRecordingManagement",(function(){return fc})),n.d(r,"ProgramSessionsReplaySourceStateIcon",(function(){return pc})),n.d(r,"ProgramSessionsReplayUploadManagement",(function(){return mc})),n.d(r,"ProgramSessionsReplayService",(function(){return gc})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitor",(function(){return vc})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitorDetails",(function(){return bc})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitorDialog",(function(){return yc})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitorMetrics",(function(){return wc})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitorPreview",(function(){return Sc})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitorSection",(function(){return _c})),n.d(r,"ProgramSessionsConductorMonitorIvsMonitorSummary",(function(){return Cc})),n.d(r,"ProgramSessionsConductorMonitorIvsBitrate",(function(){return Oc})),n.d(r,"ProgramSessionsConductorMonitorVhsPeerMetricsTable",(function(){return Ac})),n.d(r,"ProgramSessionsConductorMonitorVhsPeerMonitorDetails",(function(){return Tc})),n.d(r,"ProgramSessionsConductorMonitorVhsPeerMonitorSummary",(function(){return Ec})),n.d(r,"ProgramSessionsConductorMonitorVhsPeerVideoStreams",(function(){return Pc})),n.d(r,"ProgramSessionsConductorMonitorVhsMonitor",(function(){return Mc})),n.d(r,"ProgramSessionsConductorMonitorVhsMonitorDialog",(function(){return xc})),n.d(r,"ProgramSessionsConductorMonitorVhsMonitorSection",(function(){return kc})),n.d(r,"ProgramSessionsConductorMonitorVhsVideoStream",(function(){return Ic})),n.d(r,"ProgramSessionsConductorMonitorVhsVolumeEstimator",(function(){return Rc})),n.d(r,"ProgramSessionsConductorMonitorUtils",(function(){return jc})),n.d(r,"ProgramSessionsConductorStudioLayoutIcon",(function(){return Dc})),n.d(r,"ProgramSessionsConductorStudioLayoutSelector",(function(){return Nc})),n.d(r,"ProgramSessionsConductorStudioLayoutWidget",(function(){return Lc})),n.d(r,"ProgramSessionsConductorStudioLayout",(function(){return Bc})),n.d(r,"ProgramSessionsConductorStudioSlideConfiguration",(function(){return Uc})),n.d(r,"ProgramSessionsConductorStudioSlideDeleteDialog",(function(){return Fc})),n.d(r,"ProgramSessionsConductorStudioSlideDialog",(function(){return zc})),n.d(r,"ProgramSessionsConductorStudioSlidePicturesSelector",(function(){return $c})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsGreenBackgroundWarning",(function(){return Hc})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsPreventInteractionLayer",(function(){return Gc})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsSoloButton",(function(){return Vc})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsSourcesAppBar",(function(){return Wc})),n.d(r,"ProgramSessionsConductorStudioStageWidget",(function(){return qc})),n.d(r,"ProgramSessionsConductorStudioStageWidgetCardLayout",(function(){return Kc})),n.d(r,"ProgramSessionsConductorStudioStageWidgetItem",(function(){return Yc})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoSceneBadge",(function(){return Xc})),n.d(r,"ProgramSessionsConductorItemActuator",(function(){return Jc})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityLayout",(function(){return Zc})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityPreviewPlayer",(function(){return Qc})),n.d(r,"ProgramSessionsConductorItemDialog",(function(){return eu})),n.d(r,"ProgramSessionsConductorTimelineCreateFormActivityDnd",(function(){return tu})),n.d(r,"ProgramSessionsConductorTimelineItemDialog",(function(){return nu})),n.d(r,"ProgramSessionsConductorItemLive",(function(){return ru})),n.d(r,"ProgramSessionsConductorTimelineLiveLayout",(function(){return iu})),n.d(r,"ProgramSessionsConductorTimelineBottomMenu",(function(){return ou})),n.d(r,"ProgramSessionsConductorTimelineBottomMenuButton",(function(){return au})),n.d(r,"ProgramSessionsConductorTimelineDividerMenu",(function(){return su})),n.d(r,"ProgramSessionsConductorTimelineAfterLive",(function(){return cu})),n.d(r,"ProgramSessionsConductorTimelineBeforeLive",(function(){return uu})),n.d(r,"ProgramSessionsConductorTimelineBeginLive",(function(){return lu})),n.d(r,"ProgramSessionsConductorTimelineEndLive",(function(){return hu})),n.d(r,"ProgramSessionsConductorTimelineSection",(function(){return du})),n.d(r,"ProgramSessionsConductorTimelineSectionCard",(function(){return fu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsFullscreenIcon",(function(){return pu})),n.d(r,"ProgramSessionsConductorStudioLayoutMixin",(function(){return mu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsMosaicIcon",(function(){return gu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsPipBigIcon",(function(){return vu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsPipIcon",(function(){return bu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsPipUpIcon",(function(){return yu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsPortraitFullscreenIcon",(function(){return wu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsPortraitPipUpIcon",(function(){return Su})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsSharingClassicIcon",(function(){return _u})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsSharingIcon",(function(){return Cu})),n.d(r,"ProgramSessionsConductorStudioLayoutIconsSideBySideIcon",(function(){return Ou})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsRemoteSpeakerJoinWidgetItem",(function(){return Au})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsRemoteSpeaker",(function(){return Tu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsRemoteSpeakerIframeTypes",(function(){return Eu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsSlideWidgetCard",(function(){return Pu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsSpeakerAudioWavelet",(function(){return Mu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsSpeakerWidgetCard",(function(){return xu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsSpeakerVideoThumbnail",(function(){return ku})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileFakeSpeakerDialog",(function(){return Iu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileFakeSpeakerWidgetCard",(function(){return Ru})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileProgressTooltip",(function(){return ju})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileDeleteDialog",(function(){return Du})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileDialog",(function(){return Nu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileWidgetCard",(function(){return Lu})),n.d(r,"ProgramSessionsConductorStudioStageWidgetsVideoFileWidgetProgressBar",(function(){return Bu})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityActuator",(function(){return Uu})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityCommentActuator",(function(){return Fu})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityPhotoWallActuator",(function(){return zu})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityPollActuator",(function(){return $u})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityQuestionActuator",(function(){return Hu})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityQuizActuator",(function(){return Gu})),n.d(r,"ProgramSessionsConductorTimelineActuatorActivityVideoQuestionActuator",(function(){return Vu})),n.d(r,"ProgramSessionsConductorTimelineActuatorChapterActuator",(function(){return Wu})),n.d(r,"ProgramSessionsConductorTimelineActuatorSceneBannerActuator",(function(){return qu})),n.d(r,"ProgramSessionsConductorTimelineActuatorSceneActuator",(function(){return Ku})),n.d(r,"ProgramSessionsConductorTimelineActuatorSceneVideoFileActuator",(function(){return Yu})),n.d(r,"ProgramSessionsConductorTimelineActuatorToolProductToolActuator",(function(){return Xu})),n.d(r,"ProgramSessionsConductorTimelineActuatorToolActuator",(function(){return Ju})),n.d(r,"ProgramSessionsConductorTimelineActuatorToolGroupActuator",(function(){return Zu})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityCommentCreate",(function(){return Qu})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityFlagCreate",(function(){return el})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityModel3dCreate",(function(){return tl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityPhotoWallCreate",(function(){return nl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityPollCreate",(function(){return rl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityQuestionCreate",(function(){return il})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityQuizCreate",(function(){return al})),n.d(r,"ProgramSessionsConductorTimelineCreateActivitySatisfactionSurveyCreate",(function(){return sl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityShortcutCreate",(function(){return cl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityVideoQuestionCreate",(function(){return ll})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityWordcloudCreate",(function(){return hl})),n.d(r,"ProgramSessionsConductorTimelineCreateChapterCreate",(function(){return fl})),n.d(r,"ProgramSessionsConductorTimelineCreateOffliveMediaFileCreate",(function(){return pl})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneBannerCreate",(function(){return ml})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneCreate",(function(){return gl})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneVideoFileCreate",(function(){return vl})),n.d(r,"ProgramSessionsConductorTimelineCreateToolFormCreate",(function(){return bl})),n.d(r,"ProgramSessionsConductorTimelineCreateToolIFrameCreate",(function(){return yl})),n.d(r,"ProgramSessionsConductorTimelineCreateToolProductCreate",(function(){return wl})),n.d(r,"ProgramSessionsConductorTimelineCreateToolRedirectCreate",(function(){return Sl})),n.d(r,"ProgramSessionsConductorTimelineCreateToolGroupCreate",(function(){return _l})),n.d(r,"ProgramSessionsConductorTimelineLiveActivityPhotoWallLive",(function(){return Cl})),n.d(r,"ProgramSessionsConductorTimelineLiveActivityPollLive",(function(){return Ol})),n.d(r,"ProgramSessionsConductorTimelineLiveActivityQuestionLive",(function(){return Al})),n.d(r,"ProgramSessionsConductorTimelineLiveActivityQuizLive",(function(){return Tl})),n.d(r,"ProgramSessionsConductorTimelineLiveActivityVideoQuestionLive",(function(){return El})),n.d(r,"ProgramSessionsConductorTimelineLiveChapterLive",(function(){return Pl})),n.d(r,"ProgramSessionsConductorTimelineLiveOffliveMediaFileLive",(function(){return Ml})),n.d(r,"ProgramSessionsConductorSceneCard",(function(){return xl})),n.d(r,"ProgramSessionsConductorTimelineLiveSceneLive",(function(){return kl})),n.d(r,"ProgramSessionsConductorTimelineLiveSceneVideoFileLive",(function(){return Il})),n.d(r,"ProgramSessionsConductorTimelineLiveSceneVideoTimer",(function(){return Rl})),n.d(r,"ProgramSessionsConductorTimelineLiveToolGroupLive",(function(){return jl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityPollCreateOption",(function(){return Dl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityQuizFormOptions",(function(){return Nl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityQuizFormQuestion",(function(){return Ll})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityTitleFormActivityTitle",(function(){return Bl})),n.d(r,"ProgramSessionsConductorTimelineCreateActivityWordcloudEntryField",(function(){return Ul})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneSourceSelectorSlideSelector",(function(){return Fl})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneSourceSelectorSlideSelectorItem",(function(){return zl})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneSourceSelectorSpeakerSelectorItem",(function(){return $l})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneSourceSelectorStageSelector",(function(){return Hl})),n.d(r,"ProgramSessionsConductorTimelineCreateSceneSourceSelectorVideoFileSelector",(function(){return Gl}));n(6),n(7),n(10),n(11),n(9),n(8);var o=n(2),c=n(0),l=(n(15),n(22),n(24),n(5),n(34),n(69),n(1)),h=n(16),d=n(428),f=n(629),m=n.n(f),v=n(386),y=n.n(v),w=(n(33),n(36),n(630)),S=n(239),_=n(19);n(28);"scrollRestoration"in window.history&&(Object(_.u)("manual"),window.addEventListener("beforeunload",(function(){Object(_.u)("auto")})),window.addEventListener("load",(function(){Object(_.u)("manual")})));function C(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?C(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):C(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var A=function(){};l.a.use(w.a);var T={mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(e,t,n){var r=!1,o=e!==t;n?r=n:o&&function(e){var t=Object(_.g)(e);if(1===t.length){var n=t[0].options;return!1!==(void 0===n?{}:n).scrollToTop}return t.some((function(e){var t=e.options;return t&&t.scrollToTop}))}(e)&&(r={x:0,y:0});var c=window.$nuxt;return(!o||e.path===t.path&&e.hash!==t.hash)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(t){c.$once("triggerScroll",(function(){if(e.hash){var n=e.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{var o=document.querySelector(n);if(o){var c;r={selector:n};var l=Number(null===(c=getComputedStyle(o)["scroll-margin-top"])||void 0===c?void 0:c.replace("px",""));l&&(r.offset={y:l})}}catch(e){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}t(r)}))}))},routes:[{path:"/admin",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(14),n.e(26),n.e(409)]).then(n.bind(null,2570)))},name:"admin"},{path:"/login",component:function(){return Object(_.m)(n.e(412).then(n.bind(null,2571)))},name:"login"},{path:"/login-define-password",component:function(){return Object(_.m)(n.e(413).then(n.bind(null,2572)))},name:"login-define-password"},{path:"/login-finalize",component:function(){return Object(_.m)(n.e(414).then(n.bind(null,2573)))},name:"login-finalize"},{path:"/login-reset",component:function(){return Object(_.m)(n.e(415).then(n.bind(null,2574)))},name:"login-reset"},{path:"/login-reset-finalize",component:function(){return Object(_.m)(n.e(416).then(n.bind(null,2575)))},name:"login-reset-finalize"},{path:"/org",component:function(){return Object(_.m)(n.e(451).then(n.bind(null,2609)))},name:"org"},{path:"/signup",component:function(){return Object(_.m)(n.e(452).then(n.bind(null,2576)))},name:"signup"},{path:"/signup-finalize",component:function(){return Object(_.m)(n.e(453).then(n.bind(null,2577)))},name:"signup-finalize"},{path:"/integrations/hubspot/oAuthCallback",component:function(){return Object(_.m)(n.e(411).then(n.bind(null,2578)))},name:"integrations-hubspot-oAuthCallback"},{path:"/",component:function(){return Object(_.m)(n.e(410).then(n.bind(null,2579)))},name:"index"},{path:"/org/:organizationId",component:function(){return Object(_.m)(n.e(417).then(n.bind(null,2580)))},children:[{path:"",component:function(){return Object(_.m)(n.e(423).then(n.bind(null,2581)))},name:"org-organizationId"},{path:"account",component:function(){return Object(_.m)(Promise.all([n.e(28),n.e(418)]).then(n.bind(null,2582)))},name:"org-organizationId-account"},{path:"consumption",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(419)]).then(n.bind(null,2567)))},name:"org-organizationId-consumption"},{path:"dashboard",component:function(){return Object(_.m)(n.e(420).then(n.bind(null,2610)))},name:"org-organizationId-dashboard"},{path:"email",component:function(){return Object(_.m)(n.e(421).then(n.bind(null,2418)))},name:"org-organizationId-email"},{path:"integrations",component:function(){return Object(_.m)(n.e(424).then(n.bind(null,2583)))},name:"org-organizationId-integrations"},{path:"library",component:function(){return Object(_.m)(Promise.all([n.e(2),n.e(18),n.e(25),n.e(35),n.e(425)]).then(n.bind(null,2584)))},name:"org-organizationId-library"},{path:"partner-keys",component:function(){return Object(_.m)(n.e(36).then(n.bind(null,2552)))},name:"org-organizationId-partner-keys"},{path:"preview",component:function(){return Object(_.m)(n.e(426).then(n.bind(null,2585)))},name:"org-organizationId-preview"},{path:"programs",component:function(){return Object(_.m)(n.e(448).then(n.bind(null,2611)))},name:"org-organizationId-programs"},{path:"settings",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(10),n.e(14),n.e(36),n.e(449)]).then(n.bind(null,2586)))},name:"org-organizationId-settings"},{path:"team",component:function(){return Object(_.m)(n.e(450).then(n.bind(null,2419)))},name:"org-organizationId-team"},{path:"programs/:programId",component:function(){return Object(_.m)(n.e(427).then(n.bind(null,2587)))},children:[{path:"",component:function(){return Object(_.m)(n.e(431).then(n.bind(null,2612)))},name:"org-organizationId-programs-programId"},{path:"access-attendees",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(428)]).then(n.bind(null,2588)))},name:"org-organizationId-programs-programId-access-attendees"},{path:"configuration",component:function(){return Object(_.m)(n.e(429).then(n.bind(null,2589)))},name:"org-organizationId-programs-programId-configuration"},{path:"customization",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(19),n.e(430)]).then(n.bind(null,2590)))},name:"org-organizationId-programs-programId-customization"},{path:"sessions",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(10),n.e(13),n.e(446)]).then(n.bind(null,2591)))},name:"org-organizationId-programs-programId-sessions"},{path:"supervision",component:function(){return Object(_.m)(n.e(447).then(n.bind(null,2592)))},name:"org-organizationId-programs-programId-supervision"},{path:"sessions/:sessionId",component:function(){return Object(_.m)(n.e(432).then(n.bind(null,2593)))},children:[{path:"",component:function(){return Object(_.m)(n.e(435).then(n.bind(null,2613)))},name:"org-organizationId-programs-programId-sessions-sessionId"},{path:"conductor",component:function(){return Object(_.m)(Promise.all([n.e(6),n.e(8),n.e(9),n.e(12),n.e(433)]).then(n.bind(null,2568)))},name:"org-organizationId-programs-programId-sessions-sessionId-conductor"},{path:"configuration",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(7),n.e(434)]).then(n.bind(null,2594)))},name:"org-organizationId-programs-programId-sessions-sessionId-configuration"},{path:"integration-site",component:function(){return Object(_.m)(Promise.all([n.e(37),n.e(436)]).then(n.bind(null,2595)))},name:"org-organizationId-programs-programId-sessions-sessionId-integration-site"},{path:"moderator",component:function(){return Object(_.m)(Promise.all([n.e(12),n.e(31),n.e(437)]).then(n.bind(null,2596)))},name:"org-organizationId-programs-programId-sessions-sessionId-moderator"},{path:"monitor",component:function(){return Object(_.m)(Promise.all([n.e(6),n.e(8),n.e(9),n.e(438)]).then(n.bind(null,2597)))},name:"org-organizationId-programs-programId-sessions-sessionId-monitor"},{path:"onstage",component:function(){return Object(_.m)(n.e(439).then(n.bind(null,2598)))},name:"org-organizationId-programs-programId-sessions-sessionId-onstage"},{path:"podcast-configuration",component:function(){return Object(_.m)(Promise.all([n.e(15),n.e(17),n.e(16),n.e(440)]).then(n.bind(null,2599)))},name:"org-organizationId-programs-programId-sessions-sessionId-podcast-configuration"},{path:"replay",component:function(){return Object(_.m)(Promise.all([n.e(15),n.e(17),n.e(16),n.e(34),n.e(441)]).then(n.bind(null,2600)))},name:"org-organizationId-programs-programId-sessions-sessionId-replay"},{path:"speaker",component:function(){return Object(_.m)(n.e(442).then(n.bind(null,2601)))},name:"org-organizationId-programs-programId-sessions-sessionId-speaker"},{path:"statistics",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(10),n.e(13),n.e(443)]).then(n.bind(null,2602)))},name:"org-organizationId-programs-programId-sessions-sessionId-statistics"},{path:"velotype",component:function(){return Object(_.m)(Promise.all([n.e(458),n.e(444)]).then(n.bind(null,2603)))},name:"org-organizationId-programs-programId-sessions-sessionId-velotype"},{path:"velotype-helper",component:function(){return Object(_.m)(n.e(445).then(n.bind(null,2411)))},name:"org-organizationId-programs-programId-sessions-sessionId-velotype-helper"}]}]},{path:"events/*",component:function(){return Object(_.m)(n.e(422).then(n.bind(null,2604)))},name:"org-organizationId-events-all"}]}],fallback:!1};function E(e,t){var base=t._app&&t._app.basePath||T.base,n=new w.a(O(O({},T),{},{base:base})),r=n.push;n.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,n=arguments.length>2?arguments[2]:void 0;return r.call(this,e,t,n)};var o=n.resolve.bind(n);return n.resolve=function(e,t,n){return"string"==typeof e&&(e=Object(S.c)(e)),o(e,t,n)},n}var P={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(e,t){var n=t.parent,data=t.data,r=t.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,h=n.$nuxt.nuxt.defaultTransition,d=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&d++,n=n.$parent;data.nuxtChildDepth=d;var f=l[d]||h,m={};M.forEach((function(e){void 0!==f[e]&&(m[e]=f[e])}));var v={};x.forEach((function(e){"function"==typeof f[e]&&(v[e]=f[e].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(e){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,e)},!1===f.css){var w=v.leave;(!w||w.length<2)&&(v.leave=function(e,t){w&&w.call(c,e),c.$nextTick(t)})}var S=o("routerView",data);return r.keepAlive&&(S=o("keep-alive",{props:r.keepAliveProps},[S])),o("transition",{props:m,on:v},[S])}},M=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],x=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],k=n(245),I=n(21),R=(n(50),{name:"Nuxt",components:{NuxtChild:P,NuxtError:k.a},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(e){this.displayingNuxtError&&(this.errorFromNuxtError=e,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(_.c)(this.$route.matched[0].path)(this.$route.params);var e=Object(I.a)(this.$route.matched,1)[0];if(!e)return this.$route.path;var t=e.components.default;if(t&&t.options){var n=t.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){l.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(e){var t=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return t.errorFromNuxtError=!1})),e("div",{},[e("h2","An error occurred while showing the error page"),e("p","Unfortunately an error occurred and while showing the error page another error occurred"),e("p","Error details: ".concat(this.errorFromNuxtError.toString())),e("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return t.displayingNuxtError=!1})),e(k.a,{props:{error:this.nuxt.err}})):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),j=(n(49),n(94),n(66),n(54),n(1397),n(1398),n(1085)),D=n(1086),N=n(1087);function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return B(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 B(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var U={_default:Object(_.s)(j.a),_empty:Object(_.s)(D.a),_studio:Object(_.s)(N.a)},F={render:function(e,t){var n=e(this.layout||"nuxt"),r=e("div",{domProps:{id:"__layout"},key:this.layoutName},[n]),o=e("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(e){window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}}},[r]);return e("div",{domProps:{id:"__nuxt"}},[o])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){l.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Object(_.h)(e.$route)).length){t.next=3;break}return t.abrupt("return");case 3:return r=n.map(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n){var p,r,o,component;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p=[],n.$options.fetch&&n.$options.fetch.length&&p.push(Object(_.q)(n.$options.fetch,e.context)),n.$options.asyncData&&p.push(Object(_.q)(n.$options.asyncData,e.context).then((function(e){for(var t in e)l.a.set(n.$data,t,e[t])}))),t.next=5,Promise.all(p);case 5:p=[],n.$fetch&&p.push(n.$fetch()),r=L(Object(_.e)(n.$vnode.componentInstance));try{for(r.s();!(o=r.n()).done;)component=o.value,p.push(component.$fetch())}catch(e){r.e(e)}finally{r.f()}return t.abrupt("return",Promise.all(p));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.prev=4,t.next=7,Promise.all(r);case 7:t.next=13;break;case 9:t.prev=9,t.t0=t.catch(4),Object(_.k)(t.t0),e.error(t.t0);case 13:case"end":return t.stop()}}),t,null,[[4,9]])})))()},errorChanged:function(){if(this.nuxt.err){var e=(k.a.options||k.a).layout;"function"==typeof e&&(e=e(this.context)),this.setLayout(e)}},setLayout:function(e){return e&&U["_"+e]||(e="default"),this.layoutName=e,this.layout=U["_"+e],this.layout},loadLayout:function(e){return e&&U["_"+e]||(e="default"),Promise.resolve(U["_"+e])}}};n(39);l.a.use(h.a);var z=["state","getters","actions","mutations"],$={};($=function(e,t){if((e=e.default||e).commit)throw new Error("[nuxt] ".concat(t," should export a method that returns a Vuex instance."));return"function"!=typeof e&&(e=Object.assign({},e)),G(e,t)}(n(45),"store/index.ts")).modules=$.modules||{},V(n(1468),"getters.ts"),V(n(424),"alerts/actions.ts"),V(n(520),"alerts/mutations.ts"),V(n(1469),"alerts/state.ts"),V(n(297),"organizations/actions.ts"),V(n(112),"organizations/mutations.ts"),V(n(1470),"organizations/state.ts"),V(n(225),"programs/actions.ts"),V(n(1471),"programs/getters.ts"),V(n(77),"programs/mutations.ts"),V(n(1472),"programs/state.ts"),V(n(1199),"programs/attendees/actions.ts"),V(n(1493),"programs/attendees/getters.ts"),V(n(382),"programs/attendees/mutations.ts"),V(n(1494),"programs/attendees/state.ts"),V(n(1200),"programs/emails/actions.ts"),V(n(1495),"programs/emails/getters.ts"),V(n(241),"programs/emails/mutations.ts"),V(n(1496),"programs/emails/state.ts"),V(n(1497),"programs/monitoring/getters.ts"),V(n(1204),"programs/monitoring/mutations.ts"),V(n(1498),"programs/monitoring/state.ts"),V(n(1499),"programs/sessions/actions.ts"),V(n(1605),"programs/sessions/getters.ts"),V(n(20),"programs/sessions/mutations.ts"),V(n(1606),"programs/sessions/state.ts"),V(n(393),"programs/signup/actions.ts"),V(n(1607),"programs/signup/getters.ts"),V(n(161),"programs/signup/mutations.ts"),V(n(1608),"programs/signup/state.ts"),V(n(164),"programs/speakers/actions.ts"),V(n(1609),"programs/speakers/getters.ts"),V(n(120),"programs/speakers/mutations.ts"),V(n(1610),"programs/speakers/state.ts");var H=$ instanceof Function?$:function(){return new h.a.Store(Object.assign({strict:!1},$))};function G(e,t){if(e.state&&"function"!=typeof e.state){console.warn("'state' should be a method that returns an object in ".concat(t));var n=Object.assign({},e.state);e=Object.assign({},e,{state:function(){return n}})}return e}function V(e,t){e=e.default||e;var n=t.replace(/\.(js|mjs|ts)$/,"").split("/"),r=n[n.length-1],o="store/".concat(t);if(e="state"===r?function(e,t){if("function"!=typeof e){console.warn("".concat(t," should export a method that returns an object"));var n=Object.assign({},e);return function(){return n}}return G(e,t)}(e,o):G(e,o),z.includes(r)){var c=r;K(W($,n,{isProperty:!0}),e,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var l=W($,n),h=0,d=z;h<d.length;h++){var f=d[h];K(l,e[f],f)}!1===e.namespaced&&delete l.namespaced}}function W(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!t.length||r&&1===t.length)return e;var o=t.shift();return e.modules[o]=e.modules[o]||{},e.modules[o].namespaced=!0,e.modules[o].modules=e.modules[o].modules||{},W(e.modules[o],t,{isProperty:r})}function K(e,t,n){t&&("state"===n?e.state=t||e.state:e[n]=Object.assign({},e[n],t))}n(51);var Y=function(){return Promise.resolve().then(n.bind(null,1088)).then((function(e){return Vl(e.default||e)}))},X=function(){return Promise.resolve().then(n.bind(null,1089)).then((function(e){return Vl(e.default||e)}))},J=function(){return Promise.resolve().then(n.bind(null,1105)).then((function(e){return Vl(e.default||e)}))},Z=function(){return Promise.resolve().then(n.bind(null,375)).then((function(e){return Vl(e.default||e)}))},Q=function(){return Promise.resolve().then(n.bind(null,282)).then((function(e){return Vl(e.default||e)}))},ee=function(){return Promise.resolve().then(n.bind(null,772)).then((function(e){return Vl(e.default||e)}))},te=function(){return Promise.resolve().then(n.bind(null,1096)).then((function(e){return Vl(e.default||e)}))},ne=function(){return n.e(48).then(n.bind(null,1892)).then((function(e){return Vl(e.default||e)}))},re=function(){return n.e(178).then(n.bind(null,2431)).then((function(e){return Vl(e.default||e)}))},ie=function(){return n.e(179).then(n.bind(null,2432)).then((function(e){return Vl(e.default||e)}))},oe=function(){return n.e(180).then(n.bind(null,2433)).then((function(e){return Vl(e.default||e)}))},ae=function(){return n.e(181).then(n.bind(null,2434)).then((function(e){return Vl(e.default||e)}))},se=function(){return n.e(182).then(n.bind(null,2435)).then((function(e){return Vl(e.default||e)}))},ce=function(){return n.e(183).then(n.bind(null,2280)).then((function(e){return Vl(e.default||e)}))},ue=function(){return n.e(184).then(n.bind(null,2281)).then((function(e){return Vl(e.default||e)}))},le=function(){return n.e(185).then(n.bind(null,2417)).then((function(e){return Vl(e.default||e)}))},he=function(){return n.e(140).then(n.bind(null,1962)).then((function(e){return Vl(e.default||e)}))},de=function(){return n.e(141).then(n.bind(null,1888)).then((function(e){return Vl(e.default||e)}))},fe=function(){return n.e(142).then(n.bind(null,1983)).then((function(e){return Vl(e.default||e)}))},pe=function(){return n.e(143).then(n.bind(null,1868)).then((function(e){return Vl(e.default||e)}))},me=function(){return Promise.resolve().then(n.bind(null,1161)).then((function(e){return Vl(e.default||e)}))},ge=function(){return n.e(148).then(n.bind(null,2086)).then((function(e){return Vl(e.default||e)}))},ve=function(){return Promise.all([n.e(2),n.e(149)]).then(n.bind(null,1764)).then((function(e){return Vl(e.default||e)}))},be=function(){return Promise.resolve().then(n.bind(null,201)).then((function(e){return Vl(e.default||e)}))},ye=function(){return Promise.resolve().then(n.bind(null,689)).then((function(e){return Vl(e.default||e)}))},we=function(){return n.e(150).then(n.bind(null,1748)).then((function(e){return Vl(e.default||e)}))},Se=function(){return Promise.resolve().then(n.bind(null,1095)).then((function(e){return Vl(e.default||e)}))},_e=function(){return n.e(152).then(n.bind(null,1886)).then((function(e){return Vl(e.default||e)}))},Ce=function(){return n.e(159).then(n.bind(null,1863)).then((function(e){return Vl(e.default||e)}))},Oe=function(){return Promise.resolve().then(n.bind(null,457)).then((function(e){return Vl(e.default||e)}))},Ae=function(){return Promise.resolve().then(n.bind(null,442)).then((function(e){return Vl(e.default||e)}))},Te=function(){return n.e(163).then(n.bind(null,1807)).then((function(e){return Vl(e.default||e)}))},Ee=function(){return n.e(164).then(n.bind(null,2128)).then((function(e){return Vl(e.default||e)}))},Pe=function(){return n.e(168).then(n.bind(null,1766)).then((function(e){return Vl(e.default||e)}))},Me=function(){return n.e(169).then(n.bind(null,1977)).then((function(e){return Vl(e.default||e)}))},xe=function(){return Promise.resolve().then(n.bind(null,331)).then((function(e){return Vl(e.default||e)}))},ke=function(){return n.e(171).then(n.bind(null,1864)).then((function(e){return Vl(e.default||e)}))},Ie=function(){return n.e(172).then(n.bind(null,2043)).then((function(e){return Vl(e.default||e)}))},Re=function(){return Promise.all([n.e(0),n.e(14)]).then(n.bind(null,2272)).then((function(e){return Vl(e.default||e)}))},je=function(){return Promise.all([n.e(0),n.e(173)]).then(n.bind(null,2422)).then((function(e){return Vl(e.default||e)}))},De=function(){return n.e(175).then(n.bind(null,1740)).then((function(e){return Vl(e.default||e)}))},Ne=function(){return n.e(176).then(n.bind(null,1783)).then((function(e){return Vl(e.default||e)}))},Le=function(){return Promise.resolve().then(n.bind(null,107)).then((function(e){return Vl(e.default||e)}))},Be=function(){return Promise.resolve().then(n.bind(null,445)).then((function(e){return Vl(e.default||e)}))},Ue=function(){return n.e(186).then(n.bind(null,2274)).then((function(e){return Vl(e.default||e)}))},Fe=function(){return n.e(188).then(n.bind(null,1782)).then((function(e){return Vl(e.default||e)}))},ze=function(){return n.e(187).then(n.bind(null,2275)).then((function(e){return Vl(e.default||e)}))},$e=function(){return n.e(232).then(n.bind(null,2136)).then((function(e){return Vl(e.default||e)}))},He=function(){return n.e(233).then(n.bind(null,2137)).then((function(e){return Vl(e.default||e)}))},Ge=function(){return n.e(234).then(n.bind(null,2142)).then((function(e){return Vl(e.default||e)}))},Ve=function(){return n.e(257).then(n.bind(null,2301)).then((function(e){return Vl(e.default||e)}))},We=function(){return n.e(258).then(n.bind(null,2605)).then((function(e){return Vl(e.default||e)}))},qe=function(){return Promise.resolve().then(n.bind(null,455)).then((function(e){return Vl(e.default||e)}))},Ke=function(){return Promise.resolve().then(n.bind(null,1166)).then((function(e){return Vl(e.default||e)}))},Ye=function(){return n.e(386).then(n.bind(null,1891)).then((function(e){return Vl(e.default||e)}))},Xe=function(){return Promise.resolve().then(n.bind(null,444)).then((function(e){return Vl(e.default||e)}))},Je=function(){return Promise.resolve().then(n.bind(null,1165)).then((function(e){return Vl(e.default||e)}))},Ze=function(){return Promise.resolve().then(n.bind(null,332)).then((function(e){return Vl(e.default||e)}))},Qe=function(){return Promise.resolve().then(n.bind(null,1164)).then((function(e){return Vl(e.default||e)}))},et=function(){return Promise.resolve().then(n.bind(null,758)).then((function(e){return Vl(e.default||e)}))},tt=function(){return Promise.resolve().then(n.bind(null,756)).then((function(e){return Vl(e.default||e)}))},nt=function(){return Promise.all([n.e(0),n.e(7),n.e(384)]).then(n.bind(null,1784)).then((function(e){return Vl(e.default||e)}))},it=function(){return n.e(387).then(n.bind(null,1862)).then((function(e){return Vl(e.default||e)}))},ot=function(){return n.e(388).then(n.bind(null,1885)).then((function(e){return Vl(e.default||e)}))},at=function(){return Promise.all([n.e(2),n.e(405)]).then(n.bind(null,1956)).then((function(e){return Vl(e.default||e)}))},st=function(){return n.e(406).then(n.bind(null,2482)).then((function(e){return Vl(e.default||e)}))},ct=function(){return n.e(407).then(n.bind(null,2484)).then((function(e){return Vl(e.default||e)}))},ut=function(){return n.e(408).then(n.bind(null,2485)).then((function(e){return Vl(e.default||e)}))},lt=function(){return Promise.resolve().then(n.bind(null,755)).then((function(e){return Vl(e.default||e)}))},ht=function(){return Promise.resolve().then(n.bind(null,140)).then((function(e){return Vl(e.default||e)}))},ft=function(){return Promise.resolve().then(n.bind(null,545)).then((function(e){return Vl(e.default||e)}))},pt=function(){return Promise.resolve().then(n.bind(null,1090)).then((function(e){return Vl(e.default||e)}))},mt=function(){return n.e(40).then(n.bind(null,2324)).then((function(e){return Vl(e.default||e)}))},gt=function(){return Promise.resolve().then(n.bind(null,529)).then((function(e){return Vl(e.default||e)}))},vt=function(){return Promise.resolve().then(n.bind(null,749)).then((function(e){return Vl(e.default||e)}))},bt=function(){return Promise.resolve().then(n.bind(null,361)).then((function(e){return Vl(e.default||e)}))},yt=function(){return Promise.resolve().then(n.bind(null,628)).then((function(e){return Vl(e.default||e)}))},wt=function(){return n.e(41).then(n.bind(null,2420)).then((function(e){return Vl(e.default||e)}))},St=function(){return Promise.all([n.e(0),n.e(14),n.e(42)]).then(n.bind(null,2421)).then((function(e){return Vl(e.default||e)}))},_t=function(){return n.e(43).then(n.bind(null,2423)).then((function(e){return Vl(e.default||e)}))},Ct=function(){return n.e(44).then(n.bind(null,2273)).then((function(e){return Vl(e.default||e)}))},Ot=function(){return n.e(26).then(n.bind(null,2553)).then((function(e){return Vl(e.default||e)}))},At=function(){return n.e(46).then(n.bind(null,1791)).then((function(e){return Vl(e.default||e)}))},Tt=function(){return n.e(47).then(n.bind(null,2279)).then((function(e){return Vl(e.default||e)}))},Et=function(){return Promise.all([n.e(19),n.e(49)]).then(n.bind(null,2058)).then((function(e){return Vl(e.default||e)}))},Pt=function(){return n.e(52).then(n.bind(null,2057)).then((function(e){return Vl(e.default||e)}))},Mt=function(){return n.e(56).then(n.bind(null,2478)).then((function(e){return Vl(e.default||e)}))},xt=function(){return n.e(57).then(n.bind(null,2446)).then((function(e){return Vl(e.default||e)}))},kt=function(){return n.e(53).then(n.bind(null,2447)).then((function(e){return Vl(e.default||e)}))},It=function(){return n.e(54).then(n.bind(null,2286)).then((function(e){return Vl(e.default||e)}))},Rt=function(){return Promise.all([n.e(37),n.e(55)]).then(n.bind(null,2479)).then((function(e){return Vl(e.default||e)}))},jt=function(){return Promise.resolve().then(n.bind(null,1098)).then((function(e){return Vl(e.default||e)}))},Dt=function(){return Promise.resolve().then(n.bind(null,1103)).then((function(e){return Vl(e.default||e)}))},Nt=function(){return Promise.resolve().then(n.bind(null,283)).then((function(e){return Vl(e.default||e)}))},Lt=function(){return n.e(58).then(n.bind(null,2449)).then((function(e){return Vl(e.default||e)}))},Bt=function(){return n.e(59).then(n.bind(null,2289)).then((function(e){return Vl(e.default||e)}))},Ut=function(){return Promise.resolve().then(n.bind(null,1102)).then((function(e){return Vl(e.default||e)}))},Ft=function(){return n.e(63).then(n.bind(null,2166)).then((function(e){return Vl(e.default||e)}))},zt=function(){return Promise.resolve().then(n.bind(null,1097)).then((function(e){return Vl(e.default||e)}))},$t=function(){return Promise.resolve().then(n.bind(null,1104)).then((function(e){return Vl(e.default||e)}))},Ht=function(){return Promise.resolve().then(n.bind(null,1100)).then((function(e){return Vl(e.default||e)}))},Gt=function(){return Promise.all([n.e(0),n.e(7),n.e(64)]).then(n.bind(null,2459)).then((function(e){return Vl(e.default||e)}))},Vt=function(){return Promise.all([n.e(0),n.e(456),n.e(7),n.e(65)]).then(n.bind(null,2460)).then((function(e){return Vl(e.default||e)}))},Wt=function(){return n.e(70).then(n.bind(null,2461)).then((function(e){return Vl(e.default||e)}))},qt=function(){return n.e(71).then(n.bind(null,1941)).then((function(e){return Vl(e.default||e)}))},Kt=function(){return n.e(72).then(n.bind(null,2316)).then((function(e){return Vl(e.default||e)}))},Yt=function(){return n.e(85).then(n.bind(null,2317)).then((function(e){return Vl(e.default||e)}))},Xt=function(){return n.e(86).then(n.bind(null,2463)).then((function(e){return Vl(e.default||e)}))},Jt=function(){return n.e(89).then(n.bind(null,2426)).then((function(e){return Vl(e.default||e)}))},Zt=function(){return n.e(91).then(n.bind(null,2278)).then((function(e){return Vl(e.default||e)}))},Qt=function(){return n.e(87).then(n.bind(null,2277)).then((function(e){return Vl(e.default||e)}))},en=function(){return n.e(88).then(n.bind(null,2115)).then((function(e){return Vl(e.default||e)}))},tn=function(){return n.e(28).then(n.bind(null,2554)).then((function(e){return Vl(e.default||e)}))},nn=function(){return n.e(90).then(n.bind(null,2276)).then((function(e){return Vl(e.default||e)}))},rn=function(){return n.e(92).then(n.bind(null,2428)).then((function(e){return Vl(e.default||e)}))},on=function(){return n.e(93).then(n.bind(null,2427)).then((function(e){return Vl(e.default||e)}))},an=function(){return n.e(94).then(n.bind(null,2429)).then((function(e){return Vl(e.default||e)}))},sn=function(){return n.e(95).then(n.bind(null,2430)).then((function(e){return Vl(e.default||e)}))},cn=function(){return n.e(96).then(n.bind(null,2287)).then((function(e){return Vl(e.default||e)}))},un=function(){return n.e(97).then(n.bind(null,2288)).then((function(e){return Vl(e.default||e)}))},ln=function(){return n.e(98).then(n.bind(null,2307)).then((function(e){return Vl(e.default||e)}))},hn=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(19),n.e(99)]).then(n.bind(null,2458)).then((function(e){return Vl(e.default||e)}))},dn=function(){return Promise.resolve().then(n.bind(null,376)).then((function(e){return Vl(e.default||e)}))},fn=function(){return Promise.resolve().then(n.bind(null,1106)).then((function(e){return Vl(e.default||e)}))},pn=function(){return Promise.resolve().then(n.bind(null,174)).then((function(e){return Vl(e.default||e)}))},mn=function(){return Promise.resolve().then(n.bind(null,677)).then((function(e){return Vl(e.default||e)}))},gn=function(){return n.e(144).then(n.bind(null,1898)).then((function(e){return Vl(e.default||e)}))},vn=function(){return n.e(145).then(n.bind(null,2325)).then((function(e){return Vl(e.default||e)}))},bn=function(){return Promise.resolve().then(n.bind(null,17)).then((function(e){return Vl(e.default||e)}))},yn=function(){return n.e(146).then(n.bind(null,2606)).then((function(e){return Vl(e.default||e)}))},wn=function(){return Promise.resolve().then(n.bind(null,327)).then((function(e){return Vl(e.default||e)}))},Sn=function(){return Promise.resolve().then(n.bind(null,325)).then((function(e){return Vl(e.default||e)}))},_n=function(){return Promise.resolve().then(n.bind(null,132)).then((function(e){return Vl(e.default||e)}))},Cn=function(){return n.e(147).then(n.bind(null,1894)).then((function(e){return Vl(e.default||e)}))},On=function(){return Promise.resolve().then(n.bind(null,713)).then((function(e){return Vl(e.default||e)}))},An=function(){return Promise.resolve().then(n.bind(null,750)).then((function(e){return Vl(e.default||e)}))},Tn=function(){return Promise.resolve().then(n.bind(null,55)).then((function(e){return Vl(e.default||e)}))},En=function(){return Promise.resolve().then(n.bind(null,441)).then((function(e){return Vl(e.default||e)}))},Pn=function(){return n.e(151).then(n.bind(null,1739)).then((function(e){return Vl(e.default||e)}))},Mn=function(){return Promise.all([n.e(3),n.e(20)]).then(n.bind(null,2124)).then((function(e){return Vl(e.default||e)}))},xn=function(){return n.e(153).then(n.bind(null,2008)).then((function(e){return Vl(e.default||e)}))},kn=function(){return n.e(154).then(n.bind(null,1974)).then((function(e){return Vl(e.default||e)}))},In=function(){return n.e(12).then(n.bind(null,2241)).then((function(e){return Vl(e.default||e)}))},Rn=function(){return n.e(155).then(n.bind(null,2009)).then((function(e){return Vl(e.default||e)}))},jn=function(){return n.e(156).then(n.bind(null,1975)).then((function(e){return Vl(e.default||e)}))},Dn=function(){return n.e(157).then(n.bind(null,1976)).then((function(e){return Vl(e.default||e)}))},Nn=function(){return n.e(158).then(n.bind(null,2010)).then((function(e){return Vl(e.default||e)}))},Ln=function(){return Promise.all([n.e(0),n.e(160)]).then(n.bind(null,1749)).then((function(e){return Vl(e.default||e)}))},Bn=function(){return Promise.all([n.e(0),n.e(161)]).then(n.bind(null,1812)).then((function(e){return Vl(e.default||e)}))},Un=function(){return n.e(162).then(n.bind(null,2064)).then((function(e){return Vl(e.default||e)}))},Fn=function(){return Promise.resolve().then(n.bind(null,1122)).then((function(e){return Vl(e.default||e)}))},zn=function(){return Promise.resolve().then(n.bind(null,27)).then((function(e){return Vl(e.default||e)}))},$n=function(){return Promise.resolve().then(n.bind(null,498)).then((function(e){return Vl(e.default||e)}))},Hn=function(){return Promise.resolve().then(n.bind(null,330)).then((function(e){return Vl(e.default||e)}))},Gn=function(){return Promise.resolve().then(n.bind(null,531)).then((function(e){return Vl(e.default||e)}))},Vn=function(){return Promise.resolve().then(n.bind(null,63)).then((function(e){return Vl(e.default||e)}))},Wn=function(){return Promise.resolve().then(n.bind(null,1132)).then((function(e){return Vl(e.default||e)}))},qn=function(){return Promise.resolve().then(n.bind(null,714)).then((function(e){return Vl(e.default||e)}))},Kn=function(){return Promise.resolve().then(n.bind(null,133)).then((function(e){return Vl(e.default||e)}))},Yn=function(){return Promise.resolve().then(n.bind(null,532)).then((function(e){return Vl(e.default||e)}))},Xn=function(){return Promise.resolve().then(n.bind(null,685)).then((function(e){return Vl(e.default||e)}))},Jn=function(){return Promise.resolve().then(n.bind(null,672)).then((function(e){return Vl(e.default||e)}))},Zn=function(){return n.e(165).then(n.bind(null,1762)).then((function(e){return Vl(e.default||e)}))},Qn=function(){return Promise.resolve().then(n.bind(null,761)).then((function(e){return Vl(e.default||e)}))},er=function(){return Promise.resolve().then(n.bind(null,358)).then((function(e){return Vl(e.default||e)}))},nr=function(){return Promise.resolve().then(n.bind(null,1143)).then((function(e){return Vl(e.default||e)}))},rr=function(){return Promise.resolve().then(n.bind(null,1123)).then((function(e){return Vl(e.default||e)}))},ir=function(){return Promise.resolve().then(n.bind(null,357)).then((function(e){return Vl(e.default||e)}))},or=function(){return Promise.resolve().then(n.bind(null,453)).then((function(e){return Vl(e.default||e)}))},ar=function(){return n.e(166).then(n.bind(null,1867)).then((function(e){return Vl(e.default||e)}))},sr=function(){return n.e(167).then(n.bind(null,1889)).then((function(e){return Vl(e.default||e)}))},cr=function(){return Promise.resolve().then(n.bind(null,1094)).then((function(e){return Vl(e.default||e)}))},ur=function(){return Promise.resolve().then(n.bind(null,320)).then((function(e){return Vl(e.default||e)}))},lr=function(){return Promise.resolve().then(n.bind(null,202)).then((function(e){return Vl(e.default||e)}))},dr=function(){return n.e(170).then(n.bind(null,2425)).then((function(e){return Vl(e.default||e)}))},fr=function(){return Promise.resolve().then(n.bind(null,774)).then((function(e){return Vl(e.default||e)}))},pr=function(){return n.e(174).then(n.bind(null,2077)).then((function(e){return Vl(e.default||e)}))},mr=function(){return Promise.resolve().then(n.bind(null,454)).then((function(e){return Vl(e.default||e)}))},gr=function(){return Promise.resolve().then(n.bind(null,243)).then((function(e){return Vl(e.default||e)}))},vr=function(){return Promise.resolve().then(n.bind(null,533)).then((function(e){return Vl(e.default||e)}))},yr=function(){return Promise.resolve().then(n.bind(null,1124)).then((function(e){return Vl(e.default||e)}))},wr=function(){return Promise.resolve().then(n.bind(null,1107)).then((function(e){return Vl(e.default||e)}))},Sr=function(){return Promise.resolve().then(n.bind(null,773)).then((function(e){return Vl(e.default||e)}))},_r=function(){return Promise.resolve().then(n.bind(null,135)).then((function(e){return Vl(e.default||e)}))},Cr=function(){return Promise.resolve().then(n.bind(null,1125)).then((function(e){return Vl(e.default||e)}))},Or=function(){return n.e(177).then(n.bind(null,2282)).then((function(e){return Vl(e.default||e)}))},Ar=function(){return Promise.resolve().then(n.bind(null,763)).then((function(e){return Vl(e.default||e)}))},Tr=function(){return Promise.resolve().then(n.bind(null,527)).then((function(e){return Vl(e.default||e)}))},Er=function(){return Promise.resolve().then(n.bind(null,435)).then((function(e){return Vl(e.default||e)}))},Pr=function(){return Promise.all([n.e(0),n.e(10),n.e(14),n.e(190)]).then(n.bind(null,2415)).then((function(e){return Vl(e.default||e)}))},Mr=function(){return n.e(189).then(n.bind(null,2448)).then((function(e){return Vl(e.default||e)}))},xr=function(){return n.e(235).then(n.bind(null,2138)).then((function(e){return Vl(e.default||e)}))},kr=function(){return n.e(236).then(n.bind(null,2139)).then((function(e){return Vl(e.default||e)}))},Ir=function(){return n.e(237).then(n.bind(null,2296)).then((function(e){return Vl(e.default||e)}))},Rr=function(){return n.e(238).then(n.bind(null,1818)).then((function(e){return Vl(e.default||e)}))},jr=function(){return n.e(239).then(n.bind(null,1817)).then((function(e){return Vl(e.default||e)}))},Dr=function(){return n.e(240).then(n.bind(null,2294)).then((function(e){return Vl(e.default||e)}))},Nr=function(){return Promise.all([n.e(3),n.e(241)]).then(n.bind(null,1879)).then((function(e){return Vl(e.default||e)}))},Lr=function(){return n.e(242).then(n.bind(null,2143)).then((function(e){return Vl(e.default||e)}))},Br=function(){return n.e(243).then(n.bind(null,2306)).then((function(e){return Vl(e.default||e)}))},Ur=function(){return n.e(244).then(n.bind(null,2049)).then((function(e){return Vl(e.default||e)}))},Fr=function(){return n.e(245).then(n.bind(null,2050)).then((function(e){return Vl(e.default||e)}))},zr=function(){return n.e(246).then(n.bind(null,2051)).then((function(e){return Vl(e.default||e)}))},$r=function(){return n.e(247).then(n.bind(null,2140)).then((function(e){return Vl(e.default||e)}))},Hr=function(){return n.e(248).then(n.bind(null,1866)).then((function(e){return Vl(e.default||e)}))},Gr=function(){return n.e(249).then(n.bind(null,2125)).then((function(e){return Vl(e.default||e)}))},Vr=function(){return n.e(250).then(n.bind(null,2297)).then((function(e){return Vl(e.default||e)}))},Wr=function(){return n.e(251).then(n.bind(null,2298)).then((function(e){return Vl(e.default||e)}))},qr=function(){return n.e(252).then(n.bind(null,2299)).then((function(e){return Vl(e.default||e)}))},Kr=function(){return n.e(253).then(n.bind(null,2300)).then((function(e){return Vl(e.default||e)}))},Yr=function(){return n.e(254).then(n.bind(null,1819)).then((function(e){return Vl(e.default||e)}))},Xr=function(){return n.e(255).then(n.bind(null,2052)).then((function(e){return Vl(e.default||e)}))},Jr=function(){return n.e(256).then(n.bind(null,2141)).then((function(e){return Vl(e.default||e)}))},Zr=function(){return n.e(259).then(n.bind(null,2483)).then((function(e){return Vl(e.default||e)}))},Qr=function(){return Promise.all([n.e(23),n.e(376)]).then(n.bind(null,2385)).then((function(e){return Vl(e.default||e)}))},ei=function(){return Promise.all([n.e(21),n.e(377)]).then(n.bind(null,2335)).then((function(e){return Vl(e.default||e)}))},ti=function(){return Promise.resolve().then(n.bind(null,682)).then((function(e){return Vl(e.default||e)}))},ni=function(){return n.e(378).then(n.bind(null,1896)).then((function(e){return Vl(e.default||e)}))},ri=function(){return Promise.all([n.e(10),n.e(13),n.e(457),n.e(379)]).then(n.bind(null,2006)).then((function(e){return Vl(e.default||e)}))},ii=function(){return n.e(380).then(n.bind(null,1973)).then((function(e){return Vl(e.default||e)}))},oi=function(){return n.e(381).then(n.bind(null,2464)).then((function(e){return Vl(e.default||e)}))},ai=function(){return n.e(382).then(n.bind(null,1971)).then((function(e){return Vl(e.default||e)}))},si=function(){return n.e(383).then(n.bind(null,2465)).then((function(e){return Vl(e.default||e)}))},ci=function(){return n.e(385).then(n.bind(null,1982)).then((function(e){return Vl(e.default||e)}))},ui=function(){return n.e(18).then(n.bind(null,2126)).then((function(e){return Vl(e.default||e)}))},hi=function(){return n.e(390).then(n.bind(null,1765)).then((function(e){return Vl(e.default||e)}))},di=function(){return n.e(403).then(n.bind(null,1837)).then((function(e){return Vl(e.default||e)}))},fi=function(){return n.e(45).then(n.bind(null,2424)).then((function(e){return Vl(e.default||e)}))},pi=function(){return Promise.resolve().then(n.bind(null,1092)).then((function(e){return Vl(e.default||e)}))},mi=function(){return Promise.resolve().then(n.bind(null,1091)).then((function(e){return Vl(e.default||e)}))},gi=function(){return Promise.resolve().then(n.bind(null,1093)).then((function(e){return Vl(e.default||e)}))},vi=function(){return Promise.resolve().then(n.bind(null,530)).then((function(e){return Vl(e.default||e)}))},bi=function(){return n.e(50).then(n.bind(null,1960)).then((function(e){return Vl(e.default||e)}))},yi=function(){return Promise.all([n.e(0),n.e(51)]).then(n.bind(null,1961)).then((function(e){return Vl(e.default||e)}))},wi=function(){return Promise.resolve().then(n.bind(null,1099)).then((function(e){return Vl(e.default||e)}))},Si=function(){return n.e(60).then(n.bind(null,2455)).then((function(e){return Vl(e.default||e)}))},_i=function(){return Promise.resolve().then(n.bind(null,1003)).then((function(e){return Vl(e.default||e)}))},Ci=function(){return n.e(61).then(n.bind(null,2456)).then((function(e){return Vl(e.default||e)}))},Oi=function(){return Promise.resolve().then(n.bind(null,1005)).then((function(e){return Vl(e.default||e)}))},Ai=function(){return Promise.resolve().then(n.bind(null,1004)).then((function(e){return Vl(e.default||e)}))},Ti=function(){return n.e(62).then(n.bind(null,2457)).then((function(e){return Vl(e.default||e)}))},Ei=function(){return Promise.resolve().then(n.bind(null,1101)).then((function(e){return Vl(e.default||e)}))},Pi=function(){return n.e(66).then(n.bind(null,1838)).then((function(e){return Vl(e.default||e)}))},Mi=function(){return n.e(67).then(n.bind(null,1890)).then((function(e){return Vl(e.default||e)}))},xi=function(){return Promise.all([n.e(0),n.e(7),n.e(68)]).then(n.bind(null,1882)).then((function(e){return Vl(e.default||e)}))},ki=function(){return n.e(69).then(n.bind(null,2315)).then((function(e){return Vl(e.default||e)}))},Ii=function(){return Promise.resolve().then(n.bind(null,686)).then((function(e){return Vl(e.default||e)}))},Ri=function(){return n.e(75).then(n.bind(null,1967)).then((function(e){return Vl(e.default||e)}))},ji=function(){return Promise.all([n.e(0),n.e(1),n.e(11),n.e(76)]).then(n.bind(null,1955)).then((function(e){return Vl(e.default||e)}))},Di=function(){return Promise.all([n.e(1),n.e(77)]).then(n.bind(null,1968)).then((function(e){return Vl(e.default||e)}))},Ni=function(){return Promise.all([n.e(1),n.e(27),n.e(79)]).then(n.bind(null,2005)).then((function(e){return Vl(e.default||e)}))},Li=function(){return Promise.all([n.e(0),n.e(11),n.e(80)]).then(n.bind(null,2607)).then((function(e){return Vl(e.default||e)}))},Bi=function(){return Promise.all([n.e(0),n.e(1),n.e(10),n.e(13),n.e(81)]).then(n.bind(null,2462)).then((function(e){return Vl(e.default||e)}))},Ui=function(){return Promise.all([n.e(0),n.e(1),n.e(10),n.e(13),n.e(82)]).then(n.bind(null,2158)).then((function(e){return Vl(e.default||e)}))},Fi=function(){return n.e(83).then(n.bind(null,1792)).then((function(e){return Vl(e.default||e)}))},zi=function(){return Promise.all([n.e(0),n.e(11),n.e(84)]).then(n.bind(null,1806)).then((function(e){return Vl(e.default||e)}))},$i=function(){return Promise.all([n.e(1),n.e(10),n.e(13),n.e(73)]).then(n.bind(null,2070)).then((function(e){return Vl(e.default||e)}))},Hi=function(){return Promise.all([n.e(1),n.e(74)]).then(n.bind(null,1757)).then((function(e){return Vl(e.default||e)}))},Gi=function(){return Promise.all([n.e(0),n.e(1),n.e(11),n.e(27),n.e(78)]).then(n.bind(null,2071)).then((function(e){return Vl(e.default||e)}))},Vi=function(){return n.e(102).then(n.bind(null,1880)).then((function(e){return Vl(e.default||e)}))},Wi=function(){return n.e(101).then(n.bind(null,2308)).then((function(e){return Vl(e.default||e)}))},qi=function(){return n.e(138).then(n.bind(null,1759)).then((function(e){return Vl(e.default||e)}))},Ki=function(){return n.e(139).then(n.bind(null,2309)).then((function(e){return Vl(e.default||e)}))},Yi=function(){return n.e(103).then(n.bind(null,2055)).then((function(e){return Vl(e.default||e)}))},Xi=function(){return n.e(104).then(n.bind(null,2144)).then((function(e){return Vl(e.default||e)}))},Ji=function(){return n.e(105).then(n.bind(null,2053)).then((function(e){return Vl(e.default||e)}))},Zi=function(){return n.e(106).then(n.bind(null,2054)).then((function(e){return Vl(e.default||e)}))},Qi=function(){return n.e(107).then(n.bind(null,2145)).then((function(e){return Vl(e.default||e)}))},eo=function(){return n.e(108).then(n.bind(null,2310)).then((function(e){return Vl(e.default||e)}))},to=function(){return n.e(109).then(n.bind(null,2311)).then((function(e){return Vl(e.default||e)}))},no=function(){return n.e(110).then(n.bind(null,2146)).then((function(e){return Vl(e.default||e)}))},ro=function(){return n.e(115).then(n.bind(null,2148)).then((function(e){return Vl(e.default||e)}))},io=function(){return n.e(116).then(n.bind(null,2149)).then((function(e){return Vl(e.default||e)}))},oo=function(){return n.e(117).then(n.bind(null,2150)).then((function(e){return Vl(e.default||e)}))},ao=function(){return n.e(118).then(n.bind(null,2151)).then((function(e){return Vl(e.default||e)}))},so=function(){return n.e(122).then(n.bind(null,2152)).then((function(e){return Vl(e.default||e)}))},co=function(){return n.e(119).then(n.bind(null,2153)).then((function(e){return Vl(e.default||e)}))},uo=function(){return Promise.all([n.e(2),n.e(120)]).then(n.bind(null,2154)).then((function(e){return Vl(e.default||e)}))},lo=function(){return Promise.all([n.e(2),n.e(121)]).then(n.bind(null,2313)).then((function(e){return Vl(e.default||e)}))},ho=function(){return n.e(124).then(n.bind(null,1881)).then((function(e){return Vl(e.default||e)}))},fo=function(){return Promise.all([n.e(0),n.e(2),n.e(125)]).then(n.bind(null,2061)).then((function(e){return Vl(e.default||e)}))},po=function(){return Promise.all([n.e(2),n.e(126)]).then(n.bind(null,2062)).then((function(e){return Vl(e.default||e)}))},mo=function(){return Promise.all([n.e(0),n.e(2),n.e(7),n.e(22),n.e(127)]).then(n.bind(null,2063)).then((function(e){return Vl(e.default||e)}))},go=function(){return n.e(130).then(n.bind(null,2042)).then((function(e){return Vl(e.default||e)}))},vo=function(){return n.e(131).then(n.bind(null,2066)).then((function(e){return Vl(e.default||e)}))},bo=function(){return Promise.all([n.e(0),n.e(2),n.e(19),n.e(7),n.e(128)]).then(n.bind(null,2314)).then((function(e){return Vl(e.default||e)}))},yo=function(){return n.e(129).then(n.bind(null,2155)).then((function(e){return Vl(e.default||e)}))},wo=function(){return Promise.all([n.e(2),n.e(132)]).then(n.bind(null,2059)).then((function(e){return Vl(e.default||e)}))},So=function(){return n.e(133).then(n.bind(null,2067)).then((function(e){return Vl(e.default||e)}))},_o=function(){return Promise.all([n.e(2),n.e(134)]).then(n.bind(null,1753)).then((function(e){return Vl(e.default||e)}))},Co=function(){return Promise.all([n.e(0),n.e(2),n.e(7),n.e(22),n.e(135)]).then(n.bind(null,2068)).then((function(e){return Vl(e.default||e)}))},Oo=function(){return Promise.all([n.e(2),n.e(136)]).then(n.bind(null,2069)).then((function(e){return Vl(e.default||e)}))},Ao=function(){return Promise.all([n.e(2),n.e(137)]).then(n.bind(null,2060)).then((function(e){return Vl(e.default||e)}))},To=function(){return Promise.all([n.e(19),n.e(100)]).then(n.bind(null,2156)).then((function(e){return Vl(e.default||e)}))},Eo=function(){return Promise.all([n.e(0),n.e(2),n.e(7),n.e(22),n.e(123)]).then(n.bind(null,2157)).then((function(e){return Vl(e.default||e)}))},Po=function(){return Promise.resolve().then(n.bind(null,459)).then((function(e){return Vl(e.default||e)}))},Mo=function(){return Promise.resolve().then(n.bind(null,1134)).then((function(e){return Vl(e.default||e)}))},xo=function(){return Promise.resolve().then(n.bind(null,315)).then((function(e){return Vl(e.default||e)}))},ko=function(){return Promise.resolve().then(n.bind(null,1136)).then((function(e){return Vl(e.default||e)}))},Io=function(){return Promise.resolve().then(n.bind(null,1135)).then((function(e){return Vl(e.default||e)}))},Ro=function(){return n.e(229).then(n.bind(null,2129)).then((function(e){return Vl(e.default||e)}))},jo=function(){return n.e(230).then(n.bind(null,2290)).then((function(e){return Vl(e.default||e)}))},Do=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(231)]).then(n.bind(null,2450)).then((function(e){return Vl(e.default||e)}))},No=function(){return n.e(192).then(n.bind(null,2291)).then((function(e){return Vl(e.default||e)}))},Lo=function(){return n.e(193).then(n.bind(null,2134)).then((function(e){return Vl(e.default||e)}))},Bo=function(){return n.e(194).then(n.bind(null,2130)).then((function(e){return Vl(e.default||e)}))},Uo=function(){return n.e(195).then(n.bind(null,2292)).then((function(e){return Vl(e.default||e)}))},Fo=function(){return n.e(196).then(n.bind(null,2131)).then((function(e){return Vl(e.default||e)}))},zo=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(197)]).then(n.bind(null,2135)).then((function(e){return Vl(e.default||e)}))},$o=function(){return n.e(198).then(n.bind(null,2132)).then((function(e){return Vl(e.default||e)}))},Ho=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(199)]).then(n.bind(null,2293)).then((function(e){return Vl(e.default||e)}))},Go=function(){return n.e(200).then(n.bind(null,2133)).then((function(e){return Vl(e.default||e)}))},Vo=function(){return n.e(201).then(n.bind(null,2608)).then((function(e){return Vl(e.default||e)}))},Wo=function(){return n.e(202).then(n.bind(null,2295)).then((function(e){return Vl(e.default||e)}))},qo=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(191)]).then(n.bind(null,2452)).then((function(e){return Vl(e.default||e)}))},Ko=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(206)]).then(n.bind(null,2116)).then((function(e){return Vl(e.default||e)}))},Yo=function(){return n.e(211).then(n.bind(null,2302)).then((function(e){return Vl(e.default||e)}))},Xo=function(){return n.e(212).then(n.bind(null,1773)).then((function(e){return Vl(e.default||e)}))},Jo=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(213)]).then(n.bind(null,2044)).then((function(e){return Vl(e.default||e)}))},Zo=function(){return Promise.all([n.e(30),n.e(214)]).then(n.bind(null,2045)).then((function(e){return Vl(e.default||e)}))},Qo=function(){return Promise.all([n.e(0),n.e(215)]).then(n.bind(null,2046)).then((function(e){return Vl(e.default||e)}))},ea=function(){return n.e(216).then(n.bind(null,2047)).then((function(e){return Vl(e.default||e)}))},ta=function(){return n.e(217).then(n.bind(null,2303)).then((function(e){return Vl(e.default||e)}))},na=function(){return n.e(218).then(n.bind(null,1865)).then((function(e){return Vl(e.default||e)}))},ra=function(){return n.e(226).then(n.bind(null,2304)).then((function(e){return Vl(e.default||e)}))},ia=function(){return n.e(227).then(n.bind(null,2305)).then((function(e){return Vl(e.default||e)}))},oa=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(204)]).then(n.bind(null,2453)).then((function(e){return Vl(e.default||e)}))},aa=function(){return Promise.all([n.e(3),n.e(4)]).then(n.bind(null,1939)).then((function(e){return Vl(e.default||e)}))},sa=function(){return Promise.all([n.e(3),n.e(4),n.e(228)]).then(n.bind(null,2454)).then((function(e){return Vl(e.default||e)}))},ca=function(){return Promise.resolve().then(n.bind(null,461)).then((function(e){return Vl(e.default||e)}))},ua=function(){return n.e(260).then(n.bind(null,2338)).then((function(e){return Vl(e.default||e)}))},la=function(){return Promise.resolve().then(n.bind(null,760)).then((function(e){return Vl(e.default||e)}))},ha=function(){return n.e(285).then(n.bind(null,2072)).then((function(e){return Vl(e.default||e)}))},da=function(){return n.e(267).then(n.bind(null,2414)).then((function(e){return Vl(e.default||e)}))},fa=function(){return n.e(269).then(n.bind(null,1981)).then((function(e){return Vl(e.default||e)}))},pa=function(){return n.e(290).then(n.bind(null,1979)).then((function(e){return Vl(e.default||e)}))},ma=function(){return Promise.all([n.e(21),n.e(23),n.e(32),n.e(298)]).then(n.bind(null,2476)).then((function(e){return Vl(e.default||e)}))},ga=function(){return n.e(299).then(n.bind(null,2011)).then((function(e){return Vl(e.default||e)}))},va=function(){return n.e(301).then(n.bind(null,2337)).then((function(e){return Vl(e.default||e)}))},ba=function(){return Promise.all([n.e(21),n.e(342)]).then(n.bind(null,2336)).then((function(e){return Vl(e.default||e)}))},ya=function(){return n.e(345).then(n.bind(null,1984)).then((function(e){return Vl(e.default||e)}))},wa=function(){return n.e(343).then(n.bind(null,2347)).then((function(e){return Vl(e.default||e)}))},Sa=function(){return n.e(344).then(n.bind(null,2560)).then((function(e){return Vl(e.default||e)}))},_a=function(){return n.e(346).then(n.bind(null,2348)).then((function(e){return Vl(e.default||e)}))},Ca=function(){return Promise.resolve().then(n.bind(null,1126)).then((function(e){return Vl(e.default||e)}))},Oa=function(){return n.e(357).then(n.bind(null,2271)).then((function(e){return Vl(e.default||e)}))},Aa=function(){return n.e(358).then(n.bind(null,2332)).then((function(e){return Vl(e.default||e)}))},Ta=function(){return n.e(359).then(n.bind(null,2333)).then((function(e){return Vl(e.default||e)}))},Ea=function(){return n.e(360).then(n.bind(null,1942)).then((function(e){return Vl(e.default||e)}))},Pa=function(){return n.e(361).then(n.bind(null,2334)).then((function(e){return Vl(e.default||e)}))},Ma=function(){return n.e(362).then(n.bind(null,2487)).then((function(e){return Vl(e.default||e)}))},xa=function(){return n.e(363).then(n.bind(null,2085)).then((function(e){return Vl(e.default||e)}))},ka=function(){return n.e(364).then(n.bind(null,1972)).then((function(e){return Vl(e.default||e)}))},Ia=function(){return Promise.all([n.e(1),n.e(365)]).then(n.bind(null,1895)).then((function(e){return Vl(e.default||e)}))},Ra=function(){return n.e(366).then(n.bind(null,1963)).then((function(e){return Vl(e.default||e)}))},ja=function(){return n.e(367).then(n.bind(null,1964)).then((function(e){return Vl(e.default||e)}))},Da=function(){return n.e(368).then(n.bind(null,1965)).then((function(e){return Vl(e.default||e)}))},Na=function(){return n.e(369).then(n.bind(null,1893)).then((function(e){return Vl(e.default||e)}))},La=function(){return Promise.all([n.e(1),n.e(370)]).then(n.bind(null,1969)).then((function(e){return Vl(e.default||e)}))},Ba=function(){return Promise.all([n.e(1),n.e(371)]).then(n.bind(null,1970)).then((function(e){return Vl(e.default||e)}))},Ua=function(){return n.e(372).then(n.bind(null,1953)).then((function(e){return Vl(e.default||e)}))},Fa=function(){return Promise.all([n.e(1),n.e(373)]).then(n.bind(null,1954)).then((function(e){return Vl(e.default||e)}))},za=function(){return n.e(374).then(n.bind(null,1966)).then((function(e){return Vl(e.default||e)}))},$a=function(){return n.e(375).then(n.bind(null,2488)).then((function(e){return Vl(e.default||e)}))},Ha=function(){return Promise.all([n.e(18),n.e(389)]).then(n.bind(null,2436)).then((function(e){return Vl(e.default||e)}))},Ga=function(){return n.e(391).then(n.bind(null,2437)).then((function(e){return Vl(e.default||e)}))},Va=function(){return n.e(392).then(n.bind(null,2438)).then((function(e){return Vl(e.default||e)}))},Wa=function(){return Promise.all([n.e(35),n.e(393)]).then(n.bind(null,2555)).then((function(e){return Vl(e.default||e)}))},qa=function(){return Promise.all([n.e(18),n.e(394)]).then(n.bind(null,2439)).then((function(e){return Vl(e.default||e)}))},Ka=function(){return n.e(395).then(n.bind(null,2283)).then((function(e){return Vl(e.default||e)}))},Ya=function(){return n.e(396).then(n.bind(null,2440)).then((function(e){return Vl(e.default||e)}))},Xa=function(){return Promise.all([n.e(18),n.e(397)]).then(n.bind(null,2441)).then((function(e){return Vl(e.default||e)}))},Ja=function(){return Promise.all([n.e(2),n.e(25)]).then(n.bind(null,2443)).then((function(e){return Vl(e.default||e)}))},Za=function(){return n.e(398).then(n.bind(null,2284)).then((function(e){return Vl(e.default||e)}))},Qa=function(){return Promise.all([n.e(2),n.e(25),n.e(399)]).then(n.bind(null,2442)).then((function(e){return Vl(e.default||e)}))},es=function(){return n.e(400).then(n.bind(null,2127)).then((function(e){return Vl(e.default||e)}))},ts=function(){return n.e(401).then(n.bind(null,2285)).then((function(e){return Vl(e.default||e)}))},ns=function(){return Promise.resolve().then(n.bind(null,775)).then((function(e){return Vl(e.default||e)}))},rs=function(){return Promise.resolve().then(n.bind(null,535)).then((function(e){return Vl(e.default||e)}))},is=function(){return n.e(402).then(n.bind(null,2444)).then((function(e){return Vl(e.default||e)}))},os=function(){return Promise.resolve().then(n.bind(null,1172)).then((function(e){return Vl(e.default||e)}))},as=function(){return n.e(404).then(n.bind(null,2445)).then((function(e){return Vl(e.default||e)}))},ss=function(){return Promise.all([n.e(1),n.e(111)]).then(n.bind(null,2056)).then((function(e){return Vl(e.default||e)}))},cs=function(){return Promise.all([n.e(0),n.e(1),n.e(11),n.e(112)]).then(n.bind(null,2117)).then((function(e){return Vl(e.default||e)}))},us=function(){return Promise.all([n.e(0),n.e(1),n.e(11),n.e(29),n.e(113)]).then(n.bind(null,2312)).then((function(e){return Vl(e.default||e)}))},ls=function(){return Promise.all([n.e(0),n.e(1),n.e(11),n.e(29),n.e(114)]).then(n.bind(null,2147)).then((function(e){return Vl(e.default||e)}))},hs=function(){return n.e(203).then(n.bind(null,1814)).then((function(e){return Vl(e.default||e)}))},ds=function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(5),n.e(205)]).then(n.bind(null,1835)).then((function(e){return Vl(e.default||e)}))},fs=function(){return Promise.all([n.e(3),n.e(207)]).then(n.bind(null,1815)).then((function(e){return Vl(e.default||e)}))},ps=function(){return Promise.all([n.e(0),n.e(5),n.e(208)]).then(n.bind(null,2004)).then((function(e){return Vl(e.default||e)}))},ms=function(){return n.e(209).then(n.bind(null,1816)).then((function(e){return Vl(e.default||e)}))},gs=function(){return n.e(210).then(n.bind(null,2048)).then((function(e){return Vl(e.default||e)}))},vs=function(){return n.e(219).then(n.bind(null,1957)).then((function(e){return Vl(e.default||e)}))},bs=function(){return Promise.all([n.e(30),n.e(220)]).then(n.bind(null,1958)).then((function(e){return Vl(e.default||e)}))},ys=function(){return n.e(221).then(n.bind(null,1940)).then((function(e){return Vl(e.default||e)}))},ws=function(){return Promise.all([n.e(0),n.e(222)]).then(n.bind(null,1959)).then((function(e){return Vl(e.default||e)}))},Ss=function(){return Promise.all([n.e(0),n.e(223)]).then(n.bind(null,2451)).then((function(e){return Vl(e.default||e)}))},_s=function(){return Promise.all([n.e(0),n.e(224)]).then(n.bind(null,1887)).then((function(e){return Vl(e.default||e)}))},Cs=function(){return n.e(225).then(n.bind(null,1836)).then((function(e){return Vl(e.default||e)}))},Os=function(){return Promise.resolve().then(n.bind(null,280)).then((function(e){return Vl(e.default||e)}))},As=function(){return n.e(261).then(n.bind(null,2083)).then((function(e){return Vl(e.default||e)}))},Ts=function(){return n.e(262).then(n.bind(null,2084)).then((function(e){return Vl(e.default||e)}))},Es=function(){return n.e(263).then(n.bind(null,2167)).then((function(e){return Vl(e.default||e)}))},Ps=function(){return n.e(264).then(n.bind(null,1900)).then((function(e){return Vl(e.default||e)}))},Ms=function(){return n.e(265).then(n.bind(null,2326)).then((function(e){return Vl(e.default||e)}))},xs=function(){return n.e(266).then(n.bind(null,2168)).then((function(e){return Vl(e.default||e)}))},ks=function(){return n.e(286).then(n.bind(null,1978)).then((function(e){return Vl(e.default||e)}))},Is=function(){return Promise.all([n.e(12),n.e(31),n.e(288)]).then(n.bind(null,2007)).then((function(e){return Vl(e.default||e)}))},Rs=function(){return n.e(289).then(n.bind(null,2561)).then((function(e){return Vl(e.default||e)}))},js=function(){return Promise.all([n.e(6),n.e(8),n.e(9),n.e(287)]).then(n.bind(null,2118)).then((function(e){return Vl(e.default||e)}))},Ds=function(){return n.e(291).then(n.bind(null,2327)).then((function(e){return Vl(e.default||e)}))},Ns=function(){return Promise.all([n.e(21),n.e(23),n.e(32),n.e(292)]).then(n.bind(null,2384)).then((function(e){return Vl(e.default||e)}))},Ls=function(){return n.e(293).then(n.bind(null,2328)).then((function(e){return Vl(e.default||e)}))},Bs=function(){return n.e(294).then(n.bind(null,2329)).then((function(e){return Vl(e.default||e)}))},Us=function(){return n.e(295).then(n.bind(null,2330)).then((function(e){return Vl(e.default||e)}))},Fs=function(){return n.e(296).then(n.bind(null,2331)).then((function(e){return Vl(e.default||e)}))},zs=function(){return n.e(297).then(n.bind(null,2065)).then((function(e){return Vl(e.default||e)}))},$s=function(){return n.e(303).then(n.bind(null,2076)).then((function(e){return Vl(e.default||e)}))},Hs=function(){return Promise.all([n.e(6),n.e(8),n.e(9),n.e(12),n.e(305)]).then(n.bind(null,2466)).then((function(e){return Vl(e.default||e)}))},Gs=function(){return n.e(307).then(n.bind(null,2159)).then((function(e){return Vl(e.default||e)}))},Vs=function(){return n.e(308).then(n.bind(null,2160)).then((function(e){return Vl(e.default||e)}))},Ws=function(){return Promise.resolve().then(n.bind(null,1160)).then((function(e){return Vl(e.default||e)}))},qs=function(){return n.e(300).then(n.bind(null,2323)).then((function(e){return Vl(e.default||e)}))},Ks=function(){return n.e(304).then(n.bind(null,2474)).then((function(e){return Vl(e.default||e)}))},Ys=function(){return Promise.all([n.e(6),n.e(8),n.e(9),n.e(12),n.e(329)]).then(n.bind(null,2475)).then((function(e){return Vl(e.default||e)}))},Xs=function(){return n.e(331).then(n.bind(null,2169)).then((function(e){return Vl(e.default||e)}))},Js=function(){return n.e(332).then(n.bind(null,2339)).then((function(e){return Vl(e.default||e)}))},Zs=function(){return Promise.resolve().then(n.bind(null,61)).then((function(e){return Vl(e.default||e)}))},Qs=function(){return Promise.resolve().then(n.bind(null,446)).then((function(e){return Vl(e.default||e)}))},ec=function(){return Promise.resolve().then(n.bind(null,776)).then((function(e){return Vl(e.default||e)}))},tc=function(){return n.e(330).then(n.bind(null,2477)).then((function(e){return Vl(e.default||e)}))},nc=function(){return Promise.resolve().then(n.bind(null,1181)).then((function(e){return Vl(e.default||e)}))},rc=function(){return Promise.resolve().then(n.bind(null,751)).then((function(e){return Vl(e.default||e)}))},ic=function(){return n.e(339).then(n.bind(null,2341)).then((function(e){return Vl(e.default||e)}))},oc=function(){return Promise.all([n.e(34),n.e(353)]).then(n.bind(null,2556)).then((function(e){return Vl(e.default||e)}))},ac=function(){return Promise.all([n.e(15),n.e(17),n.e(16),n.e(354)]).then(n.bind(null,2480)).then((function(e){return Vl(e.default||e)}))},sc=function(){return Promise.all([n.e(15),n.e(17),n.e(16),n.e(347)]).then(n.bind(null,2486)).then((function(e){return Vl(e.default||e)}))},cc=function(){return Promise.all([n.e(17),n.e(348)]).then(n.bind(null,2349)).then((function(e){return Vl(e.default||e)}))},uc=function(){return n.e(349).then(n.bind(null,2172)).then((function(e){return Vl(e.default||e)}))},lc=function(){return n.e(350).then(n.bind(null,2087)).then((function(e){return Vl(e.default||e)}))},hc=function(){return n.e(351).then(n.bind(null,2481)).then((function(e){return Vl(e.default||e)}))},dc=function(){return n.e(352).then(n.bind(null,2416)).then((function(e){return Vl(e.default||e)}))},fc=function(){return n.e(15).then(n.bind(null,2350)).then((function(e){return Vl(e.default||e)}))},pc=function(){return n.e(356).then(n.bind(null,2351)).then((function(e){return Vl(e.default||e)}))},mc=function(){return n.e(16).then(n.bind(null,2352)).then((function(e){return Vl(e.default||e)}))},gc=function(){return n.e(355).then(n.bind(null,2354)).then((function(e){return Vl(e.default||e)}))},vc=function(){return Promise.all([n.e(8),n.e(271)]).then(n.bind(null,1897)).then((function(e){return Vl(e.default||e)}))},bc=function(){return n.e(272).then(n.bind(null,2467)).then((function(e){return Vl(e.default||e)}))},yc=function(){return Promise.all([n.e(8),n.e(273)]).then(n.bind(null,2073)).then((function(e){return Vl(e.default||e)}))},wc=function(){return n.e(274).then(n.bind(null,2318)).then((function(e){return Vl(e.default||e)}))},Sc=function(){return n.e(275).then(n.bind(null,2319)).then((function(e){return Vl(e.default||e)}))},_c=function(){return n.e(8).then(n.bind(null,2119)).then((function(e){return Vl(e.default||e)}))},Cc=function(){return n.e(276).then(n.bind(null,2468)).then((function(e){return Vl(e.default||e)}))},Oc=function(){return n.e(270).then(n.bind(null,1997)).then((function(e){return Vl(e.default||e)}))},Ac=function(){return n.e(280).then(n.bind(null,2320)).then((function(e){return Vl(e.default||e)}))},Tc=function(){return Promise.all([n.e(6),n.e(281)]).then(n.bind(null,2469)).then((function(e){return Vl(e.default||e)}))},Ec=function(){return n.e(282).then(n.bind(null,2472)).then((function(e){return Vl(e.default||e)}))},Pc=function(){return n.e(6).then(n.bind(null,2470)).then((function(e){return Vl(e.default||e)}))},Mc=function(){return Promise.all([n.e(6),n.e(9),n.e(278)]).then(n.bind(null,1899)).then((function(e){return Vl(e.default||e)}))},xc=function(){return Promise.all([n.e(6),n.e(9),n.e(279)]).then(n.bind(null,2074)).then((function(e){return Vl(e.default||e)}))},kc=function(){return Promise.all([n.e(6),n.e(9)]).then(n.bind(null,2114)).then((function(e){return Vl(e.default||e)}))},Ic=function(){return n.e(283).then(n.bind(null,2471)).then((function(e){return Vl(e.default||e)}))},Rc=function(){return n.e(284).then(n.bind(null,1952)).then((function(e){return Vl(e.default||e)}))},jc=function(){return n.e(277).then(n.bind(null,1857)).then((function(e){return Vl(e.default||e)}))},Dc=function(){return Promise.resolve().then(n.bind(null,534)).then((function(e){return Vl(e.default||e)}))},Nc=function(){return Promise.resolve().then(n.bind(null,762)).then((function(e){return Vl(e.default||e)}))},Lc=function(){return n.e(302).then(n.bind(null,2321)).then((function(e){return Vl(e.default||e)}))},Bc=function(){return Promise.resolve().then(n.bind(null,694)).then((function(e){return Vl(e.default||e)}))},Uc=function(){return Promise.resolve().then(n.bind(null,1159)).then((function(e){return Vl(e.default||e)}))},Fc=function(){return n.e(306).then(n.bind(null,2078)).then((function(e){return Vl(e.default||e)}))},zc=function(){return Promise.resolve().then(n.bind(null,757)).then((function(e){return Vl(e.default||e)}))},$c=function(){return Promise.resolve().then(n.bind(null,1162)).then((function(e){return Vl(e.default||e)}))},Hc=function(){return n.e(312).then(n.bind(null,1944)).then((function(e){return Vl(e.default||e)}))},Gc=function(){return n.e(313).then(n.bind(null,1883)).then((function(e){return Vl(e.default||e)}))},Vc=function(){return n.e(318).then(n.bind(null,1794)).then((function(e){return Vl(e.default||e)}))},Wc=function(){return n.e(319).then(n.bind(null,2162)).then((function(e){return Vl(e.default||e)}))},qc=function(){return Promise.all([n.e(24),n.e(33),n.e(309)]).then(n.bind(null,2322)).then((function(e){return Vl(e.default||e)}))},Kc=function(){return n.e(310).then(n.bind(null,1795)).then((function(e){return Vl(e.default||e)}))},Yc=function(){return Promise.all([n.e(24),n.e(33),n.e(311)]).then(n.bind(null,2242)).then((function(e){return Vl(e.default||e)}))},Xc=function(){return n.e(328).then(n.bind(null,2081)).then((function(e){return Vl(e.default||e)}))},Jc=function(){return Promise.resolve().then(n.bind(null,1180)).then((function(e){return Vl(e.default||e)}))},Zc=function(){return Promise.resolve().then(n.bind(null,59)).then((function(e){return Vl(e.default||e)}))},Qc=function(){return Promise.resolve().then(n.bind(null,86)).then((function(e){return Vl(e.default||e)}))},eu=function(){return n.e(268).then(n.bind(null,2170)).then((function(e){return Vl(e.default||e)}))},tu=function(){return Promise.resolve().then(n.bind(null,284)).then((function(e){return Vl(e.default||e)}))},nu=function(){return n.e(340).then(n.bind(null,2340)).then((function(e){return Vl(e.default||e)}))},ru=function(){return Promise.resolve().then(n.bind(null,1182)).then((function(e){return Vl(e.default||e)}))},iu=function(){return Promise.resolve().then(n.bind(null,109)).then((function(e){return Vl(e.default||e)}))},ou=function(){return n.e(336).then(n.bind(null,2342)).then((function(e){return Vl(e.default||e)}))},au=function(){return n.e(337).then(n.bind(null,2171)).then((function(e){return Vl(e.default||e)}))},su=function(){return Promise.resolve().then(n.bind(null,777)).then((function(e){return Vl(e.default||e)}))},cu=function(){return n.e(333).then(n.bind(null,2343)).then((function(e){return Vl(e.default||e)}))},uu=function(){return n.e(334).then(n.bind(null,2344)).then((function(e){return Vl(e.default||e)}))},lu=function(){return n.e(335).then(n.bind(null,2345)).then((function(e){return Vl(e.default||e)}))},hu=function(){return n.e(338).then(n.bind(null,2346)).then((function(e){return Vl(e.default||e)}))},du=function(){return n.e(341).then(n.bind(null,1820)).then((function(e){return Vl(e.default||e)}))},fu=function(){return Promise.resolve().then(n.bind(null,690)).then((function(e){return Vl(e.default||e)}))},pu=function(){return Promise.resolve().then(n.bind(null,1146)).then((function(e){return Vl(e.default||e)}))},mu=function(){return Promise.resolve().then(n.bind(null,111)).then((function(e){return Vl(e.default||e)}))},gu=function(){return Promise.resolve().then(n.bind(null,1147)).then((function(e){return Vl(e.default||e)}))},vu=function(){return Promise.resolve().then(n.bind(null,1148)).then((function(e){return Vl(e.default||e)}))},bu=function(){return Promise.resolve().then(n.bind(null,1149)).then((function(e){return Vl(e.default||e)}))},yu=function(){return Promise.resolve().then(n.bind(null,1150)).then((function(e){return Vl(e.default||e)}))},wu=function(){return Promise.resolve().then(n.bind(null,1151)).then((function(e){return Vl(e.default||e)}))},Su=function(){return Promise.resolve().then(n.bind(null,1152)).then((function(e){return Vl(e.default||e)}))},_u=function(){return Promise.resolve().then(n.bind(null,1153)).then((function(e){return Vl(e.default||e)}))},Cu=function(){return Promise.resolve().then(n.bind(null,1154)).then((function(e){return Vl(e.default||e)}))},Ou=function(){return Promise.resolve().then(n.bind(null,1155)).then((function(e){return Vl(e.default||e)}))},Au=function(){return n.e(316).then(n.bind(null,2161)).then((function(e){return Vl(e.default||e)}))},Tu=function(){return n.e(314).then(n.bind(null,2473)).then((function(e){return Vl(e.default||e)}))},Eu=function(){return n.e(315).then(n.bind(null,2562)).then((function(e){return Vl(e.default||e)}))},Pu=function(){return n.e(317).then(n.bind(null,2163)).then((function(e){return Vl(e.default||e)}))},Mu=function(){return n.e(320).then(n.bind(null,2075)).then((function(e){return Vl(e.default||e)}))},xu=function(){return Promise.all([n.e(24),n.e(321)]).then(n.bind(null,2243)).then((function(e){return Vl(e.default||e)}))},ku=function(){return Promise.resolve().then(n.bind(null,692)).then((function(e){return Vl(e.default||e)}))},Iu=function(){return n.e(323).then(n.bind(null,2079)).then((function(e){return Vl(e.default||e)}))},Ru=function(){return n.e(324).then(n.bind(null,2164)).then((function(e){return Vl(e.default||e)}))},ju=function(){return n.e(325).then(n.bind(null,1980)).then((function(e){return Vl(e.default||e)}))},Du=function(){return n.e(322).then(n.bind(null,2080)).then((function(e){return Vl(e.default||e)}))},Nu=function(){return Promise.resolve().then(n.bind(null,759)).then((function(e){return Vl(e.default||e)}))},Lu=function(){return n.e(326).then(n.bind(null,2165)).then((function(e){return Vl(e.default||e)}))},Bu=function(){return n.e(327).then(n.bind(null,2082)).then((function(e){return Vl(e.default||e)}))},Uu=function(){return Promise.resolve().then(n.bind(null,389)).then((function(e){return Vl(e.default||e)}))},Fu=function(){return Promise.resolve().then(n.bind(null,1108)).then((function(e){return Vl(e.default||e)}))},zu=function(){return Promise.resolve().then(n.bind(null,1109)).then((function(e){return Vl(e.default||e)}))},$u=function(){return Promise.resolve().then(n.bind(null,1110)).then((function(e){return Vl(e.default||e)}))},Hu=function(){return Promise.resolve().then(n.bind(null,1111)).then((function(e){return Vl(e.default||e)}))},Gu=function(){return Promise.resolve().then(n.bind(null,1112)).then((function(e){return Vl(e.default||e)}))},Vu=function(){return Promise.resolve().then(n.bind(null,1113)).then((function(e){return Vl(e.default||e)}))},Wu=function(){return Promise.resolve().then(n.bind(null,1114)).then((function(e){return Vl(e.default||e)}))},qu=function(){return Promise.resolve().then(n.bind(null,1115)).then((function(e){return Vl(e.default||e)}))},Ku=function(){return Promise.resolve().then(n.bind(null,1116)).then((function(e){return Vl(e.default||e)}))},Yu=function(){return Promise.resolve().then(n.bind(null,1117)).then((function(e){return Vl(e.default||e)}))},Xu=function(){return Promise.resolve().then(n.bind(null,1118)).then((function(e){return Vl(e.default||e)}))},Ju=function(){return Promise.resolve().then(n.bind(null,434)).then((function(e){return Vl(e.default||e)}))},Zu=function(){return Promise.resolve().then(n.bind(null,1119)).then((function(e){return Vl(e.default||e)}))},Qu=function(){return Promise.resolve().then(n.bind(null,1120)).then((function(e){return Vl(e.default||e)}))},el=function(){return Promise.resolve().then(n.bind(null,1121)).then((function(e){return Vl(e.default||e)}))},tl=function(){return Promise.resolve().then(n.bind(null,1127)).then((function(e){return Vl(e.default||e)}))},nl=function(){return Promise.resolve().then(n.bind(null,1128)).then((function(e){return Vl(e.default||e)}))},rl=function(){return Promise.resolve().then(n.bind(null,1129)).then((function(e){return Vl(e.default||e)}))},il=function(){return Promise.resolve().then(n.bind(null,1131)).then((function(e){return Vl(e.default||e)}))},al=function(){return Promise.resolve().then(n.bind(null,1133)).then((function(e){return Vl(e.default||e)}))},sl=function(){return Promise.resolve().then(n.bind(null,1139)).then((function(e){return Vl(e.default||e)}))},cl=function(){return Promise.resolve().then(n.bind(null,1083)).then((function(e){return Vl(e.default||e)}))},ll=function(){return Promise.resolve().then(n.bind(null,1140)).then((function(e){return Vl(e.default||e)}))},hl=function(){return Promise.resolve().then(n.bind(null,1084)).then((function(e){return Vl(e.default||e)}))},fl=function(){return Promise.resolve().then(n.bind(null,1142)).then((function(e){return Vl(e.default||e)}))},pl=function(){return Promise.resolve().then(n.bind(null,663)).then((function(e){return Vl(e.default||e)}))},ml=function(){return Promise.resolve().then(n.bind(null,1144)).then((function(e){return Vl(e.default||e)}))},gl=function(){return Promise.resolve().then(n.bind(null,1145)).then((function(e){return Vl(e.default||e)}))},vl=function(){return Promise.resolve().then(n.bind(null,1168)).then((function(e){return Vl(e.default||e)}))},bl=function(){return Promise.resolve().then(n.bind(null,1169)).then((function(e){return Vl(e.default||e)}))},yl=function(){return Promise.resolve().then(n.bind(null,1170)).then((function(e){return Vl(e.default||e)}))},wl=function(){return Promise.resolve().then(n.bind(null,1171)).then((function(e){return Vl(e.default||e)}))},Sl=function(){return Promise.resolve().then(n.bind(null,664)).then((function(e){return Vl(e.default||e)}))},_l=function(){return Promise.resolve().then(n.bind(null,1173)).then((function(e){return Vl(e.default||e)}))},Cl=function(){return Promise.resolve().then(n.bind(null,1174)).then((function(e){return Vl(e.default||e)}))},Ol=function(){return Promise.resolve().then(n.bind(null,1175)).then((function(e){return Vl(e.default||e)}))},Al=function(){return Promise.resolve().then(n.bind(null,1176)).then((function(e){return Vl(e.default||e)}))},Tl=function(){return Promise.resolve().then(n.bind(null,1177)).then((function(e){return Vl(e.default||e)}))},El=function(){return Promise.resolve().then(n.bind(null,1178)).then((function(e){return Vl(e.default||e)}))},Pl=function(){return Promise.resolve().then(n.bind(null,1179)).then((function(e){return Vl(e.default||e)}))},Ml=function(){return Promise.resolve().then(n.bind(null,665)).then((function(e){return Vl(e.default||e)}))},xl=function(){return Promise.resolve().then(n.bind(null,1184)).then((function(e){return Vl(e.default||e)}))},kl=function(){return Promise.resolve().then(n.bind(null,1183)).then((function(e){return Vl(e.default||e)}))},Il=function(){return Promise.resolve().then(n.bind(null,1185)).then((function(e){return Vl(e.default||e)}))},Rl=function(){return Promise.resolve().then(n.bind(null,1186)).then((function(e){return Vl(e.default||e)}))},jl=function(){return Promise.resolve().then(n.bind(null,1187)).then((function(e){return Vl(e.default||e)}))},Dl=function(){return Promise.resolve().then(n.bind(null,1130)).then((function(e){return Vl(e.default||e)}))},Nl=function(){return Promise.resolve().then(n.bind(null,1138)).then((function(e){return Vl(e.default||e)}))},Ll=function(){return Promise.resolve().then(n.bind(null,1137)).then((function(e){return Vl(e.default||e)}))},Bl=function(){return Promise.resolve().then(n.bind(null,127)).then((function(e){return Vl(e.default||e)}))},Ul=function(){return Promise.resolve().then(n.bind(null,1141)).then((function(e){return Vl(e.default||e)}))},Fl=function(){return Promise.resolve().then(n.bind(null,1158)).then((function(e){return Vl(e.default||e)}))},zl=function(){return Promise.resolve().then(n.bind(null,1157)).then((function(e){return Vl(e.default||e)}))},$l=function(){return Promise.resolve().then(n.bind(null,1163)).then((function(e){return Vl(e.default||e)}))},Hl=function(){return Promise.resolve().then(n.bind(null,1156)).then((function(e){return Vl(e.default||e)}))},Gl=function(){return Promise.resolve().then(n.bind(null,1167)).then((function(e){return Vl(e.default||e)}))};function Vl(e){if(!e||!e.functional)return e;var t=Array.isArray(e.props)?e.props:Object.keys(e.props||{});return{render:function(n){var r={},o={};for(var c in this.$attrs)t.includes(c)?o[c]=this.$attrs[c]:r[c]=this.$attrs[c];return n(e,{on:this.$listeners,attrs:r,props:o,scopedSlots:this.$scopedSlots},this.$slots.default)}}}for(var Wl in r)l.a.component(Wl,r[Wl]),l.a.component("Lazy"+Wl,r[Wl]);var ql=n(316),Kl={lang:{locales:{en:{badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."},fr:{badge:"Badge",close:"Fermer",dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Élements par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},datePicker:{itemsSelected:"{0} sélectionné(s)",nextMonthAriaLabel:"Le mois prochain",nextYearAriaLabel:"L'année prochaine",prevMonthAriaLabel:"Le mois précédent",prevYearAriaLabel:"Année précédente"},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}"}},rating:{ariaLabel:{icon:"Note de {0} sur {1}"}},loading:"Loading..."}},current:"fr"},theme:{dark:!1,themes:{light:{primary:"#2a62f4",secondary:"#ffffff",background:"#f5f5f5",accent:{base:"#2a62f4"},success:{base:"#2daa14"},warning:{base:"#ff9500"},error:{base:"#f6404e"},info:{base:"#28c2f6"},live:{base:"#de0237"},"neutral-black":{base:"#101010"},"neutral-800":{base:"#202020"},"neutral-700":{base:"#363636"},"neutral-600":{base:"#464646"},"neutral-500":{base:"#666666"},"neutral-400":{base:"#b6b6b6"},"neutral-300":{base:"#d6d6d6"},"neutral-200":{base:"#ebebeb"},"neutral-100":{base:"#f5f5f5"},"neutral-white":{base:"#ffffff"},"brand-poulpi":{base:"#9542FF"},"brand-bloo":{base:"#0037C6"},"brand-better-bloo":{base:"#2A62F4"},"brand-indigogo":{base:"#46F2F2"},"brand-mentalo":{base:"#00774C"},"brand-banane":{base:"#FEF335"},"brand-better-banane":{base:"#F3B108"},"brand-rosa":{base:"#EB0046"},"brand-orange":{base:"#FF4617"},"brand-better-orange":{base:"#F26400"},"brand-green":{base:"#2DAA14"}},dark:{primary:"#ffffff",background:"#363636",accent:"#2a62f4",success:{base:"#2daa14"},warning:{base:"#ff9500"},error:{base:"#f6404e"},info:{base:"#28c2f6"},live:{base:"#de0237"},"neutral-black":{base:"#101010"},"neutral-800":{base:"#202020"},"neutral-700":{base:"#363636"},"neutral-600":{base:"#464646"},"neutral-500":{base:"#666666"},"neutral-400":{base:"#b6b6b6"},"neutral-300":{base:"#d6d6d6"},"neutral-200":{base:"#ebebeb"},"neutral-100":{base:"#f5f5f5"},"neutral-white":{base:"#ffffff"},"brand-poulpi":{base:"#9542FF"},"brand-bloo":{base:"#0037C6"},"brand-better-bloo":{base:"#2A62F4"},"brand-indigogo":{base:"#46F2F2"},"brand-mentalo":{base:"#00774C"},"brand-banane":{base:"#FEF335"},"brand-better-banane":{base:"#F3B108"},"brand-rosa":{base:"#EB0046"},"brand-orange":{base:"#FF4617"},"brand-better-orange":{base:"#F26400"},"brand-green":{base:"#2DAA14"}}},options:{customProperties:!0}}};l.a.use(ql.a,{});var Yl=function(e){var t="function"==typeof Kl?Kl(e):Kl,n=new ql.a(t);e.app.vuetify=n,e.$vuetify=n.framework},Xl=n(633),Jl=n.n(Xl),Zl=({}||{}).autoSetContainer,Ql=void 0!==Zl&&Zl;Jl.a.config.autoSetContainer=Ql,l.a.use(Jl.a);var eh=n(35),nh=(n(12),n(43),n(192),n(287)),rh={COMPONENT_OPTIONS_KEY:"nuxtI18n",STRATEGIES:{PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},REDIRECT_ON_OPTIONS:{ALL:"all",ROOT:"root",NO_PREFIX:"no prefix"}},ih={isUniversalMode:!1,trailingSlash:void 0},oh={vueI18n:{},vueI18nLoader:!1,locales:[{code:"en",iso:"en-GB",file:"en/index.ts"},{code:"fr",iso:"fr-FR",file:"fr/index.ts"}],defaultLocale:"fr",defaultDirection:"ltr",routesNameSeparator:"___",defaultLocaleRouteNameSuffix:"default",sortRoutes:!0,strategy:"no_prefix",lazy:!0,langDir:"i18n/",rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieAge:365,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"",vuex:{moduleName:"i18n",syncRouteParams:!0},parsePages:!0,pages:{},skipSettingLocaleOnNavigate:!1,onBeforeLanguageSwitch:function(){},onLanguageSwitched:function(){return null},seo:!0,normalizedLocales:[{code:"en",iso:"en-GB",file:"en/index.ts"},{code:"fr",iso:"fr-FR",file:"fr/index.ts"}],localeCodes:["en","fr"],additionalMessages:[]},ah={"en/index.ts":function(){return Promise.resolve().then(n.bind(null,1189))},"fr/index.ts":function(){return Promise.resolve().then(n.bind(null,1190))}},sh=(n(122),n(226),n(489),n(206),n(1612),n(634)),ch=n.n(sh);function uh(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function lh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return hh(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 hh(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function hh(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function dh(text){return"[@nuxtjs/i18n] ".concat(text)}function fh(e,t){var n,r=[],o=[],c=lh(e);try{for(c.s();!(n=c.n()).done;){var l=n.value,code=l.code,h=l.iso||code;o.push({code:code,iso:h})}}catch(e){c.e(e)}finally{c.f()}var d,f=lh(t.entries());try{var m=function(){var e=Object(I.a)(d.value,2),n=e[0],c=e[1],l=o.find((function(e){return e.iso.toLowerCase()===c.toLowerCase()}));if(l)return r.push({code:l.code,score:1-n/t.length}),1};for(f.s();!(d=f.n()).done&&!m(););}catch(e){f.e(e)}finally{f.f()}var v,y=lh(t.entries());try{var w=function(){var e=Object(I.a)(v.value,2),n=e[0],c=e[1].split("-")[0].toLowerCase(),l=o.find((function(e){return e.iso.split("-")[0].toLowerCase()===c}));if(l)return r.push({code:l.code,score:.999-n/t.length}),1};for(y.s();!(v=y.n()).done&&!w(););}catch(e){y.e(e)}finally{y.f()}return r.length>1&&r.sort((function(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score})),r.length?r[0].code:void 0}function ph(e,t){var n;if(n=window.location.host){var r=e.find((function(e){return e.domain===n}));if(r)return r.code}return""}function mh(e){return new RegExp("^/(".concat(e.join("|"),")(?:/|$)"))}function gh(e,t){var n=t.routesNameSeparator,r=t.defaultLocaleRouteNameSuffix,o="(".concat(e.join("|"),")"),c="(?:".concat(n).concat(r,")?"),l=new RegExp("".concat(n).concat(o).concat(c,"$")),h=mh(e);return function(e){if(e.name){var t=e.name.match(l);if(t&&t.length>1)return t[1]}else if(e.path){var n=e.path.match(h);if(n&&n.length>1)return n[1]}return""}}function vh(e,t){var n,r=t.useCookie,o=t.cookieKey,c=t.localeCodes;if(r&&((n=ch.a.get(o))&&c.includes(n)))return n}function bh(e,t,n){var r=n.useCookie,o=n.cookieAge,l=n.cookieDomain,h=n.cookieKey,d=n.cookieSecure,f=n.cookieCrossOrigin;if(r){var m=function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?uh(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):uh(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({expires:o,path:"/",sameSite:f?"none":"lax",secure:f||d},l?{domain:l}:{});ch.a.set(h,e,m)}}function yh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return wh(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 wh(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function wh(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Sh(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function _h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Sh(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Sh(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Ch(e,t){return Oh.apply(this,arguments)}function Oh(){return(Oh=Object(o.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,l,h,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,(o=r.i18n).loadedLanguages||(o.loadedLanguages=[]),o.loadedLanguages.includes(n)){e.next=34;break}if(!(c=oh.normalizedLocales.find((function(e){return e.code===n})))){e.next=33;break}if(!(l=c.file)){e.next=30;break}if((d=t.nuxtState)&&d.__i18n&&d.__i18n.langs[n]&&(h=d.__i18n.langs[n],t.isDev&&ah[l]()),h){e.next=27;break}return e.prev=10,e.next=13,ah[l]().then((function(e){return e.default||e}));case 13:if("function"!=typeof(f=e.sent)){e.next=20;break}return e.next=17,Promise.resolve(f(t,n));case 17:e.t0=e.sent,e.next=21;break;case 20:e.t0=f;case 21:h=e.t0,e.next=27;break;case 24:e.prev=24,e.t1=e.catch(10),console.error(dh("Failed loading async locale export: ".concat(e.t1.message)));case 27:h&&(o.setLocaleMessage(n,h),Ph(o,oh.additionalMessages,oh.localeCodes,[n]),o.loadedLanguages.push(n)),e.next=31;break;case 30:console.warn(dh("Could not find lang file for locale ".concat(n)));case 31:e.next=34;break;case 33:console.warn(dh('Attempted to load messages for non-existant locale code "'.concat(n,'"')));case 34:case"end":return e.stop()}}),e,null,[[10,24]])})))).apply(this,arguments)}function Ah(e,t,n,r){var o=r.differentDomains,c=r.normalizedLocales;if("function"==typeof e)return e(t);if(o&&n){var l=Th(n,t.req,{normalizedLocales:c});if(l)return l}return e}function Th(e,t,n){var r,o=n.normalizedLocales.find((function(t){return t.code===e}));if(o&&o.domain)return Object(nh.hasProtocol)(o.domain)?o.domain:(r=window.location.protocol.split(":")[0],"".concat(r,"://").concat(o.domain));console.warn(dh("Could not find domain name for locale ".concat(e)))}function Eh(e,t,n){var r={namespaced:!0,state:function(){return _h({},t.syncRouteParams?{routeParams:{}}:{})},actions:_h({},t.syncRouteParams?{setRouteParams:function(e,t){(0,e.commit)("setRouteParams",t)}}:{}),mutations:_h({},t.syncRouteParams?{setRouteParams:function(e,t){e.routeParams=t}}:{}),getters:_h({},t.syncRouteParams?{localeRouteParams:function(e){var t=e.routeParams;return function(e){return t&&t[e]||{}}}}:{})};e.registerModule(t.moduleName,r,{preserveState:!!e.state[t.moduleName]})}function Ph(e,t,n,r){var o,c=r||n,l=yh(t);try{for(l.s();!(o=l.n()).done;){var h,d=o.value,f=yh(c);try{for(f.s();!(h=f.n()).done;){var m=h.value,v=e.getLocaleMessage(m);e.mergeLocaleMessage(m,d[m]),e.mergeLocaleMessage(m,v)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){l.e(e)}finally{l.f()}}var Mh=n(95),xh=(n(490),n(425)),kh=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(t){var n,r,o,c,l,h,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.app,!t.isHMR){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,n.i18n.__onNavigate(t.route);case 5:r=e.sent,o=Object(I.a)(r,3),c=o[0],l=o[1],h=o[2],c&&l&&(d=h?t.route.query:void 0,t.redirect(c,l,d));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();xh.a.nuxti18n=kh;var Ih=["params"];function Rh(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function jh(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Rh(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Rh(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Dh(e,t){var n=Bh.call(this,e,t);return n?n.route.redirectedFrom||n.route.fullPath:""}function Nh(e,t){var n=Bh.call(this,e,t);return n?n.route:void 0}function Lh(e,t){var n=Bh.call(this,e,t);return n?n.location:void 0}function Bh(e,t){if(e){var n=this.i18n;if(t=t||n.locale){"string"==typeof e&&(e="/"===e[0]?{path:e}:{name:e});var r=Object.assign({},e);if(r.path&&!r.name){var o=this.router.resolve(r).route,c=this.getRouteBaseName(o);if(c)r={name:zh(c,t),params:o.params,query:o.query,hash:o.hash};else!(t===oh.defaultLocale&&[rh.STRATEGIES.PREFIX_EXCEPT_DEFAULT,rh.STRATEGIES.PREFIX_AND_DEFAULT].includes(oh.strategy)||oh.strategy===rh.STRATEGIES.NO_PREFIX||n.differentDomains)&&(r.path="/".concat(t).concat(r.path)),r.path=ih.trailingSlash?Object(nh.withTrailingSlash)(r.path,!0):Object(nh.withoutTrailingSlash)(r.path,!0)}else{r.name||r.path||(r.name=this.getRouteBaseName()),r.name=zh(r.name,t);var l=r.params;l&&void 0===l[0]&&l.pathMatch&&(l[0]=l.pathMatch)}var h=this.router.resolve(r);return h.route.name?h:this.router.resolve(e)}}}function Uh(e){var t=this.getRouteBaseName();if(!t)return"";var n=this.i18n,r=this.route,o=this.store,c=r.params,l=Object(Mh.a)(r,Ih),h={};oh.vuex&&oh.vuex.syncRouteParams&&o&&(h=o.getters["".concat(oh.vuex.moduleName,"/localeRouteParams")](e));var d=Object.assign({},l,{name:t,params:jh(jh(jh({},c),h),{},{0:c.pathMatch})}),path=this.localePath(d,e);if(n.differentDomains){var f={differentDomains:n.differentDomains,normalizedLocales:oh.normalizedLocales},m=Th(e,this.req,f);m&&(path=m+path)}return path}function Fh(e){var t=void 0!==e?e:this.route;if(t&&t.name)return t.name.split(oh.routesNameSeparator)[0]}function zh(e,t){var n=e+(oh.strategy===rh.STRATEGIES.NO_PREFIX?"":oh.routesNameSeparator+t);return t===oh.defaultLocale&&oh.strategy===rh.STRATEGIES.PREFIX_AND_DEFAULT&&(n+=oh.routesNameSeparator+oh.defaultLocaleRouteNameSuffix),n}var $h=function(e){return function(){var t={getRouteBaseName:this.getRouteBaseName,i18n:this.$i18n,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,req:null,route:this.$route,router:this.$router,store:this.$store};return e.call.apply(e,[t].concat(Array.prototype.slice.call(arguments)))}},Hh=function(e,t){return function(){var n=e.app,r=(e.req,e.route),o=e.store,c={getRouteBaseName:n.getRouteBaseName,i18n:n.i18n,localePath:n.localePath,localeLocation:n.localeLocation,localeRoute:n.localeRoute,req:null,route:r,router:n.router,store:o};return t.call.apply(t,[c].concat(Array.prototype.slice.call(arguments)))}},Gh={install:function(e){e.mixin({methods:{localePath:$h(Dh),localeRoute:$h(Nh),localeLocation:$h(Lh),switchLocalePath:$h(Uh),getRouteBaseName:$h(Fh)}})}},Vh=function(e){l.a.use(Gh);var t=e.app,n=e.store;t.localePath=e.localePath=Hh(e,Dh),t.localeRoute=e.localeRoute=Hh(e,Nh),t.localeLocation=e.localeLocation=Hh(e,Lh),t.switchLocalePath=e.switchLocalePath=Hh(e,Uh),t.getRouteBaseName=e.getRouteBaseName=Hh(e,Fh),n&&(n.localePath=t.localePath,n.localeRoute=t.localeRoute,n.localeLocation=t.localeLocation,n.switchLocalePath=t.switchLocalePath,n.getRouteBaseName=t.getRouteBaseName)},Wh=(n(92),["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"]),qh=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Kh(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var Yh=Array.isArray;function Xh(e){return null!==e&&"object"==typeof e}function Jh(e){return"string"==typeof e}var Zh=Object.prototype.toString,Qh="[object Object]";function ed(e){return Zh.call(e)===Qh}function nd(e){return null==e}function rd(e){return"function"==typeof e}function id(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?Xh(e[0])||Yh(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(Xh(e[1])||Yh(e[1]))&&(r=e[1])),{locale:n,params:r}}function od(e){return JSON.parse(JSON.stringify(e))}function ad(e,t){return!!~e.indexOf(t)}var sd=Object.prototype.hasOwnProperty;function cd(e,t){return sd.call(e,t)}function ud(e){for(var t=arguments,output=Object(e),i=1;i<arguments.length;i++){var source=t[i];if(null!=source){var n=void 0;for(n in source)cd(source,n)&&(Xh(source[n])?output[n]=ud(output[n],source[n]):output[n]=source[n])}}return output}function ld(a,b){if(a===b)return!0;var e=Xh(a),t=Xh(b);if(!e||!t)return!e&&!t&&String(a)===String(b);try{var n=Yh(a),r=Yh(b);if(n&&r)return a.length===b.length&&a.every((function(e,i){return ld(e,b[i])}));if(n||r)return!1;var o=Object.keys(a),c=Object.keys(b);return o.length===c.length&&o.every((function(e){return ld(a[e],b[e])}))}catch(e){return!1}}var hd={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var data=t.data,n=t.parent,r=t.props,o=t.slots,c=n.$i18n;if(c){var path=r.path,l=r.locale,h=r.places,d=o(),f=c.i(path,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(d)||h?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(pd,{}):Object.assign({},e)}(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(md);0;return e.reduce(r?fd:pd,n)}(d.default,h):d),m=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return m?e(m,data,f):f}}};function fd(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function pd(e,t,n){return e[n]=t,e}function md(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var gd,vd={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,data=t.data,o=r.$i18n;if(!o)return null;var c=null,l=null;Jh(n.format)?c=n.format:Xh(n.format)&&(n.format.key&&(c=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var r;return ad(Wh,t)?Object.assign({},e,((r={})[t]=n.format[t],r)):e}),null));var h=n.locale||o.locale,d=o._ntp(n.value,h,c,l),f=d.map((function(e,t){var n,slot=data.scopedSlots&&data.scopedSlots[e.type];return slot?slot(((n={})[e.type]=e.value,n.index=t,n.parts=d,n)):e.value})),m=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return m?e(m,{attrs:data.attrs,class:data.class,staticClass:data.staticClass},f):f}};function bd(e,t,n){Sd(e,n)&&_d(e,t,n)}function yd(e,t,n,r){if(Sd(e,n)){var o=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&ld(t.value,t.oldValue)&&ld(e._localeMessage,o.getLocaleMessage(o.locale))||_d(e,t,n)}}function wd(e,t,n,r){if(n.context){var o=n.context.$i18n||{};t.modifiers.preserve||o.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else Kh("Vue instance does not exists in VNode context")}function Sd(e,t){var n=t.context;return n?!!n.$i18n||(Kh("VueI18n instance does not exists in Vue instance"),!1):(Kh("Vue instance does not exists in VNode context"),!1)}function _d(e,t,n){var r,o,c=function(e){var path,t,n,r;Jh(e)?path=e:ed(e)&&(path=e.path,t=e.locale,n=e.args,r=e.choice);return{path:path,locale:t,args:n,choice:r}}(t.value),path=c.path,l=c.locale,h=c.args,d=c.choice;if(path||l||h)if(path){var f=n.context;e._vt=e.textContent=null!=d?(r=f.$i18n).tc.apply(r,[path,d].concat(Cd(l,h))):(o=f.$i18n).t.apply(o,[path].concat(Cd(l,h))),e._locale=f.$i18n.locale,e._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else Kh("`path` is required in v-t directive");else Kh("value type not supported")}function Cd(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||ed(t))&&n.push(t),n}function Od(e,t){void 0===t&&(t={bridge:!1}),Od.installed=!0;(gd=e).version&&Number(gd.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(gd),gd.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof Fd){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){t=ud(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(ed(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Fd?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){r=ud(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){}var o=e.i18n.sharedMessages;o&&ed(o)&&(e.i18n.messages=ud(e.i18n.messages,o)),this._i18n=new Fd(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Fd?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Fd&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof Fd||ed(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Fd||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Fd)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),gd.directive("t",{bind:bd,update:yd,unbind:wd}),gd.component(hd.name,hd),gd.component(vd.name,vd),gd.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Ad=function(){this._caches=Object.create(null)};Ad.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,text="";for(;n<e.length;){var r=e[n++];if("{"===r){text&&t.push({type:"text",value:text}),text="";var sub="";for(r=e[n++];void 0!==r&&"}"!==r;)sub+=r,r=e[n++];var o="}"===r,c=Td.test(sub)?"list":o&&Ed.test(sub)?"named":"unknown";t.push({value:sub,type:c})}else"%"===r?"{"!==e[n]&&(text+=r):text+=r}return text&&t.push({type:"text",value:text}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,o=Array.isArray(t)?"list":Xh(t)?"named":"unknown";if("unknown"===o)return n;for(;r<e.length;){var c=e[r];switch(c.type){case"text":n.push(c.value);break;case"list":n.push(t[parseInt(c.value,10)]);break;case"named":"named"===o&&n.push(t[c.value])}r++}return n}(n,t)};var Td=/^(?:\d)+/,Ed=/^(?:\w)+/;var Pd=[];Pd[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},Pd[1]={ws:[1],".":[2],"[":[4],eof:[7]},Pd[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},Pd[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},Pd[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},Pd[5]={"'":[4,0],eof:8,else:[5,0]},Pd[6]={'"':[4,0],eof:8,else:[6,0]};var Md=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function xd(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function kd(path){var e,a,t,n=path.trim();return("0"!==path.charAt(0)||!isNaN(path))&&(t=n,Md.test(t)?(a=(e=n).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1):"*"+n)}var Id=function(){this._cache=Object.create(null)};Id.prototype.parsePath=function(path){var e=this._cache[path];return e||(e=function(path){var e,t,n,r,o,c,l,h=[],d=-1,f=0,m=0,v=[];function y(){var e=path[d+1];if(5===f&&"'"===e||6===f&&'"'===e)return d++,n="\\"+e,v[0](),!0}for(v[1]=function(){void 0!==t&&(h.push(t),t=void 0)},v[0]=function(){void 0===t?t=n:t+=n},v[2]=function(){v[0](),m++},v[3]=function(){if(m>0)m--,f=4,v[0]();else{if(m=0,void 0===t)return!1;if(!1===(t=kd(t)))return!1;v[1]()}};null!==f;)if(d++,"\\"!==(e=path[d])||!y()){if(r=xd(e),8===(o=(l=Pd[f])[r]||l.else||8))return;if(f=o[0],(c=v[o[1]])&&(n=void 0===(n=o[2])?e:n,!1===c()))return;if(7===f)return h}}(path),e&&(this._cache[path]=e)),e||[]},Id.prototype.getPathValue=function(e,path){if(!Xh(e))return null;var t=this.parsePath(path);if(0===t.length)return null;for(var n=t.length,r=e,i=0;i<n;){var o=r[t[i]];if(null==o)return null;r=o,i++}return r};var Rd,jd=/<\/?[\w\s="/.':;#-\/]+>/,Dd=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Nd=/^@(?:\.([a-zA-Z]+))?:/,Ld=/[()]/g,Bd={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Ud=new Ad,Fd=function(e){var t=this;void 0===e&&(e={}),!gd&&"undefined"!=typeof window&&window.Vue&&Od(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),o=e.messages||{},c=e.dateTimeFormats||e.datetimeFormats||{},l=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Ud,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Id,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var o,c;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(o=e,c=n,o=Math.abs(o),2===c?o?o>1?1:0:1:o?Math.min(o,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!nd(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])})),this._initVM({locale:n,fallbackLocale:r,messages:o,dateTimeFormats:c,numberFormats:l})},zd={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};Fd.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,o){if(ed(n))Object.keys(n).forEach((function(c){var l=n[c];ed(l)?(o.push(c),o.push("."),r(e,t,l,o),o.pop(),o.pop()):(o.push(c),r(e,t,l,o),o.pop())}));else if(Yh(n))n.forEach((function(n,c){ed(n)?(o.push("["+c+"]"),o.push("."),r(e,t,n,o),o.pop(),o.pop()):(o.push("["+c+"]"),r(e,t,n,o),o.pop())}));else if(Jh(n)){if(jd.test(n)){var c="Detected HTML in message '"+n+"' of keypath '"+o.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?Kh(c):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(c)}}};r(t,e,n,[])},Fd.prototype._initVM=function(data){var e=gd.config.silent;gd.config.silent=!0,this._vm=new gd({data:data,__VUE18N__INSTANCE__:!0}),gd.config.silent=e},Fd.prototype.destroyVM=function(){this._vm.$destroy()},Fd.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},Fd.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},Fd.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=function(e){var t=[];return e.forEach((function(a){return t.push(a)})),t}(e._dataListeners),i=t.length;i--;)gd.nextTick((function(){t[i]&&t[i].$forceUpdate()}))}),{deep:!0})},Fd.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},Fd.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},zd.vm.get=function(){return this._vm},zd.messages.get=function(){return od(this._getMessages())},zd.dateTimeFormats.get=function(){return od(this._getDateTimeFormats())},zd.numberFormats.get=function(){return od(this._getNumberFormats())},zd.availableLocales.get=function(){return Object.keys(this.messages).sort()},zd.locale.get=function(){return this._vm.locale},zd.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},zd.fallbackLocale.get=function(){return this._vm.fallbackLocale},zd.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},zd.formatFallbackMessages.get=function(){return this._formatFallbackMessages},zd.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},zd.missing.get=function(){return this._missing},zd.missing.set=function(e){this._missing=e},zd.formatter.get=function(){return this._formatter},zd.formatter.set=function(e){this._formatter=e},zd.silentTranslationWarn.get=function(){return this._silentTranslationWarn},zd.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},zd.silentFallbackWarn.get=function(){return this._silentFallbackWarn},zd.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},zd.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},zd.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},zd.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},zd.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},zd.postTranslation.get=function(){return this._postTranslation},zd.postTranslation.set=function(e){this._postTranslation=e},zd.sync.get=function(){return this._sync},zd.sync.set=function(e){this._sync=e},Fd.prototype._getMessages=function(){return this._vm.messages},Fd.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Fd.prototype._getNumberFormats=function(){return this._vm.numberFormats},Fd.prototype._warnDefault=function(e,t,n,r,o,c){if(!nd(n))return n;if(this._missing){var l=this._missing.apply(null,[e,t,r,o]);if(Jh(l))return l}else 0;if(this._formatFallbackMessages){var h=id.apply(void 0,o);return this._render(t,c,h.params,t)}return t},Fd.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:nd(e))&&!nd(this._root)&&this._fallbackRoot},Fd.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Fd.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Fd.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Fd.prototype._interpolate=function(e,t,n,r,o,c,l){if(!t)return null;var h,d=this._path.getPathValue(t,n);if(Yh(d)||ed(d))return d;if(nd(d)){if(!ed(t))return null;if(!Jh(h=t[n])&&!rd(h))return null}else{if(!Jh(d)&&!rd(d))return null;h=d}return Jh(h)&&(h.indexOf("@:")>=0||h.indexOf("@.")>=0)&&(h=this._link(e,t,h,r,"raw",c,l)),this._render(h,o,c,n)},Fd.prototype._link=function(e,t,n,r,o,c,l){var h=n,d=h.match(Dd);for(var f in d)if(d.hasOwnProperty(f)){var link=d[f],m=link.match(Nd),v=m[0],y=m[1],w=link.replace(v,"").replace(Ld,"");if(ad(l,w))return h;l.push(w);var S=this._interpolate(e,t,w,r,"raw"===o?"string":o,"raw"===o?void 0:c,l);if(this._isFallbackRoot(S)){if(!this._root)throw Error("unexpected error");var _=this._root.$i18n;S=_._translate(_._getMessages(),_.locale,_.fallbackLocale,w,r,o,c)}S=this._warnDefault(e,w,S,r,Yh(c)?c:[c],o),this._modifiers.hasOwnProperty(y)?S=this._modifiers[y](S):Bd.hasOwnProperty(y)&&(S=Bd[y](S)),l.pop(),h=S?h.replace(link,S):h}return h},Fd.prototype._createMessageContext=function(e,t,path,n){var r=this,o=Yh(e)?e:[],c=Xh(e)?e:{},l=this._getMessages(),h=this.locale;return{list:function(e){return o[e]},named:function(e){return c[e]},values:e,formatter:t,path:path,messages:l,locale:h,linked:function(e){return r._interpolate(h,l[h]||{},e,null,n,void 0,[e])}}},Fd.prototype._render=function(e,t,n,path){if(rd(e))return e(this._createMessageContext(n,this._formatter||Ud,path,t));var r=this._formatter.interpolate(e,n,path);return r||(r=Ud.interpolate(e,n,path)),"string"!==t||Jh(r)?r:r.join("")},Fd.prototype._appendItemToChain=function(e,t,n){var r=!1;return ad(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Fd.prototype._appendLocaleToChain=function(e,t,n){var r,o=t.split("-");do{var c=o.join("-");r=this._appendItemToChain(e,c,n),o.splice(-1,1)}while(o.length&&!0===r);return r},Fd.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&"boolean"==typeof r;i++){var o=t[i];Jh(o)&&(r=this._appendLocaleToChain(e,o,n))}return r},Fd.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,o=[e];Yh(o);)o=this._appendBlockToChain(n,o,t);(o=Jh(r=Yh(t)?t:Xh(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,o,null),this._localeChainCache[e]=n}return n},Fd.prototype._translate=function(e,t,n,r,o,c,l){for(var h,d=this._getLocaleChain(t,n),i=0;i<d.length;i++){var f=d[i];if(!nd(h=this._interpolate(f,e[f],r,o,c,l,[r])))return h}return null},Fd.prototype._t=function(e,t,n,r){for(var o,c=[],l=arguments.length-4;l-- >0;)c[l]=arguments[l+4];if(!e)return"";var h,d=id.apply(void 0,c);this._escapeParameterHtml&&(d.params=(null!=(h=d.params)&&Object.keys(h).forEach((function(e){"string"==typeof h[e]&&(h[e]=h[e].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))})),h));var f=d.locale||t,m=this._translate(n,f,this.fallbackLocale,e,r,"string",d.params);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");return(o=this._root).$t.apply(o,[e].concat(c))}return m=this._warnDefault(f,e,m,r,c,"string"),this._postTranslation&&null!=m&&(m=this._postTranslation(m,e)),m},Fd.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Fd.prototype._i=function(e,t,n,r,o){var c=this._translate(n,t,this.fallbackLocale,e,r,"raw",o);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,o)}return this._warnDefault(t,e,c,r,[o],"raw")},Fd.prototype.i=function(e,t,n){return e?(Jh(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Fd.prototype._tc=function(e,t,n,r,o){for(var c,l=[],h=arguments.length-5;h-- >0;)l[h]=arguments[h+5];if(!e)return"";void 0===o&&(o=1);var d={count:o,n:o},f=id.apply(void 0,l);return f.params=Object.assign(d,f.params),l=null===f.locale?[f.params]:[f.locale,f.params],this.fetchChoice((c=this)._t.apply(c,[e,t,n,r].concat(l)),o)},Fd.prototype.fetchChoice=function(e,t){if(!e||!Jh(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},Fd.prototype.tc=function(e,t){for(var n,r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Fd.prototype._te=function(e,t,n){for(var r=[],o=arguments.length-3;o-- >0;)r[o]=arguments[o+3];var c=id.apply(void 0,r).locale||t;return this._exist(n[c],e)},Fd.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Fd.prototype.getLocaleMessage=function(e){return od(this._vm.messages[e]||{})},Fd.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Fd.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,ud(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},Fd.prototype.getDateTimeFormat=function(e){return od(this._vm.dateTimeFormats[e]||{})},Fd.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Fd.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,ud(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Fd.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Fd.prototype._localizeDateTime=function(e,t,n,r,o,c){for(var l=t,h=r[l],d=this._getLocaleChain(t,n),i=0;i<d.length;i++){var f=d[i];if(l=f,!nd(h=r[f])&&!nd(h[o]))break}if(nd(h)||nd(h[o]))return null;var m,v=h[o];if(c)m=new Intl.DateTimeFormat(l,Object.assign({},v,c));else{var y=l+"__"+o;(m=this._dateTimeFormatters[y])||(m=this._dateTimeFormatters[y]=new Intl.DateTimeFormat(l,v))}return m.format(e)},Fd.prototype._d=function(e,t,n,r){if(!n)return(r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t)).format(e);var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return o||""},Fd.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,o=null,c=null;return 1===t.length?(Jh(t[0])?o=t[0]:Xh(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)),c=Object.keys(t[0]).reduce((function(e,n){var r;return ad(qh,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(Jh(t[0])&&(o=t[0]),Jh(t[1])&&(r=t[1])),this._d(e,r,o,c)},Fd.prototype.getNumberFormat=function(e){return od(this._vm.numberFormats[e]||{})},Fd.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Fd.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,ud(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Fd.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Fd.prototype._getNumberFormatter=function(e,t,n,r,o,c){for(var l=t,h=r[l],d=this._getLocaleChain(t,n),i=0;i<d.length;i++){var f=d[i];if(l=f,!nd(h=r[f])&&!nd(h[o]))break}if(nd(h)||nd(h[o]))return null;var m,v=h[o];if(c)m=new Intl.NumberFormat(l,Object.assign({},v,c));else{var y=l+"__"+o;(m=this._numberFormatters[y])||(m=this._numberFormatters[y]=new Intl.NumberFormat(l,v))}return m},Fd.prototype._n=function(e,t,n,r){if(!Fd.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),c=o&&o.format(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return c||""},Fd.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,o=null,c=null;return 1===t.length?Jh(t[0])?o=t[0]:Xh(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key),c=Object.keys(t[0]).reduce((function(e,n){var r;return ad(Wh,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(Jh(t[0])&&(o=t[0]),Jh(t[1])&&(r=t[1])),this._n(e,r,o,c)},Fd.prototype._ntp=function(e,t,n,r){if(!Fd.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),c=o&&o.formatToParts(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return c||[]},Object.defineProperties(Fd.prototype,zd),Object.defineProperty(Fd,"availabilities",{get:function(){if(!Rd){var e="undefined"!=typeof Intl;Rd={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Rd}}),Fd.install=Od,Fd.version="8.28.2";var $d=Fd;function Hd(e,t,n){"object"==typeof n.value&&(n.value=Gd(n.value)),n.enumerable&&!n.get&&!n.set&&n.configurable&&n.writable&&"__proto__"!==t?e[t]=n.value:Object.defineProperty(e,t,n)}function Gd(e){if("object"!=typeof e)return e;var t,n,r,i=0,o=Object.prototype.toString.call(e);if("[object Object]"===o?r=Object.create(e.__proto__||null):"[object Array]"===o?r=Array(e.length):"[object Set]"===o?(r=new Set,e.forEach((function(e){r.add(Gd(e))}))):"[object Map]"===o?(r=new Map,e.forEach((function(e,t){r.set(Gd(t),Gd(e))}))):"[object Date]"===o?r=new Date(+e):"[object RegExp]"===o?r=new RegExp(e.source,e.flags):"[object DataView]"===o?r=new e.constructor(Gd(e.buffer)):"[object ArrayBuffer]"===o?r=e.slice(0):"Array]"===o.slice(-6)&&(r=new e.constructor(e)),r){for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)Hd(r,n[i],Object.getOwnPropertyDescriptor(e,n[i]));for(i=0,n=Object.getOwnPropertyNames(e);i<n.length;i++)Object.hasOwnProperty.call(r,t=n[i])&&r[t]===e[t]||Hd(r,t,Object.getOwnPropertyDescriptor(e,t))}return r||e}var Vd=n(14);n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(227);function Wd(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function qd(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Wd(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Wd(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Kd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Yd(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 Yd(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Yd(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Xd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addDirAttribute,n=void 0!==t&&t,r=e.addSeoAttributes,o=void 0!==r&&r;if(!this.$i18n)return{};var c={htmlAttrs:{},link:[],meta:[]},l=this.$i18n.localeProperties,h=l.iso,f=l.dir||oh.defaultDirection;if(n&&(c.htmlAttrs.dir=f),o&&(d.a.hasMetaInfo?d.a.hasMetaInfo(this):this._hasMetaInfo)&&this.$i18n.locale&&this.$i18n.locales){h&&(c.htmlAttrs.lang=h);var m=this.$i18n.locales;(function(e,t,link){if(oh.strategy===rh.STRATEGIES.NO_PREFIX)return;var n,r=new Map,o=Kd(e);try{for(o.s();!(n=o.n()).done;){var c=n.value,l=c.iso;if(l){var h=l.split("-"),d=Object(I.a)(h,2),f=d[0],m=d[1];f&&m&&(c.isCatchallLocale||!r.has(f))&&r.set(f,c),r.set(l,c)}else console.warn(dh("Locale ISO code is required to generate alternate link"))}}catch(e){o.e(e)}finally{o.f()}var v,w=Kd(r.entries());try{for(w.s();!(v=w.n()).done;){var S=Object(I.a)(v.value,2),_=S[0],C=S[1],O=this.switchLocalePath(C.code);O&&link.push({hid:"i18n-alt-".concat(_),rel:"alternate",href:y(O,t),hreflang:_})}}catch(e){w.e(e)}finally{w.f()}if(oh.defaultLocale){var A=this.switchLocalePath(oh.defaultLocale);A&&link.push({hid:"i18n-xd",rel:"alternate",href:y(A,t),hreflang:"x-default"})}}).bind(this)(m,this.$i18n.__baseUrl,c.link),function(e,link,t){var n=this.localeRoute(qd(qd({},this.$route),{},{name:this.getRouteBaseName()}));if(n){var r=y(n.path,e),o="boolean"!=typeof t&&t.canonicalQueries||[];if(o.length){var c,l=n.query,h=new URLSearchParams,d=Kd(o);try{var f=function(){var e=c.value;if(e in l){var t=l[e];Array.isArray(t)?t.forEach((function(t){return h.append(e,t||"")})):h.append(e,t||"")}};for(d.s();!(c=d.n()).done;)f()}catch(e){d.e(e)}finally{d.f()}var m=h.toString();m&&(r="".concat(r,"?").concat(m))}link.push({hid:"i18n-can",rel:"canonical",href:r})}}.bind(this)(this.$i18n.__baseUrl,c.link,o),function(e,t,meta){var n=e&&t;if(!n)return;meta.push({hid:"i18n-og",property:"og:locale",content:v(t)})}.bind(this)(l,h,c.meta),function(e,t,meta){var n=e.filter((function(e){var n=e.iso;return n&&n!==t}));if(n.length){var r=n.map((function(e){return{hid:"i18n-og-alt-".concat(e.iso),property:"og:locale:alternate",content:v(e.iso)}}));meta.push.apply(meta,Object(Vd.a)(r))}}.bind(this)(m,h,c.meta)}function v(e){return(e||"").replace(/-/g,"_")}function y(e,t){return e.match(/^https?:\/\//)?e:t+e}return c}function Jd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Zd(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 Zd(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}l.a.use($d);var Qd=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(t){var n,r,c,h,d,f,m,v,y,w,S,_,C,O,A,T,E,P,M,x,k,R,j,D,N,L,B,U,F,z,$,H,G,V,W,K,Y,X,J,Z;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.app,r=t.route,c=t.store,h=t.req,t.res,d=t.redirect,oh.vuex&&c&&Eh(c,oh.vuex,oh.localeCodes),f=oh.lazy,f&&(!0===f||!0!==f.skipNuxtState),e.next=9;break;case 7:m=e.sent.default,t.beforeNuxtRender((function(e){var t=e.nuxtState,r={},o=n.i18n,c=o.fallbackLocale,l=o.locale;if(l&&l!==c){var h=n.i18n._getMessages()[l];if(h)try{m(h),r[l]=h}catch(e){}}t.__i18n={langs:r}}));case 9:if(v=oh.detectBrowserLanguage,y=v.alwaysRedirect,w=v.fallbackLocale,S=v.redirectOn,_=v.useCookie,C=v.cookieAge,O=v.cookieKey,A=v.cookieDomain,T=v.cookieSecure,E=v.cookieCrossOrigin,P=gh(oh.localeCodes,{routesNameSeparator:oh.routesNameSeparator,defaultLocaleRouteNameSuffix:oh.defaultLocaleRouteNameSuffix}),M=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(r){var o,c,h,f,m,v,y,w,S,C,O,A,T,E,M,x,k,R,j=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(j.length>1&&void 0!==j[1]?j[1]:{}).initialSetup,c=void 0!==o&&o,r){e.next=3;break}return e.abrupt("return");case 3:if(c||!n.i18n.differentDomains){e.next=5;break}return e.abrupt("return");case 5:if(h=n.i18n.locale,r!==h){e.next=8;break}return e.abrupt("return");case 8:if(!(f=n.i18n.onBeforeLanguageSwitch(h,r,c,t))||!n.i18n.localeCodes.includes(f)){e.next=13;break}if(f!==h){e.next=12;break}return e.abrupt("return");case 12:r=f;case 13:if(_&&n.i18n.setLocaleCookie(r),!oh.langDir){e.next=30;break}if(m=n.i18n.fallbackLocale,!oh.lazy){e.next=26;break}if(!m){e.next=22;break}return v=[],Array.isArray(m)?v=m.map((function(e){return Ch(t,e)})):"object"===Object(eh.a)(m)?(m[r]&&(v=v.concat(m[r].map((function(e){return Ch(t,e)})))),m.default&&(v=v.concat(m.default.map((function(e){return Ch(t,e)}))))):r!==m&&v.push(Ch(t,m)),e.next=22,Promise.all(v);case 22:return e.next=24,Ch(t,r);case 24:e.next=28;break;case 26:return e.next=28,Promise.all(oh.localeCodes.map((function(e){return Ch(t,e)})));case 28:e.next=31;break;case 30:Ph(n.i18n,oh.additionalMessages,oh.localeCodes);case 31:for(n.i18n.locale=r,y=oh.normalizedLocales.find((function(e){return e.code===r}))||{code:r},w=0,S=Object.keys(n.i18n.localeProperties);w<S.length;w++)C=S[w],n.i18n.localeProperties[C]=void 0;for(O=0,A=Object.entries(y);O<A.length;O++)T=Object(I.a)(A[O],2),E=T[0],M=T[1],l.a.set(n.i18n.localeProperties,E,Gd(M));x=t.route,k="",!1,n.i18n.differentDomains||oh.strategy===rh.STRATEGIES.NO_PREFIX||P(x)===r&&(oh.strategy!==rh.STRATEGIES.PREFIX_AND_DEFAULT||r!==oh.defaultLocale)||!(R=n.switchLocalePath(r)||n.localePath(x.fullPath,r))||Object(nh.isEqual)(R,x.fullPath)||R.startsWith("//")||(k=R),c?n.i18n.__redirect=k:(n.i18n.onLanguageSwitched(h,r),k&&d(k));case 40:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(r){var o,path,c,l,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("/"!==r.path||!oh.rootRedirect){e.next=5;break}return o=302,path=oh.rootRedirect,"string"!=typeof oh.rootRedirect&&(o=oh.rootRedirect.statusCode,path=oh.rootRedirect.path),e.abrupt("return",[o,"/".concat(path),!0]);case 5:if(!(c=n.i18n.__redirect)){e.next=9;break}return n.i18n.__redirect=null,e.abrupt("return",[302,c]);case 9:if(l={differentDomains:oh.differentDomains,normalizedLocales:oh.normalizedLocales},n.i18n.__baseUrl=Ah(oh.baseUrl,t,n.i18n.locale,l),h=oh.detectBrowserLanguage&&D(r)||!oh.differentDomains&&oh.strategy!==rh.STRATEGIES.NO_PREFIX&&P(r)||n.i18n.locale||n.i18n.defaultLocale||"",!oh.skipSettingLocaleOnNavigate){e.next=17;break}n.i18n.__pendingLocale=h,n.i18n.__pendingLocalePromise=new Promise((function(e){n.i18n.__resolvePendingLocalePromise=e})),e.next=19;break;case 17:return e.next=19,n.i18n.setLocale(h);case 19:return e.abrupt("return",[null,null]);case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.i18n.__pendingLocale){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,n.i18n.setLocale(n.i18n.__pendingLocale);case 4:n.i18n.__resolvePendingLocalePromise(""),n.i18n.__pendingLocale=null;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.i18n.__pendingLocale){e.next=3;break}return e.next=3,n.i18n.__pendingLocalePromise;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){return"undefined"!=typeof navigator&&navigator.languages?fh(oh.normalizedLocales,navigator.languages):h&&void 0!==h.headers["accept-language"]?fh(oh.normalizedLocales,h.headers["accept-language"].split(",").map((function(e){return e.split(";")[0]}))):void 0},D=function(e){if(oh.strategy!==rh.STRATEGIES.NO_PREFIX)if(S===rh.REDIRECT_ON_OPTIONS.ROOT){if("/"!==e.path)return""}else if(S===rh.REDIRECT_ON_OPTIONS.NO_PREFIX&&!y&&e.path.match(mh(oh.localeCodes)))return"";var t;_&&(t=n.i18n.getLocaleCookie())||(t=j());var r=t||w;return!r||_&&!y&&n.i18n.getLocaleCookie()||r===n.i18n.locale?"":r},N=function(e){e.locales=Gd(oh.locales),e.localeCodes=Gd(oh.localeCodes),e.localeProperties=l.a.observable(Gd(oh.normalizedLocales.find((function(t){return t.code===e.locale}))||{code:e.locale})),e.defaultLocale=oh.defaultLocale,e.differentDomains=oh.differentDomains,e.onBeforeLanguageSwitch=oh.onBeforeLanguageSwitch,e.onLanguageSwitched=oh.onLanguageSwitched,e.setLocaleCookie=function(e){return bh(e,0,{useCookie:_,cookieAge:C,cookieDomain:A,cookieKey:O,cookieSecure:T,cookieCrossOrigin:E})},e.getLocaleCookie=function(){return vh(0,{useCookie:_,cookieKey:O,localeCodes:oh.localeCodes})},e.setLocale=function(e){return M(e)},e.getBrowserLocale=function(){return j()},e.finalizePendingLocaleChange=k,e.waitForPendingLocaleChange=R,e.__baseUrl=n.i18n.__baseUrl,e.__pendingLocale=n.i18n.__pendingLocale,e.__pendingLocalePromise=n.i18n.__pendingLocalePromise,e.__resolvePendingLocalePromise=n.i18n.__resolvePendingLocalePromise},"function"!=typeof oh.vueI18n){e.next=24;break}return e.next=21,oh.vueI18n(t);case 21:e.t0=e.sent,e.next=25;break;case 24:e.t0=Gd(oh.vueI18n);case 25:if((L=e.t0).componentInstanceCreatedListener=N,n.i18n=t.i18n=new $d(L),n.i18n.locale="",n.i18n.fallbackLocale=L.fallbackLocale||"",c&&(c.$i18n=n.i18n,c.state.localeDomains)){B=Jd(oh.normalizedLocales.entries());try{for(B.s();!(U=B.n()).done;)F=Object(I.a)(U.value,2),z=F[0],$=F[1],(H=c.state.localeDomains[$.code])&&($.domain=H,"string"!=typeof(G=oh.locales[z])&&(G.domain=H))}catch(e){B.e(e)}finally{B.f()}}return N(n.i18n),V={differentDomains:oh.differentDomains,normalizedLocales:oh.normalizedLocales},n.i18n.__baseUrl=Ah(oh.baseUrl,t,"",V),n.i18n.__onNavigate=x,l.a.prototype.$nuxtI18nHead=Xd,(W=oh.detectBrowserLanguage?D(r):"")||(n.i18n.differentDomains?(K=ph(oh.normalizedLocales),W=K):oh.strategy!==rh.STRATEGIES.NO_PREFIX&&(Y=P(r),W=Y)),!W&&_&&(W=n.i18n.getLocaleCookie()),W||(W=n.i18n.defaultLocale||""),e.next=42,M(W,{initialSetup:!0});case 42:if(!ih.isUniversalMode){e.next=50;break}return e.next=45,x(t.route);case 45:X=e.sent,J=Object(I.a)(X,2),J[0],(Z=J[1])&&location.assign(Object(nh.joinURL)(t.base,Z));case 50:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ef=n(148),tf=n.n(ef);function nf(e){return null!==e&&"object"===Object(eh.a)(e)}function rf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!nf(t))return rf(e,{},n,r);var object=Object.assign({},t);for(var o in e)if("__proto__"!==o&&"constructor"!==o){var c=e[o];null!=c&&(r&&r(object,o,c,n)||(Array.isArray(c)&&Array.isArray(object[o])?object[o]=[].concat(Object(Vd.a)(c),Object(Vd.a)(object[o])):nf(c)&&nf(object[o])?object[o]=rf(c,object[o],(n?"".concat(n,"."):"")+o.toString(),r):object[o]=c))}return object}function of(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(p,t){return rf(p,t,"",e)}),{})}}var af=of();of((function(object,e,t){if(void 0!==object[e]&&"function"==typeof t)return object[e]=t(object[e]),!0})),of((function(object,e,t){if(Array.isArray(object[e])&&"function"==typeof t)return object[e]=t(object[e]),!0}));function sf(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function cf(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?sf(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):sf(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function uf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return lf(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 lf(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function lf(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}for(var hf={setBaseURL:function(e){this.defaults.baseURL=e},setHeader:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=uf(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;t?this.defaults.headers[c][e]=t:delete this.defaults.headers[c][e]}}catch(e){o.e(e)}finally{o.f()}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",r,n)},onRequest:function(e){this.interceptors.request.use((function(t){return e(t)||t}))},onResponse:function(e){this.interceptors.response.use((function(t){return e(t)||t}))},onRequestError:function(e){this.interceptors.request.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onResponseError:function(e){this.interceptors.response.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onError:function(e){this.onRequestError(e),this.onResponseError(e)},create:function(e){return mf(af(e,this.defaults))}},df=function(){var e=pf[ff];hf["$"+e]=function(){return this[e].apply(this,arguments).then((function(e){return e&&e.data}))}},ff=0,pf=["request","delete","get","head","options","post","put","patch"];ff<pf.length;ff++)df();var mf=function(e){var t=tf.a.create(e);return t.CancelToken=tf.a.CancelToken,t.isCancel=tf.a.isCancel,function(e){for(var t in hf)e[t]=hf[t].bind(e)}(t),t.onRequest((function(e){e.headers=cf(cf({},t.defaults.headers.common),e.headers)})),gf(t),t},gf=function(e){var t={finish:function(){},start:function(){},fail:function(){},set:function(){}},n=function(){var e="undefined"!=typeof window&&window.$nuxt;return e&&e.$loading&&e.$loading.set?e.$loading:t},r=0;e.onRequest((function(e){e&&!1===e.progress||r++})),e.onResponse((function(e){e&&e.config&&!1===e.config.progress||--r<=0&&(r=0,n().finish())})),e.onError((function(e){e&&e.config&&!1===e.config.progress||(r--,tf.a.isCancel(e)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))}));var o=function(e){if(r&&e.total){var progress=100*e.loaded/(e.total*r);n().set(Math.min(100,progress))}};e.defaults.onUploadProgress=o,e.defaults.onDownloadProgress=o},vf=function(e,t){var n=e.$config&&e.$config.axios||{},r=n.browserBaseURL||n.browserBaseUrl||n.baseURL||n.baseUrl||"http://localhost:3000/";var o=mf({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}});e.$axios=o,t("axios",o)};n(60);var bf="dataLayer";var yf=function(e,t){var n=(e.$config&&e.$config.gtm||{}).id,r=function(e,t){return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!t[e]&&window._gtm_inject&&(window._gtm_inject(e),t[e]=!0)},push:function(e){window[bf]||(window[bf]=[]),window[bf].push(e)}}}(0,{});n&&""!==n&&r.init(n),e.$gtm=r,t("gtm",e.$gtm)},wf=n(427),Sf=n(635),_f=n(636),Cf=n(637),Of=n(668),Af=n(661),Tf=n(646),Ef=n(647),Pf=n(648),Mf=n(649),xf=n(650),kf=n(651),If=n(652),Rf=n(653),jf=n(654),Df=n(655),Nf=n(656),Lf=n(657),Bf=n(666),Uf=n(658),Ff=n(659),zf=n(660);function $f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Hf(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?$f(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):$f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}l.a.component(m.a.name,m.a),l.a.component(y.a.name,Hf(Hf({},y.a),{},{render:function(e,t){return y.a._warned||(y.a._warned=!0,console.warn("<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead")),y.a.render(e,t)}})),l.a.component(P.name,P),l.a.component("NChild",P),l.a.component(R.name,R),Object.defineProperty(l.a.prototype,"$nuxt",{get:function(){var e=this.$root?this.$root.$options.$nuxt:null;return e||"undefined"==typeof window?e:window.$nuxt},configurable:!0}),l.a.use(d.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var Gf={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};h.a.Store.prototype.registerModule;function Vf(e){return Wf.apply(this,arguments)}function Wf(){return Wf=Object(o.a)(regeneratorRuntime.mark((function e(t){var n,r,c,h,d,f,path,m,v=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===t)throw new Error("inject('".concat(e,"', value) has no value provided"));h[e="$"+e]=t,h.context[e]||(h.context[e]=t),r[e]=h[e];var n="__nuxt_"+e+"_installed__";l.a[n]||(l.a[n]=!0,l.a.use((function(){Object.prototype.hasOwnProperty.call(l.a.prototype,e)||Object.defineProperty(l.a.prototype,e,{get:function(){return this.$root.$options[e]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},r=H(t),e.next=5,E(0,n);case 5:return c=e.sent,r.$router=c,h=Hf({head:{titleTemplate:"%s - backstage",title:"backstage",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:""},{name:"facebook-domain-verification",content:"7uddn7dbzmwbyh0ss5y08me669pkbg"}],link:[],style:[],script:[{hid:"gtm-script",innerHTML:"if(!window._gtm_init){window._gtm_init=1;(function(w,n,d,m,e,p){w[d]=(w[d]==1||n[d]=='yes'||n[d]==1||n[m]==1||(w[e]&&w[e][p]&&w[e][p]()))?1:0})(window,navigator,'doNotTrack','msDoNotTrack','external','msTrackingProtectionEnabled');(function(w,d,s,l,x,y){w[x]={};w._gtm_inject=function(i){if(w.doNotTrack||w[x][i])return;w[x][i]=1;w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s);j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(j,f);}})(window,document,'script','dataLayer','_gtm_ids','_gtm_inject')}"}],noscript:[{hid:"gtm-noscript",pbody:!0,innerHTML:""}],__dangerouslyDisableSanitizersByTagID:{"gtm-script":["innerHTML"],"gtm-noscript":["innerHTML"]}},store:r,router:c,nuxt:{defaultTransition:Gf,transitions:[Gf],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map((function(e){return e=e?"string"==typeof e?Object.assign({},Gf,{name:e}):Object.assign({},Gf,e):Gf})),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,h.context._errored=Boolean(e),e=e?Object(_.p)(e):null;var n=h.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},F),r.app=h,d=t?t.next:function(e){return h.router.push(e)},t?f=c.resolve(t.url).route:(path=Object(_.f)(c.options.base,c.options.mode),f=c.resolve(path).route),e.next=13,Object(_.t)(h,{store:r,route:f,next:d,error:h.nuxt.error.bind(h),payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0,beforeSerializeFns:t?t.beforeSerializeFns:void 0,ssrContext:t});case 13:m("config",n),window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),h.context.enablePreview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.previewData=Object.assign({},e),m("preview",e)},e.next=19;break;case 19:if("function"!=typeof Yl){e.next=22;break}return e.next=22,Yl(h.context,m);case 22:e.next=25;break;case 25:e.next=28;break;case 28:if("function"!=typeof Vh){e.next=31;break}return e.next=31,Vh(h.context,m);case 31:if("function"!=typeof Qd){e.next=34;break}return e.next=34,Qd(h.context,m);case 34:if("function"!=typeof vf){e.next=37;break}return e.next=37,vf(h.context,m);case 37:if("function"!=typeof yf){e.next=40;break}return e.next=40,yf(h.context,m);case 40:if("function"!=typeof wf.a){e.next=43;break}return e.next=43,Object(wf.a)(h.context,m);case 43:if("function"!=typeof Sf.a){e.next=46;break}return e.next=46,Object(Sf.a)(h.context,m);case 46:if("function"!=typeof _f.a){e.next=49;break}return e.next=49,Object(_f.a)(h.context,m);case 49:if("function"!=typeof Cf.a){e.next=52;break}return e.next=52,Object(Cf.a)(h.context,m);case 52:if("function"!=typeof Of.a){e.next=55;break}return e.next=55,Object(Of.a)(h.context,m);case 55:if("function"!=typeof Af.a){e.next=58;break}return e.next=58,Object(Af.a)(h.context,m);case 58:if("function"!=typeof Tf.a){e.next=61;break}return e.next=61,Object(Tf.a)(h.context,m);case 61:if("function"!=typeof Ef.a){e.next=64;break}return e.next=64,Object(Ef.a)(h.context,m);case 64:if("function"!=typeof Pf.a){e.next=67;break}return e.next=67,Object(Pf.a)(h.context,m);case 67:if("function"!=typeof Mf.a){e.next=70;break}return e.next=70,Object(Mf.a)(h.context,m);case 70:if("function"!=typeof xf.a){e.next=73;break}return e.next=73,Object(xf.a)(h.context,m);case 73:if("function"!=typeof kf.a){e.next=76;break}return e.next=76,Object(kf.a)(h.context,m);case 76:if("function"!=typeof If.a){e.next=79;break}return e.next=79,Object(If.a)(h.context,m);case 79:if("function"!=typeof Rf.a){e.next=82;break}return e.next=82,Object(Rf.a)(h.context,m);case 82:if("function"!=typeof jf.a){e.next=85;break}return e.next=85,Object(jf.a)(h.context,m);case 85:if("function"!=typeof Df.a){e.next=88;break}return e.next=88,Object(Df.a)(h.context,m);case 88:if("function"!=typeof Nf.a){e.next=91;break}return e.next=91,Object(Nf.a)(h.context,m);case 91:if("function"!=typeof Lf.a){e.next=94;break}return e.next=94,Object(Lf.a)(h.context,m);case 94:if("function"!=typeof Bf.a){e.next=97;break}return e.next=97,Object(Bf.a)(h.context,m);case 97:if("function"!=typeof Uf.a){e.next=100;break}return e.next=100,Object(Uf.a)(h.context,m);case 100:if("function"!=typeof Ff.a){e.next=103;break}return e.next=103,Object(Ff.a)(h.context,m);case 103:if("function"!=typeof zf.a){e.next=106;break}return e.next=106,Object(zf.a)(h.context,m);case 106:return h.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},e.next=109,new Promise((function(e,t){if(!c.resolve(h.context.route.fullPath).route.matched.length)return e();c.replace(h.context.route.fullPath,e,(function(n){if(!n._isRouter)return t(n);if(2!==n.type)return e();var r=c.afterEach(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,o){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,Object(_.j)(n);case 3:h.context.route=t.sent,h.context.params=n.params||{},h.context.query=n.query||{},r(),e();case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())}))}));case 109:return e.abrupt("return",{store:r,app:h,router:c});case 110:case"end":return e.stop()}}),e)}))),Wf.apply(this,arguments)}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";n(28),n(60);var r=n(1);t.a=r.a.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:function(){return{openTimeout:void 0,closeTimeout:void 0}},methods:{clearDelay:function(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay:function(e,t){var n=this;this.clearDelay();var r=parseInt(this["".concat(e,"Delay")],10);this["".concat(e,"Timeout")]=setTimeout(t||function(){n.isActive={open:!0,close:!1}[e]},r)}}})},,function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},,,,function(e,t,n){var r=n(58).Buffer,o=n(1294).Transform,c=n(305).StringDecoder;function l(e){o.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(47)(l,o),l.prototype.update=function(data,e,t){"string"==typeof data&&(data=r.from(data,e));var n=this._update(data);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(data,e,t){var n;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(e){n=e}finally{t(n)}},l.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},l.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},l.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new c(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=l},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},function(e,t,n){"use strict";t.a=function(e){return function(t){return e(t)}}},function(e,t,n){"use strict";var r=n(35),o=(n(5),n(60),n(379));function c(){return!0}function l(e,t,n){if(!e||!1===h(e,n))return!1;var c=Object(o.a)(t);if("undefined"!=typeof ShadowRoot&&c instanceof ShadowRoot&&c.host===e.target)return!1;var l=("object"===Object(r.a)(n.value)&&n.value.include||function(){return[]})();return l.push(t),!l.some((function(t){return t.contains(e.target)}))}function h(e,t){return("object"===Object(r.a)(t.value)&&t.value.closeConditional||c)(e)}function d(e,t){var n=Object(o.a)(e);t(document),"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&t(n)}var f={inserted:function(e,t,n){var r=function(n){return function(e,t,n){var r="function"==typeof n.value?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&l(e,t,n)&&setTimeout((function(){h(e,n)&&r&&r(e)}),0)}(n,e,t)},o=function(n){e._clickOutside.lastMousedownWasOutside=l(n,e,t)};d(e,(function(e){e.addEventListener("click",r,!0),e.addEventListener("mousedown",o,!0)})),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!0}),e._clickOutside[n.context._uid]={onClick:r,onMousedown:o}},unbind:function(e,t,n){e._clickOutside&&(d(e,(function(t){var r;if(t&&(null===(r=e._clickOutside)||void 0===r?void 0:r[n.context._uid])){var o=e._clickOutside[n.context._uid],c=o.onClick,l=o.onMousedown;t.removeEventListener("click",c,!0),t.removeEventListener("mousedown",l,!0)}})),delete e._clickOutside[n.context._uid])}};t.a=f},function(e,t,n){"use strict";var r=n(26),o=n(1);t.a=o.a.extend().extend({name:"bootable",props:{eager:Boolean},data:function(){return{isBooted:!1}},computed:{hasContent:function(){return this.isBooted||this.eager||this.isActive}},watch:{isActive:function(){this.isBooted=!0}},created:function(){"lazy"in this.$attrs&&Object(r.e)("lazy",this)},methods:{showLazyContent:function(content){return this.hasContent&&content?content():[this.$createElement()]}}})},function(e,t,n){"use strict";var r=n(1);t.a=r.a.extend({name:"ssr-bootable",data:function(){return{isBooted:!1}},mounted:function(){var e=this;window.requestAnimationFrame((function(){e.$el.setAttribute("data-booted","true"),e.isBooted=!0}))}})},function(e,t,n){"use strict";var r=n(380);t.a=function(object,e,t){"__proto__"==e&&r.a?Object(r.a)(object,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):object[e]=t}},function(e,t,n){"use strict";t.a=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(172);t.a=function(e){if("string"==typeof e||Object(r.a)(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},,function(e,t,n){"use strict";var r=function(){this.__data__=[],this.size=0},o=n(278);var c=function(e,t){for(var n=e.length;n--;)if(Object(o.a)(e[n][0],t))return n;return-1},l=Array.prototype.splice;var h=function(e){var data=this.__data__,t=c(data,e);return!(t<0)&&(t==data.length-1?data.pop():l.call(data,t,1),--this.size,!0)};var d=function(e){var data=this.__data__,t=c(data,e);return t<0?void 0:data[t][1]};var f=function(e){return c(this.__data__,e)>-1};var m=function(e,t){var data=this.__data__,n=c(data,e);return n<0?(++this.size,data.push([e,t])):data[n][1]=t,this};function v(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])}}v.prototype.clear=r,v.prototype.delete=h,v.prototype.get=d,v.prototype.has=f,v.prototype.set=m;t.a=v},,,,function(e,t,n){"use strict";n(39),n(24),n(28);var r=n(26),o=n(1);t.a=o.a.extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default:function(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:function(e){return!isNaN(Number(e))||["xs","sm","md","lg","xl"].includes(String(e))}}},computed:{isMobile:function(){var e=this.$vuetify.breakpoint,t=e.mobile,n=e.width,r=e.name;if(e.mobileBreakpoint===this.mobileBreakpoint)return t;var o=parseInt(this.mobileBreakpoint,10);return!isNaN(o)?n<o:r===this.mobileBreakpoint}},created:function(){this.$attrs.hasOwnProperty("mobile-break-point")&&Object(r.d)("mobile-break-point","mobile-breakpoint",this)}})},function(e,t,n){"use strict";var r=n(160),o=n(102),c=Object(r.a)(o.a,"Map");t.a=c},,function(e,t,n){"use strict";var r=n(281);var o=function(){this.__data__=new r.a,this.size=0};var c=function(e){var data=this.__data__,t=data.delete(e);return this.size=data.size,t};var l=function(e){return this.__data__.get(e)};var h=function(e){return this.__data__.has(e)},d=n(286),f=n(314);var m=function(e,t){var data=this.__data__;if(data instanceof r.a){var n=data.__data__;if(!d.a||n.length<199)return n.push([e,t]),this.size=++data.size,this;data=this.__data__=new f.a(n)}return data.set(e,t),this.size=data.size,this};function v(e){var data=this.__data__=new r.a(e);this.size=data.size}v.prototype.clear=o,v.prototype.delete=c,v.prototype.get=l,v.prototype.has=h,v.prototype.set=m;t.a=v},function(e,t,n){"use strict";function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n(4),o=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],c=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},l=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)};function d(e){for(var t=Array(3),n=c,l=o,i=0;i<3;++i)t[i]=Math.round(255*Object(r.g)(n(l[i][0]*e[0]+l[i][1]*e[1]+l[i][2]*e[2])));return(t[0]<<16)+(t[1]<<8)+(t[2]<<0)}function f(e){for(var t=[0,0,0],n=h,r=l,o=n((e>>16&255)/255),g=n((e>>8&255)/255),b=n((e>>0&255)/255),i=0;i<3;++i)t[i]=r[i][0]*o+r[i][1]*g+r[i][2]*b;return t}},,function(e,t,n){"use strict";var r=n(616);t.a=r.a},,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(58).Buffer,o=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 c(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===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=d,this.end=f,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=y,void(this.end=w)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function h(e){var p=this.lastTotal-this.lastNeed,t=function(e,t,p){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!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,p,0,e.length),void(this.lastNeed-=e.length))}function d(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function f(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 m(e,i){var t=(e.length-i)%3;return 0===t?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,1===t?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function w(e){return e&&e.length?this.write(e):""}t.StringDecoder=c,c.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},c.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},c.prototype.text=function(e,i){var t=function(e,t,i){var n=t.length-1;if(n<i)return 0;var r=l(t[n]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if(r=l(t[n]),r>=0)return r>0&&(e.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if(r=l(t[n]),r>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",i,n)},c.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(483),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=v;var c=Object.create(n(411));c.inherits=n(47);var l=n(837),h=n(585);c.inherits(v,l);for(var d=o(h.prototype),f=0;f<d.length;f++){var m=d[f];v.prototype[m]||(v.prototype[m]=h.prototype[m])}function v(e){if(!(this instanceof v))return new v(e);l.call(this,e),h.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",y)}function y(){this.allowHalfOpen||this._writableState.ended||r.nextTick(w,this)}function w(e){e.end()}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(v.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)}}),v.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnhancedEventEmitter=void 0;const r=n(183),o=new(n(116).Logger)("EnhancedEventEmitter");class c extends r.EventEmitter{constructor(){super(),this.setMaxListeners(1/0)}emit(e,...t){return super.emit(e,...t)}safeEmit(e,...t){const n=super.listenerCount(e);try{return super.emit(e,...t)}catch(t){return o.error("safeEmit() | event listener threw an error [eventName:%s]:%o",e,t),Boolean(n)}}on(e,t){return super.on(e,t),this}off(e,t){return super.off(e,t),this}addListener(e,t){return super.on(e,t),this}prependListener(e,t){return super.prependListener(e,t),this}once(e,t){return super.once(e,t),this}prependOnceListener(e,t){return super.prependOnceListener(e,t),this}removeListener(e,t){return super.off(e,t),this}removeAllListeners(e){return super.removeAllListeners(e),this}listenerCount(e){return super.listenerCount(e)}listeners(e){return super.listeners(e)}rawListeners(e){return super.rawListeners(e)}}t.EnhancedEventEmitter=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=new RegExp("^[LS]([1-9]\\d{0,1})T([1-9]\\d{0,1})");t.parse=function(e){const t=r.exec(e||"");return t?{spatialLayers:Number(t[1]),temporalLayers:Number(t[2])}:{spatialLayers:1,temporalLayers:1}}},function(e,t,n){"use strict";(function(e){var r=n(102),o=n(1012),c="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=c&&"object"==typeof e&&e&&!e.nodeType&&e,h=l&&l.exports===c?r.a.Buffer:void 0,d=(h?h.isBuffer:void 0)||o.a;t.a=d}).call(this,n(605)(e))},function(e,t,n){"use strict";n(28);var r=n(1),o=n(292);t.a=r.a.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(o.a,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},function(e,t,n){"use strict";var r=n(278),o=n(182),c=n(372),l=n(118);t.a=function(e,t,object){if(!Object(l.a)(object))return!1;var n=typeof t;return!!("number"==n?Object(o.a)(object)&&Object(c.a)(t,object.length):"string"==n&&t in object)&&Object(r.a)(object[t],e)}},function(e,t,n){"use strict";var r=n(160),o=Object(r.a)(Object,"create");var c=function(){this.__data__=o?o(null):{},this.size=0};var l=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},h=Object.prototype.hasOwnProperty;var d=function(e){var data=this.__data__;if(o){var t=data[e];return"__lodash_hash_undefined__"===t?void 0:t}return h.call(data,e)?data[e]:void 0},f=Object.prototype.hasOwnProperty;var m=function(e){var data=this.__data__;return o?void 0!==data[e]:f.call(data,e)};var v=function(e,t){var data=this.__data__;return this.size+=this.has(e)?0:1,data[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this};function y(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])}}y.prototype.clear=c,y.prototype.delete=l,y.prototype.get=d,y.prototype.has=m,y.prototype.set=v;var w=y,S=n(281),_=n(286);var C=function(){this.size=0,this.__data__={hash:new w,map:new(_.a||S.a),string:new w}};var O=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var A=function(map,e){var data=map.__data__;return O(e)?data["string"==typeof e?"string":"hash"]:data.map};var T=function(e){var t=A(this,e).delete(e);return this.size-=t?1:0,t};var E=function(e){return A(this,e).get(e)};var P=function(e){return A(this,e).has(e)};var M=function(e,t){var data=A(this,e),n=data.size;return data.set(e,t),this.size+=data.size==n?0:1,this};function x(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])}}x.prototype.clear=C,x.prototype.delete=T,x.prototype.get=E,x.prototype.has=P,x.prototype.set=M;t.a=x},,function(e,t,n){"use strict";n.d(t,"a",(function(){return oe}));var r=n(52),o=n(53),c=(n(39),n(5),n(51),n(8),n(1)),l=n(26);n(154);var h=n(95),d=n(72),f=n(31),m=n(73),v=(n(1384),{breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:{badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."}},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}}),y=n(4),w=n(158),S=["preset"];var _=function(e){function t(e,n){var o,c,m,w;Object(r.a)(this,t),c=this,m=t,m=Object(f.a)(m),o=Object(d.a)(c,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(m,w||[],Object(f.a)(c).constructor):m.apply(c,w));var _=Object(y.A)({},v),C=n.userPreset,O=C.preset,A=void 0===O?{}:O,T=Object(h.a)(C,S);return null!=A.preset&&Object(l.c)("Global presets do not support the **preset** option, it can be safely omitted"),n.preset=Object(y.A)(Object(y.A)(_,A),T),o}return Object(m.a)(t,e),Object(o.a)(t)}(w.a);_.property="presets";n(293);var C=function(e){function t(){var e,n,o,c;return Object(r.a)(this,t),n=this,o=t,c=arguments,o=Object(f.a)(o),(e=Object(d.a)(n,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(o,c||[],Object(f.a)(n).constructor):o.apply(n,c))).bar=0,e.top=0,e.left=0,e.insetFooter=0,e.right=0,e.bottom=0,e.footer=0,e.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}},e}return Object(m.a)(t,e),Object(o.a)(t,[{key:"register",value:function(e,t,n){this.application[t][e]=n,this.update(t)}},{key:"unregister",value:function(e,t){null!=this.application[t][e]&&(delete this.application[t][e],this.update(t))}},{key:"update",value:function(e){this[e]=Object.values(this.application[e]).reduce((function(e,t){return e+t}),0)}}])}(w.a);C.property="application";n(24),n(60);var O=function(e){function t(e){var n,o,c,l;Object(r.a)(this,t),o=this,c=t,c=Object(f.a)(c),(n=Object(d.a)(o,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(c,l||[],Object(f.a)(o).constructor):c.apply(o,l))).xs=!1,n.sm=!1,n.md=!1,n.lg=!1,n.xl=!1,n.xsOnly=!1,n.smOnly=!1,n.smAndDown=!1,n.smAndUp=!1,n.mdOnly=!1,n.mdAndDown=!1,n.mdAndUp=!1,n.lgOnly=!1,n.lgAndDown=!1,n.lgAndUp=!1,n.xlOnly=!1,n.name="xs",n.height=0,n.width=0,n.mobile=!0,n.resizeTimeout=0;var h=e[t.property],m=h.mobileBreakpoint,v=h.scrollBarWidth,y=h.thresholds;return n.mobileBreakpoint=m,n.scrollBarWidth=v,n.thresholds=y,n}return Object(m.a)(t,e),Object(o.a)(t,[{key:"init",value:function(){this.update(),"undefined"!=typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?0:this.getClientHeight(),n=e?0:this.getClientWidth(),r=n<this.thresholds.xs,o=n<this.thresholds.sm&&!r,c=n<this.thresholds.md-this.scrollBarWidth&&!(o||r),l=n<this.thresholds.lg-this.scrollBarWidth&&!(c||o||r),h=n>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=n,this.xs=r,this.sm=o,this.md=c,this.lg=l,this.xl=h,this.xsOnly=r,this.smOnly=o,this.smAndDown=(r||o)&&!(c||l||h),this.smAndUp=!r&&(o||c||l||h),this.mdOnly=c,this.mdAndDown=(r||o||c)&&!(l||h),this.mdAndUp=!(r||o)&&(c||l||h),this.lgOnly=l,this.lgAndDown=(r||o||c||l)&&!h,this.lgAndUp=!(r||o||c)&&(l||h),this.xlOnly=h,!0){case r:this.name="xs";break;case o:this.name="sm";break;case c:this.name="md";break;case l:this.name="lg";break;default:this.name="xl"}if("number"!=typeof this.mobileBreakpoint){var d={xs:0,sm:1,md:2,lg:3,xl:4},f=d[this.name],m=d[this.mobileBreakpoint];this.mobile=f<=m}else this.mobile=n<parseInt(this.mobileBreakpoint,10)}},{key:"onResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}},{key:"getClientWidth",value:function(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}},{key:"getClientHeight",value:function(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}])}(w.a);O.property="breakpoint";var A=n(667),T=(n(36),n(443),{complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"}),E={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},P={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},M={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},x={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};var k=function(component,e){var t={};for(var n in e)t[n]={component:component,props:{icon:e[n].split(" fa-")}};return t}("font-awesome-icon",M),I=Object.freeze({mdiSvg:T,md:E,mdi:P,fa:M,fa4:x,faSvg:k});var R=function(e){function t(e){var n,o,c,l;Object(r.a)(this,t),o=this,c=t,c=Object(f.a)(c),n=Object(d.a)(o,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(c,l||[],Object(f.a)(o).constructor):c.apply(o,l));var h=e[t.property],m=h.iconfont,v=h.values,component=h.component;return n.component=component,n.iconfont=m,n.values=Object(y.A)(I[m],v),n}return Object(m.a)(t,e),Object(o.a)(t)}(w.a);R.property="icons";n(6),n(49),n(12),n(34),n(69),n(92);var j="$vuetify.",D=Symbol("Lang fallback");function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,o=t.replace(j,""),c=Object(y.q)(e,o,D);return c===D&&(n?(Object(l.b)('Translation key "'.concat(o,'" not found in fallback')),c=t):(Object(l.c)('Translation key "'.concat(o,'" not found, falling back to default')),c=N(r,t,!0,r))),c}var L=function(e){function t(e){var n,o,c,l;Object(r.a)(this,t),o=this,c=t,c=Object(f.a)(c),(n=Object(d.a)(o,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(c,l||[],Object(f.a)(o).constructor):c.apply(o,l))).defaultLocale="en";var h=e[t.property],m=h.current,v=h.locales,y=h.t;return n.current=m,n.locales=v,n.translator=y||n.defaultTranslator,n}return Object(m.a)(t,e),Object(o.a)(t,[{key:"currentLocale",value:function(e){return N(this.locales[this.current],e,!1,this.locales[this.defaultLocale])}},{key:"t",value: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];return e.startsWith(j)?this.translator.apply(this,[e].concat(n)):this.replace(e,n)}},{key:"defaultTranslator",value: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];return this.replace(this.currentLocale(e),n)}},{key:"replace",value:function(e,t){return e.replace(/\{(\d+)\}/g,(function(e,n){return String(t[+n])}))}}])}(w.a);L.property="lang";n(43);var B=n(21),U=n(35),F=(n(9),n(490),n(1385),n(197)),z=n(290),$=(n(1386),.20689655172413793),H=function(e){return e>Math.pow($,3)?Math.cbrt(e):e/(3*Math.pow($,2))+4/29},G=function(e){return e>$?Math.pow(e,3):3*Math.pow($,2)*(e-4/29)};function V(e){var t=H,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function W(e){var t=G,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}var K=["anchor"],Y=["anchor"];function X(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.anchor,o=Object(h.a)(e,K),c=Object.keys(o),l={},i=0;i<c.length;++i){var d=c[i],f=e[d];null!=f&&(n?t?("base"===d||d.startsWith("lighten")||d.startsWith("darken"))&&(l[d]=Object(F.j)(f)):"object"===Object(U.a)(f)?l[d]=X(f,!0,n):l[d]=te(d,Object(F.k)(f)):l[d]={base:Object(F.m)(Object(F.k)(f))})}return t||(l.anchor=r||l.base||l.primary.base),l}var J=function(e,t){return"\n.v-application .".concat(e," {\n  background-color: ").concat(t," !important;\n  border-color: ").concat(t," !important;\n}\n.v-application .").concat(e,"--text {\n  color: ").concat(t," !important;\n  caret-color: ").concat(t," !important;\n}")},Z=function(e,t,n){var r=t.split(/(\d)/,2),o=Object(B.a)(r,2),c=o[0],l=o[1];return"\n.v-application .".concat(e,".").concat(c,"-").concat(l," {\n  background-color: ").concat(n," !important;\n  border-color: ").concat(n," !important;\n}\n.v-application .").concat(e,"--text.text--").concat(c,"-").concat(l," {\n  color: ").concat(n," !important;\n  caret-color: ").concat(n," !important;\n}")},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return"--v-".concat(e,"-").concat(t)},ee=function(e){return"var(".concat(Q(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base"),")")};function te(e,t){for(var n={base:Object(F.m)(t)},i=5;i>0;--i)n["lighten".concat(i)]=Object(F.m)(ne(t,i));for(var r=1;r<=4;++r)n["darken".concat(r)]=Object(F.m)(re(t,r));return n}function ne(e,t){var n=V(z.b(e));return n[0]=n[0]+10*t,z.a(W(n))}function re(e,t){var n=V(z.b(e));return n[0]=n[0]-10*t,z.a(W(n))}var ie=function(e){function t(e){var n,o,c,l;Object(r.a)(this,t),o=this,c=t,c=Object(f.a)(c),(n=Object(d.a)(o,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(c,l||[],Object(f.a)(o).constructor):c.apply(o,l))).disabled=!1,n.isDark=null,n.unwatch=null,n.vueMeta=null;var h=e[t.property],m=h.dark,v=h.disable,y=h.options,w=h.themes;return n.dark=Boolean(m),n.defaults=n.themes=w,n.options=y,v?(n.disabled=!0,Object(d.a)(n)):(n.themes={dark:n.fillVariant(w.dark,!0),light:n.fillVariant(w.light,!1)},n)}return Object(m.a)(t,e),Object(o.a)(t,[{key:"css",set:function(e){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}},{key:"dark",get:function(){return Boolean(this.isDark)},set:function(e){var t=this.isDark;this.isDark=e,null!=t&&this.applyTheme()}},{key:"applyTheme",value:function(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}},{key:"clearCss",value:function(){this.css=""}},{key:"init",value:function(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}},{key:"setTheme",value:function(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}},{key:"resetThemes",value:function(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}},{key:"checkOrCreateStyleElement",value:function(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}},{key:"fillVariant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this.themes[t?"dark":"light"];return Object.assign({},n,e)}},{key:"genStyleElement",value:function(){"undefined"!=typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}},{key:"initVueMeta",value:function(e){var t=this;if(this.vueMeta=e.$meta(),this.isVueMeta23)e.$nextTick((function(){t.applyVueMeta23()}));else{var n="function"==typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",r=e.$options[n]||{};e.$options[n]=function(){r.style=r.style||[];var e=r.style.find((function(s){return"vuetify-theme-stylesheet"===s.id}));return e?e.cssText=t.generatedStyles:r.style.push({cssText:t.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(t.options||{}).cspNonce}),r}}}},{key:"applyVueMeta23",value:function(){(0,this.vueMeta.addApp("vuetify").set)({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}},{key:"initSSR",value:function(e){var t=this.options.cspNonce?' nonce="'.concat(this.options.cspNonce,'"'):"";e.head=e.head||"",e.head+='<style type="text/css" id="vuetify-theme-stylesheet"'.concat(t,">").concat(this.generatedStyles,"</style>")}},{key:"initTheme",value:function(e){var t=this;"undefined"!=typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",(function(){var n=c.a.observable({themes:t.themes});t.unwatch=e.$watch((function(){return n.themes}),(function(){return t.applyTheme()}),{deep:!0})})),this.applyTheme())}},{key:"currentTheme",get:function(){var e=this.dark?"dark":"light";return this.themes[e]}},{key:"generatedStyles",get:function(){var e,t=this.parsedTheme,n=this.options||{};return null!=n.themeCache&&null!=(e=n.themeCache.get(t))||(e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.anchor,r=Object(h.a)(e,Y),o=Object.keys(r);if(!o.length)return"";var c="",l="",d=t?ee("anchor"):n;l+=".v-application a { color: ".concat(d,"; }"),t&&(c+="  ".concat(Q("anchor"),": ").concat(n,";\n"));for(var i=0;i<o.length;++i){var f=o[i],m=e[f];l+=J(f,t?ee(f):m.base),t&&(c+="  ".concat(Q(f),": ").concat(m.base,";\n"));for(var v=Object(y.z)(m),w=0;w<v.length;++w){var S=v[w],_=m[S];"base"!==S&&(l+=Z(f,S,t?ee(f,S):_),t&&(c+="  ".concat(Q(f,S),": ").concat(_,";\n")))}}return t&&(c=":root {\n".concat(c,"}\n\n")),c+l}(t,n.customProperties),null!=n.minifyTheme&&(e=n.minifyTheme(e)),null!=n.themeCache&&n.themeCache.set(t,e)),e}},{key:"parsedTheme",get:function(){return X(this.currentTheme||{},void 0,Object(y.p)(this.options,["variations"],!0))}},{key:"isVueMeta23",get:function(){return"function"==typeof this.vueMeta.addApp}}])}(w.a);ie.property="theme";var oe=function(){return Object(o.a)((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e),this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=t,this.use(_),this.use(C),this.use(O),this.use(A.a),this.use(R),this.use(L),this.use(ie)}),[{key:"init",value:function(e,t){var n=this;this.installed.forEach((function(r){var o=n.framework[r];o.framework=n.framework,o.init(e,t)})),this.framework.rtl=Boolean(this.preset.rtl)}},{key:"use",value:function(e){var t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}])}();oe.install=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0,c.a!==t&&Object(l.b)("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");var r=n.components||{},o=n.directives||{};for(var h in o){var d=o[h];t.directive(h,d)}!function e(n){if(n){for(var r in n){var component=n[r];component&&!e(component.$_vuetify_subcomponents)&&t.component(r,component)}return!0}return!1}(r),t.$_vuetify_installed||(t.$_vuetify_installed=!0,t.mixin({beforeCreate:function(){var e=this.$options;e.vuetify?(e.vuetify.init(this,this.$ssrContext),this.$vuetify=t.observable(e.vuetify.framework)):this.$vuetify=e.parent&&e.parent.$vuetify||this},beforeMount:function(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted:function(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}},oe.installed=!1,oe.version="2.7.1",oe.config={silent:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return De})),n.d(t,"b",(function(){return $e})),n.d(t,"c",(function(){return Fe})),n.d(t,"d",(function(){return Le})),n.d(t,"e",(function(){return Be})),n.d(t,"f",(function(){return ze}));const r="opt-in",o="opt-out",c="show--consent",l="show--preferences",a="disable--interaction",s="data-category",h="div",d="button",i="aria-hidden",f="btn-group",m="click",v="data-role",y="consentModal",u="preferencesModal";class p{constructor(){this.t={mode:r,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}}const w=new p,g=(e,t)=>e.indexOf(t),b=(e,t)=>-1!==g(e,t),S=e=>Array.isArray(e),_=e=>"string"==typeof e,C=e=>!!e&&"object"==typeof e&&!S(e),O=e=>"function"==typeof e,A=e=>Object.keys(e),T=e=>Array.from(new Set(e)),E=()=>document.activeElement,P=e=>e.preventDefault(),M=(e,t)=>e.querySelectorAll(t),x=e=>{const t=document.createElement(e);return e===d&&(t.type=e),t},k=(e,t,n)=>e.setAttribute(t,n),I=(e,t,n)=>{e.removeAttribute(n?"data-"+t:t)},R=(e,t,n)=>e.getAttribute(n?"data-"+t:t),j=(e,t)=>e.appendChild(t),D=(e,t)=>e.classList.add(t),N=(e,t)=>D(e,"cm__"+t),L=(e,t)=>D(e,"pm__"+t),B=(e,t)=>e.classList.remove(t),U=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let n in e){let r=e[n];t[n]=U(r)}return t},F=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),z=(e,t,n,r)=>{e.addEventListener(t,n),r&&w.o.m.push({pe:e,me:t,ge:n})},$=()=>{const e=w.t.cookie.expiresAfterDays;return O(e)?e(w.o.F):e},H=(e,t)=>{const n=e||[],r=t||[];return n.filter((e=>!b(r,e))).concat(r.filter((e=>!b(n,e))))},G=e=>{w.o.R=T(e),w.o.F=(()=>{let e="custom";const{R:t,O:n,B:r}=w.o,a=t.length;return a===n.length?e="all":a===r.length&&(e="necessary"),e})()},V=(e,t,n,r)=>{const a="accept-",{show:s,showPreferences:o,hide:c,hidePreferences:i,acceptCategory:l}=t,h=e||document,d=e=>M(h,`[data-cc="${e}"]`),u=(e,t)=>{P(e),l(t),i(),c()},p=d("show-preferencesModal"),g=d("show-consentModal"),b=d(a+"all"),f=d(a+"necessary"),v=d(a+"custom"),y=w.t.lazyHtmlGeneration;for(const e of p)k(e,"aria-haspopup","dialog"),z(e,m,(e=>{P(e),o()})),y&&(z(e,"mouseenter",(e=>{P(e),w.o.N||n(t,r)}),!0),z(e,"focus",(()=>{w.o.N||n(t,r)})));for(let e of g)k(e,"aria-haspopup","dialog"),z(e,m,(e=>{P(e),s(!0)}),!0);for(let e of b)z(e,m,(e=>{u(e,"all")}),!0);for(let e of v)z(e,m,(e=>{u(e)}),!0);for(let e of f)z(e,m,(e=>{u(e,[])}),!0)},W=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},K=(e,t)=>{const n=r=>{r.target.removeEventListener("transitionend",n),"opacity"===r.propertyName&&"1"===getComputedStyle(e).opacity&&W((e=>1===e?w.ne.be:w.ne.ve)(t))};z(e,"transitionend",n)};let q;const Y=e=>{clearTimeout(q),e?D(w.ne.ye,a):q=setTimeout((()=>{B(w.ne.ye,a)}),500)},X=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],J=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${X[e]}"/></svg>`,Z=e=>{const t=w.ne,n=w.o;(e=>{const r=e===t.he,a=n.i.disablePageInteraction?t.ye:r?t.Ce:t.ye;z(a,"keydown",(t=>{if("Tab"!==t.key||!(r?n.k&&!n.A:n.A))return;const a=E(),s=r?n.q:n.K;0!==s.length&&(t.shiftKey?a!==s[0]&&e.contains(a)||(P(t),W(s[1])):a!==s[1]&&e.contains(a)||(P(t),W(s[0])))}),!0)})(e)},Q=["[href]",d,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),ee=e=>{const{o:t,ne:n}=w,r=(e,t)=>{const n=M(e,Q);t[0]=n[0],t[1]=n[n.length-1]};1===e&&t.T&&r(n.he,t.q),2===e&&t.N&&r(n.we,t.K)},te=(e,t,n)=>{const{de:r,le:a,ie:s,_e:o,ue:c,fe:i}=w.ce,l=w.re;if(t){const r={modalName:t};return e===l.fe?O(i)&&i(r):e===l._e?O(o)&&o(r):(r.modal=n,O(c)&&c(r)),F(e,r)}const h={cookie:w.o.p};e===l.ie?O(s)&&s(U(h)):e===l.le?O(a)&&a(U(h)):(h.changedCategories=w.o.L,h.changedServices=w.o.ee,O(r)&&r(U(h))),F(e,U(h))},ne=(e,t)=>{try{return e()}catch(e){return!t&&console.warn("CookieConsent:",e),!1}},re=e=>{const{Y:t,ee:n,O:r,X:a,oe:o,p:c,L:i}=w.o;for(const e of r){const r=n[e]||t[e]||[];for(const n of r){const r=a[e][n];if(!r)continue;const{onAccept:s,onReject:o}=r;!r.Se&&b(t[e],n)?(r.Se=!0,O(s)&&s()):r.Se&&!b(t[e],n)&&(r.Se=!1,O(o)&&o())}}if(!w.t.manageScriptTags)return;const l=o,h=e||c.categories||[],d=(e,r)=>{if(r>=e.length)return;const a=o[r];if(a.xe)return d(e,r+1);const c=a.Me,l=a.De,f=a.Te,u=b(h,l),p=!!f&&b(t[l],f);if(!f&&!a.ke&&u||!f&&a.ke&&!u&&b(i,l)||f&&!a.ke&&p||f&&a.ke&&!p&&b(n[l]||[],f)){a.xe=!0;const t=R(c,"type",!0);I(c,"type",!!t),I(c,s);let n=R(c,"src",!0);n&&I(c,"src",!0);const o=x("script");o.textContent=c.innerHTML;for(const{nodeName:e}of c.attributes)k(o,e,c[e]||R(c,e));t&&(o.type=t),n?o.src=n:n=c.src;const i=!!n&&(!t||["text/javascript","module"].includes(t));if(i&&(o.onload=o.onerror=()=>{d(e,++r)}),c.replaceWith(o),i)return}d(e,++r)};d(l,0)},ie="bottom",oe="left",ae="center",se="right",ce="inline",ue="wide",le="pm--",he=["middle","top",ie],de=[oe,ae,se],fe={box:{Ee:[ue,ce],Ae:he,Ne:de,He:ie,Ve:se},cloud:{Ee:[ce],Ae:he,Ne:de,He:ie,Ve:ae},bar:{Ee:[ce],Ae:he.slice(1),Ne:[],He:ie,Ve:""}},pe={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[ue],Ae:[],Ne:[oe,se],He:"",Ve:oe}},me=e=>{const t=w.o.i.guiOptions,n=t&&t.consentModal,r=t&&t.preferencesModal;0===e&&ge(w.ne.he,fe,n,"cm--","box","cm"),1===e&&ge(w.ne.we,pe,r,le,"box","pm")},ge=(e,t,n,r,a,s)=>{e.className=s;const o=n&&n.layout,c=n&&n.position,i=n&&n.flipButtons,l=!n||!1!==n.equalWeightButtons,h=o&&o.split(" ")||[],d=h[0],f=h[1],u=d in t?d:a,p=t[u],g=b(p.Ee,f)&&f,m=c&&c.split(" ")||[],v=m[0],y=r===le?m[0]:m[1],S=b(p.Ae,v)?v:p.He,_=b(p.Ne,y)?y:p.Ve,C=t=>{t&&D(e,r+t)};C(u),C(g),C(S),C(_),i&&C("flip");const O=s+"__btn--secondary";if("cm"===s){const{Ie:e,Le:t}=w.ne;e&&(l?B(e,O):D(e,O)),t&&(l?B(t,O):D(t,O))}else{const{je:e}=w.ne;e&&(l?B(e,O):D(e,O))}},ve=(e,t)=>{const n=w.o,r=w.ne,{hide:a,hidePreferences:s,acceptCategory:o}=e,p=e=>{o(e),s(),a()},g=n.u&&n.u.preferencesModal;if(!g)return;const b=g.title,c=g.closeIconLabel,l=g.acceptAllBtn,y=g.acceptNecessaryBtn,S=g.savePreferencesBtn,O=g.sections||[],T=l||y||S;if(r.Fe)r.Pe=x(h),L(r.Pe,"body");else{r.Fe=x(h),D(r.Fe,"pm-wrapper");const e=x("div");D(e,"pm-overlay"),j(r.Fe,e),z(e,m,s),r.we=x(h),D(r.we,"pm"),k(r.we,"role","dialog"),k(r.we,i,!0),k(r.we,"aria-modal",!0),k(r.we,"aria-labelledby","pm__title"),z(r.ye,"keydown",(e=>{27===e.keyCode&&s()}),!0),r.Oe=x(h),L(r.Oe,"header"),r.Re=x("h2"),L(r.Re,"title"),r.Re.id="pm__title",r.Be=x(d),L(r.Be,"close-btn"),k(r.Be,"aria-label",g.closeIconLabel||""),z(r.Be,m,s),r.Ge=x("span"),r.Ge.innerHTML=J(),j(r.Be,r.Ge),r.Je=x(h),L(r.Je,"body"),r.Ue=x(h),L(r.Ue,"footer");var E=x(h);D(E,"btns");var P=x(h),M=x(h);L(P,f),L(M,f),j(r.Ue,P),j(r.Ue,M),j(r.Oe,r.Re),j(r.Oe,r.Be),r.ve=x(h),k(r.ve,"tabIndex",-1),j(r.we,r.ve),j(r.we,r.Oe),j(r.we,r.Je),T&&j(r.we,r.Ue),j(r.Fe,r.we)}let I;b&&(r.Re.innerHTML=b,c&&k(r.Be,"aria-label",c)),O.forEach(((e,t)=>{const a=e.title,s=e.description,o=e.linkedCategory,c=o&&n.P[o],l=e.cookieTable,u=l&&l.body,p=l&&l.caption,f=u&&u.length>0,b=!!c,v=b&&n.X[o],y=C(v)&&A(v)||[],w=b&&(!!s||!!f||A(v).length>0);var S=x(h);if(L(S,"section"),w||s){var O=x(h);L(O,"section-desc-wrapper")}let T=y.length;if(w&&T>0){const e=x(h);L(e,"section-services");for(const t of y){const n=v[t],r=n&&n.label||t,a=x(h),s=x(h),l=x(h),i=x(h);L(a,"service"),L(i,"service-title"),L(s,"service-header"),L(l,"service-icon");const d=be(r,t,c,!0,o);i.innerHTML=r,j(s,l),j(s,i),j(a,s),j(a,d),j(e,a)}j(O,e)}if(a){var E=x(h),P=x(b?d:h);if(L(E,"section-title-wrapper"),L(P,"section-title"),P.innerHTML=a,j(E,P),b){const e=x("span");e.innerHTML=J(2,3.5),L(e,"section-arrow"),j(E,e),S.className+="--toggle";const t=be(a,o,c);let n=g.serviceCounterLabel;if(T>0&&_(n)){let e=x("span");L(e,"badge"),L(e,"service-counter"),k(e,i,!0),k(e,"data-servicecounter",T),n&&(n=n.split("|"),n=n.length>1&&T>1?n[1]:n[0],k(e,"data-counterlabel",n)),e.innerHTML=T+(n?" "+n:""),j(P,e)}if(w){L(S,"section--expandable");var M=o+"-desc";k(P,"aria-expanded",!1),k(P,"aria-controls",M)}j(E,t)}else k(P,"role","heading"),k(P,"aria-level","3");j(S,E)}if(s){var R=x("p");L(R,"section-desc"),R.innerHTML=s,j(O,R)}if(w&&(k(O,i,"true"),O.id=M,((e,t,n)=>{z(P,m,(()=>{t.classList.contains("is-expanded")?(B(t,"is-expanded"),k(n,"aria-expanded","false"),k(e,i,"true")):(D(t,"is-expanded"),k(n,"aria-expanded","true"),k(e,i,"false"))}))})(O,S,P),f)){const e=x("table"),n=x("thead"),a=x("tbody");if(p){const t=x("caption");L(t,"table-caption"),t.innerHTML=p,e.appendChild(t)}L(e,"section-table"),L(n,"table-head"),L(a,"table-body");const s=l.headers,o=A(s),i=r.$e.createDocumentFragment(),c=x("tr");for(const e of o){const n=s[e],r=x("th");r.id="cc__row-"+n+t,k(r,"scope","col"),L(r,"table-th"),r.innerHTML=n,j(i,r)}j(c,i),j(n,c);const d=r.$e.createDocumentFragment();for(const e of u){const n=x("tr");L(n,"table-tr");for(const r of o){const a=s[r],o=e[r],i=x("td"),c=x(h);L(i,"table-td"),k(i,"data-column",a),k(i,"headers","cc__row-"+a+t),c.insertAdjacentHTML("beforeend",o),j(i,c),j(n,i)}j(d,n)}j(a,d),j(e,n),j(e,a),j(O,e)}(w||s)&&j(S,O);const N=r.Pe||r.Je;b?(I||(I=x(h),L(I,"section-toggles")),I.appendChild(S)):I=null,j(N,I||S)})),l&&(r.ze||(r.ze=x(d),L(r.ze,"btn"),k(r.ze,v,"all"),j(P,r.ze),z(r.ze,m,(()=>p("all")))),r.ze.innerHTML=l),y&&(r.je||(r.je=x(d),L(r.je,"btn"),k(r.je,v,"necessary"),j(P,r.je),z(r.je,m,(()=>p([])))),r.je.innerHTML=y),S&&(r.qe||(r.qe=x(d),L(r.qe,"btn"),L(r.qe,"btn--secondary"),k(r.qe,v,"save"),j(M,r.qe),z(r.qe,m,(()=>p()))),r.qe.innerHTML=S),r.Pe&&(r.we.replaceChild(r.Pe,r.Je),r.Je=r.Pe),me(1),n.N||(n.N=!0,te(w.re.ue,u,r.we),t(e),j(r.Ce,r.Fe),Z(r.we),setTimeout((()=>D(r.Fe,"cc--anim")),100)),ee(2)};function be(e,t,n,r,a){const o=w.o,c=w.ne,l=x("label"),h=x("input"),d=x("span"),u=x("span"),p=x("span"),g=x("span"),f=x("span");if(g.innerHTML=J(1,3),f.innerHTML=J(0,3),h.type="checkbox",D(l,"section__toggle-wrapper"),D(h,"section__toggle"),D(g,"toggle__icon-on"),D(f,"toggle__icon-off"),D(d,"toggle__icon"),D(u,"toggle__icon-circle"),D(p,"toggle__label"),k(d,i,"true"),r?(D(l,"toggle-service"),k(h,s,a),c.se[a][t]=h):c.ae[t]=h,r?(e=>{z(h,"change",(()=>{const t=c.se[e],n=c.ae[e];o.Z[e]=[];for(let n in t){const r=t[n];r.checked&&o.Z[e].push(r.value)}n.checked=o.Z[e].length>0}))})(a):(e=>{z(h,m,(()=>{const t=c.se[e],n=h.checked;o.Z[e]=[];for(let r in t)t[r].checked=n,n&&o.Z[e].push(r)}))})(t),h.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,""),j(u,f),j(u,g),j(d,u),o.D)(n.readOnly||n.enabled)&&(h.checked=!0);else if(r){const e=o.Y[a];h.checked=n.readOnly||b(e,t)}else b(o.R,t)&&(h.checked=!0);return n.readOnly&&(h.disabled=!0),j(l,h),j(l,d),j(l,p),l}const ye=()=>{const e=x("span");return w.ne.Ke||(w.ne.Ke=e),e},we=(e,t)=>{const n=w.o,r=w.ne,{hide:a,showPreferences:s,acceptCategory:u}=e,p=n.u&&n.u.consentModal;if(!p)return;const g=p.acceptAllBtn,b=p.acceptNecessaryBtn,o=p.showPreferencesBtn,c=p.closeIconLabel,l=p.footer,S=p.label,_=p.title,C=e=>{a(),u(e)};if(!r.Qe){r.Qe=x(h),r.he=x(h),r.We=x(h),r.Xe=x(h),r.Ye=x(h),D(r.Qe,"cm-wrapper"),D(r.he,"cm"),N(r.We,"body"),N(r.Xe,"texts"),N(r.Ye,"btns"),k(r.he,"role","dialog"),k(r.he,"aria-modal","true"),k(r.he,i,"false"),k(r.he,"aria-describedby","cm__desc"),S?k(r.he,"aria-label",S):_&&k(r.he,"aria-labelledby","cm__title");const e="box",t=n.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(" ")[0]===e;_&&c&&s&&(r.Le||(r.Le=x(d),r.Le.innerHTML=J(),N(r.Le,"btn"),N(r.Le,"btn--close"),z(r.Le,m,(()=>{C([])})),j(r.We,r.Le)),k(r.Le,"aria-label",c)),j(r.We,r.Xe),(g||b||o)&&j(r.We,r.Ye),r.be=x(h),k(r.be,"tabIndex",-1),j(r.he,r.be),j(r.he,r.We),j(r.Qe,r.he)}_&&(r.Ze||(r.Ze=x("h2"),r.Ze.className=r.Ze.id="cm__title",j(r.Xe,r.Ze)),r.Ze.innerHTML=_);let O=p.description;if(O&&(n.V&&(O=O.replace("{{revisionMessage}}",n.I?"":p.revisionMessage||"")),r.et||(r.et=x("p"),r.et.className=r.et.id="cm__desc",j(r.Xe,r.et)),r.et.innerHTML=O),g&&(r.tt||(r.tt=x(d),j(r.tt,ye()),N(r.tt,"btn"),k(r.tt,v,"all"),z(r.tt,m,(()=>{C("all")}))),r.tt.firstElementChild.innerHTML=g),b&&(r.Ie||(r.Ie=x(d),j(r.Ie,ye()),N(r.Ie,"btn"),k(r.Ie,v,"necessary"),z(r.Ie,m,(()=>{C([])}))),r.Ie.firstElementChild.innerHTML=b),o&&(r.ot||(r.ot=x(d),j(r.ot,ye()),N(r.ot,"btn"),N(r.ot,"btn--secondary"),k(r.ot,v,"show"),z(r.ot,"mouseenter",(()=>{n.N||ve(e,t)})),z(r.ot,m,s)),r.ot.firstElementChild.innerHTML=o),r.nt||(r.nt=x(h),N(r.nt,f),g&&j(r.nt,r.tt),b&&j(r.nt,r.Ie),(g||b)&&j(r.We,r.nt),j(r.Ye,r.nt)),r.ot&&!r.st&&(r.st=x(h),r.Ie&&r.tt?(N(r.st,f),j(r.st,r.ot),j(r.Ye,r.st)):(j(r.nt,r.ot),N(r.nt,f+"--uneven"))),l){if(!r.ct){let e=x(h),t=x(h);r.ct=x(h),N(e,"footer"),N(t,"links"),N(r.ct,"link-group"),j(t,r.ct),j(e,t),j(r.he,e)}r.ct.innerHTML=l}me(0),n.T||(n.T=!0,te(w.re.ue,y,r.he),t(e),j(r.Ce,r.Qe),Z(r.he),setTimeout((()=>D(r.Qe,"cc--anim")),100)),ee(1),V(r.We,e,ve,t)},Se=e=>{if(!_(e))return null;if(e in w.o._)return e;let t=e.slice(0,2);return t in w.o._?t:null},_e=()=>w.o.l||w.o.i.language.default,Ce=e=>{e&&(w.o.l=e)},Oe=async e=>{const t=w.o;let n=Se(e)?e:_e(),r=t._[n];return _(r)?r=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(r):O(r)&&(r=await r()),!!r&&(t.u=r,Ce(n),!0)},Ae=()=>{let e=w.o.i.language.rtl,t=w.ne.Ce;e&&t&&(S(e)||(e=[e]),b(e,w.o.l)?D(t,"cc--rtl"):B(t,"cc--rtl"))},Te=()=>{const e=w.ne;if(e.Ce)return;e.Ce=x(h),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),Ae();let t=w.o.i.root;t&&_(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},Ee=e=>ne((()=>localStorage.removeItem(e))),Pe=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const n=g(e,t);return n>-1?[e[n]]:[]}},Me=e=>{const{hostname:t,protocol:n}=location,{name:r,path:a,domain:s,sameSite:o,useLocalStorage:c}=w.t.cookie,i=e?(()=>{const e=w.o.S,t=e?new Date-e:0;return 864e5*$()-t})():864e5*$(),l=new Date;l.setTime(l.getTime()+i),w.o.p.expirationTime=l.getTime();const h=JSON.stringify(w.o.p);let d=r+"="+encodeURIComponent(h)+(0!==i?"; expires="+l.toUTCString():"")+"; Path="+a+"; SameSite="+o;b(t,".")&&(d+="; Domain="+s),"https:"===n&&(d+="; Secure"),c?((e,t)=>{ne((()=>localStorage.setItem(e,t)))})(r,h):document.cookie=d,w.o.p},xe=(e,t,n)=>{if(0===e.length)return;const r=n||w.t.cookie.domain,a=t||w.t.cookie.path,s="www."===r.slice(0,4),o=s&&r.substring(4),c=(e,t)=>{document.cookie=e+"=; path="+a+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of e)c(t),c(t,r),s&&c(t,o)},ke=e=>{const t=e||w.t.cookie.name,n=w.t.cookie.useLocalStorage;return((e,t)=>{let n;return n=ne((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},n})(n?(r=t,ne((()=>localStorage.getItem(r)))||""):Ie(t,!0),n);var r},Ie=(e,t)=>{const n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?t?n.pop():e:""},Re=e=>{const t=document.cookie.split(/;\s*/),n=[];for(const r of t){let t=r.split("=")[0];e?ne((()=>{e.test(t)&&n.push(t)})):n.push(t)}return n},je=(e,t=[])=>{((e,t)=>{const{O:n,R:r,B:a,N:s,Z:o,G:c,X:i}=w.o;let l=[];if(e){S(e)?l.push(...e):_(e)&&(l="all"===e?n:[e]);for(const e of n)o[e]=b(l,e)?A(i[e]):[]}else l=[...r,...c],s&&(l=(()=>{const e=w.ne.ae;if(!e)return[];let t=[];for(let n in e)e[n].checked&&t.push(n);return t})());l=l.filter((e=>!b(n,e)||!b(t,e))),l.push(...a),G(l)})(e,t),(e=>{const t=w.o,{Z:n,B:r,Y:a,X:s,O:o}=t,c=o;t.te=U(a);for(const e of c){const o=s[e],c=A(o),i=n[e]&&n[e].length>0,l=b(r,e);if(0!==c.length){if(a[e]=[],l)a[e].push(...c);else if(i){const t=n[e];a[e].push(...t)}else a[e]=t.Z[e];a[e]=T(a[e])}}})(),(()=>{const e=w.o;e.L=w.t.mode===o&&e.D?H(e.G,e.R):H(e.R,e.p.categories);let t=e.L.length>0,a=!1;for(const t of e.O)e.ee[t]=H(e.Y[t],e.te[t]),e.ee[t].length>0&&(a=!0);const s=w.ne.ae;for(const t in s)s[t].checked=b(e.R,t);for(const t of e.O){const n=w.ne.se[t],r=e.Y[t];for(const e in n)n[e].checked=b(r,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:U(e.R),revision:w.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:U(e.Y)};let n=!1;const c=t||a;(e.D||c)&&(e.D&&(e.D=!1,n=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),Me(),w.t.autoClearCookies&&(n||c)&&(e=>{const t=w.o,n=Re(),r=(e=>{const t=w.o;return(e?t.O:t.L).filter((e=>{const n=t.P[e];return!!n&&!n.readOnly&&!!n.autoClear}))})(e);for(const e in t.ee)for(const r of t.ee[e]){const a=t.X[e][r].cookies;if(!b(t.Y[e],r)&&a)for(const e of a){const t=Pe(n,e.name);xe(t,e.path,e.domain)}}for(const a of r){const r=t.P[a].autoClear,s=r&&r.cookies||[],o=b(t.L,a),c=!b(t.R,a),i=o&&c;if(e?c:i){r.reloadPage&&i&&(t.j=!0);for(const e of s){const t=Pe(n,e.name);xe(t,e.path,e.domain)}}}})(n),re()),n&&(te(w.re.ie),te(w.re.le),w.t.mode===r)||(c&&te(w.re.de),e.j&&(e.j=!1,location.reload()))})()},De=e=>{const t=w.o.D?[]:w.o.R;return b(t,e)},Ne=(e,t)=>{const n=w.o.D?[]:w.o.Y[t]||[];return b(n,e)},Le=e=>{const{ne:t,o:n}=w;if(!n.k){if(!n.T){if(!e)return;we(Ue,Te)}n.k=!0,n.U=E(),n.v&&Y(!0),K(t.he,1),D(t.ye,c),k(t.he,i,"false"),setTimeout((()=>{W(w.ne.be)}),100),te(w.re.fe,y)}},Be=()=>{const e=w.o;e.A||(e.N||ve(Ue,Te),e.A=!0,e.k?e.$=E():e.U=E(),K(w.ne.we,2),D(w.ne.ye,l),k(w.ne.we,i,"false"),setTimeout((()=>{W(w.ne.ve)}),100),te(w.re.fe,u))};var Ue={show:Le,hide:()=>{const{ne:e,o:t,re:n}=w;t.k&&(t.k=!1,t.v&&Y(),W(e.Ke,!0),B(e.ye,c),k(e.he,i,"true"),W(t.U),t.U=null,te(n._e,y))},showPreferences:Be,hidePreferences:()=>{const e=w.o;e.A&&(e.A=!1,(()=>{const e=ze(),t=w.o.P,n=w.ne.ae,r=w.ne.se,a=e=>b(w.o.G,e);for(const s in n){const o=!!t[s].readOnly;n[s].checked=o||(e?De(s):a(s));for(const t in r[s])r[s][t].checked=o||(e?Ne(t,s):a(s))}})(),W(w.ne.Ge,!0),B(w.ne.ye,l),k(w.ne.we,i,"true"),e.k?(W(e.$),e.$=null):(W(e.U),e.U=null),te(w.re._e,u))},acceptCategory:je};const Fe=async(e,t)=>{if(!Se(e))return!1;const n=w.o;return!(e===_e()&&!0!==t||!await Oe(e)||(Ce(e),n.T&&we(Ue,Te),n.N&&ve(Ue,Te),Ae(),0))},ze=()=>!w.o.D,$e=async e=>{const{o:t,t:n,re:a}=w,r=window;if(!r._ccRun){if(r._ccRun=!0,(e=>{const{ne:t,t:n,o:a}=w,r=n,c=a,{cookie:i}=r,l=w.ce,h=e.cookie,d=e.categories,f=A(d)||[],u=navigator,p=document;t.$e=p,t.ye=p.documentElement,i.domain=location.hostname,c.i=e,c.P=d,c.O=f,c._=e.language.translations,c.v=!!e.disablePageInteraction,l.ie=e.onFirstConsent,l.le=e.onConsent,l.de=e.onChange,l._e=e.onModalHide,l.fe=e.onModalShow,l.ue=e.onModalReady;const{mode:g,autoShow:m,lazyHtmlGeneration:v,autoClearCookies:y,revision:S,manageScriptTags:_,hideFromBots:O}=e;g===o&&(r.mode=g),"boolean"==typeof y&&(r.autoClearCookies=y),"boolean"==typeof _&&(r.manageScriptTags=_),"number"==typeof S&&S>=0&&(r.revision=S,c.V=!0),"boolean"==typeof m&&(r.autoShow=m),"boolean"==typeof v&&(r.lazyHtmlGeneration=v),!1===O&&(r.hideFromBots=!1),!0===r.hideFromBots&&u&&(c.J=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),C(h)&&(r.cookie={...i,...h}),r.autoClearCookies,c.V,r.manageScriptTags,(e=>{const{P:t,X:n,Y:r,Z:a,B:s}=w.o;for(let o of e){const e=t[o],c=e.services||{},i=C(c)&&A(c)||[];n[o]={},r[o]=[],a[o]=[],e.readOnly&&(s.push(o),r[o]=i),w.ne.se[o]={};for(let e of i){const t=c[e];t.Se=!1,n[o][e]=t}}})(f),(()=>{if(!w.t.manageScriptTags)return;const e=w.o,t=M(document,"script["+s+"]");for(const n of t){let t=R(n,s),r=n.dataset.service||"",a=!1;if(t&&"!"===t.charAt(0)&&(t=t.slice(1),a=!0),"!"===r.charAt(0)&&(r=r.slice(1),a=!0),b(e.O,t)&&(e.oe.push({Me:n,xe:!1,ke:a,De:t,Te:r}),r)){const n=e.X[t];n[r]||(n[r]={Se:!1})}}})(),Ce((()=>{const e=w.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},n=Se(t[e]);if(n)return n}return _e()})())})(e),t.J)return;(()=>{const e=w.o,t=w.t,n=ke(),{categories:a,services:s,consentId:r,consentTimestamp:c,lastConsentTimestamp:i,data:l,revision:h}=n,d=S(a);e.p=n,e.M=r;const f=!!r&&_(r);e.C=c,e.C&&(e.C=new Date(c)),e.S=i,e.S&&(e.S=new Date(i)),e.h=void 0!==l?l:null,e.V&&f&&h!==t.revision&&(e.I=!1),e.D=!(f&&e.I&&e.C&&e.S&&d),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(n.expirationTime||0),e.D&&Ee(t.cookie.name)),e.D,(()=>{const e=w.o;for(const t of e.O){const n=e.P[t];if(n.readOnly||n.enabled){e.G.push(t);const n=e.X[t]||{};for(let a in n)e.Z[t].push(a),e.i.mode===o&&e.Y[t].push(a)}}})(),e.D?t.mode===o&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...s},G([...e.B,...a]))})();const i=ze();if(!await Oe())return!1;if(V(null,c=Ue,ve,Te),w.o.D&&we(c,Te),w.t.lazyHtmlGeneration||ve(c,Te),n.autoShow&&!i&&Le(!0),i)return re(),te(a.le);n.mode===o&&re(t.G)}var c}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(450);var r=n(1);t.a=r.a.extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium:function(){return Boolean(!(this.xSmall||this.small||this.large||this.xLarge))},sizeableClasses:function(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}})},,,,,,,,,,,,,function(e,t,n){"use strict";(function(t,r){var o=65536,c=4294967295;var l=n(58).Buffer,h=t.crypto||t.msCrypto;h&&h.getRandomValues?e.exports=function(e,t){if(e>c)throw new RangeError("requested too many random bytes");var n=l.allocUnsafe(e);if(e>0)if(e>o)for(var d=0;d<e;d+=o)h.getRandomValues(n.slice(d,d+o));else h.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(67),n(83))},function(e,t,n){"use strict";var r={};function o(code,e,t){t||(t=Error);var n=function(t){var n,r;function o(n,r,o){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,o))||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o}(t);n.prototype.name=t.name,n.prototype.code=code,r[code]=n}function c(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(i){return String(i)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,o,l,h;if("string"==typeof t&&(o="not ",t.substr(!l||l<0?0:+l,o.length)===o)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))h="The ".concat(e," ").concat(r," ").concat(c(t,"type"));else{var d=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";h='The "'.concat(e,'" ').concat(d," ").concat(r," ").concat(c(t,"type"))}return h+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=n(829),c=n(833);n(47)(f,o);for(var l=r(c.prototype),h=0;h<l.length;h++){var d=l[h];f.prototype[d]||(f.prototype[d]=c.prototype[d])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),c.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||t.nextTick(v,this)}function v(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,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)}})}).call(this,n(83))},function(e,t,n){var r=n(58).Buffer;function o(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(data,e){"string"==typeof data&&(e=e||"utf8",data=r.from(data,e));for(var t=this._block,n=this._blockSize,o=data.length,c=this._len,l=0;l<o;){for(var h=c%n,d=Math.min(o-l,n-h),i=0;i<d;i++)t[h+i]=data[l+i];l+=d,(c+=d)%n==0&&this._update(t)}return this._len+=o,this},o.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,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var c=this._hash();return e?c.toString(e):c},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){"use strict";var r={};function o(code,e,t){t||(t=Error);var n=function(t){var n,r;function o(n,r,o){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,o))||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o}(t);n.prototype.name=t.name,n.prototype.code=code,r[code]=n}function c(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(i){return String(i)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,o,l,h;if("string"==typeof t&&(o="not ",t.substr(!l||l<0?0:+l,o.length)===o)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))h="The ".concat(e," ").concat(r," ").concat(c(t,"type"));else{var d=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";h='The "'.concat(e,'" ').concat(d," ").concat(r," ").concat(c(t,"type"))}return h+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=n(858),c=n(862);n(47)(f,o);for(var l=r(c.prototype),h=0;h<l.length;h++){var d=l[h];f.prototype[d]||(f.prototype[d]=c.prototype[d])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),c.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||t.nextTick(v,this)}function v(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,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)}})}).call(this,n(83))},function(e,t,n){"use strict";var r=n(0),o=(n(28),n(1));t.a=o.a.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation:function(){return this.elevation},elevationClasses:function(){var e=this.computedElevation;return null==e||isNaN(parseInt(e))?{}:Object(r.a)({},"elevation-".concat(this.elevation),!0)}}})},function(e,t,n){"use strict";var r=Object.prototype;t.a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,n){"use strict";var r,o=n(1475),c=n(1476),l=n(1477),h=n(1478),d=n(921),f=n(491),m=n(1479),v=Function,y=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch(e){w=null}var S=function(){throw new f},_=w?function(){try{return S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,C=n(1480)(),O=n(1482)(),A=Object.getPrototypeOf||(O?function(e){return e.__proto__}:null),T={},E="undefined"!=typeof Uint8Array&&A?A(Uint8Array):r,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":c,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":l,"%ReferenceError%":h,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&A?A(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":d,"%ThrowTypeError%":_,"%TypedArray%":E,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":m,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(A)try{null.error}catch(e){var M=A(A(e));P["%Error.prototype%"]=M}var x=function e(t){var n;if("%AsyncFunction%"===t)n=y("async function () {}");else if("%GeneratorFunction%"===t)n=y("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=y("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&A&&(n=A(o.prototype))}return P[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=n(606),R=n(1484),j=I.call(Function.call,Array.prototype.concat),D=I.call(Function.apply,Array.prototype.splice),N=I.call(Function.call,String.prototype.replace),L=I.call(Function.call,String.prototype.slice),B=I.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,z=function(e,t){var n,r=e;if(R(k,r)&&(r="%"+(n=k[r])[0]+"%"),R(P,r)){var o=P[r];if(o===T&&(o=x(r)),void 0===o&&!t)throw new f("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new d("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new f('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=L(e,0,1),n=L(e,-1);if("%"===t&&"%"!==n)throw new d("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new d("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,U,(function(e,t,n,o){r[r.length]=n?N(o,F,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=z("%"+r+"%",t),c=o.name,l=o.value,h=!1,m=o.alias;m&&(r=m[0],D(n,j([0,1],m)));for(var i=1,v=!0;i<n.length;i+=1){var y=n[i],S=L(y,0,1),_=L(y,-1);if(('"'===S||"'"===S||"`"===S||'"'===_||"'"===_||"`"===_)&&S!==_)throw new d("property names with quotes must have matching quotes");if("constructor"!==y&&v||(h=!0),R(P,c="%"+(r+="."+y)+"%"))l=P[c];else if(null!=l){if(!(y in l)){if(!t)throw new f("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&i+1>=n.length){var desc=w(l,y);l=(v=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:l[y]}else v=R(l,y),l=l[y];v&&!h&&(P[c]=l)}}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLegacySimulcast=t.getRtpEncodings=void 0,t.getRtpEncodings=function({offerMediaObject:e}){const t=new Set;for(const line of e.ssrcs||[]){const e=line.id;t.add(e)}if(0===t.size)throw new Error("no a=ssrc lines found");const n=new Map;for(const line of e.ssrcGroups||[]){if("FID"!==line.semantics)continue;let[e,r]=line.ssrcs.split(/\s+/);e=Number(e),r=Number(r),t.has(e)&&(t.delete(e),t.delete(r),n.set(e,r))}for(const e of t)n.set(e,null);const r=[];for(const[e,t]of n){const n={ssrc:e};t&&(n.rtx={ssrc:t}),r.push(n)}return r},t.addLegacySimulcast=function({offerMediaObject:e,numStreams:t}){if(t<=1)throw new TypeError("numStreams must be greater than 1");const n=(e.ssrcs||[]).find((line=>"msid"===line.attribute));if(!n)throw new Error("a=ssrc line with msid information not found");const[r,o]=n.value.split(" "),c=n.id;let l;(e.ssrcGroups||[]).some((line=>{if("FID"!==line.semantics)return!1;const e=line.ssrcs.split(/\s+/);return Number(e[0])===c&&(l=Number(e[1]),!0)}));const h=e.ssrcs.find((line=>"cname"===line.attribute));if(!h)throw new Error("a=ssrc line with cname information not found");const d=h.value,f=[],m=[];for(let i=0;i<t;++i)f.push(c+i),l&&m.push(l+i);e.ssrcGroups=[],e.ssrcs=[],e.ssrcGroups.push({semantics:"SIM",ssrcs:f.join(" ")});for(let i=0;i<f.length;++i){const t=f[i];e.ssrcs.push({id:t,attribute:"cname",value:d}),e.ssrcs.push({id:t,attribute:"msid",value:`${r} ${o}`})}for(let i=0;i<m.length;++i){const t=f[i],n=m[i];e.ssrcs.push({id:n,attribute:"cname",value:d}),e.ssrcs.push({id:n,attribute:"msid",value:`${r} ${o}`}),e.ssrcGroups.push({semantics:"FID",ssrcs:`${t} ${n}`})}}},,,function(e,t,n){"use strict";var r=n(198),o=n(146);var c=function(e){return Object(o.a)(e)&&"[object Arguments]"==Object(r.a)(e)},l=Object.prototype,h=l.hasOwnProperty,d=l.propertyIsEnumerable,f=c(function(){return arguments}())?c:function(e){return Object(o.a)(e)&&h.call(e,"callee")&&!d.call(e,"callee")};t.a=f},,,,function(e,t,n){"use strict";var r=n(0),o=(n(6),n(49),n(94),n(66),n(122),n(54),n(24),n(5),n(34),n(50),n(33),n(36),n(1));function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,h=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){h=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}t.a=o.a.extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses:function(){var e=[],t="string"==typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)e.push("rounded-0");else if("string"==typeof t){var n,o=c(t.split(" "));try{for(o.s();!(n=o.n()).done;){var l=n.value;e.push("rounded-".concat(l))}}catch(e){o.e(e)}finally{o.f()}}else t&&e.push("rounded");return e.length>0?Object(r.a)({},e.join(" "),!0):{}}}})},function(e,t,n){"use strict";var r,o=n(0),c=(n(6),n(7),n(43),n(39),n(54),n(28),n(10),n(11),n(9),n(5),n(34),n(51),n(98),n(8),n(450),n(1391),n(186)),l=n(38),h=n(334),d=n(30),f=n(4),m=n(1),v=n(13);function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}!function(e){e.xSmall="12px",e.small="16px",e.default="24px",e.medium="28px",e.large="36px",e.xLarge="40px"}(r||(r={}));var S=Object(v.a)(c.a,l.a,h.a,d.a).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium:function(){return!1},hasClickListener:function(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon:function(){var e="";return this.$slots.default&&(e=this.$slots.default[0].text.trim()),Object(f.D)(this,e)},getSize:function(){var e={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},t=Object(f.z)(e).find((function(t){return e[t]}));return t&&r[t]||Object(f.i)(this.size)},getDefaultData:function(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:w({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData:function(){var e=this.getSize(),t=w(w({},this.getDefaultData()),{},{style:e?{fontSize:e,height:e,width:e}:void 0});return this.applyColors(t),t},applyColors:function(data){data.class=w(w({},data.class),this.themeClasses),this.setTextColor(this.color,data)},renderFontIcon:function(e,t){var n=[],data=this.getDefaultData(),r="material-icons",o=e.indexOf("-"),c=o<=-1;c?n.push(e):function(e){return["fas","far","fal","fab","fad","fak"].some((function(t){return e.includes(t)}))}(r=e.slice(0,o))&&(r=""),data.class[r]=!0,data.class[e]=!c;var l=this.getSize();return l&&(data.style={fontSize:l}),this.applyColors(data),t(this.hasClickListener?"button":this.tag,data,n)},renderSvgIcon:function(e,t){var n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},r=this.getSize();return r&&(n.style={fontSize:r,height:r,width:r}),t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t("svg",n,[t("path",{attrs:{d:e}})])])},renderSvgIconComponent:function(e,t){var data={class:{"v-icon__component":!0}},n=this.getSize();n&&(data.style={fontSize:n,height:n,width:n}),this.applyColors(data);var component=e.component;return data.props=e.props,data.nativeOn=data.on,t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t(component,data)])}},render:function(e){var t=this.getIcon();return"string"==typeof t?function(e){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4}(t)?this.renderSvgIcon(t,e):this.renderFontIcon(t,e):this.renderSvgIconComponent(t,e)}});t.a=m.a.extend({name:"v-icon",$_wrapperFor:S,functional:!0,render:function(e,t){var data=t.data,n=t.children,r="";return data.domProps&&(r=data.domProps.textContent||data.domProps.innerHTML||r,delete data.domProps.textContent,delete data.domProps.innerHTML),e(S,data,r?[r]:n)}})},function(e,t,n){"use strict";var r=n(0),o=n(1);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"change";return o.a.extend({name:"proxyable",model:{prop:e,event:t},props:Object(r.a)({},e,{required:!1}),data:function(){return{internalLazyValue:this[e]}},computed:{internalValue:{get:function(){return this.internalLazyValue},set:function(e){e!==this.internalLazyValue&&(this.internalLazyValue=e,this.$emit(t,e))}}},watch:Object(r.a)({},e,(function(e){this.internalLazyValue=e}))})}();t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(220),o=n(13);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(o.a)(Object(r.b)(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty:function(){return e}},watch:{app:function(e,t){t?this.removeApplication(!0):this.callUpdate()},applicationProperty:function(e,t){this.$vuetify.application.unregister(this._uid,t)}},activated:function(){this.callUpdate()},created:function(){for(var i=0,e=t.length;i<e;i++)this.$watch(t[i],this.callUpdate);this.callUpdate()},mounted:function(){this.callUpdate()},deactivated:function(){this.removeApplication()},destroyed:function(){this.removeApplication()},methods:{callUpdate:function(){this.app&&this.$vuetify.application.register(this._uid,this.applicationProperty,this.updateApplication())},removeApplication:function(){(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.app)&&this.$vuetify.application.unregister(this._uid,this.applicationProperty)},updateApplication:function(){return 0}}})}},function(e,t,n){"use strict";var r=n(1),o=n(4);t.a=r.a.extend({name:"comparable",props:{valueComparator:{type:Function,default:o.l}}})},function(e,t,n){"use strict";n(98);var r=n(1);t.a=r.a.extend({name:"v-list-item-icon",functional:!0,render:function(e,t){var data=t.data,n=t.children;return data.staticClass="v-list-item__icon ".concat(data.staticClass||"").trim(),e("div",data,n)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9);var r=n(0),o=(n(5),n(8),n(1434),n(90)),c=n(1),l=n(364),h=n(38),d=n(30),f=n(75),m=n(4);function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=c.a.extend({name:"v-simple-checkbox",functional:!0,directives:{Ripple:o.a},props:y(y(y({},h.a.options.props),d.a.options.props),{},{disabled:Boolean,ripple:{type:Boolean,default:!0},value:Boolean,indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},onIcon:{type:String,default:"$checkboxOn"},offIcon:{type:String,default:"$checkboxOff"}}),render:function(e,t){var n=t.props,data=t.data,r=(t.listeners,[]),c=n.offIcon;if(n.indeterminate?c=n.indeterminateIcon:n.value&&(c=n.onIcon),r.push(e(l.a,h.a.options.methods.setTextColor(n.value&&n.color,{props:{disabled:n.disabled,dark:n.dark,light:n.light}}),c)),n.ripple&&!n.disabled){var d=e("div",h.a.options.methods.setTextColor(n.color,{staticClass:"v-input--selection-controls__ripple",directives:[{def:o.a,name:"ripple",value:{center:!0}}]}));r.push(d)}return e("div",Object(f.a)(data,{class:{"v-simple-checkbox":!0,"v-simple-checkbox--disabled":n.disabled},on:{click:function(e){e.stopPropagation(),data.on&&data.on.input&&!n.disabled&&Object(m.I)(data.on.input).forEach((function(e){return e(!n.value)}))}}}),[e("div",{staticClass:"v-input--selection-controls__input"},r)])}})},function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){"use strict";t.a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";var r=/^(?:0|[1-9]\d*)$/;t.a=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){"use strict";var r=n(528),o=n(279);t.a=function(object,path){for(var e=0,t=(path=Object(r.a)(path,object)).length;null!=object&&e<t;)object=object[Object(o.a)(path[e++])];return e&&e==t?object:void 0}},function(e,t,n){"use strict";var r=n(89),o=n(172),c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;t.a=function(e,object){if(Object(r.a)(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Object(o.a)(e))||(l.test(e)||!c.test(e)||null!=object&&e in Object(object))}},,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(1421),n(38)),c=n(30),l=n(13),h=n(4),d=n(75);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var v=Object(l.a)(c.a).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render:function(e,t){var n=t.children,r=t.listeners,l=t.props,data=t.data,f=Object(d.a)({staticClass:"v-label",class:m({"v-label--active":l.value,"v-label--is-disabled":l.disabled},Object(c.b)(t)),attrs:{for:l.for,"aria-hidden":!l.for},on:r,style:{left:Object(h.i)(l.left),right:Object(h.i)(l.right),position:l.absolute?"absolute":"relative"},ref:"label"},data);return e("label",o.a.options.methods.setTextColor(l.focused&&l.color,f),n)}});t.a=v},function(e,t,n){"use strict";var r=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,c=[];++n<r;){var l=e[n];t(l,n,e)&&(c[o++]=l)}return c},o=n(517),c=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols,h=l?function(object){return null==object?[]:(object=Object(object),r(l(object),(function(symbol){return c.call(object,symbol)})))}:o.a;t.a=h},function(e,t,n){"use strict";function r(e){if("function"!=typeof e.getRootNode){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}var t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(160),o=function(){try{var e=Object(r.a)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.a=o},function(e,t,n){"use strict";var r=n(102).a.Uint8Array;t.a=r},,function(e,t,n){"use strict";var r=n(433),o=1/0;t.a=function(e){return e?(e=Object(r.a)(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return O}));var r=n(97),o=n(643),c=n(644),l=n(645),h=n(640),d=n(641),f=n(642);var m=n(1026),v=n(78);var y,w=[{platform:r.c.Expo,detectionMethod:m.a},{platform:r.c.ReactNative,detectionMethod:function(){return"undefined"!=typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:r.c.NextJs,detectionMethod:h.b},{platform:r.c.Nuxt,detectionMethod:d.b},{platform:r.c.Angular,detectionMethod:f.b},{platform:r.c.React,detectionMethod:o.b},{platform:r.c.VueJs,detectionMethod:c.b},{platform:r.c.Svelte,detectionMethod:l.b},{platform:r.c.WebUnknown,detectionMethod:function(){return Object(v.e)()}},{platform:r.c.NextJsSSR,detectionMethod:h.a},{platform:r.c.NuxtSSR,detectionMethod:d.a},{platform:r.c.ReactSSR,detectionMethod:o.a},{platform:r.c.VueJsSSR,detectionMethod:c.a},{platform:r.c.AngularSSR,detectionMethod:f.a},{platform:r.c.SvelteSSR,detectionMethod:l.a}];var S=[],_=!1,C=function(){if(!y){if(y=(null===(e=w.find((function(e){return e.detectionMethod()})))||void 0===e?void 0:e.platform)||r.c.ServerSideUnknown,_)for(;S.length;)S.pop()();else S.forEach((function(e){return e()}));A(r.c.ServerSideUnknown,10),A(r.c.WebUnknown,10)}var e;return y},O=function(e){_||S.push(e)};function A(e,t){y!==e||_||setTimeout((function(){y=void 0,_=!0,setTimeout(C,1e3)}),t)}},function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var h=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},function(e,t,n){"use strict";n(6),n(10),n(11),n(9),n(8);var r=n(0),o=(n(7),n(43),n(105),n(39),n(22),n(5),n(51),n(98),n(907),n(91)),c=n(138),l=n(75),h=n(4);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var m=f(f({},o.b),{},{offsetY:!0,offsetOverflow:!0,transition:!1});t.a=o.a.extend({name:"v-autocomplete",props:{autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:function(e,t,n){return n.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},hideNoData:Boolean,menuProps:{type:o.a.options.props.menuProps.type,default:function(){return m}},noFilter:Boolean,searchInput:{type:String}},data:function(){return{lazySearch:this.searchInput}},computed:{classes:function(){return f(f({},o.a.options.computed.classes.call(this)),{},{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var e=this;return this.selectedItems.map((function(t){return e.getValue(t)}))},hasDisplayedItems:function(){var e=this;return this.hideSelected?this.filteredItems.some((function(t){return!e.hasItem(t)})):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:String(this.getText(this.selectedItem)).length},filteredItems:function(){var e=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter((function(t){var n=Object(h.s)(t,e.itemText),text=null!=n?String(n):"";return e.filter(t,String(e.internalSearch),text)}))},internalSearch:{get:function(){return this.lazySearch},set:function(e){this.lazySearch!==e&&(this.lazySearch=e,this.$emit("update:search-input",e))}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var e=o.a.options.computed.$_menuProps.call(this);return e.contentClass="v-autocomplete__content ".concat(e.contentClass||"").trim(),f(f({},m),e)},searchIsDirty:function(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem:function(){var e=this;return this.multiple?null:this.selectedItems.find((function(i){return e.valueComparator(e.getValue(i),e.getValue(e.internalValue))}))},listData:function(){var data=o.a.options.computed.listData.call(this);return data.props=f(f({},data.props),{},{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),data}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused:function(e){e?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.blur(),this.updateSelf())},isMenuActive:function(e){!e&&this.hasSlot&&(this.lazySearch=null)},items:function(e,t){t&&t.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!e.length||this.activateMenu()},searchInput:function(e){this.lazySearch=e},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created:function(){this.setSearch()},destroyed:function(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged:function(e,t){var n=this;if(e!==t){if(!this.autoSelectFirst){var r=t[this.$refs.menu.listIndex];r?this.setMenuIndex(e.findIndex((function(i){return i===r}))):this.setMenuIndex(-1),this.$emit("update:list-index",this.$refs.menu.listIndex)}this.$nextTick((function(){n.internalSearch&&(1===e.length||n.autoSelectFirst)&&(n.$refs.menu.getTiles(),n.autoSelectFirst&&e.length&&(n.setMenuIndex(0),n.$emit("update:list-index",n.$refs.menu.listIndex)))}))}},onInternalSearchChanged:function(){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(e){this.searchIsDirty||(this.multiple&&e===h.y.left?-1===this.selectedIndex?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&e===h.y.right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:e!==h.y.backspace&&e!==h.y.delete||this.deleteCurrentItem())},deleteCurrentItem:function(){var e=this.selectedIndex,t=this.selectedItems[e];if(this.isInteractive&&!this.getDisabled(t)){var n=this.selectedItems.length-1;if(-1!==this.selectedIndex||0===n){var r=e!==this.selectedItems.length-1?e:e-1;this.selectedItems[r]?this.selectItem(t):this.setValue(this.multiple?[]:null),this.selectedIndex=r}else this.selectedIndex=n}},clearableCallback:function(){this.internalSearch=null,o.a.options.methods.clearableCallback.call(this)},genInput:function(){var input=c.a.options.methods.genInput.call(this);return input.data=Object(l.a)(input.data,{attrs:{"aria-activedescendant":Object(h.q)(this.$refs.menu,"activeTile.id"),autocomplete:Object(h.q)(input.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),input},genInputSlot:function(){var slot=o.a.options.methods.genInputSlot.call(this);return slot.data.attrs.role="combobox",slot},genSelections:function(){return this.hasSlot||this.multiple?o.a.options.methods.genSelections.call(this):[]},onClick:function(e){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(e.target)||this.activateMenu())},onInput:function(e){if(!(this.selectedIndex>-1)&&e.target){var t=e.target,n=t.value;t.value&&this.activateMenu(),this.multiple||""!==n||this.deleteCurrentItem(),this.internalSearch=n,this.badInput=t.validity&&t.validity.badInput}},onKeyDown:function(e){var t=e.keyCode;!e.ctrlKey&&[h.y.home,h.y.end].includes(t)||o.a.options.methods.onKeyDown.call(this,e),this.changeSelectedIndex(t)},onSpaceDown:function(e){},onTabDown:function(e){o.a.options.methods.onTabDown.call(this,e),this.updateSelf()},onUpDown:function(e){e.preventDefault(),this.activateMenu()},selectItem:function(e){o.a.options.methods.selectItem.call(this,e),this.setSearch()},setSelectedItems:function(){o.a.options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var e=this;this.$nextTick((function(){e.multiple&&e.internalSearch&&e.isMenuActive||(e.internalSearch=!e.selectedItems.length||e.multiple||e.hasSlot?null:e.getText(e.selectedItem))}))},updateSelf:function(){(this.searchIsDirty||this.internalValue)&&(this.multiple||this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(e){return this.selectedValues.indexOf(this.getValue(e))>-1},onCopy:function(e){var t,n;if(-1!==this.selectedIndex){var r=this.selectedItems[this.selectedIndex],o=this.getText(r);null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",o),null===(n=e.clipboardData)||void 0===n||n.setData("text/vnd.vuetify.autocomplete.item+plain",o),e.preventDefault()}}}})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,o=function(e){var s="function"==typeof Symbol&&Symbol.iterator,t=s&&e[s],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},l=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},h={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};!function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE"}(r||(r={}));var d=function(){function e(e,t){void 0===t&&(t=r.WARN),this.name=e,this.level=t,this._pluggables=[]}return e.prototype._padding=function(e){return e<10?"0"+e:""+e},e.prototype._ts=function(){var dt=new Date;return[this._padding(dt.getMinutes()),this._padding(dt.getSeconds())].join(":")+"."+dt.getMilliseconds()},e.prototype.configure=function(e){return e?(this._config=e,this._config):this._config},e.prototype._log=function(t){for(var n,c,l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];var f=this.level;if(e.LOG_LEVEL&&(f=e.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(f=window.LOG_LEVEL),h[t]>=h[f]){var m=console.log.bind(console);t===r.ERROR&&console.error&&(m=console.error.bind(console)),t===r.WARN&&console.warn&&(m=console.warn.bind(console));var v="[".concat(t,"] ").concat(this._ts()," ").concat(this.name),y="";if(1===l.length&&"string"==typeof l[0])m(y="".concat(v," - ").concat(l[0]));else if(1===l.length)y="".concat(v," ").concat(l[0]),m(v,l[0]);else if("string"==typeof l[0]){var w=l.slice(1);1===w.length&&(w=w[0]),y="".concat(v," - ").concat(l[0]," ").concat(w),m("".concat(v," - ").concat(l[0]),w)}else y="".concat(v," ").concat(l),m(v,l);try{for(var S=o(this._pluggables),_=S.next();!_.done;_=S.next()){var C=_.value,O={message:y,timestamp:Date.now()};C.pushLogs([O])}}catch(e){n={error:e}}finally{try{_&&!_.done&&(c=S.return)&&c.call(S)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,l([r.INFO],c(e),!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,l([r.INFO],c(e),!1))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,l([r.WARN],c(e),!1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,l([r.ERROR],c(e),!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,l([r.DEBUG],c(e),!1))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,l([r.VERBOSE],c(e),!1))},e.prototype.addPluggable=function(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))},e.prototype.listPluggables=function(){return this._pluggables},e.LOG_LEVEL=null,e}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return J})),n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return X})),n.d(t,"d",(function(){return Z}));var r=n(523),o=n.n(r),c=n(1017),l=n.n(c);function h(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),i=n.length-1;i>=0;--i)if("timeZoneName"===n[i].type)return n[i].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}function d(e,t){var n=function(e){if(!m[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;m[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return m[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=f[n[i].type];o>=0&&(r[o]=parseInt(n[i].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};var m={};function v(e,t,n,r,o,c,l){var h=new Date(0);return h.setUTCFullYear(e,t,n),h.setUTCHours(r,o,c,l),h}var y=36e5,w=6e4,S={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function _(e,t,n){var r,o,c;if(!e)return 0;if(r=S.timezoneZ.exec(e))return 0;if(r=S.timezoneHH.exec(e))return O(c=parseInt(r[1],10))?-c*y:NaN;if(r=S.timezoneHHMM.exec(e)){c=parseInt(r[1],10);var l=parseInt(r[2],10);return O(c,l)?(o=Math.abs(c)*y+l*w,c>0?-o:o):NaN}if(function(e){if(A[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),A[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var h=n?t:function(e){return v(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),d=C(h,e),f=n?d:function(e,t,n){var r=e.getTime(),o=r-t,c=C(new Date(o),n);if(t===c)return t;o-=c-t;var l=C(new Date(o),n);if(c===l)return c;return Math.max(c,l)}(t,d,e);return-f}return NaN}function C(e,t){var n=d(e,t),r=v(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),c=o%1e3;return r-(o-=c>=0?c:1e3+c)}function O(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var A={};function T(e,t){var n=e?_(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function E(e,t){for(var n=e<0?"-":"",output=Math.abs(e).toString();output.length<t;)output="0"+output;return n+output}function P(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+E(Math.floor(o/60),2)+n+E(Math.floor(o%60),2)}function M(e,t){return e%60==0?(e>0?"-":"+")+E(Math.abs(e)/60,2):P(e,t)}var x={X:function(e,t,n,r){var o=T(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return M(o);case"XXXX":case"XX":return P(o);default:return P(o,":")}},x:function(e,t,n,r){var o=T(r.timeZone,r._originalDate||e);switch(t){case"x":return M(o);case"xxxx":case"xx":return P(o);default:return P(o,":")}},O:function(e,t,n,r){var o=T(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),c=r%60;if(0===c)return n+String(o);var l=t||"";return n+String(o)+l+E(c,2)}(o,":");default:return"GMT"+P(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return h("short",o,r);default:return h("long",o,r)}}},k=n(272),I=n.n(k),R=n(524),j=n.n(R),D=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,N=36e5,L=6e4,B=2,U={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:D};function F(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?B:I()(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=function(e){var t,n={},r=U.dateTimePattern.exec(e);r?(n.date=r[1],t=r[3]):(r=U.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e);if(t){var o=U.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}(e),c=function(e,t){var n,r=U.YYY[t],o=U.YYYYY[t];if(n=U.YYYY.exec(e)||o.exec(e)){var c=n[1];return{year:parseInt(c,10),restDateString:e.slice(c.length)}}if(n=U.YY.exec(e)||r.exec(e)){var l=n[1];return{year:100*parseInt(l,10),restDateString:e.slice(l.length)}}return{year:null}}(o.date,r),l=c.year,h=function(e,t){if(null===t)return null;var n,r,o,c;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=U.MM.exec(e))return r=new Date(0),V(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=U.DDD.exec(e)){r=new Date(0);var l=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=G(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,l)?(r.setUTCFullYear(t,0,l),r):new Date(NaN)}if(n=U.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var h=parseInt(n[2],10);return V(t,o,h)?(r.setUTCFullYear(t,o,h),r):new Date(NaN)}if(n=U.Www.exec(e))return W(t,c=parseInt(n[1],10)-1)?z(t,c):new Date(NaN);if(n=U.WwwD.exec(e)){c=parseInt(n[1],10)-1;var d=parseInt(n[2],10)-1;return W(t,c,d)?z(t,c,d):new Date(NaN)}return null}(c.restDateString,l);if(isNaN(h))return new Date(NaN);if(h){var d,f=h.getTime(),time=0;if(o.time&&(time=function(e){var t,n,r;if(t=U.HH.exec(e))return K(n=parseFloat(t[1].replace(",",".")))?n%24*N:NaN;if(t=U.HHMM.exec(e))return K(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*N+r*L:NaN;if(t=U.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return K(n,r,o)?n%24*N+r*L+1e3*o:NaN}return null}(o.time),isNaN(time)))return new Date(NaN);if(o.timeZone||n.timeZone){if(d=_(o.timeZone||n.timeZone,new Date(f+time)),isNaN(d))return new Date(NaN)}else d=j()(new Date(f+time)),d=j()(new Date(f+time+d));return new Date(f+time+d)}return new Date(NaN)}function z(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var $=[31,28,31,30,31,30,31,31,30,31,30,31],H=[31,29,31,30,31,30,31,31,30,31,30,31];function G(e){return e%400==0||e%4==0&&e%100!=0}function V(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=G(e);if(r&&n>H[t])return!1;if(!r&&n>$[t])return!1}return!0}function W(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function K(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var Y=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function X(e,t,n){var r=F(e,n),o=_(t,r,!0),c=new Date(r.getTime()-o),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}function J(e,t,n,r){var c=o()(r);return c.timeZone=t,function(e,t,n){var r=String(t),o=n||{},c=r.match(Y);if(c){var h=F(e,o);r=c.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],c=e.replace(t,"'"+x[t[0]](h,t,null,o)+"'");return r?c.substring(0,n-1)+c.substring(n+1):c}),r)}return l()(e,r,o)}(X(e,t),n,c)}function Z(e,t,n){if("string"==typeof e&&!e.match(D)){var r=o()(n);return r.timeZone=t,F(e,r)}var c=F(e,n),l=v(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()).getTime(),h=_(t,new Date(l));return new Date(l+h)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(0),o=(n(12),n(6),n(49),n(94),n(7),n(66),n(39),n(24),n(10),n(11),n(9),n(5),n(34),n(50),n(33),n(8),n(36),n(54),n(1205),n(1576),n(23)),c=n(117),l=n(103),h=n(285),d=n(175),f=n(218),m=n(13),v=n(4);function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(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 w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function S(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function _(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function C(e){var t=Math.abs(e);return Math.sign(e)*(t/((1/.501-2)*(1-t)+1))}function O(e,t,n,r){var o=e.clientWidth,c=n?t.content-e.offsetLeft-o:e.offsetLeft;n&&(r=-r);var l=t.wrapper+r,h=o+c,d=.4*o;return c<=r?r=Math.max(c-d,0):l<=h&&(r=Math.min(r-(l-h-d),t.content-t.wrapper)),n?-r:r}var A=Object(m.a)(l.a,h.a).extend({name:"base-slide-group",directives:{Resize:d.a,Touch:f.a},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:function(e){return"boolean"==typeof e||["always","never","desktop","mobile"].includes(e)}}},data:function(){return{isOverflowing:!1,resizeTimeout:0,startX:0,isSwipingHorizontal:!1,isSwiping:!1,scrollOffset:0,widths:{content:0,wrapper:0}}},computed:{canTouch:function(){return"undefined"!=typeof window},__cachedNext:function(){return this.genTransition("next")},__cachedPrev:function(){return this.genTransition("prev")},classes:function(){return _(_({},l.a.options.computed.classes.call(this)),{},{"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing})},hasAffixes:function(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing||Math.abs(this.scrollOffset)>0;case"mobile":return this.isMobile||this.isOverflowing||Math.abs(this.scrollOffset)>0;case"never":return!1;default:return!this.isMobile&&(this.isOverflowing||Math.abs(this.scrollOffset)>0)}},hasNext:function(){if(!this.hasAffixes)return!1;var e=this.widths,content=e.content,t=e.wrapper;return content>Math.abs(this.scrollOffset)+t},hasPrev:function(){return this.hasAffixes&&0!==this.scrollOffset}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset:function(e){this.$vuetify.rtl&&(e=-e);var t=e<=0?C(-e):e>this.widths.content-this.widths.wrapper?-(this.widths.content-this.widths.wrapper)+C(this.widths.content-this.widths.wrapper-e):-e;this.$vuetify.rtl&&(t=-t),this.$refs.content.style.transform="translateX(".concat(t,"px)")}},mounted:function(){var e=this;if("undefined"!=typeof ResizeObserver){var t=new ResizeObserver((function(){e.onResize()}));t.observe(this.$el),t.observe(this.$refs.content),this.$on("hook:destroyed",(function(){t.disconnect()}))}else{var n=0;this.$on("hook:beforeUpdate",(function(){var t;n=((null===(t=e.$refs.content)||void 0===t?void 0:t.children)||[]).length})),this.$on("hook:updated",(function(){var t;n!==((null===(t=e.$refs.content)||void 0===t?void 0:t.children)||[]).length&&e.setWidths()}))}},methods:{onScroll:function(){this.$refs.wrapper.scrollLeft=0},onFocusin:function(e){if(this.isOverflowing){var t,n=y(Object(v.h)(e));try{for(n.s();!(t=n.n()).done;){var r,o=t.value,c=y(this.items);try{for(c.s();!(r=c.n()).done;){var l=r.value;if(l.$el===o)return void(this.scrollOffset=O(l.$el,this.widths,this.$vuetify.rtl,this.scrollOffset))}}catch(e){c.e(e)}finally{c.f()}}}catch(e){n.e(e)}finally{n.f()}}},genNext:function(){var e=this,slot=this.$scopedSlots.next?this.$scopedSlots.next({}):this.$slots.next||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:function(){return e.onAffixClick("next")}},key:"next"},[slot])},genContent:function(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content",on:{focusin:this.onFocusin}},this.$slots.default)},genData:function(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon:function(e){var t=e;this.$vuetify.rtl&&"prev"===e?t="next":this.$vuetify.rtl&&"next"===e&&(t="prev");var n="".concat(e[0].toUpperCase()).concat(e.slice(1)),r=this["has".concat(n)];return this.showArrows||r?this.$createElement(o.a,{props:{disabled:!r}},this["".concat(t,"Icon")]):null},genPrev:function(){var e=this,slot=this.$scopedSlots.prev?this.$scopedSlots.prev({}):this.$slots.prev||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:function(){return e.onAffixClick("prev")}},key:"prev"},[slot])},genTransition:function(e){return this.$createElement(c.d,[this.genIcon(e)])},genWrapper:function(){var e=this;return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:function(t){return e.overflowCheck(t,e.onTouchStart)},move:function(t){return e.overflowCheck(t,e.onTouchMove)},end:function(t){return e.overflowCheck(t,e.onTouchEnd)}}}],ref:"wrapper",on:{scroll:this.onScroll}},[this.genContent()])},calculateNewOffset:function(e,t,n,r){var o=n?-1:1,c=o*r+("prev"===e?-1:1)*t.wrapper;return o*Math.max(Math.min(c,t.content-t.wrapper),0)},onAffixClick:function(e){this.$emit("click:".concat(e)),this.scrollTo(e)},onResize:function(){this._isDestroyed||this.setWidths()},onTouchStart:function(e){var content=this.$refs.content;this.startX=this.scrollOffset+e.touchstartX,content.style.setProperty("transition","none"),content.style.setProperty("willChange","transform")},onTouchMove:function(e){if(this.canTouch){if(!this.isSwiping){var t=e.touchmoveX-e.touchstartX,n=e.touchmoveY-e.touchstartY;this.isSwipingHorizontal=Math.abs(t)>Math.abs(n),this.isSwiping=!0}this.isSwipingHorizontal&&(this.scrollOffset=this.startX-e.touchmoveX,document.documentElement.style.overflowY="hidden")}},onTouchEnd:function(){if(this.canTouch){var e=this.$refs,content=e.content,t=e.wrapper,n=content.clientWidth-t.clientWidth;content.style.setProperty("transition",null),content.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-n&&(this.scrollOffset=-n):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=n&&(this.scrollOffset=n),this.isSwiping=!1,document.documentElement.style.removeProperty("overflow-y")}},overflowCheck:function(e,t){e.stopPropagation(),this.isOverflowing&&t(e)},scrollIntoView:function(){if(!this.selectedItem&&this.items.length){var e=this.items[this.items.length-1].$el.getBoundingClientRect(),t=this.$refs.wrapper.getBoundingClientRect();(this.$vuetify.rtl&&t.right<e.right||!this.$vuetify.rtl&&t.left>e.left)&&this.scrollTo("prev")}this.selectedItem&&(0===this.selectedIndex||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=function(e,t,n){var r=e.offsetLeft,o=e.clientWidth;if(n){var c=t.content-r-o/2-t.wrapper/2;return-Math.min(t.content-t.wrapper,Math.max(0,c))}var l=r+o/2-t.wrapper/2;return Math.min(t.content-t.wrapper,Math.max(0,l))}(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=O(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},scrollTo:function(e){this.scrollOffset=this.calculateNewOffset(e,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths:function(){var e=this;window.requestAnimationFrame((function(){if(!e._isDestroyed){var t=e.$refs,content=t.content,n=t.wrapper;e.widths={content:content?content.clientWidth:0,wrapper:n?n.clientWidth:0},e.isOverflowing=e.widths.wrapper+1<e.widths.content,e.scrollIntoView()}}))}},render:function(e){return e("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}});A.extend({name:"v-slide-group",provide:function(){return{slideGroup:this}}})},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(47),o=n(578),c=n(581),l=n(582),h=n(269);function d(e){h.call(this,"digest"),this._hash=e}r(d,h),d.prototype._update=function(data){this._hash.update(data)},d.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new c:new d(l(e))}},function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(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]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(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=n(46).Buffer.isBuffer},function(e,t,n){(function(t){e.exports=function(a,b){for(var e=Math.min(a.length,b.length),n=new t(e),i=0;i<e;++i)n[i]=a[i]^b[i];return n}}).call(this,n(46).Buffer)},function(e,t,n){"use strict";var r=n(213),o=n(178);function c(){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=c,c.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},c.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},c.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){"use strict";const r=n(47),o=n(597).Reporter,c=n(595).Buffer;function l(base,e){o.call(this,e),c.isBuffer(base)?(this.base=base,this.offset=0,this.length=base.length):this.error("Input not Buffer")}function h(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return h.isEncoderBuffer(e)||(e=new h(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=c.byteLength(e);else{if(!c.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(l,o),t.DecoderBuffer=l,l.isDecoderBuffer=function(data){if(data instanceof l)return!0;return"object"==typeof data&&c.isBuffer(data.base)&&"DecoderBuffer"===data.constructor.name&&"number"==typeof data.offset&&"number"==typeof data.length&&"function"==typeof data.save&&"function"==typeof data.restore&&"function"==typeof data.isEmpty&&"function"==typeof data.readUInt8&&"function"==typeof data.skip&&"function"==typeof data.raw},l.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},l.prototype.restore=function(e){const t=new l(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},l.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new l(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},l.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=h,h.isEncoderBuffer=function(data){if(data instanceof h)return!0;return"object"==typeof data&&"EncoderBuffer"===data.constructor.name&&"number"==typeof data.length&&"function"==typeof data.join},h.prototype.join=function(e,t){return e||(e=c.alloc(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):c.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},,,,,,,function(e,t,n){"use strict";n(12),n(28),n(1379);var r=n(233),o=n(38),c=n(4);t.a=o.a.extend({name:"v-progress-circular",directives:{intersect:r.a},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:function(){return{radius:20,isVisible:!0}},computed:{calculatedSize:function(){return Number(this.size)+(this.button?8:0)},circumference:function(){return 2*Math.PI*this.radius},classes:function(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray:function(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset:function(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth:function(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles:function(){return{height:Object(c.i)(this.calculatedSize),width:Object(c.i)(this.calculatedSize)}},svgStyles:function(){return{transform:"rotate(".concat(Number(this.rotate),"deg)")}},viewBoxSize:function(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle:function(e,t){return this.$createElement("circle",{class:"v-progress-circular__".concat(e),attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":t}})},genSvg:function(){var e=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"".concat(this.viewBoxSize," ").concat(this.viewBoxSize," ").concat(2*this.viewBoxSize," ").concat(2*this.viewBoxSize)}},e)},genInfo:function(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},this.$slots.default)},onObserve:function(e,t,n){this.isVisible=n}},render:function(e){return e("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(8);var r=n(35),o=n(21),c=n(0),l=(n(39),n(28),n(5),n(418),n(1389),n(163)),h=n(173),d=n(159),f=n(110),m=n(353),v=n(220),y=n(131),w=n(334),S=n(13),_=n(26);function C(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?C(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):C(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var A=Object(S.a)(l.a,y.a,v.a,w.a,Object(d.a)("btnToggle"),Object(f.b)("inputValue"));t.a=A.extend().extend({name:"v-btn",props:{activeClass:{type:String,default:function(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:function(){return{proxyClass:"v-btn--active"}},computed:{classes:function(){return O(O(O(O(O({"v-btn":!0},y.a.options.computed.classes.call(this)),{},{"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top},this.themeClasses),this.groupClasses),this.elevationClasses),this.sizeableClasses)},computedElevation:function(){if(!this.disabled)return m.a.options.computed.computedElevation.call(this)},computedRipple:function(){var e,t=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==(e=this.ripple)&&void 0!==e?e:t)},hasBg:function(){return!(this.text||this.plain||this.outlined||this.icon)},isElevated:function(){return Boolean(!(this.icon||this.text||this.outlined||this.depressed||this.disabled||this.plain||!(null==this.elevation||Number(this.elevation)>0)))},isRound:function(){return Boolean(this.icon||this.fab)},styles:function(){return O({},this.measurableStyles)}},created:function(){var e=this;[["flat","text"],["outline","outlined"],["round","rounded"]].forEach((function(t){var n=Object(o.a)(t,2),r=n[0],c=n[1];e.$attrs.hasOwnProperty(r)&&Object(_.a)(r,c,e)}))},methods:{click:function(e){!this.retainFocusOnClick&&!this.fab&&e.detail&&this.$el.blur(),this.$emit("click",e),this.btnToggle&&this.toggle()},genContent:function(){return this.$createElement("span",{staticClass:"v-btn__content"},this.$slots.default)},genLoader:function(){return this.$createElement("span",{class:"v-btn__loader"},this.$slots.loader||[this.$createElement(h.a,{props:{indeterminate:!0,size:23,width:2}})])}},render:function(e){var t=[this.genContent(),this.loading&&this.genLoader()],n=this.generateRouteLink(),o=n.tag,data=n.data,c=this.hasBg?this.setBackgroundColor:this.setTextColor;return"button"===o&&(data.attrs.type=this.type,data.attrs.disabled=this.disabled),data.attrs.value=["string","number"].includes(Object(r.a)(this.value))?this.value:JSON.stringify(this.value),e(o,this.disabled?data:c(this.color,data),t)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1415),n(38)),c=n(131),l=n(159),h=n(30),d=n(110),f=n(90),m=n(4),v=n(26),y=n(13);function w(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function S(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?w(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):w(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var _=Object(y.a)(o.a,c.a,h.a,Object(l.a)("listItemGroup"),Object(d.b)("inputValue"));t.a=_.extend().extend({name:"v-list-item",directives:{Ripple:f.a},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default:function(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:function(){return{proxyClass:"v-list-item--active"}},computed:{classes:function(){return S(S({"v-list-item":!0},c.a.options.computed.classes.call(this)),{},{"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine},this.themeClasses)},isClickable:function(){return Boolean(c.a.options.computed.isClickable.call(this)||this.listItemGroup)}},created:function(){this.$attrs.hasOwnProperty("avatar")&&Object(v.e)("avatar",this)},methods:{click:function(e){e.detail&&this.$el.blur(),this.$emit("click",e),this.to||this.toggle()},genAttrs:function(){var e=S({"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1},this.$attrs);return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(e.role="option",e["aria-selected"]=String(this.isActive)):this.isInMenu?(e.role=this.isClickable?"menuitem":void 0,e.id=e.id||"list-item-".concat(this._uid)):this.isInList&&(e.role="listitem")),e},toggle:function(){this.to&&void 0===this.inputValue&&(this.isActive=!this.isActive),this.$emit("change")}},render:function(e){var t=this,n=this.generateRouteLink(),r=n.tag,data=n.data;data.attrs=S(S({},data.attrs),this.genAttrs()),data[this.to?"nativeOn":"on"]=S(S({},data[this.to?"nativeOn":"on"]),{},{keydown:function(e){t.disabled||(e.keyCode===m.y.enter&&t.click(e),t.$emit("keydown",e))}}),this.inactive&&(r="div"),this.inactive&&this.to&&(data.on=data.nativeOn,delete data.nativeOn);var o=this.$scopedSlots.default?this.$scopedSlots.default({active:this.isActive,toggle:this.toggle}):this.$slots.default;return e(r,this.isActive?this.setTextColor(this.color,data):data,o)}})},,function(e,t,n){"use strict";var r={};r.auth=n(157),r.auth=r.auth.default||r.auth,r["fetch-data"]=n(1254),r["fetch-data"]=r["fetch-data"].default||r["fetch-data"],r["voila.live"]=n(1376),r["voila.live"]=r["voila.live"].default||r["voila.live"],t.a=r},,,,function(e,t,n){"use strict";var r=n(0),o=(n(28),n(6),n(7),n(10),n(11),n(9),n(5),n(8),n(507)),c=n(220),l=n(234),h=n(508),d=n(13),f=n(4);function m(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var y=Object(d.a)(o.a,Object(c.b)(["top","right","bottom","left","absolute"]),l.a,h.a);t.a=y.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:function(){return{activatorNode:[],absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},relativeYOffset:0,hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}},computed:{computedLeft:function(){var a=this.dimensions.activator,e=this.dimensions.content,t=(!1!==this.attach?a.offsetLeft:a.left)||0,n=Math.max(a.width,e.width),r=0;if(r+=t,(this.left||this.$vuetify.rtl&&!this.right)&&(r-=n-a.width),this.offsetX){var o=isNaN(Number(this.maxWidth))?a.width:Math.min(a.width,Number(this.maxWidth));r+=this.left?-o:a.width}return this.nudgeLeft&&(r-=parseInt(this.nudgeLeft)),this.nudgeRight&&(r+=parseInt(this.nudgeRight)),r},computedTop:function(){var a=this.dimensions.activator,e=this.dimensions.content,t=0;return this.top&&(t+=a.height-e.height),!1!==this.attach?t+=a.offsetTop:t+=a.top+this.pageYOffset,this.offsetY&&(t+=this.top?-a.height:a.height),this.nudgeTop&&(t-=parseInt(this.nudgeTop)),this.nudgeBottom&&(t+=parseInt(this.nudgeBottom)),t},hasActivator:function(){return!!(this.$slots.activator||this.$scopedSlots.activator||this.activator||this.inputActivator)},absoluteYOffset:function(){return this.pageYOffset-this.relativeYOffset}},watch:{disabled:function(e){e&&this.callDeactivate()},isActive:function(e){this.disabled||(e?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount:function(){this.hasWindow="undefined"!=typeof window,this.hasWindow&&window.addEventListener("resize",this.updateDimensions,!1)},beforeDestroy:function(){this.hasWindow&&window.removeEventListener("resize",this.updateDimensions,!1)},methods:{absolutePosition:function(){return{offsetTop:this.positionY||this.absoluteY,offsetLeft:this.positionX||this.absoluteX,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate:function(){},calcLeft:function(e){return Object(f.i)(!1!==this.attach?this.computedLeft:this.calcXOverflow(this.computedLeft,e))},calcTop:function(){return Object(f.i)(!1!==this.attach?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow:function(e,t){var n=e+t-this.pageWidth+12;return(e=(!this.left||this.right)&&n>0?Math.max(e-n,0):Math.max(e,12))+this.getOffsetLeft()},calcYOverflow:function(e){var t=this.getInnerHeight(),n=this.absoluteYOffset+t,r=this.dimensions.activator,o=this.dimensions.content.height,c=n<e+o;return c&&this.offsetOverflow&&r.top>o?e=this.pageYOffset+(r.top-o):c&&!this.allowOverflow?e=n-o-12:e<this.absoluteYOffset&&!this.allowOverflow&&(e=this.absoluteYOffset+12),e<12?12:e},callActivate:function(){this.hasWindow&&this.activate()},callDeactivate:function(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset:function(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed:function(){if(!1===this.attach){for(var e=this.getActivator();e;){if("fixed"===window.getComputedStyle(e).position)return void(this.activatorFixed=!0);e=e.offsetParent}this.activatorFixed=!1}else this.activatorFixed=!1},deactivate:function(){},genActivatorListeners:function(){var e=this,t=l.a.options.methods.genActivatorListeners.call(this),n=t.click;return n&&(t.click=function(t){e.openOnClick&&n&&n(t),e.absoluteX=t.clientX,e.absoluteY=t.clientY}),t},getInnerHeight:function(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft:function(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop:function(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect:function(e){var rect=e.getBoundingClientRect();return{top:Math.round(rect.top),left:Math.round(rect.left),bottom:Math.round(rect.bottom),right:Math.round(rect.right),width:Math.round(rect.width),height:Math.round(rect.height)}},measure:function(e){if(!e||!this.hasWindow)return null;var rect=this.getRoundedBoundedClientRect(e);if(!1!==this.attach){var style=window.getComputedStyle(e);rect.left=parseInt(style.marginLeft),rect.top=parseInt(style.marginTop)}return rect},sneakPeek:function(e){var t=this;requestAnimationFrame((function(){var n=t.$refs.content;n&&"none"===n.style.display?(n.style.display="inline-block",e(),n.style.display="none"):e()}))},startTransition:function(){var e=this;return new Promise((function(t){return requestAnimationFrame((function(){e.isContentActive=e.hasJustFocused=e.isActive,t()}))}))},updateDimensions:function(){var e=this;this.hasWindow="undefined"!=typeof window,this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;var t={activator:v({},this.dimensions.activator),content:v({},this.dimensions.content)};if(!this.hasActivator||this.absolute)t.activator=this.absolutePosition();else{var n=this.getActivator();if(!n)return;t.activator=this.measure(n),t.activator.offsetLeft=n.offsetLeft,!1!==this.attach?t.activator.offsetTop=n.offsetTop:t.activator.offsetTop=0}this.sneakPeek((function(){if(e.$refs.content){if(e.$refs.content.offsetParent){var n=e.getRoundedBoundedClientRect(e.$refs.content.offsetParent);e.relativeYOffset=window.pageYOffset+n.top,t.activator.top-=e.relativeYOffset,t.activator.left-=window.pageXOffset+n.left}t.content=e.measure(e.$refs.content)}e.dimensions=t}))}}})},function(e,t,n){"use strict";n(39),n(28),n(51);var r=n(695),o=n(4),c=n(1);t.a=c.a.extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data:function(){return{animationFrame:0,overlay:null}},watch:{hideOverlay:function(e){this.isActive&&(e?this.removeOverlay():this.genOverlay())}},beforeDestroy:function(){this.removeOverlay()},methods:{createOverlay:function(){var e=new r.a({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});e.$mount();var t=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");t&&t.insertBefore(e.$el,t.firstChild),this.overlay=e},genOverlay:function(){var e=this;if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame((function(){e.overlay&&(void 0!==e.activeZIndex?e.overlay.zIndex=String(e.activeZIndex-1):e.$el&&(e.overlay.zIndex=Object(o.v)(e.$el)),e.overlay.value=!0)})),!0},removeOverlay:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(Object(o.a)(this.overlay.$el,"transitionend",(function(){e.overlay&&e.overlay.$el&&e.overlay.$el.parentNode&&!e.overlay.value&&!e.isActive&&(e.overlay.$el.parentNode.removeChild(e.overlay.$el),e.overlay.$destroy(),e.overlay=null)})),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),t&&this.showScroll()},scrollListener:function(e){if("key"in e){if(["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||e.target.isContentEditable)return;var t=[o.y.up,o.y.pageup],n=[o.y.down,o.y.pagedown];if(t.includes(e.keyCode))e.deltaY=-1;else{if(!n.includes(e.keyCode))return;e.deltaY=1}}(e.target===this.overlay||"keydown"!==e.type&&e.target===document.body||this.checkPath(e))&&e.preventDefault()},hasScrollbar:function(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;var style=window.getComputedStyle(e);return(["auto","scroll"].includes(style.overflowY)||"SELECT"===e.tagName)&&e.scrollHeight>e.clientHeight||["auto","scroll"].includes(style.overflowX)&&e.scrollWidth>e.clientWidth},shouldScroll:function(e,t){if(e.hasAttribute("data-app"))return!1;var n,r,o=t.shiftKey||t.deltaX?"x":"y",c="y"===o?t.deltaY:t.deltaX||t.deltaY;return"y"===o?(n=0===e.scrollTop,r=e.scrollTop+e.clientHeight===e.scrollHeight):(n=0===e.scrollLeft,r=e.scrollLeft+e.clientWidth===e.scrollWidth),!(n||!(c<0))||(!(r||!(c>0))||!(!n&&!r||!e.parentNode)&&this.shouldScroll(e.parentNode,t))},isInside:function(e,t){return e===t||null!==e&&e!==document.body&&this.isInside(e.parentNode,t)},checkPath:function(e){var path=Object(o.h)(e);if("keydown"===e.type&&path[0]===document.body){var dialog=this.$refs.dialog,t=window.getSelection().anchorNode;return!(dialog&&this.hasScrollbar(dialog)&&this.isInside(t,dialog))||!this.shouldScroll(dialog,e)}for(var n=0;n<path.length;n++){var r=path[n];if(r===document)return!0;if(r===document.documentElement)return!0;if(r===this.$refs.content)return!0;if(this.hasScrollbar(r))return!this.shouldScroll(r,e)}return!0},hideScroll:function(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(Object(o.b)(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll:function(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}})},function(e,t,n){"use strict";var r=n(617);t.a=r.a},function(e,t,n){"use strict";var r=n(518),o=n(378),c=n(147);t.a=function(object){return Object(r.a)(object,c.a,o.a)}},function(e,t,n){"use strict";var r=/\s/;var o=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},c=/^\s+/;var l=function(e){return e?e.slice(0,o(e)+1).replace(c,""):e},h=n(118),d=n(172),f=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,v=/^0o[0-7]+$/i,y=parseInt;t.a=function(e){if("number"==typeof e)return e;if(Object(d.a)(e))return NaN;if(Object(h.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(h.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=m.test(e);return n||v.test(e)?y(e.slice(2),n?2:8):f.test(e)?NaN:+e}},,,function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},,,,,,,,,,,function(e,t,n){"use strict";var r,o,c,l,h;n.d(t,"a",(function(){return P})),function(e){e.Call="call",e.Reply="reply",e.Syn="syn",e.SynAck="synAck",e.Ack="ack"}(r||(r={})),function(e){e.Fulfilled="fulfilled",e.Rejected="rejected"}(o||(o={})),function(e){e.ConnectionDestroyed="ConnectionDestroyed",e.ConnectionTimeout="ConnectionTimeout",e.NoIframeSrc="NoIframeSrc"}(c||(c={})),function(e){e.DataCloneError="DataCloneError"}(l||(l={})),function(e){e.Message="message"}(h||(h={}));var d=(e,t)=>{const n=[];let r=!1;return{destroy(o){r||(r=!0,t(`${e}: Destroying connection`),n.forEach((e=>{e(o)})))},onDestroy(e){r?e():n.push(e)}}},f=e=>(...t)=>{e&&console.log("[Penpal]",...t)};const m={"http:":"80","https:":"443"},v=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,y=["file:","data:"];const w=({name:e,message:t,stack:n})=>({name:e,message:t,stack:n});var S=(e,t,n)=>{const{localName:c,local:d,remote:f,originForSending:m,originForReceiving:v}=e;let y=!1;const S=e=>{if(e.source!==f||e.data.penpal!==r.Call)return;if("*"!==v&&e.origin!==v)return void n(`${c} received message from origin ${e.origin} which did not match expected origin ${v}`);const h=e.data,{methodName:d,args:S,id:_}=h;n(`${c}: Received ${d}() call`);const C=e=>t=>{if(n(`${c}: Sending ${d}() reply`),y)return void n(`${c}: Unable to send ${d}() reply due to destroyed connection`);const h={penpal:r.Reply,id:_,resolution:e,returnValue:t};e===o.Rejected&&t instanceof Error&&(h.returnValue=w(t),h.returnValueIsError=!0);try{f.postMessage(h,m)}catch(e){if(e.name===l.DataCloneError){const t={penpal:r.Reply,id:_,resolution:o.Rejected,returnValue:w(e),returnValueIsError:!0};f.postMessage(t,m)}throw e}};new Promise((e=>e(t[d].apply(t,S)))).then(C(o.Fulfilled),C(o.Rejected))};return d.addEventListener(h.Message,S),()=>{y=!0,d.removeEventListener(h.Message,S)}};let _=0;const C=e=>e?e.split("."):[],O=(e,t,n)=>{const r=C(t);return r.reduce(((e,t,o)=>(void 0===e[t]&&(e[t]={}),o===r.length-1&&(e[t]=n),e[t])),e),e},A=(e,t)=>{const n={};return Object.keys(e).forEach((r=>{const o=e[r],c=((e,t)=>{const n=C(t||"");return n.push(e),(e=>e.join("."))(n)})(r,t);"object"==typeof o&&Object.assign(n,A(o,c)),"function"==typeof o&&(n[c]=o)})),n};var T=(e,t,n,l,d)=>{const{localName:f,local:m,remote:v,originForSending:y,originForReceiving:w}=t;let S=!1;d(`${f}: Connecting call sender`);const C=e=>(...t)=>{let n;d(`${f}: Sending ${e}() call`);try{v.closed&&(n=!0)}catch(e){n=!0}if(n&&l(),S){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=c.ConnectionDestroyed,t}return new Promise(((n,c)=>{const l=++_,S=t=>{if(t.source!==v||t.data.penpal!==r.Reply||t.data.id!==l)return;if("*"!==w&&t.origin!==w)return void d(`${f} received message from origin ${t.origin} which did not match expected origin ${w}`);const y=t.data;d(`${f}: Received ${e}() reply`),m.removeEventListener(h.Message,S);let _=y.returnValue;y.returnValueIsError&&(_=(e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t})(_)),(y.resolution===o.Fulfilled?n:c)(_)};m.addEventListener(h.Message,S);const C={penpal:r.Call,id:l,methodName:e,args:t};v.postMessage(C,y)}))},A=n.reduce(((e,t)=>(e[t]=C(t),e)),{});return Object.assign(e,(e=>{const t={};for(const n in e)O(t,n,e[n]);return t})(A)),()=>{S=!0}};var E=(e,t)=>{let n;return void 0!==e&&(n=window.setTimeout((()=>{const n=new Error(`Connection timed out after ${e}ms`);n.code=c.ConnectionTimeout,t(n)}),e)),()=>{clearTimeout(n)}},P=e=>{let{iframe:iframe,methods:t={},childOrigin:n,timeout:o,debug:l=!1}=e;const w=f(l),_=d("Parent",w),{onDestroy:C,destroy:O}=_;n||((iframe=>{if(!iframe.src&&!iframe.srcdoc){const e=new Error("Iframe must have src or srcdoc property defined.");throw e.code=c.NoIframeSrc,e}})(iframe),n=(e=>{if(e&&y.find((t=>e.startsWith(t))))return"null";const t=document.location,n=v.exec(e);let r,o,c;return n?(r=n[1]?n[1]:t.protocol,o=n[2],c=n[4]):(r=t.protocol,o=t.hostname,c=t.port),`${r}//${o}${c&&c!==m[r]?`:${c}`:""}`})(iframe.src));const P="null"===n?"*":n,M=A(t),x=((e,t,n,o)=>c=>{if(!c.source)return;if("*"!==n&&c.origin!==n)return void e(`Parent: Handshake - Received SYN message from origin ${c.origin} which did not match expected origin ${n}`);e("Parent: Handshake - Received SYN, responding with SYN-ACK");const l={penpal:r.SynAck,methodNames:Object.keys(t)};c.source.postMessage(l,o)})(w,M,n,P),k=((e,t,n,r,o)=>{const{destroy:c,onDestroy:l}=r;let h,d;const f={};return r=>{if("*"!==t&&r.origin!==t)return void o(`Parent: Handshake - Received ACK message from origin ${r.origin} which did not match expected origin ${t}`);o("Parent: Handshake - Received ACK");const m={localName:"Parent",local:window,remote:r.source,originForSending:n,originForReceiving:t};h&&h(),h=S(m,e,o),l(h),d&&d.forEach((e=>{delete f[e]})),d=r.data.methodNames;const v=T(f,m,d,c,o);return l(v),f}})(M,n,P,_,w),I=new Promise(((e,t)=>{const n=E(o,O),c=t=>{if(t.source===iframe.contentWindow&&t.data)if(t.data.penpal!==r.Syn)if(t.data.penpal!==r.Ack);else{const r=k(t);r&&(n(),e(r))}else x(t)};window.addEventListener(h.Message,c),w("Parent: Awaiting handshake"),((iframe,e)=>{const{destroy:t,onDestroy:n}=e,r=setInterval((()=>{iframe.isConnected||(clearInterval(r),t())}),6e4);n((()=>{clearInterval(r)}))})(iframe,_),C((e=>{window.removeEventListener(h.Message,c),e&&t(e)}))}));return{promise:I,destroy(){O()}}}},function(e,t,n){"use strict";var r=n(288),o=n(743);var c=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},l=n(716);var h=function(e,t,n,r,h,d){var f=1&n,m=e.length,v=t.length;if(m!=v&&!(f&&v>m))return!1;var y=d.get(e),w=d.get(t);if(y&&w)return y==t&&w==e;var S=-1,_=!0,C=2&n?new o.a:void 0;for(d.set(e,t),d.set(t,e);++S<m;){var O=e[S],A=t[S];if(r)var T=f?r(A,O,S,t,e,d):r(O,A,S,e,t,d);if(void 0!==T){if(T)continue;_=!1;break}if(C){if(!c(t,(function(e,t){if(!Object(l.a)(C,t)&&(O===e||h(O,e,n,r,d)))return C.push(t)}))){_=!1;break}}else if(O!==A&&!h(O,A,n,r,d)){_=!1;break}}return d.delete(e),d.delete(t),_},d=n(128),f=n(381),m=n(278),v=n(519),y=n(693),w=d.a?d.a.prototype:void 0,S=w?w.valueOf:void 0;var _=function(object,e,t,n,r,o,c){switch(t){case"[object DataView]":if(object.byteLength!=e.byteLength||object.byteOffset!=e.byteOffset)return!1;object=object.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=e.byteLength||!o(new f.a(object),new f.a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(m.a)(+object,+e);case"[object Error]":return object.name==e.name&&object.message==e.message;case"[object RegExp]":case"[object String]":return object==e+"";case"[object Map]":var l=v.a;case"[object Set]":var d=1&n;if(l||(l=y.a),object.size!=e.size&&!d)return!1;var w=c.get(object);if(w)return w==e;n|=2,c.set(object,e);var _=h(l(object),l(e),n,r,o,c);return c.delete(object),_;case"[object Symbol]":if(S)return S.call(object)==S.call(e)}return!1},C=n(432),O=Object.prototype.hasOwnProperty;var A=function(object,e,t,n,r,o){var c=1&t,l=Object(C.a)(object),h=l.length;if(h!=Object(C.a)(e).length&&!c)return!1;for(var d=h;d--;){var f=l[d];if(!(c?f in e:O.call(e,f)))return!1}var m=o.get(object),v=o.get(e);if(m&&v)return m==e&&v==object;var y=!0;o.set(object,e),o.set(e,object);for(var w=c;++d<h;){var S=object[f=l[d]],_=e[f];if(n)var A=c?n(_,S,f,e,object,o):n(S,_,f,object,e,o);if(!(void 0===A?S===_||r(S,_,t,n,o):A)){y=!1;break}w||(w="constructor"==f)}if(y&&!w){var T=object.constructor,E=e.constructor;T==E||!("constructor"in object)||!("constructor"in e)||"function"==typeof T&&T instanceof T&&"function"==typeof E&&E instanceof E||(y=!1)}return o.delete(object),o.delete(e),y},T=n(196),E=n(89),P=n(311),M=n(462),x="[object Arguments]",k="[object Array]",I="[object Object]",R=Object.prototype.hasOwnProperty;var j=function(object,e,t,n,o,c){var l=Object(E.a)(object),d=Object(E.a)(e),f=l?k:Object(T.a)(object),m=d?k:Object(T.a)(e),v=(f=f==x?I:f)==I,y=(m=m==x?I:m)==I,w=f==m;if(w&&Object(P.a)(object)){if(!Object(P.a)(e))return!1;l=!0,v=!1}if(w&&!v)return c||(c=new r.a),l||Object(M.a)(object)?h(object,e,t,n,o,c):_(object,e,f,t,n,o,c);if(!(1&t)){var S=v&&R.call(object,"__wrapped__"),C=y&&R.call(e,"__wrapped__");if(S||C){var O=S?object.value():object,j=C?e.value():e;return c||(c=new r.a),o(O,j,t,n,c)}}return!!w&&(c||(c=new r.a),A(object,e,t,n,o,c))},D=n(146);t.a=function e(t,n,r,o,c){return t===n||(null==t||null==n||!Object(D.a)(t)&&!Object(D.a)(n)?t!=t&&n!=n:j(t,n,r,o,e,c))}},,,function(e,t,n){"use strict";var r=n(172);t.a=function(e,t,n){for(var o=-1,c=e.length;++o<c;){var l=e[o],h=t(l);if(null!=h&&(void 0===d?h==h&&!Object(r.a)(h):n(h,d)))var d=h,f=l}return f}},function(e,t,n){"use strict";var r=n(103);t.a=r.a.extend({name:"button-group",provide:function(){return{btnToggle:this}},computed:{classes:function(){return r.a.options.computed.classes.call(this)}},methods:{genData:r.a.options.methods.genData}})},,,,function(e,t,n){"use strict";var r=n(90),o=n(1);t.a=o.a.extend({name:"rippleable",directives:{ripple:r.a},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple:function(){var data=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ripple?(data.staticClass="v-input--selection-controls__ripple",data.directives=data.directives||[],data.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",data)):null}}})},,function(e,t,n){"use strict";var r=n(160),o=n(102),c=Object(r.a)(o.a,"Set");t.a=c},,,,function(e,t,n){"use strict";var r=n(198),o=n(371),c=n(146),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var h=function(e){return Object(c.a)(e)&&Object(o.a)(e.length)&&!!l[Object(r.a)(e)]},d=n(273),f=n(236),m=f.a&&f.a.isTypedArray,v=m?Object(d.a)(m):h;t.a=v},,,,,,,,,,,,,,,,,,,,,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,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var c,i,l=arguments.length;switch(l){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,o)}));default:for(c=new Array(l-1),i=0;i<c.length;)c[i++]=arguments[i];return t.nextTick((function(){e.apply(null,c)}))}}}:e.exports=t}).call(this,n(83))},function(e,t,n){var r=n(58).Buffer;function o(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 c(e){for(;0<e.length;e++)e[0]=0}function l(e,t,n,r,o){for(var c,l,h,d,f=n[0],m=n[1],v=n[2],y=n[3],w=e[0]^t[0],S=e[1]^t[1],_=e[2]^t[2],C=e[3]^t[3],O=4,A=1;A<o;A++)c=f[w>>>24]^m[S>>>16&255]^v[_>>>8&255]^y[255&C]^t[O++],l=f[S>>>24]^m[_>>>16&255]^v[C>>>8&255]^y[255&w]^t[O++],h=f[_>>>24]^m[C>>>16&255]^v[w>>>8&255]^y[255&S]^t[O++],d=f[C>>>24]^m[w>>>16&255]^v[S>>>8&255]^y[255&_]^t[O++],w=c,S=l,_=h,C=d;return c=(r[w>>>24]<<24|r[S>>>16&255]<<16|r[_>>>8&255]<<8|r[255&C])^t[O++],l=(r[S>>>24]<<24|r[_>>>16&255]<<16|r[C>>>8&255]<<8|r[255&w])^t[O++],h=(r[_>>>24]<<24|r[C>>>16&255]<<16|r[w>>>8&255]<<8|r[255&S])^t[O++],d=(r[C>>>24]<<24|r[w>>>16&255]<<16|r[S>>>8&255]<<8|r[255&_])^t[O++],[c>>>=0,l>>>=0,h>>>=0,d>>>=0]}var h=[0,1,2,4,8,16,32,64,128,27,54],d=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=[],o=[[],[],[],[]],c=[[],[],[],[]],l=0,h=0,i=0;i<256;++i){var d=h^h<<1^h<<2^h<<3^h<<4;d=d>>>8^255&d^99,n[l]=d,r[d]=l;var f=e[l],m=e[f],v=e[m],y=257*e[d]^16843008*d;o[0][l]=y<<24|y>>>8,o[1][l]=y<<16|y>>>16,o[2][l]=y<<8|y>>>24,o[3][l]=y,y=16843009*v^65537*m^257*f^16843008*l,c[0][d]=y<<24|y>>>8,c[1][d]=y<<16|y>>>16,c[2][d]=y<<8|y>>>24,c[3][d]=y,0===l?l=h=1:(l=f^e[e[e[v^f]]],h^=e[e[h]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:c}}();function f(e){this._key=o(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],c=0;c<t;c++)o[c]=e[c];for(c=t;c<r;c++){var l=o[c-1];c%t==0?(l=l<<8|l>>>24,l=d.SBOX[l>>>24]<<24|d.SBOX[l>>>16&255]<<16|d.SBOX[l>>>8&255]<<8|d.SBOX[255&l],l^=h[c/t|0]<<24):t>6&&c%t==4&&(l=d.SBOX[l>>>24]<<24|d.SBOX[l>>>16&255]<<16|d.SBOX[l>>>8&255]<<8|d.SBOX[255&l]),o[c]=o[c-t]^l}for(var f=[],m=0;m<r;m++){var v=r-m,y=o[v-(m%4?0:4)];f[m]=m<4||v<=4?y:d.INV_SUB_MIX[0][d.SBOX[y>>>24]]^d.INV_SUB_MIX[1][d.SBOX[y>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[y>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&y]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return l(e=o(e),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},f.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},f.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=l(e,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),c=r.allocUnsafe(16);return c.writeUInt32BE(n[0],0),c.writeUInt32BE(n[3],4),c.writeUInt32BE(n[2],8),c.writeUInt32BE(n[1],12),c},f.prototype.scrub=function(){c(this._keySchedule),c(this._invKeySchedule),c(this._key)},e.exports.AES=f},function(e,t,n){var r=n(58).Buffer,o=n(578);e.exports=function(e,t,n,c){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 l=n/8,h=r.alloc(l),d=r.alloc(c||0),f=r.alloc(0);l>0||c>0;){var m=new o;m.update(f),m.update(e),t&&m.update(t),f=m.digest();var v=0;if(l>0){var y=h.length-l;v=Math.min(l,f.length),f.copy(h,y,0,v),l-=v}if(v<f.length&&c>0){var w=d.length-c,S=Math.min(c,f.length-v);f.copy(d,w,v,v+S),c-=S}}return f.fill(0),{key:h,iv:d}}},,function(e,t,n){"use strict";var r=n(125),o=n(179),c=o.getNAF,l=o.getJSF,h=o.assert;function d(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 f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=d,d.prototype.point=function(){throw new Error("Not implemented")},d.prototype.validate=function(){throw new Error("Not implemented")},d.prototype._fixedNafMul=function(p,e){h(p.precomputed);var t=p._getDoubles(),n=c(e,1,this._bitLength),r=(1<<t.step+1)-(t.step%2==0?2:1);r/=3;var o,l,d=[];for(o=0;o<n.length;o+=t.step){l=0;for(var f=o+t.step-1;f>=o;f--)l=(l<<1)+n[f];d.push(l)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=r;i>0;i--){for(o=0;o<d.length;o++)(l=d[o])===i?b=b.mixedAdd(t.points[o]):l===-i&&(b=b.mixedAdd(t.points[o].neg()));a=a.add(b)}return a.toP()},d.prototype._wnafMul=function(p,e){var t=4,n=p._getNAFPoints(t);t=n.wnd;for(var r=n.points,o=c(e,t,this._bitLength),l=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(var d=0;i>=0&&0===o[i];i--)d++;if(i>=0&&d++,l=l.dblp(d),i<0)break;var f=o[i];h(0!==f),l="affine"===p.type?f>0?l.mixedAdd(r[f-1>>1]):l.mixedAdd(r[-f-1>>1].neg()):f>0?l.add(r[f-1>>1]):l.add(r[-f-1>>1].neg())}return"affine"===p.type?l.toP():l},d.prototype._wnafMulAdd=function(e,t,n,r,o){var i,h,p,d=this._wnafT1,f=this._wnafT2,m=this._wnafT3,v=0;for(i=0;i<r;i++){var y=(p=t[i])._getNAFPoints(e);d[i]=y.wnd,f[i]=y.points}for(i=r-1;i>=1;i-=2){var a=i-1,b=i;if(1===d[a]&&1===d[b]){var w=[t[a],null,null,t[b]];0===t[a].y.cmp(t[b].y)?(w[1]=t[a].add(t[b]),w[2]=t[a].toJ().mixedAdd(t[b].neg())):0===t[a].y.cmp(t[b].y.redNeg())?(w[1]=t[a].toJ().mixedAdd(t[b]),w[2]=t[a].add(t[b].neg())):(w[1]=t[a].toJ().mixedAdd(t[b]),w[2]=t[a].toJ().mixedAdd(t[b].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],_=l(n[a],n[b]);for(v=Math.max(_[0].length,v),m[a]=new Array(v),m[b]=new Array(v),h=0;h<v;h++){var C=0|_[0][h],O=0|_[1][h];m[a][h]=S[3*(C+1)+(O+1)],m[b][h]=0,f[a]=w}}else m[a]=c(n[a],d[a],this._bitLength),m[b]=c(n[b],d[b],this._bitLength),v=Math.max(m[a].length,v),v=Math.max(m[b].length,v)}var A=this.jpoint(null,null,null),T=this._wnafT4;for(i=v;i>=0;i--){for(var E=0;i>=0;){var P=!0;for(h=0;h<r;h++)T[h]=0|m[h][i],0!==T[h]&&(P=!1);if(!P)break;E++,i--}if(i>=0&&E++,A=A.dblp(E),i<0)break;for(h=0;h<r;h++){var M=T[h];0!==M&&(M>0?p=f[h][M-1>>1]:M<0&&(p=f[h][-M-1>>1].neg()),A="affine"===p.type?A.mixedAdd(p):A.add(p))}}for(i=0;i<r;i++)f[i]=null;return o?A:A.toP()},d.BasePoint=f,f.prototype.eq=function(){throw new Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(e,t){e=o.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]?h(e[e.length-1]%2==0):7===e[0]&&h(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")},f.prototype.encodeCompressed=function(e){return this.encode(e,!0)},f.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))},f.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},f.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},f.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)},f.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}},f.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}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},function(e,t,n){var r=n(1357),o=n(1364),c=n(1365),l=n(587),h=n(844),d=n(58).Buffer;function f(e){var t;"object"!=typeof e||d.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=d.from(e));var n,f,m=c(e,t),v=m.tag,data=m.data;switch(v){case"CERTIFICATE":f=r.certificate.decode(data,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=r.PublicKey.decode(data,"der")),n=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=r.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":data=function(data,e){var t=data.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(),10),r=o[data.algorithm.decrypt.cipher.algo.join(".")],c=data.algorithm.decrypt.cipher.iv,f=data.subjectPrivateKey,m=parseInt(r.split("-")[1],10)/8,v=h.pbkdf2Sync(e,t,n,m,"sha1"),y=l.createDecipheriv(r,v,c),w=[];return w.push(y.update(f)),w.push(y.final()),d.concat(w)}(data=r.EncryptedPrivateKey.decode(data,"der"),t);case"PRIVATE KEY":switch(n=(f=r.PrivateKey.decode(data,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:r.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=r.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(data,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(data,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(data,"der")};case"EC PRIVATE KEY":return{curve:(data=r.ECPrivateKey.decode(data,"der")).parameters.value,privateKey:data.privateKey};default:throw new Error("unknown key type "+v)}}e.exports=f,f.signature=r.signature},,,function(e,t,n){"use strict";e.exports=TypeError},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return r},t.setDefaultOptions=function(e){r=e};var r={}},,,function(e,t,n){(function(r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(1635)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(83))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addNackSuppportForOpus=void 0,t.addNackSuppportForOpus=function(e){for(const n of e.codecs||[]){var t;"audio/opus"!==n.mimeType.toLowerCase()&&"audio/multiopus"!==n.mimeType.toLowerCase()||null!==(t=n.rtcpFeedback)&&void 0!==t&&t.some((e=>"nack"===e.type&&!e.parameter))||(n.rtcpFeedback||(n.rtcpFeedback=[]),n.rtcpFeedback.push({type:"nack"}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLegacySimulcast=t.getRtpEncodings=void 0,t.getRtpEncodings=function({offerMediaObject:e,track:track}){let t;const n=new Set;for(const line of e.ssrcs||[]){if("msid"!==line.attribute)continue;if(line.value.split(" ")[1]===track.id){const e=line.id;n.add(e),t||(t=e)}}if(0===n.size)throw new Error(`a=ssrc line with msid information not found [track.id:${track.id}]`);const r=new Map;for(const line of e.ssrcGroups||[]){if("FID"!==line.semantics)continue;let[e,t]=line.ssrcs.split(/\s+/);e=Number(e),t=Number(t),n.has(e)&&(n.delete(e),n.delete(t),r.set(e,t))}for(const e of n)r.set(e,null);const o=[];for(const[e,t]of r){const n={ssrc:e};t&&(n.rtx={ssrc:t}),o.push(n)}return o},t.addLegacySimulcast=function({offerMediaObject:e,track:track,numStreams:t}){if(t<=1)throw new TypeError("numStreams must be greater than 1");let n,r,o;if(!(e.ssrcs||[]).find((line=>{if("msid"!==line.attribute)return!1;return line.value.split(" ")[1]===track.id&&(n=line.id,o=line.value.split(" ")[0],!0)})))throw new Error(`a=ssrc line with msid information not found [track.id:${track.id}]`);(e.ssrcGroups||[]).some((line=>{if("FID"!==line.semantics)return!1;const e=line.ssrcs.split(/\s+/);return Number(e[0])===n&&(r=Number(e[1]),!0)}));const c=e.ssrcs.find((line=>"cname"===line.attribute&&line.id===n));if(!c)throw new Error(`a=ssrc line with cname information not found [track.id:${track.id}]`);const l=c.value,h=[],d=[];for(let i=0;i<t;++i)h.push(n+i),r&&d.push(r+i);e.ssrcGroups=e.ssrcGroups||[],e.ssrcs=e.ssrcs||[],e.ssrcGroups.push({semantics:"SIM",ssrcs:h.join(" ")});for(let i=0;i<h.length;++i){const t=h[i];e.ssrcs.push({id:t,attribute:"cname",value:l}),e.ssrcs.push({id:t,attribute:"msid",value:`${o} ${track.id}`})}for(let i=0;i<d.length;++i){const t=h[i],n=d[i];e.ssrcs.push({id:n,attribute:"cname",value:l}),e.ssrcs.push({id:n,attribute:"msid",value:`${o} ${track.id}`}),e.ssrcGroups.push({semantics:"FID",ssrcs:`${t} ${n}`})}}},,function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var c in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(c,t.headers[c]);s.send(t.body||null)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(12),n(7),n(122),n(9),n(5),n(92),n(98);var r=n(1);function o(e){return r.a.extend({name:"v-".concat(e),functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(t,n){var r=n.props,data=n.data,o=n.children;data.staticClass="".concat(e," ").concat(data.staticClass||"").trim();var c=data.attrs;if(c){data.attrs={};var l=Object.keys(c).filter((function(e){if("slot"===e)return!1;var t=c[e];return e.startsWith("data-")?(data.attrs[e]=t,!1):t||"string"==typeof t}));l.length&&(data.staticClass+=" ".concat(l.join(" ")))}return r.id&&(data.domProps=data.domProps||{},data.domProps.id=r.id),t(r.tag,data,o)}})}},,,,function(e,t,n){"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],c=t.match(e.parsePattern);if(!c)return null;var l=e.valueCallback?e.valueCallback(c[0]):c[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(o.length)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(1);t.a=r.a.extend({name:"transitionable",props:{mode:String,origin:String,transition:String}})},function(e,t,n){"use strict";var r=n(14),o=(n(12),n(39),n(51),n(1)),c=n(4);t.a=o.a.extend().extend({name:"stackable",data:function(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex:function(){if("undefined"==typeof window)return 0;var content=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[content])+2:Object(c.v)(content);return null==e?e:parseInt(e)}},methods:{getMaxZIndex:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],base=this.$el,t=[this.stackMinZIndex,Object(c.v)(base)],n=[].concat(Object(r.a)(document.getElementsByClassName("v-menu__content--active")),Object(r.a)(document.getElementsByClassName("v-dialog__content--active"))),o=0;o<n.length;o++)e.includes(n[o])||t.push(Object(c.v)(n[o]));return Math.max.apply(Math,t)}}})},function(e,t,n){"use strict";var r=n(0),o=n(35),c=(n(66),n(39),n(5),n(51),n(33),n(8),n(275)),l=n(4),h=n(13),d=n(26);function f(e){e.forEach((function(e){e.elm&&e.elm.parentNode&&e.elm.parentNode.removeChild(e.elm)}))}t.a=Object(h.a)(c.a).extend({name:"detachable",props:{attach:{default:!1,validator:function(e){var t=Object(o.a)(e);return"boolean"===t||"string"===t||e.nodeType===Node.ELEMENT_NODE}},contentClass:{type:String,default:""}},data:function(){return{activatorNode:null,hasDetached:!1}},watch:{attach:function(){this.hasDetached=!1,this.initDetach()},hasContent:function(){this.$nextTick(this.initDetach)}},beforeMount:function(){var e=this;this.$nextTick((function(){e.activatorNode&&(Array.isArray(e.activatorNode)?e.activatorNode:[e.activatorNode]).forEach((function(t){if(t.elm&&e.$el.parentNode){var n=e.$el===e.$el.parentNode.firstChild?e.$el:e.$el.nextSibling;e.$el.parentNode.insertBefore(t.elm,n)}}))}))},mounted:function(){this.hasContent&&this.initDetach()},deactivated:function(){this.isActive=!1},beforeDestroy:function(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed:function(){var e=this;if(this.activatorNode){var t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){var n=new MutationObserver((function(r){r.some((function(t){return Array.from(t.removedNodes).includes(e.$el)}))&&(n.disconnect(),f(t))}));n.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else f(t)}},methods:{getScopeIdAttrs:function(){var e=Object(l.q)(this.$vnode,"context.$options._scopeId");return e&&Object(r.a)({},e,"")},initDetach:function(){var e;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach||((e=!1===this.attach?document.querySelector("[data-app]"):"string"==typeof this.attach?document.querySelector(this.attach):this.attach)?(e.appendChild(this.$refs.content),this.hasDetached=!0):Object(d.c)("Unable to locate target ".concat(this.attach||"[data-app]"),this))}}})},function(e,t,n){"use strict";n(60);var r=n(1);t.a=r.a.extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(e){e?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(e){var t=this;this.originalValue=e,setTimeout((function(){t.isActive=!1}))}}})},function(e,t,n){"use strict";var r=n(35),o=(n(122),n(28),n(151),n(92),n(60),n(1407),n(233)),c=n(431),l=n(30),h=n(13),d=n(75),f=n(26),m=n(4),v="undefined"!=typeof window&&"IntersectionObserver"in window;t.a=Object(h.a)(c.a,l.a).extend({name:"v-img",directives:{intersect:o.a},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:function(){return{root:void 0,rootMargin:void 0,threshold:void 0}}},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data:function(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio:function(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc:function(){return this.src&&"object"===Object(r.a)(this.src)?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage:function(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];var e=[],t=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&e.push("linear-gradient(".concat(this.gradient,")")),t&&e.push('url("'.concat(t,'")'));var image=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:e.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[image]):image}},watch:{src:function(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted:function(){this.init()},methods:{init:function(e,t,n){if(!v||n||this.eager){if(this.normalisedSrc.lazySrc){var r=new Image;r.src=this.normalisedSrc.lazySrc,this.pollForSize(r,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad:function(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError:function(){this.hasError=!0,this.$emit("error",this.src)},getSrc:function(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage:function(){var e=this,image=new Image;this.image=image,image.onload=function(){image.decode?image.decode().catch((function(t){Object(f.c)("Failed to decode image, trying to render anyway\n\n"+"src: ".concat(e.normalisedSrc.src)+(t.message?"\nOriginal error: ".concat(t.message):""),e)})).then(e.onLoad):e.onLoad()},image.onerror=this.onError,this.hasError=!1,this.sizes&&(image.sizes=this.sizes),this.normalisedSrc.srcset&&(image.srcset=this.normalisedSrc.srcset),image.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(image),this.getSrc()},pollForSize:function(img){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;!function n(){var r=img.naturalHeight,o=img.naturalWidth;r||o?(e.naturalWidth=o,e.calculatedAspectRatio=o/r):img.complete||!e.isLoading||e.hasError||null==t||setTimeout(n,t)}()},genContent:function(){var content=c.a.options.methods.genContent.call(this);return this.naturalWidth&&this._b(content.data,"div",{style:{width:"".concat(this.naturalWidth,"px")}}),content},__genPlaceholder:function(){var slot=Object(m.t)(this,"placeholder");if(slot){var e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},slot)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render:function(e){var t=c.a.options.render.call(this,e),data=Object(d.a)(t.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:v?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return t.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],e(t.tag,data,t.children)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(35);var o={inserted:function(e,t,n){var o=(t.modifiers||{}).self,c=void 0!==o&&o,l=t.value,h="object"===Object(r.a)(l)&&l.options||{passive:!0},d="function"==typeof l||"handleEvent"in l?l:l.handler,f=c?e:t.arg?document.querySelector(t.arg):window;f&&(f.addEventListener("scroll",d,h),e._onScroll=Object(e._onScroll),e._onScroll[n.context._uid]={handler:d,options:h,target:c?void 0:f})},unbind:function(e,t,n){var r;if(null===(r=e._onScroll)||void 0===r?void 0:r[n.context._uid]){var o=e._onScroll[n.context._uid],c=o.handler,l=o.options,h=o.target;(void 0===h?e:h).removeEventListener("scroll",c,l),delete e._onScroll[n.context._uid]}}};t.b=o},function(e,t,n){"use strict";var r=n(35),o=(n(54),n(28),n(60),n(38)),c=n(30),l=n(126),h=n(4),d=n(26),f=n(13),m=Object(f.a)(o.a,Object(l.a)("form"),c.a);t.a=m.extend({name:"validatable",props:{disabled:{type:Boolean,default:null},error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:{type:Boolean,default:null},rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(e){this.lazyValue=e,this.$emit("input",e)}},isDisabled:function(){var e;return null!==(e=this.disabled)&&void 0!==e?e:!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){var e;return null!==(e=this.readonly)&&void 0!==e?e:!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(e,t){Object(h.l)(e,t)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(e){e||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var e=this;setTimeout((function(){e.hasInput=!1,e.hasFocused=!1,e.isResetting=!1,e.validate()}),0)},hasError:function(e){this.shouldValidate&&this.$emit("update:error",e)},value:function(e){this.lazyValue=e}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(e){return e?Array.isArray(e)?e:[e]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation:function(){this.isResetting=!0},validate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=[];t=t||this.internalValue,e&&(this.hasInput=this.hasFocused=!0);for(var o=0;o<this.rules.length;o++){var c=this.rules[o],l="function"==typeof c?c(t):c;!1===l||"string"==typeof l?n.push(l||""):"boolean"!=typeof l&&Object(d.b)("Rules should return a string or boolean, received '".concat(Object(r.a)(l),"' instead"),this)}return this.errorBucket=n,this.valid=0===n.length,this.valid}}})},,function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(67))},function(e,t,n){"use strict";var r=n(198),o=n(118);t.a=function(e){if(!Object(o.a)(e))return!1;var t=Object(r.a)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";t.a=function(){return[]}},function(e,t,n){"use strict";var r=n(370),o=n(89);t.a=function(object,e,t){var n=e(object);return Object(o.a)(object)?n:Object(r.a)(n,t(object))}},function(e,t,n){"use strict";t.a=function(map){var e=-1,t=Array(map.size);return map.forEach((function(n,r){t[++e]=[r,n]})),t}},,function(e,t,n){"use strict";var r=n(383);t.a=function(e){var t=Object(r.a)(e),n=t%1;return t==t?n?t-n:t:0}},,function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(object){return(0,o.default)({},object)};var o=r(n(1504));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},function(e){e.exports=JSON.parse('{"name":"@voila/vhs-client","version":"0.3.6","license":"SEE LICENSE.md","repository":{"type":"https","url":"https://gitlab.com/orange-oxp-teams/frontend/lib-vhs-client.git"},"files":["src","README.md","LICENSE.md"],"module":"./src/index.ts","main":"./src/index.ts","types":"./src/index.ts","scripts":{"lint":"eslint --ext .js,.ts,.vue --ignore-path .gitignore src","test":"jest"},"engines":{"node":"^18","yarn":"3.4.1"},"dependencies":{"fflate":"^0.7.4","mediasoup-client":"^3.7.0","ua-parser-js":"^1.0.35"},"peerDependencies":{"ably":"2.3.1"},"devDependencies":{"@babel/core":"^7.22.5","@babel/plugin-proposal-nullish-coalescing-operator":"^7.18.6","@babel/plugin-proposal-optional-chaining":"^7.18.9","@babel/plugin-transform-modules-commonjs":"^7.16.8","@types/jest":"^27.4.1","@types/node":"^18.16.1","@types/ua-parser-js":"^0.7.36","@typescript-eslint/eslint-plugin":"^5.15.0","@typescript-eslint/parser":"^5.15.0","ably":"2.3.1","babel-jest":"^27.5.1","esbuild":"^0.14.27","esbuild-register":"^3.3.2","eslint":"^8.10.0","eslint-config-prettier":"^8.4.0","eslint-config-typescript":"^3.0.0","eslint-import-resolver-alias":"^1.1.2","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0","jest":"^27.5.1","jest-canvas-mock":"^2.3.1","jest-transform-stub":"^2.0.0","prettier":"^2.5.1","ts-jest":"^27.1.3","typescript":"^4.9.3","vue-template-compiler":"^2.7.14"},"packageManager":"yarn@3.4.1"}')},function(e,t,n){var r;!function(o,c){"use strict";var l="function",h="undefined",d="object",f="string",m="major",v="model",y="name",w="type",S="vendor",_="version",C="architecture",O="console",A="mobile",T="tablet",E="smarttv",P="wearable",M="embedded",x="Amazon",k="Apple",I="ASUS",R="BlackBerry",j="Browser",D="Chrome",N="Firefox",L="Google",B="Huawei",U="LG",F="Microsoft",z="Motorola",$="Opera",H="Samsung",G="Sharp",V="Sony",W="Xiaomi",K="Zebra",Y="Facebook",X="Chromium OS",J="Mac OS",Z=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Q=function(e,t){return typeof e===f&&-1!==ee(t).indexOf(ee(e))},ee=function(e){return e.toLowerCase()},te=function(e,t){if(typeof e===f)return e=e.replace(/^\s\s*/,""),typeof t===h?e:e.substring(0,500)},ne=function(e,t){for(var n,r,p,q,o,h,i=0;i<t.length&&!o;){var f=t[i],m=t[i+1];for(n=r=0;n<f.length&&!o&&f[n];)if(o=f[n++].exec(e))for(p=0;p<m.length;p++)h=o[++r],typeof(q=m[p])===d&&q.length>0?2===q.length?typeof q[1]==l?this[q[0]]=q[1].call(this,h):this[q[0]]=q[1]:3===q.length?typeof q[1]!==l||q[1].exec&&q[1].test?this[q[0]]=h?h.replace(q[1],q[2]):c:this[q[0]]=h?q[1].call(this,h,q[2]):c:4===q.length&&(this[q[0]]=h?q[3].call(this,h.replace(q[1],q[2])):c):this[q]=h||c;i+=2}},re=function(e,map){for(var i in map)if(typeof map[i]===d&&map[i].length>0){for(var t=0;t<map[i].length;t++)if(Q(map[i][t],e))return"?"===i?c:i}else if(Q(map[i],e))return"?"===i?c:i;return e},ie={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},oe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,_],[/opios[\/ ]+([\w\.]+)/i],[_,[y,$+" Mini"]],[/\bopr\/([\w\.]+)/i],[_,[y,$]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[_,[y,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,_],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_,[y,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[_,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[_,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[_,[y,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+j],_],[/\bfocus\/([\w\.]+)/i],[_,[y,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[_,[y,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[_,[y,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_,[y,"MIUI "+j]],[/fxios\/([-\w\.]+)/i],[_,[y,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360 "+j]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1 "+j],_],[/samsungbrowser\/([\w\.]+)/i],[_,[y,H+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],_],[/metasr[\/ ]?([\d\.]+)/i],[_,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],_],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[y,_],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Y],_],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,_],[/\bgsa\/([\w\.]+) .*safari\//i],[_,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[_,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[_,[y,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,D+" WebView"],_],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_,[y,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,_],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[_,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[_,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[_,re,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[y,_],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],_],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_,[y,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[y,_],[/(cobalt)\/([\w\.]+)/i],[y,[_,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,ee]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,"",ee]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,ee]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[S,H],[w,T]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[v,[S,H],[w,A]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[S,k],[w,A]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[S,k],[w,T]],[/(macintosh);/i],[v,[S,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[S,G],[w,A]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[S,B],[w,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[S,B],[w,A]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[v,/_/g," "],[S,W],[w,A]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[S,W],[w,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[S,"OPPO"],[w,A]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[S,"Vivo"],[w,A]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[S,"Realme"],[w,A]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[S,z],[w,A]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[S,z],[w,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[S,U],[w,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[S,U],[w,A]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[S,"Lenovo"],[w,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[S,"Nokia"],[w,A]],[/(pixel c)\b/i],[v,[S,L],[w,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[S,L],[w,A]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[S,V],[w,A]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[S,V],[w,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[S,"OnePlus"],[w,A]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[S,x],[w,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[S,x],[w,A]],[/(playbook);[-\w\),; ]+(rim)/i],[v,S,[w,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[S,R],[w,A]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[S,I],[w,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[S,I],[w,A]],[/(nexus 9)/i],[v,[S,"HTC"],[w,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[v,/_/g," "],[w,A]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[S,"Acer"],[w,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[S,"Meizu"],[w,A]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[S,"Ulefone"],[w,A]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[S,v,[w,A]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[S,v,[w,T]],[/(surface duo)/i],[v,[S,F],[w,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[S,"Fairphone"],[w,A]],[/(u304aa)/i],[v,[S,"AT&T"],[w,A]],[/\bsie-(\w*)/i],[v,[S,"Siemens"],[w,A]],[/\b(rct\w+) b/i],[v,[S,"RCA"],[w,T]],[/\b(venue[\d ]{2,7}) b/i],[v,[S,"Dell"],[w,T]],[/\b(q(?:mv|ta)\w+) b/i],[v,[S,"Verizon"],[w,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[S,"Barnes & Noble"],[w,T]],[/\b(tm\d{3}\w+) b/i],[v,[S,"NuVision"],[w,T]],[/\b(k88) b/i],[v,[S,"ZTE"],[w,T]],[/\b(nx\d{3}j) b/i],[v,[S,"ZTE"],[w,A]],[/\b(gen\d{3}) b.+49h/i],[v,[S,"Swiss"],[w,A]],[/\b(zur\d{3}) b/i],[v,[S,"Swiss"],[w,T]],[/\b((zeki)?tb.*\b) b/i],[v,[S,"Zeki"],[w,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[S,"Dragon Touch"],v,[w,T]],[/\b(ns-?\w{0,9}) b/i],[v,[S,"Insignia"],[w,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[S,"NextBook"],[w,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[S,"Voice"],v,[w,A]],[/\b(lvtel\-)?(v1[12]) b/i],[[S,"LvTel"],v,[w,A]],[/\b(ph-1) /i],[v,[S,"Essential"],[w,A]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[S,"Envizen"],[w,T]],[/\b(trio[-\w\. ]+) b/i],[v,[S,"MachSpeed"],[w,T]],[/\btu_(1491) b/i],[v,[S,"Rotor"],[w,T]],[/(shield[\w ]+) b/i],[v,[S,"Nvidia"],[w,T]],[/(sprint) (\w+)/i],[S,v,[w,A]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[S,F],[w,A]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[S,K],[w,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[S,K],[w,A]],[/smart-tv.+(samsung)/i],[S,[w,E]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[S,H],[w,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,U],[w,E]],[/(apple) ?tv/i],[S,[v,k+" TV"],[w,E]],[/crkey/i],[[v,D+"cast"],[S,L],[w,E]],[/droid.+aft(\w+)( bui|\))/i],[v,[S,x],[w,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[S,G],[w,E]],[/(bravia[\w ]+)( bui|\))/i],[v,[S,V],[w,E]],[/(mitv-\w{5}) bui/i],[v,[S,W],[w,E]],[/Hbbtv.*(technisat) (.*);/i],[S,v,[w,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,te],[v,te],[w,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[S,v,[w,O]],[/droid.+; (shield) bui/i],[v,[S,"Nvidia"],[w,O]],[/(playstation [345portablevi]+)/i],[v,[S,V],[w,O]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[S,F],[w,O]],[/((pebble))app/i],[S,v,[w,P]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[S,k],[w,P]],[/droid.+; (glass) \d/i],[v,[S,L],[w,P]],[/droid.+; (wt63?0{2,3})\)/i],[v,[S,K],[w,P]],[/(quest( 2| pro)?)/i],[v,[S,Y],[w,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[w,M]],[/(aeobc)\b/i],[v,[S,x],[w,M]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[w,A]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[w,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,T]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,A]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_,[y,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,_],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,_],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[y,[_,re,ie]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_,re,ie],[y,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[_,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,J],[_,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,_],[/\(bb(10);/i],[_,[y,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[_,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_,[y,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[_,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[_,[y,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,X],_],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,_],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],_],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,_]]},ae=function(e,t){if(typeof e===d&&(t=e,e=c),!(this instanceof ae))return new ae(e,t).getResult();var n=typeof o!==h&&o.navigator?o.navigator:c,r=e||(n&&n.userAgent?n.userAgent:""),O=n&&n.userAgentData?n.userAgentData:c,E=t?function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n}(oe,t):oe,P=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[y]=c,t[_]=c,ne.call(t,r,E.browser),t[m]=typeof(e=t[_])===f?e.replace(/[^\d\.]/g,"").split(".")[0]:c,P&&n&&n.brave&&typeof n.brave.isBrave==l&&(t[y]="Brave"),t},this.getCPU=function(){var e={};return e[C]=c,ne.call(e,r,E.cpu),e},this.getDevice=function(){var e={};return e[S]=c,e[v]=c,e[w]=c,ne.call(e,r,E.device),P&&!e[w]&&O&&O.mobile&&(e[w]=A),P&&"Macintosh"==e[v]&&n&&typeof n.standalone!==h&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[v]="iPad",e[w]=T),e},this.getEngine=function(){var e={};return e[y]=c,e[_]=c,ne.call(e,r,E.engine),e},this.getOS=function(){var e={};return e[y]=c,e[_]=c,ne.call(e,r,E.os),P&&!e[y]&&O&&"Unknown"!=O.platform&&(e[y]=O.platform.replace(/chrome os/i,X).replace(/macos/i,J)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===f&&e.length>500?te(e,500):e,this},this.setUA(r),this};ae.VERSION="1.0.37",ae.BROWSER=Z([y,_,m]),ae.CPU=Z([C]),ae.DEVICE=Z([v,S,w,O,A,E,T,P,M]),ae.ENGINE=ae.OS=Z([y,_]),typeof t!==h?(typeof e!==h&&e.exports&&(t=e.exports=ae),t.UAParser=ae):n(1634)?(r=function(){return ae}.call(t,n,t,e))===c||(e.exports=r):typeof o!==h&&(o.UAParser=ae);var se=typeof o!==h&&(o.jQuery||o.Zepto);if(se&&!se.ua){var ce=new ae;se.ua=ce.getResult(),se.ua.get=function(){return ce.getUA()},se.ua.set=function(e){ce.setUA(e);var t=ce.getResult();for(var n in t)se.ua[n]=t[n]}}}("object"==typeof window?window:this)},,function(e,t,n){"use strict";var r=n(89),o=n(374),c=n(314);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],c=n.cache;if(c.has(o))return c.get(o);var l=e.apply(this,r);return n.cache=c.set(o,l)||c,l};return n.cache=new(l.Cache||c.a),n}l.Cache=c.a;var h=l;var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,m=function(e){var t=h(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(d,(function(e,n,r,o){t.push(r?o.replace(f,"$1"):n||e)})),t})),v=n(128),y=n(265),w=n(172),S=v.a?v.a.prototype:void 0,_=S?S.toString:void 0;var C=function e(t){if("string"==typeof t)return t;if(Object(r.a)(t))return Object(y.a)(t,e)+"";if(Object(w.a)(t))return _?_.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var O=function(e){return null==e?"":C(e)};t.a=function(e,object){return Object(r.a)(e)?e:Object(o.a)(e,object)?[e]:m(O(e))}},,,,,,,,function(e,t,n){"use strict";var r=function(e){return function(object,t,n){for(var r=-1,o=Object(object),c=n(object),l=c.length;l--;){var h=c[e?l:++r];if(!1===t(o[h],h,o))break}return object}}(),o=n(147);var c=function(object,e){return object&&r(object,e,o.a)},l=n(182);var h=function(e,t){return function(n,r){if(null==n)return n;if(!Object(l.a)(n))return e(n,r);for(var o=n.length,c=t?o:-1,h=Object(n);(t?c--:++c<o)&&!1!==r(h[c],c,h););return n}}(c);t.a=h},function(e,t,n){"use strict";var r=function(e,t,n,r){for(var o=-1,c=null==e?0:e.length;++o<c;){var l=e[o];t(r,l,n(l),e)}return r},o=n(536);var c=function(e,t,n,r){return Object(o.a)(e,(function(e,o,c){t(r,e,n(e),c)})),r},l=n(185),h=n(89);t.a=function(e,t){return function(n,o){var d=Object(h.a)(n)?r:c,f=t?t():{};return d(n,e,Object(l.a)(o,2),f)}}},,function(e,t,n){"use strict";var r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},o=n(359),c=n(89),l=n(311),h=n(372),d=n(462),f=Object.prototype.hasOwnProperty;t.a=function(e,t){var n=Object(c.a)(e),m=!n&&Object(o.a)(e),v=!n&&!m&&Object(l.a)(e),y=!n&&!m&&!v&&Object(d.a)(e),w=n||m||v||y,S=w?r(e.length,String):[],_=S.length;for(var C in e)!t&&!f.call(e,C)||w&&("length"==C||v&&("offset"==C||"parent"==C)||y&&("buffer"==C||"byteLength"==C||"byteOffset"==C)||Object(h.a)(C,_))||S.push(C);return S}},function(e,t,n){"use strict";var r=n(373);t.a=function(object,path,e){var t=null==object?void 0:Object(r.a)(object,path);return void 0===t?e:t}},function(e,t,n){"use strict";n(6),n(49),n(94),n(7),n(66),n(39),n(22),n(54),n(24),n(5),n(34),n(50),n(51),n(33),n(8),n(36),n(60);var r=n(1);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(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 c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,l=!0,h=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){h=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(h)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var l=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},h=window.cancelIdleCallback||function(e){clearTimeout(e)},d=window.IntersectionObserver&&new window.IntersectionObserver((function(e){e.forEach((function(e){var t=e.intersectionRatio,link=e.target;t<=0||!link.__prefetch||link.__prefetch()}))}));t.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=l(this.observe,{timeout:2e3}))},beforeDestroy:function(){h(this.handleId),this.__observed&&(d.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){d&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),d.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(e){return e.components.default})).filter((function(e){return"function"==typeof e&&!e.options&&!e.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){d.unobserve(this.$el);var e,t=o(this.getPrefetchComponents());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(e){t.e(e)}finally{t.f()}}}}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(436),o=n(139),c=n(121);function l(e,t){Object(c.a)(2,arguments);var n=Object(o.a)(e).getTime(),l=Object(r.a)(t);return new Date(n+l)}},,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(8);var r=n(0),o=(n(12),n(43),n(105),n(5),n(1577),n(218)),c=n(150),l=n(23),h=n(103);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=h.a.extend({name:"v-window",directives:{Touch:o.a},provide:function(){return{windowGroup:this}},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:Boolean,showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data:function(){return{changedByDelimiters:!1,internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive:function(){return this.transitionCount>0},classes:function(){return f(f({},h.a.options.computed.classes.call(this)),{},{"v-window--show-arrows-on-hover":this.showArrowsOnHover})},computedTransition:function(){if(!this.isBooted)return"";var e=this.vertical?"y":"x",t=(this.internalReverse?!this.isReverse:this.isReverse)?"-reverse":"";return"v-window-".concat(e).concat(t,"-transition")},hasActiveItems:function(){return Boolean(this.items.find((function(e){return!e.disabled})))},hasNext:function(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev:function(){return this.continuous||this.internalIndex>0},internalIndex:function(){var e=this;return this.items.findIndex((function(t,i){return e.internalValue===e.getValue(t,i)}))},internalReverse:function(){return this.$vuetify.rtl?!this.reverse:this.reverse}},watch:{internalIndex:function(e,t){this.isReverse=this.updateReverse(e,t)}},mounted:function(){var e=this;window.requestAnimationFrame((function(){return e.isBooted=!0}))},methods:{genDefaultSlot:function(){return this.$slots.default},genContainer:function(){var e=[this.genDefaultSlot()];return this.showArrows&&e.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},e)},genIcon:function(e,t,n){var r,o,h,d=this,f={click:function(e){e.stopPropagation(),d.changedByDelimiters=!0,n()}},m={"aria-label":this.$vuetify.lang.t("$vuetify.carousel.".concat(e))},v=null!==(h=null===(o=(r=this.$scopedSlots)[e])||void 0===o?void 0:o.call(r,{on:f,attrs:m}))&&void 0!==h?h:[this.$createElement(c.a,{props:{icon:!0},attrs:m,on:f},[this.$createElement(l.a,{props:{large:!0}},t)])];return this.$createElement("div",{staticClass:"v-window__".concat(e)},v)},genControlIcons:function(){var e=[],t=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&t&&"string"==typeof t){var n=this.genIcon("prev",t,this.prev);n&&e.push(n)}var r=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&r&&"string"==typeof r){var o=this.genIcon("next",r,this.next);o&&e.push(o)}return e},getNextIndex:function(e){var t=(e+1)%this.items.length;return this.items[t].disabled?this.getNextIndex(t):t},getPrevIndex:function(e){var t=(e+this.items.length-1)%this.items.length;return this.items[t].disabled?this.getPrevIndex(t):t},next:function(){if(this.hasActiveItems&&this.hasNext){var e=this.getNextIndex(this.internalIndex),t=this.items[e];this.internalValue=this.getValue(t,e)}},prev:function(){if(this.hasActiveItems&&this.hasPrev){var e=this.getPrevIndex(this.internalIndex),t=this.items[e];this.internalValue=this.getValue(t,e)}},updateReverse:function(e,t){var n=this.items.length,r=n-1;return n<=2?e<t:e===r&&0===t||(0!==e||t!==r)&&e<t}},render:function(e){var t=this,data={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){var n=this.touch||{left:function(){t.$vuetify.rtl?t.prev():t.next()},right:function(){t.$vuetify.rtl?t.next():t.prev()},end:function(e){e.stopPropagation()},start:function(e){e.stopPropagation()}};data.directives.push({name:"touch",value:n})}return e("div",data,[this.genContainer()])}})},function(e,t,n){"use strict";var r=n(275),o=n(159),c=n(218),l=n(4),h=n(13),d=Object(h.a)(r.a,Object(o.a)("windowGroup","v-window-item","v-window"));t.a=d.extend().extend().extend({name:"v-window-item",directives:{Touch:c.a},props:{disabled:Boolean,reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data:function(){return{isActive:!1,inTransition:!1}},computed:{classes:function(){return this.groupClasses},computedTransition:function(){return this.windowGroup.internalReverse?void 0!==this.reverseTransition?this.reverseTransition||"":this.windowGroup.computedTransition:void 0!==this.transition?this.transition||"":this.windowGroup.computedTransition}},methods:{genDefaultSlot:function(){return this.$slots.default},genWindowItem:function(){return this.$createElement("div",{staticClass:"v-window-item",class:this.classes,directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.genDefaultSlot())},onAfterTransition:function(){this.inTransition&&(this.inTransition=!1,this.windowGroup.transitionCount>0&&(this.windowGroup.transitionCount--,0===this.windowGroup.transitionCount&&(this.windowGroup.transitionHeight=void 0)))},onBeforeTransition:function(){this.inTransition||(this.inTransition=!0,0===this.windowGroup.transitionCount&&(this.windowGroup.transitionHeight=Object(l.i)(this.windowGroup.$el.clientHeight)),this.windowGroup.transitionCount++)},onTransitionCancelled:function(){this.onAfterTransition()},onEnter:function(e){var t=this;this.inTransition&&this.$nextTick((function(){t.computedTransition&&t.inTransition&&(t.windowGroup.transitionHeight=Object(l.i)(e.clientHeight))}))}},render:function(e){var t=this;return e("transition",{props:{name:this.computedTransition},on:{beforeEnter:this.onBeforeTransition,afterEnter:this.onAfterTransition,enterCancelled:this.onTransitionCancelled,beforeLeave:this.onBeforeTransition,afterLeave:this.onAfterTransition,leaveCancelled:this.onTransitionCancelled,enter:this.onEnter}},this.showLazyContent((function(){return[t.genWindowItem()]})))}})},,function(e,t,n){e.exports={}},function(e,t,n){"use strict";var r=n(622);t.a=r.a},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(47),o=n(828),c=n(58).Buffer,l=new Array(16);function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function d(e,t){return e<<t|e>>>32-t}function f(a,b,e,t,n,r,s){return d(a+(b&e|~b&t)+n+r|0,s)+b|0}function m(a,b,e,t,n,r,s){return d(a+(b&t|e&~t)+n+r|0,s)+b|0}function v(a,b,e,t,n,r,s){return d(a+(b^e^t)+n+r|0,s)+b|0}function y(a,b,e,t,n,r,s){return d(a+(e^(b|~t))+n+r|0,s)+b|0}r(h,o),h.prototype._update=function(){for(var e=l,i=0;i<16;++i)e[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,t=this._c,n=this._d;a=f(a,b,t,n,e[0],3614090360,7),n=f(n,a,b,t,e[1],3905402710,12),t=f(t,n,a,b,e[2],606105819,17),b=f(b,t,n,a,e[3],3250441966,22),a=f(a,b,t,n,e[4],4118548399,7),n=f(n,a,b,t,e[5],1200080426,12),t=f(t,n,a,b,e[6],2821735955,17),b=f(b,t,n,a,e[7],4249261313,22),a=f(a,b,t,n,e[8],1770035416,7),n=f(n,a,b,t,e[9],2336552879,12),t=f(t,n,a,b,e[10],4294925233,17),b=f(b,t,n,a,e[11],2304563134,22),a=f(a,b,t,n,e[12],1804603682,7),n=f(n,a,b,t,e[13],4254626195,12),t=f(t,n,a,b,e[14],2792965006,17),a=m(a,b=f(b,t,n,a,e[15],1236535329,22),t,n,e[1],4129170786,5),n=m(n,a,b,t,e[6],3225465664,9),t=m(t,n,a,b,e[11],643717713,14),b=m(b,t,n,a,e[0],3921069994,20),a=m(a,b,t,n,e[5],3593408605,5),n=m(n,a,b,t,e[10],38016083,9),t=m(t,n,a,b,e[15],3634488961,14),b=m(b,t,n,a,e[4],3889429448,20),a=m(a,b,t,n,e[9],568446438,5),n=m(n,a,b,t,e[14],3275163606,9),t=m(t,n,a,b,e[3],4107603335,14),b=m(b,t,n,a,e[8],1163531501,20),a=m(a,b,t,n,e[13],2850285829,5),n=m(n,a,b,t,e[2],4243563512,9),t=m(t,n,a,b,e[7],1735328473,14),a=v(a,b=m(b,t,n,a,e[12],2368359562,20),t,n,e[5],4294588738,4),n=v(n,a,b,t,e[8],2272392833,11),t=v(t,n,a,b,e[11],1839030562,16),b=v(b,t,n,a,e[14],4259657740,23),a=v(a,b,t,n,e[1],2763975236,4),n=v(n,a,b,t,e[4],1272893353,11),t=v(t,n,a,b,e[7],4139469664,16),b=v(b,t,n,a,e[10],3200236656,23),a=v(a,b,t,n,e[13],681279174,4),n=v(n,a,b,t,e[0],3936430074,11),t=v(t,n,a,b,e[3],3572445317,16),b=v(b,t,n,a,e[6],76029189,23),a=v(a,b,t,n,e[9],3654602809,4),n=v(n,a,b,t,e[12],3873151461,11),t=v(t,n,a,b,e[15],530742520,16),a=y(a,b=v(b,t,n,a,e[2],3299628645,23),t,n,e[0],4096336452,6),n=y(n,a,b,t,e[7],1126891415,10),t=y(t,n,a,b,e[14],2878612391,15),b=y(b,t,n,a,e[5],4237533241,21),a=y(a,b,t,n,e[12],1700485571,6),n=y(n,a,b,t,e[3],2399980690,10),t=y(t,n,a,b,e[10],4293915773,15),b=y(b,t,n,a,e[1],2240044497,21),a=y(a,b,t,n,e[8],1873313359,6),n=y(n,a,b,t,e[15],4264355552,10),t=y(t,n,a,b,e[6],2734768916,15),b=y(b,t,n,a,e[13],1309151649,21),a=y(a,b,t,n,e[4],4149444226,6),n=y(n,a,b,t,e[11],3174756917,10),t=y(t,n,a,b,e[2],718787259,15),b=y(b,t,n,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+t|0,this._d=this._d+n|0},h.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=c.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=h},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(67))},function(e,t,n){"use strict";var r=n(348).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,n,c){if("function"==typeof n)return e(t,null,n);n||(n={}),c=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}(c||o);var l=n.readable||!1!==n.readable&&t.readable,h=n.writable||!1!==n.writable&&t.writable,d=function(){t.writable||m()},f=t._writableState&&t._writableState.finished,m=function(){h=!1,f=!0,l||c.call(t)},v=t._readableState&&t._readableState.endEmitted,y=function(){l=!1,v=!0,h||c.call(t)},w=function(e){c.call(t,e)},S=function(){var e;return l&&!v?(t._readableState&&t._readableState.ended||(e=new r),c.call(t,e)):h&&!f?(t._writableState&&t._writableState.ended||(e=new r),c.call(t,e)):void 0},_=function(){t.req.on("finish",m)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?h&&!t._writableState&&(t.on("end",d),t.on("close",d)):(t.on("complete",m),t.on("abort",S),t.req?_():t.on("request",_)),t.on("end",y),t.on("finish",m),!1!==n.error&&t.on("error",w),t.on("close",S),function(){t.removeListener("complete",m),t.removeListener("abort",S),t.removeListener("request",_),t.req&&t.req.removeListener("finish",m),t.removeListener("end",d),t.removeListener("close",d),t.removeListener("finish",m),t.removeListener("end",y),t.removeListener("error",w),t.removeListener("close",S)}}},function(e,t,n){"use strict";var r=n(46).Buffer,o=n(47),c=n(828),l=new Array(16),h=[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],d=[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],f=[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],m=[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],v=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function y(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function w(e,t){return e<<t|e>>>32-t}function S(a,b,e,t,n,r,o,s){return w(a+(b^e^t)+r+o|0,s)+n|0}function _(a,b,e,t,n,r,o,s){return w(a+(b&e|~b&t)+r+o|0,s)+n|0}function C(a,b,e,t,n,r,o,s){return w(a+((b|~e)^t)+r+o|0,s)+n|0}function O(a,b,e,t,n,r,o,s){return w(a+(b&t|e&~t)+r+o|0,s)+n|0}function A(a,b,e,t,n,r,o,s){return w(a+(b^(e|~t))+r+o|0,s)+n|0}o(y,c),y.prototype._update=function(){for(var e=l,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,dl=0|this._d,c=0|this._e,y=0|this._a,br=0|this._b,T=0|this._c,E=0|this._d,P=0|this._e,i=0;i<80;i+=1){var M,tr;i<16?(M=S(n,r,o,dl,c,e[h[i]],v[0],f[i]),tr=A(y,br,T,E,P,e[d[i]],hr[0],m[i])):i<32?(M=_(n,r,o,dl,c,e[h[i]],v[1],f[i]),tr=O(y,br,T,E,P,e[d[i]],hr[1],m[i])):i<48?(M=C(n,r,o,dl,c,e[h[i]],v[2],f[i]),tr=C(y,br,T,E,P,e[d[i]],hr[2],m[i])):i<64?(M=O(n,r,o,dl,c,e[h[i]],v[3],f[i]),tr=_(y,br,T,E,P,e[d[i]],hr[3],m[i])):(M=A(n,r,o,dl,c,e[h[i]],v[4],f[i]),tr=S(y,br,T,E,P,e[d[i]],hr[4],m[i])),n=c,c=dl,dl=w(o,10),o=r,r=M,y=P,P=E,E=w(T,10),T=br,br=tr}var x=this._b+o+E|0;this._b=this._c+dl+P|0,this._c=this._d+c+y|0,this._d=this._e+n+br|0,this._e=this._a+r+T|0,this._a=x},y.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=y},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(1290),t.sha1=n(1291),t.sha224=n(1292),t.sha256=n(835),t.sha384=n(1293),t.sha512=n(836)},function(e,t,n){(t=e.exports=n(837)).Stream=t,t.Readable=t,t.Writable=n(585),t.Duplex=n(306),t.Transform=n(840),t.PassThrough=n(1298)},function(e,t,n){var r=n(46),o=r.Buffer;function c(e,t){for(var n in e)t[n]=e[n]}function l(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=l),c(o,l),l.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},l.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},l.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},l.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t){var r=n(483);function o(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 o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=C;var c,l=r.nextTick;C.WritableState=_;var h=Object.create(n(411));h.inherits=n(47);var d={deprecate:n(579)},f=n(838),m=n(584).Buffer,v=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var y,w=n(839);function S(){}function _(e,t){c=c||n(306),e=e||{};var h=t instanceof c;this.objectMode=!!e.objectMode,h&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var d=e.highWaterMark,f=e.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:h&&(f||0===f)?f:m,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 v=!1===e.decodeStrings;this.decodeStrings=!v,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,o=n.sync,c=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,c){--t.pendingcb,n?(r.nextTick(c,o),r.nextTick(M,e,t),e._writableState.errorEmitted=!0,e.emit("error",o)):(c(o),e._writableState.errorEmitted=!0,e.emit("error",o),M(e,t))}(e,n,o,t,c);else{var h=E(n);h||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),o?l(A,e,n,h,c):A(e,n,h,c)}}(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 o(this)}function C(e){if(c=c||n(306),!(y.call(C,this)||this instanceof c))return new C(e);this._writableState=new _(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)),f.call(this)}function O(e,t,n,r,o,c,l){t.writelen=r,t.writecb=l,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,c,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),M(e,t)}function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,c=new Array(r),l=t.corkedRequestsFree;l.entry=n;for(var h=0,d=!0;n;)c[h]=n,n.isBuf||(d=!1),n=n.next,h+=1;c.allBuffers=d,O(e,t,!0,t.length,c,"",l.finish),t.pendingcb++,t.lastBufferedRequest=null,l.next?(t.corkedRequestsFree=l.next,l.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,m=n.encoding,v=n.callback;if(O(e,t,!1,t.objectMode?1:f.length,f,m,v),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),M(e,t)}))}function M(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(P,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}h.inherits(C,f),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:d.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]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(object){return!!y.call(this,object)||this===C&&(object&&object._writableState instanceof _)}})):y=function(object){return object instanceof this},C.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},C.prototype.write=function(e,t,n){var o,c=this._writableState,l=!1,h=!c.objectMode&&(o=e,m.isBuffer(o)||o instanceof v);return h&&!m.isBuffer(e)&&(e=function(e){return m.from(e)}(e)),"function"==typeof t&&(n=t,t=null),h?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof n&&(n=S),c.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(h||function(e,t,n,o){var c=!0,l=!1;return null===n?l=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(e.emit("error",l),r.nextTick(o,l),c=!1),c}(this,c,e,n))&&(c.pendingcb++,l=function(e,t,n,r,o,c){if(!n){var l=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,n));return t}(t,r,o);r!==l&&(n=!0,o="buffer",r=l)}var h=t.objectMode?1:r.length;t.length+=h;var d=t.length<t.highWaterMark;d||(t.needDrain=!0);if(t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:c,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,h,r,o,c);return d}(this,c,h,e,t,n)),l},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},C.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(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var o=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,n){t.ending=!0,M(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,o,n)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=w.destroy,C.prototype._undestroy=w.undestroy,C.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(67))},function(e,t,n){"use strict";var r=n(178);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(data){return 0===data.length?[]:"decrypt"===this.type?this._updateDecrypt(data):this._updateEncrypt(data)},o.prototype._buffer=function(data,e){for(var t=Math.min(this.buffer.length-this.bufferOff,data.length-e),i=0;i<t;i++)this.buffer[this.bufferOff+i]=data[e+i];return this.bufferOff+=t,t},o.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(data){var e=0,t=0,n=(this.bufferOff+data.length)/this.blockSize|0,r=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(data,e),this.bufferOff===this.buffer.length&&(t+=this._flushBuffer(r,t)));for(var o=data.length-(data.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(data,e,r,t),t+=this.blockSize;for(;e<data.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=data[e];return r},o.prototype._updateDecrypt=function(data){for(var e=0,t=0,n=Math.ceil((this.bufferOff+data.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(data,e),t+=this._flushBuffer(r,t);return e+=this._buffer(data,e),r},o.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},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},o.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},o.prototype._unpad=function(e){return e},o.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(1311),o=n(1319),c=n(853);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=o.createDecipher,t.createDecipheriv=t.Decipheriv=o.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(c)}},function(e,t,n){var r={ECB:n(1312),CBC:n(1313),CFB:n(1314),CFB8:n(1315),CFB1:n(1316),OFB:n(1317),CTR:n(851),GCM:n(851)},o=n(853);for(var c in o)o[c].module=r[o[c].mode];e.exports=o},function(e,t,n){var r;function o(e){this.rand=e}if(e.exports=function(e){return r||(r=new o(null)),r.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var c=n(1323);if("function"!=typeof c.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return c.randomBytes(e)}}catch(e){}},function(e,t,n){"use strict";var r=n(351).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,n,c){if("function"==typeof n)return e(t,null,n);n||(n={}),c=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}(c||o);var l=n.readable||!1!==n.readable&&t.readable,h=n.writable||!1!==n.writable&&t.writable,d=function(){t.writable||m()},f=t._writableState&&t._writableState.finished,m=function(){h=!1,f=!0,l||c.call(t)},v=t._readableState&&t._readableState.endEmitted,y=function(){l=!1,v=!0,h||c.call(t)},w=function(e){c.call(t,e)},S=function(){var e;return l&&!v?(t._readableState&&t._readableState.ended||(e=new r),c.call(t,e)):h&&!f?(t._writableState&&t._writableState.ended||(e=new r),c.call(t,e)):void 0},_=function(){t.req.on("finish",m)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?h&&!t._writableState&&(t.on("end",d),t.on("close",d)):(t.on("complete",m),t.on("abort",S),t.req?_():t.on("request",_)),t.on("end",y),t.on("finish",m),!1!==n.error&&t.on("error",w),t.on("close",S),function(){t.removeListener("complete",m),t.removeListener("abort",S),t.removeListener("request",_),t.req&&t.req.removeListener("finish",m),t.removeListener("end",d),t.removeListener("close",d),t.removeListener("finish",m),t.removeListener("end",y),t.removeListener("error",w),t.removeListener("close",S)}}},function(e,t,n){(function(t){var r=n(1336),o=n(347);function c(e){var t,n=e.modulus.byteLength();do{t=new r(o(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function l(e,n){var o=function(e){var t=c(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),l=n.modulus.byteLength(),h=new r(e).mul(o.blinder).umod(n.modulus),d=h.toRed(r.mont(n.prime1)),f=h.toRed(r.mont(n.prime2)),m=n.coefficient,p=n.prime1,q=n.prime2,v=d.redPow(n.exponent1).fromRed(),y=f.redPow(n.exponent2).fromRed(),w=v.isub(y).imul(m).umod(p).imul(q);return y.iadd(w).imul(o.unblinder).umod(n.modulus).toArrayLike(t,"be",l)}l.getr=c,e.exports=l}).call(this,n(46).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(1338).version,r.utils=n(179),r.rand=n(589),r.curve=n(865),r.curves=n(593),r.ec=n(1349),r.eddsa=n(1353)},function(e,t,n){"use strict";var pre,r=t,o=n(594),c=n(865),l=n(179).assert;function h(e){"short"===e.type?this.curve=new c.short(e):"edwards"===e.type?this.curve=new c.edwards(e):this.curve=new c.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new h(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=h,d("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"]}),d("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"]}),d("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"]}),d("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"]}),d("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"]}),d("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"]}),d("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{pre=n(1348)}catch(e){pre=void 0}d("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",pre]})},function(e,t,n){var r=t;r.utils=n(213),r.common=n(413),r.sha=n(1342),r.ripemd=n(1346),r.hmac=n(1347),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(t){var r,o=n(46),c=o.Buffer,l={};for(r in o)o.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(l[r]=o[r]);var h=l.Buffer={};for(r in c)c.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(h[r]=c[r]);if(l.Buffer.prototype=c.prototype,h.from&&h.from!==Uint8Array.from||(h.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return c(e,t,n)}),h.alloc||(h.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=c(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!l.kStringMaxLength)try{l.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),e.exports=l}).call(this,n(83))},function(e,t,n){"use strict";const r=n(597).Reporter,o=n(414).EncoderBuffer,c=n(414).DecoderBuffer,l=n(178),h=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(h);function f(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=f;const m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){const e=this._baseState,t={};m.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},f.prototype._wrap=function(){const e=this._baseState;d.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},f.prototype._init=function(body){const e=this._baseState;l(null===e.parent),body.call(this),e.children=e.children.filter((function(e){return e._baseState.parent===this}),this),l.equal(e.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){const 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&&(l(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(l(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const 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){f.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),h.forEach((function(e){f.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return l(null===t.tag),t.tag=e,this._useArgs(n),this}})),f.prototype.use=function(e){l(e);const t=this._baseState;return l(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){const t=this._baseState;return l(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){const t=this._baseState;return l(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){const t=this._baseState;return l(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){const t=this._baseState;return l(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){const t=this._baseState;return l(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},f.prototype.contains=function(e){const t=this._baseState;return l(null===t.use),t.contains=e,this},f.prototype._decode=function(input,e){const t=this._baseState;if(null===t.parent)return input.wrapResult(t.children[0]._decode(input,e));let n,r=t.default,o=!0,l=null;if(null!==t.key&&(l=input.enterKey(t.key)),t.optional){let n=null;if(null!==t.explicit?n=t.explicit:null!==t.implicit?n=t.implicit:null!==t.tag&&(n=t.tag),null!==n||t.any){if(o=this._peekTag(input,n,t.any),input.isError(o))return o}else{const n=input.save();try{null===t.choice?this._decodeGeneric(t.tag,input,e):this._decodeChoice(input,e),o=!0}catch(e){o=!1}input.restore(n)}}if(t.obj&&o&&(n=input.enterObject()),o){if(null!==t.explicit){const e=this._decodeTag(input,t.explicit);if(input.isError(e))return e;input=e}const n=input.offset;if(null===t.use&&null===t.choice){let e;t.any&&(e=input.save());const body=this._decodeTag(input,null!==t.implicit?t.implicit:t.tag,t.any);if(input.isError(body))return body;t.any?r=input.raw(e):input=body}if(e&&e.track&&null!==t.tag&&e.track(input.path(),n,input.length,"tagged"),e&&e.track&&null!==t.tag&&e.track(input.path(),input.offset,input.length,"content"),t.any||(r=null===t.choice?this._decodeGeneric(t.tag,input,e):this._decodeChoice(input,e)),input.isError(r))return r;if(t.any||null!==t.choice||null===t.children||t.children.forEach((function(t){t._decode(input,e)})),t.contains&&("octstr"===t.tag||"bitstr"===t.tag)){const data=new c(r);r=this._getUse(t.contains,input._reporterState.obj)._decode(data,e)}}return t.obj&&o&&(r=input.leaveObject(n)),null===t.key||null===r&&!0!==o?null!==l&&input.exitKey(l):input.leaveKey(l,t.key,r),r},f.prototype._decodeGeneric=function(e,input,t){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(input,e,n.args[0],t):/str$/.test(e)?this._decodeStr(input,e,t):"objid"===e&&n.args?this._decodeObjid(input,n.args[0],n.args[1],t):"objid"===e?this._decodeObjid(input,null,null,t):"gentime"===e||"utctime"===e?this._decodeTime(input,e,t):"null_"===e?this._decodeNull(input,t):"bool"===e?this._decodeBool(input,t):"objDesc"===e?this._decodeStr(input,e,t):"int"===e||"enum"===e?this._decodeInt(input,n.args&&n.args[0],t):null!==n.use?this._getUse(n.use,input._reporterState.obj)._decode(input,t):input.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),l(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},f.prototype._decodeChoice=function(input,e){const t=this._baseState;let n=null,r=!1;return Object.keys(t.choice).some((function(o){const c=input.save(),l=t.choice[o];try{const t=l._decode(input,e);if(input.isError(t))return!1;n={type:o,value:t},r=!0}catch(e){return input.restore(c),!1}return!0}),this),r?n:input.error("Choice not matched")},f.prototype._createEncoderBuffer=function(data){return new o(data,this.reporter)},f.prototype._encode=function(data,e,t){const n=this._baseState;if(null!==n.default&&n.default===data)return;const r=this._encodeValue(data,e,t);return void 0===r||this._skipDefault(r,e,t)?void 0:r},f.prototype._encodeValue=function(data,e,t){const n=this._baseState;if(null===n.parent)return n.children[0]._encode(data,e||new r);let o=null;if(this.reporter=e,n.optional&&void 0===data){if(null===n.default)return;data=n.default}let content=null,c=!1;if(n.any)o=this._createEncoderBuffer(data);else if(n.choice)o=this._encodeChoice(data,e);else if(n.contains)content=this._getUse(n.contains,t)._encode(data,e),c=!0;else if(n.children)content=n.children.map((function(t){if("null_"===t._baseState.tag)return t._encode(null,e,data);if(null===t._baseState.key)return e.error("Child should have a key");const n=e.enterKey(t._baseState.key);if("object"!=typeof data)return e.error("Child expected, but input is not object");const r=t._encode(data[t._baseState.key],e,data);return e.leaveKey(n),r}),this).filter((function(e){return e})),content=this._createEncoderBuffer(content);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(data))return e.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,content=this._createEncoderBuffer(data.map((function(t){const n=this._baseState;return this._getUse(n.args[0],data)._encode(t,e)}),t))}else null!==n.use?o=this._getUse(n.use,t)._encode(data,e):(content=this._encodePrimitive(n.tag,data),c=!0);if(!n.any&&null===n.choice){const t=null!==n.implicit?n.implicit:n.tag,r=null===n.implicit?"universal":"context";null===t?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(o=this._encodeComposite(t,c,r,content))}return null!==n.explicit&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o},f.prototype._encodeChoice=function(data,e){const t=this._baseState,n=t.choice[data.type];return n||l(!1,data.type+" not found in "+JSON.stringify(Object.keys(t.choice))),n._encode(data.value,e)},f.prototype._encodePrimitive=function(e,data){const t=this._baseState;if(/str$/.test(e))return this._encodeStr(data,e);if("objid"===e&&t.args)return this._encodeObjid(data,t.reverseArgs[0],t.args[1]);if("objid"===e)return this._encodeObjid(data,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(data,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(data,t.args&&t.reverseArgs[0]);if("bool"===e)return this._encodeBool(data);if("objDesc"===e)return this._encodeStr(data,e);throw new Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,n){"use strict";const r=n(47);function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function c(path,e){this.path=path,this.rethrow(e)}t.Reporter=o,o.prototype.isError=function(e){return e instanceof c},o.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(data){const e=this._reporterState;e.obj=data.obj,e.path=e.path.slice(0,data.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},o.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof c;if(t=r?e:new c(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},o.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(c,Error),c.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,c),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){"use strict";function r(map){const e={};return Object.keys(map).forEach((function(t){(0|t)==t&&(t|=0);const n=map[t];e[n]=t})),e}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(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(t.tag)},,,,function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,function(e,t,n){"use strict";var r=n(1483);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=n(355)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,c="RFC1738",l="RFC3986";e.exports={default:l,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:c,RFC3986:l}},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,c.default)(1,arguments);var t=(0,o.default)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t};var o=r(n(215)),c=r(n(145));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,d,f,m,v,y,w;(0,c.default)(1,arguments);var S=(0,h.getDefaultOptions)(),_=(0,l.default)(null!==(n=null!==(r=null!==(d=null!==(f=null==t?void 0:t.weekStartsOn)&&void 0!==f?f:null==t||null===(m=t.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==d?d:S.weekStartsOn)&&void 0!==r?r:null===(y=S.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==n?n:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=(0,o.default)(e),O=C.getUTCDay(),A=(O<_?7:0)+O-_;return C.setUTCDate(C.getUTCDate()-A),C.setUTCHours(0,0,0,0),C};var o=r(n(215)),c=r(n(145)),l=r(n(272)),h=n(492);e.exports=t.default},,,function(e,t,n){"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(code){return{code:code,error:t.codes[code]}}},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(1402),n(38)),c=n(30),l=n(110),h=n(13);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}t.a=Object(h.a)(o.a,c.a,l.a).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim:function(){var data=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",data)},classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},styles:function(){return{zIndex:this.zIndex}}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-overlay__content"},this.$slots.default)}},render:function(e){var t=[this.__scrim];return this.isActive&&t.push(this.genContent()),e("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},t)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(328),n(329),n(28),n(1206),n(163)),c=n(312),l=n(131),h=n(13);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(h.a)(c.a,l.a,o.a).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return f(f({"v-card":!0},l.a.options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},o.a.options.computed.classes.call(this))},styles:function(){var style=f({},o.a.options.computed.styles.call(this));return this.img&&(style.background='url("'.concat(this.img,'") center center / cover no-repeat')),style}},methods:{genProgress:function(){var e=c.a.options.methods.genProgress.call(this);return e?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[e]):null}},render:function(e){var t=this.generateRouteLink(),n=t.tag,data=t.data;return data.style=this.styles,this.isClickable&&(data.attrs=data.attrs||{},data.attrs.tabindex=0),e(n,this.setBackgroundColor(this.color,data),[this.genProgress(),this.$slots.default])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(418),n(1403),n(117)),c=n(233),l=n(38),h=n(220),d=n(365),f=n(30),m=n(4),v=n(13);function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var w=Object(v.a)(l.a,Object(h.b)(["absolute","fixed","top","bottom"]),d.a,f.a);t.a=w.extend({name:"v-progress-linear",directives:{intersect:c.a},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(m.i)(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(m.i)(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return Object(r.a)(Object(r.a)({opacity:e},this.isReversed?"right":"left",Object(m.i)(this.normalizedValue,"%")),"width",Object(m.i)(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%"))},classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible},this.themeClasses)},computedTransition:function(){return this.indeterminate?o.d:o.f},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var e={};return this.active||(e.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(e.width=Object(m.i)(this.normalizedBuffer,"%")),e}},methods:{genContent:function(){var slot=Object(m.t)(this,"default",{value:this.internalLazyValue});return slot?this.$createElement("div",{staticClass:"v-progress-linear__content"},slot):null},genListeners:function(){var e=this.$listeners;return this.reactive&&(e.click=this.onClick),e},genProgressBar:function(e){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(r.a)({},e,!0)}))},onClick:function(e){if(this.reactive){var t=this.$el.getBoundingClientRect().width;this.internalValue=e.offsetX/t*100}},onObserve:function(e,t,n){this.isVisible=n},normalize:function(e){return e<0?0:e>100?100:parseFloat(e)}},render:function(e){return e("div",{staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?Object(m.i)(this.height):0,top:this.top?0:void 0},on:this.genListeners()},[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},function(e,t,n){"use strict";n(28),n(1408);var r=n(219),o=n(13),c=n(4);t.a=Object(o.a)(r.a).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio:function(){return Number(this.aspectRatio)},aspectStyle:function(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer:function(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(c.t)(this))}},render:function(e){return e("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1409),n(30));function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=o.a.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render:function(e){var t;return this.$attrs.role&&"separator"!==this.$attrs.role||(t=this.vertical?"vertical":"horizontal"),e("hr",{class:l({"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical},this.themeClasses),attrs:l({role:"separator","aria-orientation":t},this.$attrs),on:this.$listeners})}})},function(e,t,n){"use strict";var r=n(14),o=n(0),c=(n(12),n(6),n(7),n(43),n(66),n(39),n(28),n(10),n(11),n(9),n(5),n(51),n(33),n(8),n(98),n(60),n(1410),n(1192)),l=n(234),h=n(263),d=n(221),f=n(429),m=n(509),v=n(363),y=n(30),w=n(274),S=n(175),_=n(13),C=n(26),O=n(4),A=n(667);function T(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function E(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?T(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):T(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var P=Object(_.a)(d.a,h.a,m.a,v.a,y.a,f.a);t.a=P.extend({name:"v-menu",directives:{ClickOutside:w.a,Resize:S.a},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"},contentProps:{type:Object,default:function(){return{}}}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var e=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(O.i)(this.calcXOverflow(this.calcLeftAuto(),e))||"0":this.calcLeft(e)||"0"},calculatedMaxHeight:function(){return(this.auto?"200px":Object(O.i)(this.maxHeight))||"0"},calculatedMaxWidth:function(){return Object(O.i)(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(O.i)(this.minWidth)||"0";var e=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),t=isNaN(parseInt(this.calculatedMaxWidth))?e:parseInt(this.calculatedMaxWidth);return Object(O.i)(Math.min(t,e))||"0"},calculatedTop:function(){return(this.auto?Object(O.i)(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop())||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(e){return e.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(e){e||(this.listIndex=-1)},isContentActive:function(e){this.hasJustFocused=e},listIndex:function(e,t){if(e in this.tiles){var n=this.tiles[e];n.classList.add("v-list-item--highlighted");var r=this.$refs.content.scrollTop,o=this.$refs.content.clientHeight;r>n.offsetTop-8?Object(A.b)(n.offsetTop-n.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):r+o<n.offsetTop+n.clientHeight+8&&Object(A.b)(n.offsetTop-o+2*n.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content})}t in this.tiles&&this.tiles[t].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(C.e)("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var e=this;this.updateDimensions(),requestAnimationFrame((function(){e.startTransition().then((function(){e.$refs.content&&(e.calculatedTopAuto=e.calcTopAuto(),e.auto&&(e.$refs.content.scrollTop=e.calcScrollPosition()))}))}))},calcScrollPosition:function(){var e=this.$refs.content,t=e.querySelector(".v-list-item--active"),n=e.scrollHeight-e.offsetHeight;return t?Math.min(n,Math.max(0,t.offsetTop-e.offsetHeight/2+t.offsetHeight/2)):e.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var e=this.$refs.content,t=e.querySelector(".v-list-item--active");if(t||(this.selectedIndex=null),this.offsetY||!t)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(t);var n=t.offsetTop-this.calcScrollPosition(),r=e.querySelector(".v-list-item").offsetTop;return this.computedTop-n-r-1},changeListIndex:function(e){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(e.keyCode!==O.y.tab){if(e.keyCode===O.y.down)this.nextTile();else if(e.keyCode===O.y.up)this.prevTile();else if(e.keyCode===O.y.end)this.lastTile();else if(e.keyCode===O.y.home)this.firstTile();else{if(e.keyCode!==O.y.enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}e.preventDefault()}else this.isActive=!1},closeConditional:function(e){var t=e.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(t)},genActivatorAttributes:function(){var e=l.a.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?E(E({},e),{},{"aria-activedescendant":this.activeTile.id}):e},genActivatorListeners:function(){var e=f.a.options.methods.genActivatorListeners.call(this);return this.disableKeys||(e.keydown=this.onKeyDown),e},genTransition:function(){var content=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[content]):content},genDirectives:function(){var e=this,t=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&t.push({name:"click-outside",value:{handler:function(){e.isActive=!1},closeConditional:this.closeConditional,include:function(){return[e.$el].concat(Object(r.a)(e.getOpenDependentElements()))}}}),t},genContent:function(){var e=this,t={attrs:E(E(E({},this.getScopeIdAttrs()),this.contentProps),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:E(E(E({},this.rootThemeClasses),this.roundedClasses),{},Object(o.a)({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(t){t.target.getAttribute("disabled")||e.closeOnContentClick&&(e.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(t.on=t.on||{},t.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(t.on=t.on||{},t.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(t.on=t.on||{},t.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",t,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler:function(){var e=this;this.runDelay("open",(function(){e.hasJustFocused||(e.hasJustFocused=!0)}))},mouseLeaveHandler:function(e){var t=this;this.runDelay("close",(function(){var n;(null===(n=t.$refs.content)||void 0===n?void 0:n.contains(e.relatedTarget))||requestAnimationFrame((function(){t.isActive=!1,t.callDeactivate()}))}))},nextTile:function(){var e=this.tiles[this.listIndex+1];if(!e){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===e.tabIndex&&this.nextTile()},prevTile:function(){var e=this.tiles[this.listIndex-1];if(!e){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===e.tabIndex&&this.prevTile()},lastTile:function(){var e=this.tiles[this.tiles.length-1];e&&(this.listIndex=this.tiles.length-1,-1===e.tabIndex&&this.prevTile())},firstTile:function(){var e=this.tiles[0];e&&(this.listIndex=0,-1===e.tabIndex&&this.nextTile())},onKeyDown:function(e){var t=this;if(!this.disableKeys){if(e.keyCode===O.y.esc){setTimeout((function(){t.isActive=!1}));var n=this.getActivator();this.$nextTick((function(){return n&&n.focus()}))}else!this.isActive&&[O.y.up,O.y.down].includes(e.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return t.changeListIndex(e)}))}},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(e){var t=this;return e("div",{staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]},[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[t.$createElement(c.a,{props:{root:!0,light:t.light,dark:t.dark}},[t.genTransition()])]}))])}})},function(e,t,n){"use strict";n(6),n(49),n(94),n(7),n(66),n(54),n(24),n(10),n(11),n(9),n(5),n(34),n(50),n(33),n(8),n(36);var r=n(0),o=(n(105),n(328),n(129),n(329),n(1411),n(232));function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,h=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){h=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(h)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=o.a.extend().extend({name:"v-list",provide:function(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:function(){return{groups:[]}},computed:{classes:function(){return d(d({},o.a.options.computed.classes.call(this)),{},{"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine})}},methods:{register:function(content){this.groups.push(content)},unregister:function(content){var e=this.groups.findIndex((function(g){return g._uid===content._uid}));e>-1&&this.groups.splice(e,1)},listClick:function(e){if(!this.expand){var t,n=c(this.groups);try{for(n.s();!(t=n.n()).done;){t.value.toggle(e)}}catch(e){n.e(e)}finally{n.f()}}}},render:function(e){var data={staticClass:"v-list",class:this.classes,style:this.styles,attrs:d({role:this.isInNav||this.isInMenu?void 0:"list"},this.attrs$)};return e(this.tag,this.setBackgroundColor(this.color,data),[this.$slots.default])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1412),n(103)),c=n(38),l=n(13);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(l.a)(o.a,c.a).extend({name:"v-list-item-group",provide:function(){return{isInGroup:!0,listItemGroup:this}},computed:{classes:function(){return d(d({},o.a.options.computed.classes.call(this)),{},{"v-list-item-group":!0})}},methods:{genData:function(){return this.setTextColor(this.color,d(d({},o.a.options.methods.genData.call(this)),{},{attrs:{role:"listbox"}}))}}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1414),n(30)),c=n(13);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(c.a)(o.a).extend({name:"v-subheader",props:{inset:Boolean},render:function(e){return e("div",{staticClass:"v-subheader",class:h({"v-subheader--inset":this.inset},this.themeClasses),attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},function(e,t,n){"use strict";var r=n(0),o=(n(489),n(6),n(7),n(10),n(11),n(9),n(5),n(34),n(50),n(8),n(206),n(1417),n(23)),c=n(423),l=n(368),h=n(186),d=n(275),f=n(38),m=n(110),v=n(126),y=n(90),w=n(117),S=n(13),_=n(4);function C(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?C(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):C(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var A=Object(S.a)(h.a,d.a,f.a,Object(v.a)("list"),m.a);t.a=A.extend().extend({name:"v-list-group",directives:{ripple:y.a},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes:function(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive:function(e){!this.subGroup&&e&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created:function(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy:function(){this.list&&this.list.unregister(this)},methods:{click:function(e){var t=this;this.disabled||(this.isBooted=!0,this.$emit("click",e),this.$nextTick((function(){return t.isActive=!t.isActive})))},genIcon:function(e){return this.$createElement(o.a,e)},genAppendIcon:function(){var e=!this.subGroup&&this.appendIcon;return e||this.$slots.appendIcon?this.$createElement(l.a,{staticClass:"v-list-group__header__append-icon"},[this.$slots.appendIcon||this.genIcon(e)]):null},genHeader:function(){return this.$createElement(c.a,{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:Object(r.a)({},this.activeClass,this.isActive),props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:O(O({},this.listeners$),{},{click:this.click})},[this.genPrependIcon(),this.$slots.activator,this.genAppendIcon()])},genItems:function(){var e=this;return this.showLazyContent((function(){return[e.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:e.isActive}]},Object(_.t)(e))]}))},genPrependIcon:function(){var e=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon;return e||this.$slots.prependIcon?this.$createElement(l.a,{staticClass:"v-list-group__header__prepend-icon"},[this.$slots.prependIcon||this.genIcon(e)]):null},onRouteChange:function(e){if(this.group){var t=this.matchRoute(e.path);t&&this.isActive!==t&&this.list&&this.list.listClick(this._uid),this.isActive=t}},toggle:function(e){var t=this,n=this._uid===e;n&&(this.isBooted=!0),this.$nextTick((function(){return t.isActive=n}))},matchRoute:function(e){return null!==e.match(this.group)}},render:function(e){return e("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),e(w.a,this.genItems())])}})},function(e,t,n){"use strict";n(7),n(5);var r=n(1);t.a=r.a.extend({name:"v-list-item-action",functional:!0,render:function(e,t){var data=t.data,n=t.children,r=void 0===n?[]:n;return data.staticClass=data.staticClass?"v-list-item__action ".concat(data.staticClass):"v-list-item__action",r.filter((function(e){return!1===e.isComment&&" "!==e.text})).length>1&&(data.staticClass+=" v-list-item__action--stack"),e("div",data,r)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(1418),n(38)),c=n(219),l=n(363),h=n(4),d=n(13);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(d.a)(o.a,c.a,l.a).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes:function(){return m({"v-avatar--left":this.left,"v-avatar--right":this.right},this.roundedClasses)},styles:function(){return m({height:Object(h.i)(this.size),minWidth:Object(h.i)(this.size),width:Object(h.i)(this.size)},this.measurableStyles)}},render:function(e){var data={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return e("div",this.setBackgroundColor(this.color,data),this.$slots.default)}})},function(e,t,n){"use strict";n(6),n(10),n(11),n(9),n(8);var r=n(21),o=n(0),c=(n(7),n(5),n(1435),n(13)),l=n(117),h=n(23),d=n(38),f=n(159),m=n(30),v=n(110),y=n(131),w=n(334),S=n(26);function _(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function C(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(c.a)(d.a,w.a,y.a,m.a,Object(f.a)("chipGroup"),Object(v.b)("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default:function(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:function(){return{proxyClass:"v-chip--active"}},computed:{classes:function(){return C(C(C(C({"v-chip":!0},y.a.options.computed.classes.call(this)),{},{"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose},this.themeClasses),this.sizeableClasses),this.groupClasses)},hasClose:function(){return Boolean(this.close)},isClickable:function(){return Boolean(y.a.options.computed.isClickable.call(this)||this.chipGroup)}},created:function(){var e=this;[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]].forEach((function(t){var n=Object(r.a)(t,2),o=n[0],c=n[1];e.$attrs.hasOwnProperty(o)&&Object(S.a)(o,c,e)}))},methods:{click:function(e){this.$emit("click",e),this.chipGroup&&this.toggle()},genFilter:function(){var e=[];return this.isActive&&e.push(this.$createElement(h.a,{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(l.b,e)},genClose:function(){var e=this;return this.$createElement(h.a,{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.$emit("click:close"),e.$emit("update:active",!1)}}},this.closeIcon)},genContent:function(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render:function(e){var t=[this.genContent()],n=this.generateRouteLink(),r=n.tag,data=n.data;data.attrs=C(C({},data.attrs),{},{draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:data.attrs.tabindex}),data.directives.push({name:"show",value:this.active}),data=this.setBackgroundColor(this.color,data);var o=this.textColor||this.outlined&&this.color;return e(r,this.setTextColor(o,data),t)}})},function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function filter(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var path=i>=0?arguments[i]:e.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(t=path+"/"+t,r="/"===path.charAt(0))}return(r?"/":"")+(t=n(filter(t.split("/"),(function(p){return!!p})),!r).join("/"))||"."},t.normalize=function(path){var e=t.isAbsolute(path),o="/"===r(path,-1);return(path=n(filter(path.split("/"),(function(p){return!!p})),!e).join("/"))||e||(path="."),path&&o&&(path+="/"),(e?"/":"")+path},t.isAbsolute=function(path){return"/"===path.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(filter(e,(function(p,e){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).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 o=r(e.split("/")),c=r(n.split("/")),l=Math.min(o.length,c.length),h=l,i=0;i<l;i++)if(o[i]!==c[i]){h=i;break}var d=[];for(i=h;i<o.length;i++)d.push("..");return(d=d.concat(c.slice(h))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(path){if("string"!=typeof path&&(path+=""),0===path.length)return".";for(var code=path.charCodeAt(0),e=47===code,t=-1,n=!0,i=path.length-1;i>=1;--i)if(47===(code=path.charCodeAt(i))){if(!n){t=i;break}}else n=!1;return-1===t?e?"/":".":e&&1===t?"/":path.slice(0,t)},t.basename=function(path,e){var t=function(path){"string"!=typeof path&&(path+="");var i,e=0,t=-1,n=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!n){e=i+1;break}}else-1===t&&(n=!1,t=i+1);return-1===t?"":path.slice(e,t)}(path);return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t},t.extname=function(path){"string"!=typeof path&&(path+="");for(var e=-1,t=0,n=-1,r=!0,o=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===n&&(r=!1,n=i+1),46===code?-1===e?e=i:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){t=i+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===t+1?"":path.slice(e,n)};var r="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(83))},,function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var h=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(139),o=n(121);function c(e){Object(o.a)(1,arguments);var t=Object(r.a)(e);return t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return C}));var r=Object.defineProperty,o=Object.defineProperties,c=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(a,b)=>{for(var e in b||(b={}))h.call(b,e)&&f(a,e,b[e]);if(l)for(var e of l(b))d.call(b,e)&&f(a,e,b[e]);return a};function v(e,t,n,r,o,c,l,h){var d,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),c&&(f._scopeId="data-v-"+c),l?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},f._ssrRegister=d):o&&(d=h?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(f.functional){f._injectStyles=d;var m=f.render;f.render=function(e,t){return d.call(t),m(e,t)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,d):[d]}return{exports:e,options:f}}const y={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce(((e,t)=>(e[t.id]=t)&&e),{})}},methods:{updatePaneComponents(){this.panes.forEach((e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})}))},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))),this.touch.mouseDown=!1,setTimeout((()=>{this.touch.dragging=!1,this.unbindEvents()}),100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout((()=>{this.splitterTaps.splitter=null}),500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map(((e,i)=>(e.size=i===t?e.max:e.min,i!==t&&(n+=e.min),e))),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const rect=this.container.getBoundingClientRect(),{clientX:t,clientY:n}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:t-rect.left,y:n-rect.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let l=[t,t+1],h=this.panes[l[0]]||null,d=this.panes[l[1]]||null;const f=h.max<100&&c>=h.max+n.prevPanesSize,m=d.max<100&&c<=100-(d.max+this.sumNextPanesSize(t+1));if(f||m)f?(h.size=h.max,d.size=Math.max(100-h.max-n.prevPanesSize-n.nextPanesSize,0)):(h.size=Math.max(100-d.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),d.size=d.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,c);if(!e)return;({sums:n,panesToResize:l}=e),h=this.panes[l[0]]||null,d=this.panes[l[1]]||null}null!==h&&(h.size=Math.min(Math.max(c-n.prevPanesSize-n.prevReachedMinPanes,h.min),h.max)),null!==d&&(d.size=Math.min(Math.max(100-c-n.nextPanesSize-n.nextReachedMinPanes,d.min),d.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach(((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)})),e.prevPanesSize=this.sumPrevPanesSize(r[0]),void 0===r[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach(((t,i)=>{i>0&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)})),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach(((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)})),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),void 0===r[1])?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach(((t,i)=>{i<this.panesCount-1&&i>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)})),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce(((t,n,i)=>t+(i<e?n.size:0)),0)},sumNextPanesSize(e){return this.panes.reduce(((t,n,i)=>t+(i>e+1?n.size:0)),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find((p=>p.index<e&&p.size>p.min))||{}},findNextExpandedPane(e){return this.panes.find((p=>p.index>e+1&&p.size>p.min))||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach((e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")}))},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=e=>this.onMouseDown(e,r),"undefined"!=typeof window&&"ontouchstart"in window&&(o.ontouchstart=e=>this.onMouseDown(e,r)),o.onclick=e=>this.onSplitterClick(e,r+1)),this.dblClickSplitter&&(o.ondblclick=e=>this.onSplitterDblClick(e,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach((e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)}));let t=0;e.forEach((e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)}))},requestUpdate(e){var t=e,{target:n}=t,r=((source,e)=>{var t={};for(var n in source)h.call(source,n)&&e.indexOf(n)<0&&(t[n]=source[n]);if(null!=source&&l)for(var n of l(source))e.indexOf(n)<0&&d.call(source,n)&&(t[n]=source[n]);return t})(t,["target"]);const o=this.indexedPanes[n._uid];Object.entries(r).forEach((([e,t])=>o[e]=t))},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some((n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el)));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach(((p,i)=>p.index=i)),this.ready&&this.$nextTick((()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))})}))},onPaneRemove(e){const t=this.panes.findIndex((p=>p.id===e._uid)),n=this.panes.splice(t,1)[0];this.panes.forEach(((p,i)=>p.index=i)),this.$nextTick((()=>{var a,b;this.redoSplitters(),this.resetPaneSizes({removedPane:(a=m({},n),b={index:t},o(a,c(b)))}),this.$emit("pane-remove",{removed:n,panes:this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))})}))},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some((e=>null!==e.givenSize||e.min||e.max<100))?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map((e=>({min:e.min,max:e.max,size:e.size}))))},equalize(){const e=100/this.panesCount;let t=0,n=[],r=[];this.panes.forEach((o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)})),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){this.panesCount;let e=100,t=[],n=[],r=0;this.panes.forEach((o=>{e-=o.size,null!==o.size&&r++,o.size>=o.max&&t.push(o.id),o.size<=o.min&&n.push(o.id)}));let o=100;e>.1&&(this.panes.forEach((t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-r),t.max),t.min)),o-=t.size})),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0,o=[],c=[];e&&null!==e.givenSize&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach((e=>{r-=e.size,e.size>=e.max&&o.push(e.id),e.size<=e.min&&c.push(e.id)})),Math.abs(r)<.1||(this.panes.forEach((t=>{e&&null!==e.givenSize&&e.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&o.push(t.id),t.size<=t.min&&c.push(t.id)})),r>.1&&this.readjustSizes(r,o,c))},readjustSizes(e,t,n){let r;r=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(((o,i)=>{if(e>0&&!t.includes(o.id)){const t=Math.max(Math.min(o.size+r,o.max),o.min),n=t-o.size;e-=n,o.size=t}else if(!n.includes(o.id)){const t=Math.max(Math.min(o.size+r,o.max),o.min),n=t-o.size;e-=n,o.size=t}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})})),Math.abs(e)>.1&&this.$nextTick((()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")}))}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach(((t,i)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,i):void 0}))}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(e){return e("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};const w={};var S=v(y,undefined,undefined,!1,_,null,null,null);function _(e){for(let e in w)this[e]=w[e]}var C=function(){return S.exports}();const O={};var A=v({name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(style){this.style=style}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"splitpanes__pane",style:e.style,on:{click:function(t){return e.onPaneClick(t,e._uid)}}},[e._t("default")],2)}),[],!1,T,null,null,null);function T(e){for(let e in O)this[e]=O[e]}var E=function(){return A.exports}()},function(e,t,n){var r=n(1611),o={autoSetContainer:!1,appendToBody:!0},c={install:function(e){var t="3."===e.version.slice(0,2)?e.config.globalProperties:e.prototype;t.$clipboardConfig=o,t.$copyText=function(text,e){return new Promise((function(t,n){var c=document.createElement("button"),l=new r(c,{text:function(){return text},action:function(){return"copy"},container:"object"==typeof e?e:document.body});l.on("success",(function(e){l.destroy(),t(e)})),l.on("error",(function(e){l.destroy(),n(e)})),o.appendToBody&&document.body.appendChild(c),c.click(),o.appendToBody&&document.body.removeChild(c)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var c=new r(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:o.autoSetContainer?e:void 0});c.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),c.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=c}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard))}})},config:o};e.exports=c},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(390),o=function(){return o=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},o.apply(this,arguments)},c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},l=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},h=new r.a("Hub"),d="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default";var f=new(function(){function e(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}return e.prototype._remove=function(e,t){if(e instanceof RegExp){var n=this.patterns.find((function(t){return t.pattern.source===e.source}));if(!n)return void h.warn("No listeners for ".concat(e));this.patterns=l([],c(this.patterns.filter((function(e){return e!==n}))),!1)}else{var r=this.listeners[e];if(!r)return void h.warn("No listeners for ".concat(e));this.listeners[e]=l([],c(r.filter((function(e){return e.callback!==t}))),!1)}},e.prototype.remove=function(e,t){this._remove(e,t)},e.prototype.dispatch=function(e,t,source,n){(void 0===source&&(source=""),this.protectedChannels.indexOf(e)>-1)&&(n===d||h.warn("WARNING: ".concat(e," is protected and dispatching on it can have unintended consequences")));var r={channel:e,payload:o({},t),source:source,patternInfo:[]};try{this._toListeners(r)}catch(e){h.error(e)}},e.prototype.listen=function(e,t,n){var r,o=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))h.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!=typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var c=this.listeners[e];c||(c=[],this.listeners[e]=c),c.push({name:n,callback:r})}return function(){o._remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r){h.debug("Dispatching to ".concat(t," with "),n);try{r.callback(e)}catch(e){h.error(e)}})),this.patterns.length>0){if(!n.message)return void h.warn("Cannot perform pattern matching without a message key");var l=n.message;this.patterns.forEach((function(pattern){var t=l.match(pattern.pattern);if(t){var n=c(t).slice(1),r=o(o({},e),{patternInfo:n});try{pattern.callback(r)}catch(e){h.error(e)}}}))}},e}())("__default__")},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(390),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},c=new r.a("Amplify"),l=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=r.a,this.ServiceWorker=null}return e.prototype.register=function(e){c.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):c.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),c.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=o(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e){t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)}))},e}())},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(78);function o(){return Object(r.e)()&&window.next&&"object"==typeof window.next}function c(){return Object(r.b)()&&(Object(r.c)(e,"__next")||Object(r.c)(e,"__NEXT"))}}).call(this,n(67))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(78);function o(){return Object(r.e)()&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}function c(){return Object(r.b)()&&void 0!==e.__NUXT_PATHS__}}).call(this,n(67))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(78);function o(){var e=Boolean(Object(r.a)()&&document.querySelector("[ng-version]")),t=Boolean(Object(r.e)()&&void 0!==window.ng);return e||t}function c(){var t;return Object(r.d)()&&"object"==typeof e.env&&(null===(t=e.env.npm_lifecycle_script)||void 0===t?void 0:t.startsWith("ng "))||!1}}).call(this,n(83))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(78);function o(){var e=function(e){return e.startsWith("_react")||e.startsWith("__react")};return Object(r.a)()&&Array.from(document.querySelectorAll("[id]")).some((function(element){return Object.keys(element).find(e)}))}function c(){return Object(r.d)()&&void 0!==e.env&&!!Object.keys(e.env).find((function(e){return e.includes("react")}))}}).call(this,n(83))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(78);function o(){return Object(r.e)()&&Object(r.c)(window,"__VUE")}function c(){return Object(r.b)()&&Object(r.c)(e,"__VUE")}}).call(this,n(67))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));var r=n(78);function o(){return Object(r.e)()&&Object(r.c)(window,"__SVELTE")}function c(){return Object(r.d)()&&void 0!==e.env&&!!Object.keys(e.env).find((function(e){return e.includes("svelte")}))}}).call(this,n(83))},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(e,t,n){var o,c=r[e];return o="string"==typeof c?c:1===t?c.one:c.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},c=n(289),l={date:Object(c.a)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Object(c.a)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Object(c.a)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},h={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d=function(e,t,n,r){return h[e]},f=n(187),m={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Object(f.a)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Object(f.a)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Object(f.a)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Object(f.a)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Object(f.a)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},v=n(188),y=n(504),w={code:"en-US",formatDistance:o,formatLong:l,formatRelative:d,localize:m,match:{ordinalNumber:Object(y.a)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Object(v.a)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Object(v.a)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Object(v.a)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(v.a)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Object(v.a)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=w},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return N}));var r={};n.r(r),n.d(r,"linear",(function(){return v})),n.d(r,"easeInQuad",(function(){return y})),n.d(r,"easeOutQuad",(function(){return w})),n.d(r,"easeInOutQuad",(function(){return S})),n.d(r,"easeInCubic",(function(){return _})),n.d(r,"easeOutCubic",(function(){return C})),n.d(r,"easeInOutCubic",(function(){return O})),n.d(r,"easeInQuart",(function(){return A})),n.d(r,"easeOutQuart",(function(){return T})),n.d(r,"easeInOutQuart",(function(){return E})),n.d(r,"easeInQuint",(function(){return P})),n.d(r,"easeOutQuint",(function(){return M})),n.d(r,"easeInOutQuint",(function(){return x}));n(6),n(7),n(10),n(11),n(9),n(154),n(8);var o=n(53),c=n(52),l=n(72),h=n(31),d=n(73),f=n(0),m=(n(5),n(158)),v=function(e){return e},y=function(e){return Math.pow(e,2)},w=function(e){return e*(2-e)},S=function(e){return e<.5?2*Math.pow(e,2):(4-2*e)*e-1},_=function(e){return Math.pow(e,3)},C=function(e){return Math.pow(--e,3)+1},O=function(e){return e<.5?4*Math.pow(e,3):(e-1)*(2*e-2)*(2*e-2)+1},A=function(e){return Math.pow(e,4)},T=function(e){return 1-Math.pow(--e,4)},E=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},P=function(e){return Math.pow(e,5)},M=function(e){return 1+Math.pow(--e,5)},x=function(e){return e<.5?16*Math.pow(e,5):1+16*Math.pow(--e,5)};n(24);function k(e){if("number"==typeof e)return e;var t=R(e);if(!t)throw"string"==typeof e?new Error('Target element "'.concat(e,'" not found.')):new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received ".concat(I(e)," instead."));for(var n=0;t;)n+=t.offsetTop,t=t.offsetParent;return n}function I(e){return null==e?e:e.constructor.name}function R(e){return"string"==typeof e?document.querySelector(e):e&&e._isVue?e.$el:e instanceof HTMLElement?e:null}function j(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?j(Object(source),!0).forEach((function(t){Object(f.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):j(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},t),o=function(e){var t=R(e);if(t)return t;throw"string"==typeof e?new Error('Container element "'.concat(e,'" not found.')):new TypeError("Container must be a Selector/HTMLElement/VueComponent, received ".concat(I(e)," instead."))}(n.container);if(n.appOffset&&D.framework.application){var c=o.classList.contains("v-navigation-drawer"),l=o.classList.contains("v-navigation-drawer--clipped"),h=D.framework.application,d=h.bar,m=h.top;n.offset+=d,c&&!l||(n.offset+=m)}var v,y=performance.now();v="number"==typeof e?k(e)-n.offset:k(e)-k(o)-n.offset;var w=o.scrollTop;if(v===w)return Promise.resolve(v);var S="function"==typeof n.easing?n.easing:r[n.easing];if(!S)throw new TypeError('Easing function "'.concat(n.easing,'" not found.'));return new Promise((function(e){return requestAnimationFrame((function t(r){var c=r-y,progress=Math.abs(n.duration?Math.min(c/n.duration,1):1);o.scrollTop=Math.floor(w+(v-w)*S(progress));var l=(o===document.body?document.documentElement.clientHeight:o.clientHeight)+o.scrollTop>=o.scrollHeight;if(1===progress||v>o.scrollTop&&l)return e(v);requestAnimationFrame(t)}))}))}D.framework={},D.init=function(){};var N=function(e){function t(){var e,n,r,o;return Object(c.a)(this,t),n=this,r=t,r=Object(h.a)(r),e=Object(l.a)(n,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(r,o||[],Object(h.a)(n).constructor):r.apply(n,o)),Object(l.a)(e,D)}return Object(d.a)(t,e),Object(o.a)(t)}(m.a);N.property="goTo"},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n(97),o="5.3.10",c=n(385),l=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},h="aws-amplify",d=new(function(){function e(){this.userAgent="".concat(h,"/").concat(o)}return Object.defineProperty(e.prototype,"framework",{get:function(){return Object(c.a)()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReactNative",{get:function(){return this.framework===r.c.ReactNative||this.framework===r.c.Expo},enumerable:!1,configurable:!0}),e.prototype.observeFrameworkChanges=function(e){Object(c.b)(e)},e}()),f=function(e){return function(e){var t=void 0===e?{}:e,n=t.category,r=t.action,l=(t.framework,[[h,o]]);return n&&l.push([n,r]),l.push(["framework",Object(c.a)()]),l}(e).map((function(e){var t=l(e,2),n=t[0],r=t[1];return"".concat(n,"/").concat(r)})).join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(139),o=n(121);function c(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(e),c=Object(r.a)(t);return n.getTime()>c.getTime()}},function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},o=function(e,t,n){var o,form=r[e];return o="string"==typeof form?form:1===t?form.one:form.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+o:"il y a "+o:o},c=n(289),l={date:Object(c.a)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Object(c.a)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Object(c.a)({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},h={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},d=function(e,t,n,r){return h[e]},f=n(187),m={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return"0";return n+(1===n?r&&["year","week","hour","minute","second"].includes(r)?"ère":"er":"ème")},era:Object(f.a)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:Object(f.a)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Object(f.a)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:Object(f.a)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Object(f.a)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},v=n(188),y=n(504),w={code:"fr",formatDistance:o,formatLong:l,formatRelative:d,localize:m,match:{ordinalNumber:Object(y.a)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:Object(v.a)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:Object(v.a)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Object(v.a)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Object(v.a)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Object(v.a)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};t.a=w},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const r=n(1659),o=n(1e3),c=n(1660),l=n(613),h=n(1661),d=n(1665),f=n(1002),m={defaultTlds:{allow:d,deny:null}};e.exports={errors:l.codes,domain:{analyze:(e,t)=>(t=m.options(t),o.analyze(e,t)),isValid:(e,t)=>(t=m.options(t),o.isValid(e,t))},email:{analyze:(e,t)=>(t=m.options(t),c.analyze(e,t)),isValid:(e,t)=>(t=m.options(t),c.isValid(e,t))},ip:{regex:h.regex},uri:{decode:r.decode,regex:f.regex}},m.options=function(e){if(!e)return{tlds:m.defaultTlds};if(!1===e.tlds)return e;if(!e.tlds||!0===e.tlds)return Object.assign({},e,{tlds:m.defaultTlds});if("object"!=typeof e.tlds)throw new Error("Invalid options: tlds must be a boolean or an object");if(e.tlds.deny){if(e.tlds.deny instanceof Set==!1)throw new Error("Invalid options: tlds.deny must be a Set object");if(e.tlds.allow)throw new Error("Invalid options: cannot specify both tlds.allow and tlds.deny lists");return e}if(!0===e.tlds.allow)return Object.assign({},e,{tlds:m.defaultTlds});if(e.tlds.allow instanceof Set==!1)throw new Error("Invalid options: tlds.allow must be a Set object or true");return e}},,,,,function(e,t,n){"use strict";t.a=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},,function(e,t,n){"use strict";var r=n(614);t.a=r.a},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.a=function(e,t){return e.has(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(314);var o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var c=function(e){return this.__data__.has(e)};function l(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.a;++t<n;)this.add(e[t])}l.prototype.add=l.prototype.push=o,l.prototype.has=c;t.a=l},function(e,t,n){"use strict";t.a=function(e,t){return e>t}},,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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="/dist/",n(n.s=13)}([function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){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.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){const r=n(20);t.parseFont=r,t.createCanvas=function(e,t){return Object.assign(document.createElement("canvas"),{width:e,height:t})},t.createImageData=function(e,t,n){switch(arguments.length){case 0:return new ImageData;case 1:return new ImageData(e);case 2:return new ImageData(e,t);default:return new ImageData(e,t,n)}},t.loadImage=function(e,t){return new Promise((function(n,r){const o=Object.assign(document.createElement("img"),t);function i(){o.onload=null,o.onerror=null}o.onload=function(){i(),n(o)},o.onerror=function(){i(),r(new Error('Failed to load the image "'+e+'"'))},o.src=e}))}},function(e,t,n){e.exports=n(14)},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return p}));var r=n(0),o=n.n(r),i=n(1),a=n.n(i);function s(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(e)?3:0)}var u=function(){function e(t){o()(this,e),this.mode=h.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;for(var n=[],r=0,i=this.data.length;r<i;r++){var a=[],s=this.data.charCodeAt(r);s>65536?(a[0]=240|(1835008&s)>>>18,a[1]=128|(258048&s)>>>12,a[2]=128|(4032&s)>>>6,a[3]=128|63&s):s>2048?(a[0]=224|(61440&s)>>>12,a[1]=128|(4032&s)>>>6,a[2]=128|63&s):s>128?(a[0]=192|(1984&s)>>>6,a[1]=128|63&s):a[0]=s,n.push(a)}this.parsedData=Array.prototype.concat.apply([],n),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(e,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}}]),e}(),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.L;o()(this,e),this.moduleCount=0,this.dataList=[],this.typeNumber=t,this.errorCorrectLevel=n,this.moduleCount=0,this.dataList=[]}return a()(e,[{key:"addData",value:function(e){if(this.typeNumber<=0)this.typeNumber=function(e,t){for(var n=1,r=s(e),o=0,i=y.length;o<i;o++){var a=0;switch(t){case l.L:a=y[o][0];break;case l.M:a=y[o][1];break;case l.Q:a=y[o][2];break;case l.H:a=y[o][3]}if(r<=a)break;n++}if(n>y.length)throw new Error("Too long data");return n}(e,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(e,t,n){var r=s(t),o=e-1,i=0;switch(n){case l.L:i=y[o][0];break;case l.M:i=y[o][1];break;case l.Q:i=y[o][2];break;case l.H:i=y[o][3]}return r<=i}(this.typeNumber,e,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var t=new u(e);this.dataList.push(t),this.dataCache=void 0}},{key:"isDark",value:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error("".concat(e,",").concat(t));return this.modules[e][t]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(t,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[r][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)}},{key:"setupPositionProbePattern",value:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(d).includes(this.maskPattern))return this.maskPattern;for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=p.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t}},{key:"setupTimingPattern",value:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var e=p.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[r+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}}},{key:"setupTypeNumber",value:function(e){for(var t=p.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!e&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},{key:"setupTypeInfo",value:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=p.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++)i=!e&&1==(r>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!e}},{key:"mapData",value:function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[r][a-s]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1)),p.getMask(t,r,a-s)&&(u=!u),this.modules[r][a-s]=u,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}}],[{key:"createData",value:function(t,n,r){for(var o=m.getRSBlocks(t,n),i=new v,a=0;a<r.length;a++){var s=r[a];i.put(s.mode,4),i.put(s.getLength(),p.getLengthInBits(s.mode,t)),s.write(i)}var u=0;for(a=0;a<o.length;a++)u+=o[a].dataCount;if(i.getLengthInBits()>8*u)throw new Error("code length overflow. (".concat(i.getLengthInBits(),">").concat(8*u,")"));for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(e.PAD0,8),i.getLengthInBits()>=8*u));)i.put(e.PAD1,8);return e.createBytes(i,o)}},{key:"createBytes",value:function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s++){var u=t[s].dataCount,c=t[s].totalCount-u;r=Math.max(r,u),o=Math.max(o,c),i[s]=new Array(u);for(var l=0;l<i[s].length;l++)i[s][l]=255&e.buffer[l+n];n+=u;var h=p.getErrorCorrectPolynomial(c),d=new g(i[s],h.getLength()-1).mod(h);for(a[s]=new Array(h.getLength()-1),l=0;l<a[s].length;l++){var f=l+d.getLength()-a[s].length;a[s][l]=f>=0?d.get(f):0}}var m=0;for(l=0;l<t.length;l++)m+=t[l].totalCount;var v=new Array(m),y=0;for(l=0;l<r;l++)for(s=0;s<t.length;s++)l<i[s].length&&(v[y++]=i[s][l]);for(l=0;l<o;l++)for(s=0;s<t.length;s++)l<a[s].length&&(v[y++]=a[s][l]);return v}}]),e}();c.PAD0=236,c.PAD1=17;var l={L:1,M:0,Q:3,H:2},h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},p=function(){function e(){o()(this,e)}return a()(e,null,[{key:"getBCHTypeInfo",value:function(t){for(var n=t<<10;e.getBCHDigit(n)-e.getBCHDigit(e.G15)>=0;)n^=e.G15<<e.getBCHDigit(n)-e.getBCHDigit(e.G15);return(t<<10|n)^e.G15_MASK}},{key:"getBCHTypeNumber",value:function(t){for(var n=t<<12;e.getBCHDigit(n)-e.getBCHDigit(e.G18)>=0;)n^=e.G18<<e.getBCHDigit(n)-e.getBCHDigit(e.G18);return t<<12|n}},{key:"getBCHDigit",value:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t}},{key:"getPatternPosition",value:function(t){return e.PATTERN_POSITION_TABLE[t-1]}},{key:"getMask",value:function(e,t,n){switch(e){case d.PATTERN000:return(t+n)%2==0;case d.PATTERN001:return t%2==0;case d.PATTERN010:return n%3==0;case d.PATTERN011:return(t+n)%3==0;case d.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case d.PATTERN101:return t*n%2+t*n%3==0;case d.PATTERN110:return(t*n%2+t*n%3)%2==0;case d.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:".concat(e))}}},{key:"getErrorCorrectPolynomial",value:function(e){for(var t=new g([1],0),n=0;n<e;n++)t=t.multiply(new g([1,f.gexp(n)],0));return t}},{key:"getLengthInBits",value:function(e,t){if(1<=t&&t<10)switch(e){case h.MODE_NUMBER:return 10;case h.MODE_ALPHA_NUM:return 9;case h.MODE_8BIT_BYTE:case h.MODE_KANJI:return 8;default:throw new Error("mode:".concat(e))}else if(t<27)switch(e){case h.MODE_NUMBER:return 12;case h.MODE_ALPHA_NUM:return 11;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 10;default:throw new Error("mode:".concat(e))}else{if(!(t<41))throw new Error("type:".concat(t));switch(e){case h.MODE_NUMBER:return 14;case h.MODE_ALPHA_NUM:return 13;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 12;default:throw new Error("mode:".concat(e))}}}},{key:"getLostPoint",value:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==s&&0==u||a==e.isDark(r+s,o+u)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<t-1;r++)for(o=0;o<t-1;o++){var c=0;e.isDark(r,o)&&c++,e.isDark(r+1,o)&&c++,e.isDark(r,o+1)&&c++,e.isDark(r+1,o+1)&&c++,0!=c&&4!=c||(n+=3)}for(r=0;r<t;r++)for(o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o++)for(r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<t;o++)for(r=0;r<t;r++)e.isDark(r,o)&&l++;return n+Math.abs(100*l/t/t-50)/5*10}}]),e}();p.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],p.G15=1335,p.G18=7973,p.G15_MASK=21522;var f=function(){function e(){o()(this,e)}return a()(e,null,[{key:"glog",value:function(t){if(t<1)throw new Error("glog(".concat(t,")"));return e.LOG_TABLE[t]}},{key:"gexp",value:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e.EXP_TABLE[t]}}]),e}();f.EXP_TABLE=new Array(256),f.LOG_TABLE=new Array(256),f._constructor=function(){for(var e=0;e<8;e++)f.EXP_TABLE[e]=1<<e;for(e=8;e<256;e++)f.EXP_TABLE[e]=f.EXP_TABLE[e-4]^f.EXP_TABLE[e-5]^f.EXP_TABLE[e-6]^f.EXP_TABLE[e-8];for(e=0;e<255;e++)f.LOG_TABLE[f.EXP_TABLE[e]]=e}();var g=function(){function e(t,n){if(o()(this,e),null==t.length)throw new Error("".concat(t.length,"/").concat(n));for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+n);for(var i=0;i<t.length-r;i++)this.num[i]=t[i+r]}return a()(e,[{key:"get",value:function(e){return this.num[e]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(t){for(var n=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var o=0;o<t.getLength();o++)n[r+o]^=f.gexp(f.glog(this.get(r))+f.glog(t.get(o)));return new e(n,0)}},{key:"mod",value:function(t){if(this.getLength()-t.getLength()<0)return this;for(var n=f.glog(this.get(0))-f.glog(t.get(0)),r=new Array(this.getLength()),o=0;o<this.getLength();o++)r[o]=this.get(o);for(o=0;o<t.getLength();o++)r[o]^=f.gexp(f.glog(t.get(o))+n);return new e(r,0).mod(t)}}]),e}(),m=function(){function e(t,n){o()(this,e),this.totalCount=t,this.dataCount=n}return a()(e,null,[{key:"getRSBlocks",value:function(t,n){var r=e.getRsBlockTable(t,n);if(null==r)throw new Error("bad rs block @ typeNumber:".concat(t,"/errorCorrectLevel:").concat(n));for(var o=r.length/3,i=[],a=0;a<o;a++)for(var s=r[3*a+0],u=r[3*a+1],c=r[3*a+2],l=0;l<s;l++)i.push(new e(u,c));return i}},{key:"getRsBlockTable",value:function(t,n){switch(n){case l.L:return e.RS_BLOCK_TABLE[4*(t-1)+0];case l.M:return e.RS_BLOCK_TABLE[4*(t-1)+1];case l.Q:return e.RS_BLOCK_TABLE[4*(t-1)+2];case l.H:return e.RS_BLOCK_TABLE[4*(t-1)+3];default:return}}}]),e}();m.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];var v=function(){function e(){o()(this,e),this.buffer=[],this.length=0}return a()(e,[{key:"get",value:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)}},{key:"put",value:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}}]),e}(),y=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loop=t.conditional=t.parse=void 0,t.parse=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(Array.isArray(n))n.forEach((function(n){return e(t,n,r,o)}));else if("function"==typeof n)n(t,r,o,e);else{var i=Object.keys(n)[0];Array.isArray(n[i])?(o[i]={},e(t,n[i],r,o[i])):o[i]=n[i](t,r,o,e)}return r},t.conditional=function(e,t){return function(n,r,o,i){t(n,r,o)&&i(n,e,r,o)}},t.loop=function(e,t){return function(n,r,o,i){for(var a=[];t(n,r,o);){var s={};i(n,e,r,s),a.push(s)}return a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readBits=t.readArray=t.readUnsigned=t.readString=t.peekBytes=t.readBytes=t.peekByte=t.readByte=t.buildStream=void 0,t.buildStream=function(e){return{data:e,pos:0}};var r=function(){return function(e){return e.data[e.pos++]}};t.readByte=r,t.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t){return t.data[t.pos+e]}};var o=function(e){return function(t){return t.data.subarray(t.pos,t.pos+=e)}};t.readBytes=o,t.peekBytes=function(e){return function(t){return t.data.subarray(t.pos,t.pos+e)}},t.readString=function(e){return function(t){return Array.from(o(e)(t)).map((function(e){return String.fromCharCode(e)})).join("")}},t.readUnsigned=function(e){return function(t){var n=o(2)(t);return e?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}},t.readArray=function(e,t){return function(n,r,i){for(var a="function"==typeof t?t(n,r,i):t,s=o(e),u=new Array(a),c=0;c<a;c++)u[c]=s(n);return u}},t.readBits=function(e){return function(t){for(var n=function(e){return e.data[e.pos++]}(t),r=new Array(8),o=0;o<8;o++)r[7-o]=!!(n&1<<o);return Object.keys(e).reduce((function(t,n){var o=e[n];return o.length?t[n]=function(e,t,n){for(var r=0,o=0;o<n;o++)r+=e[t+o]&&Math.pow(2,n-o-1);return r}(r,o.index,o.length):t[n]=r[o.index],t}),{})}}},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(11),o=n.n(r),i=n(6),a=n(7),s=function(e){var t=new Uint8Array(e);return Object(i.parse)(Object(a.buildStream)(t),o.a)},u=function(e,t,n){if(e.image){var r=e.image,o=r.descriptor.width*r.descriptor.height,i=function(e,t,n){var r,o,i,a,s,u,c,l,h,d,p,f,g,m,v,y,w=n,b=new Array(n),S=new Array(4096),_=new Array(4096),C=new Array(4097);for(s=1+(o=1<<(d=e)),r=o+2,c=-1,i=(1<<(a=d+1))-1,l=0;l<o;l++)S[l]=0,_[l]=l;for(p=f=g=m=v=y=0,h=0;h<w;){if(0===m){if(f<a){p+=t[y]<<f,f+=8,y++;continue}if(l=p&i,p>>=a,f-=a,l>r||l==s)break;if(l==o){i=(1<<(a=d+1))-1,r=o+2,c=-1;continue}if(-1==c){C[m++]=_[l],c=l,g=l;continue}for(u=l,l==r&&(C[m++]=g,l=c);l>o;)C[m++]=_[l],l=S[l];g=255&_[l],C[m++]=g,r<4096&&(S[r]=c,_[r]=g,0==(++r&i)&&r<4096&&(a++,i+=r)),c=u}m--,b[v++]=C[m],h++}for(h=v;h<w;h++)b[h]=0;return b}(r.data.minCodeSize,r.data.blocks,o);r.descriptor.lct.interlaced&&(i=function(e,t){for(var n=new Array(e.length),r=e.length/t,o=function(r,o){var i=e.slice(o*t,(o+1)*t);n.splice.apply(n,[r*t,t].concat(i))},i=[0,4,2,1],a=[8,8,4,2],s=0,u=0;u<4;u++)for(var c=i[u];c<r;c+=a[u])o(c,s),s++;return n}(i,r.descriptor.width));var a={pixels:i,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?a.colorTable=r.lct:a.colorTable=t,e.gce&&(a.delay=10*(e.gce.delay||10),a.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(a.transparentIndex=e.gce.transparentColorIndex)),n&&(a.patch=function(e){for(var t=e.pixels.length,n=new Uint8ClampedArray(4*t),r=0;r<t;r++){var o=4*r,i=e.pixels[r],a=e.colorTable[i];n[o]=a[0],n[o+1]=a[1],n[o+2]=a[2],n[o+3]=i!==e.transparentIndex?255:0}return n}(a)),a}console.warn("gif frame does not have associated image.")},c=function(e,t){return e.frames.filter((function(e){return e.image})).map((function(n){return u(n,e.gct,t)}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return v}));var r=n(4),o=n.n(r),i=n(0),a=n.n(i),s=n(1),u=n.n(s),c=n(3),l=n.n(c),h=n(2),d=n(9),p=n(5),f=n(12),g=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};function m(e){if(e)return new Promise((function(n,r){if("data"==e.slice(0,4)){var o=new Image;return o.onload=function(){n(o),t(o)},o.onerror=function(){r("Image load error"),t(o)},void(o.src=e)}var i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){n(i)},i.onerror=function(){r("Image load error")},i.src=e}));function t(e){e.onload=null,e.onerror=null}}var v=function(){function t(e){a()(this,t);var n=Object.assign({},e);if(Object.keys(t.defaultOptions).forEach((function(e){e in n||Object.defineProperty(n,e,{value:t.defaultOptions[e],enumerable:!0,writable:!0})})),n.components?"object"===o()(n.components)&&Object.keys(t.defaultComponentOptions).forEach((function(e){e in n.components?Object.defineProperty(n.components,e,{value:Object.assign(Object.assign({},t.defaultComponentOptions[e]),n.components[e]),enumerable:!0,writable:!0}):Object.defineProperty(n.components,e,{value:t.defaultComponentOptions[e],enumerable:!0,writable:!0})})):n.components=t.defaultComponentOptions,null!==n.dotScale&&void 0!==n.dotScale){if(n.dotScale<=0||n.dotScale>1)throw new Error("dotScale should be in range (0, 1].");n.components.data.scale=n.dotScale,n.components.timing.scale=n.dotScale,n.components.alignment.scale=n.dotScale}this.options=n,this.canvas=Object(h.createCanvas)(e.size,e.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new p.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return u()(t,[{key:"draw",value:function(){var e=this;return new Promise((function(t){return e._draw().then(t)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var n,r,o,i,a,s,u,c,v,w,b,S,_,C,O,A,T,E,P;return g(this,void 0,void 0,l.a.mark((function g(){var M,x,k,I,R,j,D,N,L,B,U,F,z,$,H,G,q,V,W,K,Y,X,J,Z,Q,ee,te,rt,ne,re,ie,oe,ae,se,ce,ue,le,he,de,dt,fe,pe,me,ge,ve,be,ye,we,Se,_e,Ce,Oe,Ae,Te,Ee,Pe,Me,xe,ke,Ie,Re,je,De,Ne,Le,Be,Ue,Fe,ze,$e,He;return l.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(M=null===(n=this.qrCode)||void 0===n?void 0:n.moduleCount,x=this.options.size,((k=this.options.margin)<0||2*k>=x)&&(k=0),I=Math.ceil(k),R=x-2*k,j=this.options.whiteMargin,D=this.options.backgroundDimming,N=Math.ceil(R/M),B=(L=N*M)+2*I,U=Object(h.createCanvas)(B,B),F=U.getContext("2d"),this._clear(),F.save(),F.translate(I,I),z=Object(h.createCanvas)(B,B),$=z.getContext("2d"),H=null,G=[],!this.options.gifBackground){l.next=47;break}if(q=Object(d.b)(this.options.gifBackground),H=q,G=Object(d.a)(q,!0),!this.options.autoColor){l.next=45;break}V=0,W=0,K=0,Y=0,X=0;case 28:if(!(X<G[0].colorTable.length)){l.next=41;break}if(!((J=G[0].colorTable[X])[0]>200||J[1]>200||J[2]>200)){l.next=32;break}return l.abrupt("continue",38);case 32:if(0!==J[0]||0!==J[1]||0!==J[2]){l.next=34;break}return l.abrupt("continue",38);case 34:Y++,V+=J[0],W+=J[1],K+=J[2];case 38:X++,l.next=28;break;case 41:V=~~(V/Y),W=~~(W/Y),K=~~(K/Y),this.options.colorDark="rgb(".concat(V,",").concat(W,",").concat(K,")");case 45:l.next=61;break;case 47:if(!this.options.backgroundImage){l.next=58;break}return l.next=50,m(this.options.backgroundImage);case 50:Z=l.sent,this.options.autoColor&&(Q=t._getAverageRGB(Z),this.options.colorDark="rgb(".concat(Q.r,",").concat(Q.g,",").concat(Q.b,")")),$.drawImage(Z,0,0,Z.width,Z.height,0,0,B,B),$.rect(0,0,B,B),$.fillStyle=D,$.fill(),l.next=61;break;case 58:$.rect(0,0,B,B),$.fillStyle=this.options.colorLight,$.fill();case 61:for(ee=p.c.getPatternPosition(this.qrCode.typeNumber),te=(null===(o=null===(r=this.options.components)||void 0===r?void 0:r.data)||void 0===o?void 0:o.scale)||.4,rt=.5*(1-te),ne=0;ne<M;ne++)for(re=0;re<M;re++){for(ie=this.qrCode.isDark(ne,re),oe=6==ne&&re>=8&&re<=M-8||6==re&&ne>=8&&ne<=M-8,ae=re<8&&(ne<8||ne>=M-8)||re>=M-8&&ne<8||oe,se=1;se<ee.length-1;se++)ae=ae||ne>=ee[se]-2&&ne<=ee[se]+2&&re>=ee[se]-2&&re<=ee[se]+2;ce=re*N+(ae?0:rt*N),ue=ne*N+(ae?0:rt*N),F.strokeStyle=ie?this.options.colorDark:this.options.colorLight,F.lineWidth=.5,F.fillStyle=ie?this.options.colorDark:this.options.colorLight,0===ee.length?ae||F.fillRect(ce,ue,(ae?1:te)*N,(ae?1:te)*N):(le=re<M-4&&re>=M-4-5&&ne<M-4&&ne>=M-4-5,ae||le||F.fillRect(ce,ue,(ae?1:te)*N,(ae?1:te)*N))}if(he=ee[ee.length-1],de=this.options.colorLight,F.fillStyle=de,F.fillRect(0,0,8*N,8*N),F.fillRect(0,(M-8)*N,8*N,8*N),F.fillRect((M-8)*N,0,8*N,8*N),(null===(a=null===(i=this.options.components)||void 0===i?void 0:i.timing)||void 0===a?void 0:a.protectors)&&(F.fillRect(8*N,6*N,(M-8-8)*N,N),F.fillRect(6*N,8*N,N,(M-8-8)*N)),(null===(u=null===(s=this.options.components)||void 0===s?void 0:s.cornerAlignment)||void 0===u?void 0:u.protectors)&&t._drawAlignProtector(F,he,he,N),!(null===(v=null===(c=this.options.components)||void 0===c?void 0:c.alignment)||void 0===v?void 0:v.protectors)){l.next=99;break}dt=0;case 75:if(!(dt<ee.length)){l.next=99;break}fe=0;case 77:if(!(fe<ee.length)){l.next=96;break}if(pe=ee[fe],me=ee[dt],6!==pe||6!==me&&me!==he){l.next=84;break}return l.abrupt("continue",93);case 84:if(6!==me||6!==pe&&pe!==he){l.next=88;break}return l.abrupt("continue",93);case 88:if(pe!==he||me!==he){l.next=92;break}return l.abrupt("continue",93);case 92:t._drawAlignProtector(F,pe,me,N);case 93:fe++,l.next=77;break;case 96:dt++,l.next=75;break;case 99:for(F.fillStyle=this.options.colorDark,F.fillRect(0,0,7*N,N),F.fillRect((M-7)*N,0,7*N,N),F.fillRect(0,6*N,7*N,N),F.fillRect((M-7)*N,6*N,7*N,N),F.fillRect(0,(M-7)*N,7*N,N),F.fillRect(0,(M-7+6)*N,7*N,N),F.fillRect(0,0,N,7*N),F.fillRect(6*N,0,N,7*N),F.fillRect((M-7)*N,0,N,7*N),F.fillRect((M-7+6)*N,0,N,7*N),F.fillRect(0,(M-7)*N,N,7*N),F.fillRect(6*N,(M-7)*N,N,7*N),F.fillRect(2*N,2*N,3*N,3*N),F.fillRect((M-7+2)*N,2*N,3*N,3*N),F.fillRect(2*N,(M-7+2)*N,3*N,3*N),ge=(null===(b=null===(w=this.options.components)||void 0===w?void 0:w.timing)||void 0===b?void 0:b.scale)||.4,ve=.5*(1-ge),be=0;be<M-8;be+=2)t._drawDot(F,8+be,6,N,ve,ge),t._drawDot(F,6,8+be,N,ve,ge);ye=(null===(_=null===(S=this.options.components)||void 0===S?void 0:S.cornerAlignment)||void 0===_?void 0:_.scale)||.4,we=.5*(1-ye),t._drawAlign(F,he,he,N,we,ye,this.options.colorDark,(null===(O=null===(C=this.options.components)||void 0===C?void 0:C.cornerAlignment)||void 0===O?void 0:O.protectors)||!1),Se=(null===(T=null===(A=this.options.components)||void 0===A?void 0:A.alignment)||void 0===T?void 0:T.scale)||.4,_e=.5*(1-Se),Ce=0;case 124:if(!(Ce<ee.length)){l.next=148;break}Oe=0;case 126:if(!(Oe<ee.length)){l.next=145;break}if(Ae=ee[Oe],Te=ee[Ce],6!==Ae||6!==Te&&Te!==he){l.next=133;break}return l.abrupt("continue",142);case 133:if(6!==Te||6!==Ae&&Ae!==he){l.next=137;break}return l.abrupt("continue",142);case 137:if(Ae!==he||Te!==he){l.next=141;break}return l.abrupt("continue",142);case 141:t._drawAlign(F,Ae,Te,N,_e,Se,this.options.colorDark,(null===(P=null===(E=this.options.components)||void 0===E?void 0:E.alignment)||void 0===P?void 0:P.protectors)||!1);case 142:Oe++,l.next=126;break;case 145:Ce++,l.next=124;break;case 148:if(j&&(F.fillStyle=this.options.backgroundColor,F.fillRect(-I,-I,B,I),F.fillRect(-I,L,B,I),F.fillRect(L,-I,I,B),F.fillRect(-I,-I,I,B)),!this.options.logoImage){l.next=179;break}return l.next=152,m(this.options.logoImage);case 152:Ee=l.sent,Pe=this.options.logoScale,Me=this.options.logoMargin,xe=this.options.logoCornerRadius,(Pe<=0||Pe>=1)&&(Pe=.2),Me<0&&(Me=0),xe<0&&(xe=0),Re=Ie=.5*(B-(ke=L*Pe)),F.restore(),F.fillStyle=this.options.logoBackgroundColor,F.save(),t._prepareRoundedCornerClip(F,Ie-Me,Re-Me,ke+2*Me,ke+2*Me,xe+Me),F.clip(),je=F.globalCompositeOperation,F.globalCompositeOperation="destination-out",F.fill(),F.globalCompositeOperation=je,F.restore(),F.save(),t._prepareRoundedCornerClip(F,Ie,Re,ke,ke,xe),F.clip(),F.drawImage(Ee,Ie,Re,ke,ke),F.restore(),F.save(),F.translate(I,I);case 179:if(!H){l.next=191;break}if(G.forEach((function(e){De||((De=new f.a(x,x)).setDelay(e.delay),De.setRepeat(0));var t=e.dims,n=t.width,r=t.height;Ne||(Ne=Object(h.createCanvas)(n,r),(Le=Ne.getContext("2d")).rect(0,0,Ne.width,Ne.height),Le.fillStyle="#ffffff",Le.fill()),Be&&Fe&&n===Be.width&&r===Be.height||(Be=Object(h.createCanvas)(n,r),Ue=Be.getContext("2d"),Fe=Ue.createImageData(n,r)),Fe.data.set(e.patch),Ue.putImageData(Fe,0,0),Le.drawImage(Be,e.dims.left,e.dims.top);var o=Object(h.createCanvas)(B,B),i=o.getContext("2d");i.drawImage(Ne,0,0,B,B),i.rect(0,0,B,B),i.fillStyle=D,i.fill(),i.drawImage(U,0,0,B,B);var a=Object(h.createCanvas)(x,x),s=a.getContext("2d");s.drawImage(o,0,0,x,x),De.addFrame(s.getImageData(0,0,a.width,a.height).data)})),De){l.next=183;break}throw new Error("No frames.");case 183:if(De.finish(),!y(this.canvas)){l.next=188;break}return ze=De.stream().toFlattenUint8Array(),$e=ze.reduce((function(e,t){return e+String.fromCharCode(t)}),""),l.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa($e))));case 188:return l.abrupt("return",Promise.resolve(e.from(De.stream().toFlattenUint8Array())));case 191:if($.drawImage(U,0,0,B,B),F.drawImage(z,-I,-I,B,B),(He=Object(h.createCanvas)(x,x)).getContext("2d").drawImage(U,0,0,x,x),this.canvas=He,!y(this.canvas)){l.next=199;break}return l.abrupt("return",Promise.resolve(this.canvas.toDataURL()));case 199:return l.abrupt("return",Promise.resolve(this.canvas.toBuffer()));case 200:case"end":return l.stop()}}),g,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(e,t,n,r,o,i){e.beginPath(),e.moveTo(t,n),e.arcTo(t+r,n,t+r,n+o,i),e.arcTo(t+r,n+o,t,n+o,i),e.arcTo(t,n+o,t,n,i),e.arcTo(t,n,t+r,n,i),e.closePath()}},{key:"_getAverageRGB",value:function(e){var t,n,r={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;n=e.naturalHeight||e.height,t=e.naturalWidth||e.width;var s,u=Object(h.createCanvas)(t,n).getContext("2d");if(!u)return r;u.drawImage(e,0,0);try{s=u.getImageData(0,0,t,n)}catch(e){return r}for(;(o+=20)<s.data.length;)s.data[o]>200||s.data[o+1]>200||s.data[o+2]>200||(++a,i.r+=s.data[o],i.g+=s.data[o+1],i.b+=s.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i}},{key:"_drawDot",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;e.fillRect((t+o)*r,(n+o)*r,i*r,i*r)}},{key:"_drawAlignProtector",value:function(e,t,n,r){e.clearRect((t-2)*r,(n-2)*r,5*r,5*r),e.fillRect((t-2)*r,(n-2)*r,5*r,5*r)}},{key:"_drawAlign",value:function(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,c=e.fillStyle;e.fillStyle=s,new Array(4).fill(0).map((function(s,u){t._drawDot(e,n-2+u,r-2,o,i,a),t._drawDot(e,n+2,r-2+u,o,i,a),t._drawDot(e,n+2-u,r+2,o,i,a),t._drawDot(e,n-2,r+2-u,o,i,a)})),t._drawDot(e,n,r,o,i,a),u||(e.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,u){t._drawDot(e,n-1+u,r-1,o,i,a),t._drawDot(e,n+1,r-1+u,o,i,a),t._drawDot(e,n+1-u,r+1,o,i,a),t._drawDot(e,n-1,r+1-u,o,i,a)}))),e.fillStyle=c}}]),t}();function y(e){try{return e instanceof HTMLElement}catch(t){return"object"===o()(e)&&1===e.nodeType&&"object"===o()(e.style)&&"object"===o()(e.ownerDocument)}}v.CorrectLevel=p.b,v.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},v.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:p.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:v.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,n(15).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6),o=n(7),i={blocks:function(e){for(var t=[],n=e.data.length,r=0,i=(0,o.readByte)()(e);0!==i;i=(0,o.readByte)()(e)){if(e.pos+i>=n){var a=n-e.pos;t.push((0,o.readBytes)(a)(e)),r+=a;break}t.push((0,o.readBytes)(i)(e)),r+=i}for(var s=new Uint8Array(r),u=0,c=0;c<t.length;c++)s.set(t[c],u),u+=t[c].length;return s}},a=(0,r.conditional)({gce:[{codes:(0,o.readBytes)(2)},{byteSize:(0,o.readByte)()},{extras:(0,o.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,o.readUnsigned)(!0)},{transparentColorIndex:(0,o.readByte)()},{terminator:(0,o.readByte)()}]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&249===t[1]})),s=(0,r.conditional)({image:[{code:(0,o.readByte)()},{descriptor:[{left:(0,o.readUnsigned)(!0)},{top:(0,o.readUnsigned)(!0)},{width:(0,o.readUnsigned)(!0)},{height:(0,o.readUnsigned)(!0)},{lct:(0,o.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,o.readArray)(3,(function(e,t,n){return Math.pow(2,n.descriptor.lct.size+1)}))},(function(e,t,n){return n.descriptor.lct.exists})),{data:[{minCodeSize:(0,o.readByte)()},i]}]},(function(e){return 44===(0,o.peekByte)()(e)})),u=(0,r.conditional)({text:[{codes:(0,o.readBytes)(2)},{blockSize:(0,o.readByte)()},{preData:function(e,t,n){return(0,o.readBytes)(n.text.blockSize)(e)}},i]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&1===t[1]})),c=(0,r.conditional)({application:[{codes:(0,o.readBytes)(2)},{blockSize:(0,o.readByte)()},{id:function(e,t,n){return(0,o.readString)(n.blockSize)(e)}},i]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&255===t[1]})),l=(0,r.conditional)({comment:[{codes:(0,o.readBytes)(2)},i]},(function(e){var t=(0,o.peekBytes)(2)(e);return 33===t[0]&&254===t[1]})),h=[{header:[{signature:(0,o.readString)(3)},{version:(0,o.readString)(3)}]},{lsd:[{width:(0,o.readUnsigned)(!0)},{height:(0,o.readUnsigned)(!0)},{gct:(0,o.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,o.readByte)()},{pixelAspectRatio:(0,o.readByte)()}]},(0,r.conditional)({gct:(0,o.readArray)(3,(function(e,t){return Math.pow(2,t.lsd.gct.size+1)}))},(function(e,t){return t.lsd.gct.exists})),{frames:(0,r.loop)([a,c,l,s,u],(function(e){var t=(0,o.peekByte)()(e);return 33===t||44===t}))}];t.default=h},function(e,t,n){"use strict";var r=function(e,t){var n,r,o,i,a;function s(e,t,r,o,i){n[t][0]-=e*(n[t][0]-r)/1024,n[t][1]-=e*(n[t][1]-o)/1024,n[t][2]-=e*(n[t][2]-i)/1024}function u(e,t,r,o,i){for(var s,u,c=Math.abs(t-e),l=Math.min(t+e,256),h=t+1,d=t-1,p=1;h<l||d>c;)u=a[p++],h<l&&((s=n[h++])[0]-=u*(s[0]-r)/(1<<18),s[1]-=u*(s[1]-o)/(1<<18),s[2]-=u*(s[2]-i)/(1<<18)),d>c&&((s=n[d--])[0]-=u*(s[0]-r)/(1<<18),s[1]-=u*(s[1]-o)/(1<<18),s[2]-=u*(s[2]-i)/(1<<18))}function c(e,t,r){var a,s,u,c,l,h=~(1<<31),d=h,p=-1,f=p;for(a=0;a<256;a++)s=n[a],(u=Math.abs(s[0]-e)+Math.abs(s[1]-t)+Math.abs(s[2]-r))<h&&(h=u,p=a),(c=u-(o[a]>>12))<d&&(d=c,f=a),l=i[a]>>10,i[a]-=l,o[a]+=l<<10;return i[p]+=64,o[p]-=65536,f}this.buildColormap=function(){!function(){var e,t;for(n=[],r=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),e=0;e<256;e++)t=(e<<12)/256,n[e]=new Float64Array([t,t,t,0]),i[e]=256,o[e]=0}(),function(){var n,r,o,i,l,h,d=e.length,p=30+(t-1)/3,f=d/(3*t),g=~~(f/100),m=1024,v=2048,y=v>>6;for(y<=1&&(y=0),n=0;n<y;n++)a[n]=m*(256*(y*y-n*n)/(y*y));d<1509?(t=1,r=3):r=d%499!=0?1497:d%491!=0?1473:d%487!=0?1461:1509;var w=0;for(n=0;n<f;)if(s(m,h=c(o=(255&e[w])<<4,i=(255&e[w+1])<<4,l=(255&e[w+2])<<4),o,i,l),0!==y&&u(y,h,o,i,l),(w+=r)>=d&&(w-=d),0===g&&(g=1),++n%g==0)for(m-=m/p,(y=(v-=v/30)>>6)<=1&&(y=0),h=0;h<y;h++)a[h]=m*(256*(y*y-h*h)/(y*y))}(),function(){for(var e=0;e<256;e++)n[e][0]>>=4,n[e][1]>>=4,n[e][2]>>=4,n[e][3]=e}(),function(){var e,t,o,i,a,s,u=0,c=0;for(e=0;e<256;e++){for(a=e,s=(o=n[e])[1],t=e+1;t<256;t++)(i=n[t])[1]<s&&(a=t,s=i[1]);if(i=n[a],e!=a&&(t=i[0],i[0]=o[0],o[0]=t,t=i[1],i[1]=o[1],o[1]=t,t=i[2],i[2]=o[2],o[2]=t,t=i[3],i[3]=o[3],o[3]=t),s!=u){for(r[u]=c+e>>1,t=u+1;t<s;t++)r[t]=e;u=s,c=e}}for(r[u]=c+255>>1,t=u+1;t<256;t++)r[t]=255}()},this.getColormap=function(){for(var e=[],t=[],r=0;r<256;r++)t[n[r][3]]=r;for(var o=0,i=0;i<256;i++){var a=t[i];e[o++]=n[a][0],e[o++]=n[a][1],e[o++]=n[a][2]}return e},this.lookupRGB=function(e,t,o){for(var i,a,s,u=1e3,c=-1,l=r[t],h=l-1;l<256||h>=0;)l<256&&((s=(a=n[l])[1]-t)>=u?l=256:(l++,s<0&&(s=-s),(i=a[0]-e)<0&&(i=-i),(s+=i)<u&&((i=a[2]-o)<0&&(i=-i),(s+=i)<u&&(u=s,c=a[3])))),h>=0&&((s=t-(a=n[h])[1])>=u?h=-1:(h--,s<0&&(s=-s),(i=a[0]-e)<0&&(i=-i),(s+=i)<u&&((i=a[2]-o)<0&&(i=-i),(s+=i)<u&&(u=s,c=a[3]))));return c}},o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=function(e,t,n,r){var i,a,s,u,c,l,h,d,p,f=Math.max(2,r),g=new Uint8Array(256),m=new Int32Array(5003),v=new Int32Array(5003),y=0,w=0,b=!1;function S(e,t){g[a++]=e,a>=254&&O(t)}function _(e){C(5003),w=c+2,b=!0,E(c,e)}function C(e){for(var t=0;t<e;++t)m[t]=-1}function O(e){a>0&&(e.writeByte(a),e.writeBytes(g,0,a),a=0)}function A(e){return(1<<e)-1}function T(){return 0===h?-1:(--h,255&n[d++])}function E(e,t){for(i&=o[y],y>0?i|=e<<y:i=e,y+=p;y>=8;)S(255&i,t),i>>=8,y-=8;if((w>s||b)&&(b?(s=A(p=u),b=!1):(++p,s=12==p?4096:A(p))),e==l){for(;y>0;)S(255&i,t),i>>=8,y-=8;O(t)}}this.encode=function(n){n.writeByte(f),h=e*t,d=0,function(e,t){var n,r,o,i,h,d;for(b=!1,s=A(p=u=e),l=1+(c=1<<e-1),w=c+2,a=0,i=T(),d=0,n=5003;n<65536;n*=2)++d;d=8-d,C(5003),E(c,t);e:for(;-1!=(r=T());)if(n=(r<<12)+i,m[o=r<<d^i]!==n){if(m[o]>=0){h=5003-o,0===o&&(h=1);do{if((o-=h)<0&&(o+=5003),m[o]===n){i=v[o];continue e}}while(m[o]>=0)}E(i,t),i=r,w<4096?(v[o]=w++,m[o]=n):_(t)}else i=v[o];E(i,t),E(l,t)}(f+1,n),n.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var s=0;s<256;s++)a.charMap[s]=String.fromCharCode(s);function u(e,t){this.width=~~e,this.height=~~t,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var e="",t=0;t<this.pages.length;t++)for(var n=0;n<a.pageSize;n++)e+=a.charMap[this.pages[t][n]];return e},a.prototype.toFlattenUint8Array=function(){for(var e=[],t=0;t<this.pages.length;t++)if(t===this.pages.length-1){var n=Uint8Array.from(this.pages[t].slice(0,this.cursor));e.push(n)}else e.push(this.pages[t]);var r=new Uint8Array(e.reduce((function(e,t){return e+t.length}),0));return e.reduce((function(e,t){return r.set(t,e),e+t.length}),0),r},a.prototype.writeByte=function(e){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=e},a.prototype.writeUTFBytes=function(e){for(var t=e.length,n=0;n<t;n++)this.writeByte(e.charCodeAt(n))},a.prototype.writeBytes=function(e,t,n){for(var r=n||e.length,o=t||0;o<r;o++)this.writeByte(e[o])},u.prototype.setDelay=function(e){this.delay=Math.round(e/10)},u.prototype.setFrameRate=function(e){this.delay=Math.round(100/e)},u.prototype.setDispose=function(e){e>=0&&(this.dispose=e)},u.prototype.setRepeat=function(e){this.repeat=e},u.prototype.setTransparent=function(e){this.transparent=e},u.prototype.addFrame=function(e){this.image=e,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},u.prototype.finish=function(){this.out.writeByte(59)},u.prototype.setQuality=function(e){e<1&&(e=1),this.sample=e},u.prototype.setDither=function(e){!0===e&&(e="FloydSteinberg"),this.dither=e},u.prototype.setGlobalPalette=function(e){this.globalPalette=e},u.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},u.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},u.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new r(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},u.prototype.indexPixels=function(e){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var n=0,r=0;r<t;r++){var o=this.findClosestRGB(255&this.pixels[n++],255&this.pixels[n++],255&this.pixels[n++]);this.usedEntry[o]=!0,this.indexedPixels[r]=o}},u.prototype.ditherPixels=function(e,t){var n={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!e||!n[e])throw"Unknown dithering kernel: "+e;var r=n[e],o=0,i=this.height,a=this.width,s=this.pixels,u=t?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var c=0;c<i;c++){t&&(u*=-1);for(var l=1==u?0:a-1,h=1==u?a:0;l!==h;l+=u){var d=3*(o=c*a+l),p=s[d],f=s[d+1],g=s[d+2];d=this.findClosestRGB(p,f,g),this.usedEntry[d]=!0,this.indexedPixels[o]=d,d*=3;for(var m=p-this.colorTab[d],v=f-this.colorTab[d+1],y=g-this.colorTab[d+2],w=1==u?0:r.length-1,b=1==u?r.length:0;w!==b;w+=u){var S=r[w][1],_=r[w][2];if(S+l>=0&&S+l<a&&_+c>=0&&_+c<i){var C=r[w][0];d=o+S+_*a,s[d*=3]=Math.max(0,Math.min(255,s[d]+m*C)),s[d+1]=Math.max(0,Math.min(255,s[d+1]+v*C)),s[d+2]=Math.max(0,Math.min(255,s[d+2]+y*C))}}}}},u.prototype.findClosest=function(e,t){return this.findClosestRGB((16711680&e)>>16,(65280&e)>>8,255&e,t)},u.prototype.findClosestRGB=function(e,t,n,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(e,t,n);for(var o=0,i=16777216,a=this.colorTab.length,s=0,u=0;s<a;u++){var c=e-(255&this.colorTab[s++]),l=t-(255&this.colorTab[s++]),h=n-(255&this.colorTab[s++]),d=c*c+l*l+h*h;(!r||this.usedEntry[u])&&d<i&&(i=d,o=u)}return o},u.prototype.getImagePixels=function(){var e=this.width,t=this.height;this.pixels=new Uint8Array(e*t*3);for(var n=this.image,r=0,o=0,i=0;i<t;i++)for(var a=0;a<e;a++)this.pixels[o++]=n[r++],this.pixels[o++]=n[r++],this.pixels[o++]=n[r++],r++},u.prototype.writeGraphicCtrlExt=function(){var e,t;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(e=0,t=0):(e=1,t=2),this.dispose>=0&&(t=7&this.dispose),t<<=2,this.out.writeByte(0|t|e),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},u.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},u.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},u.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},u.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var e=768-this.colorTab.length,t=0;t<e;t++)this.out.writeByte(0)},u.prototype.writeShort=function(e){this.out.writeByte(255&e),this.out.writeByte(e>>8&255)},u.prototype.writePixels=function(){new i(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},u.prototype.stream=function(){return this.out},t.a=u},function(e,t,n){e.exports=n(21)},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=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 u(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===l)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=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function h(){}function d(){}function p(){}var f={};s(f,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(O([])));m&&m!==t&&n.call(m,o)&&(f=m);var v=p.prototype=h.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var u=c(e[o],e,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(h).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(o,i,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 l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function S(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=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 i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=p,s(v,"constructor",p),s(p,"constructor",d),d.displayName=s(p,a,"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,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(w.prototype),s(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,o,(function(){return this})),s(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=O,C.prototype={constructor:C,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(_),!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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):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),l},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),_(n),l}},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 o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";(function(e){var r=n(17),o=n(18),i=n(19);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(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 h(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");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),o=(e=s(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(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):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(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 h(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.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 F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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 M(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){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=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,u=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,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var h=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){h=!1;break}if(h)return i}return-1}function w(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/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 b(e,t,n,r){return $(F(t,e.length-n),e,n,r)}function S(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return S(e,t,n,r)}function C(e,t,n,r){return $(z(t),e,n,r)}function O(e,t,n,r){return $(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(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=[],o=t;o<n;){var i,a,s,u,c=e[o],l=null,h=c>239?4:c>223?3:c>191?2:1;if(o+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=U(e[i]);return o}function x(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function k(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 I(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function D(e,t,n,r,o,i){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,i){return i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.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(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(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)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.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)m(this,t,t+1);return this},u.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)m(this,t,t+3),m(this,t+1,t+2);return this},u.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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),h=0;h<s;++h)if(c[h]!==l[h]){i=c[h],a=l[h];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.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),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.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 o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.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 o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.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 i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:F(new u(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(16))},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";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],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(e,a,a+16383>s?s:a+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],o[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 l(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,h=n?o-1:0,d=n?-1:1,p=e[t+h];for(h+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+h],h+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+h],h+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,h=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=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=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(t*u-1)*Math.pow(2,o),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";const r="'([^']+)'|\"([^\"]+)\"|[\\w\\s-]+",o=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),i=new RegExp("(italic|oblique) +","i"),a=new RegExp("(small-caps) +","i"),s=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),u=new RegExp("([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:"+r+")( *, *(?:"+r+"))*)"),c={};e.exports=function(e){if(c[e])return c[e];const t=u.exec(e);if(!t)return;const n={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(t[1]),unit:t[2],family:t[3].replace(/["']/g,"").replace(/ *, */g,",")};let r,l,h,d,p=e.substring(0,t.index);switch((r=o.exec(p))&&(n.weight=r[1]),(l=i.exec(p))&&(n.style=l[1]),(h=a.exec(p))&&(n.variant=h[1]),(d=s.exec(p))&&(n.stretch=d[1]),n.unit){case"pt":n.size/=.75;break;case"pc":n.size*=16;break;case"in":n.size*=96;break;case"cm":n.size*=96/2.54;break;case"mm":n.size*=96/25.4;break;case"%":break;case"em":case"rem":n.size*=16/.75;break;case"q":n.size*=96/25.4/4}return c[e]=n}},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n.n(r),i=n(3),a=n.n(i);function s(e){return""===e?e:"true"===e||"1"==e}var u=function(e,t){return new Promise((function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsArrayBuffer(r.response)},r.open("GET",e),r.send()}))},c=n(10),l=function(e,t,n,r,o,i,a,s){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(u=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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):o&&(u=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:e,options:c}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:function(){return{imgUrl:""}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.main()},methods:{main:function(){var e=this;return o()(a.a.mark((function t(){var n,r,o,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.gifBgSrc){t.next=7;break}return t.next=3,u(e.gifBgSrc);case 3:return n=t.sent,r=e.logoSrc,e.render(void 0,r,n),t.abrupt("return");case 7:o=e.bgSrc,i=e.logoSrc,e.render(o,i);case 10:case"end":return t.stop()}}),t)})))()},render:function(e,t,n){var r=this;return o()(a.a.mark((function o(){var i;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:i=r,new c.a({gifBackground:n,text:i.text,size:i.size,margin:i.margin,colorDark:i.colorDark,colorLight:i.colorLight,backgroundColor:i.backgroundColor,backgroundImage:e,backgroundDimming:i.backgroundDimming,logoImage:t,logoScale:i.logoScale,logoBackgroundColor:i.logoBackgroundColor,correctLevel:i.correctLevel,logoMargin:i.logoMargin,logoCornerRadius:i.logoCornerRadius,whiteMargin:s(i.whiteMargin),dotScale:i.dotScale,autoColor:s(i.autoColor),binarize:s(i.binarize),binarizeThreshold:i.binarizeThreshold,components:i.components}).draw().then((function(e){r.imgUrl=e,i.callback&&i.callback(e,i.qid)}));case 2:case"end":return o.stop()}}),o)})))()}}},(function(){var e=this.$createElement,t=this._self._c||e;return this.bindElement?t("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()}),[],!1,null,null,null).exports;l.install=function(e){return e.component(l.name,l)};var h=l,d=[h];"undefined"!=typeof window&&window.Vue&&function(e){d.map((function(t){e.component(t.name,t)}))}(window.Vue),t.default=h}])},,function(e,t,n){"use strict";t.a=function(e,t,n,r){for(var o=e.length,c=n+(r?1:-1);r?c--:++c<o;)if(t(e[c],c,e))return c;return-1}},,,,,,,,,,function(e,t,n){"use strict";var r=n(354),o=n(516),c=Object(o.a)(Object.keys,Object),l=Object.prototype.hasOwnProperty;t.a=function(object){if(!Object(r.a)(object))return c(object);var e=[];for(var t in Object(object))l.call(object,t)&&"constructor"!=t&&e.push(t);return e}},,,,,function(e,t,n){"use strict";t.a=function(e,t){return e<t}},,function(e,t,n){"use strict";var r=n(262);var o=function(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)},c=Math.max;var l=function(e,t,n){return t=c(void 0===t?e.length-1:t,0),function(){for(var r=arguments,l=-1,h=c(r.length-t,0),d=Array(h);++l<h;)d[l]=r[t+l];l=-1;for(var f=Array(t+1);++l<t;)f[l]=r[l];return f[t]=n(d),o(e,this,f)}};var h=function(e){return function(){return e}},d=n(380),f=d.a?function(e,t){return Object(d.a)(e,"toString",{configurable:!0,enumerable:!1,value:h(t),writable:!0})}:r.a,m=Date.now;var v=function(e){var t=0,n=0;return function(){var r=m(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},y=v(f);t.a=function(e,t){return y(l(e,t,r.a),e+"")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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(58).Buffer,o=n(1282).Transform;function c(e){o.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(47)(c,o),c.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},c.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},c.prototype.update=function(data,e){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(data)||(data=r.from(data,e));for(var t=this._block,n=0;this._blockOffset+data.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=data[n++];this._update(),this._blockOffset=0}for(;n<data.length;)t[this._blockOffset++]=data[n++];for(var o=0,c=8*data.length;c>0;++o)this._length[o]+=c,(c=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*c);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.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 i=0;i<4;++i)this._length[i]=0;return t},c.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=c},function(e,t,n){"use strict";(function(t,r){var o;e.exports=I,I.ReadableState=k;n(183).EventEmitter;var c=function(e,t){return e.listeners(t).length},l=n(830),h=n(46).Buffer,d=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,m=n(1283);f=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,w,S=n(1284),_=n(831),C=n(832).getHighWaterMark,O=n(348).codes,A=O.ERR_INVALID_ARG_TYPE,T=O.ERR_STREAM_PUSH_AFTER_EOF,E=O.ERR_METHOD_NOT_IMPLEMENTED,P=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(47)(I,l);var M=_.errorOrDestroy,x=["error","close","destroy","pause","resume"];function k(e,t,r){o=o||n(349),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=C(this,e,"readableHighWaterMark",r),this.buffer=new S,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(v||(v=n(305).StringDecoder),this.decoder=new v(e.encoding),this.encoding=e.encoding)}function I(e){if(o=o||n(349),!(this instanceof I))return new I(e);var t=this instanceof o;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function R(e,t,n,r,o){f("readableAddChunk",t);var c,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(f("onEofChunk"),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,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}(e,l);else if(o||(c=function(e,t){var n;r=t,h.isBuffer(r)||r instanceof d||"string"==typeof t||void 0===t||e.objectMode||(n=new A("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(l,t)),c)M(e,c);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=function(e){return h.from(e)}(t)),r)l.endEmitted?M(e,new P):j(e,l,t,!0);else if(l.ended)M(e,new T);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?j(e,l,t,!1):U(e,l)):j(e,l,t,!1)}else r||(l.reading=!1,U(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function j(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&L(e)),U(e,t)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),I.prototype.destroy=_.destroy,I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(e,t){t(e)},I.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=h.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},I.prototype.unshift=function(e){return R(this,e,null,!0,!1)},I.prototype.isPaused=function(){return!1===this._readableState.flowing},I.prototype.setEncoding=function(e){v||(v=n(305).StringDecoder);var t=new v(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";null!==p;)content+=t.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};var D=1073741824;function N(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>=D?e=D:(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 L(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(B,e))}function B(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function U(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(f("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){f("readable nexttick read 0"),e.read(0)}function H(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function V(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.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function W(e){var t=e._readableState;f("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(K,t,e))}function K(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Y(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}I.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&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):L(this),null;if(0===(e=N(e,t))&&t.ended)return 0===t.length&&W(this),null;var r,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(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=N(n,t))),null===(r=e>0?V(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&W(this)),null!==r&&this.emit("data",r),r},I.prototype._read=function(e){M(this,new E("_read()"))},I.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?d:C;function h(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",S),e.removeListener("finish",_),e.removeListener("drain",m),e.removeListener("error",w),e.removeListener("unpipe",h),n.removeListener("end",d),n.removeListener("end",C),n.removeListener("data",y),v=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||m())}function d(){f("onend"),e.end()}o.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",h);var m=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,G(e))}}(n);e.on("drain",m);var v=!1;function y(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==Y(o.pipes,e))&&!v&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function w(t){f("onerror",t),C(),e.removeListener("error",w),0===c(e,"error")&&M(e,t)}function S(){e.removeListener("finish",_),C()}function _(){f("onfinish"),e.removeListener("close",S),C()}function C(){f("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",w),e.once("close",S),e.once("finish",_),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},I.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var c=Y(t.pipes,e);return-1===c||(t.pipes.splice(c,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},I.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?L(this):o.reading||r.nextTick($,this))),n},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var n=l.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(z,this),n},I.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(z,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(H,e,t))}(this,e)),e.paused=!1,this},I.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._readableState.paused=!0,this},I.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(o){(f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(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<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(I.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=n(1286)),y(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),I._fromList=V,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(I.from=function(e,t){return void 0===w&&(w=n(1287)),w(I,e,t)})}).call(this,n(67),n(83))},function(e,t,n){e.exports=n(183).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){o(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,c){var l=this,h=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return h||d?(c?c(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!c&&e?l._writableState?l._writableState.errorEmitted?t.nextTick(r,l):(l._writableState.errorEmitted=!0,t.nextTick(n,l,e)):t.nextTick(n,l,e):c?(t.nextTick(r,l),c(e)):t.nextTick(r,l)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(83))},function(e,t,n){"use strict";var r=n(348).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,o){var c=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,o,n);if(null!=c){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new r(o?n:"highWaterMark",c);return Math.floor(c)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function o(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 o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var c;e.exports=I,I.WritableState=k;var l={deprecate:n(579)},h=n(830),d=n(46).Buffer,f=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var m,v=n(831),y=n(832).getHighWaterMark,w=n(348).codes,S=w.ERR_INVALID_ARG_TYPE,_=w.ERR_METHOD_NOT_IMPLEMENTED,C=w.ERR_MULTIPLE_CALLBACK,O=w.ERR_STREAM_CANNOT_PIPE,A=w.ERR_STREAM_DESTROYED,T=w.ERR_STREAM_NULL_VALUES,E=w.ERR_STREAM_WRITE_AFTER_END,P=w.ERR_UNKNOWN_ENCODING,M=v.errorOrDestroy;function x(){}function k(e,t,l){c=c||n(349),e=e||{},"boolean"!=typeof l&&(l=t instanceof c),this.objectMode=!!e.objectMode,l&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=y(this,e,"writableHighWaterMark",l),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,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,o=n.sync,c=n.writecb;if("function"!=typeof c)throw new C;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,c){--t.pendingcb,n?(r.nextTick(c,o),r.nextTick(B,e,t),e._writableState.errorEmitted=!0,M(e,o)):(c(o),e._writableState.errorEmitted=!0,M(e,o),B(e,t))}(e,n,o,t,c);else{var l=N(n)||e.destroyed;l||n.corked||n.bufferProcessing||!n.bufferedRequest||D(e,n),o?r.nextTick(j,e,n,l,c):j(e,n,l,c)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function I(e){var t=this instanceof(c=c||n(349));if(!t&&!m.call(I,this))return new I(e);this._writableState=new k(e,this,t),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)),h.call(this)}function R(e,t,n,r,o,c,l){t.writelen=r,t.writecb=l,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new A("write")):n?e._writev(o,t.onwrite):e._write(o,c,t.onwrite),t.sync=!1}function j(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),B(e,t)}function D(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,c=new Array(r),l=t.corkedRequestsFree;l.entry=n;for(var h=0,d=!0;n;)c[h]=n,n.isBuf||(d=!1),n=n.next,h+=1;c.allBuffers=d,R(e,t,!0,t.length,c,"",l.finish),t.pendingcb++,t.lastBufferedRequest=null,l.next?(t.corkedRequestsFree=l.next,l.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,m=n.encoding,v=n.callback;if(R(e,t,!1,t.objectMode?1:f.length,f,m,v),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(n){t.pendingcb--,n&&M(e,n),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var n=N(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(L,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}n(47)(I,h),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:l.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]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===I&&(object&&object._writableState instanceof k)}})):m=function(object){return object instanceof this},I.prototype.pipe=function(){M(this,new O)},I.prototype.write=function(e,t,n){var o,c=this._writableState,l=!1,h=!c.objectMode&&(o=e,d.isBuffer(o)||o instanceof f);return h&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),h?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof n&&(n=x),c.ending?function(e,t){var n=new E;M(e,n),r.nextTick(t,n)}(this,n):(h||function(e,t,n,o){var c;return null===n?c=new T:"string"==typeof n||t.objectMode||(c=new S("chunk",["string","Buffer"],n)),!c||(M(e,c),r.nextTick(o,c),!1)}(this,c,e,n))&&(c.pendingcb++,l=function(e,t,n,r,o,c){if(!n){var l=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,o);r!==l&&(n=!0,o="buffer",r=l)}var h=t.objectMode?1:r.length;t.length+=h;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var m=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:c,next:null},m?m.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,h,r,o,c);return f}(this,c,h,e,t,n)),l},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||D(this,e))},I.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 P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,n){n(new _("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,n){t.ending=!0,B(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=v.destroy,I.prototype._undestroy=v.undestroy,I.prototype._destroy=function(e,t){t(e)}}).call(this,n(67),n(83))},function(e,t,n){"use strict";e.exports=m;var r=n(348).codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,l=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,h=r.ERR_TRANSFORM_WITH_LENGTH_0,d=n(349);function f(e,data){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(null===n)return this.emit("error",new c);t.writechunk=null,t.writecb=null,null!=data&&this.push(data),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function m(e){if(!(this instanceof m))return new m(e);d.call(this,e),this._transformState={afterTransform:f.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",v)}function v(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?y(this,null,null):this._flush((function(t,data){y(e,t,data)}))}function y(e,t,data){if(t)return e.emit("error",t);if(null!=data&&e.push(data),e._writableState.length)throw new h;if(e._transformState.transforming)throw new l;return e.push(null)}n(47)(m,d),m.prototype.push=function(e,t){return this._transformState.needTransform=!1,d.prototype.push.call(this,e,t)},m.prototype._transform=function(e,t,n){n(new o("_transform()"))},m.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},m.prototype._destroy=function(e,t){d.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,n){var r=n(47),o=n(350),c=n(58).Buffer,l=[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],h=new Array(64);function d(){this.init(),this._w=h,o.call(this,64,56)}function f(e,t,n){return n^e&(t^n)}function m(e,t,n){return e&t|n&(e|t)}function v(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function y(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function w(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(d,o),d.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},d.prototype._update=function(e){for(var t,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,c=0|this._e,h=0|this._f,g=0|this._g,d=0|this._h,i=0;i<16;++i)n[i]=e.readInt32BE(4*i);for(;i<64;++i)n[i]=0|(((t=n[i-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[i-7]+w(n[i-15])+n[i-16];for(var S=0;S<64;++S){var _=d+y(c)+f(c,h,g)+l[S]+n[S]|0,C=v(a)+m(a,b,r)|0;d=g,g=h,h=c,c=o+_|0,o=r,r=b,b=a,a=_+C|0}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0,this._f=h+this._f|0,this._g=g+this._g|0,this._h=d+this._h|0},d.prototype._hash=function(){var e=c.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=d},function(e,t,n){var r=n(47),o=n(350),c=n(58).Buffer,l=[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],h=new Array(160);function d(){this.init(),this._w=h,o.call(this,128,112)}function f(e,t,n){return n^e&(t^n)}function m(e,t,n){return e&t|n&(e|t)}function v(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function y(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function w(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function S(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function _(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function C(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function O(a,b){return a>>>0<b>>>0?1:0}r(d,o),d.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},d.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,c=0|this._dh,h=0|this._eh,d=0|this._fh,A=0|this._gh,T=0|this._hh,E=0|this._al,P=0|this._bl,M=0|this._cl,dl=0|this._dl,x=0|this._el,k=0|this._fl,I=0|this._gl,R=0|this._hl,i=0;i<32;i+=2)t[i]=e.readInt32BE(4*i),t[i+1]=e.readInt32BE(4*i+4);for(;i<160;i+=2){var j=t[i-30],D=t[i-30+1],N=w(j,D),L=S(D,j),B=_(j=t[i-4],D=t[i-4+1]),U=C(D,j),F=t[i-14],z=t[i-14+1],$=t[i-32],H=t[i-32+1],G=L+z|0,V=N+F+O(G,L)|0;V=(V=V+B+O(G=G+U|0,U)|0)+$+O(G=G+H|0,H)|0,t[i]=V,t[i+1]=G}for(var W=0;W<160;W+=2){V=t[W],G=t[W+1];var K=m(n,r,o),Y=m(E,P,M),X=v(n,E),J=v(E,n),Z=y(h,x),Q=y(x,h),ee=l[W],te=l[W+1],ne=f(h,d,A),re=f(x,k,I),ie=R+Q|0,oe=T+Z+O(ie,R)|0;oe=(oe=(oe=oe+ne+O(ie=ie+re|0,re)|0)+ee+O(ie=ie+te|0,te)|0)+V+O(ie=ie+G|0,G)|0;var ae=J+Y|0,se=X+K+O(ae,J)|0;T=A,R=I,A=d,I=k,d=h,k=x,h=c+oe+O(x=dl+ie|0,dl)|0,c=o,dl=M,o=r,M=P,r=n,P=E,n=oe+se+O(E=ie+ae|0,ie)|0}this._al=this._al+E|0,this._bl=this._bl+P|0,this._cl=this._cl+M|0,this._dl=this._dl+dl|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+I|0,this._hl=this._hl+R|0,this._ah=this._ah+n+O(this._al,E)|0,this._bh=this._bh+r+O(this._bl,P)|0,this._ch=this._ch+o+O(this._cl,M)|0,this._dh=this._dh+c+O(this._dl,dl)|0,this._eh=this._eh+h+O(this._el,x)|0,this._fh=this._fh+d+O(this._fl,k)|0,this._gh=this._gh+A+O(this._gl,I)|0,this._hh=this._hh+T+O(this._hl,R)|0},d.prototype._hash=function(){var e=c.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=d},function(e,t,n){"use strict";(function(t,r){var o=n(483);e.exports=T;var c,l=n(815);T.ReadableState=A;n(183).EventEmitter;var h=function(e,t){return e.listeners(t).length},d=n(838),f=n(584).Buffer,m=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var v=Object.create(n(411));v.inherits=n(47);var y=n(1295),w=void 0;w=y&&y.debuglog?y.debuglog("stream"):function(){};var S,_=n(1296),C=n(839);v.inherits(T,d);var O=["error","close","destroy","pause","resume"];function A(e,t){e=e||{};var r=t instanceof(c=c||n(306));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,l=e.readableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(l||0===l)?l:h,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _,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&&(S||(S=n(305).StringDecoder),this.decoder=new S(e.encoding),this.encoding=e.encoding)}function T(e){if(c=c||n(306),!(this instanceof T))return new T(e);this._readableState=new A(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function E(e,t,n,r,o){var c,l=e._readableState;null===t?(l.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,k(e)}(e,l)):(o||(c=function(e,t){var n;r=t,f.isBuffer(r)||r instanceof m||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(l,t)),c?e.emit("error",c):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),r?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):P(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?P(e,l,t,!1):R(e,l)):P(e,l,t,!1))):r||(l.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(l)}function P(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&&k(e)),R(e,t)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=C.destroy,T.prototype._undestroy=C.undestroy,T.prototype._destroy=function(e,t){this.push(null),t(e)},T.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=f.from(e,t),t=""),n=!0),E(this,e,t,!1,n)},T.prototype.unshift=function(e){return E(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){return S||(S=n(305).StringDecoder),this._readableState.decoder=new S(e),this._readableState.encoding=e,this};var M=8388608;function x(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>=M?e=M:(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 k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(I,e):I(e))}function I(e){w("emit readable"),e.emit("readable"),L(e)}function R(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(j,e,t))}function j(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function D(e){w("readable nexttick read 0"),e.read(0)}function N(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function B(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 p=t.head,n=1,r=p.data;e-=r.length;for(;p=p.next;){var o=p.data,c=e>o.length?o.length:e;if(c===o.length?r+=o:r+=o.slice(0,e),0===(e-=c)){c===o.length?(++n,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(c));break}++n}return t.length-=n,r}(e,t):function(e,t){var n=f.allocUnsafe(e),p=t.head,r=1;p.data.copy(n),e-=p.data.length;for(;p=p.next;){var o=p.data,c=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,c),0===(e-=c)){c===o.length?(++r,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(c));break}++r}return t.length-=r,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(F,t,e))}function F(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}T.prototype.read=function(e){w("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 w("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,o=t.needReadable;return w("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&w("length less than watermark",o=!0),t.ended||t.reading?w("reading or ended",o=!1):o&&(w("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(n,t))),null===(r=e>0?B(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(e,t){var n=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=e;break;case 1:c.pipes=[c.pipes,e];break;default:c.pipes.push(e)}c.pipesCount+=1,w("pipe count=%d opts=%j",c.pipesCount,t);var d=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?m:T;function f(t,r){w("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,w("cleanup"),e.removeListener("close",O),e.removeListener("finish",A),e.removeListener("drain",v),e.removeListener("error",C),e.removeListener("unpipe",f),n.removeListener("end",m),n.removeListener("end",T),n.removeListener("data",_),y=!0,!c.awaitDrain||e._writableState&&!e._writableState.needDrain||v())}function m(){w("onend"),e.end()}c.endEmitted?o.nextTick(d):n.once("end",d),e.on("unpipe",f);var v=function(e){return function(){var t=e._readableState;w("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&h(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",v);var y=!1;var S=!1;function _(t){w("ondata"),S=!1,!1!==e.write(t)||S||((1===c.pipesCount&&c.pipes===e||c.pipesCount>1&&-1!==z(c.pipes,e))&&!y&&(w("false write response, pause",c.awaitDrain),c.awaitDrain++,S=!0),n.pause())}function C(t){w("onerror",t),T(),e.removeListener("error",C),0===h(e,"error")&&e.emit("error",t)}function O(){e.removeListener("finish",A),T()}function A(){w("onfinish"),e.removeListener("close",O),T()}function T(){w("unpipe"),n.unpipe(e)}return n.on("data",_),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?l(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",C),e.once("close",O),e.once("finish",A),e.emit("pipe",n),c.flowing||(w("pipe resume"),n.resume()),e},T.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var c=z(t.pipes,e);return-1===c||(t.pipes.splice(c,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},T.prototype.on=function(e,t){var n=d.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&&k(this):o.nextTick(D,this))}return n},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var e=this._readableState;return e.flowing||(w("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(N,e,t))}(this,e)),this},T.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(w("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(w("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(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<O.length;o++)e.on(O[o],this.emit.bind(this,O[o]));return this._read=function(t){w("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=B}).call(this,n(67),n(83))},function(e,t,n){e.exports=n(183).EventEmitter},function(e,t,n){"use strict";var r=n(483);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(o,n,e)):r.nextTick(o,n,e):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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=l;var r=n(306),o=Object.create(n(411));function c(e,data){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,null!=data&&this.push(data),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);r.call(this,e),this._transformState={afterTransform:c.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",h)}function h(){var e=this;"function"==typeof this._flush?this._flush((function(t,data){d(e,t,data)})):d(this,null,null)}function d(e,t,data){if(t)return e.emit("error",t);if(null!=data&&e.push(data),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)}o.inherits=n(47),o.inherits(l,r),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.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},l.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){"use strict";var r=n(47),o=n(1303),c=n(269),l=n(58).Buffer,h=n(842),d=n(581),f=n(582),m=l.alloc(128);function v(e,t){c.call(this,"digest"),"string"==typeof t&&(t=l.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new d:f(e)).update(t).digest():t.length<n&&(t=l.concat([t,m],n));for(var r=this._ipad=l.allocUnsafe(n),o=this._opad=l.allocUnsafe(n),i=0;i<n;i++)r[i]=54^t[i],o[i]=92^t[i];this._hash="rmd160"===e?new d:f(e),this._hash.update(r)}r(v,c),v.prototype._update=function(data){this._hash.update(data)},v.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new d:f(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new v("rmd160",t):"md5"===e?new o(h,t):new v(e,t)}},function(e,t,n){var r=n(578);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(1305),t.pbkdf2Sync=n(847)},function(e,t){var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},function(e,t,n){(function(t,n){var r;if(t.process&&t.process.browser)r="utf-8";else if(t.process&&t.process.version){r=parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";e.exports=r}).call(this,n(67),n(83))},function(e,t,n){var r=n(842),o=n(581),c=n(582),l=n(58).Buffer,h=n(845),d=n(846),f=n(848),m=l.alloc(128),v={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function y(e,t,n){var h=function(e){function t(data){return c(e).update(data).digest()}function n(data){return(new o).update(data).digest()}return"rmd160"===e||"ripemd160"===e?n:"md5"===e?r:t}(e),d="sha512"===e||"sha384"===e?128:64;t.length>d?t=h(t):t.length<d&&(t=l.concat([t,m],d));for(var f=l.allocUnsafe(d+v[e]),y=l.allocUnsafe(d+v[e]),i=0;i<d;i++)f[i]=54^t[i],y[i]=92^t[i];var w=l.allocUnsafe(d+n+4);f.copy(w,0,0,d),this.ipad1=w,this.ipad2=f,this.opad=y,this.alg=e,this.blocksize=d,this.hash=h,this.size=v[e]}y.prototype.run=function(data,e){return data.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,o){h(n,r);var c=new y(o=o||"sha1",e=f(e,d,"Password"),(t=f(t,d,"Salt")).length),m=l.allocUnsafe(r),w=l.allocUnsafe(t.length+4);t.copy(w,0,0,t.length);for(var S=0,_=v[o],C=Math.ceil(r/_),i=1;i<=C;i++){w.writeUInt32BE(i,t.length);for(var O=c.run(w,c.ipad1),A=O,T=1;T<n;T++){A=c.run(A,c.ipad2);for(var E=0;E<_;E++)O[E]^=A[E]}O.copy(m,S),S+=_}return m}},function(e,t,n){var r=n(58).Buffer;e.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},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 o=0,c=0,i=6;i>=0;i-=2){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>>l+i&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>>l+i&1}for(i=6;i>=0;i-=2){for(l=1;l<=25;l+=8)c<<=1,c|=t>>>l+i&1;for(l=1;l<=25;l+=8)c<<=1,c|=e>>>l+i&1}n[r+0]=o>>>0,n[r+1]=c>>>0},t.rip=function(e,t,n,r){for(var o=0,c=0,i=0;i<4;i++)for(var l=24;l>=0;l-=8)o<<=1,o|=t>>>l+i&1,o<<=1,o|=e>>>l+i&1;for(i=4;i<8;i++)for(l=24;l>=0;l-=8)c<<=1,c|=t>>>l+i&1,c<<=1,c|=e>>>l+i&1;n[r+0]=o>>>0,n[r+1]=c>>>0},t.pc1=function(e,t,n,r){for(var o=0,c=0,i=7;i>=5;i--){for(var l=0;l<=24;l+=8)o<<=1,o|=t>>l+i&1;for(l=0;l<=24;l+=8)o<<=1,o|=e>>l+i&1}for(l=0;l<=24;l+=8)o<<=1,o|=t>>l+i&1;for(i=1;i<=3;i++){for(l=0;l<=24;l+=8)c<<=1,c|=t>>l+i&1;for(l=0;l<=24;l+=8)c<<=1,c|=e>>l+i&1}for(l=0;l<=24;l+=8)c<<=1,c|=e>>l+i&1;n[r+0]=o>>>0,n[r+1]=c>>>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,o){for(var c=0,l=0,h=r.length>>>1,i=0;i<h;i++)c<<=1,c|=e>>>r[i]&1;for(i=h;i<r.length;i++)l<<=1,l|=t>>>r[i]&1;n[o+0]=c>>>0,n[o+1]=l>>>0},t.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var o=[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,i=0;i<4;i++){n<<=4,n|=o[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=o[256+64*i+(t>>>18-6*i&63)]}return n>>>0};var c=[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,i=0;i<c.length;i++)t<<=1,t|=e>>>c[i]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var o=[],i=0;i<t;i+=n)o.push(r.slice(i,i+n));return o.join(" ")}},function(e,t,n){"use strict";var r=n(178),o=n(47),c=n(849),l=n(586);function h(){this.tmp=new Array(2),this.keys=null}function d(e){l.call(this,e);var t=new h;this._desState=t,this.deriveKeys(t,e.key)}o(d,l),e.exports=d,d.create=function(e){return new d(e)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];d.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=c.readUInt32BE(t,0),o=c.readUInt32BE(t,4);c.pc1(n,o,e.tmp,0),n=e.tmp[0],o=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var l=f[i>>>1];n=c.r28shl(n,l),o=c.r28shl(o,l),c.pc2(n,o,e.keys,i)}},d.prototype._update=function(e,t,n,r){var o=this._desState,l=c.readUInt32BE(e,t),h=c.readUInt32BE(e,t+4);c.ip(l,h,o.tmp,0),l=o.tmp[0],h=o.tmp[1],"encrypt"===this.type?this._encrypt(o,l,h,o.tmp,0):this._decrypt(o,l,h,o.tmp,0),l=o.tmp[0],h=o.tmp[1],c.writeUInt32BE(n,l,r),c.writeUInt32BE(n,h,r+4)},d.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,i=t;i<e.length;i++)e[i]=n;return!0},d.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)r.equal(e[i],t);return e.slice(0,e.length-t)},d.prototype._encrypt=function(e,t,n,r,o){for(var l=t,h=n,i=0;i<e.keys.length;i+=2){var d=e.keys[i],f=e.keys[i+1];c.expand(h,e.tmp,0),d^=e.tmp[0],f^=e.tmp[1];var s=c.substitute(d,f),m=h;h=(l^c.permute(s))>>>0,l=m}c.rip(h,l,r,o)},d.prototype._decrypt=function(e,t,n,r,o){for(var l=n,h=t,i=e.keys.length-2;i>=0;i-=2){var d=e.keys[i],f=e.keys[i+1];c.expand(l,e.tmp,0),d^=e.tmp[0],f^=e.tmp[1];var s=c.substitute(d,f),m=l;l=(h^c.permute(s))>>>0,h=m}c.rip(l,h,r,o)}},function(e,t,n){var r=n(412),o=n(58).Buffer,c=n(852);function l(e){var t=e._cipher.encryptBlockRaw(e._prev);return c(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),c=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var i=0;i<n;i++){var h=l(e),d=c+16*i;e._cache.writeUInt32BE(h[0],d+0),e._cache.writeUInt32BE(h[1],d+4),e._cache.writeUInt32BE(h[2],d+8),e._cache.writeUInt32BE(h[3],d+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,f)}},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(484),o=n(58).Buffer,c=n(269),l=n(47),h=n(1318),d=n(412),f=n(852);function m(e,t,n,l){c.call(this);var d=o.alloc(4,0);this._cipher=new r.AES(t);var m=this._cipher.encryptBlock(d);this._ghash=new h(m),n=function(e,t,n){if(12===t.length)return e._finID=o.concat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var r=new h(n),c=t.length,l=c%16;r.update(t),l&&(l=16-l,r.update(o.alloc(l,0))),r.update(o.alloc(8,0));var d=8*c,m=o.alloc(8);m.writeUIntBE(d,0,8),r.update(m),e._finID=r.state;var v=o.from(e._finID);return f(v),v}(this,n,m),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=l,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}l(m,c),m.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=o.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},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(a,b){var e=0;a.length!==b.length&&e++;for(var t=Math.min(a.length,b.length),i=0;i<t;++i)e+=a[i]^b[i];return e}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},m.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=m},function(e,t,n){var r=n(484),o=n(58).Buffer,c=n(269);function l(e,t,n,l){c.call(this),this._cipher=new r.AES(t),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=l,this._mode=e}n(47)(l,c),l.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},l.prototype._final=function(){this._cipher.scrub()},e.exports=l},function(e,t,n){var r=n(347);e.exports=A,A.simpleSieve=C,A.fermatTest=O;var o=n(125),c=new o(24),l=new(n(857)),h=new o(1),d=new o(2),f=new o(5),m=(new o(16),new o(8),new o(10)),v=new o(3),y=(new o(7),new o(11)),w=new o(4),S=(new o(12),null);function _(){if(null!==S)return S;var e=[];e[0]=2;for(var i=1,t=3;t<1048576;t+=2){for(var n=Math.ceil(Math.sqrt(t)),r=0;r<i&&e[r]<=n&&t%e[r]!=0;r++);i!==r&&e[r]<=n||(e[i++]=t)}return S=e,e}function C(p){for(var e=_(),i=0;i<e.length;i++)if(0===p.modn(e[i]))return 0===p.cmpn(e[i]);return!0}function O(p){var e=o.mont(p);return 0===d.toRed(e).redPow(p.subn(1)).fromRed().cmpn(1)}function A(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var n,S;for(t=new o(t);;){for(n=new o(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(h),n.testn(1)||n.iadd(d),t.cmp(d)){if(!t.cmp(f))for(;n.mod(m).cmp(v);)n.iadd(w)}else for(;n.mod(c).cmp(y);)n.iadd(w);if(C(S=n.shrn(1))&&C(n)&&O(S)&&O(n)&&l.test(S)&&l.test(n))return n}}},function(e,t,n){var r=n(125),o=n(589);function c(e){this.rand=e||new o.Rand}e.exports=c,c.create=function(e){return new c(e)},c.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var a=new r(this.rand.generate(n))}while(a.cmp(e)>=0);return a},c.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},c.prototype.test=function(e,t,n){var o=e.bitLength(),c=r.mont(e),l=new r(1).toRed(c);t||(t=Math.max(1,o/48|0));for(var h=e.subn(1),s=0;!h.testn(s);s++);for(var d=e.shrn(s),f=h.toRed(c);t>0;t--){var a=this._randrange(new r(2),h);n&&n(a);var m=a.toRed(c).redPow(d);if(0!==m.cmp(l)&&0!==m.cmp(f)){for(var i=1;i<s;i++){if(0===(m=m.redSqr()).cmp(l))return!1;if(0===m.cmp(f))break}if(i===s)return!1}}return!0},c.prototype.getDivisor=function(e,t){var n=e.bitLength(),o=r.mont(e),c=new r(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var l=e.subn(1),s=0;!l.testn(s);s++);for(var h=e.shrn(s),d=l.toRed(o);t>0;t--){var a=this._randrange(new r(2),l),g=e.gcd(a);if(0!==g.cmpn(1))return g;var f=a.toRed(o).redPow(h);if(0!==f.cmp(c)&&0!==f.cmp(d)){for(var i=1;i<s;i++){if(0===(f=f.redSqr()).cmp(c))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(d))break}if(i===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";(function(t,r){var o;e.exports=I,I.ReadableState=k;n(183).EventEmitter;var c=function(e,t){return e.listeners(t).length},l=n(859),h=n(46).Buffer,d=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,m=n(1328);f=m&&m.debuglog?m.debuglog("stream"):function(){};var v,y,w,S=n(1329),_=n(860),C=n(861).getHighWaterMark,O=n(351).codes,A=O.ERR_INVALID_ARG_TYPE,T=O.ERR_STREAM_PUSH_AFTER_EOF,E=O.ERR_METHOD_NOT_IMPLEMENTED,P=O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(47)(I,l);var M=_.errorOrDestroy,x=["error","close","destroy","pause","resume"];function k(e,t,r){o=o||n(352),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=C(this,e,"readableHighWaterMark",r),this.buffer=new S,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(v||(v=n(305).StringDecoder),this.decoder=new v(e.encoding),this.encoding=e.encoding)}function I(e){if(o=o||n(352),!(this instanceof I))return new I(e);var t=this instanceof o;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function R(e,t,n,r,o){f("readableAddChunk",t);var c,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(f("onEofChunk"),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,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}(e,l);else if(o||(c=function(e,t){var n;r=t,h.isBuffer(r)||r instanceof d||"string"==typeof t||void 0===t||e.objectMode||(n=new A("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(l,t)),c)M(e,c);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=function(e){return h.from(e)}(t)),r)l.endEmitted?M(e,new P):j(e,l,t,!0);else if(l.ended)M(e,new T);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?j(e,l,t,!1):U(e,l)):j(e,l,t,!1)}else r||(l.reading=!1,U(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function j(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&L(e)),U(e,t)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),I.prototype.destroy=_.destroy,I.prototype._undestroy=_.undestroy,I.prototype._destroy=function(e,t){t(e)},I.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=h.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},I.prototype.unshift=function(e){return R(this,e,null,!0,!1)},I.prototype.isPaused=function(){return!1===this._readableState.flowing},I.prototype.setEncoding=function(e){v||(v=n(305).StringDecoder);var t=new v(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";null!==p;)content+=t.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};var D=1073741824;function N(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>=D?e=D:(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 L(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(B,e))}function B(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function U(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(f("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){f("readable nexttick read 0"),e.read(0)}function H(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function V(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.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function W(e){var t=e._readableState;f("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(K,t,e))}function K(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Y(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}I.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&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):L(this),null;if(0===(e=N(e,t))&&t.ended)return 0===t.length&&W(this),null;var r,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(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=N(n,t))),null===(r=e>0?V(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&W(this)),null!==r&&this.emit("data",r),r},I.prototype._read=function(e){M(this,new E("_read()"))},I.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?d:C;function h(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",S),e.removeListener("finish",_),e.removeListener("drain",m),e.removeListener("error",w),e.removeListener("unpipe",h),n.removeListener("end",d),n.removeListener("end",C),n.removeListener("data",y),v=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||m())}function d(){f("onend"),e.end()}o.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",h);var m=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,G(e))}}(n);e.on("drain",m);var v=!1;function y(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==Y(o.pipes,e))&&!v&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function w(t){f("onerror",t),C(),e.removeListener("error",w),0===c(e,"error")&&M(e,t)}function S(){e.removeListener("finish",_),C()}function _(){f("onfinish"),e.removeListener("close",S),C()}function C(){f("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",w),e.once("close",S),e.once("finish",_),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},I.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var c=Y(t.pipes,e);return-1===c||(t.pipes.splice(c,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},I.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?L(this):o.reading||r.nextTick($,this))),n},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var n=l.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(z,this),n},I.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(z,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(H,e,t))}(this,e)),e.paused=!1,this},I.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._readableState.paused=!0,this},I.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(o){(f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(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<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(I.prototype[Symbol.asyncIterator]=function(){return void 0===y&&(y=n(1331)),y(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),I._fromList=V,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(I.from=function(e,t){return void 0===w&&(w=n(1332)),w(I,e,t)})}).call(this,n(67),n(83))},function(e,t,n){e.exports=n(183).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){o(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,c){var l=this,h=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return h||d?(c?c(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!c&&e?l._writableState?l._writableState.errorEmitted?t.nextTick(r,l):(l._writableState.errorEmitted=!0,t.nextTick(n,l,e)):t.nextTick(n,l,e):c?(t.nextTick(r,l),c(e)):t.nextTick(r,l)})),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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(83))},function(e,t,n){"use strict";var r=n(351).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,o){var c=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,o,n);if(null!=c){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new r(o?n:"highWaterMark",c);return Math.floor(c)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function o(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 o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var c;e.exports=I,I.WritableState=k;var l={deprecate:n(579)},h=n(859),d=n(46).Buffer,f=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var m,v=n(860),y=n(861).getHighWaterMark,w=n(351).codes,S=w.ERR_INVALID_ARG_TYPE,_=w.ERR_METHOD_NOT_IMPLEMENTED,C=w.ERR_MULTIPLE_CALLBACK,O=w.ERR_STREAM_CANNOT_PIPE,A=w.ERR_STREAM_DESTROYED,T=w.ERR_STREAM_NULL_VALUES,E=w.ERR_STREAM_WRITE_AFTER_END,P=w.ERR_UNKNOWN_ENCODING,M=v.errorOrDestroy;function x(){}function k(e,t,l){c=c||n(352),e=e||{},"boolean"!=typeof l&&(l=t instanceof c),this.objectMode=!!e.objectMode,l&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=y(this,e,"writableHighWaterMark",l),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,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,o=n.sync,c=n.writecb;if("function"!=typeof c)throw new C;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,c){--t.pendingcb,n?(r.nextTick(c,o),r.nextTick(B,e,t),e._writableState.errorEmitted=!0,M(e,o)):(c(o),e._writableState.errorEmitted=!0,M(e,o),B(e,t))}(e,n,o,t,c);else{var l=N(n)||e.destroyed;l||n.corked||n.bufferProcessing||!n.bufferedRequest||D(e,n),o?r.nextTick(j,e,n,l,c):j(e,n,l,c)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function I(e){var t=this instanceof(c=c||n(352));if(!t&&!m.call(I,this))return new I(e);this._writableState=new k(e,this,t),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)),h.call(this)}function R(e,t,n,r,o,c,l){t.writelen=r,t.writecb=l,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new A("write")):n?e._writev(o,t.onwrite):e._write(o,c,t.onwrite),t.sync=!1}function j(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),B(e,t)}function D(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,c=new Array(r),l=t.corkedRequestsFree;l.entry=n;for(var h=0,d=!0;n;)c[h]=n,n.isBuf||(d=!1),n=n.next,h+=1;c.allBuffers=d,R(e,t,!0,t.length,c,"",l.finish),t.pendingcb++,t.lastBufferedRequest=null,l.next?(t.corkedRequestsFree=l.next,l.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,m=n.encoding,v=n.callback;if(R(e,t,!1,t.objectMode?1:f.length,f,m,v),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(n){t.pendingcb--,n&&M(e,n),t.prefinished=!0,e.emit("prefinish"),B(e,t)}))}function B(e,t){var n=N(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(L,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}n(47)(I,h),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:l.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]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===I&&(object&&object._writableState instanceof k)}})):m=function(object){return object instanceof this},I.prototype.pipe=function(){M(this,new O)},I.prototype.write=function(e,t,n){var o,c=this._writableState,l=!1,h=!c.objectMode&&(o=e,d.isBuffer(o)||o instanceof f);return h&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),h?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof n&&(n=x),c.ending?function(e,t){var n=new E;M(e,n),r.nextTick(t,n)}(this,n):(h||function(e,t,n,o){var c;return null===n?c=new T:"string"==typeof n||t.objectMode||(c=new S("chunk",["string","Buffer"],n)),!c||(M(e,c),r.nextTick(o,c),!1)}(this,c,e,n))&&(c.pendingcb++,l=function(e,t,n,r,o,c){if(!n){var l=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,o);r!==l&&(n=!0,o="buffer",r=l)}var h=t.objectMode?1:r.length;t.length+=h;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var m=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:c,next:null},m?m.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,h,r,o,c);return f}(this,c,h,e,t,n)),l},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||D(this,e))},I.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 P(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,n){n(new _("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,n){t.ending=!0,B(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=v.destroy,I.prototype._undestroy=v.undestroy,I.prototype._destroy=function(e,t){t(e)}}).call(this,n(67),n(83))},function(e,t,n){"use strict";e.exports=m;var r=n(351).codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,l=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,h=r.ERR_TRANSFORM_WITH_LENGTH_0,d=n(352);function f(e,data){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(null===n)return this.emit("error",new c);t.writechunk=null,t.writecb=null,null!=data&&this.push(data),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function m(e){if(!(this instanceof m))return new m(e);d.call(this,e),this._transformState={afterTransform:f.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",v)}function v(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?y(this,null,null):this._flush((function(t,data){y(e,t,data)}))}function y(e,t,data){if(t)return e.emit("error",t);if(null!=data&&e.push(data),e._writableState.length)throw new h;if(e._transformState.transforming)throw new l;return e.push(null)}n(47)(m,d),m.prototype.push=function(e,t){return this._transformState.needTransform=!1,d.prototype.push.call(this,e,t)},m.prototype._transform=function(e,t,n){n(new o("_transform()"))},m.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},m.prototype._destroy=function(e,t){d.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,n){"use strict";var r=t;function o(e){return 1===e.length?"0"+e:e}function c(e){for(var t="",i=0;i<e.length;i++)t+=o(e[i].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 i=0;i<e.length;i++)n[i]=0|e[i];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(i=0;i<e.length;i++){var r=e.charCodeAt(i),o=r>>8,c=255&r;o?n.push(o,c):n.push(c)}return n},r.zero2=o,r.toHex=c,r.encode=function(e,t){return"hex"===t?c(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(487),r.short=n(1339),r.mont=n(1340),r.edwards=n(1341)},function(e,t,n){"use strict";var r=n(213).rotr32;function o(e,t,n){return e&t^~e&n}function c(e,t,n){return e&t^e&n^t&n}function l(e,t,n){return e^t^n}t.ft_1=function(s,e,t,n){return 0===s?o(e,t,n):1===s||3===s?l(e,t,n):2===s?c(e,t,n):void 0},t.ch32=o,t.maj32=c,t.p32=l,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(213),o=n(413),c=n(866),l=n(178),h=r.sum32,d=r.sum32_4,f=r.sum32_5,m=c.ch32,v=c.maj32,y=c.s0_256,w=c.s1_256,S=c.g0_256,_=c.g1_256,C=o.BlockHash,O=[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 A(){if(!(this instanceof A))return new A;C.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=O,this.W=new Array(64)}r.inherits(A,C),e.exports=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=d(_(n[i-2]),n[i-7],S(n[i-15]),n[i-16]);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],c=this.h[4],C=this.h[5],g=this.h[6],O=this.h[7];for(l(this.k.length===n.length),i=0;i<n.length;i++){var A=f(O,w(c),m(c,C,g),this.k[i],n[i]),T=h(y(a),v(a,b,r));O=g,g=C,C=c,c=h(o,A),o=r,r=b,b=a,a=h(A,T)}this.h[0]=h(this.h[0],a),this.h[1]=h(this.h[1],b),this.h[2]=h(this.h[2],r),this.h[3]=h(this.h[3],o),this.h[4]=h(this.h[4],c),this.h[5]=h(this.h[5],C),this.h[6]=h(this.h[6],g),this.h[7]=h(this.h[7],O)},A.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(213),o=n(413),c=n(178),l=r.rotr64_hi,h=r.rotr64_lo,d=r.shr64_hi,f=r.shr64_lo,m=r.sum64,v=r.sum64_hi,y=r.sum64_lo,w=r.sum64_4_hi,S=r.sum64_4_lo,_=r.sum64_5_hi,C=r.sum64_5_lo,O=o.BlockHash,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];function T(){if(!(this instanceof T))return new T;O.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}function E(e,t,n,r,o){var c=e&n^~e&o;return c<0&&(c+=4294967296),c}function P(e,t,n,r,o,c){var l=t&r^~t&c;return l<0&&(l+=4294967296),l}function M(e,t,n,r,o){var c=e&n^e&o^n&o;return c<0&&(c+=4294967296),c}function x(e,t,n,r,o,c){var l=t&r^t&c^r&c;return l<0&&(l+=4294967296),l}function k(e,t){var n=l(e,t,28)^l(t,e,2)^l(t,e,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=h(e,t,28)^h(t,e,2)^h(t,e,7);return n<0&&(n+=4294967296),n}function R(e,t){var n=l(e,t,14)^l(e,t,18)^l(t,e,9);return n<0&&(n+=4294967296),n}function j(e,t){var n=h(e,t,14)^h(e,t,18)^h(t,e,9);return n<0&&(n+=4294967296),n}function D(e,t){var n=l(e,t,1)^l(e,t,8)^d(e,t,7);return n<0&&(n+=4294967296),n}function N(e,t){var n=h(e,t,1)^h(e,t,8)^f(e,t,7);return n<0&&(n+=4294967296),n}function L(e,t){var n=l(e,t,19)^l(t,e,29)^d(e,t,6);return n<0&&(n+=4294967296),n}function B(e,t){var n=h(e,t,19)^h(t,e,29)^f(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(T,O),e.exports=T,T.blockSize=1024,T.outSize=512,T.hmacStrength=192,T.padLength=128,T.prototype._prepareBlock=function(e,t){for(var n=this.W,i=0;i<32;i++)n[i]=e[t+i];for(;i<n.length;i+=2){var r=L(n[i-4],n[i-3]),o=B(n[i-4],n[i-3]),c=n[i-14],l=n[i-13],h=D(n[i-30],n[i-29]),d=N(n[i-30],n[i-29]),f=n[i-32],m=n[i-31];n[i]=w(r,o,c,l,h,d,f,m),n[i+1]=S(r,o,c,l,h,d,f,m)}},T.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],o=this.h[1],l=this.h[2],h=this.h[3],d=this.h[4],f=this.h[5],w=this.h[6],dl=this.h[7],S=this.h[8],O=this.h[9],A=this.h[10],T=this.h[11],D=this.h[12],N=this.h[13],L=this.h[14],B=this.h[15];c(this.k.length===n.length);for(var i=0;i<n.length;i+=2){var U=L,F=B,z=R(S,O),$=j(S,O),H=E(S,O,A,T,D),G=P(S,O,A,T,D,N),V=this.k[i],W=this.k[i+1],K=n[i],Y=n[i+1],X=_(U,F,z,$,H,G,V,W,K,Y),J=C(U,F,z,$,H,G,V,W,K,Y);U=k(r,o),F=I(r,o),z=M(r,o,l,h,d),$=x(r,o,l,h,d,f);var Z=v(U,F,z,$),Q=y(U,F,z,$);L=D,B=N,D=A,N=T,A=S,T=O,S=v(w,dl,X,J),O=y(dl,dl,X,J),w=d,dl=f,d=l,f=h,l=r,h=o,r=v(X,J,Z,Q),o=y(X,J,Z,Q)}m(this.h,0,r,o),m(this.h,2,l,h),m(this.h,4,d,f),m(this.h,6,w,dl),m(this.h,8,S,O),m(this.h,10,A,T),m(this.h,12,D,N),m(this.h,14,L,B)},T.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function c(e,base,t){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==base&&"be"!==base||(t=base,base=10),this._init(e||0,base||10,t||"be"))}var l;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(1356).Buffer}catch(e){}function h(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function d(e,t,n){var r=h(e,n);return n-1>=t&&(r|=h(e,n-1)<<4),r}function f(e,t,n,o){for(var c=0,b=0,l=Math.min(e.length,n),i=t;i<l;i++){var h=e.charCodeAt(i)-48;c*=o,b=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&b<o,"Invalid character"),c+=b}return c}function m(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===base?this._parseHex(e,n,t):(this._parseBase(e,base,n),"le"===t&&this._initArray(this.toArray(),base,t)))},c.prototype._initNumber=function(e,base,t){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"===t&&this._initArray(this.toArray(),base,t)},c.prototype._initArray=function(e,base,t){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 n,o,c=0;if("be"===t)for(i=e.length-1,n=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===t)for(i=0,n=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this._strip()},c.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o=0,c=0;if("be"===n)for(i=e.length-1;i>=t;i-=2)r=d(e,t,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)r=d(e,t,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;this._strip()},c.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=e.length-t,c=o%n,l=Math.min(o,o-c)+t,h=0,i=t;i<l;i+=n)h=f(e,i,i+n,base),this.imuln(r),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==c){var d=1;for(h=f(e,i,e.length,base),i=0;i<c;i++)d*=base;this.imuln(d),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},c.prototype.copy=function(e){e.words=new Array(this.length);for(var i=0;i<this.length;i++)e.words[i]=this.words[i];e.length=this.length,e.negative=this.negative,e.red=this.red},c.prototype._move=function(e){m(e,this)},c.prototype.clone=function(){var e=new c(null);return this.copy(e),e},c.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},c.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch(e){c.prototype.inspect=v}else c.prototype.inspect=v;function v(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var y=["","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"],w=[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],S=[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];c.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var n=0,o=0,i=0;i<this.length;i++){var c=this.words[i],l=(16777215&(c<<n|o)).toString(16);o=c>>>24-n&16777215,(n+=2)>=26&&(n-=26,i--),t=0!==o||i!==this.length-1?y[6-l.length]+l+t:l+t}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var h=w[base],d=S[base];t="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(d).toString(base);t=(f=f.idivn(d)).isZero()?m+t:y[h-m.length]+m+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}r(!1,"Base should be between 2 and 36")},c.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},c.prototype.toJSON=function(){return this.toString(16,2)},l&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function _(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,c=67108863&o,l=o/67108864|0;n.words[0]=c;for(var h=1;h<r;h++){for(var d=l>>>26,f=67108863&l,m=Math.min(h,t.length-1),v=Math.max(0,h-e.length+1);v<=m;v++){var i=h-v|0;d+=(o=(a=0|e.words[i])*(b=0|t.words[v])+f)/67108864|0,f=67108863&o}n.words[h]=0|f,l=0|d}return 0!==l?n.words[h]=0|l:n.length--,n._strip()}c.prototype.toArrayLike=function(e,t,n){this._strip();var o=this.byteLength(),c=n||Math.max(1,o);r(o<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var l=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](l,o),l},c.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;e[n++]=255&c,n<e.length&&(e[n++]=c>>8&255),n<e.length&&(e[n++]=c>>16&255),6===o?(n<e.length&&(e[n++]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},c.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;e[n--]=255&c,n>=0&&(e[n--]=c>>8&255),n>=0&&(e[n--]=c>>16&255),6===o?(n>=0&&(e[n--]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.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},c.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},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(e+=b,26!==b)break}return e},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},c.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return 0!==this.negative},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]|e.words[i];return this._strip()},c.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},c.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=b.length,this._strip()},c.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},c.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip()},c.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},c.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.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()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip()},c.prototype.iadd=function(e){var t,a,b;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?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i<b.length;i++)t=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&t,n=t>>>26;for(;0!==n&&i<a.length;i++)t=(0|a.words[i])+n,this.words[i]=67108863&t,n=t>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},c.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)},c.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 a,b,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i<b.length;i++)r=(t=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&t;for(;0!==r&&i<a.length;i++)r=(t=(0|a.words[i])+r)>>26,this.words[i]=67108863&t;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip()},c.prototype.sub=function(e){return this.clone().isub(e)};var C=function(e,t,n){var r,o,c,a=e.words,b=t.words,l=n.words,h=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,S=0|a[2],_=8191&S,C=S>>>13,O=0|a[3],A=8191&O,T=O>>>13,E=0|a[4],P=8191&E,M=E>>>13,x=0|a[5],k=8191&x,I=x>>>13,R=0|a[6],j=8191&R,D=R>>>13,N=0|a[7],L=8191&N,B=N>>>13,U=0|a[8],F=8191&U,z=U>>>13,$=0|a[9],H=8191&$,G=$>>>13,V=0|b[0],W=8191&V,K=V>>>13,Y=0|b[1],X=8191&Y,J=Y>>>13,Z=0|b[2],Q=8191&Z,ee=Z>>>13,te=0|b[3],ne=8191&te,re=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],ce=8191&se,ue=se>>>13,le=0|b[6],he=8191&le,de=le>>>13,fe=0|b[7],pe=8191&fe,me=fe>>>13,ge=0|b[8],ve=8191&ge,be=ge>>>13,ye=0|b[9],we=8191&ye,Se=ye>>>13;n.negative=e.negative^t.negative,n.length=19;var _e=(h+(r=Math.imul(f,W))|0)+((8191&(o=(o=Math.imul(f,K))+Math.imul(m,W)|0))<<13)|0;h=((c=Math.imul(m,K))+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(y,W),o=(o=Math.imul(y,K))+Math.imul(w,W)|0,c=Math.imul(w,K);var Ce=(h+(r=r+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,J)|0)+Math.imul(m,X)|0))<<13)|0;h=((c=c+Math.imul(m,J)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(_,W),o=(o=Math.imul(_,K))+Math.imul(C,W)|0,c=Math.imul(C,K),r=r+Math.imul(y,X)|0,o=(o=o+Math.imul(y,J)|0)+Math.imul(w,X)|0,c=c+Math.imul(w,J)|0;var Oe=(h+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(m,Q)|0))<<13)|0;h=((c=c+Math.imul(m,ee)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(A,W),o=(o=Math.imul(A,K))+Math.imul(T,W)|0,c=Math.imul(T,K),r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,J)|0)+Math.imul(C,X)|0,c=c+Math.imul(C,J)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0;var Ae=(h+(r=r+Math.imul(f,ne)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(m,ne)|0))<<13)|0;h=((c=c+Math.imul(m,re)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(P,W),o=(o=Math.imul(P,K))+Math.imul(M,W)|0,c=Math.imul(M,K),r=r+Math.imul(A,X)|0,o=(o=o+Math.imul(A,J)|0)+Math.imul(T,X)|0,c=c+Math.imul(T,J)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(y,ne)|0,o=(o=o+Math.imul(y,re)|0)+Math.imul(w,ne)|0,c=c+Math.imul(w,re)|0;var Te=(h+(r=r+Math.imul(f,oe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(m,oe)|0))<<13)|0;h=((c=c+Math.imul(m,ae)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(k,W),o=(o=Math.imul(k,K))+Math.imul(I,W)|0,c=Math.imul(I,K),r=r+Math.imul(P,X)|0,o=(o=o+Math.imul(P,J)|0)+Math.imul(M,X)|0,c=c+Math.imul(M,J)|0,r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(C,ne)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(w,oe)|0,c=c+Math.imul(w,ae)|0;var Ee=(h+(r=r+Math.imul(f,ce)|0)|0)+((8191&(o=(o=o+Math.imul(f,ue)|0)+Math.imul(m,ce)|0))<<13)|0;h=((c=c+Math.imul(m,ue)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,W),o=(o=Math.imul(j,K))+Math.imul(D,W)|0,c=Math.imul(D,K),r=r+Math.imul(k,X)|0,o=(o=o+Math.imul(k,J)|0)+Math.imul(I,X)|0,c=c+Math.imul(I,J)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,o=(o=o+Math.imul(A,re)|0)+Math.imul(T,ne)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(C,oe)|0,c=c+Math.imul(C,ae)|0,r=r+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ue)|0;var Pe=(h+(r=r+Math.imul(f,he)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(m,he)|0))<<13)|0;h=((c=c+Math.imul(m,de)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,W),o=(o=Math.imul(L,K))+Math.imul(B,W)|0,c=Math.imul(B,K),r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,J)|0)+Math.imul(D,X)|0,c=c+Math.imul(D,J)|0,r=r+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(I,Q)|0,c=c+Math.imul(I,ee)|0,r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(M,ne)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,o=(o=o+Math.imul(A,ae)|0)+Math.imul(T,oe)|0,c=c+Math.imul(T,ae)|0,r=r+Math.imul(_,ce)|0,o=(o=o+Math.imul(_,ue)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ue)|0,r=r+Math.imul(y,he)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(w,he)|0,c=c+Math.imul(w,de)|0;var Me=(h+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((c=c+Math.imul(m,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,W),o=(o=Math.imul(F,K))+Math.imul(z,W)|0,c=Math.imul(z,K),r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,J)|0)+Math.imul(B,X)|0,c=c+Math.imul(B,J)|0,r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(D,Q)|0,c=c+Math.imul(D,ee)|0,r=r+Math.imul(k,ne)|0,o=(o=o+Math.imul(k,re)|0)+Math.imul(I,ne)|0,c=c+Math.imul(I,re)|0,r=r+Math.imul(P,oe)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,c=c+Math.imul(M,ae)|0,r=r+Math.imul(A,ce)|0,o=(o=o+Math.imul(A,ue)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ue)|0,r=r+Math.imul(_,he)|0,o=(o=o+Math.imul(_,de)|0)+Math.imul(C,he)|0,c=c+Math.imul(C,de)|0,r=r+Math.imul(y,pe)|0,o=(o=o+Math.imul(y,me)|0)+Math.imul(w,pe)|0,c=c+Math.imul(w,me)|0;var xe=(h+(r=r+Math.imul(f,ve)|0)|0)+((8191&(o=(o=o+Math.imul(f,be)|0)+Math.imul(m,ve)|0))<<13)|0;h=((c=c+Math.imul(m,be)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(H,W),o=(o=Math.imul(H,K))+Math.imul(G,W)|0,c=Math.imul(G,K),r=r+Math.imul(F,X)|0,o=(o=o+Math.imul(F,J)|0)+Math.imul(z,X)|0,c=c+Math.imul(z,J)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(B,Q)|0,c=c+Math.imul(B,ee)|0,r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(D,ne)|0,c=c+Math.imul(D,re)|0,r=r+Math.imul(k,oe)|0,o=(o=o+Math.imul(k,ae)|0)+Math.imul(I,oe)|0,c=c+Math.imul(I,ae)|0,r=r+Math.imul(P,ce)|0,o=(o=o+Math.imul(P,ue)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ue)|0,r=r+Math.imul(A,he)|0,o=(o=o+Math.imul(A,de)|0)+Math.imul(T,he)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(_,pe)|0,o=(o=o+Math.imul(_,me)|0)+Math.imul(C,pe)|0,c=c+Math.imul(C,me)|0,r=r+Math.imul(y,ve)|0,o=(o=o+Math.imul(y,be)|0)+Math.imul(w,ve)|0,c=c+Math.imul(w,be)|0;var ke=(h+(r=r+Math.imul(f,we)|0)|0)+((8191&(o=(o=o+Math.imul(f,Se)|0)+Math.imul(m,we)|0))<<13)|0;h=((c=c+Math.imul(m,Se)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,X),o=(o=Math.imul(H,J))+Math.imul(G,X)|0,c=Math.imul(G,J),r=r+Math.imul(F,Q)|0,o=(o=o+Math.imul(F,ee)|0)+Math.imul(z,Q)|0,c=c+Math.imul(z,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(B,ne)|0,c=c+Math.imul(B,re)|0,r=r+Math.imul(j,oe)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,c=c+Math.imul(D,ae)|0,r=r+Math.imul(k,ce)|0,o=(o=o+Math.imul(k,ue)|0)+Math.imul(I,ce)|0,c=c+Math.imul(I,ue)|0,r=r+Math.imul(P,he)|0,o=(o=o+Math.imul(P,de)|0)+Math.imul(M,he)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(A,pe)|0,o=(o=o+Math.imul(A,me)|0)+Math.imul(T,pe)|0,c=c+Math.imul(T,me)|0,r=r+Math.imul(_,ve)|0,o=(o=o+Math.imul(_,be)|0)+Math.imul(C,ve)|0,c=c+Math.imul(C,be)|0;var Ie=(h+(r=r+Math.imul(y,we)|0)|0)+((8191&(o=(o=o+Math.imul(y,Se)|0)+Math.imul(w,we)|0))<<13)|0;h=((c=c+Math.imul(w,Se)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(H,Q),o=(o=Math.imul(H,ee))+Math.imul(G,Q)|0,c=Math.imul(G,ee),r=r+Math.imul(F,ne)|0,o=(o=o+Math.imul(F,re)|0)+Math.imul(z,ne)|0,c=c+Math.imul(z,re)|0,r=r+Math.imul(L,oe)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,c=c+Math.imul(B,ae)|0,r=r+Math.imul(j,ce)|0,o=(o=o+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,c=c+Math.imul(D,ue)|0,r=r+Math.imul(k,he)|0,o=(o=o+Math.imul(k,de)|0)+Math.imul(I,he)|0,c=c+Math.imul(I,de)|0,r=r+Math.imul(P,pe)|0,o=(o=o+Math.imul(P,me)|0)+Math.imul(M,pe)|0,c=c+Math.imul(M,me)|0,r=r+Math.imul(A,ve)|0,o=(o=o+Math.imul(A,be)|0)+Math.imul(T,ve)|0,c=c+Math.imul(T,be)|0;var Re=(h+(r=r+Math.imul(_,we)|0)|0)+((8191&(o=(o=o+Math.imul(_,Se)|0)+Math.imul(C,we)|0))<<13)|0;h=((c=c+Math.imul(C,Se)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(H,ne),o=(o=Math.imul(H,re))+Math.imul(G,ne)|0,c=Math.imul(G,re),r=r+Math.imul(F,oe)|0,o=(o=o+Math.imul(F,ae)|0)+Math.imul(z,oe)|0,c=c+Math.imul(z,ae)|0,r=r+Math.imul(L,ce)|0,o=(o=o+Math.imul(L,ue)|0)+Math.imul(B,ce)|0,c=c+Math.imul(B,ue)|0,r=r+Math.imul(j,he)|0,o=(o=o+Math.imul(j,de)|0)+Math.imul(D,he)|0,c=c+Math.imul(D,de)|0,r=r+Math.imul(k,pe)|0,o=(o=o+Math.imul(k,me)|0)+Math.imul(I,pe)|0,c=c+Math.imul(I,me)|0,r=r+Math.imul(P,ve)|0,o=(o=o+Math.imul(P,be)|0)+Math.imul(M,ve)|0,c=c+Math.imul(M,be)|0;var je=(h+(r=r+Math.imul(A,we)|0)|0)+((8191&(o=(o=o+Math.imul(A,Se)|0)+Math.imul(T,we)|0))<<13)|0;h=((c=c+Math.imul(T,Se)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(H,oe),o=(o=Math.imul(H,ae))+Math.imul(G,oe)|0,c=Math.imul(G,ae),r=r+Math.imul(F,ce)|0,o=(o=o+Math.imul(F,ue)|0)+Math.imul(z,ce)|0,c=c+Math.imul(z,ue)|0,r=r+Math.imul(L,he)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(B,he)|0,c=c+Math.imul(B,de)|0,r=r+Math.imul(j,pe)|0,o=(o=o+Math.imul(j,me)|0)+Math.imul(D,pe)|0,c=c+Math.imul(D,me)|0,r=r+Math.imul(k,ve)|0,o=(o=o+Math.imul(k,be)|0)+Math.imul(I,ve)|0,c=c+Math.imul(I,be)|0;var De=(h+(r=r+Math.imul(P,we)|0)|0)+((8191&(o=(o=o+Math.imul(P,Se)|0)+Math.imul(M,we)|0))<<13)|0;h=((c=c+Math.imul(M,Se)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(H,ce),o=(o=Math.imul(H,ue))+Math.imul(G,ce)|0,c=Math.imul(G,ue),r=r+Math.imul(F,he)|0,o=(o=o+Math.imul(F,de)|0)+Math.imul(z,he)|0,c=c+Math.imul(z,de)|0,r=r+Math.imul(L,pe)|0,o=(o=o+Math.imul(L,me)|0)+Math.imul(B,pe)|0,c=c+Math.imul(B,me)|0,r=r+Math.imul(j,ve)|0,o=(o=o+Math.imul(j,be)|0)+Math.imul(D,ve)|0,c=c+Math.imul(D,be)|0;var Ne=(h+(r=r+Math.imul(k,we)|0)|0)+((8191&(o=(o=o+Math.imul(k,Se)|0)+Math.imul(I,we)|0))<<13)|0;h=((c=c+Math.imul(I,Se)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(H,he),o=(o=Math.imul(H,de))+Math.imul(G,he)|0,c=Math.imul(G,de),r=r+Math.imul(F,pe)|0,o=(o=o+Math.imul(F,me)|0)+Math.imul(z,pe)|0,c=c+Math.imul(z,me)|0,r=r+Math.imul(L,ve)|0,o=(o=o+Math.imul(L,be)|0)+Math.imul(B,ve)|0,c=c+Math.imul(B,be)|0;var Le=(h+(r=r+Math.imul(j,we)|0)|0)+((8191&(o=(o=o+Math.imul(j,Se)|0)+Math.imul(D,we)|0))<<13)|0;h=((c=c+Math.imul(D,Se)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(H,pe),o=(o=Math.imul(H,me))+Math.imul(G,pe)|0,c=Math.imul(G,me),r=r+Math.imul(F,ve)|0,o=(o=o+Math.imul(F,be)|0)+Math.imul(z,ve)|0,c=c+Math.imul(z,be)|0;var Be=(h+(r=r+Math.imul(L,we)|0)|0)+((8191&(o=(o=o+Math.imul(L,Se)|0)+Math.imul(B,we)|0))<<13)|0;h=((c=c+Math.imul(B,Se)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(H,ve),o=(o=Math.imul(H,be))+Math.imul(G,ve)|0,c=Math.imul(G,be);var Ue=(h+(r=r+Math.imul(F,we)|0)|0)+((8191&(o=(o=o+Math.imul(F,Se)|0)+Math.imul(z,we)|0))<<13)|0;h=((c=c+Math.imul(z,Se)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Fe=(h+(r=Math.imul(H,we))|0)+((8191&(o=(o=Math.imul(H,Se))+Math.imul(G,we)|0))<<13)|0;return h=((c=Math.imul(G,Se))+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=_e,l[1]=Ce,l[2]=Oe,l[3]=Ae,l[4]=Te,l[5]=Ee,l[6]=Pe,l[7]=Me,l[8]=xe,l[9]=ke,l[10]=Ie,l[11]=Re,l[12]=je,l[13]=De,l[14]=Ne,l[15]=Le,l[16]=Be,l[17]=Ue,l[18]=Fe,0!==h&&(l[19]=h,n.length++),n};function O(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,c=0;c<n.length-1;c++){var l=o;o=0;for(var h=67108863&r,d=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=d;f++){var i=c-f,m=(0|e.words[i])*(0|t.words[f]),v=67108863&m;h=67108863&(v=v+h|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[c]=h,r=l,l=o}return 0!==r?n.words[c]=r:n.length--,n._strip()}function A(e,t,n){return O(e,t,n)}function T(e,t){this.x=e,this.y=t}Math.imul||(C=_),c.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?C(this,e,t):n<63?_(this,e,t):n<1024?O(this,e,t):A(this,e,t)},T.prototype.makeRBT=function(e){for(var t=new Array(e),n=c.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},T.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},T.prototype.permute=function(e,t,n,r,o,c){for(var i=0;i<c;i++)r[i]=t[e[i]],o[i]=n[e[i]]},T.prototype.transform=function(e,t,n,r,o,c){this.permute(c,e,t,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,h=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=h,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],S=n[p+v+s],_=r[p+v+s],C=f*S-m*_;_=f*_+m*S,S=C,n[p+v]=y+S,r[p+v]=w+_,n[p+v+s]=y-S,r[p+v+s]=w-_,v!==l&&(C=h*f-d*m,m=h*m+d*f,f=C)}},T.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},T.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=e[i];e[i]=e[n-i-1],e[n-i-1]=r,r=t[i],t[i]=-t[n-i-1],t[n-i-1]=-r}},T.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var r=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&r,n=r<67108864?0:r/67108864|0}return e},T.prototype.convert13b=function(e,t,n,o){for(var c=0,i=0;i<t;i++)c+=0|e[i],n[2*i]=8191&c,c>>>=13,n[2*i+1]=8191&c,c>>>=13;for(i=2*t;i<o;++i)n[i]=0;r(0===c),r(0==(-8192&c))},T.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},T.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),c=this.stub(r),l=new Array(r),h=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(e.words,e.length,l,r),this.convert13b(t.words,t.length,f,r),this.transform(l,c,h,d,r,o),this.transform(f,c,m,v,r,o);for(var i=0;i<r;i++){var w=h[i]*m[i]-d[i]*v[i];d[i]=h[i]*v[i]+d[i]*m[i],h[i]=w}return this.conjugate(h,d,r),this.transform(h,d,y,c,r,o),this.conjugate(y,c,r),this.normalize13b(y,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},c.prototype.mul=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},c.prototype.mulf=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),A(this,e,t)},c.prototype.imul=function(e){return this.clone().mulTo(e,this)},c.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,c=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=c>>>26,this.words[i]=67108863&c}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.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,o=n%26;t[n]=e.words[r]>>>o&1}return t}(e);if(0===t.length)return new c(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var q=n.sqr();i<t.length;i++,q=q.sqr())0!==t[i]&&(n=n.mul(q));return n},c.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var i,t=e%26,s=(e-t)/26,n=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&n,l=(0|this.words[i])-c<<t;this.words[i]=l|o,o=c>>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this._strip()},c.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},c.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var c=e%26,s=Math.min((e-c)/26,this.length),mask=67108863^67108863>>>c<<c,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var h=0;for(i=this.length-1;i>=0&&(0!==h||i>=o);i--){var d=0|this.words[i];this.words[i]=h<<26-c|d>>>c,h=d&mask}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<<t;return!(this.length<=s)&&!!(this.words[s]&q)},c.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<<t;this.words[this.length-1]&=mask}return this._strip()},c.prototype.maskn=function(e){return this.clone().imaskn(e)},c.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)},c.prototype._iaddn=function(e){this.words[0]+=e;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},c.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},c.prototype.addn=function(e){return this.clone().iaddn(e)},c.prototype.subn=function(e){return this.clone().isubn(e)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(e,t,n){var i,o,c=e.length+n;this._expand(c);var l=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+l;var h=(0|e.words[i])*t;l=((o-=67108863&h)>>26)-(h/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this._strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var n=(this.length,e.length),a=this.clone(),b=e,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var h=o-1;h>=0;h--){var d=67108864*(0|a.words[b.length+h])+(0|a.words[b.length+h-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,h);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,h),a.isZero()||(a.negative^=1);q&&(q.words[h]=d)}return q&&q._strip(),a._strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},c.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(div=l.div.neg()),"div"!==t&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var div,o,l},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.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),o=e.andln(1),c=n.cmp(r);return c<0||1===o&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var p=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(p*n+(0|this.words[i]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var n=new c(1),o=new c(0),l=new c(0),h=new c(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var d=t.clone(),f=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(t.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(l.isOdd()||h.isOdd())&&(l.iadd(d),h.isub(f)),l.iushrn(1),h.iushrn(1);e.cmp(t)>=0?(e.isub(t),n.isub(l),o.isub(h)):(t.isub(e),l.isub(n),h.isub(o))}return{a:l,b:h,gcd:t.iushln(g)}},c.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new c(1),n=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var h=0,d=1;0==(b.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(b.iushrn(h);h-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(n)):(b.isub(a),n.isub(t))}return(e=0===a.cmpn(1)?t:n).cmpn(0)<0&&e.iadd(p),e},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<<t;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.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 o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},c.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},c.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){a<b?t=-1:a>b&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new R(e)},c.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)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};function P(e,p){this.name=e,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){P.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){P.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){P.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(e){if("string"==typeof e){var t=c._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 j(e){R.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}P.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},P.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):void 0!==n.strip?n.strip():n._strip(),n},P.prototype.split=function(input,e){input.iushrn(this.n,0,e)},P.prototype.imulK=function(e){return e.imul(this.k)},o(M,P),M.prototype.split=function(input,output){for(var mask=4194303,e=Math.min(input.length,9),i=0;i<e;i++)output.words[i]=input.words[i];if(output.length=e,input.length<=9)return input.words[0]=0,void(input.length=1);var t=input.words[9];for(output.words[output.length++]=t&mask,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(n&mask)<<4|t>>>22,t=n}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(x,P),o(k,P),o(I,P),I.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return E[e]=t,t},R.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(m(a,a.umod(this.m)._forceRed(this)),a)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},R.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},R.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var t=this.m.add(new c(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new c(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new c(2*h*h).toRed(this);0!==this.pow(h,l).cmp(o);)h.redIAdd(o);for(var d=this.pow(h,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new c(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},R.prototype.invm=function(a){var e=a._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},R.prototype.pow=function(a,e){if(e.isZero())return new c(1).toRed(this);if(0===e.cmpn(1))return a.clone();var t=new Array(16);t[0]=new c(1).toRed(this),t[1]=a;for(var i=2;i<t.length;i++)t[i]=this.mul(t[i-1],a);var n=t[0],r=0,o=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],d=l-1;d>=0;d--){var f=h>>d&1;n!==t[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,t[r]),o=0,r=0)):o=0}l=26}return n},R.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},R.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new j(e)},o(j,R),j.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},j.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},j.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},j.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},j.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(486)(e))},function(e,t,n){"use strict";const r=t;r.bignum=n(125),r.define=n(1358).define,r.base=n(1361),r.constants=n(1362),r.decoders=n(873),r.encoders=n(871)},function(e,t,n){"use strict";const r=t;r.der=n(872),r.pem=n(1359)},function(e,t,n){"use strict";const r=n(47),o=n(595).Buffer,c=n(596),l=n(598);function h(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new d,this.tree._init(e.body)}function d(e){c.call(this,"der",e)}function f(e){return e<10?"0"+e:e}e.exports=h,h.prototype.encode=function(data,e){return this.tree._encode(data,e).join()},r(d,c),d.prototype._encodeComposite=function(e,t,n,content){const r=function(e,t,n,r){let o;"seqof"===e?e="seq":"setof"===e&&(e="set");if(l.tagByName.hasOwnProperty(e))o=l.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);o=e}if(o>=31)return r.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=l.tagClassByName[n||"universal"]<<6,o}(e,t,n,this.reporter);if(content.length<128){const header=o.alloc(2);return header[0]=r,header[1]=content.length,this._createEncoderBuffer([header,content])}let c=1;for(let i=content.length;i>=256;i>>=8)c++;const header=o.alloc(2+c);header[0]=r,header[1]=128|c;for(let i=1+c,e=content.length;e>0;i--,e>>=8)header[i]=255&e;return this._createEncoderBuffer([header,content])},d.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=o.alloc(2*e.length);for(let i=0;i<e.length;i++)t.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(t)}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")},d.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(let i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(let i=0;i<e.length;i++)e[i]|=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])}let r=0;for(let i=0;i<e.length;i++){let t=e[i];for(r++;t>=128;t>>=7)r++}const c=o.alloc(r);let l=c.length-1;for(let i=e.length-1;i>=0;i--){let t=e[i];for(c[l--]=127&t;(t>>=7)>0;)c[l--]=128|127&t}return this._createEncoderBuffer(c)},d.prototype._encodeTime=function(time,e){let t;const n=new Date(time);return"gentime"===e?t=[f(n.getUTCFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?t=[f(n.getUTCFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(t,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.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&&!o.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=o.from(t)}if(o.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=o.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(o.from(r))},d.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},d.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},d.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const data=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),data.length!==r.defaultBuffer.length)return!1;for(i=0;i<data.length;i++)if(data[i]!==r.defaultBuffer[i])return!1;return!0}},function(e,t,n){"use strict";const r=t;r.der=n(874),r.pem=n(1360)},function(e,t,n){"use strict";const r=n(47),o=n(125),c=n(414).DecoderBuffer,l=n(596),h=n(598);function d(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){l.call(this,"der",e)}function m(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=h.tagClass[n>>6],o=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:h.tag[n]}}function v(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(let i=0;i<o;i++){r<<=8;const t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}e.exports=d,d.prototype.decode=function(data,e){return c.isDecoderBuffer(data)||(data=new c(data,e)),this.tree._decode(data,e)},r(f,l),f.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),o=m(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(r),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||n)},f.prototype._decodeTag=function(e,t,n){const r=m(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let o=v(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==o)return e.skip(o,'Failed to match body of: "'+t+'"');const c=e.save(),l=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(l)?l:(o=e.offset-c.offset,e.restore(c),e.skip(o,'Failed to match body of: "'+t+'"'))},f.prototype._skipUntilEnd=function(e,t){for(;;){const n=m(e,t);if(e.isError(n))return n;const r=v(e,n.primitive,t);if(e.isError(r))return r;let o;if(o=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(o))return o;if("end"===n.tagStr)break}},f.prototype._decodeList=function(e,t,n,r){const o=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const c=n.decode(e,"der",r);if(e.isError(c)&&t)break;o.push(c)}return o},f.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let i=0;i<t.length/2;i++)n+=String.fromCharCode(t.readUInt16BE(2*i));return n}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},f.prototype._decodeObjid=function(e,t,n){let r;const o=[];let c=0,l=0;for(;!e.isEmpty();)l=e.readUInt8(),c<<=7,c|=127&l,0==(128&l)&&(o.push(c),c=0);128&l&&o.push(c);const h=o[0]/40|0,d=o[0]%40;if(r=n?o:[h,d].concat(o.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},f.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,o,c,l,h,d;if("gentime"===t)r=0|n.slice(0,4),o=0|n.slice(4,6),c=0|n.slice(6,8),l=0|n.slice(8,10),h=0|n.slice(10,12),d=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),o=0|n.slice(2,4),c=0|n.slice(4,6),l=0|n.slice(6,8),h=0|n.slice(8,10),d=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,o-1,c,l,h,d,0)},f.prototype._decodeNull=function(){return null},f.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},f.prototype._decodeInt=function(e,t){const n=e.raw();let r=new o(n);return t&&(r=t[r.toString(10)]||r),r},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},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(410),o=n(58).Buffer;function c(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,l=o.alloc(0),i=0;l.length<t;)n=c(i++),l=o.concat([l,r("sha1").update(e).update(n).digest()]);return l.slice(0,t)}},function(e,t){e.exports=function(a,b){for(var e=a.length,i=-1;++i<e;)a[i]^=b[i];return a}},function(e,t,n){var r=n(125),o=n(58).Buffer;e.exports=function(e,t){return o.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return n},o=/%[sdj%]/g;t.format=function(e){if(!O(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(h(arguments[i]));return t.join(" ")}i=1;for(var n=arguments,r=n.length,c=String(e).replace(o,(function(e){if("%%"===e)return"%";if(i>=r)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}})),l=n[i];i<r;l=n[++i])_(l)||!E(l)?c+=" "+l:c+=" "+h(l);return c},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var c,l={};function h(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),S(n)?r.showHidden=n:n&&t._extend(r,n),A(r.showHidden)&&(r.showHidden=!1),A(r.depth)&&(r.depth=2),A(r.colors)&&(r.colors=!1),A(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),m(r,e,r.depth)}function d(e,t){var style=h.styles[t];return style?"["+h.colors[style][0]+"m"+e+"["+h.colors[style][1]+"m":e}function f(e,t){return e}function m(e,n,r){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return O(o)||(o=m(e,o,r)),o}var c=function(e,t){if(A(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(C(t))return e.stylize(""+t,"number");if(S(t))return e.stylize(""+t,"boolean");if(_(t))return e.stylize("null","null")}(e,n);if(c)return c;var l=Object.keys(n),h=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(l);if(e.showHidden&&(l=Object.getOwnPropertyNames(n)),M(n)&&(l.indexOf("message")>=0||l.indexOf("description")>=0))return v(n);if(0===l.length){if(x(n)){var d=n.name?": "+n.name:"";return e.stylize("[Function"+d+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(P(n))return e.stylize(Date.prototype.toString.call(n),"date");if(M(n))return v(n)}var output,base="",f=!1,E=["{","}"];(w(n)&&(f=!0,E=["[","]"]),x(n))&&(base=" [Function"+(n.name?": "+n.name:"")+"]");return T(n)&&(base=" "+RegExp.prototype.toString.call(n)),P(n)&&(base=" "+Date.prototype.toUTCString.call(n)),M(n)&&(base=" "+v(n)),0!==l.length||f&&0!=n.length?r<0?T(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),output=f?function(e,t,n,r,o){for(var output=[],i=0,c=t.length;i<c;++i)j(t,String(i))?output.push(y(e,t,n,r,String(i),!0)):output.push("");return o.forEach((function(o){o.match(/^\d+$/)||output.push(y(e,t,n,r,o,!0))})),output}(e,n,r,h,l):l.map((function(t){return y(e,n,r,h,t,f)})),e.seen.pop(),function(output,base,e){var t=output.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(t>60)return e[0]+(""===base?"":base+"\n ")+" "+output.join(",\n  ")+" "+e[1];return e[0]+base+" "+output.join(", ")+" "+e[1]}(output,base,E)):E[0]+base+E[1]}function v(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,n,r,o,c){var l,h,desc;if((desc=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?h=desc.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):desc.set&&(h=e.stylize("[Setter]","special")),j(r,o)||(l="["+o+"]"),h||(e.seen.indexOf(desc.value)<0?(h=_(n)?m(e,desc.value,null):m(e,desc.value,n-1)).indexOf("\n")>-1&&(h=c?h.split("\n").map((function(line){return"  "+line})).join("\n").substr(2):"\n"+h.split("\n").map((function(line){return"   "+line})).join("\n")):h=e.stylize("[Circular]","special")),A(l)){if(c&&o.match(/^\d+$/))return h;(l=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"))}return l+": "+h}function w(e){return Array.isArray(e)}function S(e){return"boolean"==typeof e}function _(e){return null===e}function C(e){return"number"==typeof e}function O(e){return"string"==typeof e}function A(e){return void 0===e}function T(e){return E(e)&&"[object RegExp]"===k(e)}function E(e){return"object"==typeof e&&null!==e}function P(e){return E(e)&&"[object Date]"===k(e)}function M(e){return E(e)&&("[object Error]"===k(e)||e instanceof Error)}function x(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(A(c)&&(c=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!l[n])if(new RegExp("\\b"+n+"\\b","i").test(c)){var r=e.pid;l[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else l[n]=function(){};return l[n]},t.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=w,t.isBoolean=S,t.isNull=_,t.isNullOrUndefined=function(e){return null==e},t.isNumber=C,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=A,t.isRegExp=T,t.isObject=E,t.isDate=P,t.isError=M,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1372);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,time;console.log("%s - %s",(e=new Date,time=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],time].join(" ")),t.format.apply(t,arguments))},t.inherits=n(1373),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=D,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,c=function(){return r.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(c,null,t)}),(function(t){e.nextTick(N,t,c)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(83))},,,,,,,,,,,,,function(e,t,n){e.exports={}},,,,,,,,,,,,,,,function(e,t,n){e.exports={}},,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=SyntaxError},function(e,t,n){"use strict";var r=n(355)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(608),o=Object.prototype.hasOwnProperty,c=Array.isArray,l=function(){for(var e=[],i=0;i<256;++i)e.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return e}(),h=function(source,e){for(var t=e&&e.plainObjects?Object.create(null):{},i=0;i<source.length;++i)void 0!==source[i]&&(t[i]=source[i]);return t};e.exports={arrayToObject:h,assign:function(e,source){return Object.keys(source).reduce((function(e,t){return e[t]=source[t],e}),e)},combine:function(a,b){return[].concat(a,b)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],o=r.obj[r.prop],l=Object.keys(o),h=0;h<l.length;++h){var d=l[h],f=o[d];"object"==typeof f&&null!==f&&-1===n.indexOf(f)&&(t.push({obj:o,prop:d}),n.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(c(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,c){if(0===e.length)return e;var h=e;if("symbol"==typeof e?h=Symbol.prototype.toString.call(e):"string"!=typeof e&&(h=String(e)),"iso-8859-1"===n)return escape(h).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var d="",i=0;i<h.length;++i){var f=h.charCodeAt(i);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||c===r.RFC1738&&(40===f||41===f)?d+=h.charAt(i):f<128?d+=l[f]:f<2048?d+=l[192|f>>6]+l[128|63&f]:f<55296||f>=57344?d+=l[224|f>>12]+l[128|f>>6&63]+l[128|63&f]:(i+=1,f=65536+((1023&f)<<10|1023&h.charCodeAt(i)),d+=l[240|f>>18]+l[128|f>>12&63]+l[128|f>>6&63]+l[128|63&f])}return d},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(c(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},merge:function e(t,source,n){if(!source)return t;if("object"!=typeof source){if(c(t))t.push(source);else{if(!t||"object"!=typeof t)return[t,source];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,source))&&(t[source]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(source);var r=t;return c(t)&&!c(source)&&(r=h(t,n)),c(t)&&c(source)?(source.forEach((function(r,i){if(o.call(t,i)){var c=t[i];c&&"object"==typeof c&&r&&"object"==typeof r?t[i]=e(c,r,n):t.push(r)}else t[i]=r})),t):Object.keys(source).reduce((function(t,r){var c=source[r];return o.call(t,r)?t[r]=e(t[r],c,n):t[r]=c,t}),r)}}},,,,,function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,c.default)(1,arguments);var t=(0,o.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var h=(0,l.default)(r),d=new Date(0);d.setUTCFullYear(n,0,4),d.setUTCHours(0,0,0,0);var f=(0,l.default)(d);return t.getTime()>=h.getTime()?n+1:t.getTime()>=f.getTime()?n:n-1};var o=r(n(215)),c=r(n(145)),l=r(n(609));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,f,m,v,y,w,S;(0,c.default)(1,arguments);var _=(0,o.default)(e),C=_.getUTCFullYear(),O=(0,d.getDefaultOptions)(),A=(0,h.default)(null!==(n=null!==(r=null!==(f=null!==(m=null==t?void 0:t.firstWeekContainsDate)&&void 0!==m?m:null==t||null===(v=t.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==f?f:O.firstWeekContainsDate)&&void 0!==r?r:null===(w=O.locale)||void 0===w||null===(S=w.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==n?n:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(C+1,0,A),T.setUTCHours(0,0,0,0);var E=(0,l.default)(T,t),P=new Date(0);P.setUTCFullYear(C,0,A),P.setUTCHours(0,0,0,0);var M=(0,l.default)(P,t);return _.getTime()>=E.getTime()?C+1:_.getTime()>=M.getTime()?C:C-1};var o=r(n(215)),c=r(n(145)),l=r(n(610)),h=r(n(272)),d=n(492);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",output=Math.abs(e).toString();for(;output.length<t;)output="0"+output;return n+output},e.exports=t.default},,,function(e,t,n){e.exports={}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return c})),n.d(t,"__rest",(function(){return l})),n.d(t,"__decorate",(function(){return h})),n.d(t,"__param",(function(){return d})),n.d(t,"__metadata",(function(){return f})),n.d(t,"__awaiter",(function(){return m})),n.d(t,"__generator",(function(){return v})),n.d(t,"__createBinding",(function(){return y})),n.d(t,"__exportStar",(function(){return w})),n.d(t,"__values",(function(){return S})),n.d(t,"__read",(function(){return _})),n.d(t,"__spread",(function(){return C})),n.d(t,"__spreadArrays",(function(){return O})),n.d(t,"__await",(function(){return A})),n.d(t,"__asyncGenerator",(function(){return T})),n.d(t,"__asyncDelegator",(function(){return E})),n.d(t,"__asyncValues",(function(){return P})),n.d(t,"__makeTemplateObject",(function(){return M})),n.d(t,"__importStar",(function(){return x})),n.d(t,"__importDefault",(function(){return k})),n.d(t,"__classPrivateFieldGet",(function(){return I})),n.d(t,"__classPrivateFieldSet",(function(){return R}));var r=function(e,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])},r(e,b)};function o(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}var c=function(){return c=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},c.apply(this,arguments)};function l(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t}function h(e,t,n,desc){var r,o=arguments.length,c=o<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,n):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,desc);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(c=(o<3?r(c):o>3?r(t,n,c):r(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c}function d(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))}function v(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}function y(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function w(e,t){for(var p in e)"default"===p||t.hasOwnProperty(p)||(t[p]=e[p])}function S(e){var s="function"==typeof Symbol&&Symbol.iterator,t=s&&e[s],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function C(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(_(arguments[i]));return e}function O(){for(var s=0,i=0,e=arguments.length;i<e;i++)s+=arguments[i].length;var t=Array(s),n=0;for(i=0;i<e;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)t[n]=a[r];return t}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function T(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=n.apply(e,t||[]),q=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(e){g[e]&&(i[e]=function(t){return new Promise((function(a,b){q.push([e,t,a,b])>1||o(e,t)}))})}function o(e,t){try{(n=g[e](t)).value instanceof A?Promise.resolve(n.value.v).then(c,l):h(q[0][2],n)}catch(e){h(q[0][3],e)}var n}function c(e){o("next",e)}function l(e){o("throw",e)}function h(e,t){e(t),q.shift(),q.length&&o(q[0][0],q[0][1])}}function E(e){var i,p;return i={},t("next"),t("throw",(function(e){throw e})),t("return"),i[Symbol.iterator]=function(){return this},i;function t(t,n){i[t]=e[t]?function(r){return(p=!p)?{value:A(e[t](r)),done:"return"===t}:n?n(r):r}:n}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,t=e[Symbol.asyncIterator];return t?t.call(e):(e=S(e),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(t){i[t]=e[t]&&function(n){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(n=e[t](n)).done,n.value)}))}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(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 k(e){return e&&e.__esModule?e:{default:e}}function I(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function R(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";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([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]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},function(e,t,n){e.exports=self.fetch||(self.fetch=n(499).default||n(499))},,,,,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Device=t.detectDevice=void 0;const l=n(526),h=n(116),d=n(309),f=n(156),m=c(n(137)),v=c(n(169)),y=n(994),w=n(1641),S=n(1645),_=n(1646),C=n(1647),O=n(1648),A=n(1649),T=n(1650),E=n(1651),P=n(1652),M=n(1654),x=n(1655),k=new h.Logger("Device");function I(){if("object"==typeof navigator&&"ReactNative"===navigator.product)return k.debug("detectDevice() | React-Native detected"),"undefined"==typeof RTCPeerConnection?void k.warn("detectDevice() | unsupported react-native-webrtc without RTCPeerConnection, forgot to call registerGlobals()?"):"undefined"!=typeof RTCRtpTransceiver?(k.debug("detectDevice() | ReactNative UnifiedPlan handler chosen"),"ReactNativeUnifiedPlan"):(k.debug("detectDevice() | ReactNative PlanB handler chosen"),"ReactNative");if("object"!=typeof navigator||"string"!=typeof navigator.userAgent)k.warn("detectDevice() | unknown device");else{var e,t,n,r,o,c;const h=navigator.userAgent,d=new l.UAParser(h);k.debug("detectDevice() | browser detected [ua:%s, parsed:%o]",h,d.getResult());const f=d.getBrowser(),m=null===(e=f.name)||void 0===e?void 0:e.toLowerCase(),v=parseInt(null!==(t=f.major)&&void 0!==t?t:"0"),y=null===(n=d.getEngine().name)||void 0===n?void 0:n.toLowerCase(),w=d.getOS(),S=null===(r=w.name)||void 0===r?void 0:r.toLowerCase(),_=parseFloat(null!==(o=w.version)&&void 0!==o?o:"0"),C=null===(c=d.getDevice().model)||void 0===c?void 0:c.toLowerCase(),O="ios"===S||"ipad"===C,A=m&&["chrome","chromium","mobile chrome","chrome webview","chrome headless"].includes(m),T=m&&["firefox","mobile firefox","mobile focus"].includes(m),E=m&&["safari","mobile safari"].includes(m),P=m&&["edge"].includes(m);if((A||P)&&!O&&v>=111)return"Chrome111";if(A&&!O&&v>=74||P&&!O&&v>=88)return"Chrome74";if(A&&!O&&v>=70)return"Chrome70";if(A&&!O&&v>=67)return"Chrome67";if(A&&!O&&v>=55)return"Chrome55";if(T&&!O&&v>=60)return"Firefox60";if(T&&O&&_>=14.3)return"Safari12";if(E&&v>=12&&"undefined"!=typeof RTCRtpTransceiver&&RTCRtpTransceiver.prototype.hasOwnProperty("currentDirection"))return"Safari12";if(E&&v>=11)return"Safari11";if(P&&!O&&v>=11&&v<=18)return"Edge11";if("webkit"===y&&O&&"undefined"!=typeof RTCRtpTransceiver&&RTCRtpTransceiver.prototype.hasOwnProperty("currentDirection"))return"Safari12";if("blink"===y){const e=h.match(/(?:(?:Chrome|Chromium))[ /](\w+)/i);if(e){const t=Number(e[1]);return t>=111?"Chrome111":t>=74?"Chrome74":t>=70?"Chrome70":t>=67?"Chrome67":"Chrome55"}return"Chrome111"}k.warn("detectDevice() | browser not supported [name:%s, version:%s]",m,v)}}t.detectDevice=I;t.Device=class{constructor({handlerName:e,handlerFactory:t,Handler:n}={}){if(this._loaded=!1,this._observer=new d.EnhancedEventEmitter,k.debug("constructor()"),n){if(k.warn("constructor() | Handler option is DEPRECATED, use handlerName or handlerFactory instead"),"string"!=typeof n)throw new TypeError("non string Handler option no longer supported, use handlerFactory instead");e=n}if(e&&t)throw new TypeError("just one of handlerName or handlerInterface can be given");if(t)this._handlerFactory=t;else{if(e)k.debug("constructor() | handler given: %s",e);else{if(!(e=I()))throw new f.UnsupportedError("device not supported");k.debug("constructor() | detected handler: %s",e)}switch(e){case"Chrome111":this._handlerFactory=w.Chrome111.createFactory();break;case"Chrome74":this._handlerFactory=S.Chrome74.createFactory();break;case"Chrome70":this._handlerFactory=_.Chrome70.createFactory();break;case"Chrome67":this._handlerFactory=C.Chrome67.createFactory();break;case"Chrome55":this._handlerFactory=O.Chrome55.createFactory();break;case"Firefox60":this._handlerFactory=A.Firefox60.createFactory();break;case"Safari12":this._handlerFactory=T.Safari12.createFactory();break;case"Safari11":this._handlerFactory=E.Safari11.createFactory();break;case"Edge11":this._handlerFactory=P.Edge11.createFactory();break;case"ReactNativeUnifiedPlan":this._handlerFactory=M.ReactNativeUnifiedPlan.createFactory();break;case"ReactNative":this._handlerFactory=x.ReactNative.createFactory();break;default:throw new TypeError(`unknown handlerName "${e}"`)}}const r=this._handlerFactory();this._handlerName=r.name,r.close(),this._extendedRtpCapabilities=void 0,this._recvRtpCapabilities=void 0,this._canProduceByKind={audio:!1,video:!1},this._sctpCapabilities=void 0}get handlerName(){return this._handlerName}get loaded(){return this._loaded}get rtpCapabilities(){if(!this._loaded)throw new f.InvalidStateError("not loaded");return this._recvRtpCapabilities}get sctpCapabilities(){if(!this._loaded)throw new f.InvalidStateError("not loaded");return this._sctpCapabilities}get observer(){return this._observer}async load({routerRtpCapabilities:e}){let t;k.debug("load() [routerRtpCapabilities:%o]",e),e=m.clone(e);try{if(this._loaded)throw new f.InvalidStateError("already loaded");v.validateRtpCapabilities(e),t=this._handlerFactory();const n=await t.getNativeRtpCapabilities();k.debug("load() | got native RTP capabilities:%o",n),v.validateRtpCapabilities(n),this._extendedRtpCapabilities=v.getExtendedRtpCapabilities(n,e),k.debug("load() | got extended RTP capabilities:%o",this._extendedRtpCapabilities),this._canProduceByKind.audio=v.canSend("audio",this._extendedRtpCapabilities),this._canProduceByKind.video=v.canSend("video",this._extendedRtpCapabilities),this._recvRtpCapabilities=v.getRecvRtpCapabilities(this._extendedRtpCapabilities),v.validateRtpCapabilities(this._recvRtpCapabilities),k.debug("load() | got receiving RTP capabilities:%o",this._recvRtpCapabilities),this._sctpCapabilities=await t.getNativeSctpCapabilities(),k.debug("load() | got native SCTP capabilities:%o",this._sctpCapabilities),v.validateSctpCapabilities(this._sctpCapabilities),k.debug("load() succeeded"),this._loaded=!0,t.close()}catch(e){throw t&&t.close(),e}}canProduce(e){if(!this._loaded)throw new f.InvalidStateError("not loaded");if("audio"!==e&&"video"!==e)throw new TypeError(`invalid kind "${e}"`);return this._canProduceByKind[e]}createSendTransport({id:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,appData:f}){return k.debug("createSendTransport()"),this.createTransport({direction:"send",id:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,appData:f})}createRecvTransport({id:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,appData:f}){return k.debug("createRecvTransport()"),this.createTransport({direction:"recv",id:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,appData:f})}createTransport({direction:e,id:t,iceParameters:n,iceCandidates:r,dtlsParameters:o,sctpParameters:c,iceServers:l,iceTransportPolicy:h,additionalSettings:d,proprietaryConstraints:m,appData:v}){if(!this._loaded)throw new f.InvalidStateError("not loaded");if("string"!=typeof t)throw new TypeError("missing id");if("object"!=typeof n)throw new TypeError("missing iceParameters");if(!Array.isArray(r))throw new TypeError("missing iceCandidates");if("object"!=typeof o)throw new TypeError("missing dtlsParameters");if(c&&"object"!=typeof c)throw new TypeError("wrong sctpParameters");if(v&&"object"!=typeof v)throw new TypeError("if given, appData must be an object");const w=new y.Transport({direction:e,id:t,iceParameters:n,iceCandidates:r,dtlsParameters:o,sctpParameters:c,iceServers:l,iceTransportPolicy:h,additionalSettings:d,proprietaryConstraints:m,appData:v,handlerFactory:this._handlerFactory,extendedRtpCapabilities:this._extendedRtpCapabilities,canProduceByKind:this._canProduceByKind});return this._observer.safeEmit("newtransport",w),w}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const h=n(1638),d=l(n(1640)),f=n(116),m=n(309),v=n(156),y=c(n(137)),w=c(n(169)),S=n(995),_=n(996),C=n(997),O=n(998),A=new f.Logger("Transport");class T{constructor(e){this.consumerOptions=e,this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}class E extends m.EnhancedEventEmitter{constructor({direction:e,id:t,iceParameters:n,iceCandidates:r,dtlsParameters:o,sctpParameters:c,iceServers:l,iceTransportPolicy:d,additionalSettings:f,proprietaryConstraints:v,appData:w,handlerFactory:S,extendedRtpCapabilities:_,canProduceByKind:C}){super(),this._closed=!1,this._iceGatheringState="new",this._connectionState="new",this._producers=new Map,this._consumers=new Map,this._dataProducers=new Map,this._dataConsumers=new Map,this._probatorConsumerCreated=!1,this._awaitQueue=new h.AwaitQueue,this._pendingConsumerTasks=[],this._consumerCreationInProgress=!1,this._pendingPauseConsumers=new Map,this._consumerPauseInProgress=!1,this._pendingResumeConsumers=new Map,this._consumerResumeInProgress=!1,this._pendingCloseConsumers=new Map,this._consumerCloseInProgress=!1,this._observer=new m.EnhancedEventEmitter,A.debug("constructor() [id:%s, direction:%s]",t,e),this._id=t,this._direction=e,this._extendedRtpCapabilities=_,this._canProduceByKind=C,this._maxSctpMessageSize=c?c.maxMessageSize:null,delete(f=y.clone(f)||{}).iceServers,delete f.iceTransportPolicy,delete f.bundlePolicy,delete f.rtcpMuxPolicy,delete f.sdpSemantics,this._handler=S(),this._handler.run({direction:e,iceParameters:n,iceCandidates:r,dtlsParameters:o,sctpParameters:c,iceServers:l,iceTransportPolicy:d,additionalSettings:f,proprietaryConstraints:v,extendedRtpCapabilities:_}),this._appData=w||{},this.handleHandler()}get id(){return this._id}get closed(){return this._closed}get direction(){return this._direction}get handler(){return this._handler}get iceGatheringState(){return this._iceGatheringState}get connectionState(){return this._connectionState}get appData(){return this._appData}set appData(e){this._appData=e}get observer(){return this._observer}close(){if(!this._closed){A.debug("close()"),this._closed=!0,this._awaitQueue.stop(),this._handler.close(),this._connectionState="closed";for(const e of this._producers.values())e.transportClosed();this._producers.clear();for(const e of this._consumers.values())e.transportClosed();this._consumers.clear();for(const e of this._dataProducers.values())e.transportClosed();this._dataProducers.clear();for(const e of this._dataConsumers.values())e.transportClosed();this._dataConsumers.clear(),this._observer.safeEmit("close")}}async getStats(){if(this._closed)throw new v.InvalidStateError("closed");return this._handler.getTransportStats()}async restartIce({iceParameters:e}){if(A.debug("restartIce()"),this._closed)throw new v.InvalidStateError("closed");if(!e)throw new TypeError("missing iceParameters");return this._awaitQueue.push((async()=>await this._handler.restartIce(e)),"transport.restartIce()")}async updateIceServers({iceServers:e}={}){if(A.debug("updateIceServers()"),this._closed)throw new v.InvalidStateError("closed");if(!Array.isArray(e))throw new TypeError("missing iceServers");return this._awaitQueue.push((async()=>this._handler.updateIceServers(e)),"transport.updateIceServers()")}async produce({track:track,encodings:e,codecOptions:t,codec:n,stopTracks:r=!0,disableTrackOnPause:o=!0,zeroRtpOnPause:c=!1,appData:l={}}={}){if(A.debug("produce() [track:%o]",track),this._closed)throw new v.InvalidStateError("closed");if(!track)throw new TypeError("missing track");if("send"!==this._direction)throw new v.UnsupportedError("not a sending Transport");if(!this._canProduceByKind[track.kind])throw new v.UnsupportedError(`cannot produce ${track.kind}`);if("ended"===track.readyState)throw new v.InvalidStateError("track ended");if(0===this.listenerCount("connect")&&"new"===this._connectionState)throw new TypeError('no "connect" listener set into this transport');if(0===this.listenerCount("produce"))throw new TypeError('no "produce" listener set into this transport');if(l&&"object"!=typeof l)throw new TypeError("if given, appData must be an object");return this._awaitQueue.push((async()=>{let h;if(e&&!Array.isArray(e))throw TypeError("encodings must be an array");e&&0===e.length?h=void 0:e&&(h=e.map((e=>{const t={active:!0};return!1===e.active&&(t.active=!1),"boolean"==typeof e.dtx&&(t.dtx=e.dtx),"string"==typeof e.scalabilityMode&&(t.scalabilityMode=e.scalabilityMode),"number"==typeof e.scaleResolutionDownBy&&(t.scaleResolutionDownBy=e.scaleResolutionDownBy),"number"==typeof e.maxBitrate&&(t.maxBitrate=e.maxBitrate),"number"==typeof e.maxFramerate&&(t.maxFramerate=e.maxFramerate),"boolean"==typeof e.adaptivePtime&&(t.adaptivePtime=e.adaptivePtime),"string"==typeof e.priority&&(t.priority=e.priority),"string"==typeof e.networkPriority&&(t.networkPriority=e.networkPriority),t})));const{localId:d,rtpParameters:f,rtpSender:m}=await this._handler.send({track:track,encodings:h,codecOptions:t,codec:n});try{w.validateRtpParameters(f);const{id:e}=await new Promise(((e,t)=>{this.safeEmit("produce",{kind:track.kind,rtpParameters:f,appData:l},e,t)})),t=new S.Producer({id:e,localId:d,rtpSender:m,track:track,rtpParameters:f,stopTracks:r,disableTrackOnPause:o,zeroRtpOnPause:c,appData:l});return this._producers.set(t.id,t),this.handleProducer(t),this._observer.safeEmit("newproducer",t),t}catch(e){throw this._handler.stopSending(d).catch((()=>{})),e}}),"transport.produce()").catch((e=>{if(r)try{track.stop()}catch(e){}throw e}))}async consume({id:e,producerId:t,kind:n,rtpParameters:r,streamId:o,appData:c={}}){if(A.debug("consume()"),r=y.clone(r),this._closed)throw new v.InvalidStateError("closed");if("recv"!==this._direction)throw new v.UnsupportedError("not a receiving Transport");if("string"!=typeof e)throw new TypeError("missing id");if("string"!=typeof t)throw new TypeError("missing producerId");if("audio"!==n&&"video"!==n)throw new TypeError(`invalid kind '${n}'`);if(0===this.listenerCount("connect")&&"new"===this._connectionState)throw new TypeError('no "connect" listener set into this transport');if(c&&"object"!=typeof c)throw new TypeError("if given, appData must be an object");if(!w.canReceive(r,this._extendedRtpCapabilities))throw new v.UnsupportedError("cannot consume this Producer");const l=new T({id:e,producerId:t,kind:n,rtpParameters:r,streamId:o,appData:c});return this._pendingConsumerTasks.push(l),(0,d.default)((()=>{this._closed||!1===this._consumerCreationInProgress&&this.createPendingConsumers()})),l.promise}async produceData({ordered:e=!0,maxPacketLifeTime:t,maxRetransmits:n,label:label="",protocol:r="",appData:o={}}={}){if(A.debug("produceData()"),this._closed)throw new v.InvalidStateError("closed");if("send"!==this._direction)throw new v.UnsupportedError("not a sending Transport");if(!this._maxSctpMessageSize)throw new v.UnsupportedError("SCTP not enabled by remote Transport");if(0===this.listenerCount("connect")&&"new"===this._connectionState)throw new TypeError('no "connect" listener set into this transport');if(0===this.listenerCount("producedata"))throw new TypeError('no "producedata" listener set into this transport');if(o&&"object"!=typeof o)throw new TypeError("if given, appData must be an object");return(t||n)&&(e=!1),this._awaitQueue.push((async()=>{const{dataChannel:c,sctpStreamParameters:l}=await this._handler.sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r});w.validateSctpStreamParameters(l);const{id:h}=await new Promise(((e,t)=>{this.safeEmit("producedata",{sctpStreamParameters:l,label:label,protocol:r,appData:o},e,t)})),d=new C.DataProducer({id:h,dataChannel:c,sctpStreamParameters:l,appData:o});return this._dataProducers.set(d.id,d),this.handleDataProducer(d),this._observer.safeEmit("newdataproducer",d),d}),"transport.produceData()")}async consumeData({id:e,dataProducerId:t,sctpStreamParameters:n,label:label="",protocol:r="",appData:o={}}){if(A.debug("consumeData()"),n=y.clone(n),this._closed)throw new v.InvalidStateError("closed");if("recv"!==this._direction)throw new v.UnsupportedError("not a receiving Transport");if(!this._maxSctpMessageSize)throw new v.UnsupportedError("SCTP not enabled by remote Transport");if("string"!=typeof e)throw new TypeError("missing id");if("string"!=typeof t)throw new TypeError("missing dataProducerId");if(0===this.listenerCount("connect")&&"new"===this._connectionState)throw new TypeError('no "connect" listener set into this transport');if(o&&"object"!=typeof o)throw new TypeError("if given, appData must be an object");return w.validateSctpStreamParameters(n),this._awaitQueue.push((async()=>{const{dataChannel:c}=await this._handler.receiveDataChannel({sctpStreamParameters:n,label:label,protocol:r}),l=new O.DataConsumer({id:e,dataProducerId:t,dataChannel:c,sctpStreamParameters:n,appData:o});return this._dataConsumers.set(l.id,l),this.handleDataConsumer(l),this._observer.safeEmit("newdataconsumer",l),l}),"transport.consumeData()")}async createPendingConsumers(){this._consumerCreationInProgress=!0,this._awaitQueue.push((async()=>{if(0===this._pendingConsumerTasks.length)return void A.debug("createPendingConsumers() | there is no Consumer to be created");const e=[...this._pendingConsumerTasks];let t;this._pendingConsumerTasks=[];const n=[];for(const t of e){const{id:e,kind:r,rtpParameters:o,streamId:c}=t.consumerOptions;n.push({trackId:e,kind:r,rtpParameters:o,streamId:c})}try{const r=await this._handler.receive(n);for(let n=0;n<r.length;++n){const o=e[n],c=r[n],{id:l,producerId:h,kind:d,rtpParameters:f,appData:m}=o.consumerOptions,{localId:v,rtpReceiver:y,track:track}=c,w=new _.Consumer({id:l,localId:v,producerId:h,rtpReceiver:y,track:track,rtpParameters:f,appData:m});this._consumers.set(w.id,w),this.handleConsumer(w),this._probatorConsumerCreated||t||"video"!==d||(t=w),this._observer.safeEmit("newconsumer",w),o.resolve(w)}}catch(t){for(const n of e)n.reject(t)}if(t)try{const e=w.generateProbatorRtpParameters(t.rtpParameters);await this._handler.receive([{trackId:"probator",kind:"video",rtpParameters:e}]),A.debug("createPendingConsumers() | Consumer for RTP probation created"),this._probatorConsumerCreated=!0}catch(e){A.error("createPendingConsumers() | failed to create Consumer for RTP probation:%o",e)}}),"transport.createPendingConsumers()").then((()=>{this._consumerCreationInProgress=!1,this._pendingConsumerTasks.length>0&&this.createPendingConsumers()})).catch((()=>{}))}pausePendingConsumers(){this._consumerPauseInProgress=!0,this._awaitQueue.push((async()=>{if(0===this._pendingPauseConsumers.size)return void A.debug("pausePendingConsumers() | there is no Consumer to be paused");const e=Array.from(this._pendingPauseConsumers.values());this._pendingPauseConsumers.clear();try{const t=e.map((e=>e.localId));await this._handler.pauseReceiving(t)}catch(e){A.error("pausePendingConsumers() | failed to pause Consumers:",e)}}),"transport.pausePendingConsumers").then((()=>{this._consumerPauseInProgress=!1,this._pendingPauseConsumers.size>0&&this.pausePendingConsumers()})).catch((()=>{}))}resumePendingConsumers(){this._consumerResumeInProgress=!0,this._awaitQueue.push((async()=>{if(0===this._pendingResumeConsumers.size)return void A.debug("resumePendingConsumers() | there is no Consumer to be resumed");const e=Array.from(this._pendingResumeConsumers.values());this._pendingResumeConsumers.clear();try{const t=e.map((e=>e.localId));await this._handler.resumeReceiving(t)}catch(e){A.error("resumePendingConsumers() | failed to resume Consumers:",e)}}),"transport.resumePendingConsumers").then((()=>{this._consumerResumeInProgress=!1,this._pendingResumeConsumers.size>0&&this.resumePendingConsumers()})).catch((()=>{}))}closePendingConsumers(){this._consumerCloseInProgress=!0,this._awaitQueue.push((async()=>{if(0===this._pendingCloseConsumers.size)return void A.debug("closePendingConsumers() | there is no Consumer to be closed");const e=Array.from(this._pendingCloseConsumers.values());this._pendingCloseConsumers.clear();try{await this._handler.stopReceiving(e.map((e=>e.localId)))}catch(e){A.error("closePendingConsumers() | failed to close Consumers:",e)}}),"transport.closePendingConsumers").then((()=>{this._consumerCloseInProgress=!1,this._pendingCloseConsumers.size>0&&this.closePendingConsumers()})).catch((()=>{}))}handleHandler(){const e=this._handler;e.on("@connect",(({dtlsParameters:e},t,n)=>{this._closed?n(new v.InvalidStateError("closed")):this.safeEmit("connect",{dtlsParameters:e},t,n)})),e.on("@icegatheringstatechange",(e=>{e!==this._iceGatheringState&&(A.debug("ICE gathering state changed to %s",e),this._iceGatheringState=e,this._closed||this.safeEmit("icegatheringstatechange",e))})),e.on("@connectionstatechange",(e=>{e!==this._connectionState&&(A.debug("connection state changed to %s",e),this._connectionState=e,this._closed||this.safeEmit("connectionstatechange",e))}))}handleProducer(e){e.on("@close",(()=>{this._producers.delete(e.id),this._closed||this._awaitQueue.push((async()=>await this._handler.stopSending(e.localId)),"producer @close event").catch((e=>A.warn("producer.close() failed:%o",e)))})),e.on("@pause",((t,n)=>{this._awaitQueue.push((async()=>await this._handler.pauseSending(e.localId)),"producer @pause event").then(t).catch(n)})),e.on("@resume",((t,n)=>{this._awaitQueue.push((async()=>await this._handler.resumeSending(e.localId)),"producer @resume event").then(t).catch(n)})),e.on("@replacetrack",((track,t,n)=>{this._awaitQueue.push((async()=>await this._handler.replaceTrack(e.localId,track)),"producer @replacetrack event").then(t).catch(n)})),e.on("@setmaxspatiallayer",((t,n,r)=>{this._awaitQueue.push((async()=>await this._handler.setMaxSpatialLayer(e.localId,t)),"producer @setmaxspatiallayer event").then(n).catch(r)})),e.on("@setrtpencodingparameters",((t,n,r)=>{this._awaitQueue.push((async()=>await this._handler.setRtpEncodingParameters(e.localId,t)),"producer @setrtpencodingparameters event").then(n).catch(r)})),e.on("@getstats",((t,n)=>{if(this._closed)return n(new v.InvalidStateError("closed"));this._handler.getSenderStats(e.localId).then(t).catch(n)}))}handleConsumer(e){e.on("@close",(()=>{this._consumers.delete(e.id),this._pendingPauseConsumers.delete(e.id),this._pendingResumeConsumers.delete(e.id),this._closed||(this._pendingCloseConsumers.set(e.id,e),!1===this._consumerCloseInProgress&&this.closePendingConsumers())})),e.on("@pause",(()=>{this._pendingResumeConsumers.has(e.id)&&this._pendingResumeConsumers.delete(e.id),this._pendingPauseConsumers.set(e.id,e),(0,d.default)((()=>{this._closed||!1===this._consumerPauseInProgress&&this.pausePendingConsumers()}))})),e.on("@resume",(()=>{this._pendingPauseConsumers.has(e.id)&&this._pendingPauseConsumers.delete(e.id),this._pendingResumeConsumers.set(e.id,e),(0,d.default)((()=>{this._closed||!1===this._consumerResumeInProgress&&this.resumePendingConsumers()}))})),e.on("@getstats",((t,n)=>{if(this._closed)return n(new v.InvalidStateError("closed"));this._handler.getReceiverStats(e.localId).then(t).catch(n)}))}handleDataProducer(e){e.on("@close",(()=>{this._dataProducers.delete(e.id)}))}handleDataConsumer(e){e.on("@close",(()=>{this._dataConsumers.delete(e.id)}))}}t.Transport=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Producer=void 0;const r=n(116),o=n(309),c=n(156),l=new r.Logger("Producer");class h extends o.EnhancedEventEmitter{constructor({id:e,localId:t,rtpSender:n,track:track,rtpParameters:r,stopTracks:c,disableTrackOnPause:h,zeroRtpOnPause:d,appData:f}){super(),this._closed=!1,this._observer=new o.EnhancedEventEmitter,l.debug("constructor()"),this._id=e,this._localId=t,this._rtpSender=n,this._track=track,this._kind=track.kind,this._rtpParameters=r,this._paused=!!h&&!track.enabled,this._maxSpatialLayer=void 0,this._stopTracks=c,this._disableTrackOnPause=h,this._zeroRtpOnPause=d,this._appData=f||{},this.onTrackEnded=this.onTrackEnded.bind(this),this.handleTrack()}get id(){return this._id}get localId(){return this._localId}get closed(){return this._closed}get kind(){return this._kind}get rtpSender(){return this._rtpSender}get track(){return this._track}get rtpParameters(){return this._rtpParameters}get paused(){return this._paused}get maxSpatialLayer(){return this._maxSpatialLayer}get appData(){return this._appData}set appData(e){this._appData=e}get observer(){return this._observer}close(){this._closed||(l.debug("close()"),this._closed=!0,this.destroyTrack(),this.emit("@close"),this._observer.safeEmit("close"))}transportClosed(){this._closed||(l.debug("transportClosed()"),this._closed=!0,this.destroyTrack(),this.safeEmit("transportclose"),this._observer.safeEmit("close"))}async getStats(){if(this._closed)throw new c.InvalidStateError("closed");return new Promise(((e,t)=>{this.safeEmit("@getstats",e,t)}))}pause(){l.debug("pause()"),this._closed?l.error("pause() | Producer closed"):(this._paused=!0,this._track&&this._disableTrackOnPause&&(this._track.enabled=!1),this._zeroRtpOnPause&&new Promise(((e,t)=>{this.safeEmit("@pause",e,t)})).catch((()=>{})),this._observer.safeEmit("pause"))}resume(){l.debug("resume()"),this._closed?l.error("resume() | Producer closed"):(this._paused=!1,this._track&&this._disableTrackOnPause&&(this._track.enabled=!0),this._zeroRtpOnPause&&new Promise(((e,t)=>{this.safeEmit("@resume",e,t)})).catch((()=>{})),this._observer.safeEmit("resume"))}async replaceTrack({track:track}){if(l.debug("replaceTrack() [track:%o]",track),this._closed){if(track&&this._stopTracks)try{track.stop()}catch(e){}throw new c.InvalidStateError("closed")}if(track&&"ended"===track.readyState)throw new c.InvalidStateError("track ended");track!==this._track?(await new Promise(((e,t)=>{this.safeEmit("@replacetrack",track,e,t)})),this.destroyTrack(),this._track=track,this._track&&this._disableTrackOnPause&&(this._paused?this._paused&&(this._track.enabled=!1):this._track.enabled=!0),this.handleTrack()):l.debug("replaceTrack() | same track, ignored")}async setMaxSpatialLayer(e){if(this._closed)throw new c.InvalidStateError("closed");if("video"!==this._kind)throw new c.UnsupportedError("not a video Producer");if("number"!=typeof e)throw new TypeError("invalid spatialLayer");e!==this._maxSpatialLayer&&(await new Promise(((t,n)=>{this.safeEmit("@setmaxspatiallayer",e,t,n)})).catch((()=>{})),this._maxSpatialLayer=e)}async setRtpEncodingParameters(e){if(this._closed)throw new c.InvalidStateError("closed");if("object"!=typeof e)throw new TypeError("invalid params");await new Promise(((t,n)=>{this.safeEmit("@setrtpencodingparameters",e,t,n)}))}onTrackEnded(){l.debug('track "ended" event'),this.safeEmit("trackended"),this._observer.safeEmit("trackended")}handleTrack(){this._track&&this._track.addEventListener("ended",this.onTrackEnded)}destroyTrack(){if(this._track)try{this._track.removeEventListener("ended",this.onTrackEnded),this._stopTracks&&this._track.stop()}catch(e){}}}t.Producer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Consumer=void 0;const r=n(116),o=n(309),c=n(156),l=new r.Logger("Consumer");class h extends o.EnhancedEventEmitter{constructor({id:e,localId:t,producerId:n,rtpReceiver:r,track:track,rtpParameters:c,appData:h}){super(),this._closed=!1,this._observer=new o.EnhancedEventEmitter,l.debug("constructor()"),this._id=e,this._localId=t,this._producerId=n,this._rtpReceiver=r,this._track=track,this._rtpParameters=c,this._paused=!track.enabled,this._appData=h||{},this.onTrackEnded=this.onTrackEnded.bind(this),this.handleTrack()}get id(){return this._id}get localId(){return this._localId}get producerId(){return this._producerId}get closed(){return this._closed}get kind(){return this._track.kind}get rtpReceiver(){return this._rtpReceiver}get track(){return this._track}get rtpParameters(){return this._rtpParameters}get paused(){return this._paused}get appData(){return this._appData}set appData(e){this._appData=e}get observer(){return this._observer}close(){this._closed||(l.debug("close()"),this._closed=!0,this.destroyTrack(),this.emit("@close"),this._observer.safeEmit("close"))}transportClosed(){this._closed||(l.debug("transportClosed()"),this._closed=!0,this.destroyTrack(),this.safeEmit("transportclose"),this._observer.safeEmit("close"))}async getStats(){if(this._closed)throw new c.InvalidStateError("closed");return new Promise(((e,t)=>{this.safeEmit("@getstats",e,t)}))}pause(){l.debug("pause()"),this._closed?l.error("pause() | Consumer closed"):this._paused?l.debug("pause() | Consumer is already paused"):(this._paused=!0,this._track.enabled=!1,this.emit("@pause"),this._observer.safeEmit("pause"))}resume(){l.debug("resume()"),this._closed?l.error("resume() | Consumer closed"):this._paused?(this._paused=!1,this._track.enabled=!0,this.emit("@resume"),this._observer.safeEmit("resume")):l.debug("resume() | Consumer is already resumed")}onTrackEnded(){l.debug('track "ended" event'),this.safeEmit("trackended"),this._observer.safeEmit("trackended")}handleTrack(){this._track.addEventListener("ended",this.onTrackEnded)}destroyTrack(){try{this._track.removeEventListener("ended",this.onTrackEnded),this._track.stop()}catch(e){}}}t.Consumer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataProducer=void 0;const r=n(116),o=n(309),c=n(156),l=new r.Logger("DataProducer");class h extends o.EnhancedEventEmitter{constructor({id:e,dataChannel:t,sctpStreamParameters:n,appData:r}){super(),this._closed=!1,this._observer=new o.EnhancedEventEmitter,l.debug("constructor()"),this._id=e,this._dataChannel=t,this._sctpStreamParameters=n,this._appData=r||{},this.handleDataChannel()}get id(){return this._id}get closed(){return this._closed}get sctpStreamParameters(){return this._sctpStreamParameters}get readyState(){return this._dataChannel.readyState}get label(){return this._dataChannel.label}get protocol(){return this._dataChannel.protocol}get bufferedAmount(){return this._dataChannel.bufferedAmount}get bufferedAmountLowThreshold(){return this._dataChannel.bufferedAmountLowThreshold}set bufferedAmountLowThreshold(e){this._dataChannel.bufferedAmountLowThreshold=e}get appData(){return this._appData}set appData(e){this._appData=e}get observer(){return this._observer}close(){this._closed||(l.debug("close()"),this._closed=!0,this._dataChannel.close(),this.emit("@close"),this._observer.safeEmit("close"))}transportClosed(){this._closed||(l.debug("transportClosed()"),this._closed=!0,this._dataChannel.close(),this.safeEmit("transportclose"),this._observer.safeEmit("close"))}send(data){if(l.debug("send()"),this._closed)throw new c.InvalidStateError("closed");this._dataChannel.send(data)}handleDataChannel(){this._dataChannel.addEventListener("open",(()=>{this._closed||(l.debug('DataChannel "open" event'),this.safeEmit("open"))})),this._dataChannel.addEventListener("error",(e=>{if(this._closed)return;let{error:t}=e;t||(t=new Error("unknown DataChannel error")),"sctp-failure"===t.errorDetail?l.error("DataChannel SCTP error [sctpCauseCode:%s]: %s",t.sctpCauseCode,t.message):l.error('DataChannel "error" event: %o',t),this.safeEmit("error",t)})),this._dataChannel.addEventListener("close",(()=>{this._closed||(l.warn('DataChannel "close" event'),this._closed=!0,this.emit("@close"),this.safeEmit("close"),this._observer.safeEmit("close"))})),this._dataChannel.addEventListener("message",(()=>{this._closed||l.warn('DataChannel "message" event in a DataProducer, message discarded')})),this._dataChannel.addEventListener("bufferedamountlow",(()=>{this._closed||this.safeEmit("bufferedamountlow")}))}}t.DataProducer=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataConsumer=void 0;const r=n(116),o=n(309),c=new r.Logger("DataConsumer");class l extends o.EnhancedEventEmitter{constructor({id:e,dataProducerId:t,dataChannel:n,sctpStreamParameters:r,appData:l}){super(),this._closed=!1,this._observer=new o.EnhancedEventEmitter,c.debug("constructor()"),this._id=e,this._dataProducerId=t,this._dataChannel=n,this._sctpStreamParameters=r,this._appData=l||{},this.handleDataChannel()}get id(){return this._id}get dataProducerId(){return this._dataProducerId}get closed(){return this._closed}get sctpStreamParameters(){return this._sctpStreamParameters}get readyState(){return this._dataChannel.readyState}get label(){return this._dataChannel.label}get protocol(){return this._dataChannel.protocol}get binaryType(){return this._dataChannel.binaryType}set binaryType(e){this._dataChannel.binaryType=e}get appData(){return this._appData}set appData(e){this._appData=e}get observer(){return this._observer}close(){this._closed||(c.debug("close()"),this._closed=!0,this._dataChannel.close(),this.emit("@close"),this._observer.safeEmit("close"))}transportClosed(){this._closed||(c.debug("transportClosed()"),this._closed=!0,this._dataChannel.close(),this.safeEmit("transportclose"),this._observer.safeEmit("close"))}handleDataChannel(){this._dataChannel.addEventListener("open",(()=>{this._closed||(c.debug('DataChannel "open" event'),this.safeEmit("open"))})),this._dataChannel.addEventListener("error",(e=>{if(this._closed)return;let{error:t}=e;t||(t=new Error("unknown DataChannel error")),"sctp-failure"===t.errorDetail?c.error("DataChannel SCTP error [sctpCauseCode:%s]: %s",t.sctpCauseCode,t.message):c.error('DataChannel "error" event: %o',t),this.safeEmit("error",t)})),this._dataChannel.addEventListener("close",(()=>{this._closed||(c.warn('DataChannel "close" event'),this._closed=!0,this.emit("@close"),this.safeEmit("close"),this._observer.safeEmit("close"))})),this._dataChannel.addEventListener("message",(e=>{this._closed||this.safeEmit("message",e.data)}))}}t.DataConsumer=l},function(e,t){var n=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(n).forEach((function(e){n[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},function(e,t,n){"use strict";const r=n(199),o=n(613),c={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:r.URL||URL};t.analyze=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return o.code("DOMAIN_NON_EMPTY_STRING");if(e.length>256)return o.code("DOMAIN_TOO_LONG");if(!!c.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return o.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(c.domainControlRx.test(e))return o.code("DOMAIN_INVALID_CHARS");e=c.punycode(e);const n=t.minDomainSegments||c.minDomainSegments,r=e.split(".");if(r.length<n)return o.code("DOMAIN_SEGMENTS_COUNT");if(t.maxDomainSegments&&r.length>t.maxDomainSegments)return o.code("DOMAIN_SEGMENTS_COUNT_MAX");const l=t.tlds;if(l){const e=r[r.length-1].toLowerCase();if(l.deny&&l.deny.has(e)||l.allow&&!l.allow.has(e))return o.code("DOMAIN_FORBIDDEN_TLDS")}for(let i=0;i<r.length;++i){const e=r[i];if(!e.length)return o.code("DOMAIN_EMPTY_SEGMENT");if(e.length>63)return o.code("DOMAIN_LONG_SEGMENT");if(i<r.length-1){if(!c.domainSegmentRx.test(e))return o.code("DOMAIN_INVALID_CHARS")}else if(!c.tldSegmentRx.test(e))return o.code("DOMAIN_INVALID_TLDS_CHARS")}return null},t.isValid=function(e,n){return!t.analyze(e,n)},c.punycode=function(e){try{return new c.URL(`http://${e}`).host}catch(t){return e}}},function(e,t,n){"use strict";const r=n(1662);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new r(t)}}},function(e,t,n){"use strict";const r=n(1001),o=n(1664),c={generate:function(){const e={},t="\\dA-Fa-f",n="["+t+"]",r="\\w-\\.~",o="!\\$&'\\(\\)\\*\\+,;=",c="%"+t,l=r+c+o+":@",h="["+l+"]",d="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+d+"\\.){3}"+d;const f=n+"{1,4}",m="(?:"+f+":"+f+"|"+e.ipv4address+")",v="(?:"+f+":){6}"+m,y="::(?:"+f+":){5}"+m,w="(?:"+f+")?::(?:"+f+":){4}"+m,S="(?:(?:"+f+":){0,1}"+f+")?::(?:"+f+":){3}"+m,_="(?:(?:"+f+":){0,2}"+f+")?::(?:"+f+":){2}"+m,C="(?:(?:"+f+":){0,3}"+f+")?::"+f+":"+m,O="(?:(?:"+f+":){0,4}"+f+")?::"+m,A="(?:(?:"+f+":){0,5}"+f+")?::"+f,T="(?:(?:"+f+":){0,6}"+f+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+v+"|"+y+"|"+w+"|"+S+"|"+_+"|"+C+"|"+O+"|"+A+"|"+T+")",e.ipvFuture="v"+n+"+\\.["+r+o+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const E="["+r+c+o+":]*",P="["+r+c+o+"]{1,255}",M="(?:"+("\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]")+"|"+e.ipv4address+"|"+P+")",x="(?:"+E+"@)?"+M+"(?::\\d*)?",k="(?:"+E+"@)?("+M+")(?::\\d*)?",I=h+"*",R=h+"+",j="(?:\\/"+I+")*",D="\\/(?:"+R+j+")?",N=R+j,L="["+r+c+o+"@]+"+j,B="(?:\\/\\/\\/"+I+j+")";return e.hierPart="(?:(?:\\/\\/"+x+j+")|"+D+"|"+N+"|"+B+")",e.hierPartCapture="(?:(?:\\/\\/"+k+j+")|"+D+"|"+N+")",e.relativeRef="(?:(?:\\/\\/"+x+j+")|"+D+"|"+L+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+k+j+")|"+D+"|"+L+"|)",e.query="["+l+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+l+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+l+"\\/\\?]*",e}};c.rfc3986=c.generate(),t.ip={v4Cidr:c.rfc3986.ipv4Cidr,v6Cidr:c.rfc3986.ipv6Cidr,ipv4:c.rfc3986.ipv4address,ipv6:c.rfc3986.ipv6address,ipvfuture:c.rfc3986.ipvFuture},c.createRegex=function(e){const t=c.rfc3986,n="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",l=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return c.wrap(l+n);let h="";if(e.scheme){r(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const n=[].concat(e.scheme);r(n.length>=1,"scheme must have at least 1 scheme specified");const c=[];for(let i=0;i<n.length;++i){const e=n[i];r(e instanceof RegExp||"string"==typeof e,"scheme at position "+i+" must be a RegExp or String"),e instanceof RegExp?c.push(e.source.toString()):(r(t.schemeRegex.test(e),"scheme at position "+i+" must be a valid scheme"),c.push(o(e)))}h=c.join("|")}const d="(?:"+(h?"(?:"+h+")":t.scheme)+":"+(e.domain?t.hierPartCapture:t.hierPart)+")",f=e.allowRelative?"(?:"+d+"|"+l+")":d;return c.wrap(f+n,h)},c.wrap=function(e,t){return{raw:e=`(?=.)(?!https?:/$)${e}`,regex:new RegExp(`^${e}$`),scheme:t}},c.uriRegex=c.createRegex({}),t.regex=function(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?c.createRegex(e):c.uriRegex}},,,,function(e,t,n){"use strict";var r=n(370),o=n(128),c=n(359),l=n(89),h=o.a?o.a.isConcatSpreadable:void 0;var d=function(e){return Object(l.a)(e)||Object(c.a)(e)||!!(h&&e&&e[h])};t.a=function e(t,n,o,c,l){var h=-1,f=t.length;for(o||(o=d),l||(l=[]);++h<f;){var m=t[h];n>0&&o(m)?n>1?e(m,n-1,o,c,l):Object(r.a)(l,m):c||(l[l.length]=m)}return l}},function(e){e.exports=JSON.parse('[{"name":"Pacific/Niue","alternativeName":"Niue Time","group":["Pacific/Niue"],"continentCode":"OC","continentName":"Oceania","countryName":"Niue","countryCode":"NU","mainCities":["Alofi"],"rawOffsetInMinutes":-660,"abbreviation":"NUT","rawFormat":"-11:00 Niue Time - Alofi"},{"name":"Pacific/Midway","alternativeName":"Samoa Time","group":["Pacific/Midway"],"continentCode":"OC","continentName":"Oceania","countryName":"United States Minor Outlying Islands","countryCode":"UM","mainCities":["Midway"],"rawOffsetInMinutes":-660,"abbreviation":"SST","rawFormat":"-11:00 Samoa Time - Midway"},{"name":"Pacific/Pago_Pago","alternativeName":"Samoa Time","group":["Pacific/Pago_Pago","US/Samoa","Pacific/Samoa","Pacific/Midway"],"continentCode":"OC","continentName":"Oceania","countryName":"American Samoa","countryCode":"AS","mainCities":["Pago Pago"],"rawOffsetInMinutes":-660,"abbreviation":"SST","rawFormat":"-11:00 Samoa Time - Pago Pago"},{"name":"Pacific/Rarotonga","alternativeName":"Cook Islands Time","group":["Pacific/Rarotonga"],"continentCode":"OC","continentName":"Oceania","countryName":"Cook Islands","countryCode":"CK","mainCities":["Avarua"],"rawOffsetInMinutes":-600,"abbreviation":"CKT","rawFormat":"-10:00 Cook Islands Time - Avarua"},{"name":"America/Adak","alternativeName":"Hawaii-Aleutian Time","group":["America/Adak","US/Aleutian","America/Atka"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Adak"],"rawOffsetInMinutes":-600,"abbreviation":"HAST","rawFormat":"-10:00 Hawaii-Aleutian Time - Adak"},{"name":"Pacific/Honolulu","alternativeName":"Hawaii-Aleutian Time","group":["Pacific/Honolulu","US/Hawaii","Pacific/Johnston"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Honolulu","East Honolulu","Pearl City","Hilo"],"rawOffsetInMinutes":-600,"abbreviation":"HAST","rawFormat":"-10:00 Hawaii-Aleutian Time - Honolulu, East Honolulu, Pearl City, Hilo"},{"name":"Pacific/Tahiti","alternativeName":"Tahiti Time","group":["Pacific/Tahiti"],"continentCode":"OC","continentName":"Oceania","countryName":"French Polynesia","countryCode":"PF","mainCities":["Faaa","Papeete","Punaauia"],"rawOffsetInMinutes":-600,"abbreviation":"TAHT","rawFormat":"-10:00 Tahiti Time - Faaa, Papeete, Punaauia"},{"name":"Pacific/Marquesas","alternativeName":"Marquesas Time","group":["Pacific/Marquesas"],"continentCode":"OC","continentName":"Oceania","countryName":"French Polynesia","countryCode":"PF","mainCities":["Marquesas"],"rawOffsetInMinutes":-570,"abbreviation":"MART","rawFormat":"-09:30 Marquesas Time - Marquesas"},{"name":"America/Anchorage","alternativeName":"Alaska Time","group":["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat","US/Alaska"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Anchorage","Juneau","Fairbanks","Eagle River"],"rawOffsetInMinutes":-540,"abbreviation":"AKST","rawFormat":"-09:00 Alaska Time - Anchorage, Juneau, Fairbanks, Eagle River"},{"name":"Pacific/Gambier","alternativeName":"Gambier Time","group":["Pacific/Gambier"],"continentCode":"OC","continentName":"Oceania","countryName":"French Polynesia","countryCode":"PF","mainCities":["Gambier"],"rawOffsetInMinutes":-540,"abbreviation":"GAMT","rawFormat":"-09:00 Gambier Time - Gambier"},{"name":"America/Los_Angeles","alternativeName":"Pacific Time","group":["America/Los_Angeles","US/Pacific"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Los Angeles","San Diego","San Jose","San Francisco"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pacific Time - Los Angeles, San Diego, San Jose, San Francisco"},{"name":"America/Tijuana","alternativeName":"Pacific Time","group":["America/Tijuana","Mexico/BajaNorte","America/Ensenada","America/Santa_Isabel"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Tijuana","Mexicali","Ensenada","Rosarito"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pacific Time - Tijuana, Mexicali, Ensenada, Rosarito"},{"name":"America/Vancouver","alternativeName":"Pacific Time","group":["America/Vancouver","Canada/Pacific"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Vancouver","Surrey","Okanagan","Victoria"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pacific Time - Vancouver, Surrey, Okanagan, Victoria"},{"name":"Pacific/Pitcairn","alternativeName":"Pitcairn Time","group":["Pacific/Pitcairn"],"continentCode":"OC","continentName":"Oceania","countryName":"Pitcairn","countryCode":"PN","mainCities":["Adamstown"],"rawOffsetInMinutes":-480,"abbreviation":"PST","rawFormat":"-08:00 Pitcairn Time - Adamstown"},{"name":"America/Hermosillo","alternativeName":"Mexican Pacific Time","group":["America/Hermosillo","America/Mazatlan","Mexico/BajaSur"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Hermosillo","Culiacán","Ciudad Obregón","Mazatlán"],"rawOffsetInMinutes":-420,"abbreviation":"GMT-7","rawFormat":"-07:00 Mexican Pacific Time - Hermosillo, Culiacán, Ciudad Obregón, Mazatlán"},{"name":"America/Edmonton","alternativeName":"Mountain Time","group":["America/Cambridge_Bay","America/Edmonton","America/Inuvik","America/Yellowknife","Canada/Mountain"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Calgary","Edmonton","Red Deer","Sherwood Park"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Calgary, Edmonton, Red Deer, Sherwood Park"},{"name":"America/Ciudad_Juarez","alternativeName":"Mountain Time","group":["America/Ciudad_Juarez"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Ciudad Juárez"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Ciudad Juárez"},{"name":"America/Denver","alternativeName":"Mountain Time","group":["America/Boise","America/Denver","Navajo","US/Mountain","America/Shiprock"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Denver","El Paso","Albuquerque","Colorado Springs"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Denver, El Paso, Albuquerque, Colorado Springs"},{"name":"America/Phoenix","alternativeName":"Mountain Time","group":["America/Phoenix","US/Arizona","America/Creston"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Phoenix","Tucson","Mesa","Chandler"],"rawOffsetInMinutes":-420,"abbreviation":"MST","rawFormat":"-07:00 Mountain Time - Phoenix, Tucson, Mesa, Chandler"},{"name":"America/Whitehorse","alternativeName":"Yukon Time","group":["America/Creston","America/Dawson","America/Dawson_Creek","America/Fort_Nelson","America/Whitehorse","Canada/Yukon"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Whitehorse","Fort St. John","Creston","Dawson"],"rawOffsetInMinutes":-420,"abbreviation":"YT","rawFormat":"-07:00 Yukon Time - Whitehorse, Fort St. John, Creston, Dawson"},{"name":"America/Belize","alternativeName":"Central Time","group":["America/Belize"],"continentCode":"NA","continentName":"North America","countryName":"Belize","countryCode":"BZ","mainCities":["Belize City","San Ignacio","San Pedro","Orange Walk"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Belize City, San Ignacio, San Pedro, Orange Walk"},{"name":"America/Chicago","alternativeName":"Central Time","group":["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","US/Central","US/Indiana-Starke","America/Knox_IN"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["Chicago","Houston","San Antonio","Dallas"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Chicago, Houston, San Antonio, Dallas"},{"name":"America/Guatemala","alternativeName":"Central Time","group":["America/Guatemala"],"continentCode":"NA","continentName":"North America","countryName":"Guatemala","countryCode":"GT","mainCities":["Guatemala City","Villa Nueva","Mixco","Cobán"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Guatemala City, Villa Nueva, Mixco, Cobán"},{"name":"America/Managua","alternativeName":"Central Time","group":["America/Managua"],"continentCode":"NA","continentName":"North America","countryName":"Nicaragua","countryCode":"NI","mainCities":["Managua","León","Masaya","Chinandega"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Managua, León, Masaya, Chinandega"},{"name":"America/Mexico_City","alternativeName":"Central Time","group":["America/Bahia_Banderas","America/Chihuahua","America/Merida","America/Mexico_City","America/Monterrey","Mexico/General"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Mexico City","Iztapalapa","León de los Aldama","Puebla"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Mexico City, Iztapalapa, León de los Aldama, Puebla"},{"name":"America/Matamoros","alternativeName":"Central Time","group":["America/Matamoros","America/Ojinaga"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Reynosa","Heroica Matamoros","Nuevo Laredo","Piedras Negras"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Reynosa, Heroica Matamoros, Nuevo Laredo, Piedras Negras"},{"name":"America/Costa_Rica","alternativeName":"Central Time","group":["America/Costa_Rica"],"continentCode":"NA","continentName":"North America","countryName":"Costa Rica","countryCode":"CR","mainCities":["San José","Limón","San Francisco","Alajuela"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - San José, Limón, San Francisco, Alajuela"},{"name":"America/El_Salvador","alternativeName":"Central Time","group":["America/El_Salvador"],"continentCode":"NA","continentName":"North America","countryName":"El Salvador","countryCode":"SV","mainCities":["San Salvador","Soyapango","San Miguel","Santa Ana"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - San Salvador, Soyapango, San Miguel, Santa Ana"},{"name":"America/Regina","alternativeName":"Central Time","group":["America/Regina","America/Swift_Current","Canada/Saskatchewan"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Saskatoon","Regina","Prince Albert","Moose Jaw"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Saskatoon, Regina, Prince Albert, Moose Jaw"},{"name":"America/Tegucigalpa","alternativeName":"Central Time","group":["America/Tegucigalpa"],"continentCode":"NA","continentName":"North America","countryName":"Honduras","countryCode":"HN","mainCities":["Tegucigalpa","San Pedro Sula","La Ceiba","Choloma"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Tegucigalpa, San Pedro Sula, La Ceiba, Choloma"},{"name":"America/Winnipeg","alternativeName":"Central Time","group":["America/Rankin_Inlet","America/Resolute","America/Winnipeg","Canada/Central","America/Rainy_River"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Winnipeg","Brandon","Steinbach","Kenora"],"rawOffsetInMinutes":-360,"abbreviation":"CST","rawFormat":"-06:00 Central Time - Winnipeg, Brandon, Steinbach, Kenora"},{"name":"Pacific/Easter","alternativeName":"Easter Island Time","group":["Pacific/Easter","Chile/EasterIsland"],"continentCode":"SA","continentName":"South America","countryName":"Chile","countryCode":"CL","mainCities":["Easter"],"rawOffsetInMinutes":-360,"abbreviation":"EAST","rawFormat":"-06:00 Easter Island Time - Easter"},{"name":"Pacific/Galapagos","alternativeName":"Galapagos Time","group":["Pacific/Galapagos"],"continentCode":"SA","continentName":"South America","countryName":"Ecuador","countryCode":"EC","mainCities":["Galapagos"],"rawOffsetInMinutes":-360,"abbreviation":"GALT","rawFormat":"-06:00 Galapagos Time - Galapagos"},{"name":"America/Rio_Branco","alternativeName":"Acre Time","group":["America/Eirunepe","America/Rio_Branco","Brazil/Acre","America/Porto_Acre"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["Rio Branco","Cruzeiro do Sul","Senador Guiomard","Sena Madureira"],"rawOffsetInMinutes":-300,"abbreviation":"ACT","rawFormat":"-05:00 Acre Time - Rio Branco, Cruzeiro do Sul, Senador Guiomard, Sena Madureira"},{"name":"America/Bogota","alternativeName":"Colombia Time","group":["America/Bogota"],"continentCode":"SA","continentName":"South America","countryName":"Colombia","countryCode":"CO","mainCities":["Bogotá","Cali","Medellín","Barranquilla"],"rawOffsetInMinutes":-300,"abbreviation":"COT","rawFormat":"-05:00 Colombia Time - Bogotá, Cali, Medellín, Barranquilla"},{"name":"America/Havana","alternativeName":"Cuba Time","group":["America/Havana","Cuba"],"continentCode":"NA","continentName":"North America","countryName":"Cuba","countryCode":"CU","mainCities":["Havana","Santiago de Cuba","Camagüey","Holguín"],"rawOffsetInMinutes":-300,"abbreviation":"CST","rawFormat":"-05:00 Cuba Time - Havana, Santiago de Cuba, Camagüey, Holguín"},{"name":"America/Atikokan","alternativeName":"Eastern Time","group":["America/Atikokan"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Atikokan"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Atikokan"},{"name":"America/Cancun","alternativeName":"Eastern Time","group":["America/Cancun"],"continentCode":"NA","continentName":"North America","countryName":"Mexico","countryCode":"MX","mainCities":["Cancún","Chetumal","Playa del Carmen","Cozumel"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Cancún, Chetumal, Playa del Carmen, Cozumel"},{"name":"America/Grand_Turk","alternativeName":"Eastern Time","group":["America/Grand_Turk"],"continentCode":"NA","continentName":"North America","countryName":"Turks and Caicos Islands","countryCode":"TC","mainCities":["Cockburn Town"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Cockburn Town"},{"name":"America/Cayman","alternativeName":"Eastern Time","group":["America/Cayman"],"continentCode":"NA","continentName":"North America","countryName":"Cayman Islands","countryCode":"KY","mainCities":["George Town","West Bay"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - George Town, West Bay"},{"name":"America/Jamaica","alternativeName":"Eastern Time","group":["America/Jamaica","Jamaica"],"continentCode":"NA","continentName":"North America","countryName":"Jamaica","countryCode":"JM","mainCities":["Kingston","New Kingston","Spanish Town","Portmore"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Kingston, New Kingston, Spanish Town, Portmore"},{"name":"America/Nassau","alternativeName":"Eastern Time","group":["America/Nassau"],"continentCode":"NA","continentName":"North America","countryName":"Bahamas","countryCode":"BS","mainCities":["Nassau","Lucaya","Freeport","Killarney"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Nassau, Lucaya, Freeport, Killarney"},{"name":"America/New_York","alternativeName":"Eastern Time","group":["America/Detroit","America/Indiana/Indianapolis","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Kentucky/Louisville","America/Kentucky/Monticello","America/New_York","US/Michigan","US/East-Indiana","America/Indianapolis","America/Fort_Wayne","America/Louisville","US/Eastern"],"continentCode":"NA","continentName":"North America","countryName":"United States","countryCode":"US","mainCities":["New York City","Brooklyn","Queens","Philadelphia"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - New York City, Brooklyn, Queens, Philadelphia"},{"name":"America/Panama","alternativeName":"Eastern Time","group":["America/Panama","America/Atikokan","America/Cayman","America/Coral_Harbour"],"continentCode":"NA","continentName":"North America","countryName":"Panama","countryCode":"PA","mainCities":["Panamá","San Miguelito","Juan Díaz","David"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Panamá, San Miguelito, Juan Díaz, David"},{"name":"America/Port-au-Prince","alternativeName":"Eastern Time","group":["America/Port-au-Prince"],"continentCode":"NA","continentName":"North America","countryName":"Haiti","countryCode":"HT","mainCities":["Port-au-Prince","Carrefour","Delmas 73","Port-de-Paix"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Port-au-Prince, Carrefour, Delmas 73, Port-de-Paix"},{"name":"America/Toronto","alternativeName":"Eastern Time","group":["America/Iqaluit","America/Toronto","America/Pangnirtung","Canada/Eastern","America/Nassau","America/Montreal","America/Nipigon","America/Thunder_Bay"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Toronto","Montréal","Ottawa","Mississauga"],"rawOffsetInMinutes":-300,"abbreviation":"EST","rawFormat":"-05:00 Eastern Time - Toronto, Montréal, Ottawa, Mississauga"},{"name":"America/Guayaquil","alternativeName":"Ecuador Time","group":["America/Guayaquil"],"continentCode":"SA","continentName":"South America","countryName":"Ecuador","countryCode":"EC","mainCities":["Quito","Guayaquil","Cuenca","Santo Domingo de los Colorados"],"rawOffsetInMinutes":-300,"abbreviation":"ECT","rawFormat":"-05:00 Ecuador Time - Quito, Guayaquil, Cuenca, Santo Domingo de los Colorados"},{"name":"America/Lima","alternativeName":"Peru Time","group":["America/Lima"],"continentCode":"SA","continentName":"South America","countryName":"Peru","countryCode":"PE","mainCities":["Lima","Callao","Arequipa","Trujillo"],"rawOffsetInMinutes":-300,"abbreviation":"PET","rawFormat":"-05:00 Peru Time - Lima, Callao, Arequipa, Trujillo"},{"name":"America/Manaus","alternativeName":"Amazon Time","group":["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho","Brazil/West"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["Manaus","Campo Grande","Cuiabá","Porto Velho"],"rawOffsetInMinutes":-240,"abbreviation":"AMT","rawFormat":"-04:00 Amazon Time - Manaus, Campo Grande, Cuiabá, Porto Velho"},{"name":"America/St_Kitts","alternativeName":"Atlantic Time","group":["America/St_Kitts"],"continentCode":"NA","continentName":"North America","countryName":"Saint Kitts and Nevis","countryCode":"KN","mainCities":["Basseterre"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Basseterre"},{"name":"America/Blanc-Sablon","alternativeName":"Atlantic Time","group":["America/Blanc-Sablon"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Blanc-Sablon"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Blanc-Sablon"},{"name":"America/Montserrat","alternativeName":"Atlantic Time","group":["America/Montserrat"],"continentCode":"NA","continentName":"North America","countryName":"Montserrat","countryCode":"MS","mainCities":["Brades","Plymouth"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Brades, Plymouth"},{"name":"America/Barbados","alternativeName":"Atlantic Time","group":["America/Barbados"],"continentCode":"NA","continentName":"North America","countryName":"Barbados","countryCode":"BB","mainCities":["Bridgetown"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Bridgetown"},{"name":"America/Port_of_Spain","alternativeName":"Atlantic Time","group":["America/Port_of_Spain"],"continentCode":"NA","continentName":"North America","countryName":"Trinidad and Tobago","countryCode":"TT","mainCities":["Chaguanas","Mon Repos","San Fernando","Port of Spain"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Chaguanas, Mon Repos, San Fernando, Port of Spain"},{"name":"America/Martinique","alternativeName":"Atlantic Time","group":["America/Martinique"],"continentCode":"NA","continentName":"North America","countryName":"Martinique","countryCode":"MQ","mainCities":["Fort-de-France","Le Lamentin","Le Robert","Sainte-Marie"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Fort-de-France, Le Lamentin, Le Robert, Sainte-Marie"},{"name":"America/St_Lucia","alternativeName":"Atlantic Time","group":["America/St_Lucia"],"continentCode":"NA","continentName":"North America","countryName":"Saint Lucia","countryCode":"LC","mainCities":["Gros Islet","Castries"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Gros Islet, Castries"},{"name":"America/St_Barthelemy","alternativeName":"Atlantic Time","group":["America/St_Barthelemy"],"continentCode":"NA","continentName":"North America","countryName":"Saint Barthelemy","countryCode":"BL","mainCities":["Gustavia"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Gustavia"},{"name":"America/Halifax","alternativeName":"Atlantic Time","group":["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","Canada/Atlantic"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["Halifax","Moncton","Sydney","Dartmouth"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Halifax, Moncton, Sydney, Dartmouth"},{"name":"Atlantic/Bermuda","alternativeName":"Atlantic Time","group":["Atlantic/Bermuda"],"continentCode":"NA","continentName":"North America","countryName":"Bermuda","countryCode":"BM","mainCities":["Hamilton"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Hamilton"},{"name":"America/St_Vincent","alternativeName":"Atlantic Time","group":["America/St_Vincent"],"continentCode":"NA","continentName":"North America","countryName":"Saint Vincent and the Grenadines","countryCode":"VC","mainCities":["Kingstown"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Kingstown"},{"name":"America/Kralendijk","alternativeName":"Atlantic Time","group":["America/Kralendijk"],"continentCode":"NA","continentName":"North America","countryName":"Bonaire, Saint Eustatius and Saba ","countryCode":"BQ","mainCities":["Kralendijk"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Kralendijk"},{"name":"America/Guadeloupe","alternativeName":"Atlantic Time","group":["America/Guadeloupe"],"continentCode":"NA","continentName":"North America","countryName":"Guadeloupe","countryCode":"GP","mainCities":["Les Abymes","Baie-Mahault","Le Gosier","Petit-Bourg"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Les Abymes, Baie-Mahault, Le Gosier, Petit-Bourg"},{"name":"America/Marigot","alternativeName":"Atlantic Time","group":["America/Marigot"],"continentCode":"NA","continentName":"North America","countryName":"Saint Martin","countryCode":"MF","mainCities":["Marigot"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Marigot"},{"name":"America/Aruba","alternativeName":"Atlantic Time","group":["America/Aruba"],"continentCode":"NA","continentName":"North America","countryName":"Aruba","countryCode":"AW","mainCities":["Oranjestad","Noord","Tanki Leendert","San Nicolas"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Oranjestad, Noord, Tanki Leendert, San Nicolas"},{"name":"America/Lower_Princes","alternativeName":"Atlantic Time","group":["America/Lower_Princes"],"continentCode":"NA","continentName":"North America","countryName":"Sint Maarten","countryCode":"SX","mainCities":["Philipsburg"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Philipsburg"},{"name":"America/Tortola","alternativeName":"Atlantic Time","group":["America/Tortola"],"continentCode":"NA","continentName":"North America","countryName":"British Virgin Islands","countryCode":"VG","mainCities":["Road Town"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Road Town"},{"name":"America/Dominica","alternativeName":"Atlantic Time","group":["America/Dominica"],"continentCode":"NA","continentName":"North America","countryName":"Dominica","countryCode":"DM","mainCities":["Roseau"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Roseau"},{"name":"America/St_Thomas","alternativeName":"Atlantic Time","group":["America/St_Thomas"],"continentCode":"NA","continentName":"North America","countryName":"U.S. Virgin Islands","countryCode":"VI","mainCities":["Saint Croix","Charlotte Amalie"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Saint Croix, Charlotte Amalie"},{"name":"America/Grenada","alternativeName":"Atlantic Time","group":["America/Grenada"],"continentCode":"NA","continentName":"North America","countryName":"Grenada","countryCode":"GD","mainCities":["Saint George\'s"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Saint George\'s"},{"name":"America/Antigua","alternativeName":"Atlantic Time","group":["America/Antigua"],"continentCode":"NA","continentName":"North America","countryName":"Antigua and Barbuda","countryCode":"AG","mainCities":["Saint John’s"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Saint John’s"},{"name":"America/Puerto_Rico","alternativeName":"Atlantic Time","group":["America/Puerto_Rico","America/Virgin","America/Anguilla","America/Antigua","America/Aruba","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Montserrat","America/Port_of_Spain","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"],"continentCode":"NA","continentName":"North America","countryName":"Puerto Rico","countryCode":"PR","mainCities":["San Juan","Bayamón","Carolina","Ponce"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - San Juan, Bayamón, Carolina, Ponce"},{"name":"America/Santo_Domingo","alternativeName":"Atlantic Time","group":["America/Santo_Domingo"],"continentCode":"NA","continentName":"North America","countryName":"Dominican Republic","countryCode":"DO","mainCities":["Santo Domingo","Santiago de los Caballeros","Santo Domingo Oeste","Santo Domingo Este"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Santo Domingo, Santiago de los Caballeros, Santo Domingo Oeste, Santo Domingo Este"},{"name":"America/Anguilla","alternativeName":"Atlantic Time","group":["America/Anguilla"],"continentCode":"NA","continentName":"North America","countryName":"Anguilla","countryCode":"AI","mainCities":["The Valley"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - The Valley"},{"name":"America/Thule","alternativeName":"Atlantic Time","group":["America/Thule"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Thule"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Thule"},{"name":"America/Curacao","alternativeName":"Atlantic Time","group":["America/Curacao"],"continentCode":"NA","continentName":"North America","countryName":"Curacao","countryCode":"CW","mainCities":["Willemstad"],"rawOffsetInMinutes":-240,"abbreviation":"AST","rawFormat":"-04:00 Atlantic Time - Willemstad"},{"name":"America/La_Paz","alternativeName":"Bolivia Time","group":["America/La_Paz"],"continentCode":"SA","continentName":"South America","countryName":"Bolivia","countryCode":"BO","mainCities":["La Paz","Santa Cruz de la Sierra","Cochabamba","Sucre"],"rawOffsetInMinutes":-240,"abbreviation":"BOT","rawFormat":"-04:00 Bolivia Time - La Paz, Santa Cruz de la Sierra, Cochabamba, Sucre"},{"name":"America/Santiago","alternativeName":"Chile Time","group":["America/Santiago","Chile/Continental"],"continentCode":"SA","continentName":"South America","countryName":"Chile","countryCode":"CL","mainCities":["Santiago","Puente Alto","Antofagasta","Viña del Mar"],"rawOffsetInMinutes":-240,"abbreviation":"CLT","rawFormat":"-04:00 Chile Time - Santiago, Puente Alto, Antofagasta, Viña del Mar"},{"name":"America/Guyana","alternativeName":"Guyana Time","group":["America/Guyana"],"continentCode":"SA","continentName":"South America","countryName":"Guyana","countryCode":"GY","mainCities":["Georgetown","Linden","New Amsterdam"],"rawOffsetInMinutes":-240,"abbreviation":"GYT","rawFormat":"-04:00 Guyana Time - Georgetown, Linden, New Amsterdam"},{"name":"America/Asuncion","alternativeName":"Paraguay Time","group":["America/Asuncion"],"continentCode":"SA","continentName":"South America","countryName":"Paraguay","countryCode":"PY","mainCities":["Asunción","Ciudad del Este","San Lorenzo","Capiatá"],"rawOffsetInMinutes":-240,"abbreviation":"PYT","rawFormat":"-04:00 Paraguay Time - Asunción, Ciudad del Este, San Lorenzo, Capiatá"},{"name":"America/Caracas","alternativeName":"Venezuela Time","group":["America/Caracas"],"continentCode":"SA","continentName":"South America","countryName":"Venezuela","countryCode":"VE","mainCities":["Caracas","Maracaibo","Maracay","Valencia"],"rawOffsetInMinutes":-240,"abbreviation":"VET","rawFormat":"-04:00 Venezuela Time - Caracas, Maracaibo, Maracay, Valencia"},{"name":"America/St_Johns","alternativeName":"Newfoundland Time","group":["America/St_Johns","Canada/Newfoundland"],"continentCode":"NA","continentName":"North America","countryName":"Canada","countryCode":"CA","mainCities":["St. John\'s","Ur Mom","Mount Pearl","Corner Brook"],"rawOffsetInMinutes":-210,"abbreviation":"NST","rawFormat":"-03:30 Newfoundland Time - St. John\'s, Ur Mom, Mount Pearl, Corner Brook"},{"name":"America/Argentina/Buenos_Aires","alternativeName":"Argentina Time","group":["America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Argentina/ComodRivadavia","America/Cordoba","America/Rosario","America/Jujuy","America/Mendoza"],"continentCode":"SA","continentName":"South America","countryName":"Argentina","countryCode":"AR","mainCities":["Buenos Aires","Córdoba","Rosario","Mar del Plata"],"rawOffsetInMinutes":-180,"abbreviation":"ART","rawFormat":"-03:00 Argentina Time - Buenos Aires, Córdoba, Rosario, Mar del Plata"},{"name":"America/Sao_Paulo","alternativeName":"Brasilia Time","group":["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo","Brazil/East"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["São Paulo","Rio de Janeiro","Belo Horizonte","Salvador"],"rawOffsetInMinutes":-180,"abbreviation":"BRT","rawFormat":"-03:00 Brasilia Time - São Paulo, Rio de Janeiro, Belo Horizonte, Salvador"},{"name":"Antarctica/Palmer","alternativeName":"Chile Time","group":["Antarctica/Palmer","Antarctica/Rothera"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Palmer","Rothera"],"rawOffsetInMinutes":-180,"abbreviation":"CLT","rawFormat":"-03:00 Chile Time - Palmer, Rothera"},{"name":"America/Punta_Arenas","alternativeName":"Chile Time","group":["America/Punta_Arenas"],"continentCode":"SA","continentName":"South America","countryName":"Chile","countryCode":"CL","mainCities":["Punta Arenas","Puerto Natales"],"rawOffsetInMinutes":-180,"abbreviation":"CLT","rawFormat":"-03:00 Chile Time - Punta Arenas, Puerto Natales"},{"name":"Atlantic/Stanley","alternativeName":"Falkland Islands Time","group":["Atlantic/Stanley"],"continentCode":"SA","continentName":"South America","countryName":"Falkland Islands","countryCode":"FK","mainCities":["Stanley"],"rawOffsetInMinutes":-180,"abbreviation":"FKST","rawFormat":"-03:00 Falkland Islands Time - Stanley"},{"name":"America/Cayenne","alternativeName":"French Guiana Time","group":["America/Cayenne"],"continentCode":"SA","continentName":"South America","countryName":"French Guiana","countryCode":"GF","mainCities":["Cayenne","Matoury","Saint-Laurent-du-Maroni","Kourou"],"rawOffsetInMinutes":-180,"abbreviation":"GFT","rawFormat":"-03:00 French Guiana Time - Cayenne, Matoury, Saint-Laurent-du-Maroni, Kourou"},{"name":"America/Miquelon","alternativeName":"St. Pierre & Miquelon Time","group":["America/Miquelon"],"continentCode":"NA","continentName":"North America","countryName":"Saint Pierre and Miquelon","countryCode":"PM","mainCities":["Saint-Pierre"],"rawOffsetInMinutes":-180,"abbreviation":"PM","rawFormat":"-03:00 St. Pierre & Miquelon Time - Saint-Pierre"},{"name":"America/Paramaribo","alternativeName":"Suriname Time","group":["America/Paramaribo"],"continentCode":"SA","continentName":"South America","countryName":"Suriname","countryCode":"SR","mainCities":["Paramaribo","Lelydorp"],"rawOffsetInMinutes":-180,"abbreviation":"SRT","rawFormat":"-03:00 Suriname Time - Paramaribo, Lelydorp"},{"name":"America/Montevideo","alternativeName":"Uruguay Time","group":["America/Montevideo"],"continentCode":"SA","continentName":"South America","countryName":"Uruguay","countryCode":"UY","mainCities":["Montevideo","Salto","Paysandú","Las Piedras"],"rawOffsetInMinutes":-180,"abbreviation":"UYT","rawFormat":"-03:00 Uruguay Time - Montevideo, Salto, Paysandú, Las Piedras"},{"name":"America/Scoresbysund","alternativeName":"East Greenland Time","group":["America/Scoresbysund"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Scoresbysund"],"rawOffsetInMinutes":-120,"abbreviation":"EGT","rawFormat":"-02:00 East Greenland Time - Scoresbysund"},{"name":"America/Noronha","alternativeName":"Fernando de Noronha Time","group":["America/Noronha","Brazil/DeNoronha"],"continentCode":"SA","continentName":"South America","countryName":"Brazil","countryCode":"BR","mainCities":["Noronha"],"rawOffsetInMinutes":-120,"abbreviation":"FNT","rawFormat":"-02:00 Fernando de Noronha Time - Noronha"},{"name":"Atlantic/South_Georgia","alternativeName":"South Georgia Time","group":["Atlantic/South_Georgia"],"continentCode":"AN","continentName":"Antarctica","countryName":"South Georgia and the South Sandwich Islands","countryCode":"GS","mainCities":["Grytviken"],"rawOffsetInMinutes":-120,"abbreviation":"GST","rawFormat":"-02:00 South Georgia Time - Grytviken"},{"name":"America/Nuuk","alternativeName":"West Greenland Time","group":["America/Nuuk","America/Godthab"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Nuuk"],"rawOffsetInMinutes":-120,"abbreviation":"WGT","rawFormat":"-02:00 West Greenland Time - Nuuk"},{"name":"Atlantic/Azores","alternativeName":"Azores Time","group":["Atlantic/Azores"],"continentCode":"EU","continentName":"Europe","countryName":"Portugal","countryCode":"PT","mainCities":["Ponta Delgada"],"rawOffsetInMinutes":-60,"abbreviation":"AZOT","rawFormat":"-01:00 Azores Time - Ponta Delgada"},{"name":"Atlantic/Cape_Verde","alternativeName":"Cape Verde Time","group":["Atlantic/Cape_Verde"],"continentCode":"AF","continentName":"Africa","countryName":"Cabo Verde","countryCode":"CV","mainCities":["Praia","Mindelo","Espargos","Assomada"],"rawOffsetInMinutes":-60,"abbreviation":"CVT","rawFormat":"-01:00 Cape Verde Time - Praia, Mindelo, Espargos, Assomada"},{"name":"Africa/Abidjan","alternativeName":"Greenwich Mean Time","group":["Africa/Abidjan","Iceland","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Nouakchott","Africa/Ouagadougou","Atlantic/Reykjavik","Atlantic/St_Helena","Africa/Timbuktu"],"continentCode":"AF","continentName":"Africa","countryName":"Ivory Coast","countryCode":"CI","mainCities":["Abidjan","Abobo","Bouaké","Korhogo"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Abidjan, Abobo, Bouaké, Korhogo"},{"name":"Africa/Bamako","alternativeName":"Greenwich Mean Time","group":["Africa/Bamako"],"continentCode":"AF","continentName":"Africa","countryName":"Mali","countryCode":"ML","mainCities":["Bamako","Sikasso","Koutiala","Ségou"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Bamako, Sikasso, Koutiala, Ségou"},{"name":"Africa/Bissau","alternativeName":"Greenwich Mean Time","group":["Africa/Bissau"],"continentCode":"AF","continentName":"Africa","countryName":"Guinea-Bissau","countryCode":"GW","mainCities":["Bissau","Gabú","Bafatá"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Bissau, Gabú, Bafatá"},{"name":"Africa/Conakry","alternativeName":"Greenwich Mean Time","group":["Africa/Conakry"],"continentCode":"AF","continentName":"Africa","countryName":"Guinea","countryCode":"GN","mainCities":["Conakry","Camayenne","Nzérékoré","Kankan"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Conakry, Camayenne, Nzérékoré, Kankan"},{"name":"Africa/Dakar","alternativeName":"Greenwich Mean Time","group":["Africa/Dakar"],"continentCode":"AF","continentName":"Africa","countryName":"Senegal","countryCode":"SN","mainCities":["Dakar","Pikine","Touba","Thiès"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Dakar, Pikine, Touba, Thiès"},{"name":"America/Danmarkshavn","alternativeName":"Greenwich Mean Time","group":["America/Danmarkshavn"],"continentCode":"NA","continentName":"North America","countryName":"Greenland","countryCode":"GL","mainCities":["Danmarkshavn"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Danmarkshavn"},{"name":"Europe/Isle_of_Man","alternativeName":"Greenwich Mean Time","group":["Europe/Isle_of_Man"],"continentCode":"EU","continentName":"Europe","countryName":"Isle of Man","countryCode":"IM","mainCities":["Douglas"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Douglas"},{"name":"Europe/Dublin","alternativeName":"Greenwich Mean Time","group":["Europe/Dublin","Eire"],"continentCode":"EU","continentName":"Europe","countryName":"Ireland","countryCode":"IE","mainCities":["Dublin","South Dublin","Cork","Limerick"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Dublin, South Dublin, Cork, Limerick"},{"name":"Africa/Freetown","alternativeName":"Greenwich Mean Time","group":["Africa/Freetown"],"continentCode":"AF","continentName":"Africa","countryName":"Sierra Leone","countryCode":"SL","mainCities":["Freetown","Bo","Kenema","Koidu"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Freetown, Bo, Kenema, Koidu"},{"name":"Atlantic/St_Helena","alternativeName":"Greenwich Mean Time","group":["Atlantic/St_Helena"],"continentCode":"AF","continentName":"Africa","countryName":"Saint Helena","countryCode":"SH","mainCities":["Jamestown"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Jamestown"},{"name":"Africa/Accra","alternativeName":"Greenwich Mean Time","group":["Africa/Accra"],"continentCode":"AF","continentName":"Africa","countryName":"Ghana","countryCode":"GH","mainCities":["Kumasi","Accra","Tamale","Takoradi"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Kumasi, Accra, Tamale, Takoradi"},{"name":"Africa/Lome","alternativeName":"Greenwich Mean Time","group":["Africa/Lome"],"continentCode":"AF","continentName":"Africa","countryName":"Togo","countryCode":"TG","mainCities":["Lomé","Sokodé","Kara","Atakpamé"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Lomé, Sokodé, Kara, Atakpamé"},{"name":"Europe/London","alternativeName":"Greenwich Mean Time","group":["Europe/London","GB","GB-Eire","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey","Europe/Belfast"],"continentCode":"EU","continentName":"Europe","countryName":"United Kingdom","countryCode":"GB","mainCities":["London","Birmingham","Liverpool","Glasgow"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - London, Birmingham, Liverpool, Glasgow"},{"name":"Africa/Monrovia","alternativeName":"Greenwich Mean Time","group":["Africa/Monrovia"],"continentCode":"AF","continentName":"Africa","countryName":"Liberia","countryCode":"LR","mainCities":["Monrovia","Gbarnga","Buchanan","Ganta"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Monrovia, Gbarnga, Buchanan, Ganta"},{"name":"Africa/Nouakchott","alternativeName":"Greenwich Mean Time","group":["Africa/Nouakchott"],"continentCode":"AF","continentName":"Africa","countryName":"Mauritania","countryCode":"MR","mainCities":["Nouakchott","Nouadhibou","Kiffa","Dar Naim"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Nouakchott, Nouadhibou, Kiffa, Dar Naim"},{"name":"Africa/Ouagadougou","alternativeName":"Greenwich Mean Time","group":["Africa/Ouagadougou"],"continentCode":"AF","continentName":"Africa","countryName":"Burkina Faso","countryCode":"BF","mainCities":["Ouagadougou","Bobo-Dioulasso","Koudougou","Saaba"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Ouagadougou, Bobo-Dioulasso, Koudougou, Saaba"},{"name":"Atlantic/Reykjavik","alternativeName":"Greenwich Mean Time","group":["Atlantic/Reykjavik","Iceland"],"continentCode":"EU","continentName":"Europe","countryName":"Iceland","countryCode":"IS","mainCities":["Reykjavík","Kópavogur","Hafnarfjörður","Reykjanesbær"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Reykjavík, Kópavogur, Hafnarfjörður, Reykjanesbær"},{"name":"Europe/Jersey","alternativeName":"Greenwich Mean Time","group":["Europe/Jersey"],"continentCode":"EU","continentName":"Europe","countryName":"Jersey","countryCode":"JE","mainCities":["Saint Helier"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Saint Helier"},{"name":"Europe/Guernsey","alternativeName":"Greenwich Mean Time","group":["Europe/Guernsey"],"continentCode":"EU","continentName":"Europe","countryName":"Guernsey","countryCode":"GG","mainCities":["Saint Peter Port"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Saint Peter Port"},{"name":"Africa/Banjul","alternativeName":"Greenwich Mean Time","group":["Africa/Banjul"],"continentCode":"AF","continentName":"Africa","countryName":"Gambia","countryCode":"GM","mainCities":["Serekunda","Brikama","Bununka Kunda","Sukuta"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Serekunda, Brikama, Bununka Kunda, Sukuta"},{"name":"Africa/Sao_Tome","alternativeName":"Greenwich Mean Time","group":["Africa/Sao_Tome"],"continentCode":"AF","continentName":"Africa","countryName":"Sao Tome and Principe","countryCode":"ST","mainCities":["São Tomé"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - São Tomé"},{"name":"Antarctica/Troll","alternativeName":"Greenwich Mean Time","group":["Antarctica/Troll"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Troll"],"rawOffsetInMinutes":0,"abbreviation":"GMT","rawFormat":"+00:00 Greenwich Mean Time - Troll"},{"name":"Africa/Casablanca","alternativeName":"Western European Time","group":["Africa/Casablanca"],"continentCode":"AF","continentName":"Africa","countryName":"Morocco","countryCode":"MA","mainCities":["Casablanca","Rabat","Fes","Tangier"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Casablanca, Rabat, Fes, Tangier"},{"name":"Africa/El_Aaiun","alternativeName":"Western European Time","group":["Africa/El_Aaiun"],"continentCode":"AF","continentName":"Africa","countryName":"Western Sahara","countryCode":"EH","mainCities":["Laayoune","Dakhla","Boujdour"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Laayoune, Dakhla, Boujdour"},{"name":"Atlantic/Canary","alternativeName":"Western European Time","group":["Atlantic/Canary"],"continentCode":"EU","continentName":"Europe","countryName":"Spain","countryCode":"ES","mainCities":["Las Palmas de Gran Canaria","Santa Cruz de Tenerife","La Laguna","Telde"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Las Palmas de Gran Canaria, Santa Cruz de Tenerife, La Laguna, Telde"},{"name":"Europe/Lisbon","alternativeName":"Western European Time","group":["Atlantic/Madeira","Europe/Lisbon","Portugal"],"continentCode":"EU","continentName":"Europe","countryName":"Portugal","countryCode":"PT","mainCities":["Lisbon","Porto","Amadora","Braga"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Lisbon, Porto, Amadora, Braga"},{"name":"Atlantic/Faroe","alternativeName":"Western European Time","group":["Atlantic/Faroe","Atlantic/Faeroe"],"continentCode":"EU","continentName":"Europe","countryName":"Faroe Islands","countryCode":"FO","mainCities":["Tórshavn"],"rawOffsetInMinutes":0,"abbreviation":"WET","rawFormat":"+00:00 Western European Time - Tórshavn"},{"name":"Africa/Windhoek","alternativeName":"Central Africa Time","group":["Africa/Windhoek"],"continentCode":"AF","continentName":"Africa","countryName":"Namibia","countryCode":"NA","mainCities":["Windhoek","Rundu","Walvis Bay","Swakopmund"],"rawOffsetInMinutes":60,"abbreviation":"CAT","rawFormat":"+01:00 Central Africa Time - Windhoek, Rundu, Walvis Bay, Swakopmund"},{"name":"Africa/Algiers","alternativeName":"Central European Time","group":["Africa/Algiers"],"continentCode":"AF","continentName":"Africa","countryName":"Algeria","countryCode":"DZ","mainCities":["Algiers","Oran","Constantine","Annaba"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Algiers, Oran, Constantine, Annaba"},{"name":"Europe/Amsterdam","alternativeName":"Central European Time","group":["Europe/Amsterdam"],"continentCode":"EU","continentName":"Europe","countryName":"The Netherlands","countryCode":"NL","mainCities":["Amsterdam","Rotterdam","The Hague","Utrecht"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Amsterdam, Rotterdam, The Hague, Utrecht"},{"name":"Europe/Andorra","alternativeName":"Central European Time","group":["Europe/Andorra"],"continentCode":"EU","continentName":"Europe","countryName":"Andorra","countryCode":"AD","mainCities":["Andorra la Vella","les Escaldes"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Andorra la Vella, les Escaldes"},{"name":"Europe/Belgrade","alternativeName":"Central European Time","group":["Europe/Belgrade","Europe/Ljubljana","Europe/Podgorica","Europe/Sarajevo","Europe/Skopje","Europe/Zagreb"],"continentCode":"EU","continentName":"Europe","countryName":"Serbia","countryCode":"RS","mainCities":["Belgrade","Niš","Novi Sad","Zemun"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Belgrade, Niš, Novi Sad, Zemun"},{"name":"Europe/Berlin","alternativeName":"Central European Time","group":["Europe/Berlin","Europe/Busingen","Arctic/Longyearbyen","Europe/Copenhagen","Europe/Oslo","Europe/Stockholm","Atlantic/Jan_Mayen"],"continentCode":"EU","continentName":"Europe","countryName":"Germany","countryCode":"DE","mainCities":["Berlin","Hamburg","Munich","Köln"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Berlin, Hamburg, Munich, Köln"},{"name":"Europe/Bratislava","alternativeName":"Central European Time","group":["Europe/Bratislava"],"continentCode":"EU","continentName":"Europe","countryName":"Slovakia","countryCode":"SK","mainCities":["Bratislava","Košice","Nitra","Prešov"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Bratislava, Košice, Nitra, Prešov"},{"name":"Europe/Brussels","alternativeName":"Central European Time","group":["Europe/Brussels","Europe/Amsterdam","Europe/Luxembourg"],"continentCode":"EU","continentName":"Europe","countryName":"Belgium","countryCode":"BE","mainCities":["Brussels","Antwerpen","Gent","Charleroi"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Brussels, Antwerpen, Gent, Charleroi"},{"name":"Europe/Budapest","alternativeName":"Central European Time","group":["Europe/Budapest"],"continentCode":"EU","continentName":"Europe","countryName":"Hungary","countryCode":"HU","mainCities":["Budapest","Debrecen","Szeged","Miskolc"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Budapest, Debrecen, Szeged, Miskolc"},{"name":"Europe/Copenhagen","alternativeName":"Central European Time","group":["Europe/Copenhagen"],"continentCode":"EU","continentName":"Europe","countryName":"Denmark","countryCode":"DK","mainCities":["Copenhagen","Århus","Odense","Aalborg"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Copenhagen, Århus, Odense, Aalborg"},{"name":"Europe/Gibraltar","alternativeName":"Central European Time","group":["Europe/Gibraltar"],"continentCode":"EU","continentName":"Europe","countryName":"Gibraltar","countryCode":"GI","mainCities":["Gibraltar"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Gibraltar"},{"name":"Europe/Ljubljana","alternativeName":"Central European Time","group":["Europe/Ljubljana"],"continentCode":"EU","continentName":"Europe","countryName":"Slovenia","countryCode":"SI","mainCities":["Ljubljana","Maribor","Kranj","Celje"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Ljubljana, Maribor, Kranj, Celje"},{"name":"Arctic/Longyearbyen","alternativeName":"Central European Time","group":["Arctic/Longyearbyen"],"continentCode":"EU","continentName":"Europe","countryName":"Svalbard and Jan Mayen","countryCode":"SJ","mainCities":["Longyearbyen"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Longyearbyen"},{"name":"Europe/Luxembourg","alternativeName":"Central European Time","group":["Europe/Luxembourg"],"continentCode":"EU","continentName":"Europe","countryName":"Luxembourg","countryCode":"LU","mainCities":["Luxembourg","Esch-sur-Alzette","Dudelange"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Luxembourg, Esch-sur-Alzette, Dudelange"},{"name":"Europe/Madrid","alternativeName":"Central European Time","group":["Africa/Ceuta","Europe/Madrid"],"continentCode":"EU","continentName":"Europe","countryName":"Spain","countryCode":"ES","mainCities":["Madrid","Barcelona","Valencia","Sevilla"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Madrid, Barcelona, Valencia, Sevilla"},{"name":"Europe/Monaco","alternativeName":"Central European Time","group":["Europe/Monaco"],"continentCode":"EU","continentName":"Europe","countryName":"Monaco","countryCode":"MC","mainCities":["Monaco","Monte-Carlo"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Monaco, Monte-Carlo"},{"name":"Europe/Oslo","alternativeName":"Central European Time","group":["Europe/Oslo","Atlantic/Jan_Mayen"],"continentCode":"EU","continentName":"Europe","countryName":"Norway","countryCode":"NO","mainCities":["Oslo","Bergen","Trondheim","Stavanger"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Oslo, Bergen, Trondheim, Stavanger"},{"name":"Europe/Paris","alternativeName":"Central European Time","group":["Europe/Paris","Europe/Monaco"],"continentCode":"EU","continentName":"Europe","countryName":"France","countryCode":"FR","mainCities":["Paris","Marseille","Lyon","Toulouse"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Paris, Marseille, Lyon, Toulouse"},{"name":"Europe/Podgorica","alternativeName":"Central European Time","group":["Europe/Podgorica"],"continentCode":"EU","continentName":"Europe","countryName":"Montenegro","countryCode":"ME","mainCities":["Podgorica","Nikšić","Herceg Novi","Pljevlja"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Podgorica, Nikšić, Herceg Novi, Pljevlja"},{"name":"Europe/Prague","alternativeName":"Central European Time","group":["Europe/Prague","Europe/Bratislava"],"continentCode":"EU","continentName":"Europe","countryName":"Czechia","countryCode":"CZ","mainCities":["Prague","Brno","Ostrava","Pilsen"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Prague, Brno, Ostrava, Pilsen"},{"name":"Europe/Rome","alternativeName":"Central European Time","group":["Europe/Rome","Europe/San_Marino","Europe/Vatican"],"continentCode":"EU","continentName":"Europe","countryName":"Italy","countryCode":"IT","mainCities":["Rome","Milan","Naples","Turin"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Rome, Milan, Naples, Turin"},{"name":"Europe/San_Marino","alternativeName":"Central European Time","group":["Europe/San_Marino"],"continentCode":"EU","continentName":"Europe","countryName":"San Marino","countryCode":"SM","mainCities":["San Marino"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - San Marino"},{"name":"Europe/Malta","alternativeName":"Central European Time","group":["Europe/Malta"],"continentCode":"EU","continentName":"Europe","countryName":"Malta","countryCode":"MT","mainCities":["San Pawl il-Baħar","Birkirkara","Mosta","Sliema"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - San Pawl il-Baħar, Birkirkara, Mosta, Sliema"},{"name":"Europe/Sarajevo","alternativeName":"Central European Time","group":["Europe/Sarajevo"],"continentCode":"EU","continentName":"Europe","countryName":"Bosnia and Herzegovina","countryCode":"BA","mainCities":["Sarajevo","Banja Luka","Zenica","Tuzla"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Sarajevo, Banja Luka, Zenica, Tuzla"},{"name":"Europe/Skopje","alternativeName":"Central European Time","group":["Europe/Skopje"],"continentCode":"EU","continentName":"Europe","countryName":"North Macedonia","countryCode":"MK","mainCities":["Skopje","Kumanovo","Prilep","Bitola"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Skopje, Kumanovo, Prilep, Bitola"},{"name":"Europe/Stockholm","alternativeName":"Central European Time","group":["Europe/Stockholm"],"continentCode":"EU","continentName":"Europe","countryName":"Sweden","countryCode":"SE","mainCities":["Stockholm","Göteborg","Malmö","Uppsala"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Stockholm, Göteborg, Malmö, Uppsala"},{"name":"Europe/Tirane","alternativeName":"Central European Time","group":["Europe/Tirane"],"continentCode":"EU","continentName":"Europe","countryName":"Albania","countryCode":"AL","mainCities":["Tirana","Durrës","Elbasan","Vlorë"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Tirana, Durrës, Elbasan, Vlorë"},{"name":"Africa/Tunis","alternativeName":"Central European Time","group":["Africa/Tunis"],"continentCode":"AF","continentName":"Africa","countryName":"Tunisia","countryCode":"TN","mainCities":["Tunis","Sfax","Sousse","Kairouan"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Tunis, Sfax, Sousse, Kairouan"},{"name":"Europe/Vaduz","alternativeName":"Central European Time","group":["Europe/Vaduz"],"continentCode":"EU","continentName":"Europe","countryName":"Liechtenstein","countryCode":"LI","mainCities":["Vaduz"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Vaduz"},{"name":"Europe/Vatican","alternativeName":"Central European Time","group":["Europe/Vatican"],"continentCode":"EU","continentName":"Europe","countryName":"Vatican","countryCode":"VA","mainCities":["Vatican City"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Vatican City"},{"name":"Europe/Vienna","alternativeName":"Central European Time","group":["Europe/Vienna"],"continentCode":"EU","continentName":"Europe","countryName":"Austria","countryCode":"AT","mainCities":["Vienna","Graz","Linz","Favoriten"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Vienna, Graz, Linz, Favoriten"},{"name":"Europe/Warsaw","alternativeName":"Central European Time","group":["Europe/Warsaw","Poland"],"continentCode":"EU","continentName":"Europe","countryName":"Poland","countryCode":"PL","mainCities":["Warsaw","Łódź","Kraków","Wrocław"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Warsaw, Łódź, Kraków, Wrocław"},{"name":"Europe/Zagreb","alternativeName":"Central European Time","group":["Europe/Zagreb"],"continentCode":"EU","continentName":"Europe","countryName":"Croatia","countryCode":"HR","mainCities":["Zagreb","Split","Rijeka","Osijek"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Zagreb, Split, Rijeka, Osijek"},{"name":"Europe/Zurich","alternativeName":"Central European Time","group":["Europe/Zurich","Europe/Busingen","Europe/Vaduz"],"continentCode":"EU","continentName":"Europe","countryName":"Switzerland","countryCode":"CH","mainCities":["Zürich","Genève","Basel","Lausanne"],"rawOffsetInMinutes":60,"abbreviation":"CET","rawFormat":"+01:00 Central European Time - Zürich, Genève, Basel, Lausanne"},{"name":"Africa/Bangui","alternativeName":"West Africa Time","group":["Africa/Bangui"],"continentCode":"AF","continentName":"Africa","countryName":"Central African Republic","countryCode":"CF","mainCities":["Bangui","Bimbo","Bégoua","Carnot"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Bangui, Bimbo, Bégoua, Carnot"},{"name":"Africa/Malabo","alternativeName":"West Africa Time","group":["Africa/Malabo"],"continentCode":"AF","continentName":"Africa","countryName":"Equatorial Guinea","countryCode":"GQ","mainCities":["Bata","Malabo","Ebebiyin"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Bata, Malabo, Ebebiyin"},{"name":"Africa/Brazzaville","alternativeName":"West Africa Time","group":["Africa/Brazzaville"],"continentCode":"AF","continentName":"Africa","countryName":"Republic of the Congo","countryCode":"CG","mainCities":["Brazzaville","Pointe-Noire","Dolisie","Nkayi"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Brazzaville, Pointe-Noire, Dolisie, Nkayi"},{"name":"Africa/Porto-Novo","alternativeName":"West Africa Time","group":["Africa/Porto-Novo"],"continentCode":"AF","continentName":"Africa","countryName":"Benin","countryCode":"BJ","mainCities":["Cotonou","Abomey-Calavi","Porto-Novo","Parakou"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Cotonou, Abomey-Calavi, Porto-Novo, Parakou"},{"name":"Africa/Douala","alternativeName":"West Africa Time","group":["Africa/Douala"],"continentCode":"AF","continentName":"Africa","countryName":"Cameroon","countryCode":"CM","mainCities":["Douala","Yaoundé","Bamenda","Bafoussam"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Douala, Yaoundé, Bamenda, Bafoussam"},{"name":"Africa/Kinshasa","alternativeName":"West Africa Time","group":["Africa/Kinshasa"],"continentCode":"AF","continentName":"Africa","countryName":"Democratic Republic of the Congo","countryCode":"CD","mainCities":["Kinshasa","Kikwit","Masina","Mbandaka"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Kinshasa, Kikwit, Masina, Mbandaka"},{"name":"Africa/Lagos","alternativeName":"West Africa Time","group":["Africa/Lagos","Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Niamey","Africa/Porto-Novo"],"continentCode":"AF","continentName":"Africa","countryName":"Nigeria","countryCode":"NG","mainCities":["Lagos","Kano","Ibadan","Abuja"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Lagos, Kano, Ibadan, Abuja"},{"name":"Africa/Libreville","alternativeName":"West Africa Time","group":["Africa/Libreville"],"continentCode":"AF","continentName":"Africa","countryName":"Gabon","countryCode":"GA","mainCities":["Libreville","Port-Gentil","Franceville","Owendo"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Libreville, Port-Gentil, Franceville, Owendo"},{"name":"Africa/Luanda","alternativeName":"West Africa Time","group":["Africa/Luanda"],"continentCode":"AF","continentName":"Africa","countryName":"Angola","countryCode":"AO","mainCities":["Luanda","Lubango","Huambo","Benguela"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Luanda, Lubango, Huambo, Benguela"},{"name":"Africa/Ndjamena","alternativeName":"West Africa Time","group":["Africa/Ndjamena"],"continentCode":"AF","continentName":"Africa","countryName":"Chad","countryCode":"TD","mainCities":["N\'Djamena","Moundou","Abéché","Sarh"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - N\'Djamena, Moundou, Abéché, Sarh"},{"name":"Africa/Niamey","alternativeName":"West Africa Time","group":["Africa/Niamey"],"continentCode":"AF","continentName":"Africa","countryName":"Niger","countryCode":"NE","mainCities":["Niamey","Maradi","Zinder","Tahoua"],"rawOffsetInMinutes":60,"abbreviation":"WAT","rawFormat":"+01:00 West Africa Time - Niamey, Maradi, Zinder, Tahoua"},{"name":"Africa/Bujumbura","alternativeName":"Central Africa Time","group":["Africa/Bujumbura"],"continentCode":"AF","continentName":"Africa","countryName":"Burundi","countryCode":"BI","mainCities":["Bujumbura","Gitega","Ngozi","Rumonge"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Bujumbura, Gitega, Ngozi, Rumonge"},{"name":"Africa/Gaborone","alternativeName":"Central Africa Time","group":["Africa/Gaborone"],"continentCode":"AF","continentName":"Africa","countryName":"Botswana","countryCode":"BW","mainCities":["Gaborone","Francistown","Mogoditshane","Maun"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Gaborone, Francistown, Mogoditshane, Maun"},{"name":"Africa/Harare","alternativeName":"Central Africa Time","group":["Africa/Harare"],"continentCode":"AF","continentName":"Africa","countryName":"Zimbabwe","countryCode":"ZW","mainCities":["Harare","Bulawayo","Chitungwiza","Mutare"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Harare, Bulawayo, Chitungwiza, Mutare"},{"name":"Africa/Juba","alternativeName":"Central Africa Time","group":["Africa/Juba"],"continentCode":"AF","continentName":"Africa","countryName":"South Sudan","countryCode":"SS","mainCities":["Juba","Winejok","Yei","Malakal"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Juba, Winejok, Yei, Malakal"},{"name":"Africa/Khartoum","alternativeName":"Central Africa Time","group":["Africa/Khartoum"],"continentCode":"AF","continentName":"Africa","countryName":"Sudan","countryCode":"SD","mainCities":["Khartoum","Omdurman","Nyala","Port Sudan"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Khartoum, Omdurman, Nyala, Port Sudan"},{"name":"Africa/Kigali","alternativeName":"Central Africa Time","group":["Africa/Kigali"],"continentCode":"AF","continentName":"Africa","countryName":"Rwanda","countryCode":"RW","mainCities":["Kigali","Gisenyi","Butare","Gitarama"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Kigali, Gisenyi, Butare, Gitarama"},{"name":"Africa/Blantyre","alternativeName":"Central Africa Time","group":["Africa/Blantyre"],"continentCode":"AF","continentName":"Africa","countryName":"Malawi","countryCode":"MW","mainCities":["Lilongwe","Blantyre","Mzuzu","Zomba"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Lilongwe, Blantyre, Mzuzu, Zomba"},{"name":"Africa/Lubumbashi","alternativeName":"Central Africa Time","group":["Africa/Lubumbashi"],"continentCode":"AF","continentName":"Africa","countryName":"Democratic Republic of the Congo","countryCode":"CD","mainCities":["Lubumbashi","Mbuji-Mayi","Kananga","Kisangani"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Lubumbashi, Mbuji-Mayi, Kananga, Kisangani"},{"name":"Africa/Lusaka","alternativeName":"Central Africa Time","group":["Africa/Lusaka"],"continentCode":"AF","continentName":"Africa","countryName":"Zambia","countryCode":"ZM","mainCities":["Lusaka","Ndola","Kitwe","Chipata"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Lusaka, Ndola, Kitwe, Chipata"},{"name":"Africa/Maputo","alternativeName":"Central Africa Time","group":["Africa/Maputo","Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka"],"continentCode":"AF","continentName":"Africa","countryName":"Mozambique","countryCode":"MZ","mainCities":["Maputo","Matola","Nampula","Beira"],"rawOffsetInMinutes":120,"abbreviation":"CAT","rawFormat":"+02:00 Central Africa Time - Maputo, Matola, Nampula, Beira"},{"name":"Europe/Athens","alternativeName":"Eastern European Time","group":["Europe/Athens"],"continentCode":"EU","continentName":"Europe","countryName":"Greece","countryCode":"GR","mainCities":["Athens","Thessaloníki","Pátra","Piraeus"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Athens, Thessaloníki, Pátra, Piraeus"},{"name":"Asia/Beirut","alternativeName":"Eastern European Time","group":["Asia/Beirut"],"continentCode":"AS","continentName":"Asia","countryName":"Lebanon","countryCode":"LB","mainCities":["Beirut","Ra’s Bayrūt","Tripoli","Sidon"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Beirut, Ra’s Bayrūt, Tripoli, Sidon"},{"name":"Europe/Bucharest","alternativeName":"Eastern European Time","group":["Europe/Bucharest"],"continentCode":"EU","continentName":"Europe","countryName":"Romania","countryCode":"RO","mainCities":["Bucharest","Sector 3","Iaşi","Sector 6"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Bucharest, Sector 3, Iaşi, Sector 6"},{"name":"Africa/Cairo","alternativeName":"Eastern European Time","group":["Africa/Cairo","Egypt"],"continentCode":"AF","continentName":"Africa","countryName":"Egypt","countryCode":"EG","mainCities":["Cairo","Alexandria","Giza","Shubrā al Khaymah"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Cairo, Alexandria, Giza, Shubrā al Khaymah"},{"name":"Europe/Chisinau","alternativeName":"Eastern European Time","group":["Europe/Chisinau","Europe/Tiraspol"],"continentCode":"EU","continentName":"Europe","countryName":"Moldova","countryCode":"MD","mainCities":["Chisinau","Tiraspol","Bălţi","Bender"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Chisinau, Tiraspol, Bălţi, Bender"},{"name":"Asia/Hebron","alternativeName":"Eastern European Time","group":["Asia/Gaza","Asia/Hebron"],"continentCode":"AS","continentName":"Asia","countryName":"Palestinian Territory","countryCode":"PS","mainCities":["East Jerusalem","Gaza","Khān Yūnis","Jabālyā"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - East Jerusalem, Gaza, Khān Yūnis, Jabālyā"},{"name":"Europe/Helsinki","alternativeName":"Eastern European Time","group":["Europe/Helsinki","Europe/Mariehamn"],"continentCode":"EU","continentName":"Europe","countryName":"Finland","countryCode":"FI","mainCities":["Helsinki","Espoo","Tampere","Oulu"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Helsinki, Espoo, Tampere, Oulu"},{"name":"Europe/Kaliningrad","alternativeName":"Eastern European Time","group":["Europe/Kaliningrad"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Kaliningrad","Chernyakhovsk","Sovetsk","Baltiysk"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Kaliningrad, Chernyakhovsk, Sovetsk, Baltiysk"},{"name":"Europe/Kyiv","alternativeName":"Eastern European Time","group":["Europe/Kyiv","Europe/Uzhgorod","Europe/Zaporozhye","Europe/Kiev"],"continentCode":"EU","continentName":"Europe","countryName":"Ukraine","countryCode":"UA","mainCities":["Kyiv","Kharkiv","Odesa","Dnipro"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Kyiv, Kharkiv, Odesa, Dnipro"},{"name":"Europe/Mariehamn","alternativeName":"Eastern European Time","group":["Europe/Mariehamn"],"continentCode":"EU","continentName":"Europe","countryName":"Aland Islands","countryCode":"AX","mainCities":["Mariehamn"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Mariehamn"},{"name":"Asia/Nicosia","alternativeName":"Eastern European Time","group":["Asia/Famagusta","Asia/Nicosia","Europe/Nicosia"],"continentCode":"EU","continentName":"Europe","countryName":"Cyprus","countryCode":"CY","mainCities":["Nicosia","Limassol","Larnaca","Stróvolos"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Nicosia, Limassol, Larnaca, Stróvolos"},{"name":"Europe/Riga","alternativeName":"Eastern European Time","group":["Europe/Riga"],"continentCode":"EU","continentName":"Europe","countryName":"Latvia","countryCode":"LV","mainCities":["Riga","Daugavpils","Liepāja","Jelgava"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Riga, Daugavpils, Liepāja, Jelgava"},{"name":"Europe/Sofia","alternativeName":"Eastern European Time","group":["Europe/Sofia"],"continentCode":"EU","continentName":"Europe","countryName":"Bulgaria","countryCode":"BG","mainCities":["Sofia","Plovdiv","Varna","Burgas"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Sofia, Plovdiv, Varna, Burgas"},{"name":"Europe/Tallinn","alternativeName":"Eastern European Time","group":["Europe/Tallinn"],"continentCode":"EU","continentName":"Europe","countryName":"Estonia","countryCode":"EE","mainCities":["Tallinn","Tartu","Narva","Pärnu"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Tallinn, Tartu, Narva, Pärnu"},{"name":"Africa/Tripoli","alternativeName":"Eastern European Time","group":["Africa/Tripoli","Libya"],"continentCode":"AF","continentName":"Africa","countryName":"Libya","countryCode":"LY","mainCities":["Tripoli","Benghazi","Misratah","Zliten"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Tripoli, Benghazi, Misratah, Zliten"},{"name":"Europe/Vilnius","alternativeName":"Eastern European Time","group":["Europe/Vilnius"],"continentCode":"EU","continentName":"Europe","countryName":"Lithuania","countryCode":"LT","mainCities":["Vilnius","Kaunas","Klaipėda","Šiauliai"],"rawOffsetInMinutes":120,"abbreviation":"EET","rawFormat":"+02:00 Eastern European Time - Vilnius, Kaunas, Klaipėda, Šiauliai"},{"name":"Asia/Jerusalem","alternativeName":"Israel Time","group":["Asia/Jerusalem","Israel","Asia/Tel_Aviv"],"continentCode":"AS","continentName":"Asia","countryName":"Israel","countryCode":"IL","mainCities":["Jerusalem","Tel Aviv","West Jerusalem","Haifa"],"rawOffsetInMinutes":120,"abbreviation":"IST","rawFormat":"+02:00 Israel Time - Jerusalem, Tel Aviv, West Jerusalem, Haifa"},{"name":"Africa/Johannesburg","alternativeName":"South Africa Time","group":["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"],"continentCode":"AF","continentName":"Africa","countryName":"South Africa","countryCode":"ZA","mainCities":["Johannesburg","Cape Town","Durban","Soweto"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Johannesburg, Cape Town, Durban, Soweto"},{"name":"Africa/Mbabane","alternativeName":"South Africa Time","group":["Africa/Mbabane"],"continentCode":"AF","continentName":"Africa","countryName":"Eswatini","countryCode":"SZ","mainCities":["Manzini","Mbabane","Lobamba"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Manzini, Mbabane, Lobamba"},{"name":"Africa/Maseru","alternativeName":"South Africa Time","group":["Africa/Maseru"],"continentCode":"AF","continentName":"Africa","countryName":"Lesotho","countryCode":"LS","mainCities":["Maseru","Maputsoe","Mohale\'s Hoek","Mafeteng"],"rawOffsetInMinutes":120,"abbreviation":"SAST","rawFormat":"+02:00 South Africa Time - Maseru, Maputsoe, Mohale\'s Hoek, Mafeteng"},{"name":"Asia/Kuwait","alternativeName":"Arabian Time","group":["Asia/Kuwait"],"continentCode":"AS","continentName":"Asia","countryName":"Kuwait","countryCode":"KW","mainCities":["Al Aḩmadī","Ḩawallī","As Sālimīyah","Şabāḩ as Sālim"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Al Aḩmadī, Ḩawallī, As Sālimīyah, Şabāḩ as Sālim"},{"name":"Asia/Bahrain","alternativeName":"Arabian Time","group":["Asia/Bahrain"],"continentCode":"AS","continentName":"Asia","countryName":"Bahrain","countryCode":"BH","mainCities":["Ar Rifā‘","Manama","Al Muharraq","Dār Kulayb"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Ar Rifā‘, Manama, Al Muharraq, Dār Kulayb"},{"name":"Asia/Baghdad","alternativeName":"Arabian Time","group":["Asia/Baghdad"],"continentCode":"AS","continentName":"Asia","countryName":"Iraq","countryCode":"IQ","mainCities":["Baghdad","Al Mawşil al Jadīdah","Al Başrah al Qadīmah","Mosul"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Baghdad, Al Mawşil al Jadīdah, Al Başrah al Qadīmah, Mosul"},{"name":"Asia/Qatar","alternativeName":"Arabian Time","group":["Asia/Qatar","Asia/Bahrain"],"continentCode":"AS","continentName":"Asia","countryName":"Qatar","countryCode":"QA","mainCities":["Doha","Ar Rayyān","Al Maţār al ‘Atīq","Al Manşūrah"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Doha, Ar Rayyān, Al Maţār al ‘Atīq, Al Manşūrah"},{"name":"Asia/Riyadh","alternativeName":"Arabian Time","group":["Asia/Riyadh","Antarctica/Syowa","Asia/Aden","Asia/Kuwait"],"continentCode":"AS","continentName":"Asia","countryName":"Saudi Arabia","countryCode":"SA","mainCities":["Jeddah","Riyadh","Mecca","Medina"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Jeddah, Riyadh, Mecca, Medina"},{"name":"Asia/Aden","alternativeName":"Arabian Time","group":["Asia/Aden"],"continentCode":"AS","continentName":"Asia","countryName":"Yemen","countryCode":"YE","mainCities":["Sanaa","Aden","Al Ḩudaydah","Taiz"],"rawOffsetInMinutes":180,"abbreviation":"AST","rawFormat":"+03:00 Arabian Time - Sanaa, Aden, Al Ḩudaydah, Taiz"},{"name":"Asia/Amman","alternativeName":"Asia/Amman","group":["Asia/Amman"],"continentCode":"AS","continentName":"Asia","countryName":"Jordan","countryCode":"JO","mainCities":["Amman","Zarqa","Irbid","Russeifa"],"rawOffsetInMinutes":180,"abbreviation":"GMT+3","rawFormat":"+03:00 Asia/Amman - Amman, Zarqa, Irbid, Russeifa"},{"name":"Asia/Damascus","alternativeName":"Asia/Damascus","group":["Asia/Damascus"],"continentCode":"AS","continentName":"Asia","countryName":"Syria","countryCode":"SY","mainCities":["Aleppo","Damascus","Homs","Latakia"],"rawOffsetInMinutes":180,"abbreviation":"GMT+3","rawFormat":"+03:00 Asia/Damascus - Aleppo, Damascus, Homs, Latakia"},{"name":"Africa/Addis_Ababa","alternativeName":"East Africa Time","group":["Africa/Addis_Ababa"],"continentCode":"AF","continentName":"Africa","countryName":"Ethiopia","countryCode":"ET","mainCities":["Addis Ababa","Jijiga","Gonder","Mek\'ele"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Addis Ababa, Jijiga, Gonder, Mek\'ele"},{"name":"Indian/Antananarivo","alternativeName":"East Africa Time","group":["Indian/Antananarivo"],"continentCode":"AF","continentName":"Africa","countryName":"Madagascar","countryCode":"MG","mainCities":["Antananarivo","Toamasina","Antsirabe","Mahajanga"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Antananarivo, Toamasina, Antsirabe, Mahajanga"},{"name":"Africa/Asmara","alternativeName":"East Africa Time","group":["Africa/Asmara"],"continentCode":"AF","continentName":"Africa","countryName":"Eritrea","countryCode":"ER","mainCities":["Asmara","Keren","Himora","Massawa"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Asmara, Keren, Himora, Massawa"},{"name":"Africa/Dar_es_Salaam","alternativeName":"East Africa Time","group":["Africa/Dar_es_Salaam"],"continentCode":"AF","continentName":"Africa","countryName":"Tanzania","countryCode":"TZ","mainCities":["Dar es Salaam","Mwanza","Arusha","Mbeya"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Dar es Salaam, Mwanza, Arusha, Mbeya"},{"name":"Africa/Djibouti","alternativeName":"East Africa Time","group":["Africa/Djibouti"],"continentCode":"AF","continentName":"Africa","countryName":"Djibouti","countryCode":"DJ","mainCities":["Djibouti","Ali Sabih","Dikhil","Tadjoura"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Djibouti, Ali Sabih, Dikhil, Tadjoura"},{"name":"Africa/Kampala","alternativeName":"East Africa Time","group":["Africa/Kampala"],"continentCode":"AF","continentName":"Africa","countryName":"Uganda","countryCode":"UG","mainCities":["Kampala","Gulu","Lira","Mbarara"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Kampala, Gulu, Lira, Mbarara"},{"name":"Indian/Mayotte","alternativeName":"East Africa Time","group":["Indian/Mayotte"],"continentCode":"AF","continentName":"Africa","countryName":"Mayotte","countryCode":"YT","mainCities":["Mamoudzou","Koungou","Labattoir","Kaouéni"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Mamoudzou, Koungou, Labattoir, Kaouéni"},{"name":"Africa/Mogadishu","alternativeName":"East Africa Time","group":["Africa/Mogadishu"],"continentCode":"AF","continentName":"Africa","countryName":"Somalia","countryCode":"SO","mainCities":["Mogadishu","Borama","Hargeysa","Berbera"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Mogadishu, Borama, Hargeysa, Berbera"},{"name":"Indian/Comoro","alternativeName":"East Africa Time","group":["Indian/Comoro"],"continentCode":"AF","continentName":"Africa","countryName":"Comoros","countryCode":"KM","mainCities":["Moroni","Moutsamoudou","Fomboni"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Moroni, Moutsamoudou, Fomboni"},{"name":"Africa/Nairobi","alternativeName":"East Africa Time","group":["Africa/Nairobi","Africa/Addis_Ababa","Africa/Asmara","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte","Africa/Asmera"],"continentCode":"AF","continentName":"Africa","countryName":"Kenya","countryCode":"KE","mainCities":["Nairobi","Kakamega","Mombasa","Nakuru"],"rawOffsetInMinutes":180,"abbreviation":"EAT","rawFormat":"+03:00 East Africa Time - Nairobi, Kakamega, Mombasa, Nakuru"},{"name":"Europe/Minsk","alternativeName":"Moscow Time","group":["Europe/Minsk"],"continentCode":"EU","continentName":"Europe","countryName":"Belarus","countryCode":"BY","mainCities":["Minsk","Homyel\'","Hrodna","Mahilyow"],"rawOffsetInMinutes":180,"abbreviation":"MSK","rawFormat":"+03:00 Moscow Time - Minsk, Homyel\', Hrodna, Mahilyow"},{"name":"Europe/Moscow","alternativeName":"Moscow Time","group":["Europe/Kirov","Europe/Moscow","Europe/Volgograd","W-SU"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Moscow","Saint Petersburg","Nizhniy Novgorod","Kazan"],"rawOffsetInMinutes":180,"abbreviation":"MSK","rawFormat":"+03:00 Moscow Time - Moscow, Saint Petersburg, Nizhniy Novgorod, Kazan"},{"name":"Europe/Simferopol","alternativeName":"Moscow Time","group":["Europe/Simferopol"],"continentCode":"EU","continentName":"Europe","countryName":"Ukraine","countryCode":"UA","mainCities":["Sevastopol","Simferopol","Kerch","Yevpatoriya"],"rawOffsetInMinutes":180,"abbreviation":"MSK","rawFormat":"+03:00 Moscow Time - Sevastopol, Simferopol, Kerch, Yevpatoriya"},{"name":"Antarctica/Syowa","alternativeName":"Syowa Time","group":["Antarctica/Syowa"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Syowa"],"rawOffsetInMinutes":180,"abbreviation":"SYOT","rawFormat":"+03:00 Syowa Time - Syowa"},{"name":"Europe/Istanbul","alternativeName":"Turkey Time","group":["Europe/Istanbul","Turkey","Asia/Istanbul"],"continentCode":"AS","continentName":"Asia","countryName":"Turkey","countryCode":"TR","mainCities":["Istanbul","Ankara","Bursa","İzmir"],"rawOffsetInMinutes":180,"abbreviation":"TRT","rawFormat":"+03:00 Turkey Time - Istanbul, Ankara, Bursa, İzmir"},{"name":"Asia/Tehran","alternativeName":"Iran Time","group":["Asia/Tehran","Iran"],"continentCode":"AS","continentName":"Asia","countryName":"Iran","countryCode":"IR","mainCities":["Tehran","Mashhad","Isfahan","Karaj"],"rawOffsetInMinutes":210,"abbreviation":"IRST","rawFormat":"+03:30 Iran Time - Tehran, Mashhad, Isfahan, Karaj"},{"name":"Asia/Yerevan","alternativeName":"Armenia Time","group":["Asia/Yerevan"],"continentCode":"AS","continentName":"Asia","countryName":"Armenia","countryCode":"AM","mainCities":["Yerevan","Gyumri","Vanadzor","Vagharshapat"],"rawOffsetInMinutes":240,"abbreviation":"AMT","rawFormat":"+04:00 Armenia Time - Yerevan, Gyumri, Vanadzor, Vagharshapat"},{"name":"Asia/Baku","alternativeName":"Azerbaijan Time","group":["Asia/Baku"],"continentCode":"AS","continentName":"Asia","countryName":"Azerbaijan","countryCode":"AZ","mainCities":["Baku","Sumqayıt","Ganja","Lankaran"],"rawOffsetInMinutes":240,"abbreviation":"AZT","rawFormat":"+04:00 Azerbaijan Time - Baku, Sumqayıt, Ganja, Lankaran"},{"name":"Asia/Tbilisi","alternativeName":"Georgia Time","group":["Asia/Tbilisi"],"continentCode":"AS","continentName":"Asia","countryName":"Georgia","countryCode":"GE","mainCities":["Tbilisi","Batumi","Kutaisi","Rustavi"],"rawOffsetInMinutes":240,"abbreviation":"GET","rawFormat":"+04:00 Georgia Time - Tbilisi, Batumi, Kutaisi, Rustavi"},{"name":"Asia/Dubai","alternativeName":"Gulf Time","group":["Asia/Dubai","Asia/Muscat","Indian/Mahe","Indian/Reunion"],"continentCode":"AS","continentName":"Asia","countryName":"United Arab Emirates","countryCode":"AE","mainCities":["Dubai","Abu Dhabi","Sharjah","Al Ain City"],"rawOffsetInMinutes":240,"abbreviation":"GST","rawFormat":"+04:00 Gulf Time - Dubai, Abu Dhabi, Sharjah, Al Ain City"},{"name":"Asia/Muscat","alternativeName":"Gulf Time","group":["Asia/Muscat"],"continentCode":"AS","continentName":"Asia","countryName":"Oman","countryCode":"OM","mainCities":["Muscat","Seeb","Bawshar","‘Ibrī"],"rawOffsetInMinutes":240,"abbreviation":"GST","rawFormat":"+04:00 Gulf Time - Muscat, Seeb, Bawshar, ‘Ibrī"},{"name":"Indian/Mauritius","alternativeName":"Mauritius Time","group":["Indian/Mauritius"],"continentCode":"AF","continentName":"Africa","countryName":"Mauritius","countryCode":"MU","mainCities":["Port Louis","Vacoas","Beau Bassin-Rose Hill","Curepipe"],"rawOffsetInMinutes":240,"abbreviation":"MUT","rawFormat":"+04:00 Mauritius Time - Port Louis, Vacoas, Beau Bassin-Rose Hill, Curepipe"},{"name":"Indian/Reunion","alternativeName":"Réunion Time","group":["Indian/Reunion"],"continentCode":"AF","continentName":"Africa","countryName":"Reunion","countryCode":"RE","mainCities":["Saint-Denis","Saint-Paul","Saint-Pierre","Le Tampon"],"rawOffsetInMinutes":240,"abbreviation":"RET","rawFormat":"+04:00 Réunion Time - Saint-Denis, Saint-Paul, Saint-Pierre, Le Tampon"},{"name":"Europe/Samara","alternativeName":"Samara Time","group":["Europe/Astrakhan","Europe/Samara","Europe/Saratov","Europe/Ulyanovsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Samara","Saratov","Tolyatti","Izhevsk"],"rawOffsetInMinutes":240,"abbreviation":"SAMT","rawFormat":"+04:00 Samara Time - Samara, Saratov, Tolyatti, Izhevsk"},{"name":"Indian/Mahe","alternativeName":"Seychelles Time","group":["Indian/Mahe"],"continentCode":"AF","continentName":"Africa","countryName":"Seychelles","countryCode":"SC","mainCities":["Victoria"],"rawOffsetInMinutes":240,"abbreviation":"SCT","rawFormat":"+04:00 Seychelles Time - Victoria"},{"name":"Asia/Kabul","alternativeName":"Afghanistan Time","group":["Asia/Kabul"],"continentCode":"AS","continentName":"Asia","countryName":"Afghanistan","countryCode":"AF","mainCities":["Kabul","Herāt","Mazār-e Sharīf","Kandahār"],"rawOffsetInMinutes":270,"abbreviation":"AFT","rawFormat":"+04:30 Afghanistan Time - Kabul, Herāt, Mazār-e Sharīf, Kandahār"},{"name":"Asia/Almaty","alternativeName":"East Kazakhstan Time","group":["Asia/Almaty","Asia/Qostanay"],"continentCode":"AS","continentName":"Asia","countryName":"Kazakhstan","countryCode":"KZ","mainCities":["Almaty","Shymkent","Karagandy","Taraz"],"rawOffsetInMinutes":300,"abbreviation":"ALMT","rawFormat":"+05:00 East Kazakhstan Time - Almaty, Shymkent, Karagandy, Taraz"},{"name":"Indian/Kerguelen","alternativeName":"French Southern & Antarctic Time","group":["Indian/Kerguelen"],"continentCode":"AN","continentName":"Antarctica","countryName":"French Southern Territories","countryCode":"TF","mainCities":["Port-aux-Français"],"rawOffsetInMinutes":300,"abbreviation":"FSAT","rawFormat":"+05:00 French Southern & Antarctic Time - Port-aux-Français"},{"name":"Indian/Maldives","alternativeName":"Maldives Time","group":["Indian/Maldives","Indian/Kerguelen"],"continentCode":"AS","continentName":"Asia","countryName":"Maldives","countryCode":"MV","mainCities":["Male"],"rawOffsetInMinutes":300,"abbreviation":"MVT","rawFormat":"+05:00 Maldives Time - Male"},{"name":"Antarctica/Mawson","alternativeName":"Mawson Time","group":["Antarctica/Mawson","Antarctica/Vostok"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Mawson","Vostok"],"rawOffsetInMinutes":300,"abbreviation":"MAWT","rawFormat":"+05:00 Mawson Time - Mawson, Vostok"},{"name":"Asia/Karachi","alternativeName":"Pakistan Time","group":["Asia/Karachi"],"continentCode":"AS","continentName":"Asia","countryName":"Pakistan","countryCode":"PK","mainCities":["Karachi","Lahore","Faisalabad","Rawalpindi"],"rawOffsetInMinutes":300,"abbreviation":"PKT","rawFormat":"+05:00 Pakistan Time - Karachi, Lahore, Faisalabad, Rawalpindi"},{"name":"Asia/Dushanbe","alternativeName":"Tajikistan Time","group":["Asia/Dushanbe"],"continentCode":"AS","continentName":"Asia","countryName":"Tajikistan","countryCode":"TJ","mainCities":["Dushanbe","Isfara","Istaravshan","Kŭlob"],"rawOffsetInMinutes":300,"abbreviation":"TJT","rawFormat":"+05:00 Tajikistan Time - Dushanbe, Isfara, Istaravshan, Kŭlob"},{"name":"Asia/Ashgabat","alternativeName":"Turkmenistan Time","group":["Asia/Ashgabat","Asia/Ashkhabad"],"continentCode":"AS","continentName":"Asia","countryName":"Turkmenistan","countryCode":"TM","mainCities":["Ashgabat","Türkmenabat","Daşoguz","Mary"],"rawOffsetInMinutes":300,"abbreviation":"TMT","rawFormat":"+05:00 Turkmenistan Time - Ashgabat, Türkmenabat, Daşoguz, Mary"},{"name":"Asia/Tashkent","alternativeName":"Uzbekistan Time","group":["Asia/Samarkand","Asia/Tashkent"],"continentCode":"AS","continentName":"Asia","countryName":"Uzbekistan","countryCode":"UZ","mainCities":["Tashkent","Namangan","Samarkand","Andijon"],"rawOffsetInMinutes":300,"abbreviation":"UZT","rawFormat":"+05:00 Uzbekistan Time - Tashkent, Namangan, Samarkand, Andijon"},{"name":"Asia/Aqtobe","alternativeName":"West Kazakhstan Time","group":["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"],"continentCode":"AS","continentName":"Asia","countryName":"Kazakhstan","countryCode":"KZ","mainCities":["Aktobe","Kyzylorda","Oral","Atyrau"],"rawOffsetInMinutes":300,"abbreviation":"AQTT","rawFormat":"+05:00 West Kazakhstan Time - Aktobe, Kyzylorda, Oral, Atyrau"},{"name":"Asia/Yekaterinburg","alternativeName":"Yekaterinburg Time","group":["Asia/Yekaterinburg"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Yekaterinburg","Chelyabinsk","Ufa","Perm"],"rawOffsetInMinutes":300,"abbreviation":"YEKT","rawFormat":"+05:00 Yekaterinburg Time - Yekaterinburg, Chelyabinsk, Ufa, Perm"},{"name":"Asia/Colombo","alternativeName":"India Time","group":["Asia/Colombo"],"continentCode":"AS","continentName":"Asia","countryName":"Sri Lanka","countryCode":"LK","mainCities":["Colombo","Dehiwala-Mount Lavinia","Maharagama","Jaffna"],"rawOffsetInMinutes":330,"abbreviation":"IST","rawFormat":"+05:30 India Time - Colombo, Dehiwala-Mount Lavinia, Maharagama, Jaffna"},{"name":"Asia/Kolkata","alternativeName":"India Time","group":["Asia/Kolkata","Asia/Calcutta"],"continentCode":"AS","continentName":"Asia","countryName":"India","countryCode":"IN","mainCities":["Mumbai","Delhi","Bengaluru","Hyderābād"],"rawOffsetInMinutes":330,"abbreviation":"IST","rawFormat":"+05:30 India Time - Mumbai, Delhi, Bengaluru, Hyderābād"},{"name":"Asia/Kathmandu","alternativeName":"Nepal Time","group":["Asia/Kathmandu","Asia/Katmandu"],"continentCode":"AS","continentName":"Asia","countryName":"Nepal","countryCode":"NP","mainCities":["Kathmandu","Bharatpur","Pātan","Birgañj"],"rawOffsetInMinutes":345,"abbreviation":"NPT","rawFormat":"+05:45 Nepal Time - Kathmandu, Bharatpur, Pātan, Birgañj"},{"name":"Asia/Dhaka","alternativeName":"Bangladesh Time","group":["Asia/Dhaka","Asia/Dacca"],"continentCode":"AS","continentName":"Asia","countryName":"Bangladesh","countryCode":"BD","mainCities":["Dhaka","Chattogram","Khulna","Rangpur"],"rawOffsetInMinutes":360,"abbreviation":"BST","rawFormat":"+06:00 Bangladesh Time - Dhaka, Chattogram, Khulna, Rangpur"},{"name":"Asia/Thimphu","alternativeName":"Bhutan Time","group":["Asia/Thimphu","Asia/Thimbu"],"continentCode":"AS","continentName":"Asia","countryName":"Bhutan","countryCode":"BT","mainCities":["Thimphu","Phuntsholing","Tsirang","Punākha"],"rawOffsetInMinutes":360,"abbreviation":"BTT","rawFormat":"+06:00 Bhutan Time - Thimphu, Phuntsholing, Tsirang, Punākha"},{"name":"Asia/Urumqi","alternativeName":"China Time","group":["Asia/Urumqi","Asia/Kashgar"],"continentCode":"AS","continentName":"Asia","countryName":"China","countryCode":"CN","mainCities":["Ürümqi","Shihezi","Korla","Aksu"],"rawOffsetInMinutes":360,"abbreviation":"CST","rawFormat":"+06:00 China Time - Ürümqi, Shihezi, Korla, Aksu"},{"name":"Indian/Chagos","alternativeName":"Indian Ocean Time","group":["Indian/Chagos"],"continentCode":"AS","continentName":"Asia","countryName":"British Indian Ocean Territory","countryCode":"IO","mainCities":["Chagos"],"rawOffsetInMinutes":360,"abbreviation":"IOT","rawFormat":"+06:00 Indian Ocean Time - Chagos"},{"name":"Asia/Bishkek","alternativeName":"Kyrgyzstan Time","group":["Asia/Bishkek"],"continentCode":"AS","continentName":"Asia","countryName":"Kyrgyzstan","countryCode":"KG","mainCities":["Bishkek","Osh","Jalal-Abad","Karakol"],"rawOffsetInMinutes":360,"abbreviation":"KGT","rawFormat":"+06:00 Kyrgyzstan Time - Bishkek, Osh, Jalal-Abad, Karakol"},{"name":"Asia/Omsk","alternativeName":"Omsk Time","group":["Asia/Omsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Omsk","Tara","Kalachinsk","Isil’kul’"],"rawOffsetInMinutes":360,"abbreviation":"OMST","rawFormat":"+06:00 Omsk Time - Omsk, Tara, Kalachinsk, Isil’kul’"},{"name":"Indian/Cocos","alternativeName":"Cocos Islands Time","group":["Indian/Cocos"],"continentCode":"AS","continentName":"Asia","countryName":"Cocos Islands","countryCode":"CC","mainCities":["West Island"],"rawOffsetInMinutes":390,"abbreviation":"CCT","rawFormat":"+06:30 Cocos Islands Time - West Island"},{"name":"Asia/Yangon","alternativeName":"Myanmar Time","group":["Asia/Yangon","Indian/Cocos","Asia/Rangoon"],"continentCode":"AS","continentName":"Asia","countryName":"Myanmar","countryCode":"MM","mainCities":["Yangon","Mandalay","Nay Pyi Taw","Mawlamyine"],"rawOffsetInMinutes":390,"abbreviation":"MMT","rawFormat":"+06:30 Myanmar Time - Yangon, Mandalay, Nay Pyi Taw, Mawlamyine"},{"name":"Indian/Christmas","alternativeName":"Christmas Island Time","group":["Indian/Christmas"],"continentCode":"OC","continentName":"Oceania","countryName":"Christmas Island","countryCode":"CX","mainCities":["Flying Fish Cove"],"rawOffsetInMinutes":420,"abbreviation":"CXT","rawFormat":"+07:00 Christmas Island Time - Flying Fish Cove"},{"name":"Antarctica/Davis","alternativeName":"Davis Time","group":["Antarctica/Davis"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Davis"],"rawOffsetInMinutes":420,"abbreviation":"DAVT","rawFormat":"+07:00 Davis Time - Davis"},{"name":"Asia/Hovd","alternativeName":"Hovd Time","group":["Asia/Hovd"],"continentCode":"AS","continentName":"Asia","countryName":"Mongolia","countryCode":"MN","mainCities":["Ulaangom","Khovd","Ölgii","Altai"],"rawOffsetInMinutes":420,"abbreviation":"HOVT","rawFormat":"+07:00 Hovd Time - Ulaangom, Khovd, Ölgii, Altai"},{"name":"Asia/Bangkok","alternativeName":"Indochina Time","group":["Asia/Bangkok","Asia/Phnom_Penh","Asia/Vientiane","Indian/Christmas"],"continentCode":"AS","continentName":"Asia","countryName":"Thailand","countryCode":"TH","mainCities":["Bangkok","Samut Prakan","Mueang Nonthaburi","Chon Buri"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Bangkok, Samut Prakan, Mueang Nonthaburi, Chon Buri"},{"name":"Asia/Ho_Chi_Minh","alternativeName":"Indochina Time","group":["Asia/Ho_Chi_Minh","Asia/Saigon"],"continentCode":"AS","continentName":"Asia","countryName":"Vietnam","countryCode":"VN","mainCities":["Ho Chi Minh City","Da Nang","Biên Hòa","Cần Thơ"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Ho Chi Minh City, Da Nang, Biên Hòa, Cần Thơ"},{"name":"Asia/Phnom_Penh","alternativeName":"Indochina Time","group":["Asia/Phnom_Penh"],"continentCode":"AS","continentName":"Asia","countryName":"Cambodia","countryCode":"KH","mainCities":["Phnom Penh","Takeo","Siem Reap","Battambang"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Phnom Penh, Takeo, Siem Reap, Battambang"},{"name":"Asia/Vientiane","alternativeName":"Indochina Time","group":["Asia/Vientiane"],"continentCode":"AS","continentName":"Asia","countryName":"Laos","countryCode":"LA","mainCities":["Vientiane","Savannakhet","Pakse","Thakhèk"],"rawOffsetInMinutes":420,"abbreviation":"ICT","rawFormat":"+07:00 Indochina Time - Vientiane, Savannakhet, Pakse, Thakhèk"},{"name":"Asia/Novosibirsk","alternativeName":"Novosibirsk Time","group":["Asia/Barnaul","Asia/Krasnoyarsk","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Tomsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Novosibirsk","Krasnoyarsk","Barnaul","Tomsk"],"rawOffsetInMinutes":420,"abbreviation":"NOVT","rawFormat":"+07:00 Novosibirsk Time - Novosibirsk, Krasnoyarsk, Barnaul, Tomsk"},{"name":"Asia/Jakarta","alternativeName":"Western Indonesia Time","group":["Asia/Jakarta","Asia/Pontianak"],"continentCode":"AS","continentName":"Asia","countryName":"Indonesia","countryCode":"ID","mainCities":["Jakarta","Surabaya","Bekasi","Bandung"],"rawOffsetInMinutes":420,"abbreviation":"WIB","rawFormat":"+07:00 Western Indonesia Time - Jakarta, Surabaya, Bekasi, Bandung"},{"name":"Antarctica/Casey","alternativeName":"Australian Western Time","group":["Antarctica/Casey"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["Casey"],"rawOffsetInMinutes":480,"abbreviation":"AWST","rawFormat":"+08:00 Australian Western Time - Casey"},{"name":"Australia/Perth","alternativeName":"Australian Western Time","group":["Australia/Perth","Australia/West"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Perth","Mandurah","Bunbury","Baldivis"],"rawOffsetInMinutes":480,"abbreviation":"AWST","rawFormat":"+08:00 Australian Western Time - Perth, Mandurah, Bunbury, Baldivis"},{"name":"Asia/Brunei","alternativeName":"Brunei Darussalam Time","group":["Asia/Brunei"],"continentCode":"AS","continentName":"Asia","countryName":"Brunei","countryCode":"BN","mainCities":["Bandar Seri Begawan","Sengkurong","Mentiri","Kuala Belait"],"rawOffsetInMinutes":480,"abbreviation":"BNT","rawFormat":"+08:00 Brunei Darussalam Time - Bandar Seri Begawan, Sengkurong, Mentiri, Kuala Belait"},{"name":"Asia/Makassar","alternativeName":"Central Indonesia Time","group":["Asia/Makassar","Asia/Ujung_Pandang"],"continentCode":"AS","continentName":"Asia","countryName":"Indonesia","countryCode":"ID","mainCities":["Makassar","Samarinda","Denpasar","Balikpapan"],"rawOffsetInMinutes":480,"abbreviation":"WITA","rawFormat":"+08:00 Central Indonesia Time - Makassar, Samarinda, Denpasar, Balikpapan"},{"name":"Asia/Macau","alternativeName":"China Time","group":["Asia/Macau","Asia/Macao"],"continentCode":"AS","continentName":"Asia","countryName":"Macao","countryCode":"MO","mainCities":["Macau","Taipa","Luhuan","Lai Chi Van"],"rawOffsetInMinutes":480,"abbreviation":"CST","rawFormat":"+08:00 China Time - Macau, Taipa, Luhuan, Lai Chi Van"},{"name":"Asia/Shanghai","alternativeName":"China Time","group":["Asia/Shanghai","PRC","Asia/Chongqing","Asia/Harbin","Asia/Chungking"],"continentCode":"AS","continentName":"Asia","countryName":"China","countryCode":"CN","mainCities":["Shanghai","Beijing","Shenzhen","Guangzhou"],"rawOffsetInMinutes":480,"abbreviation":"CST","rawFormat":"+08:00 China Time - Shanghai, Beijing, Shenzhen, Guangzhou"},{"name":"Asia/Hong_Kong","alternativeName":"Hong Kong Time","group":["Asia/Hong_Kong","Hongkong"],"continentCode":"AS","continentName":"Asia","countryName":"Hong Kong","countryCode":"HK","mainCities":["Hong Kong","New Territories","Kowloon","Hong Kong Island"],"rawOffsetInMinutes":480,"abbreviation":"HKT","rawFormat":"+08:00 Hong Kong Time - Hong Kong, New Territories, Kowloon, Hong Kong Island"},{"name":"Asia/Irkutsk","alternativeName":"Irkutsk Time","group":["Asia/Irkutsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Irkutsk","Ulan-Ude","Bratsk","Angarsk"],"rawOffsetInMinutes":480,"abbreviation":"IRKT","rawFormat":"+08:00 Irkutsk Time - Irkutsk, Ulan-Ude, Bratsk, Angarsk"},{"name":"Asia/Kuala_Lumpur","alternativeName":"Malaysia Time","group":["Asia/Kuala_Lumpur","Asia/Kuching","Asia/Brunei"],"continentCode":"AS","continentName":"Asia","countryName":"Malaysia","countryCode":"MY","mainCities":["Kuala Lumpur","Petaling Jaya","Klang","Johor Bahru"],"rawOffsetInMinutes":480,"abbreviation":"MYT","rawFormat":"+08:00 Malaysia Time - Kuala Lumpur, Petaling Jaya, Klang, Johor Bahru"},{"name":"Asia/Manila","alternativeName":"Philippine Time","group":["Asia/Manila"],"continentCode":"AS","continentName":"Asia","countryName":"Philippines","countryCode":"PH","mainCities":["Quezon City","Davao","Manila","Caloocan City"],"rawOffsetInMinutes":480,"abbreviation":"PHT","rawFormat":"+08:00 Philippine Time - Quezon City, Davao, Manila, Caloocan City"},{"name":"Asia/Singapore","alternativeName":"Singapore Time","group":["Asia/Singapore","Singapore","Asia/Kuala_Lumpur"],"continentCode":"AS","continentName":"Asia","countryName":"Singapore","countryCode":"SG","mainCities":["Singapore","Ulu Bedok","Bedok New Town","Tampines Estate"],"rawOffsetInMinutes":480,"abbreviation":"SGT","rawFormat":"+08:00 Singapore Time - Singapore, Ulu Bedok, Bedok New Town, Tampines Estate"},{"name":"Asia/Taipei","alternativeName":"Taipei Time","group":["Asia/Taipei","ROC"],"continentCode":"AS","continentName":"Asia","countryName":"Taiwan","countryCode":"TW","mainCities":["Taipei","Kaohsiung","Taichung","Tainan"],"rawOffsetInMinutes":480,"abbreviation":"TWT","rawFormat":"+08:00 Taipei Time - Taipei, Kaohsiung, Taichung, Tainan"},{"name":"Asia/Ulaanbaatar","alternativeName":"Ulaanbaatar Time","group":["Asia/Choibalsan","Asia/Ulaanbaatar","Asia/Ulan_Bator"],"continentCode":"AS","continentName":"Asia","countryName":"Mongolia","countryCode":"MN","mainCities":["Ulan Bator","Erdenet","Darhan","Mörön"],"rawOffsetInMinutes":480,"abbreviation":"ULAT","rawFormat":"+08:00 Ulaanbaatar Time - Ulan Bator, Erdenet, Darhan, Mörön"},{"name":"Australia/Eucla","alternativeName":"Australian Central Western Time","group":["Australia/Eucla"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Eucla"],"rawOffsetInMinutes":525,"abbreviation":"ACWST","rawFormat":"+08:45 Australian Central Western Time - Eucla"},{"name":"Asia/Dili","alternativeName":"East Timor Time","group":["Asia/Dili"],"continentCode":"OC","continentName":"Oceania","countryName":"Timor Leste","countryCode":"TL","mainCities":["Dili","Maliana","Suai","Likisá"],"rawOffsetInMinutes":540,"abbreviation":"TLT","rawFormat":"+09:00 East Timor Time - Dili, Maliana, Suai, Likisá"},{"name":"Asia/Jayapura","alternativeName":"Eastern Indonesia Time","group":["Asia/Jayapura"],"continentCode":"AS","continentName":"Asia","countryName":"Indonesia","countryCode":"ID","mainCities":["Jayapura","Ambon","Sorong","Ternate"],"rawOffsetInMinutes":540,"abbreviation":"WIT","rawFormat":"+09:00 Eastern Indonesia Time - Jayapura, Ambon, Sorong, Ternate"},{"name":"Asia/Tokyo","alternativeName":"Japan Time","group":["Asia/Tokyo","Japan"],"continentCode":"AS","continentName":"Asia","countryName":"Japan","countryCode":"JP","mainCities":["Tokyo","Yokohama","Osaka","Nagoya"],"rawOffsetInMinutes":540,"abbreviation":"JST","rawFormat":"+09:00 Japan Time - Tokyo, Yokohama, Osaka, Nagoya"},{"name":"Asia/Pyongyang","alternativeName":"Korean Time","group":["Asia/Pyongyang"],"continentCode":"AS","continentName":"Asia","countryName":"North Korea","countryCode":"KP","mainCities":["Pyongyang","Hamhŭng","Namp’o","Sunch’ŏn"],"rawOffsetInMinutes":540,"abbreviation":"KST","rawFormat":"+09:00 Korean Time - Pyongyang, Hamhŭng, Namp’o, Sunch’ŏn"},{"name":"Asia/Seoul","alternativeName":"Korean Time","group":["Asia/Seoul","ROK"],"continentCode":"AS","continentName":"Asia","countryName":"South Korea","countryCode":"KR","mainCities":["Seoul","Busan","Incheon","Daegu"],"rawOffsetInMinutes":540,"abbreviation":"KST","rawFormat":"+09:00 Korean Time - Seoul, Busan, Incheon, Daegu"},{"name":"Pacific/Palau","alternativeName":"Palau Time","group":["Pacific/Palau"],"continentCode":"OC","continentName":"Oceania","countryName":"Palau","countryCode":"PW","mainCities":["Ngerulmud"],"rawOffsetInMinutes":540,"abbreviation":"PWT","rawFormat":"+09:00 Palau Time - Ngerulmud"},{"name":"Asia/Chita","alternativeName":"Yakutsk Time","group":["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Chita","Yakutsk","Blagoveshchensk","Belogorsk"],"rawOffsetInMinutes":540,"abbreviation":"YAKT","rawFormat":"+09:00 Yakutsk Time - Chita, Yakutsk, Blagoveshchensk, Belogorsk"},{"name":"Australia/Adelaide","alternativeName":"Australian Central Time","group":["Australia/Adelaide","Australia/Broken_Hill","Australia/South","Australia/Yancowinna"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Adelaide","Adelaide Hills","Mount Gambier","Morphett Vale"],"rawOffsetInMinutes":570,"abbreviation":"ACST","rawFormat":"+09:30 Australian Central Time - Adelaide, Adelaide Hills, Mount Gambier, Morphett Vale"},{"name":"Australia/Darwin","alternativeName":"Australian Central Time","group":["Australia/Darwin","Australia/North"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Darwin","Alice Springs","Palmerston"],"rawOffsetInMinutes":570,"abbreviation":"ACST","rawFormat":"+09:30 Australian Central Time - Darwin, Alice Springs, Palmerston"},{"name":"Australia/Brisbane","alternativeName":"Australian Eastern Time","group":["Australia/Brisbane","Australia/Lindeman","Australia/Queensland"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Brisbane","Gold Coast","Logan City","Townsville"],"rawOffsetInMinutes":600,"abbreviation":"AEST","rawFormat":"+10:00 Australian Eastern Time - Brisbane, Gold Coast, Logan City, Townsville"},{"name":"Australia/Sydney","alternativeName":"Australian Eastern Time","group":["Antarctica/Macquarie","Australia/Hobart","Australia/Melbourne","Australia/Sydney","Australia/Tasmania","Australia/Currie","Australia/Victoria","Australia/ACT","Australia/NSW","Australia/Canberra"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Sydney","Melbourne","Canberra","Newcastle"],"rawOffsetInMinutes":600,"abbreviation":"AEST","rawFormat":"+10:00 Australian Eastern Time - Sydney, Melbourne, Canberra, Newcastle"},{"name":"Pacific/Guam","alternativeName":"Chamorro Time","group":["Pacific/Guam","Pacific/Saipan"],"continentCode":"OC","continentName":"Oceania","countryName":"Guam","countryCode":"GU","mainCities":["Dededo Village","Yigo Village","Tamuning-Tumon-Harmon Village","Tamuning"],"rawOffsetInMinutes":600,"abbreviation":"ChST","rawFormat":"+10:00 Chamorro Time - Dededo Village, Yigo Village, Tamuning-Tumon-Harmon Village, Tamuning"},{"name":"Pacific/Saipan","alternativeName":"Chamorro Time","group":["Pacific/Saipan"],"continentCode":"OC","continentName":"Oceania","countryName":"Northern Mariana Islands","countryCode":"MP","mainCities":["Saipan"],"rawOffsetInMinutes":600,"abbreviation":"ChST","rawFormat":"+10:00 Chamorro Time - Saipan"},{"name":"Pacific/Chuuk","alternativeName":"Chuuk Time","group":["Pacific/Chuuk","Pacific/Truk","Pacific/Yap"],"continentCode":"OC","continentName":"Oceania","countryName":"Micronesia","countryCode":"FM","mainCities":["Chuuk"],"rawOffsetInMinutes":600,"abbreviation":"CHUT","rawFormat":"+10:00 Chuuk Time - Chuuk"},{"name":"Antarctica/DumontDUrville","alternativeName":"Dumont-d’Urville Time","group":["Antarctica/DumontDUrville"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["DumontDUrville"],"rawOffsetInMinutes":600,"abbreviation":"DDUT","rawFormat":"+10:00 Dumont-d’Urville Time - DumontDUrville"},{"name":"Pacific/Port_Moresby","alternativeName":"Papua New Guinea Time","group":["Pacific/Port_Moresby","Antarctica/DumontDUrville","Pacific/Chuuk","Pacific/Yap","Pacific/Truk"],"continentCode":"OC","continentName":"Oceania","countryName":"Papua New Guinea","countryCode":"PG","mainCities":["Port Moresby","Lae","Mount Hagen","Popondetta"],"rawOffsetInMinutes":600,"abbreviation":"PGT","rawFormat":"+10:00 Papua New Guinea Time - Port Moresby, Lae, Mount Hagen, Popondetta"},{"name":"Asia/Vladivostok","alternativeName":"Vladivostok Time","group":["Asia/Ust-Nera","Asia/Vladivostok"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Khabarovsk","Vladivostok","Khabarovsk Vtoroy","Komsomolsk-on-Amur"],"rawOffsetInMinutes":600,"abbreviation":"VLAT","rawFormat":"+10:00 Vladivostok Time - Khabarovsk, Vladivostok, Khabarovsk Vtoroy, Komsomolsk-on-Amur"},{"name":"Australia/Lord_Howe","alternativeName":"Lord Howe Time","group":["Australia/Lord_Howe","Australia/LHI"],"continentCode":"OC","continentName":"Oceania","countryName":"Australia","countryCode":"AU","mainCities":["Lord Howe"],"rawOffsetInMinutes":630,"abbreviation":"LHST","rawFormat":"+10:30 Lord Howe Time - Lord Howe"},{"name":"Pacific/Bougainville","alternativeName":"Bougainville Time","group":["Pacific/Bougainville"],"continentCode":"OC","continentName":"Oceania","countryName":"Papua New Guinea","countryCode":"PG","mainCities":["Arawa"],"rawOffsetInMinutes":660,"abbreviation":"BST","rawFormat":"+11:00 Bougainville Time - Arawa"},{"name":"Pacific/Kosrae","alternativeName":"Kosrae Time","group":["Pacific/Kosrae","Pacific/Pohnpei"],"continentCode":"OC","continentName":"Oceania","countryName":"Micronesia","countryCode":"FM","mainCities":["Kosrae","Palikir - National Government Center"],"rawOffsetInMinutes":660,"abbreviation":"KOST","rawFormat":"+11:00 Kosrae Time - Kosrae, Palikir - National Government Center"},{"name":"Pacific/Noumea","alternativeName":"New Caledonia Time","group":["Pacific/Noumea"],"continentCode":"OC","continentName":"Oceania","countryName":"New Caledonia","countryCode":"NC","mainCities":["Nouméa","Mont-Dore","Dumbéa"],"rawOffsetInMinutes":660,"abbreviation":"NCT","rawFormat":"+11:00 New Caledonia Time - Nouméa, Mont-Dore, Dumbéa"},{"name":"Pacific/Norfolk","alternativeName":"Norfolk Island Time","group":["Pacific/Norfolk"],"continentCode":"OC","continentName":"Oceania","countryName":"Norfolk Island","countryCode":"NF","mainCities":["Kingston"],"rawOffsetInMinutes":660,"abbreviation":"NFT","rawFormat":"+11:00 Norfolk Island Time - Kingston"},{"name":"Asia/Sakhalin","alternativeName":"Sakhalin Time","group":["Asia/Magadan","Asia/Sakhalin","Asia/Srednekolymsk"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Yuzhno-Sakhalinsk","Magadan","Korsakov","Kholmsk"],"rawOffsetInMinutes":660,"abbreviation":"SAKT","rawFormat":"+11:00 Sakhalin Time - Yuzhno-Sakhalinsk, Magadan, Korsakov, Kholmsk"},{"name":"Pacific/Guadalcanal","alternativeName":"Solomon Islands Time","group":["Pacific/Guadalcanal","Pacific/Pohnpei","Pacific/Ponape"],"continentCode":"OC","continentName":"Oceania","countryName":"Solomon Islands","countryCode":"SB","mainCities":["Honiara"],"rawOffsetInMinutes":660,"abbreviation":"SBT","rawFormat":"+11:00 Solomon Islands Time - Honiara"},{"name":"Pacific/Efate","alternativeName":"Vanuatu Time","group":["Pacific/Efate"],"continentCode":"OC","continentName":"Oceania","countryName":"Vanuatu","countryCode":"VU","mainCities":["Port-Vila"],"rawOffsetInMinutes":660,"abbreviation":"VUT","rawFormat":"+11:00 Vanuatu Time - Port-Vila"},{"name":"Pacific/Fiji","alternativeName":"Fiji Time","group":["Pacific/Fiji"],"continentCode":"OC","continentName":"Oceania","countryName":"Fiji","countryCode":"FJ","mainCities":["Nasinu","Suva","Lautoka","Nadi"],"rawOffsetInMinutes":720,"abbreviation":"FJT","rawFormat":"+12:00 Fiji Time - Nasinu, Suva, Lautoka, Nadi"},{"name":"Pacific/Tarawa","alternativeName":"Gilbert Islands Time","group":["Pacific/Tarawa","Pacific/Funafuti","Pacific/Majuro","Pacific/Wake","Pacific/Wallis"],"continentCode":"OC","continentName":"Oceania","countryName":"Kiribati","countryCode":"KI","mainCities":["Tarawa"],"rawOffsetInMinutes":720,"abbreviation":"GILT","rawFormat":"+12:00 Gilbert Islands Time - Tarawa"},{"name":"Pacific/Majuro","alternativeName":"Marshall Islands Time","group":["Pacific/Kwajalein","Pacific/Majuro","Kwajalein"],"continentCode":"OC","continentName":"Oceania","countryName":"Marshall Islands","countryCode":"MH","mainCities":["Majuro","Kwajalein","RMI Capitol"],"rawOffsetInMinutes":720,"abbreviation":"MHT","rawFormat":"+12:00 Marshall Islands Time - Majuro, Kwajalein, RMI Capitol"},{"name":"Pacific/Nauru","alternativeName":"Nauru Time","group":["Pacific/Nauru"],"continentCode":"OC","continentName":"Oceania","countryName":"Nauru","countryCode":"NR","mainCities":["Yaren"],"rawOffsetInMinutes":720,"abbreviation":"NRT","rawFormat":"+12:00 Nauru Time - Yaren"},{"name":"Pacific/Auckland","alternativeName":"New Zealand Time","group":["Pacific/Auckland","NZ","Antarctica/McMurdo","Antarctica/South_Pole"],"continentCode":"OC","continentName":"Oceania","countryName":"New Zealand","countryCode":"NZ","mainCities":["Auckland","Wellington","Christchurch","Manukau City"],"rawOffsetInMinutes":720,"abbreviation":"NZST","rawFormat":"+12:00 New Zealand Time - Auckland, Wellington, Christchurch, Manukau City"},{"name":"Antarctica/McMurdo","alternativeName":"New Zealand Time","group":["Antarctica/McMurdo"],"continentCode":"AN","continentName":"Antarctica","countryName":"Antarctica","countryCode":"AQ","mainCities":["McMurdo"],"rawOffsetInMinutes":720,"abbreviation":"NZST","rawFormat":"+12:00 New Zealand Time - McMurdo"},{"name":"Asia/Kamchatka","alternativeName":"Petropavlovsk-Kamchatski Time","group":["Asia/Anadyr","Asia/Kamchatka"],"continentCode":"EU","continentName":"Europe","countryName":"Russia","countryCode":"RU","mainCities":["Petropavlovsk-Kamchatsky","Yelizovo","Vilyuchinsk","Anadyr"],"rawOffsetInMinutes":720,"abbreviation":"PETT","rawFormat":"+12:00 Petropavlovsk-Kamchatski Time - Petropavlovsk-Kamchatsky, Yelizovo, Vilyuchinsk, Anadyr"},{"name":"Pacific/Funafuti","alternativeName":"Tuvalu Time","group":["Pacific/Funafuti"],"continentCode":"OC","continentName":"Oceania","countryName":"Tuvalu","countryCode":"TV","mainCities":["Funafuti"],"rawOffsetInMinutes":720,"abbreviation":"TVT","rawFormat":"+12:00 Tuvalu Time - Funafuti"},{"name":"Pacific/Wake","alternativeName":"Wake Island Time","group":["Pacific/Wake"],"continentCode":"OC","continentName":"Oceania","countryName":"United States Minor Outlying Islands","countryCode":"UM","mainCities":["Wake"],"rawOffsetInMinutes":720,"abbreviation":"WAKT","rawFormat":"+12:00 Wake Island Time - Wake"},{"name":"Pacific/Wallis","alternativeName":"Wallis & Futuna Time","group":["Pacific/Wallis"],"continentCode":"OC","continentName":"Oceania","countryName":"Wallis and Futuna","countryCode":"WF","mainCities":["Mata-Utu"],"rawOffsetInMinutes":720,"abbreviation":"WFT","rawFormat":"+12:00 Wallis & Futuna Time - Mata-Utu"},{"name":"Pacific/Chatham","alternativeName":"Chatham Time","group":["Pacific/Chatham","NZ-CHAT"],"continentCode":"OC","continentName":"Oceania","countryName":"New Zealand","countryCode":"NZ","mainCities":["Chatham"],"rawOffsetInMinutes":765,"abbreviation":"CHAST","rawFormat":"+12:45 Chatham Time - Chatham"},{"name":"Pacific/Apia","alternativeName":"Apia Time","group":["Pacific/Apia"],"continentCode":"OC","continentName":"Oceania","countryName":"Samoa","countryCode":"WS","mainCities":["Apia"],"rawOffsetInMinutes":780,"abbreviation":"WST","rawFormat":"+13:00 Apia Time - Apia"},{"name":"Pacific/Kanton","alternativeName":"Phoenix Islands Time","group":["Pacific/Kanton","Pacific/Enderbury"],"continentCode":"OC","continentName":"Oceania","countryName":"Kiribati","countryCode":"KI","mainCities":["Kanton"],"rawOffsetInMinutes":780,"abbreviation":"PHOT","rawFormat":"+13:00 Phoenix Islands Time - Kanton"},{"name":"Pacific/Fakaofo","alternativeName":"Tokelau Time","group":["Pacific/Fakaofo"],"continentCode":"OC","continentName":"Oceania","countryName":"Tokelau","countryCode":"TK","mainCities":["Fakaofo"],"rawOffsetInMinutes":780,"abbreviation":"TKT","rawFormat":"+13:00 Tokelau Time - Fakaofo"},{"name":"Pacific/Tongatapu","alternativeName":"Tonga Time","group":["Pacific/Tongatapu"],"continentCode":"OC","continentName":"Oceania","countryName":"Tonga","countryCode":"TO","mainCities":["Nuku‘alofa"],"rawOffsetInMinutes":780,"abbreviation":"TOT","rawFormat":"+13:00 Tonga Time - Nuku‘alofa"},{"name":"Pacific/Kiritimati","alternativeName":"Line Islands Time","group":["Pacific/Kiritimati"],"continentCode":"OC","continentName":"Oceania","countryName":"Kiribati","countryCode":"KI","mainCities":["Kiritimati"],"rawOffsetInMinutes":840,"abbreviation":"LINT","rawFormat":"+14:00 Line Islands Time - Kiritimati"}]')},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function l(e,source,t){return e.concat(source).map((function(element){return c(element,t)}))}function h(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return Object.propertyIsEnumerable.call(e,symbol)})):[]}(e))}function d(object,e){try{return e in object}catch(e){return!1}}function f(e,source,t){var n={};return t.isMergeableObject(e)&&h(e).forEach((function(r){n[r]=c(e[r],t)})),h(source).forEach((function(r){(function(e,t){return d(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(d(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=c(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||l,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):f(e,source,t):c(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return m(e,n,t)}),{})};var v=m;e.exports=v},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(1437),n(4)),c=n(30),l=n(13);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}t.a=Object(l.a)(c.a).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom},this.themeClasses)}},methods:{genWrapper:function(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(o.i)(this.height)}},[this.$createElement("table",this.$slots.default)])}},render:function(e){return e("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})},,,function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(102),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=c&&c.exports===o?r.a.Buffer:void 0,h=l?l.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=h?h(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(605)(e))},function(e,t,n){"use strict";var r=n(1473),o=n(1492),c=n(608);e.exports={formats:c,parse:o,stringify:r}},function(e){e.exports=JSON.parse('{"name":"en","options":{"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"shortMonths":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"days":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"shortDays":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"toolbar":{"exportToSVG":"Download SVG","exportToPNG":"Download PNG","exportToCSV":"Download CSV","menu":"Menu","selection":"Selection","selectionZoom":"Selection Zoom","zoomIn":"Zoom In","zoomOut":"Zoom Out","pan":"Panning","reset":"Reset Zoom"}}}')},function(e){e.exports=JSON.parse('{"name":"fr","options":{"months":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"shortMonths":["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],"days":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"shortDays":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"toolbar":{"exportToSVG":"Télécharger au format SVG","exportToPNG":"Télécharger au format PNG","exportToCSV":"Télécharger au format CSV","menu":"Menu","selection":"Sélection","selectionZoom":"Sélection et zoom","zoomIn":"Zoomer","zoomOut":"Dézoomer","pan":"Navigation","reset":"Réinitialiser le zoom"}}}')},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,E,P,M,x,k,I,R,j,D,N,L,B,U,F,z,$,H;(0,y.default)(2,arguments);var G=String(t),V=(0,w.getDefaultOptions)(),W=null!==(r=null!==(E=null==n?void 0:n.locale)&&void 0!==E?E:V.locale)&&void 0!==r?r:S.default,K=(0,v.default)(null!==(P=null!==(M=null!==(x=null!==(k=null==n?void 0:n.firstWeekContainsDate)&&void 0!==k?k:null==n||null===(I=n.locale)||void 0===I||null===(R=I.options)||void 0===R?void 0:R.firstWeekContainsDate)&&void 0!==x?x:V.firstWeekContainsDate)&&void 0!==M?M:null===(j=V.locale)||void 0===j||null===(D=j.options)||void 0===D?void 0:D.firstWeekContainsDate)&&void 0!==P?P:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=(0,v.default)(null!==(N=null!==(L=null!==(B=null!==(U=null==n?void 0:n.weekStartsOn)&&void 0!==U?U:null==n||null===(F=n.locale)||void 0===F||null===(z=F.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==B?B:V.weekStartsOn)&&void 0!==L?L:null===($=V.locale)||void 0===$||null===(H=$.options)||void 0===H?void 0:H.weekStartsOn)&&void 0!==N?N:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!W.localize)throw new RangeError("locale must contain localize property");if(!W.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,l.default)(e);if(!(0,o.default)(X))throw new RangeError("Invalid time value");var J=(0,f.default)(X),Z=(0,c.default)(X,J),Q={firstWeekContainsDate:K,weekStartsOn:Y,locale:W,_originalDate:X};return G.match(C).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,d.default[t])(e,W.formatLong):e})).join("").match(_).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(input){var e=input.match(O);if(!e)return input;return e[1].replace(A,"'")}(r);var c=h.default[o];if(c)return null!=n&&n.useAdditionalWeekYearTokens||!(0,m.isProtectedWeekYearToken)(r)||(0,m.throwProtectedError)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,m.isProtectedDayOfYearToken)(r)||(0,m.throwProtectedError)(r,t,String(e)),c(Z,r,W.localize,Q);if(o.match(T))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")};var o=r(n(1505)),c=r(n(1507)),l=r(n(215)),h=r(n(1509)),d=r(n(1516)),f=r(n(524)),m=n(1517),v=r(n(272)),y=r(n(145)),w=n(492),S=r(n(1518)),_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O=/^'([^]*?)'?$/,A=/''/g,T=/[a-zA-Z]/;e.exports=t.default},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(60),n(1529),n(138)),c=n(13);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var h=Object(c.a)(o.a);t.a=h.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:function(e){return!isNaN(parseFloat(e))}},rows:{type:[Number,String],default:5,validator:function(e){return!isNaN(parseInt(e,10))}}},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle},o.a.options.computed.classes.call(this))},noResizeHandle:function(){return this.noResize||this.autoGrow}},watch:{autoGrow:function(e){var t=this;this.$nextTick((function(){var n;e?t.calculateInputHeight():null===(n=t.$refs.input)||void 0===n||n.style.removeProperty("height")}))},lazyValue:function(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight:function(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted:function(){var e=this;setTimeout((function(){e.autoGrow&&e.calculateInputHeight()}),0)},methods:{calculateInputHeight:function(){var input=this.$refs.input;if(input){input.style.height="0";var e=input.scrollHeight,t=parseInt(this.rows,10)*parseFloat(this.rowHeight);input.style.height=Math.max(t,e)+"px"}},genInput:function(){var input=o.a.options.methods.genInput.call(this);return input.tag="textarea",delete input.data.attrs.type,input.data.attrs.rows=this.rows,input},onInput:function(e){o.a.options.methods.onInput.call(this,e),this.autoGrow&&this.calculateInputHeight()},onKeyDown:function(e){this.isFocused&&13===e.keyCode&&e.stopPropagation(),this.$emit("keydown",e)}}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ye}));var r=n(1);function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function i(e){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?o(Object(s),!0).forEach((function(t){c(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(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 i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?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 i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var a,d,f=(a=function(e){!function(){var t={}.hasOwnProperty;function i(){for(var e=[],n=0;n<arguments.length;n++){var s=arguments[n];if(s){var r=typeof s;if("string"===r||"number"===r)e.push(s);else if(Array.isArray(s)){if(s.length){var o=i.apply(null,s);o&&e.push(o)}}else if("object"===r)if(s.toString===Object.prototype.toString)for(var a in s)t.call(s,a)&&s[a]&&e.push(a);else e.push(s.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):window.classNames=i}()},a(d={path:undefined,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&d.path)}},d.exports),d.exports),m=function(e){return function(t,i){if(!t)return e;var n;"string"==typeof t?n=t:i=t;var s=e;return n&&(s+="__"+n),s+(i?Object.keys(i).reduce((function(e,t){var n=i[t];return n&&(e+=" "+("boolean"==typeof n?s+"--"+t:s+"--"+t+"_"+n)),e}),""):"")}};function u(e,t,i){var n,s,r,o,a;function c(){var l=Date.now()-o;l<t&&l>=0?n=setTimeout(c,t-l):(n=null,i||(a=e.apply(r,s),r=s=null))}null==t&&(t=100);var l=function(){r=this,s=arguments,o=Date.now();var l=i&&!n;return n||(n=setTimeout(c,t)),l&&(a=e.apply(r,s),r=s=null),a};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(a=e.apply(r,s),r=s=null,clearTimeout(n),n=null)},l}u.debounce=u;var v=u,y=function(){return y=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},y.apply(this,arguments)};function p(e,t){var i,n;return e&&t?(i=""+e+t[0].toUpperCase()+t.slice(1),n=e+"-"+t):(i=e||t,n=e||t),{name:i,classname:n}}function g(e){return/^blob:/.test(e)}function w(e){return g(e)||function(e){return/^data:/.test(e)}(e)}function b(e){return!!(e&&e.constructor&&e.call&&e.apply)}function S(e){return void 0===e}function _(e){return"object"==typeof e&&null!==e}function C(e,t,i){var n={};return _(e)?(Object.keys(t).forEach((function(s){S(e[s])?n[s]=t[s]:_(t[s])?_(e[s])?n[s]=C(e[s],t[s],i[s]):n[s]=e[s]?t[s]:i[s]:!0===t[s]||!1===t[s]?n[s]=Boolean(e[s]):n[s]=e[s]})),n):e?t:i}function O(e){var t=Number(e);return Number.isNaN(t)?e:t}function A(e){return typeof("number"==e||function(e){return"object"==typeof e&&null!==e}(e)&&"[object Number]"==toString.call(e))&&!T(e)}function T(e){return e!=e}function E(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}var P=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.type="manipulateImage",this.move=e,this.scale=t},M=function(e,t){void 0===t&&(t={}),this.type="resize",this.directions=e,this.params=t},x=function(e){this.type="move",this.directions=e},k=function(){function e(e,t,i,n,s){this.type="drag",this.nativeEvent=e,this.position=i,this.previousPosition=n,this.element=t,this.anchor=s}return e.prototype.shift=function(){var e=this,t=e.element,i=e.anchor,n=e.position,s=t.getBoundingClientRect(),r=s.left,o=s.top;return{left:n.left-r-i.left,top:n.top-o-i.top}},e}();function I(e,t,i,n,s,r,o,a,c,l){"boolean"!=typeof o&&(c=a,a=o,o=!1);const h="function"==typeof i?i.options:i;let d;if(e&&e.render&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0,s&&(h.functional=!0)),n&&(h._scopeId=n),r?(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,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},h._ssrRegister=d):t&&(d=o?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(h.functional){const e=h.render;h.render=function(t,i){return d.call(i),e(t,i)}}else{const e=h.beforeCreate;h.beforeCreate=e?[].concat(e,d):[d]}return i}var R=I({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"draggable",class:e.classname,on:{touchstart:e.onTouchStart,mousedown:e.onMouseDown,mouseover:e.onMouseOver,mouseleave:e.onMouseLeave}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"DraggableElement",mixins:[{beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(e){e.cancelable&&!this.disabled&&1===e.touches.length&&(this.touches=l(e.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),e.touches.length&&this.initAnchor(this.touches.reduce((function(t,i){return{clientX:t.clientX+i.clientX/e.touches.length,clientY:t.clientY+i.clientY/e.touches.length}}),{clientX:0,clientY:0})),e.preventDefault&&e.preventDefault(),e.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(e){this.touches.length&&(this.processMove(e,e.touches),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},onMouseDown:function(e){if(!this.disabled&&0===e.button){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.draggable.getBoundingClientRect(),i=t.left,n=t.right,s=t.bottom,r=t.top;this.anchor={left:e.clientX-i,top:e.clientY-r,bottom:s-e.clientY,right:n-e.clientX}},processMove:function(e,t){var i=l(t);if(this.touches.length){if(1===this.touches.length&&1===i.length){var n=this.$refs.draggable;this.$emit("drag",new k(e,n,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}}}],props:{classname:{type:String}}},void 0,!1,void 0,!1,void 0,void 0,void 0),j=m("vue-handler-wrapper"),D=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.classes.root},[i("DraggableElement",{class:e.classes.draggable,on:{drag:function(t){return e.$emit("drag",t)},"drag-end":function(t){return e.$emit("drag-end")},leave:function(t){return e.$emit("leave")},enter:function(t){return e.$emit("enter")}}},[e._t("default")],2)],1)},staticRenderFns:[]},void 0,{name:"HandlerWrapper",components:{DraggableElement:R},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var e;if(this.horizontalPosition||this.verticalPosition){var t,i=p(this.horizontalPosition,this.verticalPosition);e=j((c(t={},i.classname,!0),c(t,"disabled",this.disabled),t))}else e=j({disabled:this.disabled});return{root:e,draggable:j("draggable")}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),N=m("vue-line-wrapper"),L=I({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("DraggableElement",{class:e.classname,on:{drag:function(t){return e.$emit("drag",t)},"drag-end":function(t){return e.$emit("drag-end")},leave:function(t){return e.$emit("leave")},enter:function(t){return e.$emit("enter")}}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"LineWrapper",components:{DraggableElement:R},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var e;return N((c(e={},this.position,!0),c(e,"disabled",this.disabled),e))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),B=["left","right","top","bottom"],U=["left","right"],F=["top","bottom"],z=["left","top"],$=["fill-area","fit-area","stencil","none"],H={left:0,top:0,width:0,height:0};function G(e,t,i){return!(i=i||["width","height","left","top"]).some((function(i){return e[i]!==t[i]}))}function V(e){return{left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height}}function W(e,t){return{left:e.left-t.left,top:e.top-t.top}}function K(e){return{left:e.left+e.width/2,top:e.top+e.height/2}}function Y(e,t){var i={left:0,top:0,right:0,bottom:0};return B.forEach((function(n){var s=t[n],r=V(e)[n];i[n]=void 0!==s&&void 0!==r?"left"===n||"top"===n?Math.max(0,s-r):Math.max(0,r-s):0})),i}function X(e,t){return{left:e.left-t.left,top:e.top-t.top,width:e.width+t.left+t.right,height:e.height+t.top+t.bottom}}function J(e){return{left:-e.left,top:-e.top}}function q(e,t){return y(y({},e),{left:e.left+t.left,top:e.top+t.top})}function Z(e,t,i,n){if(1!==t){if(i){var s=K(e);return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2+(i.left-s.left)*(n||1-t),top:e.top+e.height*(1-t)/2+(i.top-s.top)*(n||1-t)}}return{width:e.width*t,height:e.height*t,left:e.left+e.width*(1-t)/2,top:e.top+e.height*(1-t)/2}}return e}function Q(e){return e.width/e.height}function ee(e,t){return Math.min(void 0!==t.right&&void 0!==t.left?(t.right-t.left)/e.width:1/0,void 0!==t.bottom&&void 0!==t.top?(t.bottom-t.top)/e.height:1/0)}function te(e,t){var i={left:0,top:0},n=Y(e,t);return n.left&&n.left>0?i.left=n.left:n.right&&n.right>0&&(i.left=-n.right),n.top&&n.top>0?i.top=n.top:n.bottom&&n.bottom>0&&(i.top=-n.bottom),i}function ne(e,t){var i;return t.minimum&&e<t.minimum?i=t.minimum:t.maximum&&e>t.maximum&&(i=t.maximum),i}function re(e,t){var i=Q(e),n=Q(t);return t.width<1/0&&t.height<1/0?i>n?{width:t.width,height:t.width/i}:{width:t.height*i,height:t.height}:t.width<1/0?{width:t.width,height:t.width/i}:t.height<1/0?{width:t.height*i,height:t.height}:e}function ie(e,t){var i=t*Math.PI/180;return{width:Math.abs(e.width*Math.cos(i))+Math.abs(e.height*Math.sin(i)),height:Math.abs(e.width*Math.sin(i))+Math.abs(e.height*Math.cos(i))}}function oe(e,t){var i=t*Math.PI/180;return{left:e.left*Math.cos(i)-e.top*Math.sin(i),top:e.left*Math.sin(i)+e.top*Math.cos(i)}}function ae(e,t){var i=Y(se(e,t),t);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((e.width+i.left+i.right)/e.width,ee(e,t)):Math.min((e.height+i.top+i.bottom)/e.height,ee(e,t)):1}function se(e,t,i){void 0===i&&(i=!1);var n=te(e,t);return q(e,i?J(n):n)}function rt(e){return{width:void 0!==e.right&&void 0!==e.left?e.right-e.left:1/0,height:void 0!==e.bottom&&void 0!==e.top?e.bottom-e.top:1/0}}function ce(e,t,i){void 0===i&&(i=!0);var n={};return B.forEach((function(s){var r=e[s],o=t[s];void 0!==r&&void 0!==o?n[s]="left"===s||"top"===s?i?Math.max(r,o):Math.min(r,o):i?Math.min(r,o):Math.max(r,o):void 0!==o?n[s]=o:void 0!==r&&(n[s]=r)})),n}function ue(e,t){return ce(e,t,!0)}function le(e){var t=e.size,i=e.aspectRatio,n=e.ignoreMinimum,s=e.sizeRestrictions;return Boolean((t.correctRatio||Q(t)>=i.minimum&&Q(t)<=i.maximum)&&t.height<=s.maxHeight&&t.width<=s.maxWidth&&t.width&&t.height&&(n||t.height>=s.minHeight&&t.width>=s.minWidth))}function dt(e,t){return Math.pow(e.width-t.width,2)+Math.pow(e.height-t.height,2)}function he(e){var t=e.width,i=e.height,n=e.sizeRestrictions,s={minimum:e.aspectRatio&&e.aspectRatio.minimum||0,maximum:e.aspectRatio&&e.aspectRatio.maximum||1/0},r={width:Math.max(n.minWidth,Math.min(n.maxWidth,t)),height:Math.max(n.minHeight,Math.min(n.maxHeight,i))};function o(e,r){return void 0===r&&(r=!1),e.reduce((function(e,o){return le({size:o,aspectRatio:s,sizeRestrictions:n,ignoreMinimum:r})&&(!e||dt(o,{width:t,height:i})<dt(e,{width:t,height:i}))?o:e}),null)}var a=[];s&&[s.minimum,s.maximum].forEach((function(e){e&&a.push({width:r.width,height:r.width/e,correctRatio:!0},{width:r.height*e,height:r.height,correctRatio:!0})})),le({size:r,aspectRatio:s,sizeRestrictions:n})&&a.push(r);var c=o(a)||o(a,!0);return c&&{width:c.width,height:c.height}}function de(e){var t=e.event,i=e.coordinates,n=e.positionRestrictions,s=void 0===n?{}:n,r=q(i,t.directions);return q(r,te(r,s))}function fe(e){e.event;var t=e.getAreaRestrictions,i=e.boundaries,n=e.coordinates,s=e.visibleArea;e.aspectRatio;var r=e.stencilSize,o=e.sizeRestrictions,a=e.positionRestrictions;e.stencilReference;var c,l,h,d=y({},n),u=y({},s),f=y({},r);c=Q(f),l=Q(d),void 0===h&&(h=.001),(0===c||0===l?Math.abs(l-c)<h:Math.abs(l/c)<1+h&&Math.abs(l/c)>1-h)||(d=y(y({},d),he({sizeRestrictions:o,width:d.width,height:d.height,aspectRatio:{minimum:Q(f),maximum:Q(f)}})));var p=ae(u=Z(u,d.width*i.width/(u.width*f.width)),t({visibleArea:u,type:"resize"}));return 1!==p&&(u=Z(u,p),d=Z(d,p)),u=se(u=q(u,W(K(d),K(u))),t({visibleArea:u,type:"move"})),{coordinates:d=se(d,ue(V(u),a)),visibleArea:u}}function pe(e){var t=e.event,i=e.getAreaRestrictions,n=e.boundaries,s=e.coordinates,r=e.visibleArea;e.aspectRatio,e.stencilSize,e.sizeRestrictions;var o=e.positionRestrictions;e.stencilReference;var a=y({},s),c=y({},r);if(s&&r&&"manipulateImage"!==t.type){var l={width:0,height:0};c.width,n.width,Q(n)>Q(a)?(l.height=.8*n.height,l.width=l.height*Q(a)):(l.width=.8*n.width,l.height=l.width*Q(a));var h=ae(c=Z(c,a.width*n.width/(c.width*l.width)),i({visibleArea:c,type:"resize"}));c=Z(c,h),1!==h&&(l.height/=h,l.width/=h),c=se(c=q(c,W(K(a),K(c))),i({visibleArea:c,type:"move"})),a=se(a,ue(V(c),o))}return{coordinates:a,visibleArea:c}}function me(e){var t=e.event,i=e.coordinates,n=e.visibleArea,s=e.getAreaRestrictions,r=y({},n),o=y({},i);if("setCoordinates"===t.type){var a=Math.max(0,o.width-r.width),c=Math.max(0,o.height-r.height);a>c?r=Z(r,Math.min(o.width/r.width,ee(r,s({visibleArea:r,type:"resize"})))):c>a&&(r=Z(r,Math.min(o.height/r.height,ee(r,s({visibleArea:r,type:"resize"}))))),r=se(r=q(r,J(te(o,V(r)))),s({visibleArea:r,type:"move"}))}return{visibleArea:r,coordinates:o}}function ge(e){var t=e.imageSize,i=e.visibleArea,n=e.aspectRatio,s=e.sizeRestrictions,r=i||t,o=Math.min(n.maximum||1/0,Math.max(n.minimum||0,Q(r))),a=r.width<r.height?{width:.8*r.width,height:.8*r.width/o}:{height:.8*r.height,width:.8*r.height*o};return he(y(y({},a),{aspectRatio:n,sizeRestrictions:s}))}function ve(e){var t,i,n=e.imageSize,s=e.visibleArea,r=e.boundaries,o=e.aspectRatio,a=e.sizeRestrictions,c=e.stencilSize,l=s||n;return Q(l)>Q(r)?i=(t=c.height*l.height/r.height)*Q(c):t=(i=c.width*l.width/r.width)/Q(c),he({width:i,height:t,aspectRatio:o,sizeRestrictions:a})}function be(e,t){return ce(e,V(t))}function ye(e){var t=e.directions,i=e.coordinates,n=e.positionRestrictions,s=void 0===n?{}:n,r=e.sizeRestrictions,o=e.preserveRatio,a=e.compensate,c=y({},t),l=X(i,c).width,h=X(i,c).height;l<0&&(c.left<0&&c.right<0?(c.left=-(i.width-r.minWidth)/(c.left/c.right),c.right=-(i.width-r.minWidth)/(c.right/c.left)):c.left<0?c.left=-(i.width-r.minWidth):c.right<0&&(c.right=-(i.width-r.minWidth))),h<0&&(c.top<0&&c.bottom<0?(c.top=-(i.height-r.minHeight)/(c.top/c.bottom),c.bottom=-(i.height-r.minHeight)/(c.bottom/c.top)):c.top<0?c.top=-(i.height-r.minHeight):c.bottom<0&&(c.bottom=-(i.height-r.minHeight)));var d=Y(X(i,c),s);a&&(d.left&&d.left>0&&0===d.right?(c.right+=d.left,c.left-=d.left):d.right&&d.right>0&&0===d.left&&(c.left+=d.right,c.right-=d.right),d.top&&d.top>0&&0===d.bottom?(c.bottom+=d.top,c.top-=d.top):d.bottom&&d.bottom>0&&0===d.top&&(c.top+=d.bottom,c.bottom-=d.bottom),d=Y(X(i,c),s));var u={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(B.forEach((function(e){var t=d[e];t&&c[e]&&(u[e]=Math.max(0,1-t/c[e]))})),o){var f=Math.min.apply(null,B.map((function(e){return u[e]})));f!==1/0&&B.forEach((function(e){c[e]*=f}))}else B.forEach((function(e){u[e]!==1/0&&(c[e]*=u[e])}));if(l=X(i,c).width,h=X(i,c).height,c.right+c.left&&(l>r.maxWidth?u.width=(r.maxWidth-i.width)/(c.right+c.left):l<r.minWidth&&(u.width=(r.minWidth-i.width)/(c.right+c.left))),c.bottom+c.top&&(h>r.maxHeight?u.height=(r.maxHeight-i.height)/(c.bottom+c.top):h<r.minHeight&&(u.height=(r.minHeight-i.height)/(c.bottom+c.top))),o){var p=Math.min(u.width,u.height);p!==1/0&&B.forEach((function(e){c[e]*=p}))}else u.width!==1/0&&U.forEach((function(e){c[e]*=u.width})),u.height!==1/0&&F.forEach((function(e){c[e]*=u.height}));return c}function we(e,t,i){return 0==t&&0==i?e/2:0==t?0:0==i?e:e*Math.abs(t/(t+i))}var Se=m("vue-simple-handler"),_e=m("vue-simple-handler-wrapper"),Ce=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("HandlerWrapper",{class:e.classes.wrapper,attrs:{"vertical-position":e.verticalPosition,"horizontal-position":e.horizontalPosition,disabled:e.disabled},on:{drag:e.onDrag,"drag-end":e.onDragEnd,enter:e.onEnter,leave:e.onLeave}},[i("div",{class:e.classes.default})])},staticRenderFns:[]},void 0,{name:"SimpleHandler",components:{HandlerWrapper:D},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var e,t=(c(e={},this.horizontalPosition,Boolean(this.horizontalPosition)),c(e,this.verticalPosition,Boolean(this.verticalPosition)),c(e,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),Boolean(this.verticalPosition&&this.horizontalPosition)),c(e,"hover",this.hover),e);return{default:f(Se(t),this.defaultClass,this.hover&&this.hoverClass),wrapper:f(_e(t),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Oe=m("vue-simple-line"),Ae=m("vue-simple-line-wrapper"),Te=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("LineWrapper",{class:e.classes.wrapper,attrs:{position:e.position,disabled:e.disabled},on:{drag:e.onDrag,"drag-end":e.onDragEnd,enter:e.onEnter,leave:e.onLeave}},[i("div",{class:e.classes.root})])},staticRenderFns:[]},void 0,{name:"SimpleLine",components:{LineWrapper:L},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:f(Oe(c({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:f(Ae(c({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(e){this.$emit("drag",e)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ee=m("vue-bounding-box"),Pe=["east","west",null],Me=["south","north",null],xe=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"box",class:e.classes.root,style:e.style},[e._t("default"),e._v(" "),i("div",e._l(e.lineNodes,(function(t){return i(t.component,{key:t.name,tag:"component",attrs:{"default-class":t.class,"hover-class":t.hoverClass,"wrapper-class":t.wrapperClass,position:t.name,disabled:t.disabled},on:{drag:function(i){return e.onHandlerDrag(i,t.horizontalDirection,t.verticalDirection)},"drag-end":function(t){return e.onEnd()}}})})),1),e._v(" "),e._l(e.handlerNodes,(function(t){return i("div",{key:t.name,class:t.wrapperClass,style:t.wrapperStyle},[i(t.component,{tag:"component",attrs:{"default-class":t.class,"hover-class":t.hoverClass,"wrapper-class":t.wrapperClass,"horizontal-position":t.horizontalDirection,"vertical-position":t.verticalDirection,disabled:t.disabled},on:{drag:function(i){return e.onHandlerDrag(i,t.horizontalDirection,t.verticalDirection)},"drag-end":function(t){return e.onEnd()}}})],1)}))],2)},staticRenderFns:[]},void 0,{name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Ce}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return Te}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var e=[];return Pe.forEach((function(t){Me.forEach((function(i){if(t!==i){var n=p(t,i),s=n.name,r=n.classname;e.push({name:s,classname:r,verticalDirection:i,horizontalDirection:t})}}))})),{points:e}},computed:{style:function(){var e={};return this.width&&this.height&&(e.width="".concat(this.width,"px"),e.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),e},classes:function(){var e=this.handlersClasses,t=this.handlersWrappersClasses,i=this.linesClasses,n=this.linesWrappersClasses;return{root:Ee(),handlers:e,handlersWrappers:t,lines:i,linesWrappers:n}},lineNodes:function(){var e=this,t=[];return this.points.forEach((function(i){i.horizontalDirection&&i.verticalDirection||!e.lines[i.name]||t.push({name:i.name,component:e.linesComponent,class:f(e.classes.lines.default,e.classes.lines[i.name],!e.resizable&&e.classes.lines.disabled),wrapperClass:f(e.classes.linesWrappers.default,e.classes.linesWrappers[i.name],!e.resizable&&e.classes.linesWrappers.disabled),hoverClass:e.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!e.resizable})})),t},handlerNodes:function(){var e=this,t=[],i=this.width,s=this.height;return this.points.forEach((function(n){if(e.handlers[n.name]){var r={name:n.name,component:e.handlersComponent,class:f(e.classes.handlers.default,e.classes.handlers[n.name]),wrapperClass:f(e.classes.handlersWrappers.default,e.classes.handlersWrappers[n.name]),hoverClass:e.classes.handlers.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!e.resizable};if(i&&s){var a=n.horizontalDirection,o=n.verticalDirection,l="east"===a?i:"west"===a?0:i/2,h="south"===o?s:"north"===o?0:s/2;r.wrapperClass=Ee("handler"),r.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(h,"px)")},e.transitions&&e.transitions.enabled&&(r.wrapperStyle.transition="".concat(e.transitions.time,"ms ").concat(e.transitions.timingFunction))}else r.wrapperClass=Ee("handler",c({},n.classname,!0));t.push(r)}})),t}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(e,t,i){var n,s=e.shift(),r=s.left,o=s.top,a={left:0,right:0,top:0,bottom:0};"west"===t?a.left-=r:"east"===t&&(a.right+=r),"north"===i?a.top-=o:"south"===i&&(a.bottom+=o),!i&&t?n="width":i&&!t&&(n="height"),this.resizable&&this.$emit("resize",new M(a,{allowedDirections:{left:"west"===t||!t,right:"east"===t||!t,bottom:"south"===i||!i,top:"north"===i||!i},preserveAspectRatio:e.nativeEvent&&e.nativeEvent.shiftKey,respectDirection:n}))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),ke=m("vue-draggable-area"),Ie=I({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"container",on:{touchstart:e.onTouchStart,mousedown:e.onMouseDown}},[e._t("default")],2)},staticRenderFns:[]},void 0,{name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:ke()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(e){if(e.cancelable){var t=this.movable&&1===e.touches.length;t&&(this.touches=l(e.touches)),(this.touchStarted||t)&&(e.preventDefault(),e.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(e){this.touches.length>=1&&(this.touchStarted?(this.processMove(e,e.touches),e.preventDefault(),e.stopPropagation()):E({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:e.touches[0].clientX,y:e.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(e){if(this.movable&&0===e.button){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.initAnchor(t),e.stopPropagation()}},onMouseMove:function(e){this.touches.length&&(this.processMove(e,[{fake:!0,clientX:e.clientX,clientY:e.clientY}]),e.preventDefault&&e.cancelable&&e.preventDefault(),e.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(e){var t=this.$refs.container.getBoundingClientRect(),i=t.left,n=t.top;this.anchor={x:e.clientX-i,y:e.clientY-n}},processMove:function(e,t){var i=l(t);if(this.touches.length){var n=this.$refs.container.getBoundingClientRect(),s=n.left,r=n.top;1===this.touches.length&&1===i.length&&this.$emit("move",new x({left:i[0].clientX-(s+this.anchor.x),top:i[0].clientY-(r+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Re(e){var t,i;return{rotate:e.rotate||0,flip:{horizontal:(null===(t=null==e?void 0:e.flip)||void 0===t?void 0:t.horizontal)||!1,vertical:(null===(i=null==e?void 0:e.flip)||void 0===i?void 0:i.vertical)||!1}}}function je(e){var t=e.rotate,i=e.flip,n=e.scaleX,s=e.scaleY,r="";return r+=" rotate("+t+"deg) ",(r+=" scaleX("+n*(i.horizontal?-1:1)+") ")+" scaleY("+s*(i.vertical?-1:1)+") "}var De=m("vue-preview-result");I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.classes.root},[i("div",{ref:"wrapper",class:e.classes.wrapper,style:e.wrapperStyle},[i("img",{ref:"image",class:e.classes.image,style:e.imageStyle,attrs:{src:e.image.src}})])])},staticRenderFns:[]},void 0,{name:"PreviewResult",props:{image:{type:Object},transitions:{type:Object},stencilCoordinates:{type:Object,default:function(){return{width:0,height:0,left:0,top:0}}},imageClass:{type:String}},computed:{classes:function(){return{root:De(),wrapper:De("wrapper"),imageWrapper:De("image-wrapper"),image:f(De("image"),this.imageClass)}},wrapperStyle:function(){var e={width:"".concat(this.stencilCoordinates.width,"px"),height:"".concat(this.stencilCoordinates.height,"px"),left:"calc(50% - ".concat(this.stencilCoordinates.width/2,"px)"),top:"calc(50% - ".concat(this.stencilCoordinates.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},imageStyle:function(){var e=this.image.transforms,t=ie({width:this.image.width,height:this.image.height},e.rotate),i={width:"".concat(this.image.width,"px"),height:"".concat(this.image.height,"px"),left:"0px",top:"0px"},n=(this.image.width-t.width)*e.scaleX/2,r=(this.image.height-t.height)*e.scaleY/2,o=(1-e.scaleX)*this.image.width/2,c=(1-e.scaleY)*this.image.height/2;return i.transform="translate(\n\t\t\t\t".concat(-this.stencilCoordinates.left-e.translateX-n-o,"px,").concat(-this.stencilCoordinates.top-e.translateY-r-c,"px) ")+je(e),this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Ne(e,t){var i=t.getBoundingClientRect(),n=i.left,s=i.top,r={left:0,top:0},o=0;return e.forEach((function(t){r.left+=(t.clientX-n)/e.length,r.top+=(t.clientY-s)/e.length})),e.forEach((function(e){o+=E({x:r.left,y:r.top},{x:e.clientX-n,y:e.clientY-s})})),{centerMass:r,spread:o,count:e.length}}var Le=I({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"container",on:{touchstart:e.onTouchStart,mousedown:e.onMouseDown,wheel:e.onWheel}},[e._t("default")],2)},staticRenderFns:[]},void 0,{props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=v(this.processEnd),this.touches=[]},methods:{processMove:function(e,t){if(this.touches.length){if(1===this.touches.length&&1===t.length)this.$emit("move",new P({left:this.touches[0].clientX-t[0].clientX,top:this.touches[0].clientY-t[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=Ne(t,this.$refs.container),n=this.oldGeometricProperties;n.count===i.count&&n.count>1&&this.$emit("resize",new P({left:n.centerMass.left-i.centerMass.left,top:n.centerMass.top-i.centerMass.top},{factor:n.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=t}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(e){return this.eventsFilter?!1!==this.eventsFilter(e,this.transforming):(e.preventDefault(),e.stopPropagation(),!0)},onTouchStart:function(e){if(e.cancelable&&(this.touchMove||this.touchResize&&e.touches.length>1)&&this.processEvent(e)){var t=this.$refs.container,i=t.getBoundingClientRect(),n=i.left,s=i.top,r=i.bottom,a=i.right;this.touches=l(e.touches).filter((function(e){return e.clientX>n&&e.clientX<a&&e.clientY>s&&e.clientY<r})),this.oldGeometricProperties=Ne(this.touches,t)}},onTouchEnd:function(e){0===e.touches.length&&(this.touches=[],this.processEnd())},onTouchMove:function(e){var t=this;if(this.touches.length){var i=l(e.touches).filter((function(e){return!e.identifier||t.touches.find((function(t){return t.identifier===e.identifier}))}));this.processEvent(e)&&(this.processMove(e,i),this.processStart())}},onMouseDown:function(e){if(this.mouseMove&&"buttons"in e&&1===e.buttons&&this.processEvent(e)){var t={fake:!0,clientX:e.clientX,clientY:e.clientY};this.touches=[t],this.processStart()}},onMouseMove:function(e){this.touches.length&&this.processEvent(e)&&this.processMove(e,[{clientX:e.clientX,clientY:e.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(e){if(this.wheelResize&&this.processEvent(e)){var t=this.$refs.container.getBoundingClientRect(),i=t.left,n=t.top,s=1+this.wheelResize.ratio*(0==(a=+(e.deltaY||e.detail||e.wheelDelta))||T(a)?a:a>0?1:-1),r={left:e.clientX-i,top:e.clientY-n};this.$emit("resize",new P({},{factor:s,center:r})),this.touches.length||this.debouncedProcessEnd()}var a}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Be=I({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("transformable-image",{attrs:{"touch-move":e.touchMove,"touch-resize":e.touchResize,"mouse-move":e.mouseMove,"wheel-resize":e.wheelResize},on:{move:function(t){return e.$emit("move",t)},resize:function(t){return e.$emit("resize",t)}}},[e._t("default")],2)},staticRenderFns:[]},void 0,{components:{TransformableImage:Le},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ue=m("vue-preview"),Fe=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"root",class:e.classes.root,style:e.style},[i("div",{ref:"wrapper",class:e.classes.wrapper,style:e.wrapperStyle},[i("img",{directives:[{name:"show",rawName:"v-show",value:e.image&&e.image.src,expression:"image && image.src"}],ref:"image",class:e.classes.image,style:e.imageStyle,attrs:{src:e.image&&e.image.src}})])])},staticRenderFns:[]},void 0,{props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Ue({fill:this.fill}),wrapper:Ue("wrapper"),imageWrapper:Ue("image-wrapper"),image:f(Ue("image"),this.imageClass)}},style:function(){if(this.fill)return{};var e={};return this.width&&(e.width="".concat(this.size.width,"px")),this.height&&(e.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},wrapperStyle:function(){var e={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(e.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),e},imageStyle:function(){if(this.coordinates&&this.image){var e=this.coordinates.width/this.size.width,t=i(i({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/e,scaleY:1/e}),n=this.imageSize.width,s=this.imageSize.height,r=ie({width:n,height:s},t.rotate),o={width:"".concat(n,"px"),height:"".concat(s,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-r.width)*t.scaleX/2,top:(s-r.height)*t.scaleY/2},scale:{left:(1-t.scaleX)*n/2,top:(1-t.scaleY)*s/2}};return o.transform="translate(\n\t\t\t\t".concat(-this.coordinates.left/e-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/e-a.rotate.top-a.scale.top,"px) ")+je(t),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(e){(e.width||e.height)&&this.onChangeImage()}},mounted:function(){var e=this;this.onChangeImage(),this.$refs.image.addEventListener("load",(function(){e.refreshImage()})),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var e=this.$refs.image;this.calculatedImageSize.height=e.naturalHeight,this.calculatedImageSize.width=e.naturalWidth},refresh:function(){var e=this.$refs.root;this.width||(this.calculatedSize.width=e.clientWidth),this.height||(this.calculatedSize.height=e.clientHeight)},onChangeImage:function(){var e=this.$refs.image;e&&e.complete&&this.refreshImage(),this.refresh()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),ze=I({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("preview",e._b({attrs:{fill:!0}},"preview",e.$attrs,!1))},staticRenderFns:[]},void 0,{components:{Preview:Fe},inheritAttrs:!1},void 0,!1,void 0,!1,void 0,void 0,void 0),$e=m("vue-rectangle-stencil"),He=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.classes.stencil,style:e.style},[i("bounding-box",{class:e.classes.boundingBox,attrs:{width:e.stencilCoordinates.width,height:e.stencilCoordinates.height,transitions:e.transitions,handlers:e.handlers,"handlers-component":e.handlersComponent,"handlers-classes":e.handlersClasses,"handlers-wrappers-classes":e.handlersWrappersClasses,lines:e.lines,"lines-component":e.linesComponent,"lines-classes":e.linesClasses,"lines-wrappers-classes":e.linesWrappersClasses,resizable:e.resizable},on:{resize:e.onResize,"resize-end":e.onResizeEnd}},[i("draggable-area",{attrs:{movable:e.movable},on:{move:e.onMove,"move-end":e.onMoveEnd}},[i("stencil-preview",{class:e.classes.preview,attrs:{image:e.image,coordinates:e.coordinates,width:e.stencilCoordinates.width,height:e.stencilCoordinates.height,transitions:e.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{name:"RectangleStencil",components:{StencilPreview:ze,BoundingBox:xe,DraggableArea:Ie},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Ce}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Te}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:f($e({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:f($e("preview"),this.previewClass),boundingBox:f($e("bounding-box"),this.boundingBoxClass)}},style:function(){var e=this.stencilCoordinates,t=e.height,i=e.width,n=e.left,s=e.top,r={width:"".concat(i,"px"),height:"".concat(t,"px"),transform:"translate(".concat(n,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}},methods:{onMove:function(e){this.$emit("move",e),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(e){this.$emit("resize",e),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ge=m("vue-circle-stencil"),Ve=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.classes.stencil,style:e.style},[i("bounding-box",{class:e.classes.boundingBox,attrs:{width:e.stencilCoordinates.width,height:e.stencilCoordinates.height,transitions:e.transitions,handlers:e.handlers,"handlers-component":e.handlersComponent,"handlers-classes":e.handlersClasses,"handlers-wrappers-classes":e.handlersWrappersClasses,lines:e.lines,"lines-component":e.linesComponent,"lines-classes":e.linesClasses,"lines-wrappers-classes":e.linesWrappersClasses,resizable:e.resizable},on:{resize:e.onResize,"resize-end":e.onResizeEnd}},[i("draggable-area",{attrs:{movable:e.movable},on:{move:e.onMove,"move-end":e.onMoveEnd}},[i("stencil-preview",{class:e.classes.preview,attrs:{image:e.image,coordinates:e.coordinates,width:e.stencilCoordinates.width,height:e.stencilCoordinates.height,transitions:e.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{components:{StencilPreview:ze,BoundingBox:xe,DraggableArea:Ie},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,westNorth:!0,westSouth:!0,eastSouth:!0}}},handlersComponent:{type:[Object,String],default:function(){return Ce}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Te}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:f(Ge({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:f(Ge("preview"),this.previewClass),boundingBox:f(Ge("bounding-box"),this.boundingBoxClass)}},style:function(){var e=this.stencilCoordinates,t=e.height,i=e.width,n=e.left,s=e.top,r={width:"".concat(i,"px"),height:"".concat(t,"px"),transform:"translate(".concat(n,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(r.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),r}},methods:{onMove:function(e){this.$emit("move",e),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(e){this.$emit("resize",e),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:1,maximum:1}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),We=["transitions"],qe=m("vue-advanced-cropper"),Ke={name:"Cropper",components:{BackgroundWrapper:Be},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return He}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Be}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(e){return-1!==$.indexOf(e)}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object],default:function(e){var t=e.imageSize,i=e.visibleArea,n=e.coordinates,s=i||t;return{left:(i?i.left:0)+s.width/2-n.width/2,top:(i?i.top:0)+s.height/2-n.height/2}}},defaultVisibleArea:{type:[Function,Object],default:function(e){var t=e.getAreaRestrictions,i=e.coordinates,n=e.imageSize,s=Q(e.boundaries);if(i){var r={height:Math.max(i.height,n.height),width:Math.max(i.width,n.width)},o=re({width:Q(r)>s?r.width:r.height*s,height:Q(r)>s?r.width/s:r.height},rt(t())),a={left:i.left+i.width/2-o.width/2,top:i.top+i.height/2-o.height/2,width:o.width,height:o.height},c=Y(i,V(y({left:0,top:0},n))),l={};return!c.left&&!c.right&&a.width<=n.width&&(l.left=0,l.right=n.width),!c.top&&!c.bottom&&a.height<=n.height&&(l.top=0,l.bottom=n.height),se(a,l)}var h=Q(n);return o={height:h>s?n.height:n.width/s,width:h>s?n.height*s:n.width},{left:n.width/2-o.width/2,top:n.height/2-o.height/2,width:o.width,height:o.height}}},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(e){return!("string"==typeof e&&"fill"!==e&&"fit"!==e)}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(e){var t=e.event,i=e.coordinates,n=e.aspectRatio,s=e.positionRestrictions,r=e.sizeRestrictions,o=y(y({},i),{right:i.left+i.width,bottom:i.top+i.height}),a=t.params||{},c=y({},t.directions),l=a.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};r.widthFrozen&&(c.left=0,c.right=0),r.heightFrozen&&(c.top=0,c.bottom=0),B.forEach((function(e){l[e]||(c[e]=0)}));var h=X(o,c=ye({coordinates:o,directions:c,sizeRestrictions:r,positionRestrictions:s})).width,d=X(o,c).height,u=a.preserveRatio?Q(o):ne(h/d,n);if(u){var f=a.respectDirection;if(f||(f=o.width>=o.height||1===u?"width":"height"),"width"===f){var p=h/u-o.height;if(l.top&&l.bottom){var g=c.top,m=c.bottom;c.bottom=we(p,m,g),c.top=we(p,g,m)}else l.bottom?c.bottom=p:l.top?c.top=p:l.right?c.right=0:l.left&&(c.left=0)}else if("height"===f){var b=o.width-d*u;if(l.left&&l.right){var v=c.left,w=c.right;c.left=-we(b,v,w),c.right=-we(b,w,v)}else l.left?c.left=-b:l.right?c.right=-b:l.top?c.top=0:l.bottom&&(c.bottom=0)}c=ye({directions:c,coordinates:o,sizeRestrictions:r,positionRestrictions:s,preserveRatio:!0,compensate:a.compensate})}return h=X(o,c).width,d=X(o,c).height,(u=a.preserveRatio?Q(o):ne(h/d,n))&&Math.abs(u-h/d)>.001&&B.forEach((function(e){l[e]||(c[e]=0)})),de({event:new x({left:-c.left,top:-c.top}),coordinates:{width:i.width+c.right+c.left,height:i.height+c.top+c.bottom,left:i.left,top:i.top},positionRestrictions:s})}},moveAlgorithm:{type:Function,default:de},initStretcher:{type:Function,default:function(e){var t=e.stretcher,i=e.imageSize,n=Q(i);t.style.width=i.width+"px",t.style.height=t.clientWidth/n+"px",t.style.width=t.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(e){var t=e.visibleArea,i=e.coordinates,n=e.aspectRatio,s=e.sizeRestrictions,r=e.positionRestrictions,o=y(y({},i),he({width:i.width,height:i.height,aspectRatio:n,sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minHeight:Math.min(t.height,s.minHeight),minWidth:Math.min(t.width,s.minWidth)}}));return se(o=q(o,W(K(i),K(o))),ue(V(t),r))}},fitVisibleArea:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,n=e.getAreaRestrictions,s=e.coordinates,r=y({},t);r.height=r.width/Q(i),r.top+=(t.height-r.height)/2,(s.height-r.height>0||s.width-r.width>0)&&(r=Z(r,Math.max(s.height/r.height,s.width/r.width)));var o=J(te(s,V(r=Z(r,ae(r,n({visibleArea:r,type:"resize"}))))));return r.width<s.width&&(o.left=0),r.height<s.height&&(o.top=0),se(r=q(r,o),n({visibleArea:r,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.visibleArea,i=e.boundaries,n=e.imageSize,s=e.imageRestriction,r=e.type,o={};return"fill-area"===s?o={left:0,top:0,right:n.width,bottom:n.height}:"fit-area"===s&&(Q(i)>Q(n)?(o={top:0,bottom:n.height},t&&"move"===r&&(t.width>n.width?(o.left=-(t.width-n.width)/2,o.right=n.width-o.left):(o.left=0,o.right=n.width))):(o={left:0,right:n.width},t&&"move"===r&&(t.height>n.height?(o.top=-(t.height-n.height)/2,o.bottom=n.height-o.top):(o.top=0,o.bottom=n.height)))),o}},sizeRestrictionsAlgorithm:{type:Function,default:function(e){return{minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(e){var t=e.imageSize,i={};return"none"!==e.imageRestriction&&(i={left:0,top:0,right:t.width,bottom:t.height}),i}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:!1,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:i({},H)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var e=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(e))+Math.abs(this.imageAttributes.height*Math.sin(e)),height:Math.abs(this.imageAttributes.width*Math.sin(e))+Math.abs(this.imageAttributes.height*Math.cos(e))}},initialized:function(){return Boolean(this.visibleArea&&this.imageLoaded)},settings:function(){var e=C(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:C(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:e}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var e=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:S(this.minWidth)?0:O(this.minWidth),minHeight:S(this.minHeight)?0:O(this.minHeight),maxWidth:S(this.maxWidth)?1/0:O(this.maxWidth),maxHeight:S(this.maxHeight)?1/0:O(this.maxHeight)});if(e=function(e){var t=e.areaRestrictions,i=e.sizeRestrictions,n=e.boundaries,s=e.positionRestrictions,r=y(y({},i),{minWidth:void 0!==i.minWidth?i.minWidth:0,minHeight:void 0!==i.minHeight?i.minHeight:0,maxWidth:void 0!==i.maxWidth?i.maxWidth:1/0,maxHeight:void 0!==i.maxHeight?i.maxHeight:1/0});void 0!==s.left&&void 0!==s.right&&(r.maxWidth=Math.min(r.maxWidth,s.right-s.left)),void 0!==s.bottom&&void 0!==s.top&&(r.maxHeight=Math.min(r.maxHeight,s.bottom-s.top));var o=rt(t),a=re(n,o);return o.width<1/0&&(!r.maxWidth||r.maxWidth>a.width)&&(r.maxWidth=Math.min(r.maxWidth,a.width)),o.height<1/0&&(!r.maxHeight||r.maxHeight>a.height)&&(r.maxHeight=Math.min(r.maxHeight,a.height)),r.minWidth>r.maxWidth&&(r.minWidth=r.maxWidth,r.widthFrozen=!0),r.minHeight>r.maxHeight&&(r.minHeight=r.maxHeight,r.heightFrozen=!0),r}({sizeRestrictions:e,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var t=this.getStencilSize(),i=rt(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));e.maxWidth=Math.min(e.maxWidth,i.width*t.width/this.boundaries.width),e.maxHeight=Math.min(e.maxHeight,i.height*t.height/this.boundaries.height),e.maxWidth<e.minWidth&&(e.minWidth=e.maxWidth),e.maxHeight<e.minHeight&&(e.minHeight=e.maxHeight)}return e}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:qe(),image:f(qe("image"),this.imageClass),stencil:qe("stencil"),boundaries:f(qe("boundaries"),this.boundariesClass),stretcher:f(qe("stretcher")),background:f(qe("background"),this.backgroundClass),foreground:f(qe("foreground"),this.foregroundClass),imageWrapper:f(qe("image-wrapper")),cropperWrapper:f(qe("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var e=this.coordinates,t=e.width,i=e.height,n=e.left,s=e.top;return{width:t/this.coefficient,height:i/this.coefficient,left:(n-this.visibleArea.left)/this.coefficient,top:(s-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var e={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(e.opacity="0"),e},imageStyle:function(){var e=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},t=(e.width-this.imageSize.width)/(2*this.coefficient),n=(e.height-this.imageSize.height)/(2*this.coefficient),r=(1-1/this.coefficient)*e.width/2,o=(1-1/this.coefficient)*e.height/2,s=i(i({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/e.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/e.height)}),c={width:"".concat(e.width,"px"),height:"".concat(e.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-t-r-this.imageTransforms.translateX,"px, ").concat(-n-o-this.imageTransforms.translateY,"px)")+je(s)};return this.transitionsOptions.enabled&&(c.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),c}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var e=this;this.$nextTick((function(){e.resetCoordinates(),e.runAutoZoom("setCoordinates"),e.onChange()}))},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(e,t){["aspectRatio","minAspectRatio","maxAspectRatio"].find((function(i){return e[i]!==t[i]}))&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=v(this.update,this.debounce),this.debouncedDisableTransitions=v(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var e=this.initialized?this.prepareResult(i({},this.coordinates)):this.defaultCoordinates(),t={rotate:this.imageTransforms.rotate%360,flip:i({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:e,visibleArea:this.visibleArea?i({},this.visibleArea):null,imageTransforms:t,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:e,visibleArea:this.visibleArea?i({},this.visibleArea):null,canvas:void 0,imageTransforms:t}},zoom:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,s=void 0===n||n;this.onManipulateImage(new P({},{factor:1/e,center:t}),{normalize:!1,transitions:s})},move:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,s=void 0===n||n;this.onManipulateImage(new P({left:e||0,top:t||0}),{normalize:!1,transitions:s})},setCoordinates:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.autoZoom,s=void 0===n||n,r=i.transitions,o=void 0===r||r;this.$nextTick((function(){t.imageLoaded?(t.transitionsActive||(o&&t.enableTransitions(),t.coordinates=t.applyTransform(e),s&&t.runAutoZoom("setCoordinates"),o&&t.debouncedDisableTransitions()),t.onChange()):t.delayedTransforms=e}))},refresh:function(){var e=this,t=this.$refs.image;if(this.src&&t)return this.initialized?this.updateVisibleArea().then((function(){e.onChange()})):this.resetVisibleArea().then((function(){e.onChange()}))},reset:function(){var e=this;return this.resetVisibleArea().then((function(){e.onChange(!1)}))},awaitRender:function(e){var t=this;this.awaiting||(this.awaiting=!0,this.$nextTick((function(){e(),t.awaiting=!1})))},prepareResult:function(e){return this.roundResult?function(e){var t=e.coordinates,i=e.sizeRestrictions,n=e.positionRestrictions,s={width:Math.round(t.width),height:Math.round(t.height),left:Math.round(t.left),top:Math.round(t.top)};return s.width>i.maxWidth?s.width=Math.floor(t.width):s.width<i.minWidth&&(s.width=Math.ceil(t.width)),s.height>i.maxHeight?s.height=Math.floor(t.height):s.height<i.minHeight&&(s.height=Math.ceil(t.height)),se(s,n)}(i(i({},this.getPublicProperties()),{},{positionRestrictions:be(this.positionRestrictions,this.visibleArea),coordinates:e})):e},processAutoZoom:function(e,t,n,s){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?fe:this.autoZoom?pe:me);var o=r({event:{type:e,params:s},visibleArea:t,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return i(i({},o),{},{changed:!G(o.visibleArea,t)||!G(o.coordinates,n)})},runAutoZoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.transitions,n=void 0!==i&&i,r=function(e,t){if(null==e)return{};var i,n,s=function(e,t){if(null==e)return{};var i,n,s={},r=Object.keys(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(s[i]=e[i]);return s}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}(t,We),o=this.processAutoZoom(e,this.visibleArea,this.coordinates,r),a=o.visibleArea,c=o.coordinates,l=o.changed;n&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,n&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(e){return function(e){var t=e.event,i=e.visibleArea,n=e.coefficient;if("manipulateImage"===t.type)return y(y({},t),{move:{left:t.move&&t.move.left?n*t.move.left:0,top:t.move&&t.move.top?n*t.move.top:0},scale:{factor:t.scale&&t.scale.factor?t.scale.factor:1,center:t.scale&&t.scale.center?{left:t.scale.center.left*n+i.left,top:t.scale.center.top*n+i.top}:null}});if("resize"===t.type){var s=y(y({},t),{directions:y({},t.directions)});return B.forEach((function(e){s.directions[e]*=n})),s}if("move"===t.type){var r=y(y({},t),{directions:y({},t.directions)});return z.forEach((function(e){r.directions[e]*=n})),r}return t}(i(i({},this.getPublicProperties()),{},{event:e}))},getCanvas:function(){if(this.$refs.canvas){var e=this.$refs.canvas,t=this.$refs.image,n=0!==this.imageTransforms.rotate||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(e,t,i){var n=i.rotate,s=i.flip,r={width:t.naturalWidth,height:t.naturalHeight},o=ie(r,n),a=e.getContext("2d");e.height=o.height,e.width=o.width,a.save();var c=oe(K(y({left:0,top:0},r)),n);return a.translate(-(c.left-o.width/2),-(c.top-o.height/2)),a.rotate(n*Math.PI/180),a.translate(s.horizontal?r.width:0,s.vertical?r.height:0),a.scale(s.horizontal?-1:1,s.vertical?-1:1),a.drawImage(t,0,0,r.width,r.height),a.restore(),e}(this.$refs.sourceCanvas,t,this.imageTransforms):t,s=i({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(e){return e.find((function(e){return t=e,!Number.isNaN(parseFloat(t))&&isFinite(t);var t}))},o=he({sizeRestrictions:{minWidth:r([s.width,s.minWidth])||0,minHeight:r([s.height,s.minHeight])||0,maxWidth:r([s.width,s.maxWidth])||1/0,maxHeight:r([s.height,s.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(s.maxArea&&o.width*o.height>s.maxArea){var a=Math.sqrt(s.maxArea/(o.width*o.height));o={width:Math.round(a*o.width),height:Math.round(a*o.height)}}return function(e,t,i,n,s){e.width=n?n.width:i.width,e.height=n?n.height:i.height;var r=e.getContext("2d");r.clearRect(0,0,e.width,e.height),s&&(s.imageSmoothingEnabled&&(r.imageSmoothingEnabled=s.imageSmoothingEnabled),s.imageSmoothingQuality&&(r.imageSmoothingQuality=s.imageSmoothingQuality),s.fillColor&&(r.fillStyle=s.fillColor,r.fillRect(0,0,e.width,e.height),r.save()));var o=i.left<0?-i.left:0,a=i.top<0?-i.top:0;r.drawImage(t,i.left+o,i.top+a,i.width,i.height,o,a,e.width,e.height)}(e,n,this.coordinates,o,s),e}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.visibleArea&&t?function(e,t){return y(y({},e),{minWidth:Math.min(t.width,e.minWidth),minHeight:Math.min(t.height,e.minHeight),maxWidth:Math.min(t.width,e.maxWidth),maxHeight:Math.min(t.height,e.maxHeight)})}(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,n=this.visibleArea&&t?be(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return function(e){var t=e.coordinates,i=e.transform,n=e.imageSize,s=e.sizeRestrictions,r=e.positionRestrictions,o=e.aspectRatio,a=e.visibleArea,c=function(e,t){return de({coordinates:e,positionRestrictions:r,event:new x({left:t.left-e.left,top:t.top-e.top})})},l=y({},t);return(Array.isArray(i)?i:[i]).forEach((function(e){var t;S((t="function"==typeof e?e({coordinates:l,imageSize:n,visibleArea:a}):e).width)&&S(t.height)||(l=function(e,t){var i=y(y(y({},e),he({width:t.width,height:t.height,sizeRestrictions:s,aspectRatio:o})),{left:0,top:0});return c(i,{left:e.left,top:e.top})}(l,y(y({},l),t))),S(t.left)&&S(t.top)||(l=c(l,y(y({},l),t)))})),l}({transform:e,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:n,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var e=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var t=this.defaultSize;t||(t=this.stencilSize?ve:ge);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var s=[b(t)?t({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):t,function(t){var n=t.coordinates;return i({},b(e.defaultPosition)?e.defaultPosition({coordinates:n,imageSize:e.imageSize,visibleArea:e.visibleArea}):e.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,l(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var e=this;this.imageLoaded=!1,setTimeout((function(){var t=e.$refs.stretcher;t&&(t.style.height="auto",t.style.width="auto"),e.coordinates=e.defaultCoordinates(),e.boundaries={width:0,height:0}}),this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var e=this,t=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:t,imageSize:this.imageSize}),this.$nextTick().then((function(){var t={cropper:i,imageSize:e.imageSize};if(b(e.defaultBoundaries)?e.boundaries=e.defaultBoundaries(t):"fit"===e.defaultBoundaries?e.boundaries=function(e){var t=e.cropper,i=e.imageSize,n=t.clientHeight,s=t.clientWidth,r=n,o=i.width*n/i.height;return o>s&&(o=s,r=i.height*s/i.width),{width:o,height:r}}(t):e.boundaries=function(e){var t=e.cropper;return{width:t.clientWidth,height:t.clientHeight}}(t),!e.boundaries.width||!e.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")}))},resetVisibleArea:function(){var e=this;return this.appliedImageTransforms=i(i({},this.defaultImageTransforms),{},{flip:i({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then((function(){var t,n,s,r,o;"visible-area"!==e.priority&&(e.visibleArea=null,e.resetCoordinates()),e.visibleArea=b(e.defaultVisibleArea)?e.defaultVisibleArea({imageSize:e.imageSize,boundaries:e.boundaries,coordinates:"visible-area"!==e.priority?e.coordinates:null,getAreaRestrictions:e.getAreaRestrictions,stencilSize:e.getStencilSize()}):e.defaultVisibleArea,e.visibleArea=(n=(t={visibleArea:e.visibleArea,boundaries:e.boundaries,getAreaRestrictions:e.getAreaRestrictions}).boundaries,s=t.getAreaRestrictions,r=y({},t.visibleArea),o=Q(n),r.width/r.height!==o&&(r.height=r.width/o),se(r,s({visibleArea:r,type:"move"}))),"visible-area"===e.priority?e.resetCoordinates():e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("resetVisibleArea")})).catch((function(){e.visibleArea=null}))},updateVisibleArea:function(){var e=this;return this.updateBoundaries().then((function(){e.visibleArea=e.fitVisibleArea({imageSize:e.imageSize,boundaries:e.boundaries,visibleArea:e.visibleArea,coordinates:e.coordinates,getAreaRestrictions:e.getAreaRestrictions}),e.coordinates=e.fitCoordinates({visibleArea:e.visibleArea,coordinates:e.coordinates,aspectRatio:e.getAspectRatio(),positionRestrictions:e.positionRestrictions,sizeRestrictions:e.sizeRestrictions}),e.runAutoZoom("updateVisibleArea")})).catch((function(){e.visibleArea=null}))},onChange:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$listeners&&this.$listeners.change&&(e&&this.debounce?this.debouncedUpdate():this.update())},onChangeImage:function(){var e,t=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(e){if(w(e))return!1;var t=window.location,i=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e)||[],n={protocol:i[1]||"",host:i[2]||"",port:i[3]||""},s=function(e){return e.port||("http"===(e.protocol||t.protocol)?80:433)};return!(!n.protocol&&!n.host&&!n.port||Boolean(n.protocol&&n.protocol==t.protocol&&n.host&&n.host==t.host&&n.host&&s(n)==s(t)))}(this.src)){var i=S(this.crossOrigin)?this.canvas:this.crossOrigin;!0===i&&(i="anonymous"),this.imageAttributes.crossOrigin=i}if(this.checkOrientation){var n=(e=this.src,new Promise((function(t){(function(e){return new Promise((function(t,i){try{if(e)if(/^data:/i.test(e))t(function(e){e=e.replace(/^data:([^;]+);base64,/gim,"");for(var t=atob(e),i=t.length,n=new ArrayBuffer(i),s=new Uint8Array(n),r=0;r<i;r++)s[r]=t.charCodeAt(r);return n}(e));else if(/^blob:/i.test(e)){var n=new FileReader;n.onload=function(e){t(e.target.result)},r=e,o=function(e){n.readAsArrayBuffer(e)},(a=new XMLHttpRequest).open("GET",r,!0),a.responseType="blob",a.onload=function(){200!=this.status&&0!==this.status||o(this.response)},a.send()}else{var s=new XMLHttpRequest;s.onreadystatechange=function(){4===s.readyState&&(200===s.status||0===s.status?t(s.response):i("Warning: could not load an image to parse its orientation"),s=null)},s.onprogress=function(){"image/jpeg"!==s.getResponseHeader("content-type")&&s.abort()},s.withCredentials=!1,s.open("GET",e,!0),s.responseType="arraybuffer",s.send(null)}else i("Error: the image is empty")}catch(e){i(e)}var r,o,a}))})(e).then((function(i){var n=function(e){try{var t,i=new DataView(e),n=void 0,s=void 0,r=void 0,o=void 0;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var a=i.byteLength,c=2;c+1<a;){if(255===i.getUint8(c)&&225===i.getUint8(c+1)){r=c;break}c++}if(r&&(n=r+10,"Exif"===function(e,t,i){var n,s="";for(n=t,i+=t;n<i;n++)s+=String.fromCharCode(e.getUint8(n));return s}(i,r+4,4))){var l=i.getUint16(n);if(((s=18761===l)||19789===l)&&42===i.getUint16(n+2,s)){var h=i.getUint32(n+4,s);h>=8&&(o=n+h)}}if(o)for(var d=i.getUint16(o,s),u=0;u<d;u++)if(c=o+12*u+2,274===i.getUint16(c,s)){c+=8,t=i.getUint16(c,s),i.setUint16(c,1,s);break}return t}catch(e){return null}}(i);t(i?{source:e,arrayBuffer:i,orientation:n}:{source:e,arrayBuffer:null,orientation:null})})).catch((function(i){console.warn(i),t({source:e,arrayBuffer:null,orientation:null})}))})));setTimeout((function(){n.then(t.onParseImage)}),this.transitionTime)}else setTimeout((function(){t.onParseImage({source:t.src})}),this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var e=this,t=this.$refs.image;t&&!this.imageLoaded&&(this.imageAttributes.height=t.naturalHeight,this.imageAttributes.width=t.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then((function(){e.$emit("ready"),e.onChange(!1)})))},onParseImage:function(e){var t=this,n=e.source,s=e.arrayBuffer,r=e.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,s&&r&&r>1?g(n)||!w(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([s])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(e){for(var t=[],i=new Uint8Array(e);i.length>0;){var n=i.subarray(0,8192);t.push(String.fromCharCode.apply(null,Array.from?Array.from(n):n.slice())),i=i.subarray(8192)}return"data:image/jpeg;base64,"+btoa(t.join(""))}(s):this.imageAttributes.src=n,b(this.defaultTransforms)?this.appliedImageTransforms=Re(this.defaultTransforms()):_(this.defaultTransforms)?this.appliedImageTransforms=Re(this.defaultTransforms):this.appliedImageTransforms=function(e){var t=Re({});if(e)switch(e){case 2:t.flip.horizontal=!0;break;case 3:t.rotate=-180;break;case 4:t.flip.vertical=!0;break;case 5:t.rotate=90,t.flip.vertical=!0;break;case 6:t.rotate=90;break;case 7:t.rotate=90,t.flip.horizontal=!0;break;case 8:t.rotate=-90}return t}(r),this.defaultImageTransforms=i(i({},this.appliedImageTransforms),{},{flip:i({},this.appliedImageTransforms.flip)}),this.$nextTick((function(){var e=t.$refs.image;e&&e.complete&&(function(e){return Boolean(e.naturalWidth)}(e)?t.onSuccessLoadImage():t.onFailLoadImage())}))},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(e){var t=this;this.transitionsOptions.enabled||this.awaitRender((function(){t.coordinates=t.moveAlgorithm(i(i({},t.getPublicProperties()),{},{positionRestrictions:be(t.positionRestrictions,t.visibleArea),coordinates:t.coordinates,event:t.normalizeEvent(e)})),t.onChange()}))},onResize:function(e){var t=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender((function(){var n=t.sizeRestrictions,s=Math.min(t.coordinates.width,t.coordinates.height,20*t.coefficient);t.coordinates=t.resizeAlgorithm(i(i({},t.getPublicProperties()),{},{positionRestrictions:be(t.positionRestrictions,t.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,t.visibleArea.width),maxHeight:Math.min(n.maxHeight,t.visibleArea.height),minWidth:Math.max(n.minWidth,s),minHeight:Math.max(n.minHeight,s)},event:t.normalizeEvent(e)})),t.onChange(),t.ticking=!1}))},onManipulateImage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=t.transitions,s=void 0!==n&&n,r=t.normalize,o=void 0===r||r;s&&this.enableTransitions();var a=function(e){var t=e.event,i=e.coordinates,n=e.visibleArea,s=e.sizeRestrictions,r=e.getAreaRestrictions,o=e.positionRestrictions,a=e.adjustStencil,c=t.scale,l=t.move,h=y({},n),d=y({},i),u=1,f=1,p=c.factor&&Math.abs(c.factor-1)>.001;h=q(h,{left:l.left||0,top:l.top||0});var g={stencil:{minimum:Math.max(s.minWidth?s.minWidth/d.width:0,s.minHeight?s.minHeight/d.height:0),maximum:Math.min(s.maxWidth?s.maxWidth/d.width:1/0,s.maxHeight?s.maxHeight/d.height:1/0,ee(d,o))},area:{maximum:ee(h,r({visibleArea:h,type:"resize"}))}};c.factor&&p&&(c.factor<1?(f=Math.max(c.factor,g.stencil.minimum))>1&&(f=1):c.factor>1&&(f=Math.min(c.factor,Math.min(g.area.maximum,g.stencil.maximum)))<1&&(f=1)),f&&(h=Z(h,f,c.center));var m=i.left-n.left,b=n.width+n.left-(i.width+i.left),v=i.top-n.top,w=n.height+n.top-(i.height+i.top);return h=se(h=q(h,te(h,{left:void 0!==o.left?o.left-m*f:void 0,top:void 0!==o.top?o.top-v*f:void 0,bottom:void 0!==o.bottom?o.bottom+w*f:void 0,right:void 0!==o.right?o.right+b*f:void 0})),r({visibleArea:h,type:"move"})),d.width=d.width*f,d.height=d.height*f,d.left=h.left+m*f,d.top=h.top+v*f,d=se(d,ue(V(h),o)),c.factor&&p&&a&&(c.factor>1?u=Math.min(g.area.maximum,c.factor)/f:c.factor<1&&(u=Math.max(d.height/h.height,d.width/h.width,c.factor/f)),1!==u&&(h=q(h=se(h=Z(h,u,c.factor>1?c.center:K(d)),r({visibleArea:h,type:"move"})),J(te(d,V(h)))))),{coordinates:d,visibleArea:h}}(i(i({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(e):e,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,l=a.coordinates;this.visibleArea=c,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),s&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.visibleArea,i=e.type,n=void 0===i?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:t,type:n})},getAspectRatio:function(e){var t,i,n=this.stencilProps,s=n.aspectRatio,r=n.minAspectRatio,o=n.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var a=this.$refs.stencil.aspectRatios();t=a.minimum,i=a.maximum}if(S(t)&&(t=S(s)?r:s),S(i)&&(i=S(s)?o:s),!e&&(S(t)||S(i))){var c=this.getStencilSize(),l=c?Q(c):null;S(t)&&(t=A(l)?l:void 0),S(i)&&(i=A(l)?l:void 0)}return{minimum:t,maximum:i}},getStencilSize:function(){if(this.stencilSize)return t=(e={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)}).boundaries,n=e.aspectRatio,ne(Q(s=b(i=e.stencilSize)?i({boundaries:t,aspectRatio:n}):i),n)&&(s=he({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:n.minimum,maximum:n.maximum}})),(s.width>t.width||s.height>t.height)&&(s=he({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:Q(s),maximum:Q(s)}})),s;var e,t,i,n,s},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return i({},H)},flip:function(e,t){var s=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transitions,n=void 0===s||s;if(!this.transitionsActive){n&&this.enableTransitions();var r=i({},this.imageTransforms.flip),a=function(e){var t=e.flip,i=e.previousFlip,n=e.rotate;e.aspectRatio;var s=e.getAreaRestrictions,r=e.coordinates,o=e.visibleArea,a=e.imageSize,c=y({},r),l=y({},o),h=i.horizontal!==t.horizontal,d=i.vertical!==t.vertical;if(h||d){var u=oe({left:a.width/2,top:a.height/2},-n),f=oe(K(c),-n),p=oe({left:h?u.left-(f.left-u.left):f.left,top:d?u.top-(f.top-u.top):f.top},n);c=q(c,W(p,K(c))),f=oe(K(l),-n),l=se(l=q(l,W(p=oe({left:h?u.left-(f.left-u.left):f.left,top:d?u.top-(f.top-u.top):f.top},n),K(l))),s({visibleArea:l,type:"move"}))}return{coordinates:c,visibleArea:l}}({flip:{horizontal:e?!r.horizontal:r.horizontal,vertical:t?!r.vertical:r.vertical},previousFlip:r,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),o=a.visibleArea,c=a.coordinates;e&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),t&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=o,this.coordinates=c,this.onChange(),n&&this.debouncedDisableTransitions()}},rotate:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).transitions,s=void 0===t||t;if(!this.transitionsActive){s&&this.enableTransitions();var n=i({},this.imageSize);this.appliedImageTransforms.rotate+=e;var r=function(e){var t=e.aspectRatio,i=e.getAreaRestrictions,n=e.coordinates,s=e.visibleArea,r=e.sizeRestrictions,o=e.positionRestrictions,a=e.imageSize,c=e.previousImageSize,l=e.angle,h=y({},n),d=y({},s),u=oe(K(y({left:0,top:0},c)),l);return(h=y(y({},he({sizeRestrictions:r,aspectRatio:t,width:h.width,height:h.height})),oe(K(h),l))).left-=u.left-a.width/2+h.width/2,h.top-=u.top-a.height/2+h.height/2,d=Z(d,ae(d,i({visibleArea:d,type:"resize"}))),{coordinates:h=se(h,o),visibleArea:d=se(d=q(d,W(K(h),K(n))),i({visibleArea:d,type:"move"}))}}({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:n,imageSize:this.imageSize,angle:e,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=r.visibleArea,o=r.coordinates,c=this.processAutoZoom("rotateImage",a,o);a=c.visibleArea,o=c.coordinates,this.visibleArea=a,this.coordinates=o,this.onChange(),s&&this.debouncedDisableTransitions()}}}},Ye=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"cropper",class:e.classes.cropper},[i("div",{ref:"stretcher",class:e.classes.stretcher}),e._v(" "),i("div",{class:e.classes.boundaries,style:e.boundariesStyle},[i(e.backgroundWrapperComponent,{tag:"component",class:e.classes.cropperWrapper,attrs:{"wheel-resize":e.settings.resizeImage.wheel,"touch-resize":e.settings.resizeImage.touch,"touch-move":e.settings.moveImage.touch,"mouse-move":e.settings.moveImage.mouse},on:{move:e.onManipulateImage,resize:e.onManipulateImage}},[i("div",{class:e.classes.background,style:e.boundariesStyle}),e._v(" "),i("div",{class:e.classes.imageWrapper},[i("img",{ref:"image",class:e.classes.image,style:e.imageStyle,attrs:{crossorigin:e.imageAttributes.crossOrigin,src:e.imageAttributes.src},on:{mousedown:function(e){e.preventDefault()}}})]),e._v(" "),i("div",{class:e.classes.foreground,style:e.boundariesStyle}),e._v(" "),i(e.stencilComponent,e._b({directives:[{name:"show",rawName:"v-show",value:e.imageLoaded,expression:"imageLoaded"}],ref:"stencil",tag:"component",attrs:{image:e.image,coordinates:e.coordinates,"stencil-coordinates":e.stencilCoordinates,transitions:e.transitionsOptions},on:{resize:e.onResize,"resize-end":e.onResizeEnd,move:e.onMove,"move-end":e.onMoveEnd}},"component",e.stencilProps,!1)),e._v(" "),e.canvas?i("canvas",{ref:"canvas",style:{display:"none"}}):e._e(),e._v(" "),e.canvas?i("canvas",{ref:"sourceCanvas",style:{display:"none"}}):e._e()],1)],1)])},staticRenderFns:[]},void 0,Ke,void 0,!1,void 0,!1,void 0,void 0,void 0);r.a.component("cropper",Ye),r.a.component("rectangle-stencil",He),r.a.component("circle-stencil",Ve),r.a.component("simple-handler",Ce),r.a.component("simple-line",Te)},function(e,t,n){var r,o,c,l=(r=new Date,o=4,c={setLogLevel:function(e){o=e==this.debug?1:e==this.info?2:e==this.warn?3:(this.error,4)},debug:function(e,t){void 0===console.debug&&(console.debug=console.log),1>=o&&console.debug("["+l.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)},log:function(e,t){this.debug(e.msg)},info:function(e,t){2>=o&&console.info("["+l.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)},warn:function(e,t){3>=o&&console.warn("["+l.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)},error:function(e,t){4>=o&&console.error("["+l.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)}},c);l.getDurationString=function(e,t){var n;function r(e,t){for(var a=(""+e).split(".");a[0].length<t;)a[0]="0"+a[0];return a.join(".")}e<0?(n=!0,e=-e):n=!1;var o=e/(t||1),c=Math.floor(o/3600);o-=3600*c;var l=Math.floor(o/60),h=1e3*(o-=60*l);return h-=1e3*(o=Math.floor(o)),h=Math.floor(h),(n?"-":"")+c+":"+r(l,2)+":"+r(o,2)+"."+r(h,3)},l.printRanges=function(e){var t=e.length;if(t>0){for(var n="",i=0;i<t;i++)i>0&&(n+=","),n+="["+l.getDurationString(e.start(i))+","+l.getDurationString(e.end(i))+"]";return n}return"(empty)"},t.Log=l;var h=function(e){if(!(e instanceof ArrayBuffer))throw"Needs an array buffer";this.buffer=e,this.dataview=new DataView(e),this.position=0};h.prototype.getPosition=function(){return this.position},h.prototype.getEndPosition=function(){return this.buffer.byteLength},h.prototype.getLength=function(){return this.buffer.byteLength},h.prototype.seek=function(e){var t=Math.max(0,Math.min(this.buffer.byteLength,e));return this.position=isNaN(t)||!isFinite(t)?0:t,!0},h.prototype.isEos=function(){return this.getPosition()>=this.getEndPosition()},h.prototype.readAnyInt=function(e,t){var n=0;if(this.position+e<=this.buffer.byteLength){switch(e){case 1:n=t?this.dataview.getInt8(this.position):this.dataview.getUint8(this.position);break;case 2:n=t?this.dataview.getInt16(this.position):this.dataview.getUint16(this.position);break;case 3:if(t)throw"No method for reading signed 24 bits values";n=this.dataview.getUint8(this.position)<<16,n|=this.dataview.getUint8(this.position+1)<<8,n|=this.dataview.getUint8(this.position+2);break;case 4:n=t?this.dataview.getInt32(this.position):this.dataview.getUint32(this.position);break;case 8:if(t)throw"No method for reading signed 64 bits values";n=this.dataview.getUint32(this.position)<<32,n|=this.dataview.getUint32(this.position+4);break;default:throw"readInt method not implemented for size: "+e}return this.position+=e,n}throw"Not enough bytes in buffer"},h.prototype.readUint8=function(){return this.readAnyInt(1,!1)},h.prototype.readUint16=function(){return this.readAnyInt(2,!1)},h.prototype.readUint24=function(){return this.readAnyInt(3,!1)},h.prototype.readUint32=function(){return this.readAnyInt(4,!1)},h.prototype.readUint64=function(){return this.readAnyInt(8,!1)},h.prototype.readString=function(e){if(this.position+e<=this.buffer.byteLength){for(var s="",i=0;i<e;i++)s+=String.fromCharCode(this.readUint8());return s}throw"Not enough bytes in buffer"},h.prototype.readCString=function(){for(var e=[];;){var b=this.readUint8();if(0===b)break;e.push(b)}return String.fromCharCode.apply(null,e)},h.prototype.readInt8=function(){return this.readAnyInt(1,!0)},h.prototype.readInt16=function(){return this.readAnyInt(2,!0)},h.prototype.readInt32=function(){return this.readAnyInt(4,!0)},h.prototype.readInt64=function(){return this.readAnyInt(8,!1)},h.prototype.readUint8Array=function(e){for(var t=new Uint8Array(e),i=0;i<e;i++)t[i]=this.readUint8();return t},h.prototype.readInt16Array=function(e){for(var t=new Int16Array(e),i=0;i<e;i++)t[i]=this.readInt16();return t},h.prototype.readUint16Array=function(e){for(var t=new Int16Array(e),i=0;i<e;i++)t[i]=this.readUint16();return t},h.prototype.readUint32Array=function(e){for(var t=new Uint32Array(e),i=0;i<e;i++)t[i]=this.readUint32();return t},h.prototype.readInt32Array=function(e){for(var t=new Int32Array(e),i=0;i<e;i++)t[i]=this.readInt32();return t},t.MP4BoxStream=h;var d=function(e,t,n){this._byteOffset=t||0,e instanceof ArrayBuffer?this.buffer=e:"object"==typeof e?(this.dataView=e,t&&(this._byteOffset+=t)):this.buffer=new ArrayBuffer(e||0),this.position=0,this.endianness=null==n?d.LITTLE_ENDIAN:n};d.prototype={},d.prototype.getPosition=function(){return this.position},d.prototype._realloc=function(e){if(this._dynamicSize){var t=this._byteOffset+this.position+e,n=this._buffer.byteLength;if(t<=n)t>this._byteLength&&(this._byteLength=t);else{for(n<1&&(n=1);t>n;)n*=2;var r=new ArrayBuffer(n),o=new Uint8Array(this._buffer);new Uint8Array(r,0,o.length).set(o),this.buffer=r,this._byteLength=t}}},d.prototype._trimAlloc=function(){if(this._byteLength!=this._buffer.byteLength){var e=new ArrayBuffer(this._byteLength),t=new Uint8Array(e),n=new Uint8Array(this._buffer,0,t.length);t.set(n),this.buffer=e}},d.BIG_ENDIAN=!1,d.LITTLE_ENDIAN=!0,d.prototype._byteLength=0,Object.defineProperty(d.prototype,"byteLength",{get:function(){return this._byteLength-this._byteOffset}}),Object.defineProperty(d.prototype,"buffer",{get:function(){return this._trimAlloc(),this._buffer},set:function(e){this._buffer=e,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength}}),Object.defineProperty(d.prototype,"byteOffset",{get:function(){return this._byteOffset},set:function(e){this._byteOffset=e,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength}}),Object.defineProperty(d.prototype,"dataView",{get:function(){return this._dataView},set:function(e){this._byteOffset=e.byteOffset,this._buffer=e.buffer,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._byteOffset+e.byteLength}}),d.prototype.seek=function(e){var t=Math.max(0,Math.min(this.byteLength,e));this.position=isNaN(t)||!isFinite(t)?0:t},d.prototype.isEof=function(){return this.position>=this._byteLength},d.prototype.mapUint8Array=function(e){this._realloc(1*e);var t=new Uint8Array(this._buffer,this.byteOffset+this.position,e);return this.position+=1*e,t},d.prototype.readInt32Array=function(e,t){e=null==e?this.byteLength-this.position/4:e;var n=new Int32Array(e);return d.memcpy(n.buffer,0,this.buffer,this.byteOffset+this.position,e*n.BYTES_PER_ELEMENT),d.arrayToNative(n,null==t?this.endianness:t),this.position+=n.byteLength,n},d.prototype.readInt16Array=function(e,t){e=null==e?this.byteLength-this.position/2:e;var n=new Int16Array(e);return d.memcpy(n.buffer,0,this.buffer,this.byteOffset+this.position,e*n.BYTES_PER_ELEMENT),d.arrayToNative(n,null==t?this.endianness:t),this.position+=n.byteLength,n},d.prototype.readInt8Array=function(e){e=null==e?this.byteLength-this.position:e;var t=new Int8Array(e);return d.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,e*t.BYTES_PER_ELEMENT),this.position+=t.byteLength,t},d.prototype.readUint32Array=function(e,t){e=null==e?this.byteLength-this.position/4:e;var n=new Uint32Array(e);return d.memcpy(n.buffer,0,this.buffer,this.byteOffset+this.position,e*n.BYTES_PER_ELEMENT),d.arrayToNative(n,null==t?this.endianness:t),this.position+=n.byteLength,n},d.prototype.readUint16Array=function(e,t){e=null==e?this.byteLength-this.position/2:e;var n=new Uint16Array(e);return d.memcpy(n.buffer,0,this.buffer,this.byteOffset+this.position,e*n.BYTES_PER_ELEMENT),d.arrayToNative(n,null==t?this.endianness:t),this.position+=n.byteLength,n},d.prototype.readUint8Array=function(e){e=null==e?this.byteLength-this.position:e;var t=new Uint8Array(e);return d.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,e*t.BYTES_PER_ELEMENT),this.position+=t.byteLength,t},d.prototype.readFloat64Array=function(e,t){e=null==e?this.byteLength-this.position/8:e;var n=new Float64Array(e);return d.memcpy(n.buffer,0,this.buffer,this.byteOffset+this.position,e*n.BYTES_PER_ELEMENT),d.arrayToNative(n,null==t?this.endianness:t),this.position+=n.byteLength,n},d.prototype.readFloat32Array=function(e,t){e=null==e?this.byteLength-this.position/4:e;var n=new Float32Array(e);return d.memcpy(n.buffer,0,this.buffer,this.byteOffset+this.position,e*n.BYTES_PER_ELEMENT),d.arrayToNative(n,null==t?this.endianness:t),this.position+=n.byteLength,n},d.prototype.readInt32=function(e){var t=this._dataView.getInt32(this.position,null==e?this.endianness:e);return this.position+=4,t},d.prototype.readInt16=function(e){var t=this._dataView.getInt16(this.position,null==e?this.endianness:e);return this.position+=2,t},d.prototype.readInt8=function(){var e=this._dataView.getInt8(this.position);return this.position+=1,e},d.prototype.readUint32=function(e){var t=this._dataView.getUint32(this.position,null==e?this.endianness:e);return this.position+=4,t},d.prototype.readUint16=function(e){var t=this._dataView.getUint16(this.position,null==e?this.endianness:e);return this.position+=2,t},d.prototype.readUint8=function(){var e=this._dataView.getUint8(this.position);return this.position+=1,e},d.prototype.readFloat32=function(e){var t=this._dataView.getFloat32(this.position,null==e?this.endianness:e);return this.position+=4,t},d.prototype.readFloat64=function(e){var t=this._dataView.getFloat64(this.position,null==e?this.endianness:e);return this.position+=8,t},d.endianness=new Int8Array(new Int16Array([1]).buffer)[0]>0,d.memcpy=function(e,t,n,r,o){var c=new Uint8Array(e,t,o),l=new Uint8Array(n,r,o);c.set(l)},d.arrayToNative=function(e,t){return t==this.endianness?e:this.flipArrayEndianness(e)},d.nativeToEndian=function(e,t){return this.endianness==t?e:this.flipArrayEndianness(e)},d.flipArrayEndianness=function(e){for(var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),i=0;i<e.byteLength;i+=e.BYTES_PER_ELEMENT)for(var n=i+e.BYTES_PER_ELEMENT-1,r=i;n>r;n--,r++){var o=t[r];t[r]=t[n],t[n]=o}return e},d.prototype.failurePosition=0,String.fromCharCodeUint8=function(e){for(var t=[],i=0;i<e.length;i++)t[i]=e[i];return String.fromCharCode.apply(null,t)},d.prototype.readString=function(e,t){return null==t||"ASCII"==t?String.fromCharCodeUint8.apply(null,[this.mapUint8Array(null==e?this.byteLength-this.position:e)]):new TextDecoder(t).decode(this.mapUint8Array(e))},d.prototype.readCString=function(e){var t=this.byteLength-this.position,n=new Uint8Array(this._buffer,this._byteOffset+this.position),r=t;null!=e&&(r=Math.min(e,t));for(var i=0;i<r&&0!==n[i];i++);var s=String.fromCharCodeUint8.apply(null,[this.mapUint8Array(i)]);return null!=e?this.position+=r-i:i!=t&&(this.position+=1),s};var f=Math.pow(2,32);d.prototype.readInt64=function(){return this.readInt32()*f+this.readUint32()},d.prototype.readUint64=function(){return this.readUint32()*f+this.readUint32()},d.prototype.readInt64=function(){return this.readUint32()*f+this.readUint32()},d.prototype.readUint24=function(){return(this.readUint8()<<16)+(this.readUint8()<<8)+this.readUint8()},t.DataStream=d,d.prototype.save=function(e){var t=new Blob([this.buffer]);if(!window.URL||!URL.createObjectURL)throw"DataStream.save: Can't create object URL.";var n=window.URL.createObjectURL(t),a=document.createElement("a");document.body.appendChild(a),a.setAttribute("href",n),a.setAttribute("download",e),a.setAttribute("target","_self"),a.click(),window.URL.revokeObjectURL(n)},d.prototype._dynamicSize=!0,Object.defineProperty(d.prototype,"dynamicSize",{get:function(){return this._dynamicSize},set:function(e){e||this._trimAlloc(),this._dynamicSize=e}}),d.prototype.shift=function(e){var t=new ArrayBuffer(this._byteLength-e),n=new Uint8Array(t),r=new Uint8Array(this._buffer,e,n.length);n.set(r),this.buffer=t,this.position-=e},d.prototype.writeInt32Array=function(e,t){if(this._realloc(4*e.length),e instanceof Int32Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapInt32Array(e.length,t);else for(var i=0;i<e.length;i++)this.writeInt32(e[i],t)},d.prototype.writeInt16Array=function(e,t){if(this._realloc(2*e.length),e instanceof Int16Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapInt16Array(e.length,t);else for(var i=0;i<e.length;i++)this.writeInt16(e[i],t)},d.prototype.writeInt8Array=function(e){if(this._realloc(1*e.length),e instanceof Int8Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapInt8Array(e.length);else for(var i=0;i<e.length;i++)this.writeInt8(e[i])},d.prototype.writeUint32Array=function(e,t){if(this._realloc(4*e.length),e instanceof Uint32Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapUint32Array(e.length,t);else for(var i=0;i<e.length;i++)this.writeUint32(e[i],t)},d.prototype.writeUint16Array=function(e,t){if(this._realloc(2*e.length),e instanceof Uint16Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapUint16Array(e.length,t);else for(var i=0;i<e.length;i++)this.writeUint16(e[i],t)},d.prototype.writeUint8Array=function(e){if(this._realloc(1*e.length),e instanceof Uint8Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapUint8Array(e.length);else for(var i=0;i<e.length;i++)this.writeUint8(e[i])},d.prototype.writeFloat64Array=function(e,t){if(this._realloc(8*e.length),e instanceof Float64Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapFloat64Array(e.length,t);else for(var i=0;i<e.length;i++)this.writeFloat64(e[i],t)},d.prototype.writeFloat32Array=function(e,t){if(this._realloc(4*e.length),e instanceof Float32Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)d.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapFloat32Array(e.length,t);else for(var i=0;i<e.length;i++)this.writeFloat32(e[i],t)},d.prototype.writeInt32=function(e,t){this._realloc(4),this._dataView.setInt32(this.position,e,null==t?this.endianness:t),this.position+=4},d.prototype.writeInt16=function(e,t){this._realloc(2),this._dataView.setInt16(this.position,e,null==t?this.endianness:t),this.position+=2},d.prototype.writeInt8=function(e){this._realloc(1),this._dataView.setInt8(this.position,e),this.position+=1},d.prototype.writeUint32=function(e,t){this._realloc(4),this._dataView.setUint32(this.position,e,null==t?this.endianness:t),this.position+=4},d.prototype.writeUint16=function(e,t){this._realloc(2),this._dataView.setUint16(this.position,e,null==t?this.endianness:t),this.position+=2},d.prototype.writeUint8=function(e){this._realloc(1),this._dataView.setUint8(this.position,e),this.position+=1},d.prototype.writeFloat32=function(e,t){this._realloc(4),this._dataView.setFloat32(this.position,e,null==t?this.endianness:t),this.position+=4},d.prototype.writeFloat64=function(e,t){this._realloc(8),this._dataView.setFloat64(this.position,e,null==t?this.endianness:t),this.position+=8},d.prototype.writeUCS2String=function(e,t,n){null==n&&(n=e.length);for(var i=0;i<e.length&&i<n;i++)this.writeUint16(e.charCodeAt(i),t);for(;i<n;i++)this.writeUint16(0)},d.prototype.writeString=function(s,e,t){var i=0;if(null==e||"ASCII"==e)if(null!=t){var n=Math.min(s.length,t);for(i=0;i<n;i++)this.writeUint8(s.charCodeAt(i));for(;i<t;i++)this.writeUint8(0)}else for(i=0;i<s.length;i++)this.writeUint8(s.charCodeAt(i));else this.writeUint8Array(new TextEncoder(e).encode(s.substring(0,t)))},d.prototype.writeCString=function(s,e){var i=0;if(null!=e){var t=Math.min(s.length,e);for(i=0;i<t;i++)this.writeUint8(s.charCodeAt(i));for(;i<e;i++)this.writeUint8(0)}else{for(i=0;i<s.length;i++)this.writeUint8(s.charCodeAt(i));this.writeUint8(0)}},d.prototype.writeStruct=function(e,t){for(var i=0;i<e.length;i+=2){var n=e[i+1];this.writeType(n,t[e[i]],t)}},d.prototype.writeType=function(e,t,n){var r;if("function"==typeof e)return e(this,t);if("object"==typeof e&&!(e instanceof Array))return e.set(this,t,n);var o=null,c="ASCII",l=this.position;switch("string"==typeof e&&/:/.test(e)&&(r=e.split(":"),e=r[0],o=parseInt(r[1])),"string"==typeof e&&/,/.test(e)&&(r=e.split(","),e=r[0],c=parseInt(r[1])),e){case"uint8":this.writeUint8(t);break;case"int8":this.writeInt8(t);break;case"uint16":this.writeUint16(t,this.endianness);break;case"int16":this.writeInt16(t,this.endianness);break;case"uint32":this.writeUint32(t,this.endianness);break;case"int32":this.writeInt32(t,this.endianness);break;case"float32":this.writeFloat32(t,this.endianness);break;case"float64":this.writeFloat64(t,this.endianness);break;case"uint16be":this.writeUint16(t,d.BIG_ENDIAN);break;case"int16be":this.writeInt16(t,d.BIG_ENDIAN);break;case"uint32be":this.writeUint32(t,d.BIG_ENDIAN);break;case"int32be":this.writeInt32(t,d.BIG_ENDIAN);break;case"float32be":this.writeFloat32(t,d.BIG_ENDIAN);break;case"float64be":this.writeFloat64(t,d.BIG_ENDIAN);break;case"uint16le":this.writeUint16(t,d.LITTLE_ENDIAN);break;case"int16le":this.writeInt16(t,d.LITTLE_ENDIAN);break;case"uint32le":this.writeUint32(t,d.LITTLE_ENDIAN);break;case"int32le":this.writeInt32(t,d.LITTLE_ENDIAN);break;case"float32le":this.writeFloat32(t,d.LITTLE_ENDIAN);break;case"float64le":this.writeFloat64(t,d.LITTLE_ENDIAN);break;case"cstring":this.writeCString(t,o);break;case"string":this.writeString(t,c,o);break;case"u16string":this.writeUCS2String(t,this.endianness,o);break;case"u16stringle":this.writeUCS2String(t,d.LITTLE_ENDIAN,o);break;case"u16stringbe":this.writeUCS2String(t,d.BIG_ENDIAN,o);break;default:if(3==e.length){for(var h=e[1],i=0;i<t.length;i++)this.writeType(h,t[i]);break}this.writeStruct(e,t)}null!=o&&(this.position=l,this._realloc(o),this.position=l+o)},d.prototype.writeUint64=function(e){var t=Math.floor(e/f);this.writeUint32(t),this.writeUint32(4294967295&e)},d.prototype.writeUint24=function(e){this.writeUint8((16711680&e)>>16),this.writeUint8((65280&e)>>8),this.writeUint8(255&e)},d.prototype.adjustUint32=function(e,t){var n=this.position;this.seek(e),this.writeUint32(t),this.seek(n)},d.prototype.mapInt32Array=function(e,t){this._realloc(4*e);var n=new Int32Array(this._buffer,this.byteOffset+this.position,e);return d.arrayToNative(n,null==t?this.endianness:t),this.position+=4*e,n},d.prototype.mapInt16Array=function(e,t){this._realloc(2*e);var n=new Int16Array(this._buffer,this.byteOffset+this.position,e);return d.arrayToNative(n,null==t?this.endianness:t),this.position+=2*e,n},d.prototype.mapInt8Array=function(e){this._realloc(1*e);var t=new Int8Array(this._buffer,this.byteOffset+this.position,e);return this.position+=1*e,t},d.prototype.mapUint32Array=function(e,t){this._realloc(4*e);var n=new Uint32Array(this._buffer,this.byteOffset+this.position,e);return d.arrayToNative(n,null==t?this.endianness:t),this.position+=4*e,n},d.prototype.mapUint16Array=function(e,t){this._realloc(2*e);var n=new Uint16Array(this._buffer,this.byteOffset+this.position,e);return d.arrayToNative(n,null==t?this.endianness:t),this.position+=2*e,n},d.prototype.mapFloat64Array=function(e,t){this._realloc(8*e);var n=new Float64Array(this._buffer,this.byteOffset+this.position,e);return d.arrayToNative(n,null==t?this.endianness:t),this.position+=8*e,n},d.prototype.mapFloat32Array=function(e,t){this._realloc(4*e);var n=new Float32Array(this._buffer,this.byteOffset+this.position,e);return d.arrayToNative(n,null==t?this.endianness:t),this.position+=4*e,n};var m=function(e){this.buffers=[],this.bufferIndex=-1,e&&(this.insertBuffer(e),this.bufferIndex=0)};(m.prototype=new d(new ArrayBuffer,0,d.BIG_ENDIAN)).initialized=function(){var e;return this.bufferIndex>-1||(this.buffers.length>0?0===(e=this.buffers[0]).fileStart?(this.buffer=e,this.bufferIndex=0,l.debug("MultiBufferStream","Stream ready for parsing"),!0):(l.warn("MultiBufferStream","The first buffer should have a fileStart of 0"),this.logBufferLevel(),!1):(l.warn("MultiBufferStream","No buffer to start parsing from"),this.logBufferLevel(),!1))},ArrayBuffer.concat=function(e,t){l.debug("ArrayBuffer","Trying to create a new buffer of size: "+(e.byteLength+t.byteLength));var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer},m.prototype.reduceBuffer=function(e,t,n){var r;return(r=new Uint8Array(n)).set(new Uint8Array(e,t,n)),r.buffer.fileStart=e.fileStart+t,r.buffer.usedBytes=0,r.buffer},m.prototype.insertBuffer=function(e){for(var t=!0,i=0;i<this.buffers.length;i++){var b=this.buffers[i];if(e.fileStart<=b.fileStart){if(e.fileStart===b.fileStart){if(e.byteLength>b.byteLength){this.buffers.splice(i,1),i--;continue}l.warn("MultiBufferStream","Buffer (fileStart: "+e.fileStart+" - Length: "+e.byteLength+") already appended, ignoring")}else e.fileStart+e.byteLength<=b.fileStart||(e=this.reduceBuffer(e,0,b.fileStart-e.fileStart)),l.debug("MultiBufferStream","Appending new buffer (fileStart: "+e.fileStart+" - Length: "+e.byteLength+")"),this.buffers.splice(i,0,e),0===i&&(this.buffer=e);t=!1;break}if(e.fileStart<b.fileStart+b.byteLength){var n=b.fileStart+b.byteLength-e.fileStart,r=e.byteLength-n;if(!(r>0)){t=!1;break}e=this.reduceBuffer(e,n,r)}}t&&(l.debug("MultiBufferStream","Appending new buffer (fileStart: "+e.fileStart+" - Length: "+e.byteLength+")"),this.buffers.push(e),0===i&&(this.buffer=e))},m.prototype.logBufferLevel=function(e){var i,t,n,r,o,c=[],h="";for(n=0,r=0,i=0;i<this.buffers.length;i++)t=this.buffers[i],0===i?(o={},c.push(o),o.start=t.fileStart,o.end=t.fileStart+t.byteLength,h+="["+o.start+"-"):o.end===t.fileStart?o.end=t.fileStart+t.byteLength:((o={}).start=t.fileStart,h+=c[c.length-1].end-1+"], ["+o.start+"-",o.end=t.fileStart+t.byteLength,c.push(o)),n+=t.usedBytes,r+=t.byteLength;c.length>0&&(h+=o.end-1+"]");var d=e?l.info:l.debug;0===this.buffers.length?d("MultiBufferStream","No more buffer in memory"):d("MultiBufferStream",this.buffers.length+" stored buffer(s) ("+n+"/"+r+" bytes), continuous ranges: "+h)},m.prototype.cleanBuffers=function(){var i,e;for(i=0;i<this.buffers.length;i++)(e=this.buffers[i]).usedBytes===e.byteLength&&(l.debug("MultiBufferStream","Removing buffer #"+i),this.buffers.splice(i,1),i--)},m.prototype.mergeNextBuffer=function(){var e;if(this.bufferIndex+1<this.buffers.length){if((e=this.buffers[this.bufferIndex+1]).fileStart===this.buffer.fileStart+this.buffer.byteLength){var t=this.buffer.byteLength,n=this.buffer.usedBytes,r=this.buffer.fileStart;return this.buffers[this.bufferIndex]=ArrayBuffer.concat(this.buffer,e),this.buffer=this.buffers[this.bufferIndex],this.buffers.splice(this.bufferIndex+1,1),this.buffer.usedBytes=n,this.buffer.fileStart=r,l.debug("ISOFile","Concatenating buffer for box parsing (length: "+t+"->"+this.buffer.byteLength+")"),!0}return!1}return!1},m.prototype.findPosition=function(e,t,n){var i,r=null,o=-1;for(i=!0===e?0:this.bufferIndex;i<this.buffers.length&&(r=this.buffers[i]).fileStart<=t;)o=i,n&&(r.fileStart+r.byteLength<=t?r.usedBytes=r.byteLength:r.usedBytes=t-r.fileStart,this.logBufferLevel()),i++;return-1!==o&&(r=this.buffers[o]).fileStart+r.byteLength>=t?(l.debug("MultiBufferStream","Found position in existing buffer #"+o),o):-1},m.prototype.findEndContiguousBuf=function(e){var i,t,n,r=void 0!==e?e:this.bufferIndex;if(t=this.buffers[r],this.buffers.length>r+1)for(i=r+1;i<this.buffers.length&&(n=this.buffers[i]).fileStart===t.fileStart+t.byteLength;i++)t=n;return t.fileStart+t.byteLength},m.prototype.getEndFilePositionAfter=function(e){var t=this.findPosition(!0,e,!1);return-1!==t?this.findEndContiguousBuf(t):e},m.prototype.addUsedBytes=function(e){this.buffer.usedBytes+=e,this.logBufferLevel()},m.prototype.setAllUsedBytes=function(){this.buffer.usedBytes=this.buffer.byteLength,this.logBufferLevel()},m.prototype.seek=function(e,t,n){var r;return-1!==(r=this.findPosition(t,e,n))?(this.buffer=this.buffers[r],this.bufferIndex=r,this.position=e-this.buffer.fileStart,l.debug("MultiBufferStream","Repositioning parser at buffer position: "+this.position),!0):(l.debug("MultiBufferStream","Position "+e+" not found in buffered data"),!1)},m.prototype.getPosition=function(){if(-1===this.bufferIndex||null===this.buffers[this.bufferIndex])throw"Error accessing position in the MultiBufferStream";return this.buffers[this.bufferIndex].fileStart+this.position},m.prototype.getLength=function(){return this.byteLength},m.prototype.getEndPosition=function(){if(-1===this.bufferIndex||null===this.buffers[this.bufferIndex])throw"Error accessing position in the MultiBufferStream";return this.buffers[this.bufferIndex].fileStart+this.byteLength},t.MultiBufferStream=m;var v=function(){var e=[];e[3]="ES_Descriptor",e[4]="DecoderConfigDescriptor",e[5]="DecoderSpecificInfo",e[6]="SLConfigDescriptor",this.getDescriptorName=function(t){return e[t]};var t=this,n={};return this.parseOneDescriptor=function(t){var r,desc,o,c=0;for(r=t.readUint8(),o=t.readUint8();128&o;)c=(127&o)<<7,o=t.readUint8();return c+=127&o,l.debug("MPEG4DescriptorParser","Found "+(e[r]||"Descriptor "+r)+", size "+c+" at position "+t.getPosition()),(desc=e[r]?new n[e[r]](c):new n.Descriptor(c)).parse(t),desc},n.Descriptor=function(e,t){this.tag=e,this.size=t,this.descs=[]},n.Descriptor.prototype.parse=function(e){this.data=e.readUint8Array(this.size)},n.Descriptor.prototype.findDescriptor=function(e){for(var i=0;i<this.descs.length;i++)if(this.descs[i].tag==e)return this.descs[i];return null},n.Descriptor.prototype.parseRemainingDescriptors=function(e){for(var n=e.position;e.position<n+this.size;){var desc=t.parseOneDescriptor(e);this.descs.push(desc)}},n.ES_Descriptor=function(e){n.Descriptor.call(this,3,e)},n.ES_Descriptor.prototype=new n.Descriptor,n.ES_Descriptor.prototype.parse=function(e){if(this.ES_ID=e.readUint16(),this.flags=e.readUint8(),this.size-=3,128&this.flags?(this.dependsOn_ES_ID=e.readUint16(),this.size-=2):this.dependsOn_ES_ID=0,64&this.flags){var t=e.readUint8();this.URL=e.readString(t),this.size-=t+1}else this.URL="";32&this.flags?(this.OCR_ES_ID=e.readUint16(),this.size-=2):this.OCR_ES_ID=0,this.parseRemainingDescriptors(e)},n.ES_Descriptor.prototype.getOTI=function(e){var t=this.findDescriptor(4);return t?t.oti:0},n.ES_Descriptor.prototype.getAudioConfig=function(e){var t=this.findDescriptor(4);if(!t)return null;var n=t.findDescriptor(5);if(n&&n.data){var r=(248&n.data[0])>>3;return 31===r&&n.data.length>=2&&(r=32+((7&n.data[0])<<3)+((224&n.data[1])>>5)),r}return null},n.DecoderConfigDescriptor=function(e){n.Descriptor.call(this,4,e)},n.DecoderConfigDescriptor.prototype=new n.Descriptor,n.DecoderConfigDescriptor.prototype.parse=function(e){this.oti=e.readUint8(),this.streamType=e.readUint8(),this.bufferSize=e.readUint24(),this.maxBitrate=e.readUint32(),this.avgBitrate=e.readUint32(),this.size-=13,this.parseRemainingDescriptors(e)},n.DecoderSpecificInfo=function(e){n.Descriptor.call(this,5,e)},n.DecoderSpecificInfo.prototype=new n.Descriptor,n.SLConfigDescriptor=function(e){n.Descriptor.call(this,6,e)},n.SLConfigDescriptor.prototype=new n.Descriptor,this};t.MPEG4DescriptorParser=v;var y={ERR_INVALID_DATA:-1,ERR_NOT_ENOUGH_DATA:0,OK:1,BASIC_BOXES:["mdat","idat","free","skip","meco","strk"],FULL_BOXES:["hmhd","nmhd","iods","xml ","bxml","ipro","mere"],CONTAINER_BOXES:[["moov",["trak","pssh"]],["trak"],["edts"],["mdia"],["minf"],["dinf"],["stbl",["sgpd","sbgp"]],["mvex",["trex"]],["moof",["traf"]],["traf",["trun","sgpd","sbgp"]],["vttc"],["tref"],["iref"],["mfra",["tfra"]],["meco"],["hnti"],["hinf"],["strk"],["strd"],["sinf"],["rinf"],["schi"],["trgr"],["udta",["kind"]],["iprp",["ipma"]],["ipco"]],boxCodes:[],fullBoxCodes:[],containerBoxCodes:[],sampleEntryCodes:{},sampleGroupEntryCodes:[],trackGroupTypes:[],UUIDBoxes:{},UUIDs:[],initialize:function(){y.FullBox.prototype=new y.Box,y.ContainerBox.prototype=new y.Box,y.SampleEntry.prototype=new y.Box,y.TrackGroupTypeBox.prototype=new y.FullBox,y.BASIC_BOXES.forEach((function(e){y.createBoxCtor(e)})),y.FULL_BOXES.forEach((function(e){y.createFullBoxCtor(e)})),y.CONTAINER_BOXES.forEach((function(e){y.createContainerBoxCtor(e[0],null,e[1])}))},Box:function(e,t,n){this.type=e,this.size=t,this.uuid=n},FullBox:function(e,t,n){y.Box.call(this,e,t,n),this.flags=0,this.version=0},ContainerBox:function(e,t,n){y.Box.call(this,e,t,n),this.boxes=[]},SampleEntry:function(e,t,n,r){y.ContainerBox.call(this,e,t),this.hdr_size=n,this.start=r},SampleGroupEntry:function(e){this.grouping_type=e},TrackGroupTypeBox:function(e,t){y.FullBox.call(this,e,t)},createBoxCtor:function(e,t){y.boxCodes.push(e),y[e+"Box"]=function(t){y.Box.call(this,e,t)},y[e+"Box"].prototype=new y.Box,t&&(y[e+"Box"].prototype.parse=t)},createFullBoxCtor:function(e,t){y[e+"Box"]=function(t){y.FullBox.call(this,e,t)},y[e+"Box"].prototype=new y.FullBox,y[e+"Box"].prototype.parse=function(e){this.parseFullHeader(e),t&&t.call(this,e)}},addSubBoxArrays:function(e){if(e){this.subBoxNames=e;for(var t=e.length,n=0;n<t;n++)this[e[n]+"s"]=[]}},createContainerBoxCtor:function(e,t,n){y[e+"Box"]=function(t){y.ContainerBox.call(this,e,t),y.addSubBoxArrays.call(this,n)},y[e+"Box"].prototype=new y.ContainerBox,t&&(y[e+"Box"].prototype.parse=t)},createMediaSampleEntryCtor:function(e,t,n){y.sampleEntryCodes[e]=[],y[e+"SampleEntry"]=function(e,t){y.SampleEntry.call(this,e,t),y.addSubBoxArrays.call(this,n)},y[e+"SampleEntry"].prototype=new y.SampleEntry,t&&(y[e+"SampleEntry"].prototype.parse=t)},createSampleEntryCtor:function(e,t,n,r){y.sampleEntryCodes[e].push(t),y[t+"SampleEntry"]=function(n){y[e+"SampleEntry"].call(this,t,n),y.addSubBoxArrays.call(this,r)},y[t+"SampleEntry"].prototype=new y[e+"SampleEntry"],n&&(y[t+"SampleEntry"].prototype.parse=n)},createEncryptedSampleEntryCtor:function(e,t,n){y.createSampleEntryCtor.call(this,e,t,n,["sinf"])},createSampleGroupCtor:function(e,t){y[e+"SampleGroupEntry"]=function(t){y.SampleGroupEntry.call(this,e,t)},y[e+"SampleGroupEntry"].prototype=new y.SampleGroupEntry,t&&(y[e+"SampleGroupEntry"].prototype.parse=t)},createTrackGroupCtor:function(e,t){y[e+"TrackGroupTypeBox"]=function(t){y.TrackGroupTypeBox.call(this,e,t)},y[e+"TrackGroupTypeBox"].prototype=new y.TrackGroupTypeBox,t&&(y[e+"TrackGroupTypeBox"].prototype.parse=t)},createUUIDBox:function(e,t,n,r){y.UUIDs.push(e),y.UUIDBoxes[e]=function(r){t?y.FullBox.call(this,"uuid",r,e):n?y.ContainerBox.call(this,"uuid",r,e):y.Box.call(this,"uuid",r,e)},y.UUIDBoxes[e].prototype=t?new y.FullBox:n?new y.ContainerBox:new y.Box,r&&(y.UUIDBoxes[e].prototype.parse=t?function(e){this.parseFullHeader(e),r&&r.call(this,e)}:r)}};y.initialize(),y.TKHD_FLAG_ENABLED=1,y.TKHD_FLAG_IN_MOVIE=2,y.TKHD_FLAG_IN_PREVIEW=4,y.TFHD_FLAG_BASE_DATA_OFFSET=1,y.TFHD_FLAG_SAMPLE_DESC=2,y.TFHD_FLAG_SAMPLE_DUR=8,y.TFHD_FLAG_SAMPLE_SIZE=16,y.TFHD_FLAG_SAMPLE_FLAGS=32,y.TFHD_FLAG_DUR_EMPTY=65536,y.TFHD_FLAG_DEFAULT_BASE_IS_MOOF=131072,y.TRUN_FLAGS_DATA_OFFSET=1,y.TRUN_FLAGS_FIRST_FLAG=4,y.TRUN_FLAGS_DURATION=256,y.TRUN_FLAGS_SIZE=512,y.TRUN_FLAGS_FLAGS=1024,y.TRUN_FLAGS_CTS_OFFSET=2048,y.Box.prototype.add=function(e){return this.addBox(new y[e+"Box"])},y.Box.prototype.addBox=function(e){return this.boxes.push(e),this[e.type+"s"]?this[e.type+"s"].push(e):this[e.type]=e,e},y.Box.prototype.set=function(e,t){return this[e]=t,this},y.Box.prototype.addEntry=function(e,t){var n=t||"entries";return this[n]||(this[n]=[]),this[n].push(e),this},t.BoxParser=y,y.parseUUID=function(e){return y.parseHex16(e)},y.parseHex16=function(e){for(var t="",i=0;i<16;i++){var n=e.readUint8().toString(16);t+=1===n.length?"0"+n:n}return t},y.parseOneBox=function(e,t,n){var r,o,c,h=e.getPosition(),d=0;if(e.getEndPosition()-h<8)return l.debug("BoxParser","Not enough data in stream to parse the type and size of the box"),{code:y.ERR_NOT_ENOUGH_DATA};if(n&&n<8)return l.debug("BoxParser","Not enough bytes left in the parent box to parse a new box"),{code:y.ERR_NOT_ENOUGH_DATA};var f=e.readUint32(),m=e.readString(4),v=m;if(l.debug("BoxParser","Found box of type '"+m+"' and size "+f+" at position "+h),d=8,"uuid"==m){if(e.getEndPosition()-e.getPosition()<16||n-d<16)return e.seek(h),l.debug("BoxParser","Not enough bytes left in the parent box to parse a UUID box"),{code:y.ERR_NOT_ENOUGH_DATA};d+=16,v=c=y.parseUUID(e)}if(1==f){if(e.getEndPosition()-e.getPosition()<8||n&&n-d<8)return e.seek(h),l.warn("BoxParser",'Not enough data in stream to parse the extended size of the "'+m+'" box'),{code:y.ERR_NOT_ENOUGH_DATA};f=e.readUint64(),d+=8}else if(0===f)if(n)f=n;else if("mdat"!==m)return l.error("BoxParser","Unlimited box size not supported for type: '"+m+"'"),r=new y.Box(m,f),{code:y.OK,box:r,size:r.size};return 0!==f&&f<d?(l.error("BoxParser","Box of type "+m+" has an invalid size "+f+" (too small to be a box)"),{code:y.ERR_NOT_ENOUGH_DATA,type:m,size:f,hdr_size:d,start:h}):0!==f&&n&&f>n?(l.error("BoxParser","Box of type '"+m+"' has a size "+f+" greater than its container size "+n),{code:y.ERR_NOT_ENOUGH_DATA,type:m,size:f,hdr_size:d,start:h}):0!==f&&h+f>e.getEndPosition()?(e.seek(h),l.info("BoxParser","Not enough data in stream to parse the entire '"+m+"' box"),{code:y.ERR_NOT_ENOUGH_DATA,type:m,size:f,hdr_size:d,start:h}):t?{code:y.OK,type:m,size:f,hdr_size:d,start:h}:(y[m+"Box"]?r=new y[m+"Box"](f):"uuid"!==m?(l.warn("BoxParser","Unknown box type: '"+m+"'"),(r=new y.Box(m,f)).has_unparsed_data=!0):y.UUIDBoxes[c]?r=new y.UUIDBoxes[c](f):(l.warn("BoxParser","Unknown uuid type: '"+c+"'"),(r=new y.Box(m,f)).uuid=c,r.has_unparsed_data=!0),r.hdr_size=d,r.start=h,r.write===y.Box.prototype.write&&"mdat"!==r.type&&(l.info("BoxParser","'"+v+"' box writing not yet implemented, keeping unparsed data in memory for later write"),r.parseDataAndRewind(e)),r.parse(e),(o=e.getPosition()-(r.start+r.size))<0?(l.warn("BoxParser","Parsing of box '"+v+"' did not read the entire indicated box data size (missing "+-o+" bytes), seeking forward"),e.seek(r.start+r.size)):o>0&&(l.error("BoxParser","Parsing of box '"+v+"' read "+o+" more bytes than the indicated box data size, seeking backwards"),0!==r.size&&e.seek(r.start+r.size)),{code:y.OK,box:r,size:r.size})},y.Box.prototype.parse=function(e){"mdat"!=this.type?this.data=e.readUint8Array(this.size-this.hdr_size):0===this.size?e.seek(e.getEndPosition()):e.seek(this.start+this.size)},y.Box.prototype.parseDataAndRewind=function(e){this.data=e.readUint8Array(this.size-this.hdr_size),e.position-=this.size-this.hdr_size},y.FullBox.prototype.parseDataAndRewind=function(e){this.parseFullHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size),this.hdr_size-=4,e.position-=this.size-this.hdr_size},y.FullBox.prototype.parseFullHeader=function(e){this.version=e.readUint8(),this.flags=e.readUint24(),this.hdr_size+=4},y.FullBox.prototype.parse=function(e){this.parseFullHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size)},y.ContainerBox.prototype.parse=function(e){for(var t,n;e.getPosition()<this.start+this.size;){if((t=y.parseOneBox(e,!1,this.size-(e.getPosition()-this.start))).code!==y.OK)return;if(n=t.box,this.boxes.push(n),this.subBoxNames&&-1!=this.subBoxNames.indexOf(n.type))this[this.subBoxNames[this.subBoxNames.indexOf(n.type)]+"s"].push(n);else{var r="uuid"!==n.type?n.type:n.uuid;this[r]?l.warn("Box of type "+r+" already stored in field of this type"):this[r]=n}}},y.Box.prototype.parseLanguage=function(e){this.language=e.readUint16();var t=[];t[0]=this.language>>10&31,t[1]=this.language>>5&31,t[2]=31&this.language,this.languageString=String.fromCharCode(t[0]+96,t[1]+96,t[2]+96)},y.SAMPLE_ENTRY_TYPE_VISUAL="Visual",y.SAMPLE_ENTRY_TYPE_AUDIO="Audio",y.SAMPLE_ENTRY_TYPE_HINT="Hint",y.SAMPLE_ENTRY_TYPE_METADATA="Metadata",y.SAMPLE_ENTRY_TYPE_SUBTITLE="Subtitle",y.SAMPLE_ENTRY_TYPE_SYSTEM="System",y.SAMPLE_ENTRY_TYPE_TEXT="Text",y.SampleEntry.prototype.parseHeader=function(e){e.readUint8Array(6),this.data_reference_index=e.readUint16(),this.hdr_size+=8},y.SampleEntry.prototype.parse=function(e){this.parseHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size)},y.SampleEntry.prototype.parseDataAndRewind=function(e){this.parseHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size),this.hdr_size-=8,e.position-=this.size-this.hdr_size},y.SampleEntry.prototype.parseFooter=function(e){y.ContainerBox.prototype.parse.call(this,e)},y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_HINT),y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_METADATA),y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SUBTITLE),y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SYSTEM),y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_TEXT),y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,(function(e){var t;this.parseHeader(e),e.readUint16(),e.readUint16(),e.readUint32Array(3),this.width=e.readUint16(),this.height=e.readUint16(),this.horizresolution=e.readUint32(),this.vertresolution=e.readUint32(),e.readUint32(),this.frame_count=e.readUint16(),t=Math.min(31,e.readUint8()),this.compressorname=e.readString(t),t<31&&e.readString(31-t),this.depth=e.readUint16(),e.readUint16(),this.parseFooter(e)})),y.createMediaSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_AUDIO,(function(e){this.parseHeader(e),e.readUint32Array(2),this.channel_count=e.readUint16(),this.samplesize=e.readUint16(),e.readUint16(),e.readUint16(),this.samplerate=e.readUint32()/65536,this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"avc1"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"avc2"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"avc3"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"avc4"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"av01"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"hvc1"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"hev1"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"vvc1"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"vvi1"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"vvs1"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"vvcN"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"vp08"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"vp09"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_AUDIO,"mp4a"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_AUDIO,"ac-3"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_AUDIO,"ec-3"),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_AUDIO,"Opus"),y.createEncryptedSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_VISUAL,"encv"),y.createEncryptedSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_AUDIO,"enca"),y.createEncryptedSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SUBTITLE,"encu"),y.createEncryptedSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SYSTEM,"encs"),y.createEncryptedSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_TEXT,"enct"),y.createEncryptedSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_METADATA,"encm"),y.createBoxCtor("a1lx",(function(e){var t=16*(1+(1&(1&e.readUint8())));this.layer_size=[];for(var i=0;i<3;i++)this.layer_size[i]=16==t?e.readUint16():e.readUint32()})),y.createBoxCtor("a1op",(function(e){this.op_index=e.readUint8()})),y.createFullBoxCtor("auxC",(function(e){this.aux_type=e.readCString();var t=this.size-this.hdr_size-(this.aux_type.length+1);this.aux_subtype=e.readUint8Array(t)})),y.createBoxCtor("av1C",(function(e){var t=e.readUint8();if(t>>7&!1)l.error("av1C marker problem");else if(this.version=127&t,1===this.version)if(t=e.readUint8(),this.seq_profile=t>>5&7,this.seq_level_idx_0=31&t,t=e.readUint8(),this.seq_tier_0=t>>7&1,this.high_bitdepth=t>>6&1,this.twelve_bit=t>>5&1,this.monochrome=t>>4&1,this.chroma_subsampling_x=t>>3&1,this.chroma_subsampling_y=t>>2&1,this.chroma_sample_position=3&t,t=e.readUint8(),this.reserved_1=t>>5&7,0===this.reserved_1){if(this.initial_presentation_delay_present=t>>4&1,1===this.initial_presentation_delay_present)this.initial_presentation_delay_minus_one=15&t;else if(this.reserved_2=15&t,0!==this.reserved_2)return void l.error("av1C reserved_2 parsing problem");var n=this.size-this.hdr_size-4;this.configOBUs=e.readUint8Array(n)}else l.error("av1C reserved_1 parsing problem");else l.error("av1C version "+this.version+" not supported")})),y.createBoxCtor("avcC",(function(e){var i,t;for(this.configurationVersion=e.readUint8(),this.AVCProfileIndication=e.readUint8(),this.profile_compatibility=e.readUint8(),this.AVCLevelIndication=e.readUint8(),this.lengthSizeMinusOne=3&e.readUint8(),this.nb_SPS_nalus=31&e.readUint8(),t=this.size-this.hdr_size-6,this.SPS=[],i=0;i<this.nb_SPS_nalus;i++)this.SPS[i]={},this.SPS[i].length=e.readUint16(),this.SPS[i].nalu=e.readUint8Array(this.SPS[i].length),t-=2+this.SPS[i].length;for(this.nb_PPS_nalus=e.readUint8(),t--,this.PPS=[],i=0;i<this.nb_PPS_nalus;i++)this.PPS[i]={},this.PPS[i].length=e.readUint16(),this.PPS[i].nalu=e.readUint8Array(this.PPS[i].length),t-=2+this.PPS[i].length;t>0&&(this.ext=e.readUint8Array(t))})),y.createBoxCtor("btrt",(function(e){this.bufferSizeDB=e.readUint32(),this.maxBitrate=e.readUint32(),this.avgBitrate=e.readUint32()})),y.createBoxCtor("clap",(function(e){this.cleanApertureWidthN=e.readUint32(),this.cleanApertureWidthD=e.readUint32(),this.cleanApertureHeightN=e.readUint32(),this.cleanApertureHeightD=e.readUint32(),this.horizOffN=e.readUint32(),this.horizOffD=e.readUint32(),this.vertOffN=e.readUint32(),this.vertOffD=e.readUint32()})),y.createBoxCtor("clli",(function(e){this.max_content_light_level=e.readUint16(),this.max_pic_average_light_level=e.readUint16()})),y.createFullBoxCtor("co64",(function(e){var t,i;if(t=e.readUint32(),this.chunk_offsets=[],0===this.version)for(i=0;i<t;i++)this.chunk_offsets.push(e.readUint64())})),y.createFullBoxCtor("CoLL",(function(e){this.maxCLL=e.readUint16(),this.maxFALL=e.readUint16()})),y.createBoxCtor("colr",(function(e){if(this.colour_type=e.readString(4),"nclx"===this.colour_type){this.colour_primaries=e.readUint16(),this.transfer_characteristics=e.readUint16(),this.matrix_coefficients=e.readUint16();var t=e.readUint8();this.full_range_flag=t>>7}else("rICC"===this.colour_type||"prof"===this.colour_type)&&(this.ICC_profile=e.readUint8Array(this.size-4))})),y.createFullBoxCtor("cprt",(function(e){this.parseLanguage(e),this.notice=e.readCString()})),y.createFullBoxCtor("cslg",(function(e){0===this.version&&(this.compositionToDTSShift=e.readInt32(),this.leastDecodeToDisplayDelta=e.readInt32(),this.greatestDecodeToDisplayDelta=e.readInt32(),this.compositionStartTime=e.readInt32(),this.compositionEndTime=e.readInt32())})),y.createFullBoxCtor("ctts",(function(e){var t,i;if(t=e.readUint32(),this.sample_counts=[],this.sample_offsets=[],0===this.version)for(i=0;i<t;i++){this.sample_counts.push(e.readUint32());var n=e.readInt32();n<0&&l.warn("BoxParser","ctts box uses negative values without using version 1"),this.sample_offsets.push(n)}else if(1==this.version)for(i=0;i<t;i++)this.sample_counts.push(e.readUint32()),this.sample_offsets.push(e.readInt32())})),y.createBoxCtor("dac3",(function(e){var t=e.readUint8(),n=e.readUint8(),r=e.readUint8();this.fscod=t>>6,this.bsid=t>>1&31,this.bsmod=(1&t)<<2|n>>6&3,this.acmod=n>>3&7,this.lfeon=n>>2&1,this.bit_rate_code=3&n|r>>5&7})),y.createBoxCtor("dec3",(function(e){var t=e.readUint16();this.data_rate=t>>3,this.num_ind_sub=7&t,this.ind_subs=[];for(var i=0;i<this.num_ind_sub+1;i++){var n={};this.ind_subs.push(n);var r=e.readUint8(),o=e.readUint8(),c=e.readUint8();n.fscod=r>>6,n.bsid=r>>1&31,n.bsmod=(1&r)<<4|o>>4&15,n.acmod=o>>1&7,n.lfeon=1&o,n.num_dep_sub=c>>1&15,n.num_dep_sub>0&&(n.chan_loc=(1&c)<<8|e.readUint8())}})),y.createFullBoxCtor("dfLa",(function(e){var t=[],n=["STREAMINFO","PADDING","APPLICATION","SEEKTABLE","VORBIS_COMMENT","CUESHEET","PICTURE","RESERVED"];for(this.parseFullHeader(e);;){var r=e.readUint8(),o=Math.min(127&r,n.length-1);if(o?e.readUint8Array(e.readUint24()):(e.readUint8Array(13),this.samplerate=e.readUint32()>>12,e.readUint8Array(20)),t.push(n[o]),128&r)break}this.numMetadataBlocks=t.length+" ("+t.join(", ")+")"})),y.createBoxCtor("dimm",(function(e){this.bytessent=e.readUint64()})),y.createBoxCtor("dmax",(function(e){this.time=e.readUint32()})),y.createBoxCtor("dmed",(function(e){this.bytessent=e.readUint64()})),y.createBoxCtor("dOps",(function(e){if(this.Version=e.readUint8(),this.OutputChannelCount=e.readUint8(),this.PreSkip=e.readUint16(),this.InputSampleRate=e.readUint32(),this.OutputGain=e.readInt16(),this.ChannelMappingFamily=e.readUint8(),0!==this.ChannelMappingFamily){this.StreamCount=e.readUint8(),this.CoupledCount=e.readUint8(),this.ChannelMapping=[];for(var i=0;i<this.OutputChannelCount;i++)this.ChannelMapping[i]=e.readUint8()}})),y.createFullBoxCtor("dref",(function(e){var t,n;this.entries=[];for(var r=e.readUint32(),i=0;i<r;i++){if((t=y.parseOneBox(e,!1,this.size-(e.getPosition()-this.start))).code!==y.OK)return;n=t.box,this.entries.push(n)}})),y.createBoxCtor("drep",(function(e){this.bytessent=e.readUint64()})),y.createFullBoxCtor("elng",(function(e){this.extended_language=e.readString(this.size-this.hdr_size)})),y.createFullBoxCtor("elst",(function(e){this.entries=[];for(var t=e.readUint32(),i=0;i<t;i++){var n={};this.entries.push(n),1===this.version?(n.segment_duration=e.readUint64(),n.media_time=e.readInt64()):(n.segment_duration=e.readUint32(),n.media_time=e.readInt32()),n.media_rate_integer=e.readInt16(),n.media_rate_fraction=e.readInt16()}})),y.createFullBoxCtor("emsg",(function(e){1==this.version?(this.timescale=e.readUint32(),this.presentation_time=e.readUint64(),this.event_duration=e.readUint32(),this.id=e.readUint32(),this.scheme_id_uri=e.readCString(),this.value=e.readCString()):(this.scheme_id_uri=e.readCString(),this.value=e.readCString(),this.timescale=e.readUint32(),this.presentation_time_delta=e.readUint32(),this.event_duration=e.readUint32(),this.id=e.readUint32());var t=this.size-this.hdr_size-(16+(this.scheme_id_uri.length+1)+(this.value.length+1));1==this.version&&(t-=4),this.message_data=e.readUint8Array(t)})),y.createFullBoxCtor("esds",(function(e){var t=e.readUint8Array(this.size-this.hdr_size);if(void 0!==v){var n=new v;this.esd=n.parseOneDescriptor(new d(t.buffer,0,d.BIG_ENDIAN))}})),y.createBoxCtor("fiel",(function(e){this.fieldCount=e.readUint8(),this.fieldOrdering=e.readUint8()})),y.createBoxCtor("frma",(function(e){this.data_format=e.readString(4)})),y.createBoxCtor("ftyp",(function(e){var t=this.size-this.hdr_size;this.major_brand=e.readString(4),this.minor_version=e.readUint32(),t-=8,this.compatible_brands=[];for(var i=0;t>=4;)this.compatible_brands[i]=e.readString(4),t-=4,i++})),y.createFullBoxCtor("hdlr",(function(e){0===this.version&&(e.readUint32(),this.handler=e.readString(4),e.readUint32Array(3),this.name=e.readString(this.size-this.hdr_size-20),"\0"===this.name[this.name.length-1]&&(this.name=this.name.slice(0,-1)))})),y.createBoxCtor("hvcC",(function(e){var i,t,n,r;this.configurationVersion=e.readUint8(),r=e.readUint8(),this.general_profile_space=r>>6,this.general_tier_flag=(32&r)>>5,this.general_profile_idc=31&r,this.general_profile_compatibility=e.readUint32(),this.general_constraint_indicator=e.readUint8Array(6),this.general_level_idc=e.readUint8(),this.min_spatial_segmentation_idc=4095&e.readUint16(),this.parallelismType=3&e.readUint8(),this.chroma_format_idc=3&e.readUint8(),this.bit_depth_luma_minus8=7&e.readUint8(),this.bit_depth_chroma_minus8=7&e.readUint8(),this.avgFrameRate=e.readUint16(),r=e.readUint8(),this.constantFrameRate=r>>6,this.numTemporalLayers=(13&r)>>3,this.temporalIdNested=(4&r)>>2,this.lengthSizeMinusOne=3&r,this.nalu_arrays=[];var o=e.readUint8();for(i=0;i<o;i++){var c=[];this.nalu_arrays.push(c),r=e.readUint8(),c.completeness=(128&r)>>7,c.nalu_type=63&r;var l=e.readUint16();for(t=0;t<l;t++){var h={};c.push(h),n=e.readUint16(),h.data=e.readUint8Array(n)}}})),y.createFullBoxCtor("iinf",(function(e){var t;0===this.version?this.entry_count=e.readUint16():this.entry_count=e.readUint32(),this.item_infos=[];for(var i=0;i<this.entry_count;i++){if((t=y.parseOneBox(e,!1,this.size-(e.getPosition()-this.start))).code!==y.OK)return;"infe"!==t.box.type&&l.error("BoxParser","Expected 'infe' box, got "+t.box.type),this.item_infos[i]=t.box}})),y.createFullBoxCtor("iloc",(function(e){var t;t=e.readUint8(),this.offset_size=t>>4&15,this.length_size=15&t,t=e.readUint8(),this.base_offset_size=t>>4&15,1===this.version||2===this.version?this.index_size=15&t:this.index_size=0,this.items=[];var n=0;if(this.version<2)n=e.readUint16();else{if(2!==this.version)throw"version of iloc box not supported";n=e.readUint32()}for(var i=0;i<n;i++){var r={};if(this.items.push(r),this.version<2)r.item_ID=e.readUint16();else{if(2!==this.version)throw"version of iloc box not supported";r.item_ID=e.readUint16()}switch(1===this.version||2===this.version?r.construction_method=15&e.readUint16():r.construction_method=0,r.data_reference_index=e.readUint16(),this.base_offset_size){case 0:r.base_offset=0;break;case 4:r.base_offset=e.readUint32();break;case 8:r.base_offset=e.readUint64();break;default:throw"Error reading base offset size"}var o=e.readUint16();r.extents=[];for(var c=0;c<o;c++){var l={};if(r.extents.push(l),1===this.version||2===this.version)switch(this.index_size){case 0:l.extent_index=0;break;case 4:l.extent_index=e.readUint32();break;case 8:l.extent_index=e.readUint64();break;default:throw"Error reading extent index"}switch(this.offset_size){case 0:l.extent_offset=0;break;case 4:l.extent_offset=e.readUint32();break;case 8:l.extent_offset=e.readUint64();break;default:throw"Error reading extent index"}switch(this.length_size){case 0:l.extent_length=0;break;case 4:l.extent_length=e.readUint32();break;case 8:l.extent_length=e.readUint64();break;default:throw"Error reading extent index"}}}})),y.createBoxCtor("imir",(function(e){var t=e.readUint8();this.reserved=t>>7,this.axis=1&t})),y.createFullBoxCtor("infe",(function(e){if(0!==this.version&&1!==this.version||(this.item_ID=e.readUint16(),this.item_protection_index=e.readUint16(),this.item_name=e.readCString(),this.content_type=e.readCString(),this.content_encoding=e.readCString()),1===this.version)return this.extension_type=e.readString(4),l.warn("BoxParser","Cannot parse extension type"),void e.seek(this.start+this.size);this.version>=2&&(2===this.version?this.item_ID=e.readUint16():3===this.version&&(this.item_ID=e.readUint32()),this.item_protection_index=e.readUint16(),this.item_type=e.readString(4),this.item_name=e.readCString(),"mime"===this.item_type?(this.content_type=e.readCString(),this.content_encoding=e.readCString()):"uri "===this.item_type&&(this.item_uri_type=e.readCString()))})),y.createFullBoxCtor("ipma",(function(e){var i,t;for(entry_count=e.readUint32(),this.associations=[],i=0;i<entry_count;i++){var n={};this.associations.push(n),this.version<1?n.id=e.readUint16():n.id=e.readUint32();var r=e.readUint8();for(n.props=[],t=0;t<r;t++){var o=e.readUint8(),p={};n.props.push(p),p.essential=(128&o)>>7==1,1&this.flags?p.property_index=(127&o)<<8|e.readUint8():p.property_index=127&o}}})),y.createFullBoxCtor("iref",(function(e){var t,n;for(this.references=[];e.getPosition()<this.start+this.size;){if((t=y.parseOneBox(e,!0,this.size-(e.getPosition()-this.start))).code!==y.OK)return;(n=0===this.version?new y.SingleItemTypeReferenceBox(t.type,t.size,t.hdr_size,t.start):new y.SingleItemTypeReferenceBoxLarge(t.type,t.size,t.hdr_size,t.start)).write===y.Box.prototype.write&&"mdat"!==n.type&&(l.warn("BoxParser",n.type+" box writing not yet implemented, keeping unparsed data in memory for later write"),n.parseDataAndRewind(e)),n.parse(e),this.references.push(n)}})),y.createBoxCtor("irot",(function(e){this.angle=3&e.readUint8()})),y.createFullBoxCtor("ispe",(function(e){this.image_width=e.readUint32(),this.image_height=e.readUint32()})),y.createFullBoxCtor("kind",(function(e){this.schemeURI=e.readCString(),this.value=e.readCString()})),y.createFullBoxCtor("leva",(function(e){var t=e.readUint8();this.levels=[];for(var i=0;i<t;i++){var n={};this.levels[i]=n,n.track_ID=e.readUint32();var r=e.readUint8();switch(n.padding_flag=r>>7,n.assignment_type=127&r,n.assignment_type){case 0:n.grouping_type=e.readString(4);break;case 1:n.grouping_type=e.readString(4),n.grouping_type_parameter=e.readUint32();break;case 2:case 3:break;case 4:n.sub_track_id=e.readUint32();break;default:l.warn("BoxParser","Unknown leva assignement type")}}})),y.createBoxCtor("lsel",(function(e){this.layer_id=e.readUint16()})),y.createBoxCtor("maxr",(function(e){this.period=e.readUint32(),this.bytes=e.readUint32()})),y.createBoxCtor("mdcv",(function(e){this.display_primaries=[],this.display_primaries[0]={},this.display_primaries[0].x=e.readUint16(),this.display_primaries[0].y=e.readUint16(),this.display_primaries[1]={},this.display_primaries[1].x=e.readUint16(),this.display_primaries[1].y=e.readUint16(),this.display_primaries[2]={},this.display_primaries[2].x=e.readUint16(),this.display_primaries[2].y=e.readUint16(),this.white_point={},this.white_point.x=e.readUint16(),this.white_point.y=e.readUint16(),this.max_display_mastering_luminance=e.readUint32(),this.min_display_mastering_luminance=e.readUint32()})),y.createFullBoxCtor("mdhd",(function(e){1==this.version?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.timescale=e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.timescale=e.readUint32(),this.duration=e.readUint32()),this.parseLanguage(e),e.readUint16()})),y.createFullBoxCtor("mehd",(function(e){1&this.flags&&(l.warn("BoxParser","mehd box incorrectly uses flags set to 1, converting version to 1"),this.version=1),1==this.version?this.fragment_duration=e.readUint64():this.fragment_duration=e.readUint32()})),y.createFullBoxCtor("meta",(function(e){this.boxes=[],y.ContainerBox.prototype.parse.call(this,e)})),y.createFullBoxCtor("mfhd",(function(e){this.sequence_number=e.readUint32()})),y.createFullBoxCtor("mfro",(function(e){this._size=e.readUint32()})),y.createFullBoxCtor("mvhd",(function(e){1==this.version?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.timescale=e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.timescale=e.readUint32(),this.duration=e.readUint32()),this.rate=e.readUint32(),this.volume=e.readUint16()>>8,e.readUint16(),e.readUint32Array(2),this.matrix=e.readUint32Array(9),e.readUint32Array(6),this.next_track_id=e.readUint32()})),y.createBoxCtor("npck",(function(e){this.packetssent=e.readUint32()})),y.createBoxCtor("nump",(function(e){this.packetssent=e.readUint64()})),y.createFullBoxCtor("padb",(function(e){var t=e.readUint32();this.padbits=[];for(var i=0;i<Math.floor((t+1)/2);i++)this.padbits=e.readUint8()})),y.createBoxCtor("pasp",(function(e){this.hSpacing=e.readUint32(),this.vSpacing=e.readUint32()})),y.createBoxCtor("payl",(function(e){this.text=e.readString(this.size-this.hdr_size)})),y.createBoxCtor("payt",(function(e){this.payloadID=e.readUint32();var t=e.readUint8();this.rtpmap_string=e.readString(t)})),y.createFullBoxCtor("pdin",(function(e){var t=(this.size-this.hdr_size)/8;this.rate=[],this.initial_delay=[];for(var i=0;i<t;i++)this.rate[i]=e.readUint32(),this.initial_delay[i]=e.readUint32()})),y.createFullBoxCtor("pitm",(function(e){0===this.version?this.item_id=e.readUint16():this.item_id=e.readUint32()})),y.createFullBoxCtor("pixi",(function(e){var i;for(this.num_channels=e.readUint8(),this.bits_per_channels=[],i=0;i<this.num_channels;i++)this.bits_per_channels[i]=e.readUint8()})),y.createBoxCtor("pmax",(function(e){this.bytes=e.readUint32()})),y.createFullBoxCtor("prft",(function(e){this.ref_track_id=e.readUint32(),this.ntp_timestamp=e.readUint64(),0===this.version?this.media_time=e.readUint32():this.media_time=e.readUint64()})),y.createFullBoxCtor("pssh",(function(e){if(this.system_id=y.parseHex16(e),this.version>0){var t=e.readUint32();this.kid=[];for(var i=0;i<t;i++)this.kid[i]=y.parseHex16(e)}var n=e.readUint32();n>0&&(this.data=e.readUint8Array(n))})),y.createFullBoxCtor("clef",(function(e){this.width=e.readUint32(),this.height=e.readUint32()})),y.createFullBoxCtor("enof",(function(e){this.width=e.readUint32(),this.height=e.readUint32()})),y.createFullBoxCtor("prof",(function(e){this.width=e.readUint32(),this.height=e.readUint32()})),y.createContainerBoxCtor("tapt",null,["clef","prof","enof"]),y.createBoxCtor("rtp ",(function(e){this.descriptionformat=e.readString(4),this.sdptext=e.readString(this.size-this.hdr_size-4)})),y.createFullBoxCtor("saio",(function(e){1&this.flags&&(this.aux_info_type=e.readUint32(),this.aux_info_type_parameter=e.readUint32());var t=e.readUint32();this.offset=[];for(var i=0;i<t;i++)0===this.version?this.offset[i]=e.readUint32():this.offset[i]=e.readUint64()})),y.createFullBoxCtor("saiz",(function(e){1&this.flags&&(this.aux_info_type=e.readUint32(),this.aux_info_type_parameter=e.readUint32()),this.default_sample_info_size=e.readUint8();var t=e.readUint32();if(this.sample_info_size=[],0===this.default_sample_info_size)for(var i=0;i<t;i++)this.sample_info_size[i]=e.readUint8()})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_METADATA,"mett",(function(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.mime_format=e.readCString(),this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_METADATA,"metx",(function(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.namespace=e.readCString(),this.schema_location=e.readCString(),this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SUBTITLE,"sbtt",(function(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.mime_format=e.readCString(),this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SUBTITLE,"stpp",(function(e){this.parseHeader(e),this.namespace=e.readCString(),this.schema_location=e.readCString(),this.auxiliary_mime_types=e.readCString(),this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SUBTITLE,"stxt",(function(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.mime_format=e.readCString(),this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_SUBTITLE,"tx3g",(function(e){this.parseHeader(e),this.displayFlags=e.readUint32(),this.horizontal_justification=e.readInt8(),this.vertical_justification=e.readInt8(),this.bg_color_rgba=e.readUint8Array(4),this.box_record=e.readInt16Array(4),this.style_record=e.readUint8Array(12),this.parseFooter(e)})),y.createSampleEntryCtor(y.SAMPLE_ENTRY_TYPE_METADATA,"wvtt",(function(e){this.parseHeader(e),this.parseFooter(e)})),y.createSampleGroupCtor("alst",(function(e){var i,t=e.readUint16();for(this.first_output_sample=e.readUint16(),this.sample_offset=[],i=0;i<t;i++)this.sample_offset[i]=e.readUint32();var n=this.description_length-4-4*t;for(this.num_output_samples=[],this.num_total_samples=[],i=0;i<n/4;i++)this.num_output_samples[i]=e.readUint16(),this.num_total_samples[i]=e.readUint16()})),y.createSampleGroupCtor("avll",(function(e){this.layerNumber=e.readUint8(),this.accurateStatisticsFlag=e.readUint8(),this.avgBitRate=e.readUint16(),this.avgFrameRate=e.readUint16()})),y.createSampleGroupCtor("avss",(function(e){this.subSequenceIdentifier=e.readUint16(),this.layerNumber=e.readUint8();var t=e.readUint8();this.durationFlag=t>>7,this.avgRateFlag=t>>6&1,this.durationFlag&&(this.duration=e.readUint32()),this.avgRateFlag&&(this.accurateStatisticsFlag=e.readUint8(),this.avgBitRate=e.readUint16(),this.avgFrameRate=e.readUint16()),this.dependency=[];for(var n=e.readUint8(),i=0;i<n;i++){var r={};this.dependency.push(r),r.subSeqDirectionFlag=e.readUint8(),r.layerNumber=e.readUint8(),r.subSequenceIdentifier=e.readUint16()}})),y.createSampleGroupCtor("dtrt",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("mvif",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("prol",(function(e){this.roll_distance=e.readInt16()})),y.createSampleGroupCtor("rap ",(function(e){var t=e.readUint8();this.num_leading_samples_known=t>>7,this.num_leading_samples=127&t})),y.createSampleGroupCtor("rash",(function(e){if(this.operation_point_count=e.readUint16(),this.description_length!==2+(1===this.operation_point_count?2:6*this.operation_point_count)+9)l.warn("BoxParser","Mismatch in "+this.grouping_type+" sample group length"),this.data=e.readUint8Array(this.description_length-2);else{if(1===this.operation_point_count)this.target_rate_share=e.readUint16();else{this.target_rate_share=[],this.available_bitrate=[];for(var i=0;i<this.operation_point_count;i++)this.available_bitrate[i]=e.readUint32(),this.target_rate_share[i]=e.readUint16()}this.maximum_bitrate=e.readUint32(),this.minimum_bitrate=e.readUint32(),this.discard_priority=e.readUint8()}})),y.createSampleGroupCtor("roll",(function(e){this.roll_distance=e.readInt16()})),y.SampleGroupEntry.prototype.parse=function(e){l.warn("BoxParser","Unknown Sample Group type: "+this.grouping_type),this.data=e.readUint8Array(this.description_length)},y.createSampleGroupCtor("scif",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("scnm",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("seig",(function(e){this.reserved=e.readUint8();var t=e.readUint8();this.crypt_byte_block=t>>4,this.skip_byte_block=15&t,this.isProtected=e.readUint8(),this.Per_Sample_IV_Size=e.readUint8(),this.KID=y.parseHex16(e),this.constant_IV_size=0,this.constant_IV=0,1===this.isProtected&&0===this.Per_Sample_IV_Size&&(this.constant_IV_size=e.readUint8(),this.constant_IV=e.readUint8Array(this.constant_IV_size))})),y.createSampleGroupCtor("stsa",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("sync",(function(e){var t=e.readUint8();this.NAL_unit_type=63&t})),y.createSampleGroupCtor("tele",(function(e){var t=e.readUint8();this.level_independently_decodable=t>>7})),y.createSampleGroupCtor("tsas",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("tscl",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createSampleGroupCtor("vipr",(function(e){l.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),y.createFullBoxCtor("sbgp",(function(e){this.grouping_type=e.readString(4),1===this.version?this.grouping_type_parameter=e.readUint32():this.grouping_type_parameter=0,this.entries=[];for(var t=e.readUint32(),i=0;i<t;i++){var n={};this.entries.push(n),n.sample_count=e.readInt32(),n.group_description_index=e.readInt32()}})),y.createFullBoxCtor("schm",(function(e){this.scheme_type=e.readString(4),this.scheme_version=e.readUint32(),1&this.flags&&(this.scheme_uri=e.readString(this.size-this.hdr_size-8))})),y.createBoxCtor("sdp ",(function(e){this.sdptext=e.readString(this.size-this.hdr_size)})),y.createFullBoxCtor("sdtp",(function(e){var t,n=this.size-this.hdr_size;this.is_leading=[],this.sample_depends_on=[],this.sample_is_depended_on=[],this.sample_has_redundancy=[];for(var i=0;i<n;i++)t=e.readUint8(),this.is_leading[i]=t>>6,this.sample_depends_on[i]=t>>4&3,this.sample_is_depended_on[i]=t>>2&3,this.sample_has_redundancy[i]=3&t})),y.createFullBoxCtor("senc"),y.createFullBoxCtor("sgpd",(function(e){this.grouping_type=e.readString(4),l.debug("BoxParser","Found Sample Groups of type "+this.grouping_type),1===this.version?this.default_length=e.readUint32():this.default_length=0,this.version>=2&&(this.default_group_description_index=e.readUint32()),this.entries=[];for(var t=e.readUint32(),i=0;i<t;i++){var n;n=y[this.grouping_type+"SampleGroupEntry"]?new y[this.grouping_type+"SampleGroupEntry"](this.grouping_type):new y.SampleGroupEntry(this.grouping_type),this.entries.push(n),1===this.version&&0===this.default_length?n.description_length=e.readUint32():n.description_length=this.default_length,n.write===y.SampleGroupEntry.prototype.write&&(l.info("BoxParser","SampleGroup for type "+this.grouping_type+" writing not yet implemented, keeping unparsed data in memory for later write"),n.data=e.readUint8Array(n.description_length),e.position-=n.description_length),n.parse(e)}})),y.createFullBoxCtor("sidx",(function(e){this.reference_ID=e.readUint32(),this.timescale=e.readUint32(),0===this.version?(this.earliest_presentation_time=e.readUint32(),this.first_offset=e.readUint32()):(this.earliest_presentation_time=e.readUint64(),this.first_offset=e.readUint64()),e.readUint16(),this.references=[];for(var t=e.readUint16(),i=0;i<t;i++){var n={};this.references.push(n);var r=e.readUint32();n.reference_type=r>>31&1,n.referenced_size=2147483647&r,n.subsegment_duration=e.readUint32(),r=e.readUint32(),n.starts_with_SAP=r>>31&1,n.SAP_type=r>>28&7,n.SAP_delta_time=268435455&r}})),y.SingleItemTypeReferenceBox=function(e,t,n,r){y.Box.call(this,e,t),this.hdr_size=n,this.start=r},y.SingleItemTypeReferenceBox.prototype=new y.Box,y.SingleItemTypeReferenceBox.prototype.parse=function(e){this.from_item_ID=e.readUint16();var t=e.readUint16();this.references=[];for(var i=0;i<t;i++)this.references[i]=e.readUint16()},y.SingleItemTypeReferenceBoxLarge=function(e,t,n,r){y.Box.call(this,e,t),this.hdr_size=n,this.start=r},y.SingleItemTypeReferenceBoxLarge.prototype=new y.Box,y.SingleItemTypeReferenceBoxLarge.prototype.parse=function(e){this.from_item_ID=e.readUint32();var t=e.readUint16();this.references=[];for(var i=0;i<t;i++)this.references[i]=e.readUint32()},y.createFullBoxCtor("SmDm",(function(e){this.primaryRChromaticity_x=e.readUint16(),this.primaryRChromaticity_y=e.readUint16(),this.primaryGChromaticity_x=e.readUint16(),this.primaryGChromaticity_y=e.readUint16(),this.primaryBChromaticity_x=e.readUint16(),this.primaryBChromaticity_y=e.readUint16(),this.whitePointChromaticity_x=e.readUint16(),this.whitePointChromaticity_y=e.readUint16(),this.luminanceMax=e.readUint32(),this.luminanceMin=e.readUint32()})),y.createFullBoxCtor("smhd",(function(e){this.balance=e.readUint16(),e.readUint16()})),y.createFullBoxCtor("ssix",(function(e){this.subsegments=[];for(var t=e.readUint32(),i=0;i<t;i++){var n={};this.subsegments.push(n),n.ranges=[];for(var r=e.readUint32(),o=0;o<r;o++){var c={};n.ranges.push(c),c.level=e.readUint8(),c.range_size=e.readUint24()}}})),y.createFullBoxCtor("stco",(function(e){var t;if(t=e.readUint32(),this.chunk_offsets=[],0===this.version)for(var i=0;i<t;i++)this.chunk_offsets.push(e.readUint32())})),y.createFullBoxCtor("stdp",(function(e){var t=(this.size-this.hdr_size)/2;this.priority=[];for(var i=0;i<t;i++)this.priority[i]=e.readUint16()})),y.createFullBoxCtor("sthd"),y.createFullBoxCtor("stri",(function(e){this.switch_group=e.readUint16(),this.alternate_group=e.readUint16(),this.sub_track_id=e.readUint32();var t=(this.size-this.hdr_size-8)/4;this.attribute_list=[];for(var i=0;i<t;i++)this.attribute_list[i]=e.readUint32()})),y.createFullBoxCtor("stsc",(function(e){var t,i;if(t=e.readUint32(),this.first_chunk=[],this.samples_per_chunk=[],this.sample_description_index=[],0===this.version)for(i=0;i<t;i++)this.first_chunk.push(e.readUint32()),this.samples_per_chunk.push(e.readUint32()),this.sample_description_index.push(e.readUint32())})),y.createFullBoxCtor("stsd",(function(e){var i,t,n,r;for(this.entries=[],n=e.readUint32(),i=1;i<=n;i++){if((t=y.parseOneBox(e,!0,this.size-(e.getPosition()-this.start))).code!==y.OK)return;y[t.type+"SampleEntry"]?((r=new y[t.type+"SampleEntry"](t.size)).hdr_size=t.hdr_size,r.start=t.start):(l.warn("BoxParser","Unknown sample entry type: "+t.type),r=new y.SampleEntry(t.type,t.size,t.hdr_size,t.start)),r.write===y.SampleEntry.prototype.write&&(l.info("BoxParser","SampleEntry "+r.type+" box writing not yet implemented, keeping unparsed data in memory for later write"),r.parseDataAndRewind(e)),r.parse(e),this.entries.push(r)}})),y.createFullBoxCtor("stsg",(function(e){this.grouping_type=e.readUint32();var t=e.readUint16();this.group_description_index=[];for(var i=0;i<t;i++)this.group_description_index[i]=e.readUint32()})),y.createFullBoxCtor("stsh",(function(e){var t,i;if(t=e.readUint32(),this.shadowed_sample_numbers=[],this.sync_sample_numbers=[],0===this.version)for(i=0;i<t;i++)this.shadowed_sample_numbers.push(e.readUint32()),this.sync_sample_numbers.push(e.readUint32())})),y.createFullBoxCtor("stss",(function(e){var i,t;if(t=e.readUint32(),0===this.version)for(this.sample_numbers=[],i=0;i<t;i++)this.sample_numbers.push(e.readUint32())})),y.createFullBoxCtor("stsz",(function(e){var i;if(this.sample_sizes=[],0===this.version)for(this.sample_size=e.readUint32(),this.sample_count=e.readUint32(),i=0;i<this.sample_count;i++)0===this.sample_size?this.sample_sizes.push(e.readUint32()):this.sample_sizes[i]=this.sample_size})),y.createFullBoxCtor("stts",(function(e){var t,i,n;if(t=e.readUint32(),this.sample_counts=[],this.sample_deltas=[],0===this.version)for(i=0;i<t;i++)this.sample_counts.push(e.readUint32()),(n=e.readInt32())<0&&(l.warn("BoxParser","File uses negative stts sample delta, using value 1 instead, sync may be lost!"),n=1),this.sample_deltas.push(n)})),y.createFullBoxCtor("stvi",(function(e){var t=e.readUint32();this.single_view_allowed=3&t,this.stereo_scheme=e.readUint32();var n,r,o=e.readUint32();for(this.stereo_indication_type=e.readString(o),this.boxes=[];e.getPosition()<this.start+this.size;){if((n=y.parseOneBox(e,!1,this.size-(e.getPosition()-this.start))).code!==y.OK)return;r=n.box,this.boxes.push(r),this[r.type]=r}})),y.createBoxCtor("styp",(function(e){y.ftypBox.prototype.parse.call(this,e)})),y.createFullBoxCtor("stz2",(function(e){var i,t;if(this.sample_sizes=[],0===this.version)if(this.reserved=e.readUint24(),this.field_size=e.readUint8(),t=e.readUint32(),4===this.field_size)for(i=0;i<t;i+=2){var n=e.readUint8();this.sample_sizes[i]=n>>4&15,this.sample_sizes[i+1]=15&n}else if(8===this.field_size)for(i=0;i<t;i++)this.sample_sizes[i]=e.readUint8();else if(16===this.field_size)for(i=0;i<t;i++)this.sample_sizes[i]=e.readUint16();else l.error("BoxParser","Error in length field in stz2 box")})),y.createFullBoxCtor("subs",(function(e){var i,t,n,r;for(n=e.readUint32(),this.entries=[],i=0;i<n;i++){var o={};if(this.entries[i]=o,o.sample_delta=e.readUint32(),o.subsamples=[],(r=e.readUint16())>0)for(t=0;t<r;t++){var c={};o.subsamples.push(c),1==this.version?c.size=e.readUint32():c.size=e.readUint16(),c.priority=e.readUint8(),c.discardable=e.readUint8(),c.codec_specific_parameters=e.readUint32()}}})),y.createFullBoxCtor("tenc",(function(e){if(e.readUint8(),0===this.version)e.readUint8();else{var t=e.readUint8();this.default_crypt_byte_block=t>>4&15,this.default_skip_byte_block=15&t}this.default_isProtected=e.readUint8(),this.default_Per_Sample_IV_Size=e.readUint8(),this.default_KID=y.parseHex16(e),1===this.default_isProtected&&0===this.default_Per_Sample_IV_Size&&(this.default_constant_IV_size=e.readUint8(),this.default_constant_IV=e.readUint8Array(this.default_constant_IV_size))})),y.createFullBoxCtor("tfdt",(function(e){1==this.version?this.baseMediaDecodeTime=e.readUint64():this.baseMediaDecodeTime=e.readUint32()})),y.createFullBoxCtor("tfhd",(function(e){var t=0;this.track_id=e.readUint32(),this.size-this.hdr_size>t&&this.flags&y.TFHD_FLAG_BASE_DATA_OFFSET?(this.base_data_offset=e.readUint64(),t+=8):this.base_data_offset=0,this.size-this.hdr_size>t&&this.flags&y.TFHD_FLAG_SAMPLE_DESC?(this.default_sample_description_index=e.readUint32(),t+=4):this.default_sample_description_index=0,this.size-this.hdr_size>t&&this.flags&y.TFHD_FLAG_SAMPLE_DUR?(this.default_sample_duration=e.readUint32(),t+=4):this.default_sample_duration=0,this.size-this.hdr_size>t&&this.flags&y.TFHD_FLAG_SAMPLE_SIZE?(this.default_sample_size=e.readUint32(),t+=4):this.default_sample_size=0,this.size-this.hdr_size>t&&this.flags&y.TFHD_FLAG_SAMPLE_FLAGS?(this.default_sample_flags=e.readUint32(),t+=4):this.default_sample_flags=0})),y.createFullBoxCtor("tfra",(function(e){this.track_ID=e.readUint32(),e.readUint24();var t=e.readUint8();this.length_size_of_traf_num=t>>4&3,this.length_size_of_trun_num=t>>2&3,this.length_size_of_sample_num=3&t,this.entries=[];for(var n=e.readUint32(),i=0;i<n;i++)1===this.version?(this.time=e.readUint64(),this.moof_offset=e.readUint64()):(this.time=e.readUint32(),this.moof_offset=e.readUint32()),this.traf_number=e["readUint"+8*(this.length_size_of_traf_num+1)](),this.trun_number=e["readUint"+8*(this.length_size_of_trun_num+1)](),this.sample_number=e["readUint"+8*(this.length_size_of_sample_num+1)]()})),y.createFullBoxCtor("tkhd",(function(e){1==this.version?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.track_id=e.readUint32(),e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.track_id=e.readUint32(),e.readUint32(),this.duration=e.readUint32()),e.readUint32Array(2),this.layer=e.readInt16(),this.alternate_group=e.readInt16(),this.volume=e.readInt16()>>8,e.readUint16(),this.matrix=e.readInt32Array(9),this.width=e.readUint32(),this.height=e.readUint32()})),y.createBoxCtor("tmax",(function(e){this.time=e.readUint32()})),y.createBoxCtor("tmin",(function(e){this.time=e.readUint32()})),y.createBoxCtor("totl",(function(e){this.bytessent=e.readUint32()})),y.createBoxCtor("tpay",(function(e){this.bytessent=e.readUint32()})),y.createBoxCtor("tpyl",(function(e){this.bytessent=e.readUint64()})),y.TrackGroupTypeBox.prototype.parse=function(e){this.parseFullHeader(e),this.track_group_id=e.readUint32()},y.createTrackGroupCtor("msrc"),y.TrackReferenceTypeBox=function(e,t,n,r){y.Box.call(this,e,t),this.hdr_size=n,this.start=r},y.TrackReferenceTypeBox.prototype=new y.Box,y.TrackReferenceTypeBox.prototype.parse=function(e){this.track_ids=e.readUint32Array((this.size-this.hdr_size)/4)},y.trefBox.prototype.parse=function(e){for(var t,n;e.getPosition()<this.start+this.size;){if((t=y.parseOneBox(e,!0,this.size-(e.getPosition()-this.start))).code!==y.OK)return;(n=new y.TrackReferenceTypeBox(t.type,t.size,t.hdr_size,t.start)).write===y.Box.prototype.write&&"mdat"!==n.type&&(l.info("BoxParser","TrackReference "+n.type+" box writing not yet implemented, keeping unparsed data in memory for later write"),n.parseDataAndRewind(e)),n.parse(e),this.boxes.push(n)}},y.createFullBoxCtor("trep",(function(e){for(this.track_ID=e.readUint32(),this.boxes=[];e.getPosition()<this.start+this.size;){if(ret=y.parseOneBox(e,!1,this.size-(e.getPosition()-this.start)),ret.code!==y.OK)return;box=ret.box,this.boxes.push(box)}})),y.createFullBoxCtor("trex",(function(e){this.track_id=e.readUint32(),this.default_sample_description_index=e.readUint32(),this.default_sample_duration=e.readUint32(),this.default_sample_size=e.readUint32(),this.default_sample_flags=e.readUint32()})),y.createBoxCtor("trpy",(function(e){this.bytessent=e.readUint64()})),y.createFullBoxCtor("trun",(function(e){var t=0;if(this.sample_count=e.readUint32(),t+=4,this.size-this.hdr_size>t&&this.flags&y.TRUN_FLAGS_DATA_OFFSET?(this.data_offset=e.readInt32(),t+=4):this.data_offset=0,this.size-this.hdr_size>t&&this.flags&y.TRUN_FLAGS_FIRST_FLAG?(this.first_sample_flags=e.readUint32(),t+=4):this.first_sample_flags=0,this.sample_duration=[],this.sample_size=[],this.sample_flags=[],this.sample_composition_time_offset=[],this.size-this.hdr_size>t)for(var i=0;i<this.sample_count;i++)this.flags&y.TRUN_FLAGS_DURATION&&(this.sample_duration[i]=e.readUint32()),this.flags&y.TRUN_FLAGS_SIZE&&(this.sample_size[i]=e.readUint32()),this.flags&y.TRUN_FLAGS_FLAGS&&(this.sample_flags[i]=e.readUint32()),this.flags&y.TRUN_FLAGS_CTS_OFFSET&&(0===this.version?this.sample_composition_time_offset[i]=e.readUint32():this.sample_composition_time_offset[i]=e.readInt32())})),y.createFullBoxCtor("tsel",(function(e){this.switch_group=e.readUint32();var t=(this.size-this.hdr_size-4)/4;this.attribute_list=[];for(var i=0;i<t;i++)this.attribute_list[i]=e.readUint32()})),y.createFullBoxCtor("txtC",(function(e){this.config=e.readCString()})),y.createFullBoxCtor("url ",(function(e){1!==this.flags&&(this.location=e.readCString())})),y.createFullBoxCtor("urn ",(function(e){this.name=e.readCString(),this.size-this.hdr_size-this.name.length-1>0&&(this.location=e.readCString())})),y.createUUIDBox("a5d40b30e81411ddba2f0800200c9a66",!0,!1,(function(e){this.LiveServerManifest=e.readString(this.size-this.hdr_size).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")})),y.createUUIDBox("d08a4f1810f34a82b6c832d8aba183d3",!0,!1,(function(e){this.system_id=y.parseHex16(e);var t=e.readUint32();t>0&&(this.data=e.readUint8Array(t))})),y.createUUIDBox("a2394f525a9b4f14a2446c427c648df4",!0,!1),y.createUUIDBox("8974dbce7be74c5184f97148f9882554",!0,!1,(function(e){this.default_AlgorithmID=e.readUint24(),this.default_IV_size=e.readUint8(),this.default_KID=y.parseHex16(e)})),y.createUUIDBox("d4807ef2ca3946958e5426cb9e46a79f",!0,!1,(function(e){this.fragment_count=e.readUint8(),this.entries=[];for(var i=0;i<this.fragment_count;i++){var t={},n=0,r=0;1===this.version?(n=e.readUint64(),r=e.readUint64()):(n=e.readUint32(),r=e.readUint32()),t.absolute_time=n,t.absolute_duration=r,this.entries.push(t)}})),y.createUUIDBox("6d1d9b0542d544e680e2141daff757b2",!0,!1,(function(e){1===this.version?(this.absolute_time=e.readUint64(),this.duration=e.readUint64()):(this.absolute_time=e.readUint32(),this.duration=e.readUint32())})),y.createFullBoxCtor("vmhd",(function(e){this.graphicsmode=e.readUint16(),this.opcolor=e.readUint16Array(3)})),y.createFullBoxCtor("vpcC",(function(e){var t;1===this.version?(this.profile=e.readUint8(),this.level=e.readUint8(),t=e.readUint8(),this.bitDepth=t>>4,this.chromaSubsampling=t>>1&7,this.videoFullRangeFlag=1&t,this.colourPrimaries=e.readUint8(),this.transferCharacteristics=e.readUint8(),this.matrixCoefficients=e.readUint8(),this.codecIntializationDataSize=e.readUint16(),this.codecIntializationData=e.readUint8Array(this.codecIntializationDataSize)):(this.profile=e.readUint8(),this.level=e.readUint8(),t=e.readUint8(),this.bitDepth=t>>4&15,this.colorSpace=15&t,t=e.readUint8(),this.chromaSubsampling=t>>4&15,this.transferFunction=t>>1&7,this.videoFullRangeFlag=1&t,this.codecIntializationDataSize=e.readUint16(),this.codecIntializationData=e.readUint8Array(this.codecIntializationDataSize))})),y.createBoxCtor("vttC",(function(e){this.text=e.readString(this.size-this.hdr_size)})),y.createFullBoxCtor("vvcC",(function(e){var i,t,n={held_bits:void 0,num_held_bits:0,stream_read_1_bytes:function(e){this.held_bits=e.readUint8(),this.num_held_bits=8},stream_read_2_bytes:function(e){this.held_bits=e.readUint16(),this.num_held_bits=16},extract_bits:function(e){var t=this.held_bits>>this.num_held_bits-e&(1<<e)-1;return this.num_held_bits-=e,t}};if(n.stream_read_1_bytes(e),n.extract_bits(5),this.lengthSizeMinusOne=n.extract_bits(2),this.ptl_present_flag=n.extract_bits(1),this.ptl_present_flag){if(n.stream_read_2_bytes(e),this.ols_idx=n.extract_bits(9),this.num_sublayers=n.extract_bits(3),this.constant_frame_rate=n.extract_bits(2),this.chroma_format_idc=n.extract_bits(2),n.stream_read_1_bytes(e),this.bit_depth_minus8=n.extract_bits(3),n.extract_bits(5),n.stream_read_2_bytes(e),n.extract_bits(2),this.num_bytes_constraint_info=n.extract_bits(6),this.general_profile_idc=n.extract_bits(7),this.general_tier_flag=n.extract_bits(1),this.general_level_idc=e.readUint8(),n.stream_read_1_bytes(e),this.ptl_frame_only_constraint_flag=n.extract_bits(1),this.ptl_multilayer_enabled_flag=n.extract_bits(1),this.general_constraint_info=new Uint8Array(this.num_bytes_constraint_info),this.num_bytes_constraint_info){for(i=0;i<this.num_bytes_constraint_info-1;i++){var r=n.extract_bits(6);n.stream_read_1_bytes(e);var o=n.extract_bits(2);this.general_constraint_info[i]=r<<2|o}this.general_constraint_info[this.num_bytes_constraint_info-1]=n.extract_bits(6)}else n.extract_bits(6);for(n.stream_read_1_bytes(e),this.ptl_sublayer_present_mask=0,t=this.num_sublayers-2;t>=0;--t){var c=n.extract_bits(1);this.ptl_sublayer_present_mask|=c<<t}for(t=this.num_sublayers;t<=8&&this.num_sublayers>1;++t)n.extract_bits(1);for(t=this.num_sublayers-2;t>=0;--t)this.ptl_sublayer_present_mask&1<<t&&(this.sublayer_level_idc[t]=e.readUint8());if(this.ptl_num_sub_profiles=e.readUint8(),this.general_sub_profile_idc=[],this.ptl_num_sub_profiles)for(i=0;i<this.ptl_num_sub_profiles;i++)this.general_sub_profile_idc.push(e.readUint32());this.max_picture_width=e.readUint16(),this.max_picture_height=e.readUint16(),this.avg_frame_rate=e.readUint16()}this.nalu_arrays=[];var l=e.readUint8();for(i=0;i<l;i++){var h=[];this.nalu_arrays.push(h),n.stream_read_1_bytes(e),h.completeness=n.extract_bits(1),n.extract_bits(2),h.nalu_type=n.extract_bits(5);var d=1;for(13!=h.nalu_type&&12!=h.nalu_type&&(d=e.readUint16()),t=0;t<d;t++){var f=e.readUint16();h.push({data:e.readUint8Array(f),length:f})}}})),y.createFullBoxCtor("vvnC",(function(e){var t=strm.readUint8();this.lengthSizeMinusOne=3&t})),y.SampleEntry.prototype.isVideo=function(){return!1},y.SampleEntry.prototype.isAudio=function(){return!1},y.SampleEntry.prototype.isSubtitle=function(){return!1},y.SampleEntry.prototype.isMetadata=function(){return!1},y.SampleEntry.prototype.isHint=function(){return!1},y.SampleEntry.prototype.getCodec=function(){return this.type.replace(".","")},y.SampleEntry.prototype.getWidth=function(){return""},y.SampleEntry.prototype.getHeight=function(){return""},y.SampleEntry.prototype.getChannelCount=function(){return""},y.SampleEntry.prototype.getSampleRate=function(){return""},y.SampleEntry.prototype.getSampleSize=function(){return""},y.VisualSampleEntry.prototype.isVideo=function(){return!0},y.VisualSampleEntry.prototype.getWidth=function(){return this.width},y.VisualSampleEntry.prototype.getHeight=function(){return this.height},y.AudioSampleEntry.prototype.isAudio=function(){return!0},y.AudioSampleEntry.prototype.getChannelCount=function(){return this.channel_count},y.AudioSampleEntry.prototype.getSampleRate=function(){return this.samplerate},y.AudioSampleEntry.prototype.getSampleSize=function(){return this.samplesize},y.SubtitleSampleEntry.prototype.isSubtitle=function(){return!0},y.MetadataSampleEntry.prototype.isMetadata=function(){return!0},y.decimalToHex=function(e,t){var n=Number(e).toString(16);for(t=null==t?t=2:t;n.length<t;)n="0"+n;return n},y.avc1SampleEntry.prototype.getCodec=y.avc2SampleEntry.prototype.getCodec=y.avc3SampleEntry.prototype.getCodec=y.avc4SampleEntry.prototype.getCodec=function(){var e=y.SampleEntry.prototype.getCodec.call(this);return this.avcC?e+"."+y.decimalToHex(this.avcC.AVCProfileIndication)+y.decimalToHex(this.avcC.profile_compatibility)+y.decimalToHex(this.avcC.AVCLevelIndication):e},y.hev1SampleEntry.prototype.getCodec=y.hvc1SampleEntry.prototype.getCodec=function(){var i,e=y.SampleEntry.prototype.getCodec.call(this);if(this.hvcC){switch(e+=".",this.hvcC.general_profile_space){case 0:e+="";break;case 1:e+="A";break;case 2:e+="B";break;case 3:e+="C"}e+=this.hvcC.general_profile_idc,e+=".";var t=this.hvcC.general_profile_compatibility,n=0;for(i=0;i<32&&(n|=1&t,31!=i);i++)n<<=1,t>>=1;e+=y.decimalToHex(n,0),e+=".",0===this.hvcC.general_tier_flag?e+="L":e+="H",e+=this.hvcC.general_level_idc;var r=!1,o="";for(i=5;i>=0;i--)(this.hvcC.general_constraint_indicator[i]||r)&&(o="."+y.decimalToHex(this.hvcC.general_constraint_indicator[i],0)+o,r=!0);e+=o}return e},y.vvc1SampleEntry.prototype.getCodec=y.vvi1SampleEntry.prototype.getCodec=function(){var i,e=y.SampleEntry.prototype.getCodec.call(this);if(this.vvcC){e+="."+this.vvcC.general_profile_idc,this.vvcC.general_tier_flag?e+=".H":e+=".L",e+=this.vvcC.general_level_idc;var t="";if(this.vvcC.general_constraint_info){var n,r=[],o=0;for(o|=this.vvcC.ptl_frame_only_constraint<<7,o|=this.vvcC.ptl_multilayer_enabled<<6,i=0;i<this.vvcC.general_constraint_info.length;++i)o|=this.vvcC.general_constraint_info[i]>>2&63,r.push(o),o&&(n=i),o=this.vvcC.general_constraint_info[i]>>2&3;if(void 0===n)t=".CA";else{t=".C";var c="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",l=0,h=0;for(i=0;i<=n;++i)for(l=l<<8|r[i],h+=8;h>=5;){t+=c[l>>h-5&31],l&=(1<<(h-=5))-1}h&&(t+=c[31&(l<<=5-h)])}}e+=t}return e},y.mp4aSampleEntry.prototype.getCodec=function(){var e=y.SampleEntry.prototype.getCodec.call(this);if(this.esds&&this.esds.esd){var t=this.esds.esd.getOTI(),n=this.esds.esd.getAudioConfig();return e+"."+y.decimalToHex(t)+(n?"."+n:"")}return e},y.stxtSampleEntry.prototype.getCodec=function(){var e=y.SampleEntry.prototype.getCodec.call(this);return this.mime_format?e+"."+this.mime_format:e},y.vp08SampleEntry.prototype.getCodec=y.vp09SampleEntry.prototype.getCodec=function(){var e=y.SampleEntry.prototype.getCodec.call(this),t=this.vpcC.level;0==t&&(t="00");var n=this.vpcC.bitDepth;return 8==n&&(n="08"),e+".0"+this.vpcC.profile+"."+t+"."+n},y.av01SampleEntry.prototype.getCodec=function(){var e,t=y.SampleEntry.prototype.getCodec.call(this),n=this.av1C.seq_level_idx_0;return n<10&&(n="0"+n),2===this.av1C.seq_profile&&1===this.av1C.high_bitdepth?e=1===this.av1C.twelve_bit?"12":"10":this.av1C.seq_profile<=2&&(e=1===this.av1C.high_bitdepth?"10":"08"),t+"."+this.av1C.seq_profile+"."+n+(this.av1C.seq_tier_0?"H":"M")+"."+e},y.Box.prototype.writeHeader=function(e,t){this.size+=8,this.size>f&&(this.size+=8),"uuid"===this.type&&(this.size+=16),l.debug("BoxWriter","Writing box "+this.type+" of size: "+this.size+" at position "+e.getPosition()+(t||"")),this.size>f?e.writeUint32(1):(this.sizePosition=e.getPosition(),e.writeUint32(this.size)),e.writeString(this.type,null,4),"uuid"===this.type&&e.writeUint8Array(this.uuid),this.size>f&&e.writeUint64(this.size)},y.FullBox.prototype.writeHeader=function(e){this.size+=4,y.Box.prototype.writeHeader.call(this,e," v="+this.version+" f="+this.flags),e.writeUint8(this.version),e.writeUint24(this.flags)},y.Box.prototype.write=function(e){"mdat"===this.type?this.data&&(this.size=this.data.length,this.writeHeader(e),e.writeUint8Array(this.data)):(this.size=this.data?this.data.length:0,this.writeHeader(e),this.data&&e.writeUint8Array(this.data))},y.ContainerBox.prototype.write=function(e){this.size=0,this.writeHeader(e);for(var i=0;i<this.boxes.length;i++)this.boxes[i]&&(this.boxes[i].write(e),this.size+=this.boxes[i].size);l.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size)},y.TrackReferenceTypeBox.prototype.write=function(e){this.size=4*this.track_ids.length,this.writeHeader(e),e.writeUint32Array(this.track_ids)},y.avcCBox.prototype.write=function(e){var i;for(this.size=7,i=0;i<this.SPS.length;i++)this.size+=2+this.SPS[i].length;for(i=0;i<this.PPS.length;i++)this.size+=2+this.PPS[i].length;for(this.ext&&(this.size+=this.ext.length),this.writeHeader(e),e.writeUint8(this.configurationVersion),e.writeUint8(this.AVCProfileIndication),e.writeUint8(this.profile_compatibility),e.writeUint8(this.AVCLevelIndication),e.writeUint8(this.lengthSizeMinusOne+252),e.writeUint8(this.SPS.length+224),i=0;i<this.SPS.length;i++)e.writeUint16(this.SPS[i].length),e.writeUint8Array(this.SPS[i].nalu);for(e.writeUint8(this.PPS.length),i=0;i<this.PPS.length;i++)e.writeUint16(this.PPS[i].length),e.writeUint8Array(this.PPS[i].nalu);this.ext&&e.writeUint8Array(this.ext)},y.co64Box.prototype.write=function(e){var i;for(this.version=0,this.flags=0,this.size=4+8*this.chunk_offsets.length,this.writeHeader(e),e.writeUint32(this.chunk_offsets.length),i=0;i<this.chunk_offsets.length;i++)e.writeUint64(this.chunk_offsets[i])},y.cslgBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=20,this.writeHeader(e),e.writeInt32(this.compositionToDTSShift),e.writeInt32(this.leastDecodeToDisplayDelta),e.writeInt32(this.greatestDecodeToDisplayDelta),e.writeInt32(this.compositionStartTime),e.writeInt32(this.compositionEndTime)},y.cttsBox.prototype.write=function(e){var i;for(this.version=0,this.flags=0,this.size=4+8*this.sample_counts.length,this.writeHeader(e),e.writeUint32(this.sample_counts.length),i=0;i<this.sample_counts.length;i++)e.writeUint32(this.sample_counts[i]),1===this.version?e.writeInt32(this.sample_offsets[i]):e.writeUint32(this.sample_offsets[i])},y.drefBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=4,this.writeHeader(e),e.writeUint32(this.entries.length);for(var i=0;i<this.entries.length;i++)this.entries[i].write(e),this.size+=this.entries[i].size;l.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size)},y.elngBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=this.extended_language.length,this.writeHeader(e),e.writeString(this.extended_language)},y.elstBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=4+12*this.entries.length,this.writeHeader(e),e.writeUint32(this.entries.length);for(var i=0;i<this.entries.length;i++){var t=this.entries[i];e.writeUint32(t.segment_duration),e.writeInt32(t.media_time),e.writeInt16(t.media_rate_integer),e.writeInt16(t.media_rate_fraction)}},y.emsgBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=16+this.message_data.length+(this.scheme_id_uri.length+1)+(this.value.length+1),this.writeHeader(e),e.writeCString(this.scheme_id_uri),e.writeCString(this.value),e.writeUint32(this.timescale),e.writeUint32(this.presentation_time_delta),e.writeUint32(this.event_duration),e.writeUint32(this.id),e.writeUint8Array(this.message_data)},y.ftypBox.prototype.write=function(e){this.size=8+4*this.compatible_brands.length,this.writeHeader(e),e.writeString(this.major_brand,null,4),e.writeUint32(this.minor_version);for(var i=0;i<this.compatible_brands.length;i++)e.writeString(this.compatible_brands[i],null,4)},y.hdlrBox.prototype.write=function(e){this.size=20+this.name.length+1,this.version=0,this.flags=0,this.writeHeader(e),e.writeUint32(0),e.writeString(this.handler,null,4),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeCString(this.name)},y.kindBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=this.schemeURI.length+1+(this.value.length+1),this.writeHeader(e),e.writeCString(this.schemeURI),e.writeCString(this.value)},y.mdhdBox.prototype.write=function(e){this.size=20,this.flags=0,this.version=0,this.writeHeader(e),e.writeUint32(this.creation_time),e.writeUint32(this.modification_time),e.writeUint32(this.timescale),e.writeUint32(this.duration),e.writeUint16(this.language),e.writeUint16(0)},y.mehdBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=4,this.writeHeader(e),e.writeUint32(this.fragment_duration)},y.mfhdBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=4,this.writeHeader(e),e.writeUint32(this.sequence_number)},y.mvhdBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=96,this.writeHeader(e),e.writeUint32(this.creation_time),e.writeUint32(this.modification_time),e.writeUint32(this.timescale),e.writeUint32(this.duration),e.writeUint32(this.rate),e.writeUint16(this.volume<<8),e.writeUint16(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32Array(this.matrix),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(this.next_track_id)},y.SampleEntry.prototype.writeHeader=function(e){this.size=8,y.Box.prototype.writeHeader.call(this,e),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint16(this.data_reference_index)},y.SampleEntry.prototype.writeFooter=function(e){for(var i=0;i<this.boxes.length;i++)this.boxes[i].write(e),this.size+=this.boxes[i].size;l.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size)},y.SampleEntry.prototype.write=function(e){this.writeHeader(e),e.writeUint8Array(this.data),this.size+=this.data.length,l.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size)},y.VisualSampleEntry.prototype.write=function(e){this.writeHeader(e),this.size+=70,e.writeUint16(0),e.writeUint16(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint16(this.width),e.writeUint16(this.height),e.writeUint32(this.horizresolution),e.writeUint32(this.vertresolution),e.writeUint32(0),e.writeUint16(this.frame_count),e.writeUint8(Math.min(31,this.compressorname.length)),e.writeString(this.compressorname,null,31),e.writeUint16(this.depth),e.writeInt16(-1),this.writeFooter(e)},y.AudioSampleEntry.prototype.write=function(e){this.writeHeader(e),this.size+=20,e.writeUint32(0),e.writeUint32(0),e.writeUint16(this.channel_count),e.writeUint16(this.samplesize),e.writeUint16(0),e.writeUint16(0),e.writeUint32(this.samplerate<<16),this.writeFooter(e)},y.stppSampleEntry.prototype.write=function(e){this.writeHeader(e),this.size+=this.namespace.length+1+this.schema_location.length+1+this.auxiliary_mime_types.length+1,e.writeCString(this.namespace),e.writeCString(this.schema_location),e.writeCString(this.auxiliary_mime_types),this.writeFooter(e)},y.SampleGroupEntry.prototype.write=function(e){e.writeUint8Array(this.data)},y.sbgpBox.prototype.write=function(e){this.version=1,this.flags=0,this.size=12+8*this.entries.length,this.writeHeader(e),e.writeString(this.grouping_type,null,4),e.writeUint32(this.grouping_type_parameter),e.writeUint32(this.entries.length);for(var i=0;i<this.entries.length;i++){var t=this.entries[i];e.writeInt32(t.sample_count),e.writeInt32(t.group_description_index)}},y.sgpdBox.prototype.write=function(e){var i,t;for(this.flags=0,this.size=12,i=0;i<this.entries.length;i++)t=this.entries[i],1===this.version&&(0===this.default_length&&(this.size+=4),this.size+=t.data.length);for(this.writeHeader(e),e.writeString(this.grouping_type,null,4),1===this.version&&e.writeUint32(this.default_length),this.version>=2&&e.writeUint32(this.default_sample_description_index),e.writeUint32(this.entries.length),i=0;i<this.entries.length;i++)t=this.entries[i],1===this.version&&0===this.default_length&&e.writeUint32(t.description_length),t.write(e)},y.sidxBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=20+12*this.references.length,this.writeHeader(e),e.writeUint32(this.reference_ID),e.writeUint32(this.timescale),e.writeUint32(this.earliest_presentation_time),e.writeUint32(this.first_offset),e.writeUint16(0),e.writeUint16(this.references.length);for(var i=0;i<this.references.length;i++){var t=this.references[i];e.writeUint32(t.reference_type<<31|t.referenced_size),e.writeUint32(t.subsegment_duration),e.writeUint32(t.starts_with_SAP<<31|t.SAP_type<<28|t.SAP_delta_time)}},y.smhdBox.prototype.write=function(e){this.version=0,this.flags=1,this.size=4,this.writeHeader(e),e.writeUint16(this.balance),e.writeUint16(0)},y.stcoBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=4+4*this.chunk_offsets.length,this.writeHeader(e),e.writeUint32(this.chunk_offsets.length),e.writeUint32Array(this.chunk_offsets)},y.stscBox.prototype.write=function(e){var i;for(this.version=0,this.flags=0,this.size=4+12*this.first_chunk.length,this.writeHeader(e),e.writeUint32(this.first_chunk.length),i=0;i<this.first_chunk.length;i++)e.writeUint32(this.first_chunk[i]),e.writeUint32(this.samples_per_chunk[i]),e.writeUint32(this.sample_description_index[i])},y.stsdBox.prototype.write=function(e){var i;for(this.version=0,this.flags=0,this.size=0,this.writeHeader(e),e.writeUint32(this.entries.length),this.size+=4,i=0;i<this.entries.length;i++)this.entries[i].write(e),this.size+=this.entries[i].size;l.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size)},y.stshBox.prototype.write=function(e){var i;for(this.version=0,this.flags=0,this.size=4+8*this.shadowed_sample_numbers.length,this.writeHeader(e),e.writeUint32(this.shadowed_sample_numbers.length),i=0;i<this.shadowed_sample_numbers.length;i++)e.writeUint32(this.shadowed_sample_numbers[i]),e.writeUint32(this.sync_sample_numbers[i])},y.stssBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=4+4*this.sample_numbers.length,this.writeHeader(e),e.writeUint32(this.sample_numbers.length),e.writeUint32Array(this.sample_numbers)},y.stszBox.prototype.write=function(e){var i,t=!0;if(this.version=0,this.flags=0,this.sample_sizes.length>0)for(i=0;i+1<this.sample_sizes.length;){if(this.sample_sizes[i+1]!==this.sample_sizes[0]){t=!1;break}i++}else t=!1;this.size=8,t||(this.size+=4*this.sample_sizes.length),this.writeHeader(e),t?e.writeUint32(this.sample_sizes[0]):e.writeUint32(0),e.writeUint32(this.sample_sizes.length),t||e.writeUint32Array(this.sample_sizes)},y.sttsBox.prototype.write=function(e){var i;for(this.version=0,this.flags=0,this.size=4+8*this.sample_counts.length,this.writeHeader(e),e.writeUint32(this.sample_counts.length),i=0;i<this.sample_counts.length;i++)e.writeUint32(this.sample_counts[i]),e.writeUint32(this.sample_deltas[i])},y.tfdtBox.prototype.write=function(e){var t=Math.pow(2,32)-1;this.version=this.baseMediaDecodeTime>t?1:0,this.flags=0,this.size=4,1===this.version&&(this.size+=4),this.writeHeader(e),1===this.version?e.writeUint64(this.baseMediaDecodeTime):e.writeUint32(this.baseMediaDecodeTime)},y.tfhdBox.prototype.write=function(e){this.version=0,this.size=4,this.flags&y.TFHD_FLAG_BASE_DATA_OFFSET&&(this.size+=8),this.flags&y.TFHD_FLAG_SAMPLE_DESC&&(this.size+=4),this.flags&y.TFHD_FLAG_SAMPLE_DUR&&(this.size+=4),this.flags&y.TFHD_FLAG_SAMPLE_SIZE&&(this.size+=4),this.flags&y.TFHD_FLAG_SAMPLE_FLAGS&&(this.size+=4),this.writeHeader(e),e.writeUint32(this.track_id),this.flags&y.TFHD_FLAG_BASE_DATA_OFFSET&&e.writeUint64(this.base_data_offset),this.flags&y.TFHD_FLAG_SAMPLE_DESC&&e.writeUint32(this.default_sample_description_index),this.flags&y.TFHD_FLAG_SAMPLE_DUR&&e.writeUint32(this.default_sample_duration),this.flags&y.TFHD_FLAG_SAMPLE_SIZE&&e.writeUint32(this.default_sample_size),this.flags&y.TFHD_FLAG_SAMPLE_FLAGS&&e.writeUint32(this.default_sample_flags)},y.tkhdBox.prototype.write=function(e){this.version=0,this.size=80,this.writeHeader(e),e.writeUint32(this.creation_time),e.writeUint32(this.modification_time),e.writeUint32(this.track_id),e.writeUint32(0),e.writeUint32(this.duration),e.writeUint32(0),e.writeUint32(0),e.writeInt16(this.layer),e.writeInt16(this.alternate_group),e.writeInt16(this.volume<<8),e.writeUint16(0),e.writeInt32Array(this.matrix),e.writeUint32(this.width),e.writeUint32(this.height)},y.trexBox.prototype.write=function(e){this.version=0,this.flags=0,this.size=20,this.writeHeader(e),e.writeUint32(this.track_id),e.writeUint32(this.default_sample_description_index),e.writeUint32(this.default_sample_duration),e.writeUint32(this.default_sample_size),e.writeUint32(this.default_sample_flags)},y.trunBox.prototype.write=function(e){this.version=0,this.size=4,this.flags&y.TRUN_FLAGS_DATA_OFFSET&&(this.size+=4),this.flags&y.TRUN_FLAGS_FIRST_FLAG&&(this.size+=4),this.flags&y.TRUN_FLAGS_DURATION&&(this.size+=4*this.sample_duration.length),this.flags&y.TRUN_FLAGS_SIZE&&(this.size+=4*this.sample_size.length),this.flags&y.TRUN_FLAGS_FLAGS&&(this.size+=4*this.sample_flags.length),this.flags&y.TRUN_FLAGS_CTS_OFFSET&&(this.size+=4*this.sample_composition_time_offset.length),this.writeHeader(e),e.writeUint32(this.sample_count),this.flags&y.TRUN_FLAGS_DATA_OFFSET&&(this.data_offset_position=e.getPosition(),e.writeInt32(this.data_offset)),this.flags&y.TRUN_FLAGS_FIRST_FLAG&&e.writeUint32(this.first_sample_flags);for(var i=0;i<this.sample_count;i++)this.flags&y.TRUN_FLAGS_DURATION&&e.writeUint32(this.sample_duration[i]),this.flags&y.TRUN_FLAGS_SIZE&&e.writeUint32(this.sample_size[i]),this.flags&y.TRUN_FLAGS_FLAGS&&e.writeUint32(this.sample_flags[i]),this.flags&y.TRUN_FLAGS_CTS_OFFSET&&(0===this.version?e.writeUint32(this.sample_composition_time_offset[i]):e.writeInt32(this.sample_composition_time_offset[i]))},y["url Box"].prototype.write=function(e){this.version=0,this.location?(this.flags=0,this.size=this.location.length+1):(this.flags=1,this.size=0),this.writeHeader(e),this.location&&e.writeCString(this.location)},y["urn Box"].prototype.write=function(e){this.version=0,this.flags=0,this.size=this.name.length+1+(this.location?this.location.length+1:0),this.writeHeader(e),e.writeCString(this.name),this.location&&e.writeCString(this.location)},y.vmhdBox.prototype.write=function(e){this.version=0,this.flags=1,this.size=8,this.writeHeader(e),e.writeUint16(this.graphicsmode),e.writeUint16Array(this.opcolor)},y.cttsBox.prototype.unpack=function(e){var i,t,n;for(n=0,i=0;i<this.sample_counts.length;i++)for(t=0;t<this.sample_counts[i];t++)e[n].pts=e[n].dts+this.sample_offsets[i],n++},y.sttsBox.prototype.unpack=function(e){var i,t,n;for(n=0,i=0;i<this.sample_counts.length;i++)for(t=0;t<this.sample_counts[i];t++)e[n].dts=0===n?0:e[n-1].dts+this.sample_deltas[i],n++},y.stcoBox.prototype.unpack=function(e){var i;for(i=0;i<this.chunk_offsets.length;i++)e[i].offset=this.chunk_offsets[i]},y.stscBox.prototype.unpack=function(e){var i,t,n,r,o;for(r=0,o=0,i=0;i<this.first_chunk.length;i++)for(t=0;t<(i+1<this.first_chunk.length?this.first_chunk[i+1]:1/0);t++)for(o++,n=0;n<this.samples_per_chunk[i];n++){if(!e[r])return;e[r].description_index=this.sample_description_index[i],e[r].chunk_index=o,r++}},y.stszBox.prototype.unpack=function(e){var i;for(i=0;i<this.sample_sizes.length;i++)e[i].size=this.sample_sizes[i]},y.DIFF_BOXES_PROP_NAMES=["boxes","entries","references","subsamples","items","item_infos","extents","associations","subsegments","ranges","seekLists","seekPoints","esd","levels"],y.DIFF_PRIMITIVE_ARRAY_PROP_NAMES=["compatible_brands","matrix","opcolor","sample_counts","sample_counts","sample_deltas","first_chunk","samples_per_chunk","sample_sizes","chunk_offsets","sample_offsets","sample_description_index","sample_duration"],y.boxEqualFields=function(e,t){if(e&&!t)return!1;var n;for(n in e)if(!(y.DIFF_BOXES_PROP_NAMES.indexOf(n)>-1||e[n]instanceof y.Box||t[n]instanceof y.Box||void 0===e[n]||void 0===t[n]||"function"==typeof e[n]||"function"==typeof t[n]||e.subBoxNames&&e.subBoxNames.indexOf(n.slice(0,4))>-1||t.subBoxNames&&t.subBoxNames.indexOf(n.slice(0,4))>-1||"data"===n||"start"===n||"size"===n||"creation_time"===n||"modification_time"===n||y.DIFF_PRIMITIVE_ARRAY_PROP_NAMES.indexOf(n)>-1||e[n]===t[n]))return!1;return!0},y.boxEqual=function(e,t){if(!y.boxEqualFields(e,t))return!1;for(var n=0;n<y.DIFF_BOXES_PROP_NAMES.length;n++){var r=y.DIFF_BOXES_PROP_NAMES[n];if(e[r]&&t[r]&&!y.boxEqual(e[r],t[r]))return!1}return!0};var w=function(){};w.prototype.parseSample=function(data){var e,t,n=new h(data.buffer);for(e=[];!n.isEos();)(t=y.parseOneBox(n,!1)).code===y.OK&&"vttc"===t.box.type&&e.push(t.box);return e},w.prototype.getText=function(e,t,data){function n(e,t,n){return n=n||"0",(e+="").length>=t?e:new Array(t-e.length+1).join(n)+e}function r(e){var t=Math.floor(e/3600),r=Math.floor((e-3600*t)/60),s=Math.floor(e-3600*t-60*r),o=Math.floor(1e3*(e-3600*t-60*r-s));return n(t,2)+":"+n(r,2)+":"+n(s,2)+"."+n(o,3)}for(var o=this.parseSample(data),c="",i=0;i<o.length;i++){var l=o[i];c+=r(e)+" --\x3e "+r(t)+"\r\n",c+=l.payl.text}return c};var S=function(){};S.prototype.parseSample=function(e){var i,t={};t.resources=[];var n=new h(e.data.buffer);if(e.subsamples&&0!==e.subsamples.length){if(t.documentString=n.readString(e.subsamples[0].size),e.subsamples.length>1)for(i=1;i<e.subsamples.length;i++)t.resources[i]=n.readUint8Array(e.subsamples[i].size)}else t.documentString=n.readString(e.data.length);return"undefined"!=typeof DOMParser&&(t.document=(new DOMParser).parseFromString(t.documentString,"application/xml")),t};var _=function(){};_.prototype.parseSample=function(e){return new h(e.data.buffer).readString(e.data.length)},_.prototype.parseConfig=function(data){var e=new h(data.buffer);return e.readUint32(),e.readCString()},t.XMLSubtitlein4Parser=S,t.Textin4Parser=_;var C=function(e){this.stream=e||new m,this.boxes=[],this.mdats=[],this.moofs=[],this.isProgressive=!1,this.moovStartFound=!1,this.onMoovStart=null,this.moovStartSent=!1,this.onReady=null,this.readySent=!1,this.onSegment=null,this.onSamples=null,this.onError=null,this.sampleListBuilt=!1,this.fragmentedTracks=[],this.extractedTracks=[],this.isFragmentationInitialized=!1,this.sampleProcessingStarted=!1,this.nextMoofNumber=0,this.itemListBuilt=!1,this.onSidx=null,this.sidxSent=!1};C.prototype.setSegmentOptions=function(e,t,n){var r=this.getTrackById(e);if(r){var o={};this.fragmentedTracks.push(o),o.id=e,o.user=t,o.trak=r,r.nextSample=0,o.segmentStream=null,o.nb_samples=1e3,o.rapAlignement=!0,n&&(n.nbSamples&&(o.nb_samples=n.nbSamples),n.rapAlignement&&(o.rapAlignement=n.rapAlignement))}},C.prototype.unsetSegmentOptions=function(e){for(var t=-1,i=0;i<this.fragmentedTracks.length;i++){this.fragmentedTracks[i].id==e&&(t=i)}t>-1&&this.fragmentedTracks.splice(t,1)},C.prototype.setExtractionOptions=function(e,t,n){var r=this.getTrackById(e);if(r){var o={};this.extractedTracks.push(o),o.id=e,o.user=t,o.trak=r,r.nextSample=0,o.nb_samples=1e3,o.samples=[],n&&n.nbSamples&&(o.nb_samples=n.nbSamples)}},C.prototype.unsetExtractionOptions=function(e){for(var t=-1,i=0;i<this.extractedTracks.length;i++){this.extractedTracks[i].id==e&&(t=i)}t>-1&&this.extractedTracks.splice(t,1)},C.prototype.parse=function(){var e,t;if(!this.restoreParsePosition||this.restoreParsePosition())for(;;){if(this.hasIncompleteMdat&&this.hasIncompleteMdat()){if(this.processIncompleteMdat())continue;return}if(this.saveParsePosition&&this.saveParsePosition(),(e=y.parseOneBox(this.stream,false)).code===y.ERR_NOT_ENOUGH_DATA){if(this.processIncompleteBox){if(this.processIncompleteBox(e))continue;return}return}var n;switch(n="uuid"!==(t=e.box).type?t.type:t.uuid,this.boxes.push(t),n){case"mdat":this.mdats.push(t);break;case"moof":this.moofs.push(t);break;case"moov":this.moovStartFound=!0,0===this.mdats.length&&(this.isProgressive=!0);default:void 0!==this[n]&&l.warn("ISOFile","Duplicate Box of type: "+n+", overriding previous occurrence"),this[n]=t}this.updateUsedBytes&&this.updateUsedBytes(t,e)}},C.prototype.checkBuffer=function(e){if(null==e)throw"Buffer must be defined and non empty";if(void 0===e.fileStart)throw"Buffer must have a fileStart property";return 0===e.byteLength?(l.warn("ISOFile","Ignoring empty buffer (fileStart: "+e.fileStart+")"),this.stream.logBufferLevel(),!1):(l.info("ISOFile","Processing buffer (fileStart: "+e.fileStart+")"),e.usedBytes=0,this.stream.insertBuffer(e),this.stream.logBufferLevel(),!!this.stream.initialized()||(l.warn("ISOFile","Not ready to start parsing"),!1))},C.prototype.appendBuffer=function(e,t){var n;if(this.checkBuffer(e))return this.parse(),this.moovStartFound&&!this.moovStartSent&&(this.moovStartSent=!0,this.onMoovStart&&this.onMoovStart()),this.moov?(this.sampleListBuilt||(this.buildSampleLists(),this.sampleListBuilt=!0),this.updateSampleLists(),this.onReady&&!this.readySent&&(this.readySent=!0,this.onReady(this.getInfo())),this.processSamples(t),this.nextSeekPosition?(n=this.nextSeekPosition,this.nextSeekPosition=void 0):n=this.nextParsePosition,this.stream.getEndFilePositionAfter&&(n=this.stream.getEndFilePositionAfter(n))):n=this.nextParsePosition?this.nextParsePosition:0,this.sidx&&this.onSidx&&!this.sidxSent&&(this.onSidx(this.sidx),this.sidxSent=!0),this.meta&&(this.flattenItemInfo&&!this.itemListBuilt&&(this.flattenItemInfo(),this.itemListBuilt=!0),this.processItems&&this.processItems(this.onItem)),this.stream.cleanBuffers&&(l.info("ISOFile","Done processing buffer (fileStart: "+e.fileStart+") - next buffer to fetch should have a fileStart position of "+n),this.stream.logBufferLevel(),this.stream.cleanBuffers(),this.stream.logBufferLevel(!0),l.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize())),n},C.prototype.getInfo=function(){var i,e,t,track,n,r,o={},c=new Date("1904-01-01T00:00:00Z").getTime();if(this.moov)for(o.hasMoov=!0,o.duration=this.moov.mvhd.duration,o.timescale=this.moov.mvhd.timescale,o.isFragmented=null!=this.moov.mvex,o.isFragmented&&this.moov.mvex.mehd&&(o.fragment_duration=this.moov.mvex.mehd.fragment_duration),o.isProgressive=this.isProgressive,o.hasIOD=null!=this.moov.iods,o.brands=[],o.brands.push(this.ftyp.major_brand),o.brands=o.brands.concat(this.ftyp.compatible_brands),o.created=new Date(c+1e3*this.moov.mvhd.creation_time),o.modified=new Date(c+1e3*this.moov.mvhd.modification_time),o.tracks=[],o.audioTracks=[],o.videoTracks=[],o.subtitleTracks=[],o.metadataTracks=[],o.hintTracks=[],o.otherTracks=[],i=0;i<this.moov.traks.length;i++){if(r=(t=this.moov.traks[i]).mdia.minf.stbl.stsd.entries[0],track={},o.tracks.push(track),track.id=t.tkhd.track_id,track.name=t.mdia.hdlr.name,track.references=[],t.tref)for(e=0;e<t.tref.boxes.length;e++)n={},track.references.push(n),n.type=t.tref.boxes[e].type,n.track_ids=t.tref.boxes[e].track_ids;t.edts&&(track.edits=t.edts.elst.entries),track.created=new Date(c+1e3*t.tkhd.creation_time),track.modified=new Date(c+1e3*t.tkhd.modification_time),track.movie_duration=t.tkhd.duration,track.movie_timescale=o.timescale,track.layer=t.tkhd.layer,track.alternate_group=t.tkhd.alternate_group,track.volume=t.tkhd.volume,track.matrix=t.tkhd.matrix,track.track_width=t.tkhd.width/65536,track.track_height=t.tkhd.height/65536,track.timescale=t.mdia.mdhd.timescale,track.cts_shift=t.mdia.minf.stbl.cslg,track.duration=t.mdia.mdhd.duration,track.samples_duration=t.samples_duration,track.codec=r.getCodec(),track.kind=t.udta&&t.udta.kinds.length?t.udta.kinds[0]:{schemeURI:"",value:""},track.language=t.mdia.elng?t.mdia.elng.extended_language:t.mdia.mdhd.languageString,track.nb_samples=t.samples.length,track.size=t.samples_size,track.bitrate=8*track.size*track.timescale/track.samples_duration,r.isAudio()?(track.type="audio",o.audioTracks.push(track),track.audio={},track.audio.sample_rate=r.getSampleRate(),track.audio.channel_count=r.getChannelCount(),track.audio.sample_size=r.getSampleSize()):r.isVideo()?(track.type="video",o.videoTracks.push(track),track.video={},track.video.width=r.getWidth(),track.video.height=r.getHeight()):r.isSubtitle()?(track.type="subtitles",o.subtitleTracks.push(track)):r.isHint()?(track.type="metadata",o.hintTracks.push(track)):r.isMetadata()?(track.type="metadata",o.metadataTracks.push(track)):(track.type="metadata",o.otherTracks.push(track))}else o.hasMoov=!1;if(o.mime="",o.hasMoov&&o.tracks){for(o.videoTracks&&o.videoTracks.length>0?o.mime+='video/mp4; codecs="':o.audioTracks&&o.audioTracks.length>0?o.mime+='audio/mp4; codecs="':o.mime+='application/mp4; codecs="',i=0;i<o.tracks.length;i++)0!==i&&(o.mime+=","),o.mime+=o.tracks[i].codec;o.mime+='"; profiles="',o.mime+=this.ftyp.compatible_brands.join(),o.mime+='"'}return o},C.prototype.processSamples=function(e){var i,t;if(this.sampleProcessingStarted){if(this.isFragmentationInitialized&&null!==this.onSegment)for(i=0;i<this.fragmentedTracks.length;i++){var n=this.fragmentedTracks[i];for(t=n.trak;t.nextSample<t.samples.length&&this.sampleProcessingStarted;){l.debug("ISOFile","Creating media fragment on track #"+n.id+" for sample "+t.nextSample);var r=this.createFragment(n.id,t.nextSample,n.segmentStream);if(!r)break;if(n.segmentStream=r,t.nextSample++,(t.nextSample%n.nb_samples==0||e||t.nextSample>=t.samples.length)&&(l.info("ISOFile","Sending fragmented data on track #"+n.id+" for samples ["+Math.max(0,t.nextSample-n.nb_samples)+","+(t.nextSample-1)+"]"),l.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize()),this.onSegment&&this.onSegment(n.id,n.user,n.segmentStream.buffer,t.nextSample,e||t.nextSample>=t.samples.length),n.segmentStream=null,n!==this.fragmentedTracks[i]))break}}if(null!==this.onSamples)for(i=0;i<this.extractedTracks.length;i++){var o=this.extractedTracks[i];for(t=o.trak;t.nextSample<t.samples.length&&this.sampleProcessingStarted;){l.debug("ISOFile","Exporting on track #"+o.id+" sample #"+t.nextSample);var c=this.getSample(t,t.nextSample);if(!c)break;if(t.nextSample++,o.samples.push(c),(t.nextSample%o.nb_samples==0||t.nextSample>=t.samples.length)&&(l.debug("ISOFile","Sending samples on track #"+o.id+" for sample "+t.nextSample),this.onSamples&&this.onSamples(o.id,o.user,o.samples),o.samples=[],o!==this.extractedTracks[i]))break}}}},C.prototype.getBox=function(e){var t=this.getBoxes(e,!0);return t.length?t[0]:null},C.prototype.getBoxes=function(e,t){var n=[];return C._sweep.call(this,e,n,t),n},C._sweep=function(e,t,n){for(var r in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&n)return;C._sweep.call(this.boxes[r],e,t,n)}},C.prototype.getTrackSamplesInfo=function(e){var track=this.getTrackById(e);return track?track.samples:void 0},C.prototype.getTrackSample=function(e,t){var track=this.getTrackById(e);return this.getSample(track,t)},C.prototype.releaseUsedSamples=function(e,t){var n=0,r=this.getTrackById(e);r.lastValidSample||(r.lastValidSample=0);for(var i=r.lastValidSample;i<t;i++)n+=this.releaseSample(r,i);l.info("ISOFile","Track #"+e+" released samples up to "+t+" (released size: "+n+", remaining: "+this.samplesDataSize+")"),r.lastValidSample=t},C.prototype.start=function(){this.sampleProcessingStarted=!0,this.processSamples(!1)},C.prototype.stop=function(){this.sampleProcessingStarted=!1},C.prototype.flush=function(){l.info("ISOFile","Flushing remaining samples"),this.updateSampleLists(),this.processSamples(!0),this.stream.cleanBuffers(),this.stream.logBufferLevel(!0)},C.prototype.seekTrack=function(time,e,t){var n,r,o,c,h=0,d=0;if(0===t.samples.length)return l.info("ISOFile","No sample in track, cannot seek! Using time "+l.getDurationString(0,1)+" and offset: 0"),{offset:0,time:0};for(n=0;n<t.samples.length;n++){if(r=t.samples[n],0===n)d=0,c=r.timescale;else if(r.cts>time*r.timescale){d=n-1;break}e&&r.is_sync&&(h=n)}for(e&&(d=h),time=t.samples[d].cts,t.nextSample=d;t.samples[d].alreadyRead===t.samples[d].size&&t.samples[d+1];)d++;return o=t.samples[d].offset+t.samples[d].alreadyRead,l.info("ISOFile","Seeking to "+(e?"RAP":"")+" sample #"+t.nextSample+" on track "+t.tkhd.track_id+", time "+l.getDurationString(time,c)+" and offset: "+o),{offset:o,time:time/c}},C.prototype.seek=function(time,e){var t,n,i,r=this.moov,o={offset:1/0,time:1/0};if(this.moov){for(i=0;i<r.traks.length;i++)t=r.traks[i],(n=this.seekTrack(time,e,t)).offset<o.offset&&(o.offset=n.offset),n.time<o.time&&(o.time=n.time);return l.info("ISOFile","Seeking at time "+l.getDurationString(o.time,1)+" needs a buffer with a fileStart position of "+o.offset),o.offset===1/0?o={offset:this.nextParsePosition,time:0}:o.offset=this.stream.getEndFilePositionAfter(o.offset),l.info("ISOFile","Adjusted seek position (after checking data already in buffer): "+o.offset),o}throw"Cannot seek: moov not received!"},C.prototype.equal=function(b){for(var e=0;e<this.boxes.length&&e<b.boxes.length;){var t=this.boxes[e],n=b.boxes[e];if(!y.boxEqual(t,n))return!1;e++}return!0},t.ISOFile=C,C.prototype.lastBoxStartPosition=0,C.prototype.parsingMdat=null,C.prototype.nextParsePosition=0,C.prototype.discardMdatData=!1,C.prototype.processIncompleteBox=function(e){var t;return"mdat"===e.type?(t=new y[e.type+"Box"](e.size),this.parsingMdat=t,this.boxes.push(t),this.mdats.push(t),t.start=e.start,t.hdr_size=e.hdr_size,this.stream.addUsedBytes(t.hdr_size),this.lastBoxStartPosition=t.start+t.size,this.stream.seek(t.start+t.size,!1,this.discardMdatData)?(this.parsingMdat=null,!0):(this.moovStartFound?this.nextParsePosition=this.stream.findEndContiguousBuf():this.nextParsePosition=t.start+t.size,!1)):("moov"===e.type&&(this.moovStartFound=!0,0===this.mdats.length&&(this.isProgressive=!0)),!!this.stream.mergeNextBuffer&&this.stream.mergeNextBuffer()?(this.nextParsePosition=this.stream.getEndPosition(),!0):(e.type?this.moovStartFound?this.nextParsePosition=this.stream.getEndPosition():this.nextParsePosition=this.stream.getPosition()+e.size:this.nextParsePosition=this.stream.getEndPosition(),!1))},C.prototype.hasIncompleteMdat=function(){return null!==this.parsingMdat},C.prototype.processIncompleteMdat=function(){var e;return e=this.parsingMdat,this.stream.seek(e.start+e.size,!1,this.discardMdatData)?(l.debug("ISOFile","Found 'mdat' end in buffered data"),this.parsingMdat=null,!0):(this.nextParsePosition=this.stream.findEndContiguousBuf(),!1)},C.prototype.restoreParsePosition=function(){return this.stream.seek(this.lastBoxStartPosition,!0,this.discardMdatData)},C.prototype.saveParsePosition=function(){this.lastBoxStartPosition=this.stream.getPosition()},C.prototype.updateUsedBytes=function(e,t){this.stream.addUsedBytes&&("mdat"===e.type?(this.stream.addUsedBytes(e.hdr_size),this.discardMdatData&&this.stream.addUsedBytes(e.size-e.hdr_size)):this.stream.addUsedBytes(e.size))},C.prototype.add=y.Box.prototype.add,C.prototype.addBox=y.Box.prototype.addBox,C.prototype.init=function(e){var t=e||{},n=(this.add("ftyp").set("major_brand",t.brands&&t.brands[0]||"iso4").set("minor_version",0).set("compatible_brands",t.brands||["iso4"]),this.add("moov"));return n.add("mvhd").set("timescale",t.timescale||600).set("rate",t.rate||65536).set("creation_time",0).set("modification_time",0).set("duration",t.duration||0).set("volume",t.width?0:256).set("matrix",[65536,0,0,0,65536,0,0,0,1073741824]).set("next_track_id",1),n.add("mvex"),this},C.prototype.addTrack=function(e){this.moov||this.init(e);var t=e||{};t.width=t.width||320,t.height=t.height||320,t.id=t.id||this.moov.mvhd.next_track_id,t.type=t.type||"avc1";var n=this.moov.add("trak");this.moov.mvhd.next_track_id=t.id+1,n.add("tkhd").set("flags",y.TKHD_FLAG_ENABLED|y.TKHD_FLAG_IN_MOVIE|y.TKHD_FLAG_IN_PREVIEW).set("creation_time",0).set("modification_time",0).set("track_id",t.id).set("duration",t.duration||0).set("layer",t.layer||0).set("alternate_group",0).set("volume",1).set("matrix",[0,0,0,0,0,0,0,0,0]).set("width",t.width<<16).set("height",t.height<<16);var r=n.add("mdia");r.add("mdhd").set("creation_time",0).set("modification_time",0).set("timescale",t.timescale||1).set("duration",t.media_duration||0).set("language",t.language||"und"),r.add("hdlr").set("handler",t.hdlr||"vide").set("name",t.name||"Track created with MP4Box.js"),r.add("elng").set("extended_language",t.language||"fr-FR");var o=r.add("minf");if(void 0!==y[t.type+"SampleEntry"]){var c=new y[t.type+"SampleEntry"];c.data_reference_index=1;var l="";for(var d in y.sampleEntryCodes)for(var f=y.sampleEntryCodes[d],i=0;i<f.length;i++)if(f.indexOf(t.type)>-1){l=d;break}switch(l){case"Visual":if(o.add("vmhd").set("graphicsmode",0).set("opcolor",[0,0,0]),c.set("width",t.width).set("height",t.height).set("horizresolution",72<<16).set("vertresolution",72<<16).set("frame_count",1).set("compressorname",t.type+" Compressor").set("depth",24),t.avcDecoderConfigRecord){var m=new y.avcCBox,v=new h(t.avcDecoderConfigRecord);m.parse(v),c.addBox(m)}break;case"Audio":o.add("smhd").set("balance",t.balance||0),c.set("channel_count",t.channel_count||2).set("samplesize",t.samplesize||16).set("samplerate",t.samplerate||65536);break;case"Hint":o.add("hmhd");break;case"Subtitle":if(o.add("sthd"),"stpp"===t.type)c.set("namespace",t.namespace||"nonamespace").set("schema_location",t.schema_location||"").set("auxiliary_mime_types",t.auxiliary_mime_types||"");break;default:o.add("nmhd")}t.description&&c.addBox(t.description),t.description_boxes&&t.description_boxes.forEach((function(b){c.addBox(b)})),o.add("dinf").add("dref").addEntry((new y["url Box"]).set("flags",1));var w=o.add("stbl");return w.add("stsd").addEntry(c),w.add("stts").set("sample_counts",[]).set("sample_deltas",[]),w.add("stsc").set("first_chunk",[]).set("samples_per_chunk",[]).set("sample_description_index",[]),w.add("stco").set("chunk_offsets",[]),w.add("stsz").set("sample_sizes",[]),this.moov.mvex.add("trex").set("track_id",t.id).set("default_sample_description_index",t.default_sample_description_index||1).set("default_sample_duration",t.default_sample_duration||0).set("default_sample_size",t.default_sample_size||0).set("default_sample_flags",t.default_sample_flags||0),this.buildTrakSampleLists(n),t.id}},y.Box.prototype.computeSize=function(e){var t=e||new d;t.endianness=d.BIG_ENDIAN,this.write(t)},C.prototype.addSample=function(e,data,t){var n=t||{},r={},o=this.getTrackById(e);if(null!==o){r.number=o.samples.length,r.track_id=o.tkhd.track_id,r.timescale=o.mdia.mdhd.timescale,r.description_index=n.sample_description_index?n.sample_description_index-1:0,r.description=o.mdia.minf.stbl.stsd.entries[r.description_index],r.data=data,r.size=data.byteLength,r.alreadyRead=r.size,r.duration=n.duration||1,r.cts=n.cts||0,r.dts=n.dts||0,r.is_sync=n.is_sync||!1,r.is_leading=n.is_leading||0,r.depends_on=n.depends_on||0,r.is_depended_on=n.is_depended_on||0,r.has_redundancy=n.has_redundancy||0,r.degradation_priority=n.degradation_priority||0,r.offset=0,r.subsamples=n.subsamples,o.samples.push(r),o.samples_size+=r.size,o.samples_duration+=r.duration,o.first_dts||(o.first_dts=n.dts),this.processSamples();var c=this.createSingleSampleMoof(r);return this.addBox(c),c.computeSize(),c.trafs[0].truns[0].data_offset=c.size+8,this.add("mdat").data=new Uint8Array(data),r}},C.prototype.createSingleSampleMoof=function(e){var t=0;t=e.is_sync?1<<25:65536;var n=new y.moofBox;n.add("mfhd").set("sequence_number",this.nextMoofNumber),this.nextMoofNumber++;var r=n.add("traf"),o=this.getTrackById(e.track_id);return r.add("tfhd").set("track_id",e.track_id).set("flags",y.TFHD_FLAG_DEFAULT_BASE_IS_MOOF),r.add("tfdt").set("baseMediaDecodeTime",e.dts-(o.first_dts||0)),r.add("trun").set("flags",y.TRUN_FLAGS_DATA_OFFSET|y.TRUN_FLAGS_DURATION|y.TRUN_FLAGS_SIZE|y.TRUN_FLAGS_FLAGS|y.TRUN_FLAGS_CTS_OFFSET).set("data_offset",0).set("first_sample_flags",0).set("sample_count",1).set("sample_duration",[e.duration]).set("sample_size",[e.size]).set("sample_flags",[t]).set("sample_composition_time_offset",[e.cts-e.dts]),n},C.prototype.lastMoofIndex=0,C.prototype.samplesDataSize=0,C.prototype.resetTables=function(){var i,e,t,n,r,o;for(this.initial_duration=this.moov.mvhd.duration,this.moov.mvhd.duration=0,i=0;i<this.moov.traks.length;i++){(e=this.moov.traks[i]).tkhd.duration=0,e.mdia.mdhd.duration=0,(e.mdia.minf.stbl.stco||e.mdia.minf.stbl.co64).chunk_offsets=[],(t=e.mdia.minf.stbl.stsc).first_chunk=[],t.samples_per_chunk=[],t.sample_description_index=[],(e.mdia.minf.stbl.stsz||e.mdia.minf.stbl.stz2).sample_sizes=[],(n=e.mdia.minf.stbl.stts).sample_counts=[],n.sample_deltas=[],(r=e.mdia.minf.stbl.ctts)&&(r.sample_counts=[],r.sample_offsets=[]),o=e.mdia.minf.stbl.stss;var c=e.mdia.minf.stbl.boxes.indexOf(o);-1!=c&&(e.mdia.minf.stbl.boxes[c]=null)}},C.initSampleGroups=function(e,t,n,r,o){var c,l,h,d;function f(e,t,n){this.grouping_type=e,this.grouping_type_parameter=t,this.sbgp=n,this.last_sample_in_run=-1,this.entry_index=-1}for(t&&(t.sample_groups_info=[]),e.sample_groups_info||(e.sample_groups_info=[]),l=0;l<n.length;l++){for(d=n[l].grouping_type+"/"+n[l].grouping_type_parameter,h=new f(n[l].grouping_type,n[l].grouping_type_parameter,n[l]),t&&(t.sample_groups_info[d]=h),e.sample_groups_info[d]||(e.sample_groups_info[d]=h),c=0;c<r.length;c++)r[c].grouping_type===n[l].grouping_type&&(h.description=r[c],h.description.used=!0);if(o)for(c=0;c<o.length;c++)o[c].grouping_type===n[l].grouping_type&&(h.fragment_description=o[c],h.fragment_description.used=!0,h.is_fragment=!0)}if(t){if(o)for(l=0;l<o.length;l++)!o[l].used&&o[l].version>=2&&(d=o[l].grouping_type+"/0",(h=new f(o[l].grouping_type,0)).is_fragment=!0,t.sample_groups_info[d]||(t.sample_groups_info[d]=h))}else for(l=0;l<r.length;l++)!r[l].used&&r[l].version>=2&&(d=r[l].grouping_type+"/0",h=new f(r[l].grouping_type,0),e.sample_groups_info[d]||(e.sample_groups_info[d]=h))},C.setSampleGroupProperties=function(e,t,n,r){var o,c;for(o in t.sample_groups=[],r){var l;if(t.sample_groups[o]={},t.sample_groups[o].grouping_type=r[o].grouping_type,t.sample_groups[o].grouping_type_parameter=r[o].grouping_type_parameter,n>=r[o].last_sample_in_run&&(r[o].last_sample_in_run<0&&(r[o].last_sample_in_run=0),r[o].entry_index++,r[o].entry_index<=r[o].sbgp.entries.length-1&&(r[o].last_sample_in_run+=r[o].sbgp.entries[r[o].entry_index].sample_count)),r[o].entry_index<=r[o].sbgp.entries.length-1?t.sample_groups[o].group_description_index=r[o].sbgp.entries[r[o].entry_index].group_description_index:t.sample_groups[o].group_description_index=-1,0!==t.sample_groups[o].group_description_index)l=r[o].fragment_description?r[o].fragment_description:r[o].description,t.sample_groups[o].group_description_index>0?(c=t.sample_groups[o].group_description_index>65535?(t.sample_groups[o].group_description_index>>16)-1:t.sample_groups[o].group_description_index-1,l&&c>=0&&(t.sample_groups[o].description=l.entries[c])):l&&l.version>=2&&l.default_group_description_index>0&&(t.sample_groups[o].description=l.entries[l.default_group_description_index-1])}},C.process_sdtp=function(e,t,n){t&&(e?(t.is_leading=e.is_leading[n],t.depends_on=e.sample_depends_on[n],t.is_depended_on=e.sample_is_depended_on[n],t.has_redundancy=e.sample_has_redundancy[n]):(t.is_leading=0,t.depends_on=0,t.is_depended_on=0,t.has_redundancy=0))},C.prototype.buildSampleLists=function(){var i,e;for(i=0;i<this.moov.traks.length;i++)e=this.moov.traks[i],this.buildTrakSampleLists(e)},C.prototype.buildTrakSampleLists=function(e){var t,n,r,o,c,l,h,d,f,m,v,y,w,S,_,O,A,T,E,P,M,x,k,I;if(e.samples=[],e.samples_duration=0,e.samples_size=0,n=e.mdia.minf.stbl.stco||e.mdia.minf.stbl.co64,r=e.mdia.minf.stbl.stsc,o=e.mdia.minf.stbl.stsz||e.mdia.minf.stbl.stz2,c=e.mdia.minf.stbl.stts,l=e.mdia.minf.stbl.ctts,h=e.mdia.minf.stbl.stss,d=e.mdia.minf.stbl.stsd,f=e.mdia.minf.stbl.subs,y=e.mdia.minf.stbl.stdp,m=e.mdia.minf.stbl.sbgps,v=e.mdia.minf.stbl.sgpds,T=-1,E=-1,P=-1,M=-1,x=0,k=0,I=0,C.initSampleGroups(e,null,m,v),void 0!==o){for(t=0;t<o.sample_sizes.length;t++){var R={};R.number=t,R.track_id=e.tkhd.track_id,R.timescale=e.mdia.mdhd.timescale,R.alreadyRead=0,e.samples[t]=R,R.size=o.sample_sizes[t],e.samples_size+=R.size,0===t?(S=1,w=0,R.chunk_index=S,R.chunk_run_index=w,A=r.samples_per_chunk[w],O=0,_=w+1<r.first_chunk.length?r.first_chunk[w+1]-1:1/0):t<A?(R.chunk_index=S,R.chunk_run_index=w):(S++,R.chunk_index=S,O=0,S<=_||(_=++w+1<r.first_chunk.length?r.first_chunk[w+1]-1:1/0),R.chunk_run_index=w,A+=r.samples_per_chunk[w]),R.description_index=r.sample_description_index[R.chunk_run_index]-1,R.description=d.entries[R.description_index],R.offset=n.chunk_offsets[R.chunk_index-1]+O,O+=R.size,t>T&&(E++,T<0&&(T=0),T+=c.sample_counts[E]),t>0?(e.samples[t-1].duration=c.sample_deltas[E],e.samples_duration+=e.samples[t-1].duration,R.dts=e.samples[t-1].dts+e.samples[t-1].duration):R.dts=0,l?(t>=P&&(M++,P<0&&(P=0),P+=l.sample_counts[M]),R.cts=e.samples[t].dts+l.sample_offsets[M]):R.cts=R.dts,h?(t==h.sample_numbers[x]-1?(R.is_sync=!0,x++):(R.is_sync=!1,R.degradation_priority=0),f&&f.entries[k].sample_delta+I==t+1&&(R.subsamples=f.entries[k].subsamples,I+=f.entries[k].sample_delta,k++)):R.is_sync=!0,C.process_sdtp(e.mdia.minf.stbl.sdtp,R,R.number),R.degradation_priority=y?y.priority[t]:0,f&&f.entries[k].sample_delta+I==t&&(R.subsamples=f.entries[k].subsamples,I+=f.entries[k].sample_delta),(m.length>0||v.length>0)&&C.setSampleGroupProperties(e,R,t,e.sample_groups_info)}t>0&&(e.samples[t-1].duration=Math.max(e.mdia.mdhd.duration-e.samples[t-1].dts,0),e.samples_duration+=e.samples[t-1].duration)}},C.prototype.updateSampleLists=function(){var i,e,t,n,r,o,c,l,h,d,f,m,v,w,S;if(void 0!==this.moov)for(;this.lastMoofIndex<this.moofs.length;)if(h=this.moofs[this.lastMoofIndex],this.lastMoofIndex++,"moof"==h.type)for(d=h,i=0;i<d.trafs.length;i++){for(f=d.trafs[i],m=this.getTrackById(f.tfhd.track_id),v=this.getTrexById(f.tfhd.track_id),n=f.tfhd.flags&y.TFHD_FLAG_SAMPLE_DESC?f.tfhd.default_sample_description_index:v?v.default_sample_description_index:1,r=f.tfhd.flags&y.TFHD_FLAG_SAMPLE_DUR?f.tfhd.default_sample_duration:v?v.default_sample_duration:0,o=f.tfhd.flags&y.TFHD_FLAG_SAMPLE_SIZE?f.tfhd.default_sample_size:v?v.default_sample_size:0,c=f.tfhd.flags&y.TFHD_FLAG_SAMPLE_FLAGS?f.tfhd.default_sample_flags:v?v.default_sample_flags:0,f.sample_number=0,f.sbgps.length>0&&C.initSampleGroups(m,f,f.sbgps,m.mdia.minf.stbl.sgpds,f.sgpds),e=0;e<f.truns.length;e++){var _=f.truns[e];for(t=0;t<_.sample_count;t++){(w={}).moof_number=this.lastMoofIndex,w.number_in_traf=f.sample_number,f.sample_number++,w.number=m.samples.length,f.first_sample_index=m.samples.length,m.samples.push(w),w.track_id=m.tkhd.track_id,w.timescale=m.mdia.mdhd.timescale,w.description_index=n-1,w.description=m.mdia.minf.stbl.stsd.entries[w.description_index],w.size=o,_.flags&y.TRUN_FLAGS_SIZE&&(w.size=_.sample_size[t]),m.samples_size+=w.size,w.duration=r,_.flags&y.TRUN_FLAGS_DURATION&&(w.duration=_.sample_duration[t]),m.samples_duration+=w.duration,m.first_traf_merged||t>0?w.dts=m.samples[m.samples.length-2].dts+m.samples[m.samples.length-2].duration:(f.tfdt?w.dts=f.tfdt.baseMediaDecodeTime:w.dts=0,m.first_traf_merged=!0),w.cts=w.dts,_.flags&y.TRUN_FLAGS_CTS_OFFSET&&(w.cts=w.dts+_.sample_composition_time_offset[t]),S=c,_.flags&y.TRUN_FLAGS_FLAGS?S=_.sample_flags[t]:0===t&&_.flags&y.TRUN_FLAGS_FIRST_FLAG&&(S=_.first_sample_flags),w.is_sync=!(S>>16&1),w.is_leading=S>>26&3,w.depends_on=S>>24&3,w.is_depended_on=S>>22&3,w.has_redundancy=S>>20&3,w.degradation_priority=65535&S;var O=!!(f.tfhd.flags&y.TFHD_FLAG_BASE_DATA_OFFSET),A=!!(f.tfhd.flags&y.TFHD_FLAG_DEFAULT_BASE_IS_MOOF),T=!!(_.flags&y.TRUN_FLAGS_DATA_OFFSET),bdo=0;bdo=O?f.tfhd.base_data_offset:A||0===e?d.start:l,w.offset=0===e&&0===t?T?bdo+_.data_offset:bdo:l,l=w.offset+w.size,(f.sbgps.length>0||f.sgpds.length>0||m.mdia.minf.stbl.sbgps.length>0||m.mdia.minf.stbl.sgpds.length>0)&&C.setSampleGroupProperties(m,w,w.number_in_traf,f.sample_groups_info)}}if(f.subs){m.has_fragment_subsamples=!0;var E=f.first_sample_index;for(e=0;e<f.subs.entries.length;e++)E+=f.subs.entries[e].sample_delta,(w=m.samples[E-1]).subsamples=f.subs.entries[e].subsamples}}},C.prototype.getSample=function(e,t){var n,r=e.samples[t];if(!this.moov)return null;if(r.data){if(r.alreadyRead==r.size)return r}else r.data=new Uint8Array(r.size),r.alreadyRead=0,this.samplesDataSize+=r.size,l.debug("ISOFile","Allocating sample #"+t+" on track #"+e.tkhd.track_id+" of size "+r.size+" (total: "+this.samplesDataSize+")");for(;;){var o=this.stream.findPosition(!0,r.offset+r.alreadyRead,!1);if(!(o>-1))return null;var c=(n=this.stream.buffers[o]).byteLength-(r.offset+r.alreadyRead-n.fileStart);if(r.size-r.alreadyRead<=c)return l.debug("ISOFile","Getting sample #"+t+" data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-n.fileStart)+" read size: "+(r.size-r.alreadyRead)+" full size: "+r.size+")"),d.memcpy(r.data.buffer,r.alreadyRead,n,r.offset+r.alreadyRead-n.fileStart,r.size-r.alreadyRead),n.usedBytes+=r.size-r.alreadyRead,this.stream.logBufferLevel(),r.alreadyRead=r.size,r;if(0===c)return null;l.debug("ISOFile","Getting sample #"+t+" partial data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-n.fileStart)+" read size: "+c+" full size: "+r.size+")"),d.memcpy(r.data.buffer,r.alreadyRead,n,r.offset+r.alreadyRead-n.fileStart,c),r.alreadyRead+=c,n.usedBytes+=c,this.stream.logBufferLevel()}},C.prototype.releaseSample=function(e,t){var n=e.samples[t];return n.data?(this.samplesDataSize-=n.size,n.data=null,n.alreadyRead=0,n.size):0},C.prototype.getAllocatedSampleDataSize=function(){return this.samplesDataSize},C.prototype.getCodecs=function(){var i,e="";for(i=0;i<this.moov.traks.length;i++){i>0&&(e+=","),e+=this.moov.traks[i].mdia.minf.stbl.stsd.entries[0].getCodec()}return e},C.prototype.getTrexById=function(e){var i;if(!this.moov||!this.moov.mvex)return null;for(i=0;i<this.moov.mvex.trexs.length;i++){var t=this.moov.mvex.trexs[i];if(t.track_id==e)return t}return null},C.prototype.getTrackById=function(e){if(void 0===this.moov)return null;for(var t=0;t<this.moov.traks.length;t++){var n=this.moov.traks[t];if(n.tkhd.track_id==e)return n}return null},C.prototype.items=[],C.prototype.itemsDataSize=0,C.prototype.flattenItemInfo=function(){var i,e,t,n=this.items,meta=this.meta;if(null!=meta&&void 0!==meta.hdlr&&void 0!==meta.iinf){for(i=0;i<meta.iinf.item_infos.length;i++)(t={}).id=meta.iinf.item_infos[i].item_ID,n[t.id]=t,t.ref_to=[],t.name=meta.iinf.item_infos[i].item_name,meta.iinf.item_infos[i].protection_index>0&&(t.protection=meta.ipro.protections[meta.iinf.item_infos[i].protection_index-1]),meta.iinf.item_infos[i].item_type?t.type=meta.iinf.item_infos[i].item_type:t.type="mime",t.content_type=meta.iinf.item_infos[i].content_type,t.content_encoding=meta.iinf.item_infos[i].content_encoding;if(meta.iloc)for(i=0;i<meta.iloc.items.length;i++){var r=meta.iloc.items[i];switch(t=n[r.item_ID],0!==r.data_reference_index&&(l.warn("Item storage with reference to other files: not supported"),t.source=meta.dinf.boxes[r.data_reference_index-1]),r.construction_method){case 0:break;case 1:case 2:l.warn("Item storage with construction_method : not supported")}for(t.extents=[],t.size=0,e=0;e<r.extents.length;e++)t.extents[e]={},t.extents[e].offset=r.extents[e].extent_offset+r.base_offset,t.extents[e].length=r.extents[e].extent_length,t.extents[e].alreadyRead=0,t.size+=t.extents[e].length}if(meta.pitm&&(n[meta.pitm.item_id].primary=!0),meta.iref)for(i=0;i<meta.iref.references.length;i++){var o=meta.iref.references[i];for(e=0;e<o.references.length;e++)n[o.from_item_ID].ref_to.push({type:o.type,id:o.references[e]})}if(meta.iprp)for(var c=0;c<meta.iprp.ipmas.length;c++){var h=meta.iprp.ipmas[c];for(i=0;i<h.associations.length;i++){var d=h.associations[i];for(void 0===(t=n[d.id]).properties&&(t.properties={},t.properties.boxes=[]),e=0;e<d.props.length;e++){var f=d.props[e];if(f.property_index>0&&f.property_index-1<meta.iprp.ipco.boxes.length){var m=meta.iprp.ipco.boxes[f.property_index-1];t.properties[m.type]=m,t.properties.boxes.push(m)}}}}}},C.prototype.getItem=function(e){var t,n;if(!this.meta)return null;if(!(n=this.items[e]).data&&n.size)n.data=new Uint8Array(n.size),n.alreadyRead=0,this.itemsDataSize+=n.size,l.debug("ISOFile","Allocating item #"+e+" of size "+n.size+" (total: "+this.itemsDataSize+")");else if(n.alreadyRead===n.size)return n;for(var i=0;i<n.extents.length;i++){var r=n.extents[i];if(r.alreadyRead!==r.length){var o=this.stream.findPosition(!0,r.offset+r.alreadyRead,!1);if(!(o>-1))return null;var c=(t=this.stream.buffers[o]).byteLength-(r.offset+r.alreadyRead-t.fileStart);if(!(r.length-r.alreadyRead<=c))return l.debug("ISOFile","Getting item #"+e+" extent #"+i+" partial data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-t.fileStart)+" read size: "+c+" full extent size: "+r.length+" full item size: "+n.size+")"),d.memcpy(n.data.buffer,n.alreadyRead,t,r.offset+r.alreadyRead-t.fileStart,c),r.alreadyRead+=c,n.alreadyRead+=c,t.usedBytes+=c,this.stream.logBufferLevel(),null;l.debug("ISOFile","Getting item #"+e+" extent #"+i+" data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-t.fileStart)+" read size: "+(r.length-r.alreadyRead)+" full extent size: "+r.length+" full item size: "+n.size+")"),d.memcpy(n.data.buffer,n.alreadyRead,t,r.offset+r.alreadyRead-t.fileStart,r.length-r.alreadyRead),t.usedBytes+=r.length-r.alreadyRead,this.stream.logBufferLevel(),n.alreadyRead+=r.length-r.alreadyRead,r.alreadyRead=r.length}}return n.alreadyRead===n.size?n:null},C.prototype.releaseItem=function(e){var t=this.items[e];if(t.data){this.itemsDataSize-=t.size,t.data=null,t.alreadyRead=0;for(var i=0;i<t.extents.length;i++){t.extents[i].alreadyRead=0}return t.size}return 0},C.prototype.processItems=function(e){for(var i in this.items){var t=this.items[i];this.getItem(t.id),e&&!t.sent&&(e(t),t.sent=!0,t.data=null)}},C.prototype.hasItem=function(e){for(var i in this.items){var t=this.items[i];if(t.name===e)return t.id}return-1},C.prototype.getMetaHandler=function(){return this.meta?this.meta.hdlr.handler:null},C.prototype.getPrimaryItem=function(){return this.meta&&this.meta.pitm?this.getItem(this.meta.pitm.item_id):null},C.prototype.itemToFragmentedTrackFile=function(e){var t=e||{},n=null;if(null==(n=t.itemId?this.getItem(t.itemId):this.getPrimaryItem()))return null;var r=new C;r.discardMdatData=!1;var o={type:n.type,description_boxes:n.properties.boxes};n.properties.ispe&&(o.width=n.properties.ispe.image_width,o.height=n.properties.ispe.image_height);var c=r.addTrack(o);return c?(r.addSample(c,n.data),r):null},C.prototype.write=function(e){for(var i=0;i<this.boxes.length;i++)this.boxes[i].write(e)},C.prototype.createFragment=function(e,t,n){var r=this.getTrackById(e),o=this.getSample(r,t);if(null==o)return o=r.samples[t],this.nextSeekPosition?this.nextSeekPosition=Math.min(o.offset+o.alreadyRead,this.nextSeekPosition):this.nextSeekPosition=r.samples[t].offset+o.alreadyRead,null;var c=n||new d;c.endianness=d.BIG_ENDIAN;var h=this.createSingleSampleMoof(o);h.write(c),h.trafs[0].truns[0].data_offset=h.size+8,l.debug("MP4Box","Adjusting data_offset with new value "+h.trafs[0].truns[0].data_offset),c.adjustUint32(h.trafs[0].truns[0].data_offset_position,h.trafs[0].truns[0].data_offset);var f=new y.mdatBox;return f.data=o.data,f.write(c),c},C.writeInitializationSegment=function(e,t,n,r){var i;l.debug("ISOFile","Generating initialization segment");var o=new d;o.endianness=d.BIG_ENDIAN,e.write(o);var c=t.add("mvex");for(n&&c.add("mehd").set("fragment_duration",n),i=0;i<t.traks.length;i++)c.add("trex").set("track_id",t.traks[i].tkhd.track_id).set("default_sample_description_index",1).set("default_sample_duration",r).set("default_sample_size",0).set("default_sample_flags",65536);return t.write(o),o.buffer},C.prototype.save=function(e){var t=new d;t.endianness=d.BIG_ENDIAN,this.write(t),t.save(e)},C.prototype.getBuffer=function(){var e=new d;return e.endianness=d.BIG_ENDIAN,this.write(e),e.buffer},C.prototype.initializeSegmentation=function(){var i,e,t,n;for(null===this.onSegment&&l.warn("MP4Box","No segmentation callback set!"),this.isFragmentationInitialized||(this.isFragmentationInitialized=!0,this.nextMoofNumber=0,this.resetTables()),e=[],i=0;i<this.fragmentedTracks.length;i++){var r=new y.moovBox;r.mvhd=this.moov.mvhd,r.boxes.push(r.mvhd),t=this.getTrackById(this.fragmentedTracks[i].id),r.boxes.push(t),r.traks.push(t),(n={}).id=t.tkhd.track_id,n.user=this.fragmentedTracks[i].user,n.buffer=C.writeInitializationSegment(this.ftyp,r,this.moov.mvex&&this.moov.mvex.mehd?this.moov.mvex.mehd.fragment_duration:void 0,this.moov.traks[i].samples.length>0?this.moov.traks[i].samples[0].duration:0),e.push(n)}return e},y.Box.prototype.printHeader=function(output){this.size+=8,this.size>f&&(this.size+=8),"uuid"===this.type&&(this.size+=16),output.log(output.indent+"size:"+this.size),output.log(output.indent+"type:"+this.type)},y.FullBox.prototype.printHeader=function(output){this.size+=4,y.Box.prototype.printHeader.call(this,output),output.log(output.indent+"version:"+this.version),output.log(output.indent+"flags:"+this.flags)},y.Box.prototype.print=function(output){this.printHeader(output)},y.ContainerBox.prototype.print=function(output){this.printHeader(output);for(var i=0;i<this.boxes.length;i++)if(this.boxes[i]){var e=output.indent;output.indent+=" ",this.boxes[i].print(output),output.indent=e}},C.prototype.print=function(output){output.indent="";for(var i=0;i<this.boxes.length;i++)this.boxes[i]&&this.boxes[i].print(output)},y.mvhdBox.prototype.print=function(output){y.FullBox.prototype.printHeader.call(this,output),output.log(output.indent+"creation_time: "+this.creation_time),output.log(output.indent+"modification_time: "+this.modification_time),output.log(output.indent+"timescale: "+this.timescale),output.log(output.indent+"duration: "+this.duration),output.log(output.indent+"rate: "+this.rate),output.log(output.indent+"volume: "+(this.volume>>8)),output.log(output.indent+"matrix: "+this.matrix.join(", ")),output.log(output.indent+"next_track_id: "+this.next_track_id)},y.tkhdBox.prototype.print=function(output){y.FullBox.prototype.printHeader.call(this,output),output.log(output.indent+"creation_time: "+this.creation_time),output.log(output.indent+"modification_time: "+this.modification_time),output.log(output.indent+"track_id: "+this.track_id),output.log(output.indent+"duration: "+this.duration),output.log(output.indent+"volume: "+(this.volume>>8)),output.log(output.indent+"matrix: "+this.matrix.join(", ")),output.log(output.indent+"layer: "+this.layer),output.log(output.indent+"alternate_group: "+this.alternate_group),output.log(output.indent+"width: "+this.width),output.log(output.indent+"height: "+this.height)};var O={createFile:function(e,t){var n=void 0===e||e,r=new C(t);return r.discardMdatData=!n,r}};t.createFile=O.createFile},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=n(547),c=n(103);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=o.a.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes:function(){return h(h({},o.a.options.computed.classes.call(this)),{},{"v-tabs-items":!0})},isDark:function(){return this.rootIsDark}},methods:{getValue:function(e,i){return e.id||c.a.options.methods.getValue.call(this,e,i)}}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));class r extends Error{}function o(e){let output=e.replace(/-/g,"+").replace(/_/g,"/");switch(output.length%4){case 0:break;case 2:output+="==";break;case 3:output+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,p)=>{let code=p.charCodeAt(0).toString(16).toUpperCase();return code.length<2&&(code="0"+code),"%"+code})))}(output)}catch(e){return atob(output)}}function c(e,t){if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,c=e.split(".")[n];if("string"!=typeof c)throw new r(`Invalid token specified: missing part #${n+1}`);let l;try{l=o(c)}catch(e){throw new r(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(l)}catch(e){throw new r(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}r.prototype.name="InvalidTokenError"},function(e,t,n){"use strict";(function(e){var r;if(n.d(t,"a",(function(){return o})),"undefined"!=typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==e&&e.crypto&&(r=e.crypto),!r)try{r=n(1620)}catch(e){}function o(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}}).call(this,n(67))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r={},o=function(){function e(){}return e.setItem=function(e,t){return r[e]=t,r[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},e.removeItem=function(e){return delete r[e]},e.clear=function(){return r={}},e}(),c=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=o}}return e.prototype.getStorage=function(){return this.storageWindow},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(390),o=function(){return o=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},o.apply(this,arguments)},c=new r.a("Parser"),l=function(e){var t,n={};if(e.aws_mobile_analytics_app_id){var r={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};n.Analytics=r}return(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in,signUpVerificationMethod:e.aws_cognito_sign_up_verification_method||"code"}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},e.Logging&&(n.Logging=o(o({},e.Logging),{region:e.aws_project_region})),e.geo&&(n.Geo=Object.assign({},e.geo),e.geo.amazon_location_service&&(n.Geo={AmazonLocationService:e.geo.amazon_location_service})),n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),n.Logging=Object.assign({},n.Logging,e.Logging),c.debug("parse config",e,"to amplifyconfig",n),n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(78);function o(){return Object(r.b)()&&void 0!==e.expo}}).call(this,n(67))},function(e,t,n){(function(t){var n;n=()=>{var e,n={},r={exports:n},o=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(a,b)=>{for(var e in b||(b={}))m.call(b,e)&&y(a,e,b[e]);if(f)for(var e of f(b))v.call(b,e)&&y(a,e,b[e]);return a},S=(a,b)=>c(a,h(b)),_=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},C={};_(C,{ErrorInfo:()=>I,Realtime:()=>qn,Rest:()=>Yt,default:()=>qr,msgpack:()=>Gr,protocolMessageFromDeserialized:()=>sn}),r.exports=(e=C,((e,t,n,desc)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of d(t))m.call(e,r)||r===n||o(e,r,{get:()=>t[r],enumerable:!(desc=l(t,r))||desc.enumerable});return e})(o({},"__esModule",{value:!0}),e));var O=class{},A=void 0!==t?t:"undefined"!=typeof window?window:self;function T(e,t){return`${e}`.padStart(t?3:2,"0")}function E(e){return O.Config.logTimestamps?function(t){const time=new Date;e(T(time.getHours())+":"+T(time.getMinutes())+":"+T(time.getSeconds())+"."+T(time.getMilliseconds(),1)+" "+t)}:function(t){e(t)}}var P=class e{constructor(){this.deprecated=(e,t)=>{this.deprecationWarning(`${e} is deprecated and will be removed in a future version. ${t}`)},this.shouldLog=e=>e<=this.logLevel,this.setLog=(e,t)=>{void 0!==e&&(this.logLevel=e),void 0!==t&&(this.logHandler=this.logErrorHandler=t)},this.logLevel=e.defaultLogLevel,this.logHandler=e.defaultLogHandler,this.logErrorHandler=e.defaultLogErrorHandler}static initLogHandlers(){const[t,n]=(()=>{var e;let t,n;return"function"==typeof(null==(e=null==A?void 0:A.console)?void 0:e.log)?(t=function(...e){console.log.apply(console,e)},n=console.warn?function(...e){console.warn.apply(console,e)}:t):t=n=function(){},[t,n].map(E)})();this.defaultLogHandler=t,this.defaultLogErrorHandler=n,this.defaultLogger=new e}static logActionNoStrip(e,t,n,r){e.logAction(t,n,r)}logAction(e,t,n){this.shouldLog(e)&&(1===e?this.logErrorHandler:this.logHandler)("Ably: "+t+": "+n,e)}renamedClientOption(e,t){this.deprecationWarning(`The \`${e}\` client option has been renamed to \`${t}\`. Please update your code to use \`${t}\` instead. \`${e}\` will be removed in a future version.`)}renamedMethod(e,t,n){this.deprecationWarning(`\`${e}\`’s \`${t}\` method has been renamed to \`${n}\`. Please update your code to use \`${n}\` instead. \`${t}\` will be removed in a future version.`)}deprecationWarning(e){this.shouldLog(1)&&this.logErrorHandler(`Ably: Deprecation warning - ${e}`,1)}};P.defaultLogLevel=1,P.LOG_NONE=0,P.LOG_ERROR=1,P.LOG_MAJOR=2,P.LOG_MINOR=3,P.LOG_MICRO=4,P.logAction=(e,t,n,r)=>{P.logActionNoStrip(e,t,n,r)};var M=P,x={};function k(e){let t="["+e.constructor.name;return e.message&&(t+=": "+e.message),e.statusCode&&(t+="; statusCode="+e.statusCode),e.code&&(t+="; code="+e.code),e.cause&&(t+="; cause="+ae(e.cause)),!e.href||e.message&&e.message.indexOf("help.ably.io")>-1||(t+="; see "+e.href+" "),t+="]",t}_(x,{Format:()=>te,allSame:()=>ee,allToLowerCase:()=>me,allToUpperCase:()=>ge,arrChooseN:()=>he,arrDeleteValue:()=>Y,arrEquals:()=>Oe,arrIntersect:()=>V,arrIntersectOb:()=>W,arrPopRandomElement:()=>ne,arrSubtract:()=>K,arrWithoutValue:()=>X,cheapRandStr:()=>ue,containsValue:()=>H,copy:()=>D,createMissingPluginError:()=>Ae,dataSizeBytes:()=>ce,decodeBody:()=>fe,encodeBody:()=>pe,ensureArray:()=>N,forInOwnNonNullProperties:()=>Q,getBackoffCoefficient:()=>ve,getGlobalObject:()=>we,getJitterCoefficient:()=>be,getRetryTime:()=>ye,inherits:()=>$,inspectBody:()=>se,inspectError:()=>ae,intersect:()=>G,isEmpty:()=>B,isErrorInfoOrPartialErrorInfo:()=>oe,isNil:()=>U,isObject:()=>L,keysArray:()=>J,matchDerivedChannel:()=>_e,mixin:()=>j,parseQueryString:()=>ie,prototypicalClone:()=>z,randomString:()=>le,shallowClone:()=>F,shallowEquals:()=>Se,throwMissingPluginError:()=>Te,toBase64:()=>Ce,toQueryString:()=>re,valuesArray:()=>Z,whenPromiseSettles:()=>de,withTimeoutAsync:()=>Ee});var I=class e extends Error{constructor(t,code,n,r){super(t),void 0!==Object.setPrototypeOf&&Object.setPrototypeOf(this,e.prototype),this.code=code,this.statusCode=n,this.cause=r}toString(){return k(this)}static fromValues(t){const{message:n,code:code,statusCode:r}=t;if("string"!=typeof n||"number"!=typeof code||"number"!=typeof r)throw new Error("ErrorInfo.fromValues(): invalid values: "+O.Config.inspect(t));const o=Object.assign(new e(n,code,r),t);return o.code&&!o.href&&(o.href="https://help.ably.io/error/"+o.code),o}},R=class e extends Error{constructor(t,code,n,r){super(t),void 0!==Object.setPrototypeOf&&Object.setPrototypeOf(this,e.prototype),this.code=code,this.statusCode=n,this.cause=r}toString(){return k(this)}static fromValues(t){const{message:n,code:code,statusCode:r}=t;if("string"!=typeof n||!U(code)&&"number"!=typeof code||!U(r)&&"number"!=typeof r)throw new Error("PartialErrorInfo.fromValues(): invalid values: "+O.Config.inspect(t));const o=Object.assign(new e(n,code,r),t);return o.code&&!o.href&&(o.href="https://help.ably.io/error/"+o.code),o}};function j(e,...t){for(let i=0;i<t.length;i++){const source=t[i];if(!source)break;for(const t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e}function D(e){return j({},e)}function N(e){return U(e)?[]:Array.isArray(e)?e:[e]}function L(e){return"[object Object]"==Object.prototype.toString.call(e)}function B(e){for(const t in e)return!1;return!0}function U(e){return null==e}function F(e){const t=new Object;for(const n in e)t[n]=e[n];return t}function z(e,t){class n{}n.prototype=e;const r=new n;return t&&j(r,t),r}var $=function(e,t){O.Config.inherits?O.Config.inherits(e,t):(e.super_=t,e.prototype=z(t.prototype,{constructor:e}))};function H(e,t){for(const i in e)if(e[i]==t)return!0;return!1}function G(e,t){return Array.isArray(t)?V(e,t):W(e,t)}function V(e,t){const n=[];for(let i=0;i<e.length;i++){const r=e[i];-1!=t.indexOf(r)&&n.push(r)}return n}function W(e,t){const n=[];for(let i=0;i<e.length;i++){const r=e[i];r in t&&n.push(r)}return n}function K(e,t){const n=[];for(let i=0;i<e.length;i++){const element=e[i];-1==t.indexOf(element)&&n.push(element)}return n}function Y(e,t){const n=e.indexOf(t),r=-1!=n;return r&&e.splice(n,1),r}function X(e,t){const n=e.slice();return Y(n,t),n}function J(e,t){const n=[];for(const r in e)t&&!Object.prototype.hasOwnProperty.call(e,r)||n.push(r);return n}function Z(e,t){const n=[];for(const r in e)t&&!Object.prototype.hasOwnProperty.call(e,r)||n.push(e[r]);return n}function Q(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&e[n]&&t(n)}function ee(e,t){if(0===e.length)return!0;const n=e[0][t];return e.every((function(e){return e[t]===n}))}var te=(e=>(e.msgpack="msgpack",e.json="json",e))(te||{});function ne(e){return e.splice((t=e,Math.floor(Math.random()*t.length)),1)[0];var t}function re(e){const t=[];if(e)for(const n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.length?"?"+t.join("&"):""}function ie(e){let t;const n=/([^?&=]+)=?([^&]*)/g,r={};for(;t=n.exec(e);)r[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return r}function oe(e){return"object"==typeof e&&null!==e&&(e instanceof I||e instanceof R)}function ae(e){var t,n;return e instanceof Error||"ErrorInfo"===(null==(t=null==e?void 0:e.constructor)?void 0:t.name)||"PartialErrorInfo"===(null==(n=null==e?void 0:e.constructor)?void 0:n.name)?e.toString():O.Config.inspect(e)}function se(body){return O.BufferUtils.isBuffer(body)?body.toString():"string"==typeof body?body:O.Config.inspect(body)}function ce(data){if(O.BufferUtils.isBuffer(data))return O.BufferUtils.byteLength(data);if("string"==typeof data)return O.Config.stringByteSize(data);throw new Error("Expected input of Utils.dataSizeBytes to be a buffer or string, but was: "+typeof data)}function ue(){return String(Math.random()).substr(2)}var le=async e=>{const t=await O.Config.getRandomArrayBuffer(e);return O.BufferUtils.base64Encode(t)};function he(e,t){const n=Math.min(t,e.length),r=e.slice(),o=[];for(let i=0;i<n;i++)o.push(ne(r));return o}function de(e,t){e.then((e=>{null==t||t(null,e)})).catch((e=>{null==t||t(e)}))}function fe(body,e,t){return"msgpack"==t?(e||Te("MsgPack"),e.decode(body)):JSON.parse(String(body))}function pe(body,e,t){return"msgpack"==t?(e||Te("MsgPack"),e.encode(body,!0)):JSON.stringify(body)}function me(e){return e.map((function(element){return element&&element.toLowerCase()}))}function ge(e){return e.map((function(element){return element&&element.toUpperCase()}))}function ve(e){return Math.min((e+2)/3,2)}function be(){return 1-.2*Math.random()}function ye(e,t){return e*ve(t)*be()}function we(){return void 0!==t?t:"undefined"!=typeof window?window:self}function Se(source,e){return Object.keys(source).every((t=>source[t]===e[t]))&&Object.keys(e).every((t=>e[t]===source[t]))}function _e(e){const t=e.match(/^(\[([^?]*)(?:(.*))\])?(.+)$/);if(!t||!t.length||t.length<5)throw new I("regex match failed",400,40010);if(t[2])throw new I(`cannot use a derived option with a ${t[2]} channel`,400,40010);return{qualifierParam:t[3]||"",channelName:t[4]}}function Ce(e){const t=O.BufferUtils,n=t.utf8Encode(e);return t.base64Encode(n)}function Oe(a,b){return a.length===b.length&&a.every((function(e,i){return e===b[i]}))}function Ae(e){return new I(`${e} plugin not provided`,40019,400)}function Te(e){throw Ae(e)}async function Ee(e,t=5e3,n="Timeout expired"){const r=new I(n,5e4,500);return Promise.race([e,new Promise(((e,n)=>setTimeout((()=>n(r)),t)))])}var Pe="2.3.1",Me={ENVIRONMENT:"",REST_HOST:"rest.ably.io",REALTIME_HOST:"realtime.ably.io",FALLBACK_HOSTS:["A.ably-realtime.com","B.ably-realtime.com","C.ably-realtime.com","D.ably-realtime.com","E.ably-realtime.com"],PORT:80,TLS_PORT:443,TIMEOUTS:{disconnectedRetryTimeout:15e3,suspendedRetryTimeout:3e4,httpRequestTimeout:1e4,httpMaxRetryDuration:15e3,channelRetryTimeout:15e3,fallbackRetryTimeout:6e5,connectionStateTtl:12e4,realtimeRequestTimeout:1e4,recvTimeout:9e4,webSocketConnectTimeout:1e4,webSocketSlowTimeout:4e3},httpMaxRetryCount:3,maxMessageSize:65536,version:Pe,protocolVersion:3,agent:"ably-js/"+Pe,getHost:xe,getPort:function(e,t){return t||e.tls?e.tlsPort:e.port},getHttpScheme:function(e){return e.tls?"https://":"http://"},environmentFallbackHosts:ke,getFallbackHosts:Ie,getHosts:function(e,t){const n=[e.restHost].concat(Ie(e));return t?n.map((t=>xe(e,t,!0))):n},checkHost:Re,objectifyOptions:function(e,t,n,r,o){if(void 0===e){const e=t?`${n} must be initialized with either a client options object, an Ably API key, or an Ably Token`:`${n} must be initialized with a client options object`;throw M.logAction(r,M.LOG_ERROR,`${n}()`,e),new Error(e)}let c;if("string"==typeof e)if(-1==e.indexOf(":")){if(!t){const e=`${n} cannot be initialized with just an Ably Token; you must provide a client options object with a \`plugins\` property. (Set this Ably Token as the object’s \`token\` property.)`;throw M.logAction(r,M.LOG_ERROR,`${n}()`,e),new Error(e)}c={token:e}}else{if(!t){const e=`${n} cannot be initialized with just an Ably API key; you must provide a client options object with a \`plugins\` property. (Set this Ably API key as the object’s \`key\` property.)`;throw M.logAction(r,M.LOG_ERROR,`${n}()`,e),new Error(e)}c={key:e}}else c=e;return o&&(c=S(w({},c),{plugins:w(w({},o),c.plugins)})),c},normaliseOptions:function(e,t,n){const r=null!=n?n:M.defaultLogger;"function"==typeof e.recover&&!0===e.closeOnUnload&&(M.logAction(r,M.LOG_ERROR,"Defaults.normaliseOptions","closeOnUnload was true and a session recovery function was set - these are mutually exclusive, so unsetting the latter"),e.recover=void 0),"closeOnUnload"in e||(e.closeOnUnload=!e.recover),"queueMessages"in e||(e.queueMessages=!0);const o=e.environment&&String(e.environment).toLowerCase()||Me.ENVIRONMENT,c=!o||"production"===o;e.fallbackHosts||e.restHost||e.realtimeHost||e.port||e.tlsPort||(e.fallbackHosts=c?Me.FALLBACK_HOSTS:ke(o));const l=e.restHost||(c?Me.REST_HOST:o+"-"+Me.REST_HOST),h=function(e,t,n,r){return e.realtimeHost?e.realtimeHost:e.restHost?(M.logAction(r,M.LOG_MINOR,"Defaults.normaliseOptions",'restHost is set to "'+e.restHost+'" but realtimeHost is not set, so setting realtimeHost to "'+e.restHost+'" too. If this is not what you want, please set realtimeHost explicitly.'),e.restHost):t?Me.REALTIME_HOST:n+"-"+Me.REALTIME_HOST}(e,c,o,r);(e.fallbackHosts||[]).concat(l,h).forEach(Re),e.port=e.port||Me.PORT,e.tlsPort=e.tlsPort||Me.TLS_PORT,"tls"in e||(e.tls=!0);const d=function(e){const t={};for(const n in Me.TIMEOUTS)t[n]=e[n]||Me.TIMEOUTS[n];return t}(e);e.useBinaryProtocol=!!t&&("useBinaryProtocol"in e?O.Config.supportsBinary&&e.useBinaryProtocol:O.Config.preferBinary);const f={};e.clientId&&(f["X-Ably-ClientId"]=O.BufferUtils.base64Encode(O.BufferUtils.utf8Encode(e.clientId))),"idempotentRestPublishing"in e||(e.idempotentRestPublishing=!0);let m=null,v=e.connectivityCheckUrl;if(e.connectivityCheckUrl){let[t,n]=e.connectivityCheckUrl.split("?");m=n?ie(n):{},-1===t.indexOf("://")&&(t="https://"+t),v=t}return S(w({},e),{realtimeHost:h,restHost:l,maxMessageSize:e.maxMessageSize||Me.maxMessageSize,timeouts:d,connectivityCheckParams:m,connectivityCheckUrl:v,headers:f})},defaultGetHeaders:function(e,{format:t=Le.format,protocolVersion:n=Le.protocolVersion}={}){return{accept:Ne[t],"X-Ably-Version":n.toString(),"Ably-Agent":je(e)}},defaultPostHeaders:function(e,{format:t=Le.format,protocolVersion:n=Le.protocolVersion}={}){let r;return{accept:r=Ne[t],"content-type":r,"X-Ably-Version":n.toString(),"Ably-Agent":je(e)}}};function xe(e,t,n){return t=n?t==e.restHost&&e.realtimeHost||t||e.realtimeHost:t||e.restHost}function ke(e){return[e+"-a-fallback.ably-realtime.com",e+"-b-fallback.ably-realtime.com",e+"-c-fallback.ably-realtime.com",e+"-d-fallback.ably-realtime.com",e+"-e-fallback.ably-realtime.com"]}function Ie(e){const t=e.fallbackHosts,n=void 0!==e.httpMaxRetryCount?e.httpMaxRetryCount:Me.httpMaxRetryCount;return t?he(t,n):[]}function Re(e){if("string"!=typeof e)throw new I("host must be a string; was a "+typeof e,4e4,400);if(!e.length)throw new I("host must not be zero-length",4e4,400)}function je(e){let t=Me.agent;if(e.agents)for(var n in e.agents)t+=" "+n+"/"+e.agents[n];return t}function De(e,t,n){const r=n||{};if(r.cipher){e||Te("Crypto");const n=e.getCipher(r.cipher,t);r.cipher=n.cipherParams,r.channelCipher=n.cipher}else"cipher"in r&&(r.cipher=void 0,r.channelCipher=null);return r}var Ne={json:"application/json",xml:"application/xml",html:"text/html",msgpack:"application/x-msgpack",text:"text/plain"},Le={format:"json",protocolVersion:Me.protocolVersion},Be=Me,Ue=class e{constructor(e,t){this.logger=e,this.members=t||[]}call(e,t){for(const n of this.members)if(n)try{n(e,t)}catch(e){M.logAction(this.logger,M.LOG_ERROR,"Multicaster multiple callback handler","Unexpected exception: "+e+"; stack = "+e.stack)}}push(...e){this.members.push(...e)}createPromise(){return new Promise(((e,t)=>{this.push(((n,r)=>{n?t(n):e(r)}))}))}resolveAll(e){this.call(null,e)}rejectAll(e){this.call(e)}static create(t,n){const r=new e(t,n);return Object.assign(((e,t)=>r.call(e,t)),{push:e=>r.push(e),createPromise:()=>r.createPromise(),resolveAll:e=>r.resolveAll(e),rejectAll:e=>r.rejectAll(e)})}},Fe=(e=>(e.Get="get",e.Delete="delete",e.Post="post",e.Put="put",e.Patch="patch",e))(Fe||{}),ze=Fe,$e=(e=>(e[e.Success=200]="Success",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.RequestTimeout=408]="RequestTimeout",e[e.InternalServerError=500]="InternalServerError",e))($e||{}),He=$e,Ge=Math.pow(2,17);function Ve(e){return oe(e)?(e.code||(403===e.statusCode?e.code=40300:(e.code=40170,e.statusCode=401)),e):new I(ae(e),e.code||40170,e.statusCode||401)}function We(e){if(!e)return"";"string"==typeof e&&(e=JSON.parse(e));const t=Object.create(null),n=J(e,!0);if(!n)return"";n.sort();for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]].sort();return JSON.stringify(t)}function qe(e,t){if(e.authCallback)M.logAction(t,M.LOG_MINOR,"Auth()","using token auth with authCallback");else if(e.authUrl)M.logAction(t,M.LOG_MINOR,"Auth()","using token auth with authUrl");else if(e.key)M.logAction(t,M.LOG_MINOR,"Auth()","using token auth with client-side signing");else{if(!e.tokenDetails){const e="authOptions must include valid authentication parameters";throw M.logAction(t,M.LOG_ERROR,"Auth()",e),new Error(e)}M.logAction(t,M.LOG_MINOR,"Auth()","using token auth with supplied token only")}}function Ke(e){return e.useTokenAuth||!function(e){return"useTokenAuth"in e&&!e.useTokenAuth}(e)&&(e.authCallback||e.authUrl||e.token||e.tokenDetails)}var Ye=0,Xe=class{constructor(e,t){if(this.authOptions={},this.client=e,this.tokenParams=t.defaultTokenParams||{},this.currentTokenRequestId=null,this.waitingForTokenRequest=null,Ke(t))(function(e){return!e.key&&!e.authCallback&&!e.authUrl})(t)&&M.logAction(this.logger,M.LOG_ERROR,"Auth()","Warning: library initialized with a token literal without any way to renew the token when it expires (no authUrl, authCallback, or key). See https://help.ably.io/error/40171 for help"),this._saveTokenOptions(t.defaultTokenParams,t),qe(this.authOptions,this.logger);else{if(!t.key){const e="No authentication options provided; need one of: key, authUrl, or authCallback (or for testing only, token or tokenDetails)";throw M.logAction(this.logger,M.LOG_ERROR,"Auth()",e),new I(e,40160,401)}M.logAction(this.logger,M.LOG_MINOR,"Auth()","anonymous, using basic auth"),this._saveBasicOptions(t)}}get logger(){return this.client.logger}async authorize(e,t){if(t&&t.key&&this.authOptions.key!==t.key)throw new I("Unable to update auth options with incompatible key",40102,401);try{let n=await this._forceNewToken(null!=e?e:null,null!=t?t:null);return this.client.connection?new Promise(((e,t)=>{this.client.connection.connectionManager.onAuthUpdated(n,((n,r)=>n?t(n):e(r)))})):n}catch(e){throw this.client.connection&&e.statusCode===He.Forbidden&&this.client.connection.connectionManager.actOnErrorFromAuthorize(e),e}}async _forceNewToken(e,t){this.tokenDetails=null,this._saveTokenOptions(e,t),qe(this.authOptions,this.logger);try{return this._ensureValidAuthCredentials(!0)}finally{delete this.tokenParams.timestamp,delete this.authOptions.queryTime}}async requestToken(e,t){const n=t||this.authOptions,r=e||D(this.tokenParams);let o,c=this.client;if(n.authCallback)M.logAction(this.logger,M.LOG_MINOR,"Auth.requestToken()","using token auth with authCallback"),o=n.authCallback;else if(n.authUrl)M.logAction(this.logger,M.LOG_MINOR,"Auth.requestToken()","using token auth with authUrl"),o=(e,t)=>{const r=j({accept:"application/json, text/plain"},n.authHeaders),o=n.authMethod&&"post"===n.authMethod.toLowerCase();let c;const l=n.authUrl.indexOf("?");l>-1&&(c=ie(n.authUrl.slice(l)),n.authUrl=n.authUrl.slice(0,l),o||(n.authParams=j(c,n.authParams)));const h=j({},n.authParams||{},e),d=e=>{var n,r;let body=null!=(n=e.body)?n:null,o=null;if(e.error)M.logAction(this.logger,M.LOG_MICRO,"Auth.requestToken().tokenRequestCallback","Received Error: "+ae(e.error));else{const t=null!=(r=e.headers["content-type"])?r:null;o=Array.isArray(t)?t.join(", "):t,M.logAction(this.logger,M.LOG_MICRO,"Auth.requestToken().tokenRequestCallback","Received; content-type: "+o+"; body: "+se(body))}if(e.error)return void t(e.error,null);if(e.unpacked)return void t(null,body);if(O.BufferUtils.isBuffer(body)&&(body=body.toString()),!o)return void t(new I("authUrl response is missing a content-type header",40170,401),null);const c=o.indexOf("application/json")>-1,text=o.indexOf("text/plain")>-1||o.indexOf("application/jwt")>-1;if(c||text){if(c){if(body.length>Ge)return void t(new I("authUrl response exceeded max permitted length",40170,401),null);try{body=JSON.parse(body)}catch(e){return void t(new I("Unexpected error processing authURL response; err = "+e.message,40170,401),null)}}t(null,body,o)}else t(new I("authUrl responded with unacceptable content-type "+o+", should be either text/plain, application/jwt or application/json",40170,401),null)};if(M.logAction(this.logger,M.LOG_MICRO,"Auth.requestToken().tokenRequestCallback","Requesting token from "+n.authUrl+"; Params: "+JSON.stringify(h)+"; method: "+(o?"POST":"GET")),o){const e=r||{};e["content-type"]="application/x-www-form-urlencoded";const body=re(h).slice(1);de(this.client.http.doUri(ze.Post,n.authUrl,e,body,c),((e,t)=>d(e||t)))}else de(this.client.http.doUri(ze.Get,n.authUrl,r||{},null,h),((e,t)=>d(e||t)))};else{if(!n.key){const e="Need a new token, but authOptions does not include any way to request one (no authUrl, authCallback, or key)";throw M.logAction(this.logger,M.LOG_ERROR,"Auth()","library initialized with a token literal without any way to renew the token when it expires (no authUrl, authCallback, or key). See https://help.ably.io/error/40171 for help"),new I(e,40171,403)}M.logAction(this.logger,M.LOG_MINOR,"Auth.requestToken()","using token auth with client-side signing"),o=(e,t)=>{de(this.createTokenRequest(e,n),((e,n)=>t(e,null!=n?n:null)))}}"capability"in r&&(r.capability=We(r.capability));const l=(e,t)=>{const path="/keys/"+e.keyName+"/requestToken",r=Be.defaultPostHeaders(this.client.options);n.requestHeaders&&j(r,n.requestHeaders),M.logAction(this.logger,M.LOG_MICRO,"Auth.requestToken().requestToken","Sending POST to "+path+"; Token params: "+JSON.stringify(e)),de(this.client.http.do(ze.Post,(function(e){return c.baseUri(e)+path}),r,JSON.stringify(e),null),((e,n)=>e?t(e):t(n.error,n.body,n.unpacked)))};return new Promise(((e,t)=>{let c=!1,h=this.client.options.timeouts.realtimeRequestTimeout,d=setTimeout((()=>{c=!0;const e="Token request callback timed out after "+h/1e3+" seconds";M.logAction(this.logger,M.LOG_ERROR,"Auth.requestToken()",e),t(new I(e,40170,401))}),h);o(r,((r,o,h)=>{if(c)return;if(clearTimeout(d),r)return M.logAction(this.logger,M.LOG_ERROR,"Auth.requestToken()","token request signing call returned error; err = "+ae(r)),void t(Ve(r));if("string"==typeof o)return void(0===o.length?t(new I("Token string is empty",40170,401)):o.length>Ge?t(new I("Token string exceeded max permitted length (was "+o.length+" bytes)",40170,401)):"undefined"===o||"null"===o?t(new I("Token string was literal null/undefined",40170,401)):"{"!==o[0]||h&&h.indexOf("application/jwt")>-1?e({token:o}):t(new I("Token was double-encoded; make sure you're not JSON-encoding an already encoded token request or details",40170,401)));if("object"!=typeof o||null===o){const e="Expected token request callback to call back with a token string or token request/details object, but got a "+typeof o;return M.logAction(this.logger,M.LOG_ERROR,"Auth.requestToken()",e),void t(new I(e,40170,401))}const f=JSON.stringify(o).length;if(f>Ge&&!n.suppressMaxLengthCheck)t(new I("Token request/details object exceeded max permitted stringified size (was "+f+" bytes)",40170,401));else if("issued"in o)e(o);else{if(!("keyName"in o)){const e="Expected token request callback to call back with a token string, token request object, or token details object";return M.logAction(this.logger,M.LOG_ERROR,"Auth.requestToken()",e),void t(new I(e,40170,401))}l(o,((n,r,o)=>{if(n)return M.logAction(this.logger,M.LOG_ERROR,"Auth.requestToken()","token request API call returned error; err = "+ae(n)),void t(Ve(n));o||(r=JSON.parse(r)),M.logAction(this.logger,M.LOG_MINOR,"Auth.getToken()","token received"),e(r)}))}}))}))}async createTokenRequest(e,t){t=t||this.authOptions,e=e||D(this.tokenParams);const n=t.key;if(!n)throw new I("No key specified",40101,403);const r=n.split(":"),o=r[0],c=r[1];if(!c)throw new I("Invalid key specified",40101,403);if(""===e.clientId)throw new I("clientId can’t be an empty string",40012,400);"capability"in e&&(e.capability=We(e.capability));const l=j({keyName:o},e),h=e.clientId||"",d=e.ttl||"",f=e.capability||"";l.timestamp||(l.timestamp=await this.getTimestamp(t&&t.queryTime));const m=l.nonce||(l.nonce=("000000"+Math.floor(1e16*Math.random())).slice(-16)),v=l.timestamp,y=l.keyName+"\n"+d+"\n"+f+"\n"+h+"\n"+v+"\n"+m+"\n";return l.mac=l.mac||((text,e)=>{const t=O.BufferUtils,n=t.utf8Encode(text),r=t.utf8Encode(e),o=t.hmacSha256(n,r);return t.base64Encode(o)})(y,c),M.logAction(this.logger,M.LOG_MINOR,"Auth.getTokenRequest()","generated signed request"),l}async getAuthParams(){if("basic"==this.method)return{key:this.key};{let e=await this._ensureValidAuthCredentials(!1);if(!e)throw new Error("Auth.getAuthParams(): _ensureValidAuthCredentials returned no error or tokenDetails");return{access_token:e.token}}}async getAuthHeaders(){if("basic"==this.method)return{authorization:"Basic "+this.basicKey};{const e=await this._ensureValidAuthCredentials(!1);if(!e)throw new Error("Auth.getAuthParams(): _ensureValidAuthCredentials returned no error or tokenDetails");return{authorization:"Bearer "+Ce(e.token)}}}async getTimestamp(e){return this.isTimeOffsetSet()||!e&&!this.authOptions.queryTime?this.getTimestampUsingOffset():this.client.time()}getTimestampUsingOffset(){return Date.now()+(this.client.serverTimeOffset||0)}isTimeOffsetSet(){return null!==this.client.serverTimeOffset}_saveBasicOptions(e){this.method="basic",this.key=e.key,this.basicKey=Ce(e.key),this.authOptions=e||{},"clientId"in e&&this._userSetClientId(e.clientId)}_saveTokenOptions(e,t){this.method="token",e&&(this.tokenParams=e),t&&(t.token&&(t.tokenDetails="string"==typeof t.token?{token:t.token}:t.token),t.tokenDetails&&(this.tokenDetails=t.tokenDetails),"clientId"in t&&this._userSetClientId(t.clientId),this.authOptions=t)}async _ensureValidAuthCredentials(e){const t=this.tokenDetails;if(t){if(this._tokenClientIdMismatch(t.clientId))throw new I("Mismatch between clientId in token ("+t.clientId+") and current clientId ("+this.clientId+")",40102,403);if(!this.isTimeOffsetSet()||!t.expires||t.expires>=this.getTimestampUsingOffset())return M.logAction(this.logger,M.LOG_MINOR,"Auth.getToken()","using cached token; expires = "+t.expires),t;M.logAction(this.logger,M.LOG_MINOR,"Auth.getToken()","deleting expired token"),this.tokenDetails=null}const n=(this.waitingForTokenRequest||(this.waitingForTokenRequest=Ue.create(this.logger))).createPromise();if(null!==this.currentTokenRequestId&&!e)return n;const r=this.currentTokenRequestId=Ye++;let o,c=null;try{o=await this.requestToken(this.tokenParams,this.authOptions)}catch(e){c=e}if(this.currentTokenRequestId>r)return M.logAction(this.logger,M.LOG_MINOR,"Auth._ensureValidAuthCredentials()","Discarding token request response; overtaken by newer one"),n;this.currentTokenRequestId=null;const l=this.waitingForTokenRequest;return this.waitingForTokenRequest=null,c?(null==l||l.rejectAll(c),n):(null==l||l.resolveAll(this.tokenDetails=o),n)}_userSetClientId(e){if("string"!=typeof e&&null!==e)throw new I("clientId must be either a string or null",40012,400);if("*"===e)throw new I('Can’t use "*" as a clientId as that string is reserved. (To change the default token request behaviour to use a wildcard clientId, instantiate the library with {defaultTokenParams: {clientId: "*"}}), or if calling authorize(), pass it in as a tokenParam: authorize({clientId: "*"}, authOptions)',40012,400);{const t=this._uncheckedSetClientId(e);if(t)throw t}}_uncheckedSetClientId(e){if(this._tokenClientIdMismatch(e)){const t="Unexpected clientId mismatch: client has "+this.clientId+", requested "+e,n=new I(t,40102,401);return M.logAction(this.logger,M.LOG_ERROR,"Auth._uncheckedSetClientId()",t),n}return this.clientId=this.tokenParams.clientId=e,null}_tokenClientIdMismatch(e){return!(!this.clientId||"*"===this.clientId||!e||"*"===e||this.clientId===e)}static isTokenErr(e){return e.code&&e.code>=40140&&e.code<40150}revokeTokens(e,t){return this.client.rest.revokeTokens(e,t)}};function Je(e){const t=[];if(e)for(const n in e)t.push(n+"="+e[n]);return t.join("&")}function Ze(e,t){return e+(t?"?":"")+Je(t)}var Qe=class{constructor(e){this.client=e,this.platformHttp=new O.Http(e),this.checkConnectivity=this.platformHttp.checkConnectivity?()=>this.platformHttp.checkConnectivity():void 0}get logger(){var e,t;return null!=(t=null==(e=this.client)?void 0:e.logger)?t:M.defaultLogger}get supportsAuthHeaders(){return this.platformHttp.supportsAuthHeaders}get supportsLinkHeaders(){return this.platformHttp.supportsLinkHeaders}_getHosts(e){const t=e.connection,n=t&&t.connectionManager.host;return n?[n].concat(Be.getFallbackHosts(e.options)):Be.getHosts(e.options)}async do(e,path,t,body,n){try{const r=this.client;if(!r)return{error:new I("http.do called without client",5e4,500)};const o="function"==typeof path?path:function(e){return r.baseUri(e)+path},c=r._currentFallback;if(c){if(c.validUntil>Date.now()){const l=await this.doUri(e,o(c.host),t,body,n);return l.error&&this.platformHttp.shouldFallback(l.error)?(r._currentFallback=null,this.do(e,path,t,body,n)):l}r._currentFallback=null}const l=this._getHosts(r);if(1===l.length)return this.doUri(e,o(l[0]),t,body,n);let h=null;const d=async(c,l)=>{const f=c.shift();h=null!=h?h:new Date;const m=await this.doUri(e,o(f),t,body,n);return m.error&&this.platformHttp.shouldFallback(m.error)&&c.length?Date.now()-h.getTime()>r.options.timeouts.httpMaxRetryDuration?{error:new I(`Timeout for trying fallback hosts retries. Total elapsed time exceeded the ${r.options.timeouts.httpMaxRetryDuration}ms limit`,50003,500)}:d(c,!0):(l&&(r._currentFallback={host:f,validUntil:Date.now()+r.options.timeouts.fallbackRetryTimeout}),m)};return d(l)}catch(e){return{error:new I(`Unexpected error in Http.do: ${ae(e)}`,500,5e4)}}}async doUri(e,t,n,body,r){try{!function(e,t,body,n,r){r.shouldLog(M.LOG_MICRO)&&M.logActionNoStrip(r,M.LOG_MICRO,"Http."+e+"()","Sending; "+Ze(t,n)+"; Body"+(O.BufferUtils.isBuffer(body)?" (Base64): "+O.BufferUtils.base64Encode(body):": "+body))}(e,t,body,r,this.logger);const o=await this.platformHttp.doUri(e,t,n,body,r);return this.logger.shouldLog(M.LOG_MICRO)&&function(e,t,n,r,o){e.error?M.logActionNoStrip(o,M.LOG_MICRO,"Http."+t+"()","Received Error; "+Ze(n,r)+"; Error: "+ae(e.error)):M.logActionNoStrip(o,M.LOG_MICRO,"Http."+t+"()","Received; "+Ze(n,r)+"; Headers: "+Je(e.headers)+"; StatusCode: "+e.statusCode+"; Body"+(O.BufferUtils.isBuffer(e.body)?" (Base64): "+O.BufferUtils.base64Encode(e.body):": "+e.body))}(o,e,t,r,this.logger),o}catch(e){return{error:new I(`Unexpected error in Http.doUri: ${ae(e)}`,500,5e4)}}}},et=class{constructor(e){var t,n,r,o,c,l,h,d;this.Platform=O,this.ErrorInfo=I,this.Logger=M,this.Defaults=Be,this.Utils=x,this._additionalHTTPRequestImplementations=null!=(t=e.plugins)?t:null,this.logger=new M,this.logger.setLog(e.logLevel,e.logHandler),M.logAction(this.logger,M.LOG_MICRO,"BaseClient()","initialized with clientOptions "+O.Config.inspect(e)),this._MsgPack=null!=(r=null==(n=e.plugins)?void 0:n.MsgPack)?r:null;const f=this.options=Be.normaliseOptions(e,this._MsgPack,this.logger);if(f.key){const e=f.key.match(/^([^:\s]+):([^:.\s]+)$/);if(!e){const e="invalid key parameter";throw M.logAction(this.logger,M.LOG_ERROR,"BaseClient()",e),new I(e,40400,404)}f.keyName=e[1],f.keySecret=e[2]}if("clientId"in f){if("string"!=typeof f.clientId&&null!==f.clientId)throw new I("clientId must be either a string or null",40012,400);if("*"===f.clientId)throw new I('Can’t use "*" as a clientId as that string is reserved. (To change the default token request behaviour to use a wildcard clientId, use {defaultTokenParams: {clientId: "*"}})',40012,400)}M.logAction(this.logger,M.LOG_MINOR,"BaseClient()","started; version = "+Be.version),this._currentFallback=null,this.serverTimeOffset=null,this.http=new Qe(this),this.auth=new Xe(this,f),this._rest=(null==(o=e.plugins)?void 0:o.Rest)?new e.plugins.Rest(this):null,this._Crypto=null!=(l=null==(c=e.plugins)?void 0:c.Crypto)?l:null,this.__FilteredSubscriptions=null!=(d=null==(h=e.plugins)?void 0:h.MessageInteractions)?d:null}get rest(){return this._rest||Te("Rest"),this._rest}get _FilteredSubscriptions(){return this.__FilteredSubscriptions||Te("MessageInteractions"),this.__FilteredSubscriptions}get channels(){return this.rest.channels}get push(){return this.rest.push}get device(){var e;return(null==(e=this.options.plugins)?void 0:e.Push)&&this.push.LocalDevice||Te("Push"),this._device||(this._device=this.push.LocalDevice.load(this)),this._device}baseUri(e){return Be.getHttpScheme(this.options)+e+":"+Be.getPort(this.options,!1)}async stats(e){return this.rest.stats(e)}async time(e){return this.rest.time(e)}async request(e,path,t,n,body,r){return this.rest.request(e,path,t,n,body,r)}batchPublish(e){return this.rest.batchPublish(e)}batchPresence(e){return this.rest.batchPresence(e)}setLog(e){this.logger.setLog(e.level,e.handler)}};et.Platform=O;var tt=et,nt=class e{toJSON(){var e,t,n;return{id:this.id,deviceSecret:this.deviceSecret,platform:this.platform,formFactor:this.formFactor,clientId:this.clientId,metadata:this.metadata,deviceIdentityToken:this.deviceIdentityToken,push:{recipient:null==(e=this.push)?void 0:e.recipient,state:null==(t=this.push)?void 0:t.state,error:null==(n=this.push)?void 0:n.error}}}toString(){var e,t,n,r;let o="[DeviceDetails";return this.id&&(o+="; id="+this.id),this.platform&&(o+="; platform="+this.platform),this.formFactor&&(o+="; formFactor="+this.formFactor),this.clientId&&(o+="; clientId="+this.clientId),this.metadata&&(o+="; metadata="+this.metadata),this.deviceIdentityToken&&(o+="; deviceIdentityToken="+JSON.stringify(this.deviceIdentityToken)),(null==(e=this.push)?void 0:e.recipient)&&(o+="; push.recipient="+JSON.stringify(this.push.recipient)),(null==(t=this.push)?void 0:t.state)&&(o+="; push.state="+this.push.state),(null==(n=this.push)?void 0:n.error)&&(o+="; push.error="+JSON.stringify(this.push.error)),(null==(r=this.push)?void 0:r.metadata)&&(o+="; push.metadata="+this.push.metadata),o+="]",o}static toRequestBody(body,e,t){return pe(body,e,t)}static fromResponseBody(body,t,n){return n&&(body=fe(body,t,n)),Array.isArray(body)?e.fromValuesArray(body):e.fromValues(body)}static fromValues(t){return t.error=t.error&&I.fromValues(t.error),Object.assign(new e,t)}static fromLocalDevice(t){return Object.assign(new e,t)}static fromValuesArray(t){const n=t.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=e.fromValues(t[i]);return r}};async function it(e,t,n,r){return e.http.supportsAuthHeaders?r(j(await e.auth.getAuthHeaders(),t),n):r(t,j(await e.auth.getAuthParams(),n))}var ot=class e{static async get(t,path,n,r,o,c){return e.do(ze.Get,t,path,null,n,r,o,null!=c&&c)}static async delete(t,path,n,r,o,c){return e.do(ze.Delete,t,path,null,n,r,o,c)}static async post(t,path,body,n,r,o,c){return e.do(ze.Post,t,path,body,n,r,o,c)}static async patch(t,path,body,n,r,o,c){return e.do(ze.Patch,t,path,body,n,r,o,c)}static async put(t,path,body,n,r,o,c){return e.do(ze.Put,t,path,body,n,r,o,c)}static async do(e,t,path,body,n,r,o,c){o&&((r=r||{}).envelope=o);const l=t.logger;let h=await it(t,n,r,(async function n(r,o){var c;if(l.shouldLog(M.LOG_MICRO)){let n=body;if((null==(c=r["content-type"])?void 0:c.indexOf("msgpack"))>0)try{t._MsgPack||Te("MsgPack"),n=t._MsgPack.decode(body)}catch(t){M.logAction(l,M.LOG_MICRO,"Resource."+e+"()","Sending MsgPack Decoding Error: "+ae(t))}M.logAction(l,M.LOG_MICRO,"Resource."+e+"()","Sending; "+Ze(path,o)+"; Body: "+n)}const h=await t.http.do(e,path,r,body,o);return h.error&&Xe.isTokenErr(h.error)?(await t.auth.authorize(null,null),it(t,r,o,n)):{err:h.error,body:h.body,headers:h.headers,unpacked:h.unpacked,statusCode:h.statusCode}}));if(o&&(h=function(e,t,n){if(e.err&&!e.body)return{err:e.err};if(e.statusCode===He.NoContent)return S(w({},e),{body:[],unpacked:!0});let body=e.body;if(!e.unpacked)try{body=fe(body,t,n)}catch(e){return oe(e)?{err:e}:{err:new R(ae(e),null)}}if(!body)return{err:new R("unenvelope(): Response body is missing",null)};const{statusCode:r,response:o,headers:c}=body;if(void 0===r)return S(w({},e),{body:body,unpacked:!0});if(r<200||r>=300){let t=o&&o.error||e.err;return t||(t=new Error("Error in unenveloping "+body),t.statusCode=r),{err:t,body:o,headers:c,unpacked:!0,statusCode:r}}return{err:e.err,body:o,headers:c,unpacked:!0,statusCode:r}}(h,t._MsgPack,o)),l.shouldLog(M.LOG_MICRO)&&function(e,t,path,n,r){e.err?M.logAction(r,M.LOG_MICRO,"Resource."+t+"()","Received Error; "+Ze(path,n)+"; Error: "+ae(e.err)):M.logAction(r,M.LOG_MICRO,"Resource."+t+"()","Received; "+Ze(path,n)+"; Headers: "+Je(e.headers)+"; StatusCode: "+e.statusCode+"; Body: "+(O.BufferUtils.isBuffer(e.body)?" (Base64): "+O.BufferUtils.base64Encode(e.body):": "+O.Config.inspect(e.body)))}(h,e,path,r,l),c){if(h.err)throw h.err;{const e=w({},h);return delete e.err,e}}return h}};function at(e){const t=e.match(/^\.\/(\w+)\?(.*)$/);return t&&t[2]&&ie(t[2])}var st=class{constructor(e,t,n){this.resource=e,this.items=t;const r=this;n&&("first"in n&&(this.first=async function(){return r.get(n.first)}),"current"in n&&(this.current=async function(){return r.get(n.current)}),this.next=async function(){return"next"in n?r.get(n.next):null},this.hasNext=function(){return"next"in n},this.isLast=()=>{var e;return!(null==(e=this.hasNext)?void 0:e.call(this))})}async get(e){const t=this.resource,n=await ot.get(t.client,t.path,t.headers,e,t.envelope,!1);return t.handlePage(n)}},ct=class extends st{constructor(e,t,n,r,o,c){super(e,t,o),this.statusCode=r,this.success=r<300&&r>=200,this.headers=n,this.errorCode=c&&c.code,this.errorMessage=c&&c.message}toJSON(){return{items:this.items,statusCode:this.statusCode,success:this.success,headers:this.headers,errorCode:this.errorCode,errorMessage:this.errorMessage}}},ut=class{constructor(e,path,t,n,r,o){this.client=e,this.path=path,this.headers=t,this.envelope=null!=n?n:null,this.bodyHandler=r,this.useHttpPaginatedResponse=o||!1}get logger(){return this.client.logger}async get(e){const t=await ot.get(this.client,this.path,this.headers,e,this.envelope,!1);return this.handlePage(t)}async delete(e){const t=await ot.delete(this.client,this.path,this.headers,e,this.envelope,!1);return this.handlePage(t)}async post(e,body){const t=await ot.post(this.client,this.path,body,this.headers,e,this.envelope,!1);return this.handlePage(t)}async put(e,body){const t=await ot.put(this.client,this.path,body,this.headers,e,this.envelope,!1);return this.handlePage(t)}async patch(e,body){const t=await ot.patch(this.client,this.path,body,this.headers,e,this.envelope,!1);return this.handlePage(t)}async handlePage(e){if(e.err&&(t=e.err,body=e.body,!this.useHttpPaginatedResponse||!body&&"number"!=typeof t.code))throw M.logAction(this.logger,M.LOG_ERROR,"PaginatedResource.handlePage()","Unexpected error getting resource: err = "+ae(e.err)),e.err;var t,body;let n,r,o;try{n=e.statusCode==He.NoContent?[]:await this.bodyHandler(e.body,e.headers||{},e.unpacked)}catch(t){throw e.err||t}return e.headers&&(r=e.headers.Link||e.headers.link)&&(o=function(e){"string"==typeof e&&(e=e.split(","));const t={};for(let i=0;i<e.length;i++){const n=e[i].match(/^\s*<(.+)>;\s*rel="(\w+)"$/);if(n){const e=at(n[1]);e&&(t[n[2]]=e)}}return t}(r)),this.useHttpPaginatedResponse?new ct(this,n,e.headers||{},e.statusCode,o,e.err):new st(this,n,o)}},lt=class e{toJSON(){return{channel:this.channel,deviceId:this.deviceId,clientId:this.clientId}}toString(){let e="[PushChannelSubscription";return this.channel&&(e+="; channel="+this.channel),this.deviceId&&(e+="; deviceId="+this.deviceId),this.clientId&&(e+="; clientId="+this.clientId),e+="]",e}static fromResponseBody(body,t,n){return n&&(body=fe(body,t,n)),Array.isArray(body)?e.fromValuesArray(body):e.fromValues(body)}static fromValues(t){return Object.assign(new e,t)}static fromValuesArray(t){const n=t.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=e.fromValues(t[i]);return r}};lt.toRequestBody=pe;var ht=lt,ft=class{constructor(e){this.client=e,this.deviceRegistrations=new pt(e),this.channelSubscriptions=new mt(e)}async publish(e,t){const n=this.client,r=n.options.useBinaryProtocol?"msgpack":"json",o=Be.defaultPostHeaders(n.options,{format:r}),c={},body=j({recipient:e},t);j(o,n.options.headers),n.options.pushFullWait&&j(c,{fullWait:"true"});const l=pe(body,n._MsgPack,r);await ot.post(n,"/push/publish",l,o,c,null,!0)}},pt=class{constructor(e){this.client=e}async save(e){const t=this.client,body=nt.fromValues(e),n=t.options.useBinaryProtocol?"msgpack":"json",r=Be.defaultPostHeaders(t.options,{format:n}),o={};j(r,t.options.headers),t.options.pushFullWait&&j(o,{fullWait:"true"});const c=pe(body,t._MsgPack,n),l=await ot.put(t,"/push/deviceRegistrations/"+encodeURIComponent(e.id),c,r,o,null,!0);return nt.fromResponseBody(l.body,t._MsgPack,l.unpacked?void 0:n)}async get(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=Be.defaultGetHeaders(t.options,{format:n}),o=e.id||e;if("string"!=typeof o||!o.length)throw new I("First argument to DeviceRegistrations#get must be a deviceId string or DeviceDetails",4e4,400);j(r,t.options.headers);const c=await ot.get(t,"/push/deviceRegistrations/"+encodeURIComponent(o),r,{},null,!0);return nt.fromResponseBody(c.body,t._MsgPack,c.unpacked?void 0:n)}async list(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=this.client.http.supportsLinkHeaders?void 0:n,o=Be.defaultGetHeaders(t.options,{format:n});return j(o,t.options.headers),new ut(t,"/push/deviceRegistrations",o,r,(async function(body,e,r){return nt.fromResponseBody(body,t._MsgPack,r?void 0:n)})).get(e)}async remove(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=Be.defaultGetHeaders(t.options,{format:n}),o={},c=e.id||e;if("string"!=typeof c||!c.length)throw new I("First argument to DeviceRegistrations#remove must be a deviceId string or DeviceDetails",4e4,400);j(r,t.options.headers),t.options.pushFullWait&&j(o,{fullWait:"true"}),await ot.delete(t,"/push/deviceRegistrations/"+encodeURIComponent(c),r,o,null,!0)}async removeWhere(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=Be.defaultGetHeaders(t.options,{format:n});j(r,t.options.headers),t.options.pushFullWait&&j(e,{fullWait:"true"}),await ot.delete(t,"/push/deviceRegistrations",r,e,null,!0)}},mt=class e{constructor(t){this.remove=e.prototype.removeWhere,this.client=t}async save(e){const t=this.client,body=ht.fromValues(e),n=t.options.useBinaryProtocol?"msgpack":"json",r=Be.defaultPostHeaders(t.options,{format:n}),o={};j(r,t.options.headers),t.options.pushFullWait&&j(o,{fullWait:"true"});const c=pe(body,t._MsgPack,n),l=await ot.post(t,"/push/channelSubscriptions",c,r,o,null,!0);return ht.fromResponseBody(l.body,t._MsgPack,l.unpacked?void 0:n)}async list(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=this.client.http.supportsLinkHeaders?void 0:n,o=Be.defaultGetHeaders(t.options,{format:n});return j(o,t.options.headers),new ut(t,"/push/channelSubscriptions",o,r,(async function(body,e,r){return ht.fromResponseBody(body,t._MsgPack,r?void 0:n)})).get(e)}async removeWhere(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=Be.defaultGetHeaders(t.options,{format:n});j(r,t.options.headers),t.options.pushFullWait&&j(e,{fullWait:"true"}),await ot.delete(t,"/push/channelSubscriptions",r,e,null,!0)}async listChannels(e){const t=this.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=this.client.http.supportsLinkHeaders?void 0:n,o=Be.defaultGetHeaders(t.options,{format:n});return j(o,t.options.headers),t.options.pushFullWait&&j(e,{fullWait:"true"}),new ut(t,"/push/channels",o,r,(async function(body,e,r){const o=!r&&n?fe(body,t._MsgPack,n):body;for(let i=0;i<o.length;i++)o[i]=String(o[i]);return o})).get(e)}},gt=class{constructor(e){var t;this.client=e,this.admin=new ft(e),O.Config.push&&(null==(t=e.options.plugins)?void 0:t.Push)&&(this.stateMachine=new e.options.plugins.Push.ActivationStateMachine(e),this.LocalDevice=e.options.plugins.Push.localDeviceFactory(nt))}async activate(e,t){await new Promise(((n,r)=>{var o;(null==(o=this.client.options.plugins)?void 0:o.Push)?this.stateMachine?this.stateMachine.activatedCallback?r(new I("Activation already in progress",4e4,400)):(this.stateMachine.activatedCallback=e=>{e?r(e):n()},this.stateMachine.updateFailedCallback=t,this.stateMachine.handleEvent(new this.client.options.plugins.Push.CalledActivate(this.stateMachine,e))):r(new I("This platform is not supported as a target of push notifications",4e4,400)):r(Ae("Push"))}))}async deactivate(e){await new Promise(((t,n)=>{var r;(null==(r=this.client.options.plugins)?void 0:r.Push)?this.stateMachine?this.stateMachine.deactivatedCallback?n(new I("Deactivation already in progress",4e4,400)):(this.stateMachine.deactivatedCallback=e=>{e?n(e):t()},this.stateMachine.handleEvent(new this.client.options.plugins.Push.CalledDeactivate(this.stateMachine,e))):n(new I("This platform is not supported as a target of push notifications",4e4,400)):n(Ae("Push"))}))}};function vt(e){let t=0;return e.name&&(t+=e.name.length),e.clientId&&(t+=e.clientId.length),e.extras&&(t+=JSON.stringify(e.extras).length),e.data&&(t+=ce(e.data)),t}async function bt(e,t,n,r){const o=Ct(n),c=function(e,t,n){if(n&&n.cipher){e||Te("Crypto");const r=e.getCipher(n.cipher,t);return{cipher:r.cipherParams,channelCipher:r.cipher}}return null!=n?n:{}}(t,e,null!=r?r:null);try{await _t(o,c)}catch(t){M.logAction(e,M.LOG_ERROR,"Message.fromEncoded()",t.toString())}return o}async function yt(e,t){const data=e.data;if("string"!=typeof data&&!O.BufferUtils.isBuffer(data)&&null!=data){if(!L(data)&&!Array.isArray(data))throw new I("Data type is unsupported",40013,400);e.data=JSON.stringify(data),e.encoding=e.encoding?e.encoding+"/json":"json"}return null!=t&&t.cipher?async function(e,t){let data=e.data,n=e.encoding,r=t.channelCipher;n=n?n+"/":"",O.BufferUtils.isBuffer(data)||(data=O.BufferUtils.utf8Encode(String(data)),n+="utf-8/");const o=await r.encrypt(data);return e.data=o,e.encoding=n+"cipher+"+r.algorithm,e}(e,t):e}async function wt(e,t){return Promise.all(e.map((e=>yt(e,t))))}var St=pe;async function _t(e,t){const n=function(e){return e&&e.channelOptions?e:{channelOptions:e,plugins:{},baseEncodedPreviousPayload:void 0}}(t);let r=e.data;const o=e.encoding;if(o){const t=o.split("/");let c,l=t.length,data=e.data,h="";try{for(;(c=l)>0;){const e=t[--l].match(/([-\w]+)(\+([\w-]+))?/);if(!e)break;switch(h=e[1],h){case"base64":data=O.BufferUtils.base64Decode(String(data)),c==t.length&&(r=data);continue;case"utf-8":data=O.BufferUtils.utf8Decode(data);continue;case"json":data=JSON.parse(data);continue;case"cipher":if(null!=n.channelOptions&&n.channelOptions.cipher&&n.channelOptions.channelCipher){const t=e[3],r=n.channelOptions.channelCipher;if(t!=r.algorithm)throw new Error("Unable to decrypt message with given cipher; incompatible cipher params");data=await r.decrypt(data);continue}throw new Error("Unable to decrypt message; not an encrypted channel");case"vcdiff":if(!n.plugins||!n.plugins.vcdiff)throw new I("Missing Vcdiff decoder (https://github.com/ably-forks/vcdiff-decoder)",40019,400);if("undefined"==typeof Uint8Array)throw new I("Delta decoding not supported on this browser (need ArrayBuffer & Uint8Array)",40020,400);try{let e=n.baseEncodedPreviousPayload;"string"==typeof e&&(e=O.BufferUtils.utf8Encode(e));const t=O.BufferUtils.toBuffer(e);data=O.BufferUtils.toBuffer(data),data=O.BufferUtils.arrayBufferViewToBuffer(n.plugins.vcdiff.decode(data,t)),r=data}catch(e){throw new I("Vcdiff delta decode failed with "+e,40018,400)}continue;default:throw new Error("Unknown encoding")}}}catch(e){const t=e;throw new I("Error processing the "+h+" encoding, decoder returned ‘"+t.message+"’",t.code||40013,400)}finally{e.encoding=c<=0?null:t.slice(0,c).join("/"),e.data=data}}n.baseEncodedPreviousPayload=r}function Ct(e){return Object.assign(new Tt,e)}function Ot(e){const t=e.length,n=new Array(t);for(let i=0;i<t;i++)n[i]=Ct(e[i]);return n}function At(e){let t,n=0;for(let i=0;i<e.length;i++)t=e[i],n+=t.size||(t.size=vt(t));return n}var Tt=class{toJSON(){let e=this.encoding,data=this.data;return data&&O.BufferUtils.isBuffer(data)&&(arguments.length>0?(e=e?e+"/base64":"base64",data=O.BufferUtils.base64Encode(data)):data=O.BufferUtils.toBuffer(data)),{name:this.name,id:this.id,clientId:this.clientId,connectionId:this.connectionId,connectionKey:this.connectionKey,extras:this.extras,encoding:e,data:data}}toString(){let e="[Message";return this.name&&(e+="; name="+this.name),this.id&&(e+="; id="+this.id),this.timestamp&&(e+="; timestamp="+this.timestamp),this.clientId&&(e+="; clientId="+this.clientId),this.connectionId&&(e+="; connectionId="+this.connectionId),this.encoding&&(e+="; encoding="+this.encoding),this.extras&&(e+="; extras ="+JSON.stringify(this.extras)),this.data&&("string"==typeof this.data?e+="; data="+this.data:O.BufferUtils.isBuffer(this.data)?e+="; data (buffer)="+O.BufferUtils.base64Encode(this.data):e+="; data (json)="+JSON.stringify(this.data)),this.extras&&(e+="; extras="+JSON.stringify(this.extras)),e+="]",e}},Et=Tt,Pt=["absent","present","enter","leave","update"];async function Mt(e,t,n){const r=xt(t,!0);try{await kt(r,null!=n?n:{})}catch(t){M.logAction(e,M.LOG_ERROR,"PresenceMessage.fromEncoded()",t.toString())}return r}function xt(e,t){return t&&(e.action=Pt[e.action]),Object.assign(new Dt,e)}var kt=_t;async function It(body,e,t,n,r){const o=[];r&&(body=fe(body,n,r));for(let i=0;i<body.length;i++){const n=o[i]=xt(body[i],!0);try{await kt(n,e)}catch(e){M.logAction(t,M.LOG_ERROR,"PresenceMessage.fromResponseBody()",e.toString())}}return o}function Rt(e){const t=e.length,n=new Array(t);for(let i=0;i<t;i++)n[i]=xt(e[i]);return n}function jt(data){return data instanceof Dt?data:xt({data:data})}var Dt=class{isSynthesized(){return!this.id||!this.connectionId||this.id.substring(this.connectionId.length,0)!==this.connectionId}parseId(){if(!this.id)throw new Error("parseId(): Presence message does not contain an id");const e=this.id.split(":");return{connectionId:e[0],msgSerial:parseInt(e[1],10),index:parseInt(e[2],10)}}toJSON(){let data=this.data,e=this.encoding;return data&&O.BufferUtils.isBuffer(data)&&(arguments.length>0?(e=e?e+"/base64":"base64",data=O.BufferUtils.base64Encode(data)):data=O.BufferUtils.toBuffer(data)),{id:this.id,clientId:this.clientId,action:(t=this.action,Pt.indexOf(t)),data:data,encoding:e,extras:this.extras};var t}toString(){let e="[PresenceMessage";return e+="; action="+this.action,this.id&&(e+="; id="+this.id),this.timestamp&&(e+="; timestamp="+this.timestamp),this.clientId&&(e+="; clientId="+this.clientId),this.connectionId&&(e+="; connectionId="+this.connectionId),this.encoding&&(e+="; encoding="+this.encoding),this.data&&("string"==typeof this.data?e+="; data="+this.data:O.BufferUtils.isBuffer(this.data)?e+="; data (buffer)="+O.BufferUtils.base64Encode(this.data):e+="; data (json)="+JSON.stringify(this.data)),this.extras&&(e+="; extras="+JSON.stringify(this.extras)),e+="]",e}},Nt=Dt,Lt=class{constructor(e){this.channel=e}get logger(){return this.channel.logger}async get(e){M.logAction(this.logger,M.LOG_MICRO,"RestPresence.get()","channel = "+this.channel.name);const t=this.channel.client,n=t.options.useBinaryProtocol?"msgpack":"json",r=this.channel.client.http.supportsLinkHeaders?void 0:n,o=Be.defaultGetHeaders(t.options,{format:n});j(o,t.options.headers);const c=this.channel.channelOptions;return new ut(t,this.channel.client.rest.presenceMixin.basePath(this),o,r,(async(body,e,r)=>await It(body,c,this.logger,t._MsgPack,r?void 0:n))).get(e)}async history(e){return M.logAction(this.logger,M.LOG_MICRO,"RestPresence.history()","channel = "+this.channel.name),this.channel.client.rest.presenceMixin.history(this,e)}},Bt=class{constructor(e,t,n){var r,o;M.logAction(e.logger,M.LOG_MINOR,"RestChannel()","started; name = "+t),this.name=t,this.client=e,this.presence=new Lt(this),this.channelOptions=De(null!=(r=e._Crypto)?r:null,this.logger,n),(null==(o=e.options.plugins)?void 0:o.Push)&&(this._push=new e.options.plugins.Push.PushChannel(this))}get push(){return this._push||Te("Push"),this._push}get logger(){return this.client.logger}setOptions(e){var t;this.channelOptions=De(null!=(t=this.client._Crypto)?t:null,this.logger,e)}async history(e){return M.logAction(this.logger,M.LOG_MICRO,"RestChannel.history()","channel = "+this.name),this.client.rest.channelMixin.history(this,e)}async publish(...e){const t=e[0],n=e[1];let r,o;if("string"==typeof t||null===t)r=[Ct({name:t,data:n})],o=e[2];else if(L(t))r=[Ct(t)],o=e[1];else{if(!Array.isArray(t))throw new I("The single-argument form of publish() expects a message object or an array of message objects",40013,400);r=Ot(t),o=e[1]}o||(o={});const c=this.client,l=c.options,h=l.useBinaryProtocol?"msgpack":"json",d=c.options.idempotentRestPublishing,f=Be.defaultPostHeaders(c.options,{format:h});if(j(f,l.headers),d&&function(e){return e.every((function(e){return!e.id}))}(r)){const e=await le(9);r.forEach((function(t,n){t.id=e+":"+n.toString()}))}await wt(r,this.channelOptions);const m=At(r),v=l.maxMessageSize;if(m>v)throw new I("Maximum size of messages that can be published at once exceeded ( was "+m+" bytes; limit is "+v+" bytes)",40009,400);await this._publish(St(r,c._MsgPack,h),f,o)}async _publish(e,t,n){await ot.post(this.client,this.client.rest.channelMixin.basePath(this)+"/messages",e,t,n,null,!0)}async status(){return this.client.rest.channelMixin.status(this)}},Ut=class e{constructor(e){this.entries=e&&e.entries||void 0,this.schema=e&&e.schema||void 0,this.appId=e&&e.appId||void 0,this.inProgress=e&&e.inProgress||void 0,this.unit=e&&e.unit||void 0,this.intervalId=e&&e.intervalId||void 0}static fromValues(t){return new e(t)}},Ft=class{static basePath(e){return"/channels/"+encodeURIComponent(e.name)}static history(e,t){const n=e.client,r=n.options.useBinaryProtocol?"msgpack":"json",o=e.client.http.supportsLinkHeaders?void 0:r,c=Be.defaultGetHeaders(n.options,{format:r});j(c,n.options.headers);const l=e.channelOptions;return new ut(n,this.basePath(e)+"/messages",c,o,(async function(body,t,o){return await async function(body,e,t,n,r){r&&(body=fe(body,n,r));for(let i=0;i<body.length;i++){const n=body[i]=Ct(body[i]);try{await _t(n,e)}catch(e){M.logAction(t,M.LOG_ERROR,"Message.fromResponseBody()",e.toString())}}return body}(body,l,e.logger,n._MsgPack,o?void 0:r)})).get(t)}static async status(e){const t=e.client.options.useBinaryProtocol?"msgpack":"json",n=Be.defaultPostHeaders(e.client.options,{format:t});return(await ot.get(e.client,this.basePath(e),n,{},t,!0)).body}},zt=class{static basePath(e){return Ft.basePath(e.channel)+"/presence"}static async history(e,t){const n=e.channel.client,r=n.options.useBinaryProtocol?"msgpack":"json",o=e.channel.client.http.supportsLinkHeaders?void 0:r,c=Be.defaultGetHeaders(n.options,{format:r});j(c,n.options.headers);const l=e.channel.channelOptions;return new ut(n,this.basePath(e)+"/history",c,o,(async function(body,t,o){return await It(body,l,e.logger,n._MsgPack,o?void 0:r)})).get(t)}},$t=class{constructor(e){this.channelMixin=Ft,this.presenceMixin=zt,this.Resource=ot,this.DeviceDetails=nt,this.client=e,this.channels=new Ht(this.client),this.push=new gt(this.client)}async stats(e){const t=Be.defaultGetHeaders(this.client.options),n=this.client.options.useBinaryProtocol?"msgpack":"json",r=this.client.http.supportsLinkHeaders?void 0:n;return j(t,this.client.options.headers),new ut(this.client,"/stats",t,r,(function(body,e,t){const n=t?body:JSON.parse(body);for(let i=0;i<n.length;i++)n[i]=Ut.fromValues(n[i]);return n})).get(e)}async time(e){const t=Be.defaultGetHeaders(this.client.options);this.client.options.headers&&j(t,this.client.options.headers);let{error:n,body:body,unpacked:r}=await this.client.http.do(ze.Get,(e=>this.client.baseUri(e)+"/time"),t,null,e);if(n)throw n;r||(body=JSON.parse(body));const time=body[0];if(!time)throw new I("Internal error (unexpected result type from GET /time)",5e4,500);return this.client.serverTimeOffset=time-Date.now(),time}async request(e,path,t,n,body,r){var o;const[c,l,h]=(()=>this.client.options.useBinaryProtocol?(this.client._MsgPack||Te("MsgPack"),[this.client._MsgPack.encode,this.client._MsgPack.decode,"msgpack"]):[JSON.stringify,JSON.parse,"json"])(),d=this.client.http.supportsLinkHeaders?void 0:h;n=n||{};const f=e.toLowerCase(),m="get"==f?Be.defaultGetHeaders(this.client.options,{format:h,protocolVersion:t}):Be.defaultPostHeaders(this.client.options,{format:h,protocolVersion:t});"string"!=typeof body&&(body=null!=(o=c(body))?o:null),j(m,this.client.options.headers),r&&j(m,r);const v=new ut(this.client,path,m,d,(async function(e,t,n){return N(n?e:l(e))}),!0);if(!O.Http.methods.includes(f))throw new I("Unsupported method "+f,40500,405);return O.Http.methodsWithBody.includes(f)?v[f](n,body):v[f](n)}async batchPublish(e){let t,n;Array.isArray(e)?(t=e,n=!1):(t=[e],n=!0);const r=this.client.options.useBinaryProtocol?"msgpack":"json",o=Be.defaultPostHeaders(this.client.options,{format:r});this.client.options.headers&&j(o,this.client.options.headers);const c=pe(t,this.client._MsgPack,r),l=await ot.post(this.client,"/messages",c,o,{},null,!0),h=l.unpacked?l.body:fe(l.body,this.client._MsgPack,r);return n?h[0]:h}async batchPresence(e){const t=this.client.options.useBinaryProtocol?"msgpack":"json",n=Be.defaultPostHeaders(this.client.options,{format:t});this.client.options.headers&&j(n,this.client.options.headers);const r=e.join(","),o=await ot.get(this.client,"/presence",n,{channels:r},null,!0);return o.unpacked?o.body:fe(o.body,this.client._MsgPack,t)}async revokeTokens(e,t){if(Ke(this.client.options))throw new I("Cannot revoke tokens when using token auth",40162,401);const n=this.client.options.keyName;let r=null!=t?t:{};const o=w({targets:e.map((e=>`${e.type}:${e.value}`))},r),c=this.client.options.useBinaryProtocol?"msgpack":"json",l=Be.defaultPostHeaders(this.client.options,{format:c});this.client.options.headers&&j(l,this.client.options.headers);const h=pe(o,this.client._MsgPack,c),d=await ot.post(this.client,`/keys/${n}/revokeTokens`,h,l,{},null,!0);return d.unpacked?d.body:fe(d.body,this.client._MsgPack,c)}},Ht=class{constructor(e){this.client=e,this.all=Object.create(null)}get(e,t){e=String(e);let n=this.all[e];return n?t&&n.setOptions(t):this.all[e]=n=new Bt(this.client,e,t),n}release(e){delete this.all[String(e)]}},Gt=class extends tt{constructor(e){super(Be.objectifyOptions(e,!1,"BaseRest",M.defaultLogger,{Rest:$t}))}},Vt={Rest:$t},Wt=class extends Et{static async fromEncoded(e,t){return bt(M.defaultLogger,O.Crypto,e,t)}static async fromEncodedArray(e,t){return async function(e,t,n,r){return Promise.all(n.map((function(n){return bt(e,t,n,r)})))}(M.defaultLogger,O.Crypto,e,t)}static fromValues(e){return Object.assign(new Et,e)}static async encode(e,t){return yt(e,t)}static async decode(e,t){return _t(e,t)}},qt=class extends Nt{static async fromEncoded(e,t){return Mt(M.defaultLogger,e,t)}static async fromEncodedArray(e,t){return async function(e,t,n){return Promise.all(t.map((function(t){return Mt(e,t,n)})))}(M.defaultLogger,e,t)}static fromValues(e,t){return xt(e,t)}},Kt=class e extends Gt{constructor(t){var n,r;if(!e._MsgPack)throw new Error("Expected DefaultRest._MsgPack to have been set");super(Be.objectifyOptions(t,!0,"Rest",M.defaultLogger,S(w({},Vt),{Crypto:null!=(n=e.Crypto)?n:void 0,MsgPack:null!=(r=e._MsgPack)?r:void 0})))}static get Crypto(){if(null===this._Crypto)throw new Error("Encryption not enabled; use ably.encryption.js instead");return this._Crypto}static set Crypto(e){this._Crypto=e}};Kt._Crypto=null,Kt.Message=Wt,Kt.PresenceMessage=qt,Kt._MsgPack=null,Kt._Http=Qe;var Yt=Kt;function Xt(e,t,n){let r,o,c;for(let l=0;l<e.length;l++)if(r=e[l],n&&(r=r[n]),Array.isArray(r)){for(;-1!==(o=r.indexOf(t));)r.splice(o,1);n&&0===r.length&&delete e[l][n]}else if(L(r))for(c in r)Object.prototype.hasOwnProperty.call(r,c)&&Array.isArray(r[c])&&Xt([r],t,c)}var Jt=class{constructor(e){this.logger=e,this.any=[],this.events=Object.create(null),this.anyOnce=[],this.eventsOnce=Object.create(null)}on(...e){if(1===e.length){const t=e[0];if("function"!=typeof t)throw new Error("EventListener.on(): Invalid arguments: "+O.Config.inspect(e));this.any.push(t)}if(2===e.length){const[t,n]=e;if("function"!=typeof n)throw new Error("EventListener.on(): Invalid arguments: "+O.Config.inspect(e));if(U(t))this.any.push(n);else if(Array.isArray(t))t.forEach((e=>{this.on(e,n)}));else{if("string"!=typeof t)throw new Error("EventListener.on(): Invalid arguments: "+O.Config.inspect(e));(this.events[t]||(this.events[t]=[])).push(n)}}}off(...e){if(0==e.length||U(e[0])&&U(e[1]))return this.any=[],this.events=Object.create(null),this.anyOnce=[],void(this.eventsOnce=Object.create(null));const[t,n]=e;let r=null,o=null;if(1!==e.length&&n){if("function"!=typeof n)throw new Error("EventEmitter.off(): invalid arguments:"+O.Config.inspect(e));[o,r]=[t,n]}else"function"==typeof t?r=t:o=t;if(r&&U(o))Xt([this.any,this.events,this.anyOnce,this.eventsOnce],r);else if(Array.isArray(o))o.forEach((e=>{this.off(e,r)}));else{if("string"!=typeof o)throw new Error("EventEmitter.off(): invalid arguments:"+O.Config.inspect(e));r?Xt([this.events,this.eventsOnce],r,o):(delete this.events[o],delete this.eventsOnce[o])}}listeners(e){if(e){const t=this.events[e]||[];return this.eventsOnce[e]&&Array.prototype.push.apply(t,this.eventsOnce[e]),t.length?t:null}return this.any.length?this.any:null}emit(e,...t){const n={event:e},r=[];this.anyOnce.length&&(Array.prototype.push.apply(r,this.anyOnce),this.anyOnce=[]),this.any.length&&Array.prototype.push.apply(r,this.any);const o=this.eventsOnce[e];o&&(Array.prototype.push.apply(r,o),delete this.eventsOnce[e]);const c=this.events[e];c&&Array.prototype.push.apply(r,c),r.forEach((e=>{!function(e,t,n,r){try{n.apply(t,r)}catch(t){M.logAction(e,M.LOG_ERROR,"EventEmitter.emit()","Unexpected listener exception: "+t+"; stack = "+(t&&t.stack))}}(this.logger,n,e,t)}))}once(...e){const t=e.length;if(0===t||1===t&&"function"!=typeof e[0]){const t=e[0];return new Promise((e=>{this.once(t,e)}))}const[n,r]=e;if(1===e.length&&"function"==typeof n)this.anyOnce.push(n);else if(U(n)){if("function"!=typeof r)throw new Error("EventEmitter.once(): Invalid arguments:"+O.Config.inspect(e));this.anyOnce.push(r)}else if(Array.isArray(n)){const t=this,o=function(){const c=Array.prototype.slice.call(arguments);if(n.forEach((function(e){t.off(e,o)})),"function"!=typeof r)throw new Error("EventEmitter.once(): Invalid arguments:"+O.Config.inspect(e));r.apply(this,c)};n.forEach((function(e){t.on(e,o)}))}else{if("string"!=typeof n)throw new Error("EventEmitter.once(): Invalid arguments:"+O.Config.inspect(e));const t=this.eventsOnce[n]||(this.eventsOnce[n]=[]);if(r){if("function"!=typeof r)throw new Error("EventEmitter.once(): Invalid arguments:"+O.Config.inspect(e));t.push(r)}}}async whenState(e,t){if("string"!=typeof e||"string"!=typeof t)throw new Error("whenState requires a valid state String argument");return e===t?null:this.once(e)}},Zt={HEARTBEAT:0,ACK:1,NACK:2,CONNECT:3,CONNECTED:4,DISCONNECT:5,DISCONNECTED:6,CLOSE:7,CLOSED:8,ERROR:9,ATTACH:10,ATTACHED:11,DETACH:12,DETACHED:13,PRESENCE:14,MESSAGE:15,SYNC:16,AUTH:17,ACTIVATE:18},Qt=[];Object.keys(Zt).forEach((function(e){Qt[Zt[e]]=e}));var en={HAS_PRESENCE:1,HAS_BACKLOG:2,RESUMED:4,TRANSIENT:16,ATTACH_RESUME:32,PRESENCE:65536,PUBLISH:1<<17,SUBSCRIBE:1<<18,PRESENCE_SUBSCRIBE:1<<19},tn=Object.keys(en);function nn(e){const t=[];if(e)for(let i=0;i<e.length;i++)t.push(e[i].toString());return"[ "+t.join(", ")+" ]"}en.MODE_ALL=en.PRESENCE|en.PUBLISH|en.SUBSCRIBE|en.PRESENCE_SUBSCRIBE;var rn=["PRESENCE","PUBLISH","SUBSCRIBE","PRESENCE_SUBSCRIBE"],on=pe;function an(e,t){const n=e.error;n&&(e.error=I.fromValues(n));const r=e.messages;if(r)for(let i=0;i<r.length;i++)r[i]=Ct(r[i]);const o=t?e.presence:void 0;if(t&&o&&t)for(let i=0;i<o.length;i++)o[i]=t.presenceMessageFromValues(o[i],!0);return Object.assign(new dn,S(w({},e),{presence:o}))}function sn(e){return an(e,{presenceMessageFromValues:xt,presenceMessagesFromValuesArray:Rt})}function cn(e){return Object.assign(new dn,e)}function un(e,t){let n="[ProtocolMessage";void 0!==e.action&&(n+="; action="+Qt[e.action]||!1);const r=["id","channel","channelSerial","connectionId","count","msgSerial","timestamp"];let o;for(let t=0;t<r.length;t++)o=r[t],void 0!==e[o]&&(n+="; "+o+"="+e[o]);if(e.messages&&(n+="; messages="+nn(Ot(e.messages))),e.presence&&t&&(n+="; presence="+nn(t.presenceMessagesFromValuesArray(e.presence))),e.error&&(n+="; error="+I.fromValues(e.error).toString()),e.auth&&e.auth.accessToken&&(n+="; token="+e.auth.accessToken),e.flags&&(n+="; flags="+tn.filter(e.hasFlag).join(",")),e.params){let t="";Q(e.params,(function(n){t.length>0&&(t+="; "),t+=n+"="+e.params[n]})),t.length>0&&(n+="; params=["+t+"]")}return n+="]",n}var ln,hn,dn=class{constructor(){this.hasFlag=e=>(this.flags&en[e])>0}setFlag(e){return this.flags=this.flags|en[e]}getMode(){return this.flags&&this.flags&en.MODE_ALL}encodeModesToFlags(e){e.forEach((e=>this.setFlag(e)))}decodeModesFromFlags(){const e=[];return rn.forEach((t=>{this.hasFlag(t)&&e.push(t)})),e.length>0?e:void 0}},fn=dn,pn=class extends Jt{constructor(e){super(e),this.messages=[]}count(){return this.messages.length}push(e){this.messages.push(e)}shift(){return this.messages.shift()}last(){return this.messages[this.messages.length-1]}copyAll(){return this.messages.slice()}append(e){this.messages.push.apply(this.messages,e)}prepend(e){this.messages.unshift.apply(this.messages,e)}completeMessages(e,t,n){M.logAction(this.logger,M.LOG_MICRO,"MessageQueue.completeMessages()","serial = "+e+"; count = "+t),n=n||null;const r=this.messages;if(0===r.length)throw new Error("MessageQueue.completeMessages(): completeMessages called on any empty MessageQueue");const o=r[0];if(o){const c=o.message.msgSerial,l=e+t;if(l>c){const e=r.splice(0,l-c);for(const t of e)t.callback(n)}0==r.length&&this.emit("idle")}}completeAllMessages(e){this.completeMessages(0,Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,e)}resetSendAttempted(){for(let e of this.messages)e.sendAttempted=!1}clear(){M.logAction(this.logger,M.LOG_MICRO,"MessageQueue.clear()","clearing "+this.messages.length+" messages"),this.messages=[],this.emit("idle")}},mn=class{constructor(e,t){this.message=e,this.callback=t,this.merged=!1;const n=e.action;this.sendAttempted=!1,this.ackRequired=n==Zt.MESSAGE||n==Zt.PRESENCE}},gn=class extends Jt{constructor(e){super(e.logger),this.transport=e,this.messageQueue=new pn(this.logger),e.on("ack",((e,t)=>{this.onAck(e,t)})),e.on("nack",((e,t,n)=>{this.onNack(e,t,n)}))}onAck(e,t){M.logAction(this.logger,M.LOG_MICRO,"Protocol.onAck()","serial = "+e+"; count = "+t),this.messageQueue.completeMessages(e,t)}onNack(e,t,n){M.logAction(this.logger,M.LOG_ERROR,"Protocol.onNack()","serial = "+e+"; count = "+t+"; err = "+ae(n)),n||(n=new I("Unable to send message; channel not responding",50001,500)),this.messageQueue.completeMessages(e,t,n)}onceIdle(e){const t=this.messageQueue;0!==t.count()?t.once("idle",e):e()}send(e){e.ackRequired&&this.messageQueue.push(e),this.logger.shouldLog(M.LOG_MICRO)&&M.logActionNoStrip(this.logger,M.LOG_MICRO,"Protocol.send()","sending msg; "+un(e.message,this.transport.connectionManager.realtime._RealtimePresence)),e.sendAttempted=!0,this.transport.send(e.message)}getTransport(){return this.transport}getPendingMessages(){return this.messageQueue.copyAll()}clearPendingMessages(){return this.messageQueue.clear()}finish(){const e=this.transport;this.onceIdle((function(){e.disconnect()}))}},vn=class{constructor(e,t,n,r){this.previous=e,this.current=t,n&&(this.retryIn=n),r&&(this.reason=r)}},bn={DISCONNECTED:80003,SUSPENDED:80002,FAILED:8e4,CLOSING:80017,CLOSED:80017,UNKNOWN_CONNECTION_ERR:50002,UNKNOWN_CHANNEL_ERR:50001},yn={disconnected:()=>I.fromValues({statusCode:400,code:bn.DISCONNECTED,message:"Connection to server temporarily unavailable"}),suspended:()=>I.fromValues({statusCode:400,code:bn.SUSPENDED,message:"Connection to server unavailable"}),failed:()=>I.fromValues({statusCode:400,code:bn.FAILED,message:"Connection failed or disconnected by server"}),closing:()=>I.fromValues({statusCode:400,code:bn.CLOSING,message:"Connection closing"}),closed:()=>I.fromValues({statusCode:400,code:bn.CLOSED,message:"Connection closed"}),unknownConnectionErr:()=>I.fromValues({statusCode:500,code:bn.UNKNOWN_CONNECTION_ERR,message:"Internal connection error"}),unknownChannelErr:()=>I.fromValues({statusCode:500,code:bn.UNKNOWN_CONNECTION_ERR,message:"Internal channel error"})},wn=cn({action:Zt.CLOSE}),Sn=cn({action:Zt.DISCONNECT}),_n=class extends Jt{constructor(e,t,n,r){super(e.logger),r&&(n.format=void 0,n.heartbeats=!0),this.connectionManager=e,this.auth=t,this.params=n,this.timeouts=n.options.timeouts,this.format=n.format,this.isConnected=!1,this.isFinished=!1,this.isDisposed=!1,this.maxIdleInterval=null,this.idleTimer=null,this.lastActivity=null}connect(){}close(){this.isConnected&&this.requestClose(),this.finish("closed",yn.closed())}disconnect(e){this.isConnected&&this.requestDisconnect(),this.finish("disconnected",e||yn.disconnected())}fail(e){this.isConnected&&this.requestDisconnect(),this.finish("failed",e||yn.failed())}finish(e,t){var n;this.isFinished||(this.isFinished=!0,this.isConnected=!1,this.maxIdleInterval=null,clearTimeout(null!=(n=this.idleTimer)?n:void 0),this.idleTimer=null,this.emit(e,t),this.dispose())}onProtocolMessage(e){switch(this.logger.shouldLog(M.LOG_MICRO)&&M.logActionNoStrip(this.logger,M.LOG_MICRO,"Transport.onProtocolMessage()","received on "+this.shortName+": "+un(e,this.connectionManager.realtime._RealtimePresence)+"; connectionId = "+this.connectionManager.connectionId),this.onActivity(),e.action){case Zt.HEARTBEAT:M.logActionNoStrip(this.logger,M.LOG_MICRO,"Transport.onProtocolMessage()",this.shortName+" heartbeat; connectionId = "+this.connectionManager.connectionId),this.emit("heartbeat",e.id);break;case Zt.CONNECTED:this.onConnect(e),this.emit("connected",e.error,e.connectionId,e.connectionDetails,e);break;case Zt.CLOSED:this.onClose(e);break;case Zt.DISCONNECTED:this.onDisconnect(e);break;case Zt.ACK:this.emit("ack",e.msgSerial,e.count);break;case Zt.NACK:this.emit("nack",e.msgSerial,e.count,e.error);break;case Zt.SYNC:this.connectionManager.onChannelMessage(e,this);break;case Zt.ACTIVATE:break;case Zt.AUTH:de(this.auth.authorize(),(e=>{e&&M.logAction(this.logger,M.LOG_ERROR,"Transport.onProtocolMessage()","Ably requested re-authentication, but unable to obtain a new token: "+ae(e))}));break;case Zt.ERROR:if(M.logAction(this.logger,M.LOG_MINOR,"Transport.onProtocolMessage()","received error action; connectionId = "+this.connectionManager.connectionId+"; err = "+O.Config.inspect(e.error)+(e.channel?", channel: "+e.channel:"")),void 0===e.channel){this.onFatalError(e);break}this.connectionManager.onChannelMessage(e,this);break;default:this.connectionManager.onChannelMessage(e,this)}}onConnect(e){if(this.isConnected=!0,!e.connectionDetails)throw new Error("Transport.onConnect(): Connect message recieved without connectionDetails");const t=e.connectionDetails.maxIdleInterval;t&&(this.maxIdleInterval=t+this.timeouts.realtimeRequestTimeout,this.onActivity())}onDisconnect(e){const t=e&&e.error;M.logAction(this.logger,M.LOG_MINOR,"Transport.onDisconnect()","err = "+ae(t)),this.finish("disconnected",t)}onFatalError(e){const t=e&&e.error;M.logAction(this.logger,M.LOG_MINOR,"Transport.onFatalError()","err = "+ae(t)),this.finish("failed",t)}onClose(e){const t=e&&e.error;M.logAction(this.logger,M.LOG_MINOR,"Transport.onClose()","err = "+ae(t)),this.finish("closed",t)}requestClose(){M.logAction(this.logger,M.LOG_MINOR,"Transport.requestClose()",""),this.send(wn)}requestDisconnect(){M.logAction(this.logger,M.LOG_MINOR,"Transport.requestDisconnect()",""),this.send(Sn)}ping(e){const t={action:Zt.HEARTBEAT};e&&(t.id=e),this.send(cn(t))}dispose(){M.logAction(this.logger,M.LOG_MINOR,"Transport.dispose()",""),this.isDisposed=!0,this.off()}onActivity(){this.maxIdleInterval&&(this.lastActivity=this.connectionManager.lastActivity=Date.now(),this.setIdleTimer(this.maxIdleInterval+100))}setIdleTimer(e){this.idleTimer||(this.idleTimer=setTimeout((()=>{this.onIdleTimerExpire()}),e))}onIdleTimerExpire(){if(!this.lastActivity||!this.maxIdleInterval)throw new Error("Transport.onIdleTimerExpire(): lastActivity/maxIdleInterval not set");this.idleTimer=null;const e=Date.now()-this.lastActivity,t=this.maxIdleInterval-e;if(t<=0){const t="No activity seen from realtime in "+e+"ms; assuming connection has dropped";M.logAction(this.logger,M.LOG_ERROR,"Transport.onIdleTimerExpire()",t),this.disconnect(new I(t,80003,408))}else this.setIdleTimer(t+100)}static tryConnect(e,t,n,r,o){const c=new e(t,n,r);let l;const h=function(e){clearTimeout(l),o({event:this.event,error:e})},d=t.options.timeouts.realtimeRequestTimeout;return l=setTimeout((()=>{c.off(["preconnect","disconnected","failed"]),c.dispose(),h.call({event:"disconnected"},new I("Timeout waiting for transport to indicate itself viable",5e4,500))}),d),c.on(["failed","disconnected"],h),c.on("preconnect",(function(){M.logAction(t.logger,M.LOG_MINOR,"Transport.tryConnect()","viable transport "+c),clearTimeout(l),c.off(["failed","disconnected"],h),o(null,c)})),c.connect(),c}static isAvailable(){throw new I("isAvailable not implemented for transport",5e4,500)}};(hn=ln||(ln={})).WebSocket="web_socket",hn.Comet="comet",hn.XhrPolling="xhr_polling";var Cn=void 0!==t?t:"undefined"!=typeof window?window:self,On=()=>{var e;return void 0!==O.WebStorage&&(null==(e=O.WebStorage)?void 0:e.localSupported)},An=()=>{var e;return void 0!==O.WebStorage&&(null==(e=O.WebStorage)?void 0:e.sessionSupported)},Tn=function(){},En="ably-transport-preference";function Pn(e){try{return JSON.parse(e)}catch(e){return null}}var Mn=class e extends Jt{constructor(e,t){super(e.logger),this.supportedTransports={},this.disconnectedRetryCount=0,this.pendingChannelMessagesState={isProcessing:!1,queue:[]},this.realtime=e,this.initTransports(),this.options=t;const n=t.timeouts,r=n.webSocketConnectTimeout+n.realtimeRequestTimeout;if(this.states={initialized:{state:"initialized",terminal:!1,queueEvents:!0,sendEvents:!1,failState:"disconnected"},connecting:{state:"connecting",terminal:!1,queueEvents:!0,sendEvents:!1,retryDelay:r,failState:"disconnected"},connected:{state:"connected",terminal:!1,queueEvents:!1,sendEvents:!0,failState:"disconnected"},disconnected:{state:"disconnected",terminal:!1,queueEvents:!0,sendEvents:!1,retryDelay:n.disconnectedRetryTimeout,failState:"disconnected"},suspended:{state:"suspended",terminal:!1,queueEvents:!1,sendEvents:!1,retryDelay:n.suspendedRetryTimeout,failState:"suspended"},closing:{state:"closing",terminal:!1,queueEvents:!1,sendEvents:!1,retryDelay:n.realtimeRequestTimeout,failState:"closed"},closed:{state:"closed",terminal:!0,queueEvents:!1,sendEvents:!1,failState:"closed"},failed:{state:"failed",terminal:!0,queueEvents:!1,sendEvents:!1,failState:"failed"}},this.state=this.states.initialized,this.errorReason=null,this.queuedMessages=new pn(this.logger),this.msgSerial=0,this.connectionDetails=void 0,this.connectionId=void 0,this.connectionKey=void 0,this.connectionStateTtl=n.connectionStateTtl,this.maxIdleInterval=null,this.transports=G(t.transports||Be.defaultTransports,this.supportedTransports),this.transportPreference=null,this.transports.includes(ln.WebSocket)&&(this.webSocketTransportAvailable=!0),this.transports.includes(ln.XhrPolling)?this.baseTransport=ln.XhrPolling:this.transports.includes(ln.Comet)&&(this.baseTransport=ln.Comet),this.httpHosts=Be.getHosts(t),this.wsHosts=Be.getHosts(t,!0),this.activeProtocol=null,this.host=null,this.lastAutoReconnectAttempt=null,this.lastActivity=null,this.forceFallbackHost=!1,this.connectCounter=0,this.wsCheckResult=null,this.webSocketSlowTimer=null,this.webSocketGiveUpTimer=null,this.abandonedWebSocket=!1,M.logAction(this.logger,M.LOG_MINOR,"Realtime.ConnectionManager()","started"),M.logAction(this.logger,M.LOG_MICRO,"Realtime.ConnectionManager()","requested transports = ["+(t.transports||Be.defaultTransports)+"]"),M.logAction(this.logger,M.LOG_MICRO,"Realtime.ConnectionManager()","available transports = ["+this.transports+"]"),M.logAction(this.logger,M.LOG_MICRO,"Realtime.ConnectionManager()","http hosts = ["+this.httpHosts+"]"),!this.transports.length){const e="no requested transports available";throw M.logAction(this.logger,M.LOG_ERROR,"realtime.ConnectionManager()",e),new Error(e)}const o=O.Config.addEventListener;o&&(An()&&"function"==typeof t.recover&&o("beforeunload",this.persistConnection.bind(this)),!0===t.closeOnUnload&&o("beforeunload",(()=>{M.logAction(this.logger,M.LOG_MAJOR,"Realtime.ConnectionManager()","beforeunload event has triggered the connection to close as closeOnUnload is true"),this.requestState({state:"closing"})})),o("online",(()=>{var e;this.state==this.states.disconnected||this.state==this.states.suspended?(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager caught browser ‘online’ event","reattempting connection"),this.requestState({state:"connecting"})):this.state==this.states.connecting&&(null==(e=this.pendingTransport)||e.off(),this.disconnectAllTransports(),this.startConnect())})),o("offline",(()=>{this.state==this.states.connected&&(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager caught browser ‘offline’ event","disconnecting active transport"),this.disconnectAllTransports())})))}static supportedTransports(e){const t={supportedTransports:{}};return this.initTransports(e,t),t.supportedTransports}static initTransports(e,t){const n=w(w({},O.Transports.bundledImplementations),e);[ln.WebSocket,...O.Transports.order].forEach((e=>{const r=n[e];r&&r.isAvailable()&&(t.supportedTransports[e]=r)}))}initTransports(){e.initTransports(this.realtime._additionalTransportImplementations,this)}createTransportParams(e,t){return new class{constructor(e,t,n,r){this.options=e,this.host=t,this.mode=n,this.connectionKey=r,this.format=e.useBinaryProtocol?"msgpack":"json"}getConnectParams(e){const t=e?D(e):{},n=this.options;switch(this.mode){case"resume":t.resume=this.connectionKey;break;case"recover":{const e=Pn(n.recover);e&&(t.recover=e.connectionKey);break}}return void 0!==n.clientId&&(t.clientId=n.clientId),!1===n.echoMessages&&(t.echo="false"),void 0!==this.format&&(t.format=this.format),void 0!==this.stream&&(t.stream=this.stream),void 0!==this.heartbeats&&(t.heartbeats=this.heartbeats),t.v=Be.protocolVersion,t.agent=je(this.options),void 0!==n.transportParams&&j(t,n.transportParams),t}toString(){let e="[mode="+this.mode;return this.host&&(e+=",host="+this.host),this.connectionKey&&(e+=",connectionKey="+this.connectionKey),this.format&&(e+=",format="+this.format),e+="]",e}}(this.options,e,t,this.connectionKey)}getTransportParams(e){(e=>{if(this.connectionKey)return void e("resume");if("string"==typeof this.options.recover)return void e("recover");const t=this.options.recover,n=this.getSessionRecoverData(),r=this.sessionRecoveryName();if(n&&"function"==typeof t)return M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.getTransportParams()","Calling clientOptions-provided recover function with last session data (recovery scope: "+r+")"),void t(n,(t=>{t?(this.options.recover=n.recoveryKey,e("recover")):e("clean")}));e("clean")})((t=>{const n=this.createTransportParams(null,t);if("recover"===t){M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.getTransportParams()","Transport recovery mode = recover; recoveryKey = "+this.options.recover);const e=Pn(this.options.recover);e&&(this.msgSerial=e.msgSerial)}else M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.getTransportParams()","Transport params = "+n.toString());e(n)}))}tryATransport(e,t,n){M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.tryATransport()","trying "+t),this.proposedTransport=_n.tryConnect(this.supportedTransports[t],this,this.realtime.auth,e,((r,o)=>{const c=this.state;return c==this.states.closing||c==this.states.closed||c==this.states.failed?(o&&(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.tryATransport()","connection "+c.state+" while we were attempting the transport; closing "+o),o.close()),void n(!0)):r?(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.tryATransport()","transport "+t+" "+r.event+", err: "+r.error.toString()),void(!Xe.isTokenErr(r.error)||this.errorReason&&Xe.isTokenErr(this.errorReason)?"failed"===r.event?(this.notifyState({state:"failed",error:r.error}),n(!0)):"disconnected"===r.event&&(!(l=r.error).statusCode||!l.code||l.statusCode>=500||Object.values(bn).includes(l.code)?n(!1):(this.notifyState({state:this.states.connecting.failState,error:r.error}),n(!0))):(this.errorReason=r.error,de(this.realtime.auth._forceNewToken(null,null),(r=>{r?this.actOnErrorFromAuthorize(r):this.tryATransport(e,t,n)}))))):(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.tryATransport()","viable transport "+t+"; setting pending"),this.setTransportPending(o,e),void n(null,o));var l}))}setTransportPending(e,t){const n=t.mode;M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.setTransportPending()","transport = "+e+"; mode = "+n),this.pendingTransport=e,this.cancelWebSocketSlowTimer(),this.cancelWebSocketGiveUpTimer(),e.once("connected",((t,r,o)=>{this.activateTransport(t,e,r,o),"recover"===n&&this.options.recover&&(delete this.options.recover,this.unpersistConnection())}));const r=this;e.on(["disconnected","closed","failed"],(function(t){r.deactivateTransport(e,this.event,t)})),this.emit("transport.pending",e)}activateTransport(e,t,n,r){M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.activateTransport()","transport = "+t),e&&M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.activateTransport()","error = "+e),n&&M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.activateTransport()","connectionId =  "+n),r&&M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.activateTransport()","connectionDetails =  "+JSON.stringify(r)),this.persistTransportPreference(t);const o=this.state,c=this.states.connected.state;if(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.activateTransport()","current state = "+o.state),o.state==this.states.closing.state||o.state==this.states.closed.state||o.state==this.states.failed.state)return M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.activateTransport()","Disconnecting transport and abandoning"),t.disconnect(),!1;if(delete this.pendingTransport,!t.isConnected)return M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.activateTransport()","Declining to activate transport "+t+" since it appears to no longer be connected"),!1;const l=this.activeProtocol;this.activeProtocol=new gn(t),this.host=t.params.host;const h=r.connectionKey;if(h&&this.connectionKey!=h&&this.setConnection(n,r,!!e),this.onConnectionDetailsUpdate(r,t),O.Config.nextTick((()=>{t.on("connected",((e,n,r)=>{this.onConnectionDetailsUpdate(r,t),this.emit("update",new vn(c,c,null,e))}))})),o.state===this.states.connected.state?e&&(this.errorReason=this.realtime.connection.errorReason=e,this.emit("update",new vn(c,c,null,e))):(this.notifyState({state:"connected",error:e}),this.errorReason=this.realtime.connection.errorReason=e||null),this.emit("transport.active",t),l)if(l.messageQueue.count()>0&&M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.activateTransport()","Previous active protocol (for transport "+l.transport.shortName+", new one is "+t.shortName+") finishing with "+l.messageQueue.count()+" messages still pending"),l.transport===t){const e="Assumption violated: activating a transport that was also the transport for the previous active protocol; transport = "+t.shortName+"; stack = "+(new Error).stack;M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.activateTransport()",e)}else l.finish();return!0}deactivateTransport(e,t,n){const r=this.activeProtocol,o=r&&r.getTransport()===e,c=e===this.pendingTransport,l=this.noTransportsScheduledForActivation();if(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.deactivateTransport()","transport = "+e),M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.deactivateTransport()","state = "+t+(o?"; was active":c?"; was pending":"")+(l?"":"; another transport is scheduled for activation")),n&&n.message&&M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.deactivateTransport()","reason =  "+n.message),o&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.deactivateTransport()","Getting, clearing, and requeuing "+this.activeProtocol.messageQueue.count()+" pending messages"),this.queuePendingMessages(r.getPendingMessages()),r.clearPendingMessages(),this.activeProtocol=this.host=null),this.emit("transport.inactive",e),o&&l||o&&"failed"===t||"closed"===t||null===r&&c){if("disconnected"===t&&n&&n.statusCode>500&&this.httpHosts.length>1)return this.unpersistTransportPreference(),this.forceFallbackHost=!0,void this.notifyState({state:t,error:n,retryImmediately:!0});const e="failed"===t&&Xe.isTokenErr(n)?"disconnected":t;this.notifyState({state:e,error:n})}}noTransportsScheduledForActivation(){return!this.pendingTransport||!this.pendingTransport.isConnected}setConnection(e,t,n){const r=this.connectionId;(r&&r!==e||!r&&n)&&(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.setConnection()","Resetting msgSerial"),this.msgSerial=0,this.queuedMessages.resetSendAttempted()),this.connectionId!==e&&M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.setConnection()","New connectionId; reattaching any attached channels"),this.realtime.connection.id=this.connectionId=e,this.realtime.connection.key=this.connectionKey=t.connectionKey}clearConnection(){this.realtime.connection.id=this.connectionId=void 0,this.realtime.connection.key=this.connectionKey=void 0,this.msgSerial=0,this.unpersistConnection()}createRecoveryKey(){return this.connectionKey?JSON.stringify({connectionKey:this.connectionKey,msgSerial:this.msgSerial,channelSerials:this.realtime.channels.channelSerials()}):null}checkConnectionStateFreshness(){if(!this.lastActivity||!this.connectionId)return;const e=Date.now()-this.lastActivity;e>this.connectionStateTtl+this.maxIdleInterval&&(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.checkConnectionStateFreshness()","Last known activity from realtime was "+e+"ms ago; discarding connection state"),this.clearConnection(),this.states.connecting.failState="suspended")}persistConnection(){if(An()){const e=this.createRecoveryKey();e&&this.setSessionRecoverData({recoveryKey:e,disconnectedAt:Date.now(),location:Cn.location,clientId:this.realtime.auth.clientId})}}unpersistConnection(){this.clearSessionRecoverData()}getError(){if(this.errorReason){const e=R.fromValues(this.errorReason);return e.cause=this.errorReason,e}return this.getStateError()}getStateError(){var e,t;return null==(t=(e=yn)[this.state.state])?void 0:t.call(e)}activeState(){return this.state.queueEvents||this.state.sendEvents}enactStateChange(e){const t="Connection state",n=e.current+(e.reason?"; reason: "+e.reason:"");"failed"===e.current?M.logAction(this.logger,M.LOG_ERROR,t,n):M.logAction(this.logger,M.LOG_MAJOR,t,n),M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.enactStateChange","setting new state: "+e.current+"; reason = "+(e.reason&&e.reason.message));const r=this.state=this.states[e.current];e.reason&&(this.errorReason=e.reason,this.realtime.connection.errorReason=e.reason),(r.terminal||"suspended"===r.state)&&this.clearConnection(),this.emit("connectionstate",e)}startTransitionTimer(e){M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.startTransitionTimer()","transitionState: "+e.state),this.transitionTimer&&(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.startTransitionTimer()","clearing already-running timer"),clearTimeout(this.transitionTimer)),this.transitionTimer=setTimeout((()=>{this.transitionTimer&&(this.transitionTimer=null,M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager "+e.state+" timer expired","requesting new state: "+e.failState),this.notifyState({state:e.failState}))}),e.retryDelay)}cancelTransitionTimer(){M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.cancelTransitionTimer()",""),this.transitionTimer&&(clearTimeout(this.transitionTimer),this.transitionTimer=null)}startSuspendTimer(){this.suspendTimer||(this.suspendTimer=setTimeout((()=>{this.suspendTimer&&(this.suspendTimer=null,M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager suspend timer expired","requesting new state: suspended"),this.states.connecting.failState="suspended",this.notifyState({state:"suspended"}))}),this.connectionStateTtl))}checkSuspendTimer(e){"disconnected"!==e&&"suspended"!==e&&"connecting"!==e&&this.cancelSuspendTimer()}cancelSuspendTimer(){this.states.connecting.failState="disconnected",this.suspendTimer&&(clearTimeout(this.suspendTimer),this.suspendTimer=null)}startRetryTimer(e){this.retryTimer=setTimeout((()=>{M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager retry timer expired","retrying"),this.retryTimer=null,this.requestState({state:"connecting"})}),e)}cancelRetryTimer(){this.retryTimer&&(clearTimeout(this.retryTimer),this.retryTimer=null)}startWebSocketSlowTimer(){this.webSocketSlowTimer=setTimeout((()=>{M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager WebSocket slow timer","checking connectivity"),null===this.wsCheckResult&&this.checkWsConnectivity().then((()=>{M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager WebSocket slow timer","ws connectivity check succeeded"),this.wsCheckResult=!0})).catch((()=>{M.logAction(this.logger,M.LOG_MAJOR,"ConnectionManager WebSocket slow timer","ws connectivity check failed"),this.wsCheckResult=!1})),this.realtime.http.checkConnectivity&&de(this.realtime.http.checkConnectivity(),((e,t)=>{e||!t?(M.logAction(this.logger,M.LOG_MAJOR,"ConnectionManager WebSocket slow timer","http connectivity check failed"),this.cancelWebSocketGiveUpTimer(),this.notifyState({state:"disconnected",error:new I("Unable to connect (network unreachable)",80003,404)})):M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager WebSocket slow timer","http connectivity check succeeded")}))}),this.options.timeouts.webSocketSlowTimeout)}cancelWebSocketSlowTimer(){this.webSocketSlowTimer&&(clearTimeout(this.webSocketSlowTimer),this.webSocketSlowTimer=null)}startWebSocketGiveUpTimer(e){this.webSocketGiveUpTimer=setTimeout((()=>{var t,n;this.wsCheckResult||(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager WebSocket give up timer","websocket connection took more than 10s; "+(this.baseTransport?"trying base transport":"")),this.baseTransport?(this.abandonedWebSocket=!0,null==(t=this.proposedTransport)||t.dispose(),null==(n=this.pendingTransport)||n.dispose(),this.connectBase(e,++this.connectCounter)):M.logAction(this.logger,M.LOG_MAJOR,"ConnectionManager WebSocket give up timer","websocket connectivity appears to be unavailable but no other transports to try"))}),this.options.timeouts.webSocketConnectTimeout)}cancelWebSocketGiveUpTimer(){this.webSocketGiveUpTimer&&(clearTimeout(this.webSocketGiveUpTimer),this.webSocketGiveUpTimer=null)}notifyState(e){var t,n;const r=e.state,o="disconnected"===r&&(this.state===this.states.connected||e.retryImmediately||this.state===this.states.connecting&&e.error&&Xe.isTokenErr(e.error)&&!(this.errorReason&&Xe.isTokenErr(this.errorReason)));if(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.notifyState()","new state: "+r+(o?"; will retry connection immediately":"")),r==this.state.state)return;if(this.cancelTransitionTimer(),this.cancelRetryTimer(),this.cancelWebSocketSlowTimer(),this.cancelWebSocketGiveUpTimer(),this.checkSuspendTimer(e.state),"suspended"!==r&&"connected"!==r||(this.disconnectedRetryCount=0),this.state.terminal)return;const c=this.states[e.state];let l=c.retryDelay;"disconnected"===c.state&&(this.disconnectedRetryCount++,l=ye(c.retryDelay,this.disconnectedRetryCount));const h=new vn(this.state.state,c.state,l,e.error||(null==(n=(t=yn)[c.state])?void 0:n.call(t)));if(o){const e=()=>{this.state===this.states.disconnected&&(this.lastAutoReconnectAttempt=Date.now(),this.requestState({state:"connecting"}))},t=this.lastAutoReconnectAttempt&&Date.now()-this.lastAutoReconnectAttempt+1;t&&t<1e3?(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.notifyState()","Last reconnect attempt was only "+t+"ms ago, waiting another "+(1e3-t)+"ms before trying again"),setTimeout(e,1e3-t)):O.Config.nextTick(e)}else"disconnected"!==r&&"suspended"!==r||this.startRetryTimer(l);("disconnected"===r&&!o||"suspended"===r||c.terminal)&&O.Config.nextTick((()=>{this.disconnectAllTransports()})),"connected"!=r||this.activeProtocol||M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.notifyState()","Broken invariant: attempted to go into connected state, but there is no active protocol"),this.enactStateChange(h),this.state.sendEvents?this.sendQueuedMessages():this.state.queueEvents||(this.realtime.channels.propogateConnectionInterruption(r,h.reason),this.failQueuedMessages(h.reason))}requestState(e){var t,n;const r=e.state;if(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.requestState()","requested state: "+r+"; current state: "+this.state.state),r==this.state.state)return;if(this.cancelWebSocketSlowTimer(),this.cancelWebSocketGiveUpTimer(),this.cancelTransitionTimer(),this.cancelRetryTimer(),this.checkSuspendTimer(r),"connecting"==r&&"connected"==this.state.state)return;if("closing"==r&&"closed"==this.state.state)return;const o=this.states[r],c=new vn(this.state.state,o.state,null,e.error||(null==(n=(t=yn)[o.state])?void 0:n.call(t)));this.enactStateChange(c),"connecting"==r&&O.Config.nextTick((()=>{this.startConnect()})),"closing"==r&&this.closeImpl()}startConnect(){if(this.state!==this.states.connecting)return void M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.startConnect()","Must be in connecting state to connect, but was "+this.state.state);const e=this.realtime.auth,t=++this.connectCounter,n=()=>{this.checkConnectionStateFreshness(),this.getTransportParams((e=>{if("recover"===e.mode&&e.options.recover){const t=Pn(e.options.recover);t&&this.realtime.channels.recoverChannels(t.channelSerials)}t===this.connectCounter&&this.connectImpl(e,t)}))};if(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.startConnect()","starting connection"),this.startSuspendTimer(),this.startTransitionTimer(this.states.connecting),"basic"===e.method)n();else{const r=e=>{t===this.connectCounter&&(e?this.actOnErrorFromAuthorize(e):n())};this.errorReason&&Xe.isTokenErr(this.errorReason)?de(e._forceNewToken(null,null),r):de(e._ensureValidAuthCredentials(!1),r)}}connectImpl(e,t){const n=this.state.state;if(n!==this.states.connecting.state)return void M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.connectImpl()","Must be in connecting state to connect, but was "+n);const r=this.getTransportPreference();r&&r===this.baseTransport&&this.webSocketTransportAvailable&&this.checkWsConnectivity().then((()=>{this.wsCheckResult=!0,this.abandonedWebSocket=!1,this.unpersistTransportPreference(),this.state===this.states.connecting&&(M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.connectImpl():","web socket connectivity available, cancelling connection attempt with "+this.baseTransport),this.disconnectAllTransports(),this.connectWs(e,++this.connectCounter))})).catch(Tn),r&&r===this.baseTransport||this.baseTransport&&!this.webSocketTransportAvailable?this.connectBase(e,t):this.connectWs(e,t)}connectWs(e,t){M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.connectWs()"),this.startWebSocketSlowTimer(),this.startWebSocketGiveUpTimer(e),this.tryTransportWithFallbacks("web_socket",e,!0,t,(()=>!1!==this.wsCheckResult&&!this.abandonedWebSocket))}connectBase(e,t){M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.connectBase()"),this.baseTransport?this.tryTransportWithFallbacks(this.baseTransport,e,!1,t,(()=>!0)):this.notifyState({state:"disconnected",error:new I("No transports left to try",8e4,404)})}tryTransportWithFallbacks(e,t,n,r,o){M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.tryTransportWithFallbacks()",e);const c=e=>{this.notifyState({state:this.states.connecting.failState,error:e})},l=n?this.wsHosts.slice():this.httpHosts.slice(),h=(e,t)=>{r===this.connectCounter&&(o()?t||e||f():t&&t.dispose())},d=l.shift();if(!d)return void c(new I("Unable to connect (no available host)",80003,404));t.host=d;const f=()=>{l.length?this.realtime.http.checkConnectivity?de(this.realtime.http.checkConnectivity(),((n,d)=>{r===this.connectCounter&&o()&&(n?c(n):d?(t.host=ne(l),this.tryATransport(t,e,h)):c(new I("Unable to connect (network unreachable)",80003,404)))})):c(new R("Internal error: Http.checkConnectivity not set",null,500)):c(new I("Unable to connect (and no more fallback hosts to try)",80003,404))};if(this.forceFallbackHost&&l.length)return this.forceFallbackHost=!1,void f();this.tryATransport(t,e,h)}closeImpl(){M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.closeImpl()","closing connection"),this.cancelSuspendTimer(),this.startTransitionTimer(this.states.closing),this.pendingTransport&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.closeImpl()","Closing pending transport: "+this.pendingTransport),this.pendingTransport.close()),this.activeProtocol&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.closeImpl()","Closing active transport: "+this.activeProtocol.getTransport()),this.activeProtocol.getTransport().close()),this.notifyState({state:"closed"})}onAuthUpdated(e,t){var n;switch(this.state.state){case"connected":{M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.onAuthUpdated()","Sending AUTH message on active transport");const r=null==(n=this.activeProtocol)?void 0:n.getTransport();r&&r.onAuthUpdated&&r.onAuthUpdated(e);const o=cn({action:Zt.AUTH,auth:{accessToken:e.token}});this.send(o);const c=()=>{this.off(l),t(null,e)},l=e=>{"failed"===e.current&&(this.off(c),this.off(l),t(e.reason||this.getStateError()))};this.once("connectiondetails",c),this.on("connectionstate",l);break}case"connecting":M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.onAuthUpdated()","Aborting current connection attempts in order to start again with the new auth details"),this.disconnectAllTransports();default:{M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.onAuthUpdated()","Connection state is "+this.state.state+"; waiting until either connected or failed");const n=r=>{switch(r.current){case"connected":this.off(n),t(null,e);break;case"failed":case"closed":case"suspended":this.off(n),t(r.reason||this.getStateError())}};this.on("connectionstate",n),"connecting"===this.state.state?this.startConnect():this.requestState({state:"connecting"})}}}disconnectAllTransports(){M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.disconnectAllTransports()","Disconnecting all transports"),this.connectCounter++,this.pendingTransport&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.disconnectAllTransports()","Disconnecting pending transport: "+this.pendingTransport),this.pendingTransport.disconnect()),delete this.pendingTransport,this.proposedTransport&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.disconnectAllTransports()","Disconnecting proposed transport: "+this.pendingTransport),this.proposedTransport.disconnect()),delete this.pendingTransport,this.activeProtocol&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.disconnectAllTransports()","Disconnecting active transport: "+this.activeProtocol.getTransport()),this.activeProtocol.getTransport().disconnect())}send(e,t,n){n=n||Tn;const r=this.state;if(r.sendEvents)return M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.send()","sending event"),void this.sendImpl(new mn(e,n));if(!t||!r.queueEvents){const e="rejecting event, queueEvent was "+t+", state was "+r.state;return M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.send()",e),void n(this.errorReason||new I(e,9e4,400))}this.logger.shouldLog(M.LOG_MICRO)&&M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.send()","queueing msg; "+un(e,this.realtime._RealtimePresence)),this.queue(e,n)}sendImpl(e){const t=e.message;e.ackRequired&&!e.sendAttempted&&(t.msgSerial=this.msgSerial++);try{this.activeProtocol.send(e)}catch(e){M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.sendImpl()","Unexpected exception in transport.send(): "+e.stack)}}queue(e,t){M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.queue()","queueing event");const n=this.queuedMessages.last(),r=this.options.maxMessageSize;n&&!n.sendAttempted&&function(e,t,n){let r;if(e.channel!==t.channel)return!1;if((r=e.action)!==Zt.PRESENCE&&r!==Zt.MESSAGE)return!1;if(r!==t.action)return!1;const o=r===Zt.PRESENCE?"presence":"messages",c=e[o].concat(t[o]);return!(At(c)>n||!ee(c,"clientId")||!c.every((function(e){return!e.id}))||(e[o]=c,0))}(n.message,e,r)?(n.merged||(n.callback=Ue.create(this.logger,[n.callback]),n.merged=!0),n.callback.push(t)):this.queuedMessages.push(new mn(e,t))}sendQueuedMessages(){let e;for(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.sendQueuedMessages()","sending "+this.queuedMessages.count()+" queued messages");e=this.queuedMessages.shift();)this.sendImpl(e)}queuePendingMessages(e){e&&e.length&&(M.logAction(this.logger,M.LOG_MICRO,"ConnectionManager.queuePendingMessages()","queueing "+e.length+" pending messages"),this.queuedMessages.prepend(e))}failQueuedMessages(e){const t=this.queuedMessages.count();t>0&&(M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.failQueuedMessages()","failing "+t+" queued messages, err = "+ae(e)),this.queuedMessages.completeAllMessages(e))}onChannelMessage(e,t){this.pendingChannelMessagesState.queue.push({message:e,transport:t}),this.pendingChannelMessagesState.isProcessing||this.processNextPendingChannelMessage()}processNextPendingChannelMessage(){if(this.pendingChannelMessagesState.queue.length>0){this.pendingChannelMessagesState.isProcessing=!0;const e=this.pendingChannelMessagesState.queue.shift();this.processChannelMessage(e.message).catch((e=>{M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.processNextPendingChannelMessage() received error ",e)})).finally((()=>{this.pendingChannelMessagesState.isProcessing=!1,this.processNextPendingChannelMessage()}))}}async processChannelMessage(e){await this.realtime.channels.processChannelMessage(e)}async ping(){var e;if("connected"!==this.state.state)throw new I("Unable to ping service; not connected",4e4,400);const t=null==(e=this.activeProtocol)?void 0:e.getTransport();if(!t)throw this.getStateError();M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.ping()","transport = "+t);const n=Date.now(),r=ue();return Ee(new Promise((e=>{const o=c=>{c===r&&(t.off("heartbeat",o),e(Date.now()-n))};t.on("heartbeat",o),t.ping(r)})),this.options.timeouts.realtimeRequestTimeout,"Timeout waiting for heartbeat response")}abort(e){this.activeProtocol.getTransport().fail(e)}getTransportPreference(){var e,t;return this.transportPreference||On()&&(null==(t=null==(e=O.WebStorage)?void 0:e.get)?void 0:t.call(e,En))}persistTransportPreference(e){var t,n;this.transportPreference=e.shortName,On()&&(null==(n=null==(t=O.WebStorage)?void 0:t.set)||n.call(t,En,e.shortName))}unpersistTransportPreference(){var e,t;this.transportPreference=null,On()&&(null==(t=null==(e=O.WebStorage)?void 0:e.remove)||t.call(e,En))}actOnErrorFromAuthorize(e){if(40171===e.code)this.notifyState({state:"failed",error:e});else if(40102===e.code)this.notifyState({state:"failed",error:e});else if(e.statusCode===He.Forbidden){const t="Client configured authentication provider returned 403; failing the connection";M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.actOnErrorFromAuthorize()",t),this.notifyState({state:"failed",error:new I(t,80019,403,e)})}else{const t="Client configured authentication provider request failed";M.logAction(this.logger,M.LOG_MINOR,"ConnectionManager.actOnErrorFromAuthorize",t),this.notifyState({state:this.state.failState,error:new I(t,80019,401,e)})}}onConnectionDetailsUpdate(e,t){if(!e)return;this.connectionDetails=e,e.maxMessageSize&&(this.options.maxMessageSize=e.maxMessageSize);const n=e.clientId;if(n){const e=this.realtime.auth._uncheckedSetClientId(n);if(e)return M.logAction(this.logger,M.LOG_ERROR,"ConnectionManager.onConnectionDetailsUpdate()",e.message),void t.fail(e)}const r=e.connectionStateTtl;r&&(this.connectionStateTtl=r),this.maxIdleInterval=e.maxIdleInterval,this.emit("connectiondetails",e)}checkWsConnectivity(){const e=new O.Config.WebSocket(Be.wsConnectivityUrl);return new Promise(((t,n)=>{let r=!1;e.onopen=()=>{r||(r=!0,t(),e.close())},e.onclose=e.onerror=()=>{r||(r=!0,n())}}))}sessionRecoveryName(){return this.options.recoveryKeyStorageName||"ably-connection-recovery"}getSessionRecoverData(){var e,t;return An()&&(null==(t=null==(e=O.WebStorage)?void 0:e.getSession)?void 0:t.call(e,this.sessionRecoveryName()))}setSessionRecoverData(e){var t,n;return An()&&(null==(n=null==(t=O.WebStorage)?void 0:t.setSession)?void 0:n.call(t,this.sessionRecoveryName(),e))}clearSessionRecoverData(){var e,t;return An()&&(null==(t=null==(e=O.WebStorage)?void 0:e.removeSession)?void 0:t.call(e,this.sessionRecoveryName()))}},xn=class extends Jt{constructor(e,t){super(e.logger),this.whenState=e=>Jt.prototype.whenState.call(this,e,this.state),this.ably=e,this.connectionManager=new Mn(e,t),this.state=this.connectionManager.state.state,this.key=void 0,this.id=void 0,this.errorReason=null,this.connectionManager.on("connectionstate",(e=>{const t=this.state=e.current;O.Config.nextTick((()=>{this.emit(t,e)}))})),this.connectionManager.on("update",(e=>{O.Config.nextTick((()=>{this.emit("update",e)}))}))}connect(){M.logAction(this.logger,M.LOG_MINOR,"Connection.connect()",""),this.connectionManager.requestState({state:"connecting"})}async ping(){return M.logAction(this.logger,M.LOG_MINOR,"Connection.ping()",""),this.connectionManager.ping()}close(){M.logAction(this.logger,M.LOG_MINOR,"Connection.close()","connectionKey = "+this.key),this.connectionManager.requestState({state:"closing"})}get recoveryKey(){return this.logger.deprecationWarning("The `Connection.recoveryKey` attribute has been replaced by the `Connection.createRecoveryKey()` method. Replace your usage of `recoveryKey` with the return value of `createRecoveryKey()`. `recoveryKey` will be removed in a future version."),this.createRecoveryKey()}createRecoveryKey(){return this.connectionManager.createRecoveryKey()}},kn=class{constructor(e,t,n,r,o){this.previous=e,this.current=t,"attached"===t&&(this.resumed=n,this.hasBacklog=r),o&&(this.reason=o)}},In=function(){};function Rn(e){const t=e||{},{agent:n}=t;return((source,e)=>{var t={};for(var n in source)m.call(source,n)&&e.indexOf(n)<0&&(t[n]=source[n]);if(null!=source&&f)for(var n of f(source))e.indexOf(n)<0&&v.call(source,n)&&(t[n]=source[n]);return t})(t,["agent"])}var jn=class e extends Jt{constructor(e,t,n){var r,o;super(e.logger),this.retryCount=0,this.history=async function(e){M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.history()","channel = "+this.name);const t=this.client.rest.channelMixin;if(e&&e.untilAttach){if("attached"!==this.state)throw new I("option untilAttach requires the channel to be attached",4e4,400);if(!this.properties.attachSerial)throw new I("untilAttach was specified and channel is attached, but attachSerial is not defined",4e4,400);delete e.untilAttach,e.from_serial=this.properties.attachSerial}return t.history(this,e)},this.whenState=e=>Jt.prototype.whenState.call(this,e,this.state),M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel()","started; name = "+t),this.name=t,this.channelOptions=De(null!=(r=e._Crypto)?r:null,this.logger,n),this.client=e,this._presence=e._RealtimePresence?new e._RealtimePresence.RealtimePresence(this):null,this.connectionManager=e.connection.connectionManager,this.state="initialized",this.subscriptions=new Jt(this.logger),this.syncChannelSerial=void 0,this.properties={attachSerial:void 0,channelSerial:void 0},this.setOptions(n),this.errorReason=null,this._requestedFlags=null,this._mode=null,this._attachResume=!1,this._decodingContext={channelOptions:this.channelOptions,plugins:e.options.plugins||{},baseEncodedPreviousPayload:void 0},this._lastPayload={messageId:null,protocolMessageChannelSerial:null,decodeFailureRecoveryInProgress:null},this._allChannelChanges=new Jt(this.logger),(null==(o=e.options.plugins)?void 0:o.Push)&&(this._push=new e.options.plugins.Push.PushChannel(this))}get presence(){return this._presence||Te("RealtimePresence"),this._presence}get push(){return this._push||Te("Push"),this._push}invalidStateError(){return new I("Channel operation failed as channel state is "+this.state,90001,400,this.errorReason||void 0)}static processListenerArgs(e){return"function"==typeof(e=Array.prototype.slice.call(e))[0]&&e.unshift(null),e}async setOptions(e){var t;const n=this.channelOptions,r=function(e){if(e&&"params"in e&&!L(e.params))return new I("options.params must be an object",4e4,400);if(e&&"modes"in e){if(!Array.isArray(e.modes))return new I("options.modes must be an array",4e4,400);for(let i=0;i<e.modes.length;i++){const t=e.modes[i];if(!t||"string"!=typeof t||!rn.includes(String.prototype.toUpperCase.call(t)))return new I("Invalid channel mode: "+t,4e4,400)}}}(e);if(r)throw r;if(this.channelOptions=De(null!=(t=this.client._Crypto)?t:null,this.logger,e),this._decodingContext&&(this._decodingContext.channelOptions=this.channelOptions),this._shouldReattachToSetOptions(e,n))return this.attachImpl(),new Promise(((e,t)=>{this._allChannelChanges.once(["attached","update","detached","failed"],(function(n){switch(this.event){case"update":case"attached":e();break;default:t(n.reason)}}))}))}_shouldReattachToSetOptions(e,t){if("attached"!==this.state&&"attaching"!==this.state)return!1;if(null==e?void 0:e.params){const n=Rn(e.params),r=Rn(t.params);if(Object.keys(n).length!==Object.keys(r).length)return!0;if(!Se(r,n))return!0}return!(!(null==e?void 0:e.modes)||t.modes&&Oe(e.modes,t.modes))}async publish(...e){let t=e[0],n=e.length;if(!this.connectionManager.activeState())throw this.connectionManager.getError();if(1==n)if(L(t))t=[Ct(t)];else{if(!Array.isArray(t))throw new I("The single-argument form of publish() expects a message object or an array of message objects",40013,400);t=Ot(t)}else t=[Ct({name:e[0],data:e[1]})];const r=this.client.options.maxMessageSize;await wt(t,this.channelOptions);const o=At(t);if(o>r)throw new I("Maximum size of messages that can be published at once exceeded ( was "+o+" bytes; limit is "+r+" bytes)",40009,400);return new Promise(((e,n)=>{this._publish(t,(t=>t?n(t):e()))}))}_publish(e,t){M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.publish()","message count = "+e.length);const n=this.state;switch(n){case"failed":case"suspended":t(I.fromValues(this.invalidStateError()));break;default:{M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.publish()","sending message; channel state is "+n);const r=new fn;r.action=Zt.MESSAGE,r.channel=this.name,r.messages=e,this.sendMessage(r,t);break}}}onEvent(e){M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.onEvent()","received message");const t=this.subscriptions;for(let i=0;i<e.length;i++){const n=e[i];t.emit(n.name,n)}}async attach(){return"attached"===this.state?null:new Promise(((e,t)=>{this._attach(!1,null,((n,r)=>n?t(n):e(r)))}))}_attach(e,t,n){n||(n=e=>{e&&M.logAction(this.logger,M.LOG_ERROR,"RealtimeChannel._attach()","Channel attach failed: "+e.toString())});const r=this.connectionManager;r.activeState()?(("attaching"!==this.state||e)&&this.requestState("attaching",t),this.once((function(e){switch(this.event){case"attached":null==n||n(null,e);break;case"detached":case"suspended":case"failed":null==n||n(e.reason||r.getError()||new I("Unable to attach; reason unknown; state = "+this.event,9e4,500));break;case"detaching":null==n||n(new I("Attach request superseded by a subsequent detach request",9e4,409))}}))):n(r.getError())}attachImpl(){M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.attachImpl()","sending ATTACH message");const e=cn({action:Zt.ATTACH,channel:this.name,params:this.channelOptions.params,channelSerial:this.properties.channelSerial});this._requestedFlags?e.encodeModesToFlags(this._requestedFlags):this.channelOptions.modes&&e.encodeModesToFlags(ge(this.channelOptions.modes)),this._attachResume&&e.setFlag("ATTACH_RESUME"),this._lastPayload.decodeFailureRecoveryInProgress&&(e.channelSerial=this._lastPayload.protocolMessageChannelSerial),this.sendMessage(e,In)}async detach(){const e=this.connectionManager;if(!e.activeState())throw e.getError();switch(this.state){case"suspended":return void this.notifyState("detached");case"detached":return;case"failed":throw new I("Unable to detach; channel state = failed",90001,400);default:this.requestState("detaching");case"detaching":return new Promise(((t,n)=>{this.once((function(r){switch(this.event){case"detached":t();break;case"attached":case"suspended":case"failed":n(r.reason||e.getError()||new I("Unable to detach; reason unknown; state = "+this.event,9e4,500));break;case"attaching":n(new I("Detach request superseded by a subsequent attach request",9e4,409))}}))}))}}detachImpl(e){M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.detach()","sending DETACH message");const t=cn({action:Zt.DETACH,channel:this.name});this.sendMessage(t,e||In)}async subscribe(...t){const[n,r]=e.processListenerArgs(t);if("failed"===this.state)throw I.fromValues(this.invalidStateError());return n&&"object"==typeof n&&!Array.isArray(n)?this.client._FilteredSubscriptions.subscribeFilter(this,n,r):this.subscriptions.on(n,r),this.attach()}unsubscribe(...t){var n;const[r,o]=e.processListenerArgs(t);"object"==typeof r&&!o||(null==(n=this.filteredSubscriptions)?void 0:n.has(o))?this.client._FilteredSubscriptions.getAndDeleteFilteredSubscriptions(this,r,o).forEach((e=>this.subscriptions.off(e))):this.subscriptions.off(r,o)}sync(){switch(this.state){case"initialized":case"detaching":case"detached":throw new R("Unable to sync to channel; not attached",4e4)}const e=this.connectionManager;if(!e.activeState())throw e.getError();const t=cn({action:Zt.SYNC,channel:this.name});this.syncChannelSerial&&(t.channelSerial=this.syncChannelSerial),e.send(t)}sendMessage(e,t){this.connectionManager.send(e,this.client.options.queueMessages,t)}sendPresence(e,t){const n=cn({action:Zt.PRESENCE,channel:this.name,presence:Array.isArray(e)?this.client._RealtimePresence.presenceMessagesFromValuesArray(e):[this.client._RealtimePresence.presenceMessageFromValues(e)]});this.sendMessage(n,t)}async processMessage(e){e.action!==Zt.ATTACHED&&e.action!==Zt.MESSAGE&&e.action!==Zt.PRESENCE||this.setChannelSerial(e.channelSerial);let t,n=!1;switch(e.action){case Zt.ATTACHED:{this.properties.attachSerial=e.channelSerial,this._mode=e.getMode(),this.params=e.params||{};const t=e.decodeModesFromFlags();this.modes=t&&me(t)||void 0;const n=e.hasFlag("RESUMED"),r=e.hasFlag("HAS_PRESENCE"),o=e.hasFlag("HAS_BACKLOG");if("attached"===this.state){n||this._presence&&this._presence.onAttached(r);const t=new kn(this.state,this.state,n,o,e.error);this._allChannelChanges.emit("update",t),n&&!this.channelOptions.updateOnAttached||this.emit("update",t)}else"detaching"===this.state?this.checkPendingState():this.notifyState("attached",e.error,n,r,o);break}case Zt.DETACHED:{const t=e.error?I.fromValues(e.error):new I("Channel detached",90001,404);"detaching"===this.state?this.notifyState("detached",t):"attaching"===this.state?this.notifyState("suspended",t):"attached"!==this.state&&"suspended"!==this.state||this.requestState("attaching",t);break}case Zt.SYNC:if(n=!0,t=this.syncChannelSerial=e.channelSerial,!e.presence)break;case Zt.PRESENCE:{const r=e.presence;if(!r)break;const{id:o,connectionId:c,timestamp:l}=e,h=this.channelOptions;let d;for(let i=0;i<r.length;i++)try{d=r[i],await kt(d,h),d.connectionId||(d.connectionId=c),d.timestamp||(d.timestamp=l),d.id||(d.id=o+":"+i)}catch(e){M.logAction(this.logger,M.LOG_ERROR,"RealtimeChannel.processMessage()",e.toString())}this._presence&&this._presence.setPresence(r,n,t);break}case Zt.MESSAGE:{if("attached"!==this.state)return void M.logAction(this.logger,M.LOG_MAJOR,"RealtimeChannel.processMessage()",'Message "'+e.id+'" skipped as this channel "'+this.name+'" state is not "attached" (state is "'+this.state+'").');const t=e.messages,n=t[0],r=t[t.length-1],o=e.id,c=e.connectionId,l=e.timestamp;if(n.extras&&n.extras.delta&&n.extras.delta.from!==this._lastPayload.messageId){const t='Delta message decode failure - previous message not available for message "'+e.id+'" on this channel "'+this.name+'".';M.logAction(this.logger,M.LOG_ERROR,"RealtimeChannel.processMessage()",t),this._startDecodeFailureRecovery(new I(t,40018,400));break}for(let i=0;i<t.length;i++){const e=t[i];try{await _t(e,this._decodingContext)}catch(e){switch(M.logAction(this.logger,M.LOG_ERROR,"RealtimeChannel.processMessage()",e.toString()),e.code){case 40018:return void this._startDecodeFailureRecovery(e);case 40019:case 40021:return void this.notifyState("failed",e)}}e.connectionId||(e.connectionId=c),e.timestamp||(e.timestamp=l),e.id||(e.id=o+":"+i)}this._lastPayload.messageId=r.id,this._lastPayload.protocolMessageChannelSerial=e.channelSerial,this.onEvent(t);break}case Zt.ERROR:{const t=e.error;t&&80016==t.code?this.checkPendingState():this.notifyState("failed",I.fromValues(t));break}default:M.logAction(this.logger,M.LOG_ERROR,"RealtimeChannel.processMessage()","Fatal protocol error: unrecognised action ("+e.action+")"),this.connectionManager.abort(yn.unknownChannelErr())}}_startDecodeFailureRecovery(e){this._lastPayload.decodeFailureRecoveryInProgress||(M.logAction(this.logger,M.LOG_MAJOR,"RealtimeChannel.processMessage()","Starting decode failure recovery process."),this._lastPayload.decodeFailureRecoveryInProgress=!0,this._attach(!0,e,(()=>{this._lastPayload.decodeFailureRecoveryInProgress=!1})))}onAttached(){M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel.onAttached","activating channel; name = "+this.name)}notifyState(e,t,n,r,o){if(M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.notifyState","name = "+this.name+", current state = "+this.state+", notifying state "+e),this.clearStateTimer(),["detached","suspended","failed"].includes(e)&&(this.properties.channelSerial=null),e===this.state)return;this._presence&&this._presence.actOnChannelState(e,r,t),"suspended"===e&&this.connectionManager.state.sendEvents?this.startRetryTimer():this.cancelRetryTimer(),t&&(this.errorReason=t);const c=new kn(this.state,e,n,o,t),l='Channel state for channel "'+this.name+'"',h=e+(t?"; reason: "+t:"");"failed"===e?M.logAction(this.logger,M.LOG_ERROR,l,h):M.logAction(this.logger,M.LOG_MAJOR,l,h),"attaching"!==e&&"suspended"!==e&&(this.retryCount=0),"attached"===e&&this.onAttached(),"attached"===e?this._attachResume=!0:"detaching"!==e&&"failed"!==e||(this._attachResume=!1),this.state=e,this._allChannelChanges.emit(e,c),this.emit(e,c)}requestState(e,t){M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel.requestState","name = "+this.name+", state = "+e),this.notifyState(e,t),this.checkPendingState()}checkPendingState(){if(this.connectionManager.state.sendEvents)switch(M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel.checkPendingState","name = "+this.name+", state = "+this.state),this.state){case"attaching":this.startStateTimerIfNotRunning(),this.attachImpl();break;case"detaching":this.startStateTimerIfNotRunning(),this.detachImpl();break;case"attached":this.sync()}else M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel.checkPendingState","sendEvents is false; state is "+this.connectionManager.state.state)}timeoutPendingState(){switch(this.state){case"attaching":{const e=new I("Channel attach timed out",90007,408);this.notifyState("suspended",e);break}case"detaching":{const e=new I("Channel detach timed out",90007,408);this.notifyState("attached",e);break}default:this.checkPendingState()}}startStateTimerIfNotRunning(){this.stateTimer||(this.stateTimer=setTimeout((()=>{M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel.startStateTimerIfNotRunning","timer expired"),this.stateTimer=null,this.timeoutPendingState()}),this.client.options.timeouts.realtimeRequestTimeout))}clearStateTimer(){const e=this.stateTimer;e&&(clearTimeout(e),this.stateTimer=null)}startRetryTimer(){if(this.retryTimer)return;this.retryCount++;const e=ye(this.client.options.timeouts.channelRetryTimeout,this.retryCount);this.retryTimer=setTimeout((()=>{"suspended"===this.state&&this.connectionManager.state.sendEvents&&(this.retryTimer=null,M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel retry timer expired","attempting a new attach"),this.requestState("attaching"))}),e)}cancelRetryTimer(){this.retryTimer&&(clearTimeout(this.retryTimer),this.retryTimer=null)}getReleaseErr(){const s=this.state;return"initialized"===s||"detached"===s||"failed"===s?null:new I("Can only release a channel in a state where there is no possibility of further updates from the server being received (initialized, detached, or failed); was "+s,90001,400)}setChannelSerial(e){M.logAction(this.logger,M.LOG_MICRO,"RealtimeChannel.setChannelSerial()","Updating channel serial; serial = "+e+"; previous = "+this.properties.channelSerial),e&&(this.properties.channelSerial=e)}async status(){return this.client.rest.channelMixin.status(this)}},Dn=class e extends tt{constructor(t){var n,r;if(super(Be.objectifyOptions(t,!1,"BaseRealtime",M.defaultLogger)),M.logAction(this.logger,M.LOG_MINOR,"Realtime()",""),"string"==typeof EdgeRuntime)throw new I('Ably.Realtime instance cannot be used in Vercel Edge runtime. If you are running Vercel Edge functions, please replace your "new Ably.Realtime()" with "new Ably.Rest()" and use Ably Rest API instead of the Realtime API. If you are server-rendering your application in the Vercel Edge runtime, please use the condition "if (typeof EdgeRuntime === \'string\')" to prevent instantiating Ably.Realtime instance during SSR in the Vercel Edge runtime.',4e4,400);this._additionalTransportImplementations=e.transportImplementationsFromPlugins(this.options.plugins),this._RealtimePresence=null!=(r=null==(n=this.options.plugins)?void 0:n.RealtimePresence)?r:null,this.connection=new xn(this,this.options),this._channels=new Ln(this),!1!==this.options.autoConnect&&this.connect()}static transportImplementationsFromPlugins(e){const t={};return(null==e?void 0:e.WebSocketTransport)&&(t[ln.WebSocket]=e.WebSocketTransport),(null==e?void 0:e.XHRPolling)&&(t[ln.XhrPolling]=e.XHRPolling),t}get channels(){return this._channels}connect(){M.logAction(this.logger,M.LOG_MINOR,"Realtime.connect()",""),this.connection.connect()}close(){M.logAction(this.logger,M.LOG_MINOR,"Realtime.close()",""),this.connection.close()}};Dn.EventEmitter=Jt;var Nn=Dn,Ln=class extends Jt{constructor(e){super(e.logger),this.realtime=e,this.all=Object.create(null),e.connection.connectionManager.on("transport.active",(()=>{this.onTransportActive()}))}channelSerials(){let e={};for(const t of J(this.all,!0)){const n=this.all[t];n.properties.channelSerial&&(e[t]=n.properties.channelSerial)}return e}recoverChannels(e){for(const t of J(e,!0))this.get(t).properties.channelSerial=e[t]}async processChannelMessage(e){const t=e.channel;if(void 0===t)return void M.logAction(this.logger,M.LOG_ERROR,"Channels.processChannelMessage()","received event unspecified channel, action = "+e.action);const n=this.all[t];n?await n.processMessage(e):M.logAction(this.logger,M.LOG_ERROR,"Channels.processChannelMessage()","received event for non-existent channel: "+t)}onTransportActive(){for(const e in this.all){const t=this.all[e];"attaching"===t.state||"detaching"===t.state?t.checkPendingState():"suspended"===t.state?t._attach(!1,null):"attached"===t.state&&t.requestState("attaching")}}propogateConnectionInterruption(e,t){const n=["attaching","attached","detaching","suspended"],r={closing:"detached",closed:"detached",failed:"failed",suspended:"suspended"}[e];for(const e in this.all){const o=this.all[e];n.includes(o.state)&&o.notifyState(r,t)}}get(e,t){e=String(e);let n=this.all[e];if(n){if(t){if(n._shouldReattachToSetOptions(t,n.channelOptions))throw new I("Channels.get() cannot be used to set channel options that would cause the channel to reattach. Please, use RealtimeChannel.setOptions() instead.",4e4,400);n.setOptions(t)}}else n=this.all[e]=new jn(this.realtime,e,t);return n}getDerived(e,t,n){if(t.filter){const filter=Ce(t.filter),n=_e(e);e=`[filter=${filter}${n.qualifierParam}]${n.channelName}`}return this.get(e,n)}release(e){e=String(e);const t=this.all[e];if(!t)return;const n=t.getReleaseErr();if(n)throw n;delete this.all[e]}},Bn=Nn;function Un(e){const t=e.channel.client,n=t.auth.clientId;return(!n||"*"===n)&&"connected"===t.connection.state}function Fn(e,t){if(e.isSynthesized()||t.isSynthesized())return e.timestamp>=t.timestamp;const n=e.parseId(),r=t.parseId();return n.msgSerial===r.msgSerial?n.index>r.index:n.msgSerial>r.msgSerial}var zn=class extends Jt{constructor(e,t){super(e.logger),this.presence=e,this.map=Object.create(null),this.syncInProgress=!1,this.residualMembers=null,this.memberKey=t}get(e){return this.map[e]}getClient(e){const map=this.map,t=[];for(const n in map){const r=map[n];r.clientId==e&&"absent"!=r.action&&t.push(r)}return t}list(e){const map=this.map,t=e&&e.clientId,n=e&&e.connectionId,r=[];for(const e in map){const o=map[e];"absent"!==o.action&&(t&&t!=o.clientId||n&&n!=o.connectionId||r.push(o))}return r}put(e){"enter"!==e.action&&"update"!==e.action||((e=xt(e)).action="present");const map=this.map,t=this.memberKey(e);this.residualMembers&&delete this.residualMembers[t];const n=map[t];return!(n&&!Fn(e,n)||(map[t]=e,0))}values(){const map=this.map,e=[];for(const t in map){const n=map[t];"absent"!=n.action&&e.push(n)}return e}remove(e){const map=this.map,t=this.memberKey(e),n=map[t];return!(n&&!Fn(e,n)||(this.syncInProgress?((e=xt(e)).action="absent",map[t]=e):delete map[t],0))}startSync(){const map=this.map,e=this.syncInProgress;M.logAction(this.logger,M.LOG_MINOR,"PresenceMap.startSync()","channel = "+this.presence.channel.name+"; syncInProgress = "+e),this.syncInProgress||(this.residualMembers=D(map),this.setInProgress(!0))}endSync(){const map=this.map,e=this.syncInProgress;if(M.logAction(this.logger,M.LOG_MINOR,"PresenceMap.endSync()","channel = "+this.presence.channel.name+"; syncInProgress = "+e),e){for(const e in map)"absent"===map[e].action&&delete map[e];this.presence._synthesizeLeaves(Z(this.residualMembers));for(const e in this.residualMembers)delete map[e];this.residualMembers=null,this.setInProgress(!1)}this.emit("sync")}waitSync(e){const t=this.syncInProgress;M.logAction(this.logger,M.LOG_MINOR,"PresenceMap.waitSync()","channel = "+this.presence.channel.name+"; syncInProgress = "+t),t?this.once("sync",e):e()}clear(){this.map={},this.setInProgress(!1),this.residualMembers=null}setInProgress(e){M.logAction(this.logger,M.LOG_MICRO,"PresenceMap.setInProgress()","inProgress = "+e),this.syncInProgress=e,this.presence.syncComplete=!e}},$n=class extends Jt{constructor(e){super(e.logger),this.channel=e,this.syncComplete=!1,this.members=new zn(this,(e=>e.clientId+":"+e.connectionId)),this._myMembers=new zn(this,(e=>e.clientId)),this.subscriptions=new Jt(this.logger),this.pendingPresence=[]}async enter(data){if(Un(this))throw new I("clientId must be specified to enter a presence channel",40012,400);return this._enterOrUpdateClient(void 0,void 0,data,"enter")}async update(data){if(Un(this))throw new I("clientId must be specified to update presence data",40012,400);return this._enterOrUpdateClient(void 0,void 0,data,"update")}async enterClient(e,data){return this._enterOrUpdateClient(void 0,e,data,"enter")}async updateClient(e,data){return this._enterOrUpdateClient(void 0,e,data,"update")}async _enterOrUpdateClient(e,t,data,n){const r=this.channel;if(!r.connectionManager.activeState())throw r.connectionManager.getError();M.logAction(this.logger,M.LOG_MICRO,"RealtimePresence."+n+"Client()","channel = "+r.name+", id = "+e+", client = "+(t||"(implicit) "+this.channel.client.auth.clientId));const o=jt(data);switch(o.action=n,e&&(o.id=e),t&&(o.clientId=t),await yt(o,r.channelOptions),r.state){case"attached":return new Promise(((e,t)=>{r.sendPresence(o,(n=>n?t(n):e()))}));case"initialized":case"detached":r.attach();case"attaching":return new Promise(((e,t)=>{this.pendingPresence.push({presence:o,callback:n=>n?t(n):e()})}));default:{const e=new R("Unable to "+n+" presence channel while in "+r.state+" state",90001);throw e.code=90001,e}}}async leave(data){if(Un(this))throw new I("clientId must have been specified to enter or leave a presence channel",40012,400);return this.leaveClient(void 0,data)}async leaveClient(e,data){const t=this.channel;if(!t.connectionManager.activeState())throw t.connectionManager.getError();M.logAction(this.logger,M.LOG_MICRO,"RealtimePresence.leaveClient()","leaving; channel = "+this.channel.name+", client = "+e);const n=jt(data);return n.action="leave",e&&(n.clientId=e),new Promise(((e,r)=>{switch(t.state){case"attached":t.sendPresence(n,(t=>t?r(t):e()));break;case"attaching":this.pendingPresence.push({presence:n,callback:t=>t?r(t):e()});break;case"initialized":case"failed":{const e=new R("Unable to leave presence channel (incompatible state)",90001);r(e);break}default:r(t.invalidStateError())}}))}async get(e){const t=!e||!("waitForSync"in e)||e.waitForSync;return new Promise(((n,r)=>{function o(t){n(e?t.list(e):t.values())}"suspended"!==this.channel.state?function(e,t,n){switch(e.state){case"attached":case"suspended":n();break;case"initialized":case"detached":case"detaching":case"attaching":de(e.attach(),(function(e){e?t(e):n()}));break;default:t(I.fromValues(e.invalidStateError()))}}(this.channel,(e=>r(e)),(()=>{const e=this.members;t?e.waitSync((function(){o(e)})):o(e)})):t?r(I.fromValues({statusCode:400,code:91005,message:"Presence state is out of sync due to channel being in the SUSPENDED state"})):o(this.members)}))}async history(e){M.logAction(this.logger,M.LOG_MICRO,"RealtimePresence.history()","channel = "+this.name);const t=this.channel.client.rest.presenceMixin;if(e&&e.untilAttach){if("attached"!==this.channel.state)throw new I("option untilAttach requires the channel to be attached, was: "+this.channel.state,4e4,400);delete e.untilAttach,e.from_serial=this.channel.properties.attachSerial}return t.history(this,e)}setPresence(e,t,n){let r,o;M.logAction(this.logger,M.LOG_MICRO,"RealtimePresence.setPresence()","received presence for "+e.length+" participants; syncChannelSerial = "+n);const c=this.members,l=this._myMembers,h=[],d=this.channel.connectionManager.connectionId;t&&(this.members.startSync(),n&&(o=n.match(/^[\w-]+:(.*)$/))&&(r=o[1]));for(let i=0;i<e.length;i++){const t=xt(e[i]);switch(t.action){case"leave":c.remove(t)&&h.push(t),t.connectionId!==d||t.isSynthesized()||l.remove(t);break;case"enter":case"present":case"update":c.put(t)&&h.push(t),t.connectionId===d&&l.put(t)}}t&&!r&&(c.endSync(),this.channel.syncChannelSerial=null);for(let i=0;i<h.length;i++){const e=h[i];this.subscriptions.emit(e.action,e)}}onAttached(e){M.logAction(this.logger,M.LOG_MINOR,"RealtimePresence.onAttached()","channel = "+this.channel.name+", hasPresence = "+e),e?this.members.startSync():(this._synthesizeLeaves(this.members.values()),this.members.clear()),this._ensureMyMembersPresent();const t=this.pendingPresence,n=t.length;if(n){this.pendingPresence=[];const e=[],r=Ue.create(this.logger);M.logAction(this.logger,M.LOG_MICRO,"RealtimePresence.onAttached","sending "+n+" queued presence messages");for(let i=0;i<n;i++){const n=t[i];e.push(n.presence),r.push(n.callback)}this.channel.sendPresence(e,r)}}actOnChannelState(e,t,n){switch(e){case"attached":this.onAttached(t);break;case"detached":case"failed":this._clearMyMembers(),this.members.clear();case"suspended":this.failPendingPresence(n)}}failPendingPresence(e){if(this.pendingPresence.length){M.logAction(this.logger,M.LOG_MINOR,"RealtimeChannel.failPendingPresence","channel; name = "+this.channel.name+", err = "+ae(e));for(let i=0;i<this.pendingPresence.length;i++)try{this.pendingPresence[i].callback(e)}catch(e){}this.pendingPresence=[]}}_clearMyMembers(){this._myMembers.clear()}_ensureMyMembersPresent(){const e=this._myMembers,t=e=>{if(e){const t="Presence auto-re-enter failed: "+e.toString(),n=new I(t,91004,400);M.logAction(this.logger,M.LOG_ERROR,"RealtimePresence._ensureMyMembersPresent()",t);const r=new kn(this.channel.state,this.channel.state,!0,!1,n);this.channel.emit("update",r)}};for(const n in e.map){const r=e.map[n];M.logAction(this.logger,M.LOG_MICRO,"RealtimePresence._ensureMyMembersPresent()",'Auto-reentering clientId "'+r.clientId+'" into the presence set'),de(this._enterOrUpdateClient(r.id,r.clientId,r.data,"enter"),t)}}_synthesizeLeaves(e){const t=this.subscriptions;e.forEach((function(e){const n=xt({action:"leave",connectionId:e.connectionId,clientId:e.clientId,data:e.data,encoding:e.encoding,timestamp:Date.now()});t.emit("leave",n)}))}async subscribe(...e){const t=jn.processListenerArgs(e),n=t[0],r=t[1],o=this.channel;if("failed"===o.state)throw I.fromValues(o.invalidStateError());this.subscriptions.on(n,r),await o.attach()}unsubscribe(...e){const t=jn.processListenerArgs(e),n=t[0],r=t[1];this.subscriptions.off(n,r)}},Hn=ln.WebSocket,Gn=class extends _n{constructor(e,t,n){super(e,t,n),this.shortName=Hn,n.heartbeats=O.Config.useProtocolHeartbeats,this.wsHost=n.host}static isAvailable(){return!!O.Config.WebSocket}createWebSocket(e,t){return this.uri=e+re(t),new O.Config.WebSocket(this.uri)}toString(){return"WebSocketTransport; uri="+this.uri}connect(){M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.connect()","starting"),_n.prototype.connect.call(this);const e=this,t=this.params,n=t.options,r=(n.tls?"wss://":"ws://")+this.wsHost+":"+Be.getPort(n)+"/";M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.connect()","uri: "+r),de(this.auth.getAuthParams(),(function(n,o){if(e.isDisposed)return;let c="";for(const param in o)c+=" "+param+": "+o[param]+";";if(M.logAction(e.logger,M.LOG_MINOR,"WebSocketTransport.connect()","authParams:"+c+" err: "+n),n)return void e.disconnect(n);const l=t.getConnectParams(o);try{const t=e.wsConnection=e.createWebSocket(r,l);t.binaryType=O.Config.binaryType,t.onopen=function(){e.onWsOpen()},t.onclose=function(t){e.onWsClose(t)},t.onmessage=function(t){e.onWsData(t.data)},t.onerror=function(t){e.onWsError(t)},t.on&&t.on("ping",(function(){e.onActivity()}))}catch(t){M.logAction(e.logger,M.LOG_ERROR,"WebSocketTransport.connect()","Unexpected exception creating websocket: err = "+(t.stack||t.message)),e.disconnect(t)}}))}send(e){const t=this.wsConnection;if(t)try{t.send(on(e,this.connectionManager.realtime._MsgPack,this.params.format))}catch(e){const t="Exception from ws connection when trying to send: "+ae(e);M.logAction(this.logger,M.LOG_ERROR,"WebSocketTransport.send()",t),this.finish("disconnected",new I(t,5e4,500))}else M.logAction(this.logger,M.LOG_ERROR,"WebSocketTransport.send()","No socket connection")}onWsData(data){M.logAction(this.logger,M.LOG_MICRO,"WebSocketTransport.onWsData()","data received; length = "+data.length+"; type = "+typeof data);try{this.onProtocolMessage((e=data,t=this.connectionManager.realtime._MsgPack,n=this.connectionManager.realtime._RealtimePresence,r=this.format,an(fe(e,t,r),n)))}catch(e){M.logAction(this.logger,M.LOG_ERROR,"WebSocketTransport.onWsData()","Unexpected exception handing channel message: "+e.stack)}var e,t,n,r}onWsOpen(){M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.onWsOpen()","opened WebSocket"),this.emit("preconnect")}onWsClose(e){let t,code;if("object"==typeof e?(code=e.code,t=e.wasClean||1e3===code):(code=e,t=1e3==code),delete this.wsConnection,t){M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.onWsClose()","Cleanly closed WebSocket");const e=new I("Websocket closed",80003,400);this.finish("disconnected",e)}else{const e="Unclean disconnection of WebSocket ; code = "+code,t=new I(e,80003,400);M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.onWsClose()",e),this.finish("disconnected",t)}this.emit("disposed")}onWsError(e){M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.onError()","Error from WebSocket: "+e.message),O.Config.nextTick((()=>{this.disconnect(Error(e.message))}))}dispose(){M.logAction(this.logger,M.LOG_MINOR,"WebSocketTransport.dispose()",""),this.isDisposed=!0;const e=this.wsConnection;e&&(e.onmessage=function(){},delete this.wsConnection,O.Config.nextTick((()=>{if(M.logAction(this.logger,M.LOG_MICRO,"WebSocketTransport.dispose()","closing websocket"),!e)throw new Error("WebSocketTransport.dispose(): wsConnection is not defined");e.close()})))}},Vn=class{static subscribeFilter(e,filter,t){const n=e=>{var n,r,o,c,l,h;const d={name:e.name,refTimeserial:null==(r=null==(n=e.extras)?void 0:n.ref)?void 0:r.timeserial,refType:null==(c=null==(o=e.extras)?void 0:o.ref)?void 0:c.type,isRef:!!(null==(h=null==(l=e.extras)?void 0:l.ref)?void 0:h.timeserial),clientId:e.clientId};Object.entries(filter).find((([e,t])=>void 0!==t&&d[e]!==t))||t(e)};this.addFilteredSubscription(e,filter,t,n),e.subscriptions.on(n)}static addFilteredSubscription(e,filter,t,n){var r;if(e.filteredSubscriptions||(e.filteredSubscriptions=new Map),e.filteredSubscriptions.has(t)){const o=e.filteredSubscriptions.get(t);o.set(filter,(null==(r=null==o?void 0:o.get(filter))?void 0:r.concat(n))||[n])}else e.filteredSubscriptions.set(t,new Map([[filter,[n]]]))}static getAndDeleteFilteredSubscriptions(e,filter,t){if(!e.filteredSubscriptions)return[];if(!t&&filter)return Array.from(e.filteredSubscriptions.entries()).map((([t,n])=>{var r;let o=n.get(filter);return n.delete(filter),0===n.size&&(null==(r=e.filteredSubscriptions)||r.delete(t)),o})).reduce(((e,t)=>t?e.concat(...t):e),[]);if(!t||!e.filteredSubscriptions.has(t))return[];const n=e.filteredSubscriptions.get(t);if(!filter){const r=Array.from(n.values()).reduce(((e,t)=>e.concat(...t)),[]);return e.filteredSubscriptions.delete(t),r}let r=n.get(filter);return n.delete(filter),r||[]}},Wn=class e extends Bn{constructor(t){var n;const r=e._MsgPack;if(!r)throw new Error("Expected DefaultRealtime._MsgPack to have been set");super(Be.objectifyOptions(t,!0,"Realtime",M.defaultLogger,S(w({},Vt),{Crypto:null!=(n=e.Crypto)?n:void 0,MsgPack:r,RealtimePresence:{RealtimePresence:$n,presenceMessageFromValues:xt,presenceMessagesFromValuesArray:Rt},WebSocketTransport:Gn,MessageInteractions:Vn})))}static get Crypto(){if(null===this._Crypto)throw new Error("Encryption not enabled; use ably.encryption.js instead");return this._Crypto}static set Crypto(e){this._Crypto=e}};Wn.Utils=x,Wn.ConnectionManager=Mn,Wn.ProtocolMessage=fn,Wn._Crypto=null,Wn.Message=Wt,Wn.PresenceMessage=qt,Wn._MsgPack=null,Wn._Http=Qe;var qn=Wn,Kn=Uint8Array,Yn=Uint32Array,Xn=Math.pow,Jn=new Yn(8),Zn=[],Qn=new Yn(64);function er(e){return(e-(0|e))*Xn(2,32)|0}for(var nr,rr,ir=2,or=0;or<64;){for(nr=!0,rr=2;rr<=ir/2;rr++)ir%rr==0&&(nr=!1);nr&&(or<8&&(Jn[or]=er(Xn(ir,.5))),Zn[or]=er(Xn(ir,1/3)),or++),ir++}var ar=!!new Kn(new Yn([1]).buffer)[0];function sr(e){return ar?e>>>24|(e>>>16&255)<<8|(65280&e)<<8|e<<24:e}function cr(e,t){return e>>>t|e<<32-t}function ur(data){var e,t=Jn.slice(),n=data.length,r=8*n,o=512-(r+64)%512-1+r+65,c=new Kn(o/8),l=new Yn(c.buffer);c.set(data,0),c[n]=128,l[l.length-1]=sr(r);for(var h=0;h<o/32;h+=16){var d=t.slice();for(e=0;e<64;e++){var f;if(e<16)f=sr(l[h+e]);else{var m=Qn[e-15],v=Qn[e-2];f=Qn[e-7]+Qn[e-16]+(cr(m,7)^cr(m,18)^m>>>3)+(cr(v,17)^cr(v,19)^v>>>10)}Qn[e]=f|=0;for(var y=(cr(d[4],6)^cr(d[4],11)^cr(d[4],25))+(d[4]&d[5]^~d[4]&d[6])+d[7]+f+Zn[e],w=(cr(d[0],2)^cr(d[0],13)^cr(d[0],22))+(d[0]&d[1]^d[2]&(d[0]^d[1])),i=7;i>0;i--)d[i]=d[i-1];d[0]=y+w|0,d[4]=d[4]+y|0}for(e=0;e<8;e++)t[e]=t[e]+d[e]|0}return new Kn(new Yn(t.map((function(e){return sr(e)}))).buffer)}var lr,dr=new class{constructor(){this.base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.hexCharSet="0123456789abcdef"}uint8ViewToBase64(e){let t="";const n=this.base64CharSet,r=e.byteLength,o=r%3,c=r-o;let a,b,l,h,d;for(let i=0;i<c;i+=3)d=e[i]<<16|e[i+1]<<8|e[i+2],a=(16515072&d)>>18,b=(258048&d)>>12,l=(4032&d)>>6,h=63&d,t+=n[a]+n[b]+n[l]+n[h];return 1==o?(d=e[c],a=(252&d)>>2,b=(3&d)<<4,t+=n[a]+n[b]+"=="):2==o&&(d=e[c]<<8|e[c+1],a=(64512&d)>>10,b=(1008&d)>>4,l=(15&d)<<2,t+=n[a]+n[b]+n[l]+"="),t}base64ToArrayBuffer(e){const t=null==atob?void 0:atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++){const e=t.charCodeAt(i);r[i]=e}return this.toArrayBuffer(r)}isBuffer(e){return e instanceof ArrayBuffer||ArrayBuffer.isView(e)}toBuffer(e){if(!ArrayBuffer)throw new Error("Can't convert to Buffer: browser does not support the necessary types");if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(this.toArrayBuffer(e));throw new Error("BufferUtils.toBuffer expected an ArrayBuffer or a view onto one")}toArrayBuffer(e){if(!ArrayBuffer)throw new Error("Can't convert to ArrayBuffer: browser does not support the necessary types");if(e instanceof ArrayBuffer)return e;if(ArrayBuffer.isView(e))return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);throw new Error("BufferUtils.toArrayBuffer expected an ArrayBuffer or a view onto one")}base64Encode(e){return this.uint8ViewToBase64(this.toBuffer(e))}base64Decode(e){if(ArrayBuffer&&O.Config.atob)return this.base64ToArrayBuffer(e);throw new Error("Expected ArrayBuffer to exist and Platform.Config.atob to be configured")}hexEncode(e){return this.toBuffer(e).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}hexDecode(e){if(e.length%2!=0)throw new Error("Can't create a byte array from a hex string of odd length");const t=new Uint8Array(e.length/2);for(let i=0;i<t.length;i++)t[i]=parseInt(e.slice(2*i,2*(i+1)),16);return this.toArrayBuffer(t)}utf8Encode(e){if(O.Config.TextEncoder){const t=(new O.Config.TextEncoder).encode(e);return this.toArrayBuffer(t)}throw new Error("Expected TextEncoder to be configured")}utf8Decode(e){if(!this.isBuffer(e))throw new Error("Expected input of utf8decode to be an arraybuffer or typed array");if(TextDecoder)return(new TextDecoder).decode(e);throw new Error("Expected TextDecoder to be configured")}areBuffersEqual(e,t){if(!e||!t)return!1;const n=this.toArrayBuffer(e),r=this.toArrayBuffer(t);if(n.byteLength!=r.byteLength)return!1;const o=new Uint8Array(n),c=new Uint8Array(r);for(var i=0;i<o.length;i++)if(o[i]!=c[i])return!1;return!0}byteLength(e){return e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:-1}arrayBufferViewToBuffer(e){return this.toArrayBuffer(e)}hmacSha256(e,t){const n=function(e,data){if(e.length>64&&(e=ur(e)),e.length<64){const t=new Uint8Array(64);t.set(e,0),e=t}for(var t=new Uint8Array(64),n=new Uint8Array(64),i=0;i<64;i++)t[i]=54^e[i],n[i]=92^e[i];var r=new Uint8Array(data.length+64);r.set(t,0),r.set(data,64);var o=new Uint8Array(96);return o.set(n,0),o.set(ur(r),64),ur(o)}(this.toBuffer(t),this.toBuffer(e));return this.toArrayBuffer(n)}},fr=(e=>(e[e.REQ_SEND=0]="REQ_SEND",e[e.REQ_RECV=1]="REQ_RECV",e[e.REQ_RECV_POLL=2]="REQ_RECV_POLL",e[e.REQ_RECV_STREAM=3]="REQ_RECV_STREAM",e))(fr||{}),pr=fr;function mr(){return new I("No HTTP request plugin provided. Provide at least one of the FetchRequest or XHRRequest plugins.",400,4e4)}var gr=((lr=class{constructor(e){var t;this.checksInProgress=null,this.checkConnectivity=void 0,this.supportsAuthHeaders=!1,this.supportsLinkHeaders=!1,this.client=null!=e?e:null;const n=(null==e?void 0:e.options.connectivityCheckUrl)||Be.connectivityCheckUrl,r=null!=(t=null==e?void 0:e.options.connectivityCheckParams)?t:null,o=!(null==e?void 0:e.options.connectivityCheckUrl),c=w(w({},gr.bundledRequestImplementations),null==e?void 0:e._additionalHTTPRequestImplementations),l=c.XHRRequest,h=c.FetchRequest,d=!(!l&&!h);if(!d)throw mr();O.Config.xhrSupported&&l?(this.supportsAuthHeaders=!0,this.Request=async function(t,n,r,o,body){return new Promise((c=>{var h;const d=l.createRequest(n,r,o,body,pr.REQ_SEND,null!=(h=e&&e.options.timeouts)?h:null,this.logger,t);d.once("complete",((e,t,n,r,o)=>c({error:e,body:t,headers:n,unpacked:r,statusCode:o}))),d.exec()}))},(null==e?void 0:e.options.disableConnectivityCheck)?this.checkConnectivity=async function(){return!0}:this.checkConnectivity=async function(){var e;M.logAction(this.logger,M.LOG_MICRO,"(XHRRequest)Http.checkConnectivity()","Sending; "+n);const t=await this.doUri(ze.Get,n,null,null,r);let c=!1;var l;return c=o?!t.error&&"yes"==(null==(e=t.body)?void 0:e.replace(/\n/,"")):!t.error&&(l=t.statusCode)>=200&&l<400,M.logAction(this.logger,M.LOG_MICRO,"(XHRRequest)Http.checkConnectivity()","Result: "+c),c}):O.Config.fetchSupported&&h?(this.supportsAuthHeaders=!0,this.Request=async(t,n,r,o,body)=>h(t,null!=e?e:null,n,r,o,body),this.checkConnectivity=async function(){var e;M.logAction(this.logger,M.LOG_MICRO,"(Fetch)Http.checkConnectivity()","Sending; "+n);const t=await this.doUri(ze.Get,n,null,null,null),r=!t.error&&"yes"==(null==(e=t.body)?void 0:e.replace(/\n/,""));return M.logAction(this.logger,M.LOG_MICRO,"(Fetch)Http.checkConnectivity()","Result: "+r),r}):this.Request=async()=>({error:d?new R("no supported HTTP transports available",null,400):mr()})}get logger(){var e,t;return null!=(t=null==(e=this.client)?void 0:e.logger)?t:M.defaultLogger}async doUri(e,t,n,body,r){return this.Request?this.Request(e,t,n,r,body):{error:new R("Request invoked before assigned to",null,500)}}shouldFallback(e){const t=e.statusCode;return 408===t&&!e.code||400===t&&!e.code||t>=500&&t<=504}}).methods=[ze.Get,ze.Delete,ze.Post,ze.Put,ze.Patch],lr.methodsWithoutBody=[ze.Get,ze.Delete],lr.methodsWithBody=[ze.Post,ze.Put,ze.Patch],lr),vr=gr,yr="ablyjs-storage-test",wr=void 0!==t?t:"undefined"!=typeof window?window:self,Sr=new class{constructor(){try{wr.sessionStorage.setItem(yr,yr),wr.sessionStorage.removeItem(yr),this.sessionSupported=!0}catch(e){this.sessionSupported=!1}try{wr.localStorage.setItem(yr,yr),wr.localStorage.removeItem(yr),this.localSupported=!0}catch(e){this.localSupported=!1}}get(e){return this._get(e,!1)}getSession(e){return this._get(e,!0)}remove(e){return this._remove(e,!1)}removeSession(e){return this._remove(e,!0)}set(e,t,n){return this._set(e,t,n,!1)}setSession(e,t,n){return this._set(e,t,n,!0)}_set(e,t,n,r){const o={value:t};return n&&(o.expires=Date.now()+n),this.storageInterface(r).setItem(e,JSON.stringify(o))}_get(e,t){if(t&&!this.sessionSupported)throw new Error("Session Storage not supported");if(!t&&!this.localSupported)throw new Error("Local Storage not supported");const n=this.storageInterface(t).getItem(e);if(!n)return null;const r=JSON.parse(n);return r.expires&&r.expires<Date.now()?(this.storageInterface(t).removeItem(e),null):r.value}_remove(e,t){return this.storageInterface(t).removeItem(e)}storageInterface(e){return e?wr.sessionStorage:wr.localStorage}},_r=we(),Cr="string"==typeof EdgeRuntime;"undefined"!=typeof Window||"undefined"!=typeof WorkerGlobalScope||Cr||console.log("Warning: this distribution of Ably is intended for browsers. On nodejs, please use the 'ably' package on npm");var Or={agent:"browser",logTimestamps:!0,userAgent:_r.navigator&&_r.navigator.userAgent.toString(),currentUrl:_r.location&&_r.location.href,binaryType:"arraybuffer",WebSocket:_r.WebSocket,fetchSupported:!!_r.fetch,xhrSupported:_r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,allowComet:function(){const e=_r.location;return!_r.WebSocket||!e||!e.origin||e.origin.indexOf("http")>-1}(),useProtocolHeartbeats:!0,supportsBinary:!!_r.TextDecoder,preferBinary:!1,ArrayBuffer:_r.ArrayBuffer,atob:_r.atob,nextTick:void 0!==_r.setImmediate?_r.setImmediate.bind(_r):function(e){setTimeout(e,0)},addEventListener:_r.addEventListener,inspect:JSON.stringify,stringByteSize:function(e){return _r.TextDecoder&&(new _r.TextEncoder).encode(e).length||e.length},TextEncoder:_r.TextEncoder,TextDecoder:_r.TextDecoder,getRandomArrayBuffer:async function(e){const t=new Uint8Array(e);return _r.crypto.getRandomValues(t),t.buffer},isWebworker:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,push:{platform:"browser",formFactor:"desktop",storage:Sr}};function Ar(e){return function(e){const t=[80015,80017,80030];return!!e.code&&!Xe.isTokenErr(e)&&(!!t.includes(e.code)||e.code>=4e4&&e.code<5e4)}(e)?[cn({action:Zt.ERROR,error:e})]:[cn({action:Zt.DISCONNECTED,error:e})]}var Tr=class extends _n{constructor(e,t,n){super(e,t,n,!0),this.onAuthUpdated=e=>{this.authParams={access_token:e.token}},this.stream=!("stream"in n)||n.stream,this.sendRequest=null,this.recvRequest=null,this.pendingCallback=null,this.pendingItems=null}connect(){M.logAction(this.logger,M.LOG_MINOR,"CometTransport.connect()","starting"),_n.prototype.connect.call(this);const e=this.params,t=e.options,n=Be.getHost(t,e.host),r=Be.getPort(t),o=t.tls?"https://":"http://";this.baseUri=o+n+":"+r+"/comet/";const c=this.baseUri+"connect";M.logAction(this.logger,M.LOG_MINOR,"CometTransport.connect()","uri: "+c),de(this.auth.getAuthParams(),((e,t)=>{if(e)return void this.disconnect(e);if(this.isDisposed)return;this.authParams=t;const n=this.params.getConnectParams(t);"stream"in n&&(this.stream=n.stream),M.logAction(this.logger,M.LOG_MINOR,"CometTransport.connect()","connectParams:"+re(n));let r=!1;const o=this.recvRequest=this.createRequest(c,null,n,null,this.stream?pr.REQ_RECV_STREAM:pr.REQ_RECV);o.on("data",(data=>{this.recvRequest&&(r||(r=!0,this.emit("preconnect")),this.onData(data))})),o.on("complete",(e=>{this.recvRequest||(e=e||new I("Request cancelled",80003,400)),this.recvRequest=null,r||e||(r=!0,this.emit("preconnect")),this.onActivity(),e?e.code?this.onData(Ar(e)):this.disconnect(e):O.Config.nextTick((()=>{this.recv()}))})),o.exec()}))}requestClose(){M.logAction(this.logger,M.LOG_MINOR,"CometTransport.requestClose()"),this._requestCloseOrDisconnect(!0)}requestDisconnect(){M.logAction(this.logger,M.LOG_MINOR,"CometTransport.requestDisconnect()"),this._requestCloseOrDisconnect(!1)}_requestCloseOrDisconnect(e){const t=e?this.closeUri:this.disconnectUri;if(t){const n=this.createRequest(t,null,this.authParams,null,pr.REQ_SEND);n.on("complete",(t=>{t&&(M.logAction(this.logger,M.LOG_ERROR,"CometTransport.request"+(e?"Close()":"Disconnect()"),"request returned err = "+ae(t)),this.finish("disconnected",t))})),n.exec()}}dispose(){M.logAction(this.logger,M.LOG_MINOR,"CometTransport.dispose()",""),this.isDisposed||(this.isDisposed=!0,this.recvRequest&&(M.logAction(this.logger,M.LOG_MINOR,"CometTransport.dispose()","aborting recv request"),this.recvRequest.abort(),this.recvRequest=null),this.finish("disconnected",yn.disconnected()),O.Config.nextTick((()=>{this.emit("disposed")})))}onConnect(e){var t;if(this.isDisposed)return;const n=null==(t=e.connectionDetails)?void 0:t.connectionKey;_n.prototype.onConnect.call(this,e);const r=this.baseUri+n;M.logAction(this.logger,M.LOG_MICRO,"CometTransport.onConnect()","baseUri = "+r),this.sendUri=r+"/send",this.recvUri=r+"/recv",this.closeUri=r+"/close",this.disconnectUri=r+"/disconnect"}send(e){if(this.sendRequest)return this.pendingItems=this.pendingItems||[],void this.pendingItems.push(e);const t=this.pendingItems||[];t.push(e),this.pendingItems=null,this.sendItems(t)}sendAnyPending(){const e=this.pendingItems;e&&(this.pendingItems=null,this.sendItems(e))}sendItems(e){const t=this.sendRequest=this.createRequest(this.sendUri,null,this.authParams,this.encodeRequest(e),pr.REQ_SEND);t.on("complete",((e,data)=>{e&&M.logAction(this.logger,M.LOG_ERROR,"CometTransport.sendItems()","on complete: err = "+ae(e)),this.sendRequest=null,e?e.code?this.onData(Ar(e)):this.disconnect(e):(data&&this.onData(data),this.pendingItems&&O.Config.nextTick((()=>{this.sendRequest||this.sendAnyPending()})))})),t.exec()}recv(){if(this.recvRequest)return;if(!this.isConnected)return;const e=this.recvRequest=this.createRequest(this.recvUri,null,this.authParams,null,this.stream?pr.REQ_RECV_STREAM:pr.REQ_RECV_POLL);e.on("data",(data=>{this.onData(data)})),e.on("complete",(e=>{this.recvRequest=null,this.onActivity(),e?e.code?this.onData(Ar(e)):this.disconnect(e):O.Config.nextTick((()=>{this.recv()}))})),e.exec()}onData(e){try{const t=this.decodeResponse(e);if(t&&t.length)for(let i=0;i<t.length;i++)this.onProtocolMessage(an(t[i],this.connectionManager.realtime._RealtimePresence))}catch(e){M.logAction(this.logger,M.LOG_ERROR,"CometTransport.onData()","Unexpected exception handing channel event: "+e.stack)}}encodeRequest(e){return JSON.stringify(e)}decodeResponse(e){return"string"==typeof e?JSON.parse(e):e}};function Er(e,t){if(function(e,t){return me(J(t)).includes("x-ably-errorcode")}(0,t))return e.error&&I.fromValues(e.error)}var Pr=function(){},Mr=0,xr={},kr=class e extends Jt{constructor(e,t,n,body,r,o,c,l){super(c),(n=n||{}).rnd=ue(),this.uri=e+re(n),this.headers=t||{},this.body=body,this.method=l?l.toUpperCase():U(body)?"GET":"POST",this.requestMode=r,this.timeouts=o,this.timedOut=!1,this.requestComplete=!1,this.id=String(++Mr),xr[this.id]=this}static createRequest(t,n,r,body,o,c,l,h){const d=c||Be.TIMEOUTS;return new e(t,n,D(r),body,o,d,l,h)}complete(e,body,t,n,r){this.requestComplete||(this.requestComplete=!0,!e&&body&&this.emit("data",body),this.emit("complete",e,body,t,n,r),this.dispose())}abort(){this.dispose()}exec(){let e=this.headers;const t=this.requestMode==pr.REQ_SEND?this.timeouts.httpRequestTimeout:this.timeouts.recvTimeout,n=this.timer=setTimeout((()=>{this.timedOut=!0,o.abort()}),t),r=this.method,o=this.xhr=new XMLHttpRequest,c=e.accept;let body=this.body,l="text";c?0===c.indexOf("application/x-msgpack")&&(l="arraybuffer"):e.accept="application/json",body&&(e["content-type"]||(e["content-type"]="application/json")).indexOf("application/json")>-1&&"string"!=typeof body&&(body=JSON.stringify(body)),o.open(r,this.uri,!0),o.responseType=l,"authorization"in e&&(o.withCredentials=!0);for(const t in e)o.setRequestHeader(t,e[t]);const h=(e,t,code,n)=>{var r;let o=t+" (event type: "+e.type+")";(null==(r=null==this?void 0:this.xhr)?void 0:r.statusText)&&(o+=", current statusText is "+this.xhr.statusText),M.logAction(this.logger,M.LOG_ERROR,"Request.on"+e.type+"()",o),this.complete(new R(o,code,n))};let d,f,m;o.onerror=function(e){h(e,"XHR error occurred",null,400)},o.onabort=e=>{this.timedOut?h(e,"Request aborted due to request timeout expiring",null,408):h(e,"Request cancelled",null,400)},o.ontimeout=function(e){h(e,"Request timed out",null,408)};let v=0,y=!1;const w=()=>{clearTimeout(n),m=f<400,204!=f?d=this.requestMode==pr.REQ_RECV_STREAM&&m&&function(e){return e.getResponseHeader&&(e.getResponseHeader("transfer-encoding")||!e.getResponseHeader("content-length"))}(o):this.complete(null,null,null,null,f)},S=()=>{let t;try{const n=function(e,header){return e.getResponseHeader&&e.getResponseHeader(header)}(o,"content-type");if(n?n.indexOf("application/json")>=0:"text"==o.responseType){const e="arraybuffer"===o.responseType?O.BufferUtils.utf8Decode(o.response):String(o.responseText);t=e.length?JSON.parse(e):e,y=!0}else t=o.response;void 0!==t.response?(f=t.statusCode,m=f<400,e=t.headers,t=t.response):e=function(e){const t=e.getAllResponseHeaders().trim().split("\r\n"),n={};for(let i=0;i<t.length;i++){const e=t[i].split(":").map((e=>e.trim()));n[e[0].toLowerCase()]=e[1]}return n}(o)}catch(e){return void this.complete(new R("Malformed response body from server: "+e.message,null,400))}if(m||Array.isArray(t))return void this.complete(null,t,e,y,f);let n=Er(t,e);n||(n=new R("Error response received from server: "+f+" body was: "+O.Config.inspect(t),null,f)),this.complete(n,t,e,y,f)};function _(){const e=o.responseText,t=e.length-1;let n,r;for(;v<t&&(n=e.indexOf("\n",v))>-1;)r=e.slice(v,n),v=n+1,C(r)}const C=e=>{try{e=JSON.parse(e)}catch(e){return void this.complete(new R("Malformed response body from server: "+e.message,null,400))}this.emit("data",e)},A=()=>{_(),this.streamComplete=!0,O.Config.nextTick((()=>{this.complete()}))};o.onreadystatechange=function(){const e=o.readyState;e<3||0!==o.status&&(void 0===f&&(f=o.status,w()),3==e&&d?_():4==e&&(d?A():S()))},o.send(body)}dispose(){const e=this.xhr;if(e){e.onreadystatechange=e.onerror=e.onabort=e.ontimeout=Pr,this.xhr=null;const t=this.timer;t&&(clearTimeout(t),this.timer=null),this.requestComplete||e.abort()}delete xr[this.id]}},Ir=ln.XhrPolling,Rr={order:["xhr_polling"],bundledImplementations:{web_socket:Gn,xhr_polling:class extends Tr{constructor(e,t,n){super(e,t,n),this.shortName=Ir,n.stream=!1,this.shortName=Ir}static isAvailable(){return!(!O.Config.xhrSupported||!O.Config.allowComet)}toString(){return"XHRPollingTransport; uri="+this.baseUri+"; isConnected="+this.isConnected}createRequest(e,t,n,body,r){return kr.createRequest(e,t,n,body,r,this.timeouts,this.logger)}}}},jr={connectivityCheckUrl:"https://internet-up.ably-realtime.com/is-the-internet-up.txt",wsConnectivityUrl:"wss://ws-up.ably-realtime.com",defaultTransports:[ln.XhrPolling,ln.WebSocket]};function Dr(view,e,t){for(let i=0,n=t.length;i<n;i++){const n=t.charCodeAt(i);if(n<128)view.setUint8(e++,n>>>0&127|0);else if(n<2048)view.setUint8(e++,n>>>6&31|192),view.setUint8(e++,n>>>0&63|128);else if(n<65536)view.setUint8(e++,n>>>12&15|224),view.setUint8(e++,n>>>6&63|128),view.setUint8(e++,n>>>0&63|128);else{if(!(n<1114112))throw new Error("bad codepoint "+n);view.setUint8(e++,n>>>18&7|240),view.setUint8(e++,n>>>12&63|128),view.setUint8(e++,n>>>6&63|128),view.setUint8(e++,n>>>0&63|128)}}}function Nr(view,e,t){let n="";for(let i=e,r=e+t;i<r;i++){const e=view.getUint8(i);if(0!=(128&e))if(192!=(224&e))if(224!=(240&e)){if(240!=(248&e))throw new Error("Invalid byte "+e.toString(16));n+=String.fromCharCode((7&e)<<18|(63&view.getUint8(++i))<<12|(63&view.getUint8(++i))<<6|(63&view.getUint8(++i))<<0)}else n+=String.fromCharCode((15&e)<<12|(63&view.getUint8(++i))<<6|(63&view.getUint8(++i))<<0);else n+=String.fromCharCode((15&e)<<6|63&view.getUint8(++i));else n+=String.fromCharCode(e)}return n}function Lr(e){let t=0;for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);if(n<128)t+=1;else if(n<2048)t+=2;else if(n<65536)t+=3;else{if(!(n<1114112))throw new Error("bad codepoint "+n);t+=4}}return t}var Br=4294967296,Ur=1/Br;function Fr(e,t){return Object.keys(e).filter((function(n){const r=e[n];return!(t&&null==r||"function"==typeof r&&!r.toJSON)}))}function zr(e,view,t,n){const r=typeof e;if("string"==typeof e){const n=Lr(e);if(n<32)return view.setUint8(t,160|n),Dr(view,t+1,e),1+n;if(n<256)return view.setUint8(t,217),view.setUint8(t+1,n),Dr(view,t+2,e),2+n;if(n<65536)return view.setUint8(t,218),view.setUint16(t+1,n),Dr(view,t+3,e),3+n;if(n<4294967296)return view.setUint8(t,219),view.setUint32(t+1,n),Dr(view,t+5,e),5+n}if(ArrayBuffer.isView&&ArrayBuffer.isView(e)&&(e=e.buffer),e instanceof ArrayBuffer){const n=e.byteLength;if(n<256)return view.setUint8(t,196),view.setUint8(t+1,n),new Uint8Array(view.buffer).set(new Uint8Array(e),t+2),2+n;if(n<65536)return view.setUint8(t,197),view.setUint16(t+1,n),new Uint8Array(view.buffer).set(new Uint8Array(e),t+3),3+n;if(n<4294967296)return view.setUint8(t,198),view.setUint32(t+1,n),new Uint8Array(view.buffer).set(new Uint8Array(e),t+5),5+n}if("number"==typeof e){if(Math.floor(e)!==e)return view.setUint8(t,203),view.setFloat64(t+1,e),9;if(e>=0){if(e<128)return view.setUint8(t,e),1;if(e<256)return view.setUint8(t,204),view.setUint8(t+1,e),2;if(e<65536)return view.setUint8(t,205),view.setUint16(t+1,e),3;if(e<4294967296)return view.setUint8(t,206),view.setUint32(t+1,e),5;if(e<0x10000000000000000)return view.setUint8(t,207),function(view,e,t){t<0x10000000000000000?(view.setUint32(e,Math.floor(t*Ur)),view.setInt32(e+4,-1&t)):(view.setUint32(e,4294967295),view.setUint32(e+4,4294967295))}(view,t+1,e),9;throw new Error("Number too big 0x"+e.toString(16))}if(e>=-32)return view.setInt8(t,e),1;if(e>=-128)return view.setUint8(t,208),view.setInt8(t+1,e),2;if(e>=-32768)return view.setUint8(t,209),view.setInt16(t+1,e),3;if(e>=-2147483648)return view.setUint8(t,210),view.setInt32(t+1,e),5;if(e>=-0x8000000000000000)return view.setUint8(t,211),function(view,e,t){t<0x8000000000000000?(view.setInt32(e,Math.floor(t*Ur)),view.setInt32(e+4,-1&t)):(view.setUint32(e,2147483647),view.setUint32(e+4,2147483647))}(view,t+1,e),9;throw new Error("Number too small -0x"+(-e).toString(16).substr(1))}if("undefined"===r)return n?0:(view.setUint8(t,212),view.setUint8(t+1,0),view.setUint8(t+2,0),3);if(null===e)return n?0:(view.setUint8(t,192),1);if("boolean"===r)return view.setUint8(t,e?195:194),1;if("function"==typeof e.toJSON)return zr(e.toJSON(),view,t,n);if("object"===r){let r,o,c=0;const l=Array.isArray(e);if(l?r=e.length:(o=Fr(e,n),r=o.length),r<16?(view.setUint8(t,r|(l?144:128)),c=1):r<65536?(view.setUint8(t,l?220:222),view.setUint16(t+1,r),c=3):r<4294967296&&(view.setUint8(t,l?221:223),view.setUint32(t+1,r),c=5),l)for(let i=0;i<r;i++)c+=zr(e[i],view,t+c,n);else if(o)for(let i=0;i<r;i++){const r=o[i];c+=zr(r,view,t+c),c+=zr(e[r],view,t+c,n)}return c}if("function"===r)return 0;throw new Error("Unknown type "+r)}function $r(e,t){const n=typeof e;if("string"===n){const t=Lr(e);if(t<32)return 1+t;if(t<256)return 2+t;if(t<65536)return 3+t;if(t<4294967296)return 5+t}if(ArrayBuffer.isView&&ArrayBuffer.isView(e)&&(e=e.buffer),e instanceof ArrayBuffer){const t=e.byteLength;if(t<256)return 2+t;if(t<65536)return 3+t;if(t<4294967296)return 5+t}if("number"==typeof e){if(Math.floor(e)!==e)return 9;if(e>=0){if(e<128)return 1;if(e<256)return 2;if(e<65536)return 3;if(e<4294967296)return 5;if(e<0x10000000000000000)return 9;throw new Error("Number too big 0x"+e.toString(16))}if(e>=-32)return 1;if(e>=-128)return 2;if(e>=-32768)return 3;if(e>=-2147483648)return 5;if(e>=-0x8000000000000000)return 9;throw new Error("Number too small -0x"+e.toString(16).substr(1))}if("boolean"===n)return 1;if(null===e)return t?0:1;if(void 0===e)return t?0:3;if("function"==typeof e.toJSON)return $r(e.toJSON(),t);if("object"===n){let n,r=0;if(Array.isArray(e)){n=e.length;for(let i=0;i<n;i++)r+=$r(e[i],t)}else{const o=Fr(e,t);n=o.length;for(let i=0;i<n;i++){const n=o[i];r+=$r(n)+$r(e[n],t)}}if(n<16)return 1+r;if(n<65536)return 3+r;if(n<4294967296)return 5+r;throw new Error("Array or object too long 0x"+n.toString(16))}if("function"===n)return 0;throw new Error("Unknown type "+n)}var Hr,Gr={encode:function(e,t){const n=$r(e,t);if(0===n)return;const r=new ArrayBuffer(n);return zr(e,new DataView(r),0,t),r},decode:function(e){const view=new DataView(e),t=new class{constructor(view,e){this.map=e=>{const t={};for(let i=0;i<e;i++)t[this.parse()]=this.parse();return t},this.bin=e=>{const t=new ArrayBuffer(e);return new Uint8Array(t).set(new Uint8Array(this.view.buffer,this.offset,e),0),this.offset+=e,t},this.buf=this.bin,this.str=e=>{const t=Nr(this.view,this.offset,e);return this.offset+=e,t},this.array=e=>{const t=new Array(e);for(let i=0;i<e;i++)t[i]=this.parse();return t},this.ext=e=>(this.offset+=e,{type:this.view.getInt8(this.offset),data:this.buf(e)}),this.parse=()=>{const e=this.view.getUint8(this.offset);let t,n;if(0==(128&e))return this.offset++,e;if(128==(240&e))return n=15&e,this.offset++,this.map(n);if(144==(240&e))return n=15&e,this.offset++,this.array(n);if(160==(224&e))return n=31&e,this.offset++,this.str(n);if(224==(224&e))return t=this.view.getInt8(this.offset),this.offset++,t;switch(e){case 192:return this.offset++,null;case 193:return void this.offset++;case 194:return this.offset++,!1;case 195:return this.offset++,!0;case 196:return n=this.view.getUint8(this.offset+1),this.offset+=2,this.bin(n);case 197:return n=this.view.getUint16(this.offset+1),this.offset+=3,this.bin(n);case 198:return n=this.view.getUint32(this.offset+1),this.offset+=5,this.bin(n);case 199:return n=this.view.getUint8(this.offset+1),this.offset+=2,this.ext(n);case 200:return n=this.view.getUint16(this.offset+1),this.offset+=3,this.ext(n);case 201:return n=this.view.getUint32(this.offset+1),this.offset+=5,this.ext(n);case 202:return t=this.view.getFloat32(this.offset+1),this.offset+=5,t;case 203:return t=this.view.getFloat64(this.offset+1),this.offset+=9,t;case 204:return t=this.view.getUint8(this.offset+1),this.offset+=2,t;case 205:return t=this.view.getUint16(this.offset+1),this.offset+=3,t;case 206:return t=this.view.getUint32(this.offset+1),this.offset+=5,t;case 207:return t=function(view,e){return e=e||0,view.getUint32(e)*Br+view.getUint32(e+4)}(this.view,this.offset+1),this.offset+=9,t;case 208:return t=this.view.getInt8(this.offset+1),this.offset+=2,t;case 209:return t=this.view.getInt16(this.offset+1),this.offset+=3,t;case 210:return t=this.view.getInt32(this.offset+1),this.offset+=5,t;case 211:return t=function(view,e){return e=e||0,view.getInt32(e)*Br+view.getUint32(e+4)}(this.view,this.offset+1),this.offset+=9,t;case 212:return n=1,this.offset++,this.ext(n);case 213:return n=2,this.offset++,this.ext(n);case 214:return n=4,this.offset++,this.ext(n);case 215:return n=8,this.offset++,this.ext(n);case 216:return n=16,this.offset++,this.ext(n);case 217:return n=this.view.getUint8(this.offset+1),this.offset+=2,this.str(n);case 218:return n=this.view.getUint16(this.offset+1),this.offset+=3,this.str(n);case 219:return n=this.view.getUint32(this.offset+1),this.offset+=5,this.str(n);case 220:return n=this.view.getUint16(this.offset+1),this.offset+=3,this.array(n);case 221:return n=this.view.getUint32(this.offset+1),this.offset+=5,this.array(n);case 222:return n=this.view.getUint16(this.offset+1),this.offset+=3,this.map(n);case 223:return n=this.view.getUint32(this.offset+1),this.offset+=5,this.map(n)}throw new Error("Unknown type 0x"+e.toString(16))},this.offset=e||0,this.view=view}}(view),n=t.parse();if(t.offset!==e.byteLength)throw new Error(e.byteLength-t.offset+" trailing bytes");return n},inspect:function(e){if(void 0===e)return"undefined";let view,t;if(e instanceof ArrayBuffer?(t="ArrayBuffer",view=new DataView(e)):e instanceof DataView&&(t="DataView",view=e),!view)return JSON.stringify(e);const n=[];for(let i=0;i<e.byteLength;i++){if(i>20){n.push("...");break}let e=view.getUint8(i).toString(16);1===e.length&&(e="0"+e),n.push(e)}return"<"+t+" "+n.join(" ")+">"},utf8Write:Dr,utf8Read:Nr,utf8ByteCount:Lr},Vr={XHRRequest:kr,FetchRequest:async function(e,t,n,r,o,body){const c=new Headers(r||{}),l=e?e.toUpperCase():U(body)?"GET":"POST",h=new AbortController;let d;const f=new Promise((e=>{d=setTimeout((()=>{h.abort(),e({error:new R("Request timed out",null,408)})}),t?t.options.timeouts.httpRequestTimeout:Be.TIMEOUTS.httpRequestTimeout)})),m={method:l,headers:c,body:body,signal:h.signal};O.Config.isWebworker||(m.credentials=c.has("authorization")?"include":"same-origin");const v=(async()=>{try{const e=await we().fetch(n+"?"+new URLSearchParams(o||{}),m);if(clearTimeout(d),204==e.status)return{error:null,statusCode:e.status};const t=e.headers.get("Content-Type");let r;r=t&&t.indexOf("application/x-msgpack")>-1?await e.arrayBuffer():t&&t.indexOf("application/json")>-1?await e.json():await e.text();const c=!!t&&-1===t.indexOf("application/x-msgpack"),l=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(e.headers);if(e.ok)return{error:null,body:r,headers:l,unpacked:c,statusCode:e.status};{const t=function(e,t){if(function(e,t){return!!t.get("x-ably-errorcode")}(0,t))return e.error&&I.fromValues(e.error)}(r,e.headers)||new R("Error response received from server: "+e.status+" body was: "+O.Config.inspect(r),null,e.status);return{error:t,body:r,headers:l,unpacked:c,statusCode:e.status}}}catch(e){return clearTimeout(d),{error:e}}})();return Promise.race([f,v])}},Wr=function(e,t){class n{constructor(e,t,n,r){this.algorithm=e,this.keyLength=t,this.mode=n,this.key=r}}class r{static getDefaultParams(e){var r;if(!e.key)throw new Error("Crypto.getDefaultParams: a key is required");r="string"==typeof e.key?t.toArrayBuffer(t.base64Decode(e.key.replace("_","/").replace("-","+"))):e.key instanceof ArrayBuffer?e.key:t.toArrayBuffer(e.key);var o=e.algorithm||"aes",c=8*r.byteLength,l=e.mode||"cbc",h=new n(o,c,l,r);if(e.keyLength&&e.keyLength!==h.keyLength)throw new Error("Crypto.getDefaultParams: a keyLength of "+e.keyLength+" was specified, but the key actually has length "+h.keyLength);return function(e){if("aes"===e.algorithm&&"cbc"===e.mode){if(128===e.keyLength||256===e.keyLength)return;throw new Error("Unsupported key length "+e.keyLength+" for aes-cbc encryption. Encryption key must be 128 or 256 bits (16 or 32 ASCII characters)")}}(h),h}static async generateRandomKey(t){try{return e.getRandomArrayBuffer((t||256)/8)}catch(e){throw new I("Failed to generate random key: "+e.message,400,5e4,e)}}static getCipher(e,t){var r,c=function(e){return e instanceof n}(e)?e:this.getDefaultParams(e);return{cipherParams:c,cipher:new o(c,null!=(r=e.iv)?r:null,t)}}}r.CipherParams=n;class o{constructor(e,n,r){if(this.logger=r,!crypto.subtle)throw isSecureContext?new Error("Crypto operations are not possible since the browser’s SubtleCrypto class is unavailable (reason unknown)."):new Error("Crypto operations are is not possible since the current environment is a non-secure context and hence the browser’s SubtleCrypto class is not available.");this.algorithm=e.algorithm+"-"+String(e.keyLength)+"-"+e.mode,this.webCryptoAlgorithm=e.algorithm+"-"+e.mode,this.key=t.toArrayBuffer(e.key),this.iv=n?t.toArrayBuffer(n):null}concat(e,n){const output=new ArrayBuffer(e.byteLength+n.byteLength),r=new DataView(output),o=new DataView(t.toArrayBuffer(e));for(let i=0;i<o.byteLength;i++)r.setInt8(i,o.getInt8(i));const c=new DataView(t.toArrayBuffer(n));for(let i=0;i<c.byteLength;i++)r.setInt8(o.byteLength+i,c.getInt8(i));return output}async encrypt(e){M.logAction(this.logger,M.LOG_MICRO,"CBCCipher.encrypt()","");const t=await this.getIv(),n=await crypto.subtle.importKey("raw",this.key,this.webCryptoAlgorithm,!1,["encrypt"]),r=await crypto.subtle.encrypt({name:this.webCryptoAlgorithm,iv:t},n,e);return this.concat(t,r)}async decrypt(e){M.logAction(this.logger,M.LOG_MICRO,"CBCCipher.decrypt()","");const n=t.toArrayBuffer(e),r=n.slice(0,16),o=n.slice(16),c=await crypto.subtle.importKey("raw",this.key,this.webCryptoAlgorithm,!1,["decrypt"]);return crypto.subtle.decrypt({name:this.webCryptoAlgorithm,iv:r},c,o)}async getIv(){if(this.iv){var n=this.iv;return this.iv=null,n}const r=await e.getRandomArrayBuffer(16);return t.toArrayBuffer(r)}}return r}(Or,dr);O.Crypto=Wr,O.BufferUtils=dr,O.Http=vr,O.Config=Or,O.Transports=Rr,O.WebStorage=Sr;for(const e of[Yt,qn])e.Crypto=Wr,e._MsgPack=Gr;vr.bundledRequestImplementations=Vr,M.initLogHandlers(),O.Defaults=(Hr=jr,Object.assign(Me,Hr)),O.Config.agent&&(O.Defaults.agent+=" "+O.Config.agent);var qr={ErrorInfo:I,Rest:Yt,Realtime:qn,msgpack:Gr};return"object"==typeof r.exports&&"object"==typeof n&&(r.exports=((e,t,n,desc)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of Object.getOwnPropertyNames(t))Object.prototype.hasOwnProperty.call(e,r)||r===n||Object.defineProperty(e,r,{get:()=>t[r],enumerable:!(desc=Object.getOwnPropertyDescriptor(t,r))||desc.enumerable});return e})(r.exports,n)),r.exports},e.exports=n()}).call(this,n(67))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.debug=t.parseScalabilityMode=t.detectDevice=t.Device=t.version=t.types=void 0;const h=l(n(495));t.debug=h.default;const d=n(993);Object.defineProperty(t,"Device",{enumerable:!0,get:function(){return d.Device}}),Object.defineProperty(t,"detectDevice",{enumerable:!0,get:function(){return d.detectDevice}});const f=c(n(1656));t.types=f,t.version="3.7.0";var m=n(310);Object.defineProperty(t,"parseScalabilityMode",{enumerable:!0,get:function(){return m.parse}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,c="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",l=null,h=function(e){return null!==l||(l=new Promise((function(t,n){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(c),window.Stripe)t(window.Stripe);else try{var script=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),i=0;i<e.length;i++){var script=e[i];if(o.test(script.src))return script}return null}();script&&e?console.warn(c):script||(script=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",script=document.createElement("script");script.src="".concat(r).concat(t);var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(script),script}(e)),script.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),script.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))),l},d=Promise.resolve().then((function(){return h(null)})),f=!1;d.catch((function(e){f||console.warn(e)}));var m=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f=!0;var r=Date.now();return d.then((function(e){return function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})}(r,n),r}(e,t,r)}))}},function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=0)}([function(e,t,n){"use strict";n.r(t);var r=function e(t,n){var r,o,i,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=window,o=document,r.hj=r.hj||function(){(r.hj.q=r.hj.q||[]).push(arguments)},r._hjSettings={hjid:t,hjsv:n},i=o.getElementsByTagName("head")[0],(u=o.createElement("script")).async=1,u.src="https://static.hotjar.com/c/hotjar-"+r._hjSettings.hjid+".js?sv="+r._hjSettings.hjsv,i.appendChild(u)};function o(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 i=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,r=[{key:"options",value:function(e){if(function(){var t=new RegExp(/^([0-9])*\d$/g);if(e.id){if(!1===t.test(e.id))throw new Error("Invalid Hotjar Tracking ID");if("string"!=typeof e.id)throw new Error("Hotjar Tracking ID expects a string");return!0}throw new Error("Hotjar Tracking ID is not defined")}()&&function(){if("boolean"!=typeof e.isProduction&&e.isProduction)throw new Error("isProduction expects a boolean");return!0}()&&function(){if("number"!=typeof e.snippetVersion&&e.snippetVersion)throw new Error("snippetVersion expects a number");return!0}())return!0}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();function u(e){try{var t=e.id,n=e.snippetVersion,o=void 0===n?6:n,u=e.isProduction,a=void 0===u||u;return i.options(e)&&a?(new r(t,o),window.hj):(console.log("%c 🔥 HotJar Tracking Disabled 🔥","color: #fff; background: #35495d; font-size: 14px; border-radius: 5px; padding: 10px 5px; margin: 20px 0;"),!1)}catch(e){return console.error(e),!1}}t.default={install:function(e,t){"2"===e.version[0]?(e.prototype.$hj=u(t),e.prototype.$hjOptions=t):u(t)}}}])},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=!1;const o={init:function(e,t,n,o){!function(){if("undefined"==typeof window)throw new Error("product-fruits package can run only in the browser environment. If you use server-side-generation, please update your code to import this package only in the browser.");!function(e,t,u){e.$productFruits=e.$productFruits||[],e.productFruits=e.productFruits||{},e.productFruits.scrV="2";let a=t.getElementsByTagName("head")[0],n=t.createElement("script");n.async=1,n.src="https://app.productfruits.com/static/script.js",a.appendChild(n)}(window,document)}(),window.$productFruits.push(["init",e,t,n,o]),r=!0},safeExec:function(e){if("function"!=typeof e)throw new Error("You have to pass a callback to safeExec");if(window.productFruitsIsReady)e(window.$productFruits);else{const t=()=>{e(window.$productFruits)};window.addEventListener("productfruits_ready",t,{once:!0})}}}},function(e,t,n){"use strict";var r=n(2),o=(n(15),n(5),n(60),n(1)),c=n(19),l=window.__NUXT__;function h(){if(!this._hydrated)return this.$fetch()}function d(){if((e=this).$vnode&&e.$vnode.elm&&e.$vnode.elm.dataset&&e.$vnode.elm.dataset.fetchKey){var e;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var t in data)o.a.set(this.$data,t,data[t])}}function f(){var e=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete e._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,t=null,n=Date.now(),e.prev=6,e.next=9,this.$options.fetch.call(this);case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(6),t=Object(c.p)(e.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){e.next=19;break}return e.next=19,new Promise((function(e){return setTimeout(e,r)}));case 19:this.$fetchState.error=t,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return e.stop()}}),e,this,[[6,11]])})))).apply(this,arguments)}t.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=f.bind(this),Object(c.a)(this,"created",d),Object(c.a)(this,"beforeMount",h))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ie}));var r=!0,o=!1,c=(n(6),n(7),n(10),n(11),n(154),n(21)),l=n(0),h=n(2),d=n(52),f=n(53),m=n(72),v=n(104),y=n(31),w=n(73),S=(n(15),n(12),n(192),n(9),n(5),n(293),n(92),n(8),n(525)),_=(n(989),n(990),n(991),function(){return Object(f.a)((function e(){var t,n;if(Object(d.a)(this,e),this[Symbol.toStringTag]=Promise.prototype[Symbol.toStringTag],this._promise=new Promise((function(e,r){t=e,n=r})),!t||!n)throw Error("error in Deferred initialization");this._resolve=t,this._reject=n}),[{key:"resolve",value:function(e){var t;null===(t=this._resolve)||void 0===t||t.call(this,e)}},{key:"reject",value:function(e){var t;null===(t=this._reject)||void 0===t||t.call(this,e)}},{key:"catch",value:function(e){return this._promise.catch(e)}},{key:"finally",value:function(e){return this._promise.finally(e)}},{key:"then",value:function(e,t){return this._promise.then(e,t)}}])}()),C=function(){return Object(f.a)((function e(){Object(d.a)(this,e)}),[{key:"joinIfNeeded",value:function(){}},{key:"on",value:function(){}},{key:"release",value:function(){}},{key:"_routerRtpCapabilities",get:function(){}}])}(),O=(n(49),n(94),n(66),n(54),n(24),n(34),n(50),n(33),n(36),n(22),n(60),function(){function e(t){Object(d.a)(this,e),this.wrapped=t,this[Symbol.toStringTag]="ObservablePromise",this._pending=!0,this._fulfilled=!1,this._rejected=!1,this._cancelled=!1}return Object(f.a)(e,[{key:"pending",get:function(){return this._pending}},{key:"fulfilled",get:function(){return this._fulfilled}},{key:"rejected",get:function(){return this._rejected}},{key:"catch",value:function(e){return this._cancelled?Promise.reject():(this._pending=!1,this._rejected=!0,this._fulfilled=!1,this.wrapped.catch(e))}},{key:"finally",value:function(e){return this._cancelled?Promise.reject():this.wrapped.finally(e)}},{key:"then",value:function(e,t){return this._cancelled?Promise.reject():(this._pending=!1,this._rejected=!1,this._fulfilled=!0,this.wrapped.then(e,t))}},{key:"cancel",value:function(){this._cancelled=!0,this._pending=!1,this._rejected=!0,this._fulfilled=!1}}],[{key:"of",value:function(t){return new e(t)}}])}());var A=function(e){function t(){var e,n,r,o;return Object(d.a)(this,t),n=this,r=t,o=arguments,r=Object(y.a)(r),(e=Object(m.a)(n,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(r,o||[],Object(y.a)(n).constructor):r.apply(n,o))).debouncedEmit=void 0,e}return Object(w.a)(t,e),Object(f.a)(t,[{key:"emit",value:function(e){for(var n,r=arguments.length,o=new Array(r>1?r-1:0),c=1;c<r;c++)o[c-1]=arguments[c];return(n=Object(v.a)(Object(y.a)(t.prototype),"emit",this)).call.apply(n,[this,e].concat(o))}},{key:"emitIfChanged",value:function(e){var n,r,o,c,l=this;void 0===this.debouncedEmit&&(this.debouncedEmit=(n=function(e){for(var n,r=arguments.length,o=new Array(r>1?r-1:0),c=1;c<r;c++)o[c-1]=arguments[c];return(n=Object(v.a)(Object(y.a)(t.prototype),"emit",l)).call.apply(n,[l,e].concat(o))},c=!1,function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];return c&&function(a,b){for(var i=0;i<a.length;i++)if(a[i]!==b[i])return!1;return!0}(t,r)||(r=t,c=!0,o=n.apply(void 0,t)),o}));for(var h=arguments.length,d=new Array(h>1?h-1:0),f=1;f<h;f++)d[f-1]=arguments[f];return this.debouncedEmit.apply(this,[e].concat(d))}},{key:"on",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"on",this).call(this,e,n)}},{key:"addListener",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"addListener",this).call(this,e,n)}},{key:"once",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"once",this).call(this,e,n)}},{key:"removeListener",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"removeListener",this).call(this,e,n)}},{key:"off",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"off",this).call(this,e,n)}},{key:"removeAllListeners",value:function(e){return Object(v.a)(Object(y.a)(t.prototype),"removeAllListeners",this).call(this,e)}},{key:"setMaxListeners",value:function(e){return Object(v.a)(Object(y.a)(t.prototype),"setMaxListeners",this).call(this,e)}},{key:"getMaxListeners",value:function(){return Object(v.a)(Object(y.a)(t.prototype),"getMaxListeners",this).call(this)}},{key:"listeners",value:function(e){return Object(v.a)(Object(y.a)(t.prototype),"listeners",this).call(this,e)}},{key:"rawListeners",value:function(e){return Object(v.a)(Object(y.a)(t.prototype),"rawListeners",this).call(this,e)}},{key:"listenerCount",value:function(e){return Object(v.a)(Object(y.a)(t.prototype),"listenerCount",this).call(this,e)}},{key:"prependListener",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"prependListener",this).call(this,e,n)}},{key:"prependOnceListener",value:function(e,n){return Object(v.a)(Object(y.a)(t.prototype),"prependOnceListener",this).call(this,e,n)}},{key:"eventNames",value:function(){return Object(v.a)(Object(y.a)(t.prototype),"eventNames",this).call(this)}}])}(n(183).EventEmitter);function T(e,t,n){var r;return e.forEach((function(e){e.id!==n||e.type!==t||(r=e)})),r}function E(e,t){var n=[];return e.forEach((function(e){e.type!==t||n.push(e)})),n}function P(e){return function(e,t,n){var r;return e.forEach((function(e){n(e)&&e.type===t&&(r=e)})),r}(e,"candidate-pair",(function(e){return!0===e.nominated}))}function M(e){return"udp"===e.relayProtocol?"turn_udp":"tcp"===e.relayProtocol?"turn_tcp":"tls"===e.relayProtocol?"turn_tls":"udp"===e.protocol?"udp":"tcp"===e.protocol?"tcp":"unknown"}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return k(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 k(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function I(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function R(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?I(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):I(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var j=function(e){function t(e,n){var r,o,c,l;return Object(d.a)(this,t),o=this,c=t,c=Object(y.a)(c),(r=Object(m.a)(o,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(c,l||[],Object(y.a)(o).constructor):c.apply(o,l))).session=e,r.transports=n,r.producers={},r.vhsEventCallback=r.handleVhsEvent.bind(r),r.session.signaling.on("VhsEvent",r.vhsEventCallback),r}return Object(w.a)(t,e),Object(f.a)(t,[{key:"handleVhsEvent",value:function(e,t){console.log("[vhs-lib] Producer VHS event",e,t)}},{key:"pauseInternal",value:function(e,t){var n=this;if(e in this.producers&&(this.producers[e].fulfilled||this.producers[e].pending)){var r=this.producers[e];r.cancel(),this.producers[e]=O.of(r.wrapped.then(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t?r.pause():r.resume(),e.next=3,n.transports().pauseProducer(r,t);case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))}}},{key:"publish",value:function(e,track,t){var n=this;if(e in this.producers&&(this.producers[e].fulfilled||this.producers[e].pending)){console.log("[vhs-lib] replacing ".concat(e));var r=this.producers[e];r.cancel(),this.producers[e]=O.of(r.wrapped.then(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(r){var o,c,l,h,d,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.replaceTrack({track:track});case 2:if(!(null==t?void 0:t.encodings)){e.next=12;break}if(!(null==(d=null===(o=r.rtpSender)||void 0===o?void 0:o.getParameters())?void 0:d.encodings)||d.encodings.length!==t.encodings.length){e.next=11;break}for("firefox"===(null===(c=n.session.signaling.platformInfos.browserName)||void 0===c?void 0:c.toLowerCase())&&(t.encodings=t.encodings.reverse()),i=0;i<d.encodings.length;i++)d.encodings[i]=R(R({},d.encodings[i]),t.encodings[i]);return e.next=9,null===(l=r.rtpSender)||void 0===l?void 0:l.setParameters(d);case 9:e.next=12;break;case 11:console.warn("[vhs-lib] cannot apply the new encodings: ".concat(null!==(h=null==d?void 0:d.encodings.length)&&void 0!==h?h:0," current encodings to update but ").concat(t.encodings.length," were provided"));case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))}else{console.log("[vhs-lib] new publisher ".concat(e));var o,c=R({track:track,appData:{mediaTag:e}},t),l={},d=this.transports().createProducer(c).then((function(t){return t.observer.on("trackended",(function(){n.emit("trackEnded",e)})),"video"===track.kind&&(t.on("@close",(function(){return window.clearInterval(o)})),o=window.setInterval(function(t){return Object(h.a)(regeneratorRuntime.mark((function r(){var o,c,h,d,f,m,v;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.getStats();case 2:o=r.sent,c=E(o,"outbound-rtp"),h=c.map((function(e){var t={ssrc:e.ssrc,w:e.frameWidth,h:e.frameHeight};if(e.rid&&(t.rid=e.rid),e.framesPerSecond)t.fps=e.framesPerSecond;else if("number"==typeof e.framesEncoded){if(e.ssrc in l){var n=l[e.ssrc],r=n.lastFramesEncoded,o=n.lastTimestamp;t.fps=Math.round(1e3*(e.framesEncoded-r)/(e.timestamp-o))}l[e.ssrc]={lastFramesEncoded:e.framesEncoded,lastTimestamp:e.timestamp}}return e.qualityLimitationReason&&(t.limit=e.qualityLimitationReason),t})),f=x(h),r.prev=6,f.s();case 8:if((m=f.n()).done){r.next=16;break}if(void 0===(v=m.value).limit){r.next=14;break}if(d=v.limit,"none"===v.limit){r.next=14;break}return r.abrupt("break",16);case 14:r.next=8;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(6),f.e(r.t0);case 21:return r.prev=21,f.f(),r.finish(21);case 24:n.emitIfChanged("performanceIssue",e,d),n.emit("videoStats",e,h);case 26:case"end":return r.stop()}}),r,null,[[6,18,21,24]])})))}(t),5e3)),t}));this.producers[e]=O.of(d)}}},{key:"pause",value:function(e){this.pauseInternal(e,!0)}},{key:"resume",value:function(e){this.pauseInternal(e,!1)}},{key:"stop",value:function(e){var t=this;if(e in this.producers&&(this.producers[e].fulfilled||this.producers[e].pending)){var n=this.producers[e];n.cancel(),n.wrapped.then(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.transports().closeProducer(n);case 2:return e.abrupt("return",n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}delete this.producers[e]}},{key:"release",value:function(){var e=this;this.session.signaling.off("VhsEvent",this.vhsEventCallback);var t=function(t){e.producers[t].then((function(p){p.close(),e.emit("publishEnded",t,p.track)}))};for(var n in this.producers)t(n)}}])}(A);function D(e,t){return"".concat(e,":").concat(t)}var N=function(){return Object(f.a)((function e(t,n,r){Object(d.a)(this,e),this.susbscriberName=t,this.session=n,this.sessionInternals=r,this.subscriptions={},this.vhsEventCallback=this.handleVhsEvent.bind(this),this.session.signaling.on("VhsEvent",this.vhsEventCallback)}),[{key:"subscribe",value:function(e,t,n){var r=D(e,t);if(r in this.subscriptions)return this.subscriptions[r].subscribers++,this.subscriptions[r].subscription;var o=new L(this,e,t,n);return this.subscriptions[r]={subscribers:1,subscription:o},setTimeout((function(){return o.start()})),o}},{key:"unsubscribe",value:function(e,t){var n=D(e,t);if(n in this.subscriptions){var r=this.subscriptions[n];r.subscribers<=1?(r.subscription.destroy(),delete this.subscriptions[n]):r.subscribers--}else console.debug("[vhs-lib] could not find any prior subscription to ".concat(n))}},{key:"handleVhsEvent",value:function(e,t){var n;if("PeerEvent"===e)Object.entries(this.subscriptions).filter((function(e){return Object(c.a)(e,1)[0].startsWith(t.peerId)})).forEach((function(n){Object(c.a)(n,2)[1].subscription.handleVhsEvent(e,t)}));else{var r=t.mediaTag,o=D(t.peerId,r),l=null===(n=this.subscriptions[o])||void 0===n?void 0:n.subscription;l&&l.handleVhsEvent(e,t)}}},{key:"closeAllSubscriptions",value:function(){Object.entries(this.subscriptions).forEach((function(e){var t=Object(c.a)(e,2)[1].subscription;"established"===t.consumerState.state&&t.emit("trackDestroyed",t.consumerState.consumer.track,o),t.release()}))}},{key:"release",value:function(){this.closeAllSubscriptions(),Object.entries(this.subscriptions).forEach((function(e){Object(c.a)(e,2)[1].subscription.removeAllListeners()})),this.session.signaling.off("VhsEvent",this.vhsEventCallback),this.session.releaseSubscriber(this.susbscriberName)}}])}(),L=function(e){function t(e,n,r,o){var c,l,h,f,v;return Object(d.a)(this,t),h=this,f=t,f=Object(y.a)(f),(c=Object(m.a)(h,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(f,v||[],Object(y.a)(h).constructor):f.apply(h,v))).subscriber=e,c.peerId=n,c.mediaTag=r,c.wantPaused=!1,c._producerPaused=!0,c.consumerState={state:"init"},c.wantPaused=null!==(l=null==o?void 0:o.startPaused)&&void 0!==l&&l,c.wantVideoLayer=null==o?void 0:o.startVideoLayer,c}return Object(w.a)(t,e),Object(f.a)(t,[{key:"emit",value:function(e){for(var n,r,o=arguments.length,c=new Array(o>1?o-1:0),l=1;l<o;l++)c[l-1]=arguments[l];return(n=console).debug.apply(n,["[vhs-lib] >>> TrackSubscription(".concat(this.peerId,":").concat(this.mediaTag," emit ").concat(e)].concat(c)),(r=Object(v.a)(Object(y.a)(t.prototype),"emit",this)).call.apply(r,[this,e].concat(c))}},{key:"reset",value:(l=Object(h.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("established"!==this.consumerState.state){e.next=5;break}return t=this.consumerState.consumer,this.consumerState={state:"init"},e.next=5,this.subscriber.sessionInternals().closeConsumer(t);case 5:this.consumerState={state:"init"},this._producerPaused=!0;case 7:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"fetch",value:(c=Object(h.a)(regeneratorRuntime.mark((function e(t){var n,r,o,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("init"===this.consumerState.state){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,this.consumerState={state:"pending"},console.log("[vhs-lib] fetching track ".concat(this.peerId,":").concat(this.mediaTag,"...")),e.next=7,this.subscriber.sessionInternals().createConsumer(this.peerId,this.mediaTag,{startPaused:this.wantPaused,startVideoLayer:this.wantVideoLayer});case 7:if(n=e.sent,r=n.consumer,o=n.producerIsPaused,"pending"!==this.consumerState.state){e.next=18;break}console.log("[vhs-lib] track fetched ".concat(this.peerId,":").concat(this.mediaTag)),r.on("@close",(function(){c.emit("trackDestroyed",r.track,t),c.reset()})),this.consumerState={state:"established",consumer:r},this._producerPaused=o,this.emit("trackAvailable",r.track,o,t),e.next=22;break;case 18:return console.info("[vhs-lib] track fetched ".concat(this.peerId,":").concat(this.mediaTag,", but not needed anymore")),e.next=21,this.subscriber.sessionInternals().closeConsumer(r);case 21:this.reset();case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(2),console.debug("[vhs-lib] cannot fetch track ".concat(this.mediaTag," for ").concat(this.peerId),e.t0);case 27:case"end":return e.stop()}}),e,this,[[2,24]])}))),function(e){return c.apply(this,arguments)})},{key:"start",value:(n=Object(h.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.subscriber.session.isInitialized;case 2:if(t=this.subscriber.session._trackInfos,!("".concat(this.peerId,":").concat(this.mediaTag)in t)){e.next=9;break}return console.log("[vhs-lib] track ".concat(this.peerId,":").concat(this.mediaTag," already available...")),e.next=7,this.fetch(o);case 7:e.next=10;break;case 9:console.log("[vhs-lib] track ".concat(this.peerId,":").concat(this.mediaTag," is not already available, waiting..."));case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleVhsEvent",value:function(e,t){if(t.peerId===this.peerId)switch(t.event){case"join":this.emit("peerJoined");break;case"leave":"established"===this.consumerState.state&&this.consumerState.consumer.close(),this.reset(),this.emit("peerLeft");break;case"pause":t.mediaTag===this.mediaTag&&(this._producerPaused=!0,this.emit("peerPauseChanged",!0));break;case"resume":t.mediaTag===this.mediaTag&&(this._producerPaused=!1,this.emit("peerPauseChanged",!1));break;case"open":t.mediaTag===this.mediaTag&&this.fetch(r);break;case"close":t.mediaTag===this.mediaTag&&this.reset()}}},{key:"paused",get:function(){return this.wantPaused},set:function(e){if(this.wantPaused=e,"established"===this.consumerState.state)try{this.subscriber.sessionInternals().pauseConsumer(this.consumerState.consumer,e)}catch(e){console.debug("[vhs-lib] cannot pause server-side producer for ".concat(this.peerId,":").concat(this.mediaTag,", it might already be gone"))}}},{key:"videoLayer",get:function(){return this.wantVideoLayer},set:function(e){if(this.wantVideoLayer=e,"established"===this.consumerState.state)try{this.subscriber.sessionInternals().setPreferredLayer(this.consumerState.consumer,e)}catch(e){console.debug("[vhs-lib] cannot change server-side producer's layer for ".concat(this.peerId,":").concat(this.mediaTag,", it might already be gone"))}}},{key:"producerPaused",get:function(){return this._producerPaused}},{key:"on",value:function(e,n){var track="established"===this.consumerState.state?this.consumerState.consumer.track:void 0;"trackAvailable"===e&&track&&n(track,this.paused||this._producerPaused,o);return Object(v.a)(Object(y.a)(t.prototype),"on",this).call(this,e,n)}},{key:"release",value:function(){this.subscriber.unsubscribe(this.peerId,this.mediaTag)}},{key:"destroy",value:function(){this.reset(),this.removeAllListeners()}}]);var n,c,l}(A),B=(n(1633),n(717),n(718),n(246),n(992),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(324),Uint8Array),U=Uint16Array,F=Uint32Array,z=new B([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),$=new B([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),H=new B([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),G=function(e,t){for(var b=new U(31),i=0;i<31;++i)b[i]=t+=1<<e[i-1];var n=new F(b[30]);for(i=1;i<30;++i)for(var r=b[i];r<b[i+1];++r)n[r]=r-b[i]<<5|i;return[b,n]},V=G(z,2),W=V[0],K=V[1];W[28]=258,K[258]=28;for(var Y=G($,0),X=Y[0],J=(Y[1],new U(32768)),Z=0;Z<32768;++Z){var Q=(43690&Z)>>>1|(21845&Z)<<1;Q=(61680&(Q=(52428&Q)>>>2|(13107&Q)<<2))>>>4|(3855&Q)<<4,J[Z]=((65280&Q)>>>8|(255&Q)<<8)>>>1}var ee=function(e,t,n){for(var s=e.length,i=0,r=new U(t);i<s;++i)e[i]&&++r[e[i]-1];var o,c=new U(t);for(i=0;i<t;++i)c[i]=c[i-1]+r[i-1]<<1;if(n){o=new U(1<<t);var l=15-t;for(i=0;i<s;++i)if(e[i])for(var h=i<<4|e[i],d=t-e[i],f=c[e[i]-1]++<<d,m=f|(1<<d)-1;f<=m;++f)o[J[f]>>>l]=h}else for(o=new U(s),i=0;i<s;++i)e[i]&&(o[i]=J[c[e[i]-1]++]>>>15-e[i]);return o},te=new B(288);for(Z=0;Z<144;++Z)te[Z]=8;for(Z=144;Z<256;++Z)te[Z]=9;for(Z=256;Z<280;++Z)te[Z]=7;for(Z=280;Z<288;++Z)te[Z]=8;var ne=new B(32);for(Z=0;Z<32;++Z)ne[Z]=5;var re=ee(te,9,1),ie=ee(ne,5,1),oe=function(a){for(var e=a[0],i=1;i<a.length;++i)a[i]>e&&(e=a[i]);return e},ae=function(e,p,t){var n=p/8|0;return(e[n]|e[n+1]<<8)>>(7&p)&t},se=function(e,p){var t=p/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(7&p)},ce=function(p){return(p+7)/8|0},ue=function(e,s,t){(null==s||s<0)&&(s=0),(null==t||t>e.length)&&(t=e.length);var n=new(2==e.BYTES_PER_ELEMENT?U:4==e.BYTES_PER_ELEMENT?F:B)(t-s);return n.set(e.subarray(s,t)),n},le=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],he=function(e,t,n){var r=new Error(t||le[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,he),!n)throw r;return r},de=function(e,t,n){var r=e.length;if(!r||n&&n.f&&!n.l)return t||new B(0);var o=!t||n,c=!n||n.i;n||(n={}),t||(t=new B(3*r));var l=function(e){var n=t.length;if(e>n){var r=new B(Math.max(2*n,e));r.set(t),t=r}},h=n.f||0,d=n.p||0,f=n.b||0,m=n.l,v=n.d,y=n.m,w=n.n,S=8*r;do{if(!m){h=ae(e,d,1);var _=ae(e,d+1,3);if(d+=3,!_){var C=e[(s=ce(d)+4)-4]|e[s-3]<<8,O=s+C;if(O>r){c&&he(0);break}o&&l(f+C),t.set(e.subarray(s,O),f),n.b=f+=C,n.p=d=8*O,n.f=h;continue}if(1==_)m=re,v=ie,y=9,w=5;else if(2==_){var A=ae(e,d,31)+257,T=ae(e,d+10,15)+4,E=A+ae(e,d+5,31)+1;d+=14;for(var P=new B(E),M=new B(19),i=0;i<T;++i)M[H[i]]=ae(e,d+3*i,7);d+=3*T;var x=oe(M),k=(1<<x)-1,I=ee(M,x,1);for(i=0;i<E;){var s,R=I[ae(e,d,k)];if(d+=15&R,(s=R>>>4)<16)P[i++]=s;else{var j=0,D=0;for(16==s?(D=3+ae(e,d,3),d+=2,j=P[i-1]):17==s?(D=3+ae(e,d,7),d+=3):18==s&&(D=11+ae(e,d,127),d+=7);D--;)P[i++]=j}}var N=P.subarray(0,A),dt=P.subarray(A);y=oe(N),w=oe(dt),m=ee(N,y,1),v=ee(dt,w,1)}else he(1);if(d>S){c&&he(0);break}}o&&l(f+131072);for(var L=(1<<y)-1,U=(1<<w)-1,F=d;;F=d){var G=(j=m[se(e,d)&L])>>>4;if((d+=15&j)>S){c&&he(0);break}if(j||he(2),G<256)t[f++]=G;else{if(256==G){F=d,m=null;break}var V=G-254;if(G>264){var b=z[i=G-257];V=ae(e,d,(1<<b)-1)+W[i],d+=b}var K=v[se(e,d)&U],Y=K>>>4;K||he(3),d+=15&K;dt=X[Y];if(Y>3){b=$[Y];dt+=se(e,d)&(1<<b)-1,d+=b}if(d>S){c&&he(0);break}o&&l(f+131072);for(var J=f+V;f<J;f+=4)t[f]=t[f-dt],t[f+1]=t[f+1-dt],t[f+2]=t[f+2-dt],t[f+3]=t[f+3-dt];f=J}}n.l=m,n.p=F,n.b=f,n.f=h,m&&(h=1,n.m=y,n.d=v,n.n=w)}while(!h);return f==t.length?t:ue(t,0,f)},fe=new B(0);function pe(data,e){return de(data,e)}var td="undefined"!=typeof TextDecoder&&new TextDecoder;try{td.decode(fe,{stream:!0}),1}catch(e){}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var me=n(526),ge=n.n(me);function ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return be(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 be(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function ye(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function we(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ye(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):ye(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Se(data){if(void 0!==data){if(!(data instanceof ArrayBuffer))return"string"==typeof data?JSON.parse(data):"[object Object]"===data.toString()?data:JSON.parse(data.toString("utf-8"));var e=new Uint8Array(data);try{var t=pe(e);return JSON.parse(new TextDecoder("utf-8").decode(t))}catch(t){return console.log("could not inflate binary data, trying JSON.parse"),JSON.parse(new TextDecoder("utf-8").decode(e))}}}var _e=function(e,t){var n=new Error(t);return n.name=e,n},Ce=function(e){function t(e,n,r,o){var c,l,h,f,v,w,_,C,O,A,T,E,P,M;return Object(d.a)(this,t),l=this,h=t,h=Object(y.a)(h),(c=Object(m.a)(l,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(h,f||[],Object(y.a)(l).constructor):h.apply(l,f))).ably=e,c.peerId=n,c.commandsChannelName=r,c.pendingRequests=new Map,c.requestId=Math.floor(Math.random()*(Number.MAX_SAFE_INTEGER/2)),c.channel=e.channels.get(r),c.metricsChannel=e.channels.get(r+":metrics"),c.metadataChannel=e.channels.get(r+":metadata"),c.ably=e,c.platformInfos=(v=null==o?void 0:o.appName,w=null==o?void 0:o.appVersion,T=null!=v?v:"lib-vhs JS",E=null!=w?w:S.version,P=("undefined"!=typeof navigator?new ge.a(navigator.userAgent):new ge.a).getResult(),M=P.device.type?P.device.model:void 0,{appName:T,appVersion:E,osName:null!==(_=P.os.name)&&void 0!==_?_:"unknown",osVersion:null!==(C=P.os.version)&&void 0!==C?C:"unknown",browserName:null!==(O=P.browser.name)&&void 0!==O?O:"unknown",browserVersion:null!==(A=P.browser.version)&&void 0!==A?A:"unknown",device:M}),c}return Object(w.a)(t,e),Object(f.a)(t,[{key:"requestChannel",get:function(){return void 0!==this.multiChannel?this.multiChannel:this.channel}},{key:"init",value:(I=Object(h.a)(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.channel.subscribe("VhsResponse",this.handleResponse.bind(this)),this.channel.subscribe("VhsEvent",this.handleVhsEvent.bind(this)),this.metadataChannel.subscribe("active-speaker-changed",this.handleActiveSpeakerChanged.bind(this)),this.metadataChannel.subscribe("force-green-background",this.handleForceGreenBackgroundChanged.bind(this)),this.metadataChannel.subscribe("video-file-state-changed",this.emitNotification.bind(this)),this.metadataChannel.subscribe("video-file-volume-changed",this.emitNotification.bind(this)),this.metadataChannel.subscribe("video-file-position-changed",this.emitNotification.bind(this))]);case 2:return e.next=4,this.getPresenceData();case 4:if(!(t=e.sent)){e.next=9;break}return e.next=8,this.openMultiChannelIfNeeded(t);case 8:this.emit("VhsServerPresence","present",t);case 9:return e.next=11,this.getClientPresenceData();case 11:return e.next=13,this.channel.presence.subscribe(function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(t){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Se(t.data),"VHS SERVER"!==t.clientId){e.next=10;break}if("enter"!==t.action&&"present"!==t.action||!o){e.next=5;break}return e.next=5,n.openMultiChannelIfNeeded(o);case 5:console.log("[vhs-lib] PRESENCE",t.action,o),"leave"!==t.action&&n.currentServerConnectionId!==t.connectionId&&(void 0!==n.currentServerConnectionId&&"enter"===t.action&&n.emit("VhsServerPresence","leave",o),n.currentServerConnectionId=t.connectionId),t.connectionId===n.currentServerConnectionId&&n.emit("VhsServerPresence",t.action,o),e.next=11;break;case 10:"update"!==t.action&&"present"!==t.action&&"enter"!==t.action||o&&o.peerId&&n.emit("VhsEvent","PeerEvent",we({type:"PeerEvent",event:"update"},o),r);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 13:return e.next=15,this.channel.presence.enter({peerId:this.peerId});case 15:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"handleActiveSpeakerChanged",value:function(e){var data=Se(e.data);data&&"string"==typeof data.peerId&&this.emit("ActiveSpeaker",data.peerId)}},{key:"handleForceGreenBackgroundChanged",value:function(e){var data=Se(e.data);data&&this.emit("ForceGreenBackground",data.peerId,data.enabled)}},{key:"emitNotification",value:function(e){var data=Se(e.data);data&&this.emit(data.type,data)}},{key:"update",value:(k=Object(h.a)(regeneratorRuntime.mark((function e(data){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[vhs-lib] Update PRESENCE",{peerId:this.peerId,data:data}),e.next=3,this.channel.presence.update({peerId:this.peerId,data:data});case 3:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"release",value:(x=Object(h.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[vhs-lib] Releasing"),e.next=3,this.channel.presence.leave({peerId:this.peerId});case 3:return this.channel.presence.unsubscribe(),e.next=6,this.channel.detach();case 6:if("attached"!==this.metricsChannel.state){e.next=11;break}return e.next=9,this.metricsChannel.presence.leave();case 9:return e.next=11,this.metricsChannel.detach();case 11:return e.next=13,this.metadataChannel.presence.leave();case 13:return e.next=15,this.metadataChannel.detach();case 15:return null===(t=this.multiChannel)||void 0===t||t.unsubscribe(),e.next=18,null===(n=this.multiChannel)||void 0===n?void 0:n.detach();case 18:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"getPresenceData",value:(M=Object(h.a)(regeneratorRuntime.mark((function e(){var t,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.channel.presence.get({clientId:"VHS SERVER"});case 3:if(!((t=e.sent)&&t.length>0)){e.next=10;break}return this.currentServerConnectionId=t[0].connectionId,data=Se(t[0].data),e.abrupt("return",data);case 10:return e.abrupt("return",void 0);case 11:e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(0),console.log("[vhs-lib] fail to get ably presence","VHS SERVER",e.t0),e.abrupt("return",void 0);case 17:case"end":return e.stop()}}),e,this,[[0,13]])}))),function(){return M.apply(this,arguments)})},{key:"getClientPresenceData",value:(P=Object(h.a)(regeneratorRuntime.mark((function e(){var t,n,o,c,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.channel.presence.get();case 3:t=e.sent,n=ve(t);try{for(n.s();!(o=n.n()).done;)"VHS SERVER"===(c=o.value).clientId||"update"!==c.action&&"present"!==c.action||(data=Se(c.data))&&data.peerId&&this.emit("VhsEvent","PeerEvent",we({type:"PeerEvent",event:"update"},data),r)}catch(e){n.e(e)}finally{n.f()}e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log("[vhs-lib] fail to get ably presence","VHS CLIENT",e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return P.apply(this,arguments)})},{key:"eject",value:(E=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.channel.publish("VhsEvent",{type:"PeerEvent",event:"eject",peerId:t});case 2:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"forceGreenBackground",value:(T=Object(h.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.publishMetadata({type:"force-green-background",peerId:t,enabled:n});case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"subscribeToServerStats",value:(A=Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("METRICS","subscribeToServerStats"),e.next=3,this.metricsChannel.subscribe("VhsMetrics",this.handleVhsMetrics.bind(this));case 3:return e.next=5,this.metricsChannel.presence.enter({peerId:this.peerId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"unsubscribeToServerStats",value:(O=Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("METRICS","unsubscribeToServerStats"),this.metricsChannel.unsubscribe("VhsMetrics"),e.next=4,this.metricsChannel.presence.leave({peerId:this.peerId});case 4:return e.next=6,this.metricsChannel.detach();case 6:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"publishMetadata",value:(C=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("PUBLISH METADATA",t),e.next=3,this.metadataChannel.publish(t.type,t);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"sendRequest",value:(_=Object(h.a)(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var o="req-".concat(n.peerId,"-").concat(n.requestId++),c={resolve:e,reject:r,requestId:o,timeout:setTimeout((function(){r(_e("RequestTimeoutError","request timeout (".concat(o,")"))),n.pendingRequests.delete(o)}),5e3)};n.pendingRequests.set(o,c),n.retryPublish(o,t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return _.apply(this,arguments)})},{key:"retryPublish",value:(v=Object(h.a)(regeneratorRuntime.mark((function e(t,n){var r,o=this,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:2,e.prev=1,e.next=4,this.requestChannel.publish("VhsRequest",{from:this.peerId,requestId:t,request:n});case 4:e.next=13;break;case 6:if(e.prev=6,e.t0=e.catch(1),console.error("[vhs-lib] fail to send ably request",n,e.t0),0!=r){e.next=12;break}return console.error("[vhs-lib] After 3 retries, drop request",n),e.abrupt("return");case 12:setTimeout(Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[vhs-lib] retry send request",n),e.next=3,o.retryPublish(t,n,r-1);case 3:case"end":return e.stop()}}),e)}))),1e3);case 13:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(e,t){return v.apply(this,arguments)})},{key:"handleVhsEvent",value:function(e){if(e.connectionId!==this.ably.connection.id){var data=Se(e.data);data&&this.emit("VhsEvent",data.type,data,r)}}},{key:"handleResponse",value:function(e){var data=Se(e.data);if(void 0!==data&&data.to===this.peerId){var t=this.pendingRequests.get(data.requestId);void 0!==t?(this.pendingRequests.delete(data.requestId),clearTimeout(t.timeout),"error"in data.response?t.reject(_e("VhsError",data.response.error)):t.resolve(data.response)):console.warn("[vhs-lib] received response for unknown request",data)}}},{key:"handleVhsMetrics",value:function(e){var data=Se(e.data);data&&this.emit("VhsMetrics",data)}},{key:"openMultiChannelIfNeeded",value:(l=Object(h.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0===this.multiChannel&&t.channels&&t.channels>0)){e.next=9;break}return n="".concat(this.commandsChannelName,":").concat(Math.floor(Math.random()*t.channels)),console.log("[vhs-lib] opening secondary command channel",n),r=this.ably.channels.get(n),this.multiChannel=r,e.next=7,r.subscribe("VhsResponse",this.handleResponse.bind(this));case 7:e.next=10;break;case 9:return e.abrupt("return",Promise.resolve());case 10:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"getPeers",value:(o=Object(h.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({request:"MediaTracksInfo",peerId:this.peerId});case 2:if(t=e.sent,!(n=t.mediaTracksInfo)){e.next=8;break}return e.abrupt("return",Object.entries(n).map((function(e){return e[0]})));case 8:return e.abrupt("return",[]);case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getTracksInfo",value:(n=Object(h.a)(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.next=3,this.sendRequest({request:"MediaTracksInfo",peerId:this.peerId});case 3:return n=e.sent,(r=n.mediaTracksInfo)&&Object.entries(r).forEach((function(e){var n=Object(c.a)(e,2),r=n[0],o=n[1];Object.entries(o).forEach((function(e){var n=Object(c.a)(e,2)[1];Object.entries(n).forEach((function(e){var n=Object(c.a)(e,2),o=n[0],data=n[1];t.push({peerId:r,mediaTag:o,kind:data.kind,isPaused:data.pause})}))}))})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]);var n,o,l,v,_,C,O,A,T,E,P,M,x,k,I}(A),Oe=n(14),Ae=(n(122),n(696),n(151),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(1028));function Te(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Ee(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Te(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Te(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var Pe=function(e){function t(e,n,r){var o,c,l,h;return Object(d.a)(this,t),c=this,l=t,l=Object(y.a)(l),(o=Object(m.a)(c,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(l,h||[],Object(y.a)(c).constructor):l.apply(c,h))).peerId=e,o.direction=n,o.sig=r,o.clientJoined=!1,o.device=new Ae.Device,o.isLoaded=new _,o}return Object(w.a)(t,e),Object(f.a)(t,[{key:"sendTransport",get:function(){if(this._sendTransport)return this._sendTransport;throw new Error("not initialized")}},{key:"recvTransport",get:function(){if(this._recvTransport)return this._recvTransport;throw new Error("not initialized")}},{key:"routerRtpCapabilities",get:function(){if(this._routerRtpCapabilities)return this._routerRtpCapabilities;throw new Error("not initialized")}},{key:"joinIfNeeded",value:(x=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.clientJoined){e.next=11;break}return this.clientJoined=!0,e.prev=2,e.next=5,this.join(t);case 5:e.next=11;break;case 7:e.prev=7,e.t0=e.catch(2),console.error("[vhs-lib]  Join failed",e.t0),this.clientJoined=!1;case 11:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(e){return x.apply(this,arguments)})},{key:"internalCreateTransport",value:(A=Object(h.a)(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sig.sendRequest({request:"CreateTransport",peerId:this.peerId,direction:t,initialAvailableBitrate:n});case 2:return r=e.sent,o="send"===t?this.device.createSendTransport(r.transportOptions):this.device.createRecvTransport(r.transportOptions),"send"===t&&o.on("produce",this.handleProduce.bind(this)),this.monitorConnection(o),this.connectTransport(o,r.transportOptions.id),e.abrupt("return",o);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"monitorConnection",value:function(e){var t=this;e.on("connectionstatechange",function(){var n=Object(h.a)(regeneratorRuntime.mark((function n(r){var o,c,l,h,d,f,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.debug("[vhs-lib] ".concat(e.direction," transport state:"),r),"connected"!==r){n.next=24;break}o=2;case 3:return n.next=5,e.getStats();case 5:if(c=n.sent,!(l=P(c))){n.next=16;break}if(h=T(c,"local-candidate",l.localCandidateId)){n.next=12;break}return console.debug("[vhs-lib] could not find nominated local candidate for",l),n.abrupt("break",21);case 12:return d=M(h),console.debug("[vhs-lib] ".concat(e.direction," PeerConnection protocol:"),d),t.emit("VhsTransportEvent",{direction:e.direction,state:"connected",protocol:d,networkType:h.networkType}),n.abrupt("return");case 16:if(!(o>0)){n.next=20;break}return n.next=19,new Promise((function(e){return setTimeout(e,250)}));case 19:console.debug("[vhs-lib] waiting for ".concat(e.direction," nominated candidate pair"));case 20:if(o-- >0){n.next=3;break}case 21:t.emit("VhsTransportEvent",{direction:e.direction,state:"connected",protocol:"unknown",networkType:"unknown"}),n.next=33;break;case 24:if("failed"!==r){n.next=32;break}return n.next=27,e.getStats();case 27:f=n.sent,m=new Set(E(f,"local-candidate").map((function(e){return e.networkType}))),t.emit("VhsTransportEvent",{direction:e.direction,state:"failed",availableNetworks:Object(Oe.a)(m)}),n.next=33;break;case 32:t.emit("VhsTransportEvent",{direction:e.direction,state:r});case 33:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}},{key:"join",value:(O=Object(h.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sig.sendRequest({request:"JoinAsNewPeer",peerId:this.peerId,clientInfo:this.sig.platformInfos});case 2:return n=e.sent,e.prev=3,this._routerRtpCapabilities=n.routerRtpCapabilities,e.next=7,this.device.load({routerRtpCapabilities:this.routerRtpCapabilities});case 7:if(!this.direction.startsWith("send")){e.next=11;break}return e.next=10,this.internalCreateTransport("send");case 10:this._sendTransport=e.sent;case 11:if(!this.direction.endsWith("recv")){e.next=15;break}return e.next=14,this.internalCreateTransport("recv",t);case 14:this._recvTransport=e.sent;case 15:this.isLoaded.resolve(),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(3),this.isLoaded.reject(e.t0);case 21:case"end":return e.stop()}}),e,this,[[3,18]])}))),function(e){return O.apply(this,arguments)})},{key:"release",value:function(){var e,t;null===(e=this._recvTransport)||void 0===e||e.close(),null===(t=this._sendTransport)||void 0===t||t.close()}},{key:"connectTransport",value:function(e,t){var n=this;e.on("connect",function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(r,o,c){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=r.dtlsParameters,e.prev=1,e.next=4,n.sig.sendRequest({request:"ConnectTransport",peerId:n.peerId,transportId:t,dtlsParameters:l});case 4:o(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),c(e.t0);case 10:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t,n,r){return e.apply(this,arguments)}}())}},{key:"createProducer",value:(C=Object(h.a)(regeneratorRuntime.mark((function e(t){var n,track,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isLoaded;case 2:if(n=t.encodings,track=t.track){e.next=5;break}throw Error("no track");case 5:return n||(r=track.getSettings(),"video"===track.kind&&r.width&&r.height&&(t.encodings=this.cameraEncodingsFor(r.width,r.height),console.log("[vhs-lib] producer settings",r,t.encodings))),e.abrupt("return",this.sendTransport.produce(t));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"closeProducer",value:(S=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.close(),e.next=3,this.sig.sendRequest({request:"CloseProducer",peerId:this.peerId,producerId:t.id});case 3:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"pauseProducer",value:(v=Object(h.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=6;break}return e.next=3,this.sig.sendRequest({request:"PauseProducer",peerId:this.peerId,producerId:t.id});case 3:t.pause(),e.next=9;break;case 6:return e.next=8,this.sig.sendRequest({request:"ResumeProducer",peerId:this.peerId,producerId:t.id});case 8:t.resume();case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"cameraEncodingsFor",value:function(e,t){return e>=1920&&t>=1080?[{maxBitrate:2e5,scaleResolutionDownBy:4},{maxBitrate:5e6,scaleResolutionDownBy:1}]:e>=1280&&t>=720?[{maxBitrate:2e5,scaleResolutionDownBy:3},{maxBitrate:25e5,scaleResolutionDownBy:1}]:[{maxBitrate:2e5,scaleResolutionDownBy:2},{maxBitrate:1e6,scaleResolutionDownBy:1}]}},{key:"handleProduce",value:(l=Object(h.a)(regeneratorRuntime.mark((function e(t,n,r){var o,c,l,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.kind,c=t.rtpParameters,l=t.appData,e.prev=1,e.next=4,this.sig.sendRequest({request:"SendTrack",peerId:this.peerId,transportId:this.sendTransport.id,kind:o,rtpParameters:c,appData:l,paused:!1});case 4:h=e.sent,n(h),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),r(e.t0);case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e,t,n){return l.apply(this,arguments)})},{key:"createConsumer",value:(c=Object(h.a)(regeneratorRuntime.mark((function e(n,r,o){var c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isLoaded;case 2:return e.next=4,this.sig.sendRequest({request:"RecvTrack",peerId:this.peerId,mediaTag:r,mediaPeerId:n,rtpCapabilities:this.device.rtpCapabilities,recvTransportId:this.recvTransport.id,videoLayer:null==o?void 0:o.startVideoLayer});case 4:return c=e.sent,e.next=7,this.recvTransport.consume(Ee(Ee({},c),{},{appData:{peerId:n,mediaTag:r}}));case 7:return(l=e.sent).on("transportclose",(function(){return l.close()})),e.next=11,t.transportConnected(this.recvTransport,5e3);case 11:if(!0===(null==o?void 0:o.startPaused)){e.next=14;break}return e.next=14,this.pauseConsumer(l,!1);case 14:return e.abrupt("return",{consumer:l,producerIsPaused:c.producerPaused});case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"pauseConsumer",value:(o=Object(h.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=10;break}if(!n){e.next=7;break}return e.next=4,this.sig.sendRequest({request:"PauseConsumer",peerId:this.peerId,consumerId:t.id});case 4:t.pause(),e.next=10;break;case 7:return e.next=9,this.sig.sendRequest({request:"ResumeConsumer",peerId:this.peerId,consumerId:t.id});case 9:t.resume();case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"closeConsumer",value:(r=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log("[vhs-lib] Closing consumer ".concat(t.id,"..."),t.appData),t.close(),e.next=5,this.sig.sendRequest({request:"CloseConsumer",peerId:this.peerId,consumerId:t.id});case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e){return r.apply(this,arguments)})},{key:"setPreferredLayer",value:(n=Object(h.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.sig.sendRequest({request:"ConsumerSetLayer",peerId:this.peerId,consumerId:t.id,spatialLayer:null!=n?n:Number.MAX_SAFE_INTEGER});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("[vhs-lib] error while setting preferred layer on ".concat(t.id,"}"),e.t0);case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return n.apply(this,arguments)})}],[{key:"transportConnected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;return new Promise((function(n,r){var o;"connected"===e.connectionState?n():(o=setTimeout((function(){r(Error("Timeout"))}),t),e.on("connectionstatechange",(function t(c){"connected"===c?(e.off("connectionstatechange",t),clearTimeout(o),n()):"failed"!==c&&"closed"!==c||(e.off("connectionstatechange",t),clearTimeout(o),r(Error("cannot connect")))})))}))}}]);var n,r,o,c,l,v,S,C,O,A,x}(A);function Me(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function xe(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Me(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Me(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var ke=S.version,Ie=function(e){function t(e,n,r,o,c){var l,h,f,v,w=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return Object(d.a)(this,t),h=this,f=t,f=Object(y.a)(f),(l=Object(m.a)(h,function(){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(){})))}catch(e){return!1}}()?Reflect.construct(f,v||[],Object(y.a)(h).constructor):f.apply(h,v))).peerId=r,l.direction=o,l.headless=w,l.serverIsPresent=!1,l.subscribers={},l._trackInfos={},l._peers={},l._isInitialized=new _,console.log("[vhs-lib] VhsSession: version ",ke),l.signaling=new Ce(e,r,"vhs:".concat(n.organizationId,":").concat(n.eventId,":").concat(n.sessionId),c),l.transports=l.createTransports(),l.publisher=new j(l,l.getInternal.bind(l)),l}return Object(w.a)(t,e),Object(f.a)(t,[{key:"createTransports",value:function(){return this.headless?new C:new Pe(this.peerId,this.direction,this.signaling)}},{key:"initializeTrackInfos",value:(M=Object(h.a)(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.signaling.getPeers();case 3:return t=e.sent,e.next=6,this.signaling.getTracksInfo();case 6:n=e.sent,t.forEach((function(e){r.signaling.emit("VhsEvent","PeerEvent",{type:"PeerEvent",event:"join",peerId:e},o)})),n.forEach((function(e){r.signaling.emit("VhsEvent","MediaEvent",xe({type:"MediaEvent",event:"open"},e),o),e.isPaused&&r.signaling.emit("VhsEvent","MediaEvent",xe({type:"MediaEvent",event:"pause"},e),o)})),console.log("[vhs-lib] done initializeTrackInfos",this._trackInfos),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.warn("[vhs-lib] could not initialize track infos",e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])}))),function(){return M.apply(this,arguments)})},{key:"init",value:(P=Object(h.a)(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.signaling.on("VhsEvent",(function(e,t,r){if("open"===t.event)n._trackInfos["".concat(t.peerId,":").concat(t.mediaTag)]={peerId:t.peerId,mediaTag:t.mediaTag,kind:t.kind,isPaused:!1},n.emit("Open",t.peerId,t.mediaTag,t.kind,r);else if("close"===t.event)delete n._trackInfos["".concat(t.peerId,":").concat(t.mediaTag)],n.emit("Close",t.peerId,t.mediaTag);else if("pause"===t.event||"resume"===t.event){var o=n._trackInfos["".concat(t.peerId,":").concat(t.mediaTag)];o?(o.isPaused="pause"===t.event,n.emit("Pause",t.peerId,t.mediaTag,o.isPaused)):console.warn("[vhs-lib] missing internal state for MediaEvent",t)}else if("join"===t.event){var data=n._peers[t.peerId];n.emit("Join",t.peerId,data,r)}else"leave"===t.event?(delete n._peers[t.peerId],n.emit("Leave",t.peerId),Object.keys(n._trackInfos).forEach((function(e){e.startsWith("".concat(t.peerId,":"))&&delete n._trackInfos[e]}))):"update"===t.event&&(n.emit("Update",t.peerId,t.data),n._peers[t.peerId]=t.data)})),this.signaling.on("VhsServerPresence",function(){var e=Object(h.a)(regeneratorRuntime.mark((function e(r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o="enter"===r||"present"===r||"update"===r,n.serverIsPresent=o,!o){e.next=9;break}return e.next=5,n.transports.joinIfNeeded(t);case 5:return e.next=7,n.initializeTrackInfos();case 7:e.next=10;break;case 9:n.onServerLeave();case 10:n.emit("VhsServerPresence",o,r);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.transports.on("VhsTransportEvent",(function(e){return n.emit("VhsTransportEvent",e)})),this.signaling.on("VhsMetrics",(function(e){return n.emit("VhsMetrics",e)})),this.signaling.on("VhsEvent",(function(e,t){var r=t.event,o=t.peerId;"PeerEvent"===e&&"eject"===r&&n.emit("Eject",o)})),this.signaling.on("ActiveSpeaker",(function(e){return n.emit("ActiveSpeaker",e)})),this.signaling.on("ForceGreenBackground",(function(e,t){return n.emit("ForceGreenBackground",e,t)})),this.signaling.on("video-file-state-changed",(function(data){return n.emit("video-file-state-changed",data)})),this.signaling.on("video-file-volume-changed",(function(data){return n.emit("video-file-volume-changed",data)})),this.signaling.on("video-file-position-changed",(function(data){return n.emit("video-file-position-changed",data)})),e.next=12,this.signaling.init();case 12:this._isInitialized.resolve();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return P.apply(this,arguments)})},{key:"onServerLeave",value:function(){for(var e in this.transports.release(),this.subscribers)this.subscribers[e].closeAllSubscriptions();this.transports=this.createTransports()}},{key:"update",value:(E=Object(h.a)(regeneratorRuntime.mark((function e(data){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signaling.update(data);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"release",value:(T=Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object.entries(this.subscribers).forEach((function(e){Object(c.a)(e,2)[1].release()})),this.transports.release(),this.transports=this.createTransports(),e.next=5,this.signaling.release();case 5:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"getPeers",value:(A=Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signaling.getPeers();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"subscriber",value:function(e){return e in this.subscribers||(this.subscribers[e]=new N(e,this,this.getInternal.bind(this))),this.subscribers[e]}},{key:"releaseSubscriber",value:function(e){delete this.subscribers[e]}},{key:"eject",value:(O=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signaling.eject(t);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return O.apply(this,arguments)})},{key:"forceGreenBackground",value:(S=Object(h.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.signaling.forceGreenBackground(t,n);case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return");case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(e,t){return S.apply(this,arguments)})},{key:"getInternal",value:function(){return this.transports}},{key:"tracks",get:function(){return Object.values(this._trackInfos)}},{key:"peers",get:function(){return Object.keys(this._peers)}},{key:"isInitialized",get:function(){return this._isInitialized}},{key:"subscribeToServerStats",value:(l=Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signaling.subscribeToServerStats();case 2:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"unsubscribeFromServerStats",value:(r=Object(h.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signaling.unsubscribeToServerStats();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"publishMetadata",value:(n=Object(h.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signaling.publishMetadata(t);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"on",value:function(e,n){if("Join"===e){var r=n;Object.entries(this._peers).forEach((function(e){var t=Object(c.a)(e,2),n=t[0],l=t[1];r(n,l,o)}))}else if("Open"===e){var l=n;this.tracks.forEach((function(e){var t=e.peerId,n=e.mediaTag,r=e.kind;return l(t,n,r,o)}))}return Object(v.a)(Object(y.a)(t.prototype),"on",this).call(this,e,n)}},{key:"rtpCapabilities",get:function(){return this.transports._routerRtpCapabilities}}]);var n,r,l,S,O,A,T,E,P,M}(A)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(139),o=n(121);function c(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(e),c=Object(r.a)(t);return n.getTime()<c.getTime()}},function(e,t,n){"use strict";n(43),n(5);var r=n(30);t.a=r.a.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:r.a.options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(e){return!e.isComment&&" "!==e.text}))}})},function(e,t,n){"use strict";var r=n(277),o=n(537),c=Object(o.a)((function(e,t,n){Object(r.a)(e,n,t)}));t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(1007);function o({alternativeName:e,mainCities:t,rawOffsetInMinutes:n,currentTimeOffsetInMinutes:r},{useCurrentOffset:o=!1}={}){return`${c(o?r:n).padStart(6,"+")} ${e} - ${t.join(", ")}`}function c(e){const t=Math.abs(e),[n,r]=[Math.floor(t/60),t%60].map((e=>e.toString().padStart(2,"0")));return`${e>=0?"+":"-"}${`${n}:${r}`}`}const l=/^[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?$/,h={year:0,month:1,day:2,hour:3,minute:4,second:5};function d(e){if(!(s=e)||!s.match(l))return!1;var s;const t=new Date(Date.now());let n;try{r=e,n=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch(e){return!1}var r;const[o,c,d,f,m,v]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:e,value:t}=n[i],o=h[e];void 0!==o&&(r[o]=parseInt(t,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),[,o,c,l,h,d,f]=r;return[l,o,c,h,d,f]}(n,t);let y=+t;const w=y%1e3;return y-=w>=0?w:1e3+w,(function(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}({year:o,month:c,day:d,hour:f,minute:m,second:v,millisecond:0})-y)/6e4}function f(e){const t=!!e&&e.includeUtc;return r.reduce((function(e,t){const n=d(t.name);if(!1===n)return e;const r={...t,currentTimeOffsetInMinutes:n};return e.push({...r,currentTimeFormat:o(r,{useCurrentOffset:!0})}),e}),t?[v]:[]).sort(((a,b)=>{return e=b,a.currentTimeOffsetInMinutes-e.currentTimeOffsetInMinutes||m(a.alternativeName,b.alternativeName)||m(a.mainCities[0],b.mainCities[0]);var e}))}function m(e,t){return"string"==typeof e&&"string"==typeof t?e.localeCompare(t):0}const v={name:"Etc/UTC",alternativeName:"Coordinated Universal Time (UTC)",abbreviation:"UTC",group:["Etc/UTC","Etc/UCT","UCT","UTC","Universal","Zulu"],countryName:"",continentCode:"",continentName:"",mainCities:[""],rawOffsetInMinutes:0,rawFormat:"+00:00 Coordinated Universal Time (UTC)",currentTimeOffsetInMinutes:0,currentTimeFormat:"+00:00 Coordinated Universal Time (UTC)"}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(436),o=n(544),c=n(121),l=36e5;function h(e,t){Object(c.a)(2,arguments);var n=Object(r.a)(t);return Object(o.a)(e,n*l)}},,,,,function(e,t,n){e.exports={}},,,,,,,,,,function(e,t,n){(function(e){e.installComponents=function(component,e){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},e)n.components[i]=n.components[i]||e[i];n.functional&&function(component,e){if(component.exports[t])return;component.exports[t]=!0;var n=component.exports.render;component.exports.render=function(t,r){return n(t,Object.assign({},r,{_c:function(t,a,b){return r._c(e[t]||t,a,b)}}))}}(component,n.components)};var t="_functionalComponents"}).call(this,n(67))},function(e,t,n){"use strict";n.r(t),function(e){var t=n(35),r=n(2),o=(n(463),n(1224),n(1236),n(1237),n(15),n(6),n(49),n(94),n(12),n(7),n(66),n(39),n(22),n(54),n(24),n(9),n(5),n(34),n(50),n(51),n(33),n(8),n(36),n(60),n(1)),c=n(499),l=n(425),h=n(19),d=n(242),f=n(1081),m=n(541);function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}o.a.__nuxt__fetch__mixin__||(o.a.mixin(f.a),o.a.__nuxt__fetch__mixin__=!0),o.a.component(m.a.name,m.a),o.a.component("NLink",m.a),e.fetch||(e.fetch=c.default);var w,S,_=[],C=window.__NUXT__||{},O=C.config||{};O._app&&(n.p=Object(h.v)(O._app.cdnURL,O._app.assetsPath)),Object.assign(o.a.config,{silent:!0,performance:!1});var A=o.a.config.errorHandler||console.error;function T(e,t,n){for(var r=function(component){var e=function(component,e){if(!component||!component.options||!component.options[e])return{};var option=component.options[e];if("function"==typeof option){for(var t=arguments.length,n=new Array(t>2?t-2:0),r=2;r<t;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",t,n)||{};return"string"==typeof e?{name:e}:e},o=n?Object(h.g)(n):[],c=Math.max(e.length,o.length),l=[],d=function(){var t=Object.assign({},r(e[i])),n=Object.assign({},r(o[i]));Object.keys(t).filter((function(e){return void 0!==t[e]&&!e.toLowerCase().includes("leave")})).forEach((function(e){n[e]=t[e]})),l.push(n)},i=0;i<c;i++)d();return l}function E(e,t,n){return P.apply(this,arguments)}function P(){return(P=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r){var o,c,l,d,f=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._routeChanged=Boolean(w.nuxt.err)||n.name!==t.name,this._paramChanged=!this._routeChanged&&n.path!==t.path,this._queryChanged=!this._paramChanged&&n.fullPath!==t.fullPath,this._diffQuery=this._queryChanged?Object(h.i)(t.query,n.query):[],e.prev=4,!this._queryChanged){e.next=10;break}return e.next=8,Object(h.r)(t,(function(e,t){return{Component:e,instance:t}}));case 8:o=e.sent,o.some((function(e){var r=e.Component,o=e.instance,c=r.options.watchQuery;return!0===c||(Array.isArray(c)?c.some((function(e){return f._diffQuery[e]})):"function"==typeof c&&c.apply(o,[t.query,n.query]))}));case 10:r(),e.next=24;break;case 13:if(e.prev=13,e.t0=e.catch(4),c=e.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,d=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(d)){e.next=21;break}return window.location.reload(!0),e.abrupt("return");case 21:this.error({statusCode:l,message:d}),this.$nuxt.$emit("routeChanged",t,n,c),r();case 24:case"end":return e.stop()}}),e,this,[[4,13]])})))).apply(this,arguments)}function M(e,t){return C.serverRendered&&t&&Object(h.b)(e,t),e._Ctor=e,e}function x(e,t,n,r){var o=this,c=["nuxti18n"],d=!1;if(void 0!==n&&(c=[],(n=Object(h.s)(n)).options.middleware&&(c=c.concat(n.options.middleware)),e.forEach((function(e){e.options.middleware&&(c=c.concat(e.options.middleware))}))),c=c.map((function(e){return"function"==typeof e?e:("function"!=typeof l.a[e]&&(d=!0,o.error({statusCode:500,message:"Unknown middleware "+e})),l.a[e])})),!d)return Object(h.o)(c,t,r)}function k(e,t,n,r){return I.apply(this,arguments)}function I(){return I=Object(r.a)(regeneratorRuntime.mark((function e(t,n,o,c){var l,f,m,y,S,C,O,A,E,P,M,k,I,R,j,D=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){e.next=2;break}return e.abrupt("return",o());case 2:return!1,t===n?(_=[],!0):(l=[],_=Object(h.g)(n,l).map((function(e,i){return Object(h.c)(n.matched[l[i]].path)(n.params)}))),f=!1,m=function(path){f||(f=!0,o(path))},e.next=8,Object(h.t)(w,{route:t,from:n,error:function(e){c.aborted||w.nuxt.error.call(D,e)},next:m.bind(this)});case 8:if(this._dateLastError=w.nuxt.dateErr,this._hadError=Boolean(w.nuxt.err),y=[],(S=Object(h.g)(t,y)).length){e.next=33;break}return e.next=15,x.call(this,S,w.context,void 0,c);case 15:if(!f){e.next=17;break}return e.abrupt("return");case 17:if(!c.aborted){e.next=20;break}return o(!1),e.abrupt("return");case 20:return C=(d.a.options||d.a).layout,e.next=23,this.loadLayout("function"==typeof C?C.call(d.a,w.context):C);case 23:return O=e.sent,e.next=26,x.call(this,S,w.context,O,c);case 26:if(!f){e.next=28;break}return e.abrupt("return");case 28:if(!c.aborted){e.next=31;break}return o(!1),e.abrupt("return");case 31:return w.context.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",o());case 33:return S.forEach((function(e){e._Ctor&&e._Ctor.options&&(e.options.asyncData=e._Ctor.options.asyncData,e.options.fetch=e._Ctor.options.fetch)})),this.setTransitions(T(S,t,n)),e.prev=35,e.next=38,x.call(this,S,w.context,void 0,c);case 38:if(!f){e.next=40;break}return e.abrupt("return");case 40:if(!c.aborted){e.next=43;break}return o(!1),e.abrupt("return");case 43:if(!w.context._errored){e.next=45;break}return e.abrupt("return",o());case 45:return"function"==typeof(A=S[0].options.layout)&&(A=A(w.context)),e.next=49,this.loadLayout(A);case 49:return A=e.sent,e.next=52,x.call(this,S,w.context,A,c);case 52:if(!f){e.next=54;break}return e.abrupt("return");case 54:if(!c.aborted){e.next=57;break}return o(!1),e.abrupt("return");case 57:if(!w.context._errored){e.next=59;break}return e.abrupt("return",o());case 59:E=!0,e.prev=60,P=v(S),e.prev=62,P.s();case 64:if((M=P.n()).done){e.next=75;break}if("function"==typeof(k=M.value).options.validate){e.next=68;break}return e.abrupt("continue",73);case 68:return e.next=70,k.options.validate(w.context);case 70:if(E=e.sent){e.next=73;break}return e.abrupt("break",75);case 73:e.next=64;break;case 75:e.next=80;break;case 77:e.prev=77,e.t0=e.catch(62),P.e(e.t0);case 80:return e.prev=80,P.f(),e.finish(80);case 83:e.next=89;break;case 85:return e.prev=85,e.t1=e.catch(60),this.error({statusCode:e.t1.statusCode||"500",message:e.t1.message}),e.abrupt("return",o());case 89:if(E){e.next=92;break}return this.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",o());case 92:return e.next=94,Promise.all(S.map(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(r,i){var o,c,l,d,f,m,v,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._path=Object(h.c)(t.matched[y[i]].path)(t.params),r._dataRefresh=!1,o=r._path!==_[i],D._routeChanged&&o?r._dataRefresh=!0:D._paramChanged&&o?(c=r.options.watchParam,r._dataRefresh=!1!==c):D._queryChanged&&(!0===(l=r.options.watchQuery)?r._dataRefresh=!0:Array.isArray(l)?r._dataRefresh=l.some((function(e){return D._diffQuery[e]})):"function"==typeof l&&(I||(I=Object(h.h)(t)),r._dataRefresh=l.apply(I[i],[t.query,n.query]))),D._hadError||!D._isMounted||r._dataRefresh){e.next=6;break}return e.abrupt("return");case 6:return d=[],f=r.options.asyncData&&"function"==typeof r.options.asyncData,m=Boolean(r.options.fetch)&&r.options.fetch.length,f&&((v=Object(h.q)(r.options.asyncData,w.context)).then((function(e){Object(h.b)(r,e)})),d.push(v)),D.$loading.manual=!1===r.options.loading,m&&((p=r.options.fetch(w.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then((function(e){})),d.push(p)),e.abrupt("return",Promise.all(d));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 94:if(f){e.next=99;break}if(!c.aborted){e.next=98;break}return o(!1),e.abrupt("return");case 98:o();case 99:e.next=118;break;case 101:if(e.prev=101,e.t2=e.catch(35),!c.aborted){e.next=106;break}return o(!1),e.abrupt("return");case 106:if("ERR_REDIRECT"!==(R=e.t2||{}).message){e.next=109;break}return e.abrupt("return",this.$nuxt.$emit("routeChanged",t,n,R));case 109:return _=[],Object(h.k)(R),"function"==typeof(j=(d.a.options||d.a).layout)&&(j=j(w.context)),e.next=115,this.loadLayout(j);case 115:this.error(R),this.$nuxt.$emit("routeChanged",t,n,R),o();case 118:case"end":return e.stop()}}),e,this,[[35,101],[60,85],[62,77,80,83]])}))),I.apply(this,arguments)}function R(e,n){Object(h.d)(e,(function(e,n,r,c){return"object"!==Object(t.a)(e)||e.options||((e=o.a.extend(e))._Ctor=e,r.components[c]=e),e}))}function j(e){var t=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(t=!1);var n=t?(d.a.options||d.a).layout:e.matched[0].components.default.options.layout;"function"==typeof n&&(n=n(w.context)),this.setLayout(n)}function D(e){e._hadError&&e._dateLastError===e.$options.nuxt.dateErr&&e.error()}function N(e,t){var n=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var r=Object(h.h)(e),c=Object(h.g)(e),l=!1;o.a.nextTick((function(){r.forEach((function(e,i){if(e&&!e._isDestroyed&&e.constructor._dataRefresh&&c[i]===e.constructor&&!0!==e.$vnode.data.keepAlive&&"function"==typeof e.constructor.options.data){var t=e.constructor.options.data.call(e);for(var n in t)o.a.set(e.$data,n,t[n]);l=!0}})),l&&window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),D(n)}))}}function L(e){window.onNuxtReadyCbs.forEach((function(t){"function"==typeof t&&t(e)})),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(e),S.afterEach((function(t,n){o.a.nextTick((function(){return e.$nuxt.$emit("routeChanged",t,n)}))}))}function B(){return B=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,c,l,d,f,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=t.app,S=t.router,t.store,n=new o.a(w),c=function(){n.$mount("#__nuxt"),S.afterEach(R),S.afterEach(j.bind(n)),S.afterEach(N.bind(n)),o.a.nextTick((function(){L(n)}))},e.next=7,Promise.all((v=w.context.route,Object(h.d)(v,function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r,o,c){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return l=M(Object(h.s)(t),C.data?C.data[c]:null),r.components[o]=l,e.abrupt("return",l);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o,c){return e.apply(this,arguments)}}())));case 7:if(l=e.sent,n.setTransitions=n.$options.nuxt.setTransitions.bind(n),l.length&&(n.setTransitions(T(l,S.currentRoute)),_=S.currentRoute.matched.map((function(e){return Object(h.c)(e.path)(S.currentRoute.params)}))),n.$loading={},C.error&&n.error(C.error),S.beforeEach(E.bind(n)),d=null,f=k.bind(n),S.beforeEach((function(e,t,n){d&&(d.aborted=!0),f(e,t,n,d={aborted:!1})})),!C.serverRendered||!Object(h.n)(C.routePath,n.context.route.path)){e.next=18;break}return e.abrupt("return",c());case 18:return m=function(){R(S.currentRoute,S.currentRoute),j.call(n,S.currentRoute),D(n),c()},e.next=21,new Promise((function(e){return setTimeout(e,0)}));case 21:k.call(n,S.currentRoute,S.currentRoute,(function(path){if(path){var e=S.afterEach((function(t,n){e(),m()}));S.push(path,void 0,(function(e){e&&A(e)}))}else m()}),{aborted:!1});case 22:case"end":return e.stop()}var v}),e)}))),B.apply(this,arguments)}Object(d.b)(null,C.config).then((function(e){return B.apply(this,arguments)})).catch(A)}.call(this,n(67))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,i,n=l(e),r=n[0],h=n[1],d=new c(function(e,t,n){return 3*(t+n)/4-n}(0,r,h)),f=0,m=h>0?r-4:r;for(i=0;i<m;i+=4)t=o[e.charCodeAt(i)]<<18|o[e.charCodeAt(i+1)]<<12|o[e.charCodeAt(i+2)]<<6|o[e.charCodeAt(i+3)],d[f++]=t>>16&255,d[f++]=t>>8&255,d[f++]=255&t;2===h&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,d[f++]=255&t);1===h&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,d[f++]=t>>8&255,d[f++]=255&t);return d},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,c=[],l=16383,i=0,d=n-o;i<d;i+=l)c.push(h(e,i,i+l>d?d:i+l));1===o?(t=e[n-1],c.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],c.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return c.join("")};for(var r=[],o=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function l(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 h(e,t,n){for(var o,c,output=[],i=t;i<n;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),output.push(r[(c=o)>>18&63]+r[c>>12&63]+r[c>>6&63]+r[63&c]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var c,l,h=8*o-r-1,d=(1<<h)-1,f=d>>1,m=-7,i=n?o-1:0,v=n?-1:1,s=e[t+i];for(i+=v,c=s&(1<<-m)-1,s>>=-m,m+=h;m>0;c=256*c+e[t+i],i+=v,m-=8);for(l=c&(1<<-m)-1,c>>=-m,m+=r;m>0;l=256*l+e[t+i],i+=v,m-=8);if(0===c)c=1-f;else{if(c===d)return l?NaN:1/0*(s?-1:1);l+=Math.pow(2,r),c-=f}return(s?-1:1)*l*Math.pow(2,c-r)},t.write=function(e,t,n,r,o,c){var l,h,d,f=8*c-o-1,m=(1<<f)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:c-1,y=r?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(h=isNaN(t)?1:0,l=m):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),(t+=l+v>=1?rt/d:rt*Math.pow(2,1-v))*d>=2&&(l++,d/=2),l+v>=m?(h=0,l=m):l+v>=1?(h=(t*d-1)*Math.pow(2,o),l+=v):(h=t*Math.pow(2,v-1)*Math.pow(2,o),l=0));o>=8;e[n+i]=255&h,i+=y,h/=256,o-=8);for(l=l<<o|h,f+=o;f>0;e[n+i]=255&l,i+=y,l/=256,f-=8);e[n+i-y]|=128*s}},,function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(347),t.createHash=t.Hash=n(410),t.createHmac=t.Hmac=n(841);var r=n(1304),o=Object.keys(r),c=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return c};var p=n(844);t.pbkdf2=p.pbkdf2,t.pbkdf2Sync=p.pbkdf2Sync;var l=n(1306);t.Cipher=l.Cipher,t.createCipher=l.createCipher,t.Cipheriv=l.Cipheriv,t.createCipheriv=l.createCipheriv,t.Decipher=l.Decipher,t.createDecipher=l.createDecipher,t.Decipheriv=l.Decipheriv,t.createDecipheriv=l.createDecipheriv,t.getCiphers=l.getCiphers,t.listCiphers=l.listCiphers;var h=n(1321);t.DiffieHellmanGroup=h.DiffieHellmanGroup,t.createDiffieHellmanGroup=h.createDiffieHellmanGroup,t.getDiffieHellman=h.getDiffieHellman,t.createDiffieHellman=h.createDiffieHellman,t.DiffieHellman=h.DiffieHellman;var d=n(1326);t.createSign=d.createSign,t.Sign=d.Sign,t.createVerify=d.createVerify,t.Verify=d.Verify,t.createECDH=n(1367);var f=n(1368);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var m=n(1371);t.randomFill=m.randomFill,t.randomFillSync=m.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){(t=e.exports=n(829)).Stream=t,t.Readable=t,t.Writable=n(833),t.Duplex=n(349),t.Transform=n(834),t.PassThrough=n(1288),t.finished=n(580),t.pipeline=n(1289)},,function(e,t,n){"use strict";function r(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?r(Object(source),!0).forEach((function(t){c(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function c(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(input,e){if("object"!=typeof input||null===input)return input;var t=input[Symbol.toPrimitive];if(void 0!==t){var n=t.call(input,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(input)}(e,"string");return"symbol"==typeof t?t:String(t)}var d=n(46).Buffer,f=n(1285).inspect,m=f&&f.custom||"inspect";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}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e}},{key:"concat",value:function(e){if(0===this.length)return d.alloc(0);for(var t,n,r,o=d.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,n=o,r=i,d.prototype.copy.call(t,n,r),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var p=this.head,t=1,n=p.data;for(e-=n.length;p=p.next;){var r=p.data,o=e>r.length?r.length:e;if(o===r.length?n+=r:n+=r.slice(0,e),0==(e-=o)){o===r.length?(++t,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++t}return this.length-=t,n}},{key:"_getBuffer",value:function(e){var t=d.allocUnsafe(e),p=this.head,n=1;for(p.data.copy(t),e-=p.data.length;p=p.next;){var r=p.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),0==(e-=o)){o===r.length?(++n,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++n}return this.length-=n,t}},{key:m,value:function(e,t){return f(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},,function(e,t,n){"use strict";(function(t){var r;function o(e,t,n){return(t=function(e){var t=function(input,e){if("object"!=typeof input||null===input)return input;var t=input[Symbol.toPrimitive];if(void 0!==t){var n=t.call(input,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(input)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(580),l=Symbol("lastResolve"),h=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),m=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function w(e,t){return{value:e,done:t}}function S(e){var t=e[l];if(null!==t){var data=e[y].read();null!==data&&(e[m]=null,e[l]=null,e[h]=null,t(w(data,!1)))}}function _(e){t.nextTick(S,e)}var C=Object.getPrototypeOf((function(){})),O=Object.setPrototypeOf((o(r={get stream(){return this[y]},next:function(){var e=this,n=this[d];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[d]?r(e[d]):n(w(void 0,!0))}))}));var r,o=this[m];if(o)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[f]?n(w(void 0,!0)):t[v](n,r)}),r)}}(o,this));else{var data=this[y].read();if(null!==data)return Promise.resolve(w(data,!1));r=new Promise(this[v])}return this[m]=r,r}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[y].destroy(null,(function(e){e?n(e):t(w(void 0,!0))}))}))})),r),C);e.exports=function(e){var t,n=Object.create(O,(o(t={},y,{value:e,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,h,{value:null,writable:!0}),o(t,d,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,v,{value:function(e,t){var data=n[y].read();data?(n[m]=null,n[l]=null,n[h]=null,e(w(data,!1))):(n[l]=e,n[h]=t)},writable:!0}),t));return n[m]=null,c(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[h];return null!==t&&(n[m]=null,n[l]=null,n[h]=null,t(e)),void(n[d]=e)}var r=n[l];null!==r&&(n[m]=null,n[l]=null,n[h]=null,r(w(void 0,!0))),n[f]=!0})),e.on("readable",_.bind(null,n)),n}}).call(this,n(83))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,n){"use strict";e.exports=o;var r=n(834);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}n(47)(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r;var o=n(348).codes,c=o.ERR_MISSING_ARGS,l=o.ERR_STREAM_DESTROYED;function h(e){if(e)throw e}function d(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var m,v=function(e){return e.length?"function"!=typeof e[e.length-1]?h:e.pop():h}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new c("streams");var y=t.map((function(e,i){var o=i<t.length-1;return function(e,t,o,c){c=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(c);var h=!1;e.on("close",(function(){h=!0})),void 0===r&&(r=n(580)),r(e,{readable:t,writable:o},(function(e){if(e)return c(e);h=!0,c()}));var d=!1;return function(t){if(!h&&!d)return d=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void c(t||new l("pipe"))}}(e,o,i>0,(function(e){m||(m=e),e&&y.forEach(d),o||(y.forEach(d),v(m))}))}));return t.reduce(f)}},function(e,t,n){var r=n(47),o=n(350),c=n(58).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);function d(){this.init(),this._w=h,o.call(this,64,56)}function f(e){return e<<30|e>>>2}function m(s,b,e,t){return 0===s?b&e|~b&t:2===s?b&e|b&t|e&t:b^e^t}r(d,o),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(e){for(var t,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,c=0|this._e,i=0;i<16;++i)n[i]=e.readInt32BE(4*i);for(;i<80;++i)n[i]=n[i-3]^n[i-8]^n[i-14]^n[i-16];for(var h=0;h<80;++h){var s=~~(h/20),d=0|((t=a)<<5|t>>>27)+m(s,b,r,o)+c+n[h]+l[s];c=o,o=r,r=f(b),b=a,a=d}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},d.prototype._hash=function(){var e=c.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=d},function(e,t,n){var r=n(47),o=n(350),c=n(58).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);function d(){this.init(),this._w=h,o.call(this,64,56)}function f(e){return e<<5|e>>>27}function m(e){return e<<30|e>>>2}function v(s,b,e,t){return 0===s?b&e|~b&t:2===s?b&e|b&t|e&t:b^e^t}r(d,o),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(e){for(var t,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,c=0|this._e,i=0;i<16;++i)n[i]=e.readInt32BE(4*i);for(;i<80;++i)n[i]=(t=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|t>>>31;for(var h=0;h<80;++h){var s=~~(h/20),d=f(a)+v(s,b,r,o)+c+n[h]+l[s]|0;c=o,o=r,r=m(b),b=a,a=d}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},d.prototype._hash=function(){var e=c.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=d},function(e,t,n){var r=n(47),o=n(835),c=n(350),l=n(58).Buffer,h=new Array(64);function d(){this.init(),this._w=h,c.call(this,64,56)}r(d,o),d.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},d.prototype._hash=function(){var e=l.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=d},function(e,t,n){var r=n(47),o=n(836),c=n(350),l=n(58).Buffer,h=new Array(160);function d(){this.init(),this._w=h,c.call(this,128,112)}r(d,o),d.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},d.prototype._hash=function(){var e=l.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=d},function(e,t,n){e.exports=o;var r=n(183).EventEmitter;function o(){r.call(this)}n(47)(o,r),o.Readable=n(583),o.Writable=n(1299),o.Duplex=n(1300),o.Transform=n(1301),o.PassThrough=n(1302),o.Stream=o,o.prototype.pipe=function(e,t){var source=this;function n(t){e.writable&&!1===e.write(t)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(source.on("end",l),source.on("close",h));var c=!1;function l(){c||(c=!0,e.end())}function h(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(f(),0===r.listenerCount(this,"error"))throw e}function f(){source.removeListener("data",n),e.removeListener("drain",o),source.removeListener("end",l),source.removeListener("close",h),source.removeListener("error",d),e.removeListener("error",d),source.removeListener("end",f),source.removeListener("close",f),e.removeListener("close",f)}return source.on("error",d),e.on("error",d),source.on("end",f),source.on("close",f),e.on("close",f),e.emit("pipe",source),e}},,function(e,t,n){"use strict";var r=n(584).Buffer,o=n(1297);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(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,o,c=r.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,n=c,o=i,t.copy(n,o),i+=p.data.length,p=p.next;return c},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,n){"use strict";e.exports=c;var r=n(840),o=Object.create(n(411));function c(e){if(!(this instanceof c))return new c(e);r.call(this,e)}o.inherits=n(47),o.inherits(c,r),c.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(585)},function(e,t,n){e.exports=n(306)},function(e,t,n){e.exports=n(583).Transform},function(e,t,n){e.exports=n(583).PassThrough},function(e,t,n){"use strict";var r=n(47),o=n(58).Buffer,c=n(269),l=o.alloc(128),h=64;function d(e,t){c.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>h?t=e(t):t.length<h&&(t=o.concat([t,l],h));for(var n=this._ipad=o.allocUnsafe(h),r=this._opad=o.allocUnsafe(h),i=0;i<h;i++)n[i]=54^t[i],r[i]=92^t[i];this._hash=[n]}r(d,c),d.prototype._update=function(data){this._hash.push(data)},d.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=d},function(e,t,n){e.exports=n(843)},function(e,t,n){(function(t){var r,o,c=n(58).Buffer,l=n(845),h=n(846),d=n(847),f=n(848),m=t.crypto&&t.crypto.subtle,v={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"},y=[];function w(){return o||(o=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function S(e,t,n,r,o){return m.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return m.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,r<<3)})).then((function(e){return c.from(e)}))}e.exports=function(e,n,o,_,C,O){"function"==typeof C&&(O=C,C=void 0);var A=v[(C=C||"sha1").toLowerCase()];if(A&&"function"==typeof t.Promise){if(l(o,_),e=f(e,h,"Password"),n=f(n,h,"Salt"),"function"!=typeof O)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){w()((function(){t(null,e)}))}),(function(e){w()((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==y[e])return y[e];var n=S(r=r||c.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return y[e]=n,n}(A).then((function(t){return t?S(e,n,o,_,A):d(e,n,o,_,C)})),O)}else w()((function(){var t;try{t=d(e,n,o,_,C)}catch(e){return O(e)}O(null,t)}))}}).call(this,n(67))},function(e,t,n){var r=n(1307),o=n(587),c=n(588),l=n(1320),h=n(485);function d(e,t,n){if(e=e.toLowerCase(),c[e])return o.createCipheriv(e,t,n);if(l[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function f(e,t,n){if(e=e.toLowerCase(),c[e])return o.createDecipheriv(e,t,n);if(l[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(),c[e])n=c[e].key,r=c[e].iv;else{if(!l[e])throw new TypeError("invalid suite type");n=8*l[e].key,r=l[e].iv}var o=h(t,!1,n,r);return d(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=d,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),c[e])n=c[e].key,r=c[e].iv;else{if(!l[e])throw new TypeError("invalid suite type");n=8*l[e].key,r=l[e].iv}var o=h(t,!1,n,r);return f(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=f,t.listCiphers=t.getCiphers=function(){return Object.keys(l).concat(o.getCiphers())}},function(e,t,n){var r=n(269),o=n(1308),c=n(47),l=n(58).Buffer,h={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function d(e){r.call(this);var t,n=e.mode.toLowerCase(),o=h[n];t=e.decrypt?"decrypt":"encrypt";var c=e.key;l.isBuffer(c)||(c=l.from(c)),"des-ede"!==n&&"des-ede-cbc"!==n||(c=l.concat([c,c.slice(0,8)]));var d=e.iv;l.isBuffer(d)||(d=l.from(d)),this._des=o.create({key:c,iv:d,type:t})}h.des=h["des-cbc"],h.des3=h["des-ede3-cbc"],e.exports=d,c(d,r),d.prototype._update=function(data){return l.from(this._des.update(data))},d.prototype._final=function(){return l.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(849),t.Cipher=n(586),t.DES=n(850),t.CBC=n(1309),t.EDE=n(1310)},function(e,t,n){"use strict";var r=n(178),o=n(47),c={};function l(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=e[i]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var n=Object.keys(c),i=0;i<n.length;i++){var r=n[i];t.prototype[r]=c[r]}return t.create=function(e){return new t(e)},t},c._cbcInit=function(){var e=new l(this.options.iv);this._cbcState=e},c._update=function(e,t,n,r){var o=this._cbcState,c=this.constructor.super_.prototype,l=o.iv;if("encrypt"===this.type){for(var i=0;i<this.blockSize;i++)l[i]^=e[t+i];c._update.call(this,l,0,n,r);for(i=0;i<this.blockSize;i++)l[i]=n[r+i]}else{c._update.call(this,e,t,n,r);for(i=0;i<this.blockSize;i++)n[r+i]^=l[i];for(i=0;i<this.blockSize;i++)l[i]=e[t+i]}}},function(e,t,n){"use strict";var r=n(178),o=n(47),c=n(586),l=n(850);function h(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),o=t.slice(8,16),c=t.slice(16,24);this.ciphers="encrypt"===e?[l.create({type:"encrypt",key:n}),l.create({type:"decrypt",key:o}),l.create({type:"encrypt",key:c})]:[l.create({type:"decrypt",key:c}),l.create({type:"encrypt",key:o}),l.create({type:"decrypt",key:n})]}function d(e){c.call(this,e);var t=new h(this.type,this.options.key);this._edeState=t}o(d,c),e.exports=d,d.create=function(e){return new d(e)},d.prototype._update=function(e,t,n,r){var o=this._edeState;o.ciphers[0]._update(e,t,n,r),o.ciphers[1]._update(n,r,n,r),o.ciphers[2]._update(n,r,n,r)},d.prototype._pad=l.prototype._pad,d.prototype._unpad=l.prototype._unpad},function(e,t,n){var r=n(588),o=n(854),c=n(58).Buffer,l=n(855),h=n(269),d=n(484),f=n(485);function m(e,t,n){h.call(this),this._cache=new y,this._cipher=new d.AES(t),this._prev=c.from(n),this._mode=e,this._autopadding=!0}n(47)(m,h),m.prototype._update=function(data){var e,t;this._cache.add(data);for(var n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return c.concat(n)};var v=c.alloc(16,16);function y(){this.cache=c.allocUnsafe(0)}function w(e,t,n){var h=r[e.toLowerCase()];if(!h)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=c.from(t)),t.length!==h.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=c.from(n)),"GCM"!==h.mode&&n.length!==h.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===h.type?new l(h.module,t,n):"auth"===h.type?new o(h.module,t,n):new m(h.module,t,n)}m.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(v))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},y.prototype.add=function(data){this.cache=c.concat([this.cache,data])},y.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},y.prototype.flush=function(){for(var e=16-this.cache.length,t=c.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return c.concat([this.cache,t])},t.createCipheriv=w,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=f(t,!1,n.key,n.iv);return w(e,o.key,o.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(412);t.encrypt=function(e,t){var data=r(t,e._prev);return e._prev=e._cipher.encryptBlock(data),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return r(o,n)}},function(e,t,n){var r=n(58).Buffer,o=n(412);function c(e,data,t){var n=data.length,c=o(data,e._cache);return e._cache=e._cache.slice(n),e._prev=r.concat([e._prev,t?data:c]),c}t.encrypt=function(e,data,t){for(var n,o=r.allocUnsafe(0);data.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=data.length)){o=r.concat([o,c(e,data,t)]);break}n=e._cache.length,o=r.concat([o,c(e,data.slice(0,n),t)]),data=data.slice(n)}return o}},function(e,t,n){var r=n(58).Buffer;function o(e,t,n){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:o])]),o}t.encrypt=function(e,t,n){for(var c=t.length,l=r.allocUnsafe(c),i=-1;++i<c;)l[i]=o(e,t[i],n);return l}},function(e,t,n){var r=n(58).Buffer;function o(e,t,n){for(var r,o,i=-1,l=0;++i<8;)r=t&1<<7-i?128:0,l+=(128&(o=e._cipher.encryptBlock(e._prev)[0]^r))>>i%8,e._prev=c(e._prev,n?r:o);return l}function c(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 c=t.length,l=r.allocUnsafe(c),i=-1;++i<c;)l[i]=o(e,t[i],n);return l}},function(e,t,n){(function(e){var r=n(412);function o(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,o(t)]);var c=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,c)}}).call(this,n(46).Buffer)},function(e,t,n){var r=n(58).Buffer,o=r.alloc(16,0);function c(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 l(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}l.prototype.ghash=function(e){for(var i=-1;++i<e.length;)this.state[i]^=e[i];this._multiply()},l.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(o[0]^=r[0],o[1]^=r[1],o[2]^=r[2],o[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=c(o)},l.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)},l.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(c([0,e,0,t])),this.state},e.exports=l},function(e,t,n){var r=n(854),o=n(58).Buffer,c=n(588),l=n(855),h=n(269),d=n(484),f=n(485);function m(e,t,n){h.call(this),this._cache=new v,this._last=void 0,this._cipher=new d.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function v(){this.cache=o.allocUnsafe(0)}function y(e,t,n){var h=c[e.toLowerCase()];if(!h)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==h.mode&&n.length!==h.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==h.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===h.type?new l(h.module,t,n,!0):"auth"===h.type?new r(h.module,t,n,!0):new m(h.module,t,n)}n(47)(m,h),m.prototype._update=function(data){var e,t;this._cache.add(data);for(var n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return o.concat(n)},m.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 i=-1;for(;++i<t;)if(e[i+(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")},m.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},v.prototype.add=function(data){this.cache=o.concat([this.cache,data])},v.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},v.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=c[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=f(t,!1,n.key,n.iv);return y(e,r.key,r.iv)},t.createDecipheriv=y},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(856),o=n(1324),c=n(1325);var l={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new c(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,o,h,d){return e.isBuffer(o)||void 0===l[o]?t(n,"binary",o,h):(o=o||"binary",d=d||"binary",h=h||new e([2]),e.isBuffer(h)||(h=new e(h,d)),"number"==typeof n?new c(r(n,h),h,!0):(e.isBuffer(n)||(n=new e(n,o)),new c(n,h,!0)))}}).call(this,n(46).Buffer)},,,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(125),o=new(n(857)),c=new r(24),l=new r(11),h=new r(10),d=new r(3),f=new r(7),m=n(856),v=n(347);function y(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function w(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=_;var S={};function _(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=y,this.setPrivateKey=w):this._primeCode=8}function C(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(_.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 S)return S[r];var v,y=0;if(e.isEven()||!m.simpleSieve||!m.fermatTest(e)||!o.test(e))return y+=1,y+="02"===n||"05"===n?8:4,S[r]=y,y;switch(o.test(e.shrn(1))||(y+=2),n){case"02":e.mod(c).cmp(l)&&(y+=8);break;case"05":(v=e.mod(h)).cmp(d)&&v.cmp(f)&&(y+=8);break;default:y+=4}return S[r]=y,y}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new r(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(n.toArray()),c=this.getPrime();if(o.length<c.length){var l=new t(c.length-o.length);l.fill(0),o=t.concat([l,o])}return o},_.prototype.getPublicKey=function(e){return C(this._pub,e)},_.prototype.getPrivateKey=function(e){return C(this._priv,e)},_.prototype.getPrime=function(e){return C(this.__prime,e)},_.prototype.getGenerator=function(e){return C(this._gen,e)},_.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(46).Buffer)},function(e,t,n){var r=n(58).Buffer,o=n(410),c=n(1327),l=n(47),h=n(1335),d=n(1366),f=n(843);function m(e){c.Writable.call(this);var data=f[e];if(!data)throw new Error("Unknown message digest");this._hashType=data.hash,this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function v(e){c.Writable.call(this);var data=f[e];if(!data)throw new Error("Unknown message digest");this._hash=o(data.hash),this._tag=data.id,this._signType=data.sign}function y(e){return new m(e)}function w(e){return new v(e)}Object.keys(f).forEach((function(e){f[e].id=r.from(f[e].id,"hex"),f[e.toLowerCase()]=f[e]})),l(m,c.Writable),m.prototype._write=function(data,e,t){this._hash.update(data),t()},m.prototype.update=function(data,e){return"string"==typeof data&&(data=r.from(data,e)),this._hash.update(data),this},m.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=h(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},l(v,c.Writable),v.prototype._write=function(data,e,t){this._hash.update(data),t()},v.prototype.update=function(data,e){return"string"==typeof data&&(data=r.from(data,e)),this._hash.update(data),this},v.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var o=this._hash.digest();return d(t,o,e,this._signType,this._tag)},e.exports={Sign:y,Verify:w,createSign:y,createVerify:w}},function(e,t,n){(t=e.exports=n(858)).Stream=t,t.Readable=t,t.Writable=n(862),t.Duplex=n(352),t.Transform=n(863),t.PassThrough=n(1333),t.finished=n(590),t.pipeline=n(1334)},,function(e,t,n){"use strict";function r(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?r(Object(source),!0).forEach((function(t){c(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function c(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(input,e){if("object"!=typeof input||null===input)return input;var t=input[Symbol.toPrimitive];if(void 0!==t){var n=t.call(input,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(input)}(e,"string");return"symbol"==typeof t?t:String(t)}var d=n(46).Buffer,f=n(1330).inspect,m=f&&f.custom||"inspect";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}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e}},{key:"concat",value:function(e){if(0===this.length)return d.alloc(0);for(var t,n,r,o=d.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,n=o,r=i,d.prototype.copy.call(t,n,r),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var p=this.head,t=1,n=p.data;for(e-=n.length;p=p.next;){var r=p.data,o=e>r.length?r.length:e;if(o===r.length?n+=r:n+=r.slice(0,e),0==(e-=o)){o===r.length?(++t,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++t}return this.length-=t,n}},{key:"_getBuffer",value:function(e){var t=d.allocUnsafe(e),p=this.head,n=1;for(p.data.copy(t),e-=p.data.length;p=p.next;){var r=p.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),0==(e-=o)){o===r.length?(++n,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++n}return this.length-=n,t}},{key:m,value:function(e,t){return f(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},,function(e,t,n){"use strict";(function(t){var r;function o(e,t,n){return(t=function(e){var t=function(input,e){if("object"!=typeof input||null===input)return input;var t=input[Symbol.toPrimitive];if(void 0!==t){var n=t.call(input,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(input)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(590),l=Symbol("lastResolve"),h=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),m=Symbol("lastPromise"),v=Symbol("handlePromise"),y=Symbol("stream");function w(e,t){return{value:e,done:t}}function S(e){var t=e[l];if(null!==t){var data=e[y].read();null!==data&&(e[m]=null,e[l]=null,e[h]=null,t(w(data,!1)))}}function _(e){t.nextTick(S,e)}var C=Object.getPrototypeOf((function(){})),O=Object.setPrototypeOf((o(r={get stream(){return this[y]},next:function(){var e=this,n=this[d];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(w(void 0,!0));if(this[y].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[d]?r(e[d]):n(w(void 0,!0))}))}));var r,o=this[m];if(o)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[f]?n(w(void 0,!0)):t[v](n,r)}),r)}}(o,this));else{var data=this[y].read();if(null!==data)return Promise.resolve(w(data,!1));r=new Promise(this[v])}return this[m]=r,r}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[y].destroy(null,(function(e){e?n(e):t(w(void 0,!0))}))}))})),r),C);e.exports=function(e){var t,n=Object.create(O,(o(t={},y,{value:e,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,h,{value:null,writable:!0}),o(t,d,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,v,{value:function(e,t){var data=n[y].read();data?(n[m]=null,n[l]=null,n[h]=null,e(w(data,!1))):(n[l]=e,n[h]=t)},writable:!0}),t));return n[m]=null,c(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[h];return null!==t&&(n[m]=null,n[l]=null,n[h]=null,t(e)),void(n[d]=e)}var r=n[l];null!==r&&(n[m]=null,n[l]=null,n[h]=null,r(w(void 0,!0))),n[f]=!0})),e.on("readable",_.bind(null,n)),n}}).call(this,n(83))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,n){"use strict";e.exports=o;var r=n(863);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}n(47)(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r;var o=n(351).codes,c=o.ERR_MISSING_ARGS,l=o.ERR_STREAM_DESTROYED;function h(e){if(e)throw e}function d(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var m,v=function(e){return e.length?"function"!=typeof e[e.length-1]?h:e.pop():h}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new c("streams");var y=t.map((function(e,i){var o=i<t.length-1;return function(e,t,o,c){c=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(c);var h=!1;e.on("close",(function(){h=!0})),void 0===r&&(r=n(590)),r(e,{readable:t,writable:o},(function(e){if(e)return c(e);h=!0,c()}));var d=!1;return function(t){if(!h&&!d)return d=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void c(t||new l("pipe"))}}(e,o,i>0,(function(e){m||(m=e),e&&y.forEach(d),o||(y.forEach(d),v(m))}))}));return t.reduce(f)}},function(e,t,n){var r=n(58).Buffer,o=n(841),c=n(591),l=n(592).ec,h=n(869),d=n(488),f=n(875);function m(e,q,t,n){if((e=r.from(e.toArray())).length<q.byteLength()){var c=r.alloc(q.byteLength()-e.length);e=r.concat([c,e])}var l=t.length,h=function(e,q){e=v(e,q),e=e.mod(q);var t=r.from(e.toArray());if(t.length<q.byteLength()){var n=r.alloc(q.byteLength()-t.length);t=r.concat([n,t])}return t}(t,q),d=r.alloc(l);d.fill(1);var f=r.alloc(l);return f=o(n,f).update(d).update(r.from([0])).update(e).update(h).digest(),d=o(n,f).update(d).digest(),{k:f=o(n,f).update(d).update(r.from([1])).update(e).update(h).digest(),v:d=o(n,f).update(d).digest()}}function v(e,q){var t=new h(e),n=(e.length<<3)-q.bitLength();return n>0&&t.ishrn(n),t}function y(q,e,t){var n,c;do{for(n=r.alloc(0);8*n.length<q.bitLength();)e.v=o(t,e.k).update(e.v).digest(),n=r.concat([n,e.v]);c=v(n,q),e.k=o(t,e.k).update(e.v).update(r.from([0])).digest(),e.v=o(t,e.k).update(e.v).digest()}while(-1!==c.cmp(q));return c}function w(g,e,p,q){return g.toRed(h.mont(p)).redPow(e).fromRed().mod(q)}e.exports=function(e,t,n,o,S){var _=d(t);if(_.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(e,t){var n=f[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var o=new l(n).keyFromPrivate(t.privateKey),c=o.sign(e);return r.from(c.toDER())}(e,_)}if("dsa"===_.type){if("dsa"!==o)throw new Error("wrong private key type");return function(e,t,n){var o,c=t.params.priv_key,p=t.params.p,q=t.params.q,g=t.params.g,l=new h(0),d=v(e,q).mod(q),s=!1,f=m(c,q,e,n);for(;!1===s;)l=w(g,o=y(q,f,n),p,q),0===(s=o.invm(q).imul(d.add(c.mul(l))).mod(q)).cmpn(0)&&(s=!1,l=new h(0));return function(e,s){e=e.toArray(),s=s.toArray(),128&e[0]&&(e=[0].concat(e));128&s[0]&&(s=[0].concat(s));var t=e.length+s.length+4,n=[48,t,2,e.length];return n=n.concat(e,[2,s.length],s),r.from(n)}(l,s)}(e,_,n)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=r.concat([S,e]);for(var C=_.modulus.byteLength(),O=[0,1];e.length+O.length+1<C;)O.push(255);O.push(0);for(var i=-1;++i<e.length;)O.push(e[i]);return c(O,_)},e.exports.getKey=m,e.exports.makeKey=y},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function c(e,base,t){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==base&&"be"!==base||(t=base,base=10),this._init(e||0,base||10,t||"be"))}var l;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(1337).Buffer}catch(e){}function h(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function d(e,t,n){var r=h(e,n);return n-1>=t&&(r|=h(e,n-1)<<4),r}function f(e,t,n,o){for(var c=0,b=0,l=Math.min(e.length,n),i=t;i<l;i++){var h=e.charCodeAt(i)-48;c*=o,b=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&b<o,"Invalid character"),c+=b}return c}function m(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===base?this._parseHex(e,n,t):(this._parseBase(e,base,n),"le"===t&&this._initArray(this.toArray(),base,t)))},c.prototype._initNumber=function(e,base,t){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"===t&&this._initArray(this.toArray(),base,t)},c.prototype._initArray=function(e,base,t){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 n,o,c=0;if("be"===t)for(i=e.length-1,n=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===t)for(i=0,n=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this._strip()},c.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,o=0,c=0;if("be"===n)for(i=e.length-1;i>=t;i-=2)r=d(e,t,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)r=d(e,t,i)<<o,this.words[c]|=67108863&r,o>=18?(o-=18,c+=1,this.words[c]|=r>>>26):o+=8;this._strip()},c.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=e.length-t,c=o%n,l=Math.min(o,o-c)+t,h=0,i=t;i<l;i+=n)h=f(e,i,i+n,base),this.imuln(r),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==c){var d=1;for(h=f(e,i,e.length,base),i=0;i<c;i++)d*=base;this.imuln(d),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},c.prototype.copy=function(e){e.words=new Array(this.length);for(var i=0;i<this.length;i++)e.words[i]=this.words[i];e.length=this.length,e.negative=this.negative,e.red=this.red},c.prototype._move=function(e){m(e,this)},c.prototype.clone=function(){var e=new c(null);return this.copy(e),e},c.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},c.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{c.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch(e){c.prototype.inspect=v}else c.prototype.inspect=v;function v(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var y=["","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"],w=[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],S=[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];c.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var n=0,o=0,i=0;i<this.length;i++){var c=this.words[i],l=(16777215&(c<<n|o)).toString(16);o=c>>>24-n&16777215,(n+=2)>=26&&(n-=26,i--),t=0!==o||i!==this.length-1?y[6-l.length]+l+t:l+t}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var h=w[base],d=S[base];t="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(d).toString(base);t=(f=f.idivn(d)).isZero()?m+t:y[h-m.length]+m+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}r(!1,"Base should be between 2 and 36")},c.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},c.prototype.toJSON=function(){return this.toString(16,2)},l&&(c.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function _(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,c=67108863&o,l=o/67108864|0;n.words[0]=c;for(var h=1;h<r;h++){for(var d=l>>>26,f=67108863&l,m=Math.min(h,t.length-1),v=Math.max(0,h-e.length+1);v<=m;v++){var i=h-v|0;d+=(o=(a=0|e.words[i])*(b=0|t.words[v])+f)/67108864|0,f=67108863&o}n.words[h]=0|f,l=0|d}return 0!==l?n.words[h]=0|l:n.length--,n._strip()}c.prototype.toArrayLike=function(e,t,n){this._strip();var o=this.byteLength(),c=n||Math.max(1,o);r(o<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0");var l=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,c);return this["_toArrayLike"+("le"===t?"LE":"BE")](l,o),l},c.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;e[n++]=255&c,n<e.length&&(e[n++]=c>>8&255),n<e.length&&(e[n++]=c>>16&255),6===o?(n<e.length&&(e[n++]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},c.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var c=this.words[i]<<o|r;e[n--]=255&c,n>=0&&(e[n--]=c>>8&255),n>=0&&(e[n--]=c>>16&255),6===o?(n>=0&&(e[n--]=c>>24&255),r=0,o=0):(r=c>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.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},c.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},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(e+=b,26!==b)break}return e},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},c.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return 0!==this.negative},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]|e.words[i];return this._strip()},c.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},c.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=b.length,this._strip()},c.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},c.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip()},c.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},c.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.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()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip()},c.prototype.iadd=function(e){var t,a,b;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?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i<b.length;i++)t=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&t,n=t>>>26;for(;0!==n&&i<a.length;i++)t=(0|a.words[i])+n,this.words[i]=67108863&t,n=t>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},c.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)},c.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 a,b,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i<b.length;i++)r=(t=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&t;for(;0!==r&&i<a.length;i++)r=(t=(0|a.words[i])+r)>>26,this.words[i]=67108863&t;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip()},c.prototype.sub=function(e){return this.clone().isub(e)};var C=function(e,t,n){var r,o,c,a=e.words,b=t.words,l=n.words,h=0,d=0|a[0],f=8191&d,m=d>>>13,v=0|a[1],y=8191&v,w=v>>>13,S=0|a[2],_=8191&S,C=S>>>13,O=0|a[3],A=8191&O,T=O>>>13,E=0|a[4],P=8191&E,M=E>>>13,x=0|a[5],k=8191&x,I=x>>>13,R=0|a[6],j=8191&R,D=R>>>13,N=0|a[7],L=8191&N,B=N>>>13,U=0|a[8],F=8191&U,z=U>>>13,$=0|a[9],H=8191&$,G=$>>>13,V=0|b[0],W=8191&V,K=V>>>13,Y=0|b[1],X=8191&Y,J=Y>>>13,Z=0|b[2],Q=8191&Z,ee=Z>>>13,te=0|b[3],ne=8191&te,re=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],ce=8191&se,ue=se>>>13,le=0|b[6],he=8191&le,de=le>>>13,fe=0|b[7],pe=8191&fe,me=fe>>>13,ge=0|b[8],ve=8191&ge,be=ge>>>13,ye=0|b[9],we=8191&ye,Se=ye>>>13;n.negative=e.negative^t.negative,n.length=19;var _e=(h+(r=Math.imul(f,W))|0)+((8191&(o=(o=Math.imul(f,K))+Math.imul(m,W)|0))<<13)|0;h=((c=Math.imul(m,K))+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(y,W),o=(o=Math.imul(y,K))+Math.imul(w,W)|0,c=Math.imul(w,K);var Ce=(h+(r=r+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,J)|0)+Math.imul(m,X)|0))<<13)|0;h=((c=c+Math.imul(m,J)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(_,W),o=(o=Math.imul(_,K))+Math.imul(C,W)|0,c=Math.imul(C,K),r=r+Math.imul(y,X)|0,o=(o=o+Math.imul(y,J)|0)+Math.imul(w,X)|0,c=c+Math.imul(w,J)|0;var Oe=(h+(r=r+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(m,Q)|0))<<13)|0;h=((c=c+Math.imul(m,ee)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(A,W),o=(o=Math.imul(A,K))+Math.imul(T,W)|0,c=Math.imul(T,K),r=r+Math.imul(_,X)|0,o=(o=o+Math.imul(_,J)|0)+Math.imul(C,X)|0,c=c+Math.imul(C,J)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(w,Q)|0,c=c+Math.imul(w,ee)|0;var Ae=(h+(r=r+Math.imul(f,ne)|0)|0)+((8191&(o=(o=o+Math.imul(f,re)|0)+Math.imul(m,ne)|0))<<13)|0;h=((c=c+Math.imul(m,re)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(P,W),o=(o=Math.imul(P,K))+Math.imul(M,W)|0,c=Math.imul(M,K),r=r+Math.imul(A,X)|0,o=(o=o+Math.imul(A,J)|0)+Math.imul(T,X)|0,c=c+Math.imul(T,J)|0,r=r+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(C,Q)|0,c=c+Math.imul(C,ee)|0,r=r+Math.imul(y,ne)|0,o=(o=o+Math.imul(y,re)|0)+Math.imul(w,ne)|0,c=c+Math.imul(w,re)|0;var Te=(h+(r=r+Math.imul(f,oe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(m,oe)|0))<<13)|0;h=((c=c+Math.imul(m,ae)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(k,W),o=(o=Math.imul(k,K))+Math.imul(I,W)|0,c=Math.imul(I,K),r=r+Math.imul(P,X)|0,o=(o=o+Math.imul(P,J)|0)+Math.imul(M,X)|0,c=c+Math.imul(M,J)|0,r=r+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,o=(o=o+Math.imul(_,re)|0)+Math.imul(C,ne)|0,c=c+Math.imul(C,re)|0,r=r+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(w,oe)|0,c=c+Math.imul(w,ae)|0;var Ee=(h+(r=r+Math.imul(f,ce)|0)|0)+((8191&(o=(o=o+Math.imul(f,ue)|0)+Math.imul(m,ce)|0))<<13)|0;h=((c=c+Math.imul(m,ue)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(j,W),o=(o=Math.imul(j,K))+Math.imul(D,W)|0,c=Math.imul(D,K),r=r+Math.imul(k,X)|0,o=(o=o+Math.imul(k,J)|0)+Math.imul(I,X)|0,c=c+Math.imul(I,J)|0,r=r+Math.imul(P,Q)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(M,Q)|0,c=c+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,o=(o=o+Math.imul(A,re)|0)+Math.imul(T,ne)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(C,oe)|0,c=c+Math.imul(C,ae)|0,r=r+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(w,ce)|0,c=c+Math.imul(w,ue)|0;var Pe=(h+(r=r+Math.imul(f,he)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(m,he)|0))<<13)|0;h=((c=c+Math.imul(m,de)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,W),o=(o=Math.imul(L,K))+Math.imul(B,W)|0,c=Math.imul(B,K),r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,J)|0)+Math.imul(D,X)|0,c=c+Math.imul(D,J)|0,r=r+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(I,Q)|0,c=c+Math.imul(I,ee)|0,r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(M,ne)|0,c=c+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,o=(o=o+Math.imul(A,ae)|0)+Math.imul(T,oe)|0,c=c+Math.imul(T,ae)|0,r=r+Math.imul(_,ce)|0,o=(o=o+Math.imul(_,ue)|0)+Math.imul(C,ce)|0,c=c+Math.imul(C,ue)|0,r=r+Math.imul(y,he)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(w,he)|0,c=c+Math.imul(w,de)|0;var Me=(h+(r=r+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,me)|0)+Math.imul(m,pe)|0))<<13)|0;h=((c=c+Math.imul(m,me)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,W),o=(o=Math.imul(F,K))+Math.imul(z,W)|0,c=Math.imul(z,K),r=r+Math.imul(L,X)|0,o=(o=o+Math.imul(L,J)|0)+Math.imul(B,X)|0,c=c+Math.imul(B,J)|0,r=r+Math.imul(j,Q)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(D,Q)|0,c=c+Math.imul(D,ee)|0,r=r+Math.imul(k,ne)|0,o=(o=o+Math.imul(k,re)|0)+Math.imul(I,ne)|0,c=c+Math.imul(I,re)|0,r=r+Math.imul(P,oe)|0,o=(o=o+Math.imul(P,ae)|0)+Math.imul(M,oe)|0,c=c+Math.imul(M,ae)|0,r=r+Math.imul(A,ce)|0,o=(o=o+Math.imul(A,ue)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ue)|0,r=r+Math.imul(_,he)|0,o=(o=o+Math.imul(_,de)|0)+Math.imul(C,he)|0,c=c+Math.imul(C,de)|0,r=r+Math.imul(y,pe)|0,o=(o=o+Math.imul(y,me)|0)+Math.imul(w,pe)|0,c=c+Math.imul(w,me)|0;var xe=(h+(r=r+Math.imul(f,ve)|0)|0)+((8191&(o=(o=o+Math.imul(f,be)|0)+Math.imul(m,ve)|0))<<13)|0;h=((c=c+Math.imul(m,be)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(H,W),o=(o=Math.imul(H,K))+Math.imul(G,W)|0,c=Math.imul(G,K),r=r+Math.imul(F,X)|0,o=(o=o+Math.imul(F,J)|0)+Math.imul(z,X)|0,c=c+Math.imul(z,J)|0,r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(B,Q)|0,c=c+Math.imul(B,ee)|0,r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(D,ne)|0,c=c+Math.imul(D,re)|0,r=r+Math.imul(k,oe)|0,o=(o=o+Math.imul(k,ae)|0)+Math.imul(I,oe)|0,c=c+Math.imul(I,ae)|0,r=r+Math.imul(P,ce)|0,o=(o=o+Math.imul(P,ue)|0)+Math.imul(M,ce)|0,c=c+Math.imul(M,ue)|0,r=r+Math.imul(A,he)|0,o=(o=o+Math.imul(A,de)|0)+Math.imul(T,he)|0,c=c+Math.imul(T,de)|0,r=r+Math.imul(_,pe)|0,o=(o=o+Math.imul(_,me)|0)+Math.imul(C,pe)|0,c=c+Math.imul(C,me)|0,r=r+Math.imul(y,ve)|0,o=(o=o+Math.imul(y,be)|0)+Math.imul(w,ve)|0,c=c+Math.imul(w,be)|0;var ke=(h+(r=r+Math.imul(f,we)|0)|0)+((8191&(o=(o=o+Math.imul(f,Se)|0)+Math.imul(m,we)|0))<<13)|0;h=((c=c+Math.imul(m,Se)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,X),o=(o=Math.imul(H,J))+Math.imul(G,X)|0,c=Math.imul(G,J),r=r+Math.imul(F,Q)|0,o=(o=o+Math.imul(F,ee)|0)+Math.imul(z,Q)|0,c=c+Math.imul(z,ee)|0,r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(B,ne)|0,c=c+Math.imul(B,re)|0,r=r+Math.imul(j,oe)|0,o=(o=o+Math.imul(j,ae)|0)+Math.imul(D,oe)|0,c=c+Math.imul(D,ae)|0,r=r+Math.imul(k,ce)|0,o=(o=o+Math.imul(k,ue)|0)+Math.imul(I,ce)|0,c=c+Math.imul(I,ue)|0,r=r+Math.imul(P,he)|0,o=(o=o+Math.imul(P,de)|0)+Math.imul(M,he)|0,c=c+Math.imul(M,de)|0,r=r+Math.imul(A,pe)|0,o=(o=o+Math.imul(A,me)|0)+Math.imul(T,pe)|0,c=c+Math.imul(T,me)|0,r=r+Math.imul(_,ve)|0,o=(o=o+Math.imul(_,be)|0)+Math.imul(C,ve)|0,c=c+Math.imul(C,be)|0;var Ie=(h+(r=r+Math.imul(y,we)|0)|0)+((8191&(o=(o=o+Math.imul(y,Se)|0)+Math.imul(w,we)|0))<<13)|0;h=((c=c+Math.imul(w,Se)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(H,Q),o=(o=Math.imul(H,ee))+Math.imul(G,Q)|0,c=Math.imul(G,ee),r=r+Math.imul(F,ne)|0,o=(o=o+Math.imul(F,re)|0)+Math.imul(z,ne)|0,c=c+Math.imul(z,re)|0,r=r+Math.imul(L,oe)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(B,oe)|0,c=c+Math.imul(B,ae)|0,r=r+Math.imul(j,ce)|0,o=(o=o+Math.imul(j,ue)|0)+Math.imul(D,ce)|0,c=c+Math.imul(D,ue)|0,r=r+Math.imul(k,he)|0,o=(o=o+Math.imul(k,de)|0)+Math.imul(I,he)|0,c=c+Math.imul(I,de)|0,r=r+Math.imul(P,pe)|0,o=(o=o+Math.imul(P,me)|0)+Math.imul(M,pe)|0,c=c+Math.imul(M,me)|0,r=r+Math.imul(A,ve)|0,o=(o=o+Math.imul(A,be)|0)+Math.imul(T,ve)|0,c=c+Math.imul(T,be)|0;var Re=(h+(r=r+Math.imul(_,we)|0)|0)+((8191&(o=(o=o+Math.imul(_,Se)|0)+Math.imul(C,we)|0))<<13)|0;h=((c=c+Math.imul(C,Se)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(H,ne),o=(o=Math.imul(H,re))+Math.imul(G,ne)|0,c=Math.imul(G,re),r=r+Math.imul(F,oe)|0,o=(o=o+Math.imul(F,ae)|0)+Math.imul(z,oe)|0,c=c+Math.imul(z,ae)|0,r=r+Math.imul(L,ce)|0,o=(o=o+Math.imul(L,ue)|0)+Math.imul(B,ce)|0,c=c+Math.imul(B,ue)|0,r=r+Math.imul(j,he)|0,o=(o=o+Math.imul(j,de)|0)+Math.imul(D,he)|0,c=c+Math.imul(D,de)|0,r=r+Math.imul(k,pe)|0,o=(o=o+Math.imul(k,me)|0)+Math.imul(I,pe)|0,c=c+Math.imul(I,me)|0,r=r+Math.imul(P,ve)|0,o=(o=o+Math.imul(P,be)|0)+Math.imul(M,ve)|0,c=c+Math.imul(M,be)|0;var je=(h+(r=r+Math.imul(A,we)|0)|0)+((8191&(o=(o=o+Math.imul(A,Se)|0)+Math.imul(T,we)|0))<<13)|0;h=((c=c+Math.imul(T,Se)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(H,oe),o=(o=Math.imul(H,ae))+Math.imul(G,oe)|0,c=Math.imul(G,ae),r=r+Math.imul(F,ce)|0,o=(o=o+Math.imul(F,ue)|0)+Math.imul(z,ce)|0,c=c+Math.imul(z,ue)|0,r=r+Math.imul(L,he)|0,o=(o=o+Math.imul(L,de)|0)+Math.imul(B,he)|0,c=c+Math.imul(B,de)|0,r=r+Math.imul(j,pe)|0,o=(o=o+Math.imul(j,me)|0)+Math.imul(D,pe)|0,c=c+Math.imul(D,me)|0,r=r+Math.imul(k,ve)|0,o=(o=o+Math.imul(k,be)|0)+Math.imul(I,ve)|0,c=c+Math.imul(I,be)|0;var De=(h+(r=r+Math.imul(P,we)|0)|0)+((8191&(o=(o=o+Math.imul(P,Se)|0)+Math.imul(M,we)|0))<<13)|0;h=((c=c+Math.imul(M,Se)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(H,ce),o=(o=Math.imul(H,ue))+Math.imul(G,ce)|0,c=Math.imul(G,ue),r=r+Math.imul(F,he)|0,o=(o=o+Math.imul(F,de)|0)+Math.imul(z,he)|0,c=c+Math.imul(z,de)|0,r=r+Math.imul(L,pe)|0,o=(o=o+Math.imul(L,me)|0)+Math.imul(B,pe)|0,c=c+Math.imul(B,me)|0,r=r+Math.imul(j,ve)|0,o=(o=o+Math.imul(j,be)|0)+Math.imul(D,ve)|0,c=c+Math.imul(D,be)|0;var Ne=(h+(r=r+Math.imul(k,we)|0)|0)+((8191&(o=(o=o+Math.imul(k,Se)|0)+Math.imul(I,we)|0))<<13)|0;h=((c=c+Math.imul(I,Se)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(H,he),o=(o=Math.imul(H,de))+Math.imul(G,he)|0,c=Math.imul(G,de),r=r+Math.imul(F,pe)|0,o=(o=o+Math.imul(F,me)|0)+Math.imul(z,pe)|0,c=c+Math.imul(z,me)|0,r=r+Math.imul(L,ve)|0,o=(o=o+Math.imul(L,be)|0)+Math.imul(B,ve)|0,c=c+Math.imul(B,be)|0;var Le=(h+(r=r+Math.imul(j,we)|0)|0)+((8191&(o=(o=o+Math.imul(j,Se)|0)+Math.imul(D,we)|0))<<13)|0;h=((c=c+Math.imul(D,Se)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(H,pe),o=(o=Math.imul(H,me))+Math.imul(G,pe)|0,c=Math.imul(G,me),r=r+Math.imul(F,ve)|0,o=(o=o+Math.imul(F,be)|0)+Math.imul(z,ve)|0,c=c+Math.imul(z,be)|0;var Be=(h+(r=r+Math.imul(L,we)|0)|0)+((8191&(o=(o=o+Math.imul(L,Se)|0)+Math.imul(B,we)|0))<<13)|0;h=((c=c+Math.imul(B,Se)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(H,ve),o=(o=Math.imul(H,be))+Math.imul(G,ve)|0,c=Math.imul(G,be);var Ue=(h+(r=r+Math.imul(F,we)|0)|0)+((8191&(o=(o=o+Math.imul(F,Se)|0)+Math.imul(z,we)|0))<<13)|0;h=((c=c+Math.imul(z,Se)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Fe=(h+(r=Math.imul(H,we))|0)+((8191&(o=(o=Math.imul(H,Se))+Math.imul(G,we)|0))<<13)|0;return h=((c=Math.imul(G,Se))+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,l[0]=_e,l[1]=Ce,l[2]=Oe,l[3]=Ae,l[4]=Te,l[5]=Ee,l[6]=Pe,l[7]=Me,l[8]=xe,l[9]=ke,l[10]=Ie,l[11]=Re,l[12]=je,l[13]=De,l[14]=Ne,l[15]=Le,l[16]=Be,l[17]=Ue,l[18]=Fe,0!==h&&(l[19]=h,n.length++),n};function O(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,c=0;c<n.length-1;c++){var l=o;o=0;for(var h=67108863&r,d=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=d;f++){var i=c-f,m=(0|e.words[i])*(0|t.words[f]),v=67108863&m;h=67108863&(v=v+h|0),o+=(l=(l=l+(m/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}n.words[c]=h,r=l,l=o}return 0!==r?n.words[c]=r:n.length--,n._strip()}function A(e,t,n){return O(e,t,n)}function T(e,t){this.x=e,this.y=t}Math.imul||(C=_),c.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?C(this,e,t):n<63?_(this,e,t):n<1024?O(this,e,t):A(this,e,t)},T.prototype.makeRBT=function(e){for(var t=new Array(e),n=c.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},T.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},T.prototype.permute=function(e,t,n,r,o,c){for(var i=0;i<c;i++)r[i]=t[e[i]],o[i]=n[e[i]]},T.prototype.transform=function(e,t,n,r,o,c){this.permute(c,e,t,n,r,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,h=Math.cos(2*Math.PI/l),d=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var f=h,m=d,v=0;v<s;v++){var y=n[p+v],w=r[p+v],S=n[p+v+s],_=r[p+v+s],C=f*S-m*_;_=f*_+m*S,S=C,n[p+v]=y+S,r[p+v]=w+_,n[p+v+s]=y-S,r[p+v+s]=w-_,v!==l&&(C=h*f-d*m,m=h*m+d*f,f=C)}},T.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},T.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=e[i];e[i]=e[n-i-1],e[n-i-1]=r,r=t[i],t[i]=-t[n-i-1],t[n-i-1]=-r}},T.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var r=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&r,n=r<67108864?0:r/67108864|0}return e},T.prototype.convert13b=function(e,t,n,o){for(var c=0,i=0;i<t;i++)c+=0|e[i],n[2*i]=8191&c,c>>>=13,n[2*i+1]=8191&c,c>>>=13;for(i=2*t;i<o;++i)n[i]=0;r(0===c),r(0==(-8192&c))},T.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},T.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),c=this.stub(r),l=new Array(r),h=new Array(r),d=new Array(r),f=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(e.words,e.length,l,r),this.convert13b(t.words,t.length,f,r),this.transform(l,c,h,d,r,o),this.transform(f,c,m,v,r,o);for(var i=0;i<r;i++){var w=h[i]*m[i]-d[i]*v[i];d[i]=h[i]*v[i]+d[i]*m[i],h[i]=w}return this.conjugate(h,d,r),this.transform(h,d,y,c,r,o),this.conjugate(y,c,r),this.normalize13b(y,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},c.prototype.mul=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},c.prototype.mulf=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),A(this,e,t)},c.prototype.imul=function(e){return this.clone().mulTo(e,this)},c.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,c=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=c>>>26,this.words[i]=67108863&c}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.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,o=n%26;t[n]=e.words[r]>>>o&1}return t}(e);if(0===t.length)return new c(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var q=n.sqr();i<t.length;i++,q=q.sqr())0!==t[i]&&(n=n.mul(q));return n},c.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var i,t=e%26,s=(e-t)/26,n=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&n,l=(0|this.words[i])-c<<t;this.words[i]=l|o,o=c>>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this._strip()},c.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},c.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var c=e%26,s=Math.min((e-c)/26,this.length),mask=67108863^67108863>>>c<<c,l=n;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var h=0;for(i=this.length-1;i>=0&&(0!==h||i>=o);i--){var d=0|this.words[i];this.words[i]=h<<26-c|d>>>c,h=d&mask}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},c.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<<t;return!(this.length<=s)&&!!(this.words[s]&q)},c.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<<t;this.words[this.length-1]&=mask}return this._strip()},c.prototype.maskn=function(e){return this.clone().imaskn(e)},c.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)},c.prototype._iaddn=function(e){this.words[0]+=e;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},c.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 i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},c.prototype.addn=function(e){return this.clone().iaddn(e)},c.prototype.subn=function(e){return this.clone().isubn(e)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(e,t,n){var i,o,c=e.length+n;this._expand(c);var l=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+l;var h=(0|e.words[i])*t;l=((o-=67108863&h)>>26)-(h/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)l=(o=(0|this.words[i+n])+l)>>26,this.words[i+n]=67108863&o;if(0===l)return this._strip();for(r(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},c.prototype._wordDiv=function(e,t){var n=(this.length,e.length),a=this.clone(),b=e,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var h=o-1;h>=0;h--){var d=67108864*(0|a.words[b.length+h])+(0|a.words[b.length+h-1]);for(d=Math.min(d/r|0,67108863),a._ishlnsubmul(b,d,h);0!==a.negative;)d--,a.negative=0,a._ishlnsubmul(b,1,h),a.isZero()||(a.negative^=1);q&&(q.words[h]=d)}return q&&q._strip(),a._strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},c.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(div=l.div.neg()),"div"!==t&&(o=l.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(o=l.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modrn(e.words[0]))}:this._wordDiv(e,t);var div,o,l},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.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),o=e.andln(1),c=n.cmp(r);return c<0||1===o&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var p=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(p*n+(0|this.words[i]))%e;return t?-n:n},c.prototype.modn=function(e){return this.modrn(e)},c.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var n=new c(1),o=new c(0),l=new c(0),h=new c(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var d=t.clone(),f=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(d),o.isub(f)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(t.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(l.isOdd()||h.isOdd())&&(l.iadd(d),h.isub(f)),l.iushrn(1),h.iushrn(1);e.cmp(t)>=0?(e.isub(t),n.isub(l),o.isub(h)):(t.isub(e),l.isub(n),h.isub(o))}return{a:l,b:h,gcd:t.iushln(g)}},c.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new c(1),n=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var h=0,d=1;0==(b.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(b.iushrn(h);h-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(n)):(b.isub(a),n.isub(t))}return(e=0===a.cmpn(1)?t:n).cmpn(0)<0&&e.iadd(p),e},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<<t;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.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 o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},c.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},c.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){a<b?t=-1:a>b&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new R(e)},c.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)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};function P(e,p){this.name=e,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){P.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){P.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){P.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(e){if("string"==typeof e){var t=c._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 j(e){R.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(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)}P.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},P.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):void 0!==n.strip?n.strip():n._strip(),n},P.prototype.split=function(input,e){input.iushrn(this.n,0,e)},P.prototype.imulK=function(e){return e.imul(this.k)},o(M,P),M.prototype.split=function(input,output){for(var mask=4194303,e=Math.min(input.length,9),i=0;i<e;i++)output.words[i]=input.words[i];if(output.length=e,input.length<=9)return input.words[0]=0,void(input.length=1);var t=input.words[9];for(output.words[output.length++]=t&mask,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(n&mask)<<4|t>>>22,t=n}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(x,P),o(k,P),o(I,P),I.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return E[e]=t,t},R.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},R.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},R.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(m(a,a.umod(this.m)._forceRed(this)),a)},R.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},R.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},R.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},R.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},R.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},R.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},R.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},R.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},R.prototype.isqr=function(a){return this.imul(a,a.clone())},R.prototype.sqr=function(a){return this.mul(a,a)},R.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var t=this.m.add(new c(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new c(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new c(2*h*h).toRed(this);0!==this.pow(h,l).cmp(o);)h.redIAdd(o);for(var d=this.pow(h,q),f=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(d,new c(1).iushln(v-i-1));f=f.redMul(b),d=b.redSqr(),m=m.redMul(d),v=i}return f},R.prototype.invm=function(a){var e=a._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},R.prototype.pow=function(a,e){if(e.isZero())return new c(1).toRed(this);if(0===e.cmpn(1))return a.clone();var t=new Array(16);t[0]=new c(1).toRed(this),t[1]=a;for(var i=2;i<t.length;i++)t[i]=this.mul(t[i-1],a);var n=t[0],r=0,o=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var h=e.words[i],d=l-1;d>=0;d--){var f=h>>d&1;n!==t[0]&&(n=this.sqr(n)),0!==f||0!==r?(r<<=1,r|=f,(4===++o||0===i&&0===d)&&(n=this.mul(n,t[r]),o=0,r=0)):o=0}l=26}return n},R.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},R.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new j(e)},o(j,R),j.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},j.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},j.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},j.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},j.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(486)(e))},,function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(e,t,n){"use strict";var r=n(179),o=n(125),c=n(47),l=n(487),h=r.assert;function d(e){l.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(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 f(e,t,n,r){l.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(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 m(e,t,n,r){l.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(n,16),this.z=new o(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}c(d,l),e.exports=d,d.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new o(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 o(e.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(t))?n=c[0]:(n=c[1],h(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 o(e.a,16),b:new o(e.b,16)}})):this._getEndoBasis(n)}}},d.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),n=new o(2).toRed(t).redInvm(),r=n.redNeg(),s=new o(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(s).fromRed(),r.redSub(s).fromRed()]},d.prototype._getEndoBasis=function(e){for(var t,n,r,c,l,h,d,f,m,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,y=this.n.clone(),w=new o(1),S=new o(0),_=new o(0),C=new o(1),i=0;0!==u.cmpn(0);){var q=y.div(u);f=y.sub(q.mul(u)),m=_.sub(q.mul(w));var O=C.sub(q.mul(S));if(!r&&f.cmp(v)<0)t=d.neg(),n=w,r=f.neg(),c=m;else if(r&&2==++i)break;d=f,y=u,u=f,_=w,w=m,C=S,S=O}l=f.neg(),h=m;var A=r.sqr().add(c.sqr());return l.sqr().add(h.sqr()).cmp(A)>=0&&(l=t,h=n),r.negative&&(r=r.neg(),c=c.neg()),l.negative&&(l=l.neg(),h=h.neg()),[{a:r,b:c},{a:l,b:h}]},d.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),c=n.b.neg().mul(e).divRound(this.n),l=o.mul(n.a),h=c.mul(r.a),d=o.mul(n.b),f=c.mul(r.b);return{k1:e.sub(l).sub(h),k2:d.add(f).neg()}},d.prototype.pointFromX=function(e,t){(e=new o(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 c=r.fromRed().isOdd();return(t&&!c||!t&&c)&&(r=r.redNeg()),this.point(e,r)},d.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},d.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var c=this._endoSplit(t[i]),p=e[i],l=p._getBeta();c.k1.negative&&(c.k1.ineg(),p=p.neg(!0)),c.k2.negative&&(c.k2.ineg(),l=l.neg(!0)),r[2*i]=p,r[2*i+1]=l,o[2*i]=c.k1,o[2*i+1]=c.k2}for(var h=this._wnafMulAdd(1,r,o,2*i,n),d=0;d<2*i;d++)r[d]=null,o[d]=null;return h},c(f,l.BasePoint),d.prototype.point=function(e,t,n){return new f(this,e,t,n)},d.prototype.pointFromJSON=function(e,t){return f.fromJSON(this,e,t)},f.prototype._getBeta=function(){if(this.curve.endo){var pre=this.precomputed;if(pre&&pre.beta)return pre.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var t=this.curve,n=function(p){return t.point(p.x.redMul(t.endo.beta),p.y)};pre.beta=e,e.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}}}return e}},f.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]},f.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 o(t){return e.point(t[0],t[1],n)}var pre=t[2];return r.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[r].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[r].concat(pre.naf.points.map(o))}},r},f.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)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var e=this.y.redSub(p.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(p.x).redInvm()));var t=e.redSqr().redISub(this.x).redISub(p.x),n=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,n)},f.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 a=this.curve.a,t=this.x.redSqr(),n=e.redInvm(),r=t.redAdd(t).redIAdd(t).redIAdd(a).redMul(n),o=r.redSqr().redISub(this.x.redAdd(this.x)),c=r.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,c)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return e=new o(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)},f.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},f.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},f.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var pre=this.precomputed,n=function(p){return p.neg()};t.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(m,l.BasePoint),d.prototype.jpoint=function(e,t,n){return new m(this,e,t,n)},m.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)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var e=p.z.redSqr(),t=this.z.redSqr(),n=this.x.redMul(e),r=p.x.redMul(t),o=this.y.redMul(e.redMul(p.z)),c=p.y.redMul(t.redMul(this.z)),l=n.redSub(r),h=o.redSub(c);if(0===l.cmpn(0))return 0!==h.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=l.redSqr(),h3=h2.redMul(l),d=n.redMul(h2),f=h.redSqr().redIAdd(h3).redISub(d).redISub(d),m=h.redMul(d.redISub(f)).redISub(o.redMul(h3)),v=this.z.redMul(p.z).redMul(l);return this.curve.jpoint(f,m,v)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var e=this.z.redSqr(),t=this.x,n=p.x.redMul(e),r=this.y,o=p.y.redMul(e).redMul(this.z),c=t.redSub(n),l=r.redSub(o);if(0===c.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=c.redSqr(),h3=h2.redMul(c),h=t.redMul(h2),d=l.redSqr().redIAdd(h3).redISub(h).redISub(h),f=l.redMul(h.redISub(d)).redISub(r.redMul(h3)),m=this.z.redMul(c);return this.curve.jpoint(d,f,m)},m.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var i;if(this.curve.zeroA||this.curve.threeA){var t=this;for(i=0;i<e;i++)t=t.dbl();return t}var a=this.curve.a,n=this.curve.tinv,r=this.x,o=this.y,c=this.z,l=c.redSqr().redSqr(),h=o.redAdd(o);for(i=0;i<e;i++){var d=r.redSqr(),f=h.redSqr(),m=f.redSqr(),v=d.redAdd(d).redIAdd(d).redIAdd(a.redMul(l)),y=r.redMul(f),w=v.redSqr().redISub(y.redAdd(y)),S=y.redISub(w),_=v.redMul(S);_=_.redIAdd(_).redISub(m);var C=h.redMul(c);i+1<e&&(l=l.redMul(m)),r=w,c=C,h=_}return this.curve.jpoint(r,h.redMul(n),c)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},m.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(c);s=s.redIAdd(s);var l=r.redAdd(r).redIAdd(r),h=l.redSqr().redISub(s).redISub(s),d=c.redIAdd(c);d=(d=d.redIAdd(d)).redIAdd(d),e=h,t=l.redMul(s.redISub(h)).redISub(d),n=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),b=this.y.redSqr(),f=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(f);m=m.redIAdd(m);var v=a.redAdd(a).redIAdd(a),y=v.redSqr(),w=f.redIAdd(f);w=(w=w.redIAdd(w)).redIAdd(w),e=y.redISub(m).redISub(m),t=v.redMul(m.redISub(e)).redISub(w),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},m.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(c);s=s.redIAdd(s);var l=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),h=l.redSqr().redISub(s).redISub(s);e=h;var d=c.redIAdd(c);d=(d=d.redIAdd(d)).redIAdd(d),t=l.redMul(s.redISub(h)).redISub(d),n=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),m=this.y.redSqr(),v=this.x.redMul(m),y=this.x.redSub(f).redMul(this.x.redAdd(f));y=y.redAdd(y).redIAdd(y);var w=v.redIAdd(v),S=(w=w.redIAdd(w)).redAdd(w);e=y.redSqr().redISub(S),n=this.y.redAdd(this.z).redSqr().redISub(m).redISub(f);var _=m.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_),t=y.redMul(w.redISub(e)).redISub(_)}return this.curve.jpoint(e,t,n)},m.prototype._dbl=function(){var a=this.curve.a,e=this.x,t=this.y,n=this.z,r=n.redSqr().redSqr(),o=e.redSqr(),c=t.redSqr(),l=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(r)),h=e.redAdd(e),d=(h=h.redIAdd(h)).redMul(c),f=l.redSqr().redISub(d.redAdd(d)),m=d.redISub(f),v=c.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=l.redMul(m).redISub(v),w=t.redAdd(t).redMul(n);return this.curve.jpoint(f,y,w)},m.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(),o=e.redAdd(e).redIAdd(e),c=o.redSqr(),l=this.x.redAdd(t).redSqr().redISub(e).redISub(r),h=(l=(l=(l=l.redIAdd(l)).redAdd(l).redIAdd(l)).redISub(c)).redSqr(),d=r.redIAdd(r);d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var u=o.redIAdd(l).redSqr().redISub(c).redISub(h).redISub(d),f=t.redMul(u);f=(f=f.redIAdd(f)).redIAdd(f);var m=this.x.redMul(h).redISub(f);m=(m=m.redIAdd(m)).redIAdd(m);var v=this.y.redMul(u.redMul(d.redISub(u)).redISub(l.redMul(h)));v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=this.z.redAdd(l).redSqr().redISub(n).redISub(h);return this.curve.jpoint(m,v,y)},m.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},m.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var e=this.z.redSqr(),t=p.z.redSqr();if(0!==this.x.redMul(t).redISub(p.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),r=t.redMul(p.z);return 0===this.y.redMul(r).redISub(p.y.redMul(n)).cmpn(0)},m.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(),o=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},m.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)+">"},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(125),o=n(47),c=n(487),l=n(179);function h(e){c.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 d(e,t,n){c.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)))}o(h,c),e.exports=h,h.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)},o(d,c.BasePoint),h.prototype.decodePoint=function(e,t){return this.point(l.toArray(e,t),1)},h.prototype.point=function(e,t){return new d(this,e,t)},h.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(e,t){return new d(e,t[0],t[1]||e.one)},d.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)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},d.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),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},d.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(p,e){var a=this.x.redAdd(this.z),b=this.x.redSub(this.z),t=p.x.redAdd(p.z),n=p.x.redSub(p.z).redMul(a),r=t.redMul(b),o=e.z.redMul(n.redAdd(r).redSqr()),c=e.x.redMul(n.redISub(r).redSqr());return this.curve.point(o,c)},d.prototype.mul=function(e){for(var t=e.clone(),a=this,b=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var i=n.length-1;i>=0;i--)0===n[i]?(a=a.diffAdd(b,this),b=b.dbl()):(b=a.diffAdd(b,this),a=a.dbl());return b},d.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(179),o=n(125),c=n(47),l=n(487),h=r.assert;function d(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,l.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),h(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function f(e,t,n,r,c){l.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 o(t,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=c&&new o(c,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()))))}c(d,l),e.exports=d,d.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},d.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},d.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},d.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),c=this.one.redSub(this.c2.redMul(this.d).redMul(n)),l=r.redMul(c.redInvm()),h=l.redSqrt();if(0!==h.redSqr().redSub(l).cmp(this.zero))throw new Error("invalid point");var d=h.fromRed().isOdd();return(t&&!d||!t&&d)&&(h=h.redNeg()),this.point(e,h)},d.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),c=n.redMul(this.d).redMul(this.c2).redSub(this.a),l=r.redMul(c.redInvm());if(0===l.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var h=l.redSqrt();if(0!==h.redSqr().redSub(l).cmp(this.zero))throw new Error("invalid point");return h.fromRed().isOdd()!==t&&(h=h.redNeg()),this.point(h,e)},d.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),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(o)},c(f,l.BasePoint),d.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},d.prototype.point=function(e,t,n,r){return new f(this,e,t,n,r)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.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)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var a=this.x.redSqr(),b=this.y.redSqr(),e=this.z.redSqr();e=e.redIAdd(e);var t=this.curve._mulA(a),n=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b),g=t.redAdd(b),r=g.redSub(e),o=t.redSub(b),c=n.redMul(r),l=g.redMul(o),h=n.redMul(o),d=r.redMul(g);return this.curve.point(c,l,d,h)},f.prototype._projDbl=function(){var e,t,n,r,o,c,b=this.x.redAdd(this.y).redSqr(),l=this.x.redSqr(),h=this.y.redSqr();if(this.curve.twisted){var d=(r=this.curve._mulA(l)).redAdd(h);this.zOne?(e=b.redSub(l).redSub(h).redMul(d.redSub(this.curve.two)),t=d.redMul(r.redSub(h)),n=d.redSqr().redSub(d).redSub(d)):(o=this.z.redSqr(),c=d.redSub(o).redISub(o),e=b.redSub(l).redISub(h).redMul(c),t=d.redMul(r.redSub(h)),n=d.redMul(c))}else r=l.redAdd(h),o=this.curve._mulC(this.z).redSqr(),c=r.redSub(o).redSub(o),e=this.curve._mulC(b.redISub(r)).redMul(c),t=this.curve._mulC(r).redMul(l.redISub(h)),n=r.redMul(c);return this.curve.point(e,t,n)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),e=this.t.redMul(this.curve.dd).redMul(p.t),t=this.z.redMul(p.z.redAdd(p.z)),n=b.redSub(a),r=t.redSub(e),g=t.redAdd(e),o=b.redAdd(a),c=n.redMul(r),l=g.redMul(o),h=n.redMul(o),d=r.redMul(g);return this.curve.point(c,l,d,h)},f.prototype._projAdd=function(p){var e,t,a=this.z.redMul(p.z),b=a.redSqr(),n=this.x.redMul(p.x),r=this.y.redMul(p.y),o=this.curve.d.redMul(n).redMul(r),c=b.redSub(o),g=b.redAdd(o),l=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(n).redISub(r),h=a.redMul(c).redMul(l);return this.curve.twisted?(e=a.redMul(g).redMul(r.redSub(this.curve._mulA(n))),t=c.redMul(g)):(e=a.redMul(g).redMul(r.redSub(n)),t=this.curve._mulC(c).redMul(g)),this.curve.point(h,e,t)},f.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,p,t){return this.curve._wnafMulAdd(1,[this,p],[e,t],2,!1)},f.prototype.jmulAdd=function(e,p,t){return this.curve._wnafMulAdd(1,[this,p],[e,t],2,!0)},f.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},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.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}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(e,t,n){"use strict";t.sha1=n(1343),t.sha224=n(1344),t.sha256=n(867),t.sha384=n(1345),t.sha512=n(868)},function(e,t,n){"use strict";var r=n(213),o=n(413),c=n(866),l=r.rotl32,h=r.sum32,d=r.sum32_5,f=c.ft_1,m=o.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=l(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],c=this.h[4];for(i=0;i<n.length;i++){var s=~~(i/20),m=d(l(a,5),f(s,b,r,o),c,n[i],v[s]);c=o,o=r,r=l(b,30),b=a,a=m}this.h[0]=h(this.h[0],a),this.h[1]=h(this.h[1],b),this.h[2]=h(this.h[2],r),this.h[3]=h(this.h[3],o),this.h[4]=h(this.h[4],c)},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(213),o=n(867);function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(c,o),e.exports=c,c.blockSize=512,c.outSize=224,c.hmacStrength=192,c.padLength=64,c.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(213),o=n(868);function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(c,o),e.exports=c,c.blockSize=1024,c.outSize=384,c.hmacStrength=192,c.padLength=128,c.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(213),o=n(413),c=r.rotl32,l=r.sum32,h=r.sum32_3,d=r.sum32_4,f=o.BlockHash;function m(){if(!(this instanceof m))return new m;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(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 y(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function w(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(m,f),t.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],o=this.h[2],f=this.h[3],m=this.h[4],O=n,A=r,T=o,E=f,P=m,M=0;M<80;M++){var x=l(c(d(n,v(M,r,o,f),e[S[M]+t],y(M)),s[M]),m);n=m,m=f,f=c(o,10),o=r,r=x,x=l(c(d(O,v(79-M,A,T,E),e[_[M]+t],w(M)),C[M]),P),O=P,P=E,E=c(T,10),T=A,A=x}x=h(this.h[1],o,E),this.h[1]=h(this.h[2],f,P),this.h[2]=h(this.h[3],m,O),this.h[3]=h(this.h[4],n,A),this.h[4]=h(this.h[0],r,T),this.h[0]=x},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var 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],_=[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],s=[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],C=[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(213),o=n(178);function c(e,t,n){if(!(this instanceof c))return new c(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=c,c.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var i=e.length;i<this.blockSize;i++)e.push(0);for(i=0;i<e.length;i++)e[i]^=54;for(this.inner=(new this.Hash).update(e),i=0;i<e.length;i++)e[i]^=106;this.outer=(new this.Hash).update(e)},c.prototype.update=function(e,t){return this.inner.update(e,t),this},c.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(125),o=n(1350),c=n(179),l=n(593),h=n(589),d=c.assert,f=n(1351),m=n(1352);function v(e){if(!(this instanceof v))return new v(e);"string"==typeof e&&(d(Object.prototype.hasOwnProperty.call(l,e),"Unknown curve "+e),e=l[e]),e instanceof l.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=v,v.prototype.keyPair=function(e){return new f(this,e)},v.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},v.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},v.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||h(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),c=this.n.sub(new r(2));;){var l=new r(t.generate(n));if(!(l.cmp(c)>0))return l.iaddn(1),this.keyFromPrivate(l)}},v.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},v.prototype.sign=function(e,t,n,c){"object"==typeof n&&(c=n,n=null),c||(c={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var l=this.n.byteLength(),h=t.getPrivate().toArray("be",l),d=e.toArray("be",l),f=new o({hash:this.hash,entropy:h,nonce:d,pers:c.pers,persEnc:c.persEnc||"utf8"}),v=this.n.sub(new r(1)),y=0;;y++){var w=c.k?c.k(y):new r(f.generate(this.n.byteLength()));if(!((w=this._truncateToN(w,!0)).cmpn(1)<=0||w.cmp(v)>=0)){var S=this.g.mul(w);if(!S.isInfinity()){var _=S.getX(),C=_.umod(this.n);if(0!==C.cmpn(0)){var s=w.invm(this.n).mul(C.mul(t.getPrivate()).iadd(e));if(0!==(s=s.umod(this.n)).cmpn(0)){var O=(S.getY().isOdd()?1:0)|(0!==_.cmp(C)?2:0);return c.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),O^=1),new m({r:C,s:s,recoveryParam:O})}}}}}},v.prototype.verify=function(e,t,n,o){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,o);var c=(t=new m(t,"hex")).r,s=t.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,l=s.invm(this.n),h=l.mul(e).umod(this.n),d=l.mul(c).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(h,n.getPublic(),d)).isInfinity()&&p.eqXToP(c):!(p=this.g.mulAdd(h,n.getPublic(),d)).isInfinity()&&0===p.getX().umod(this.n).cmp(c)},v.prototype.recoverPubKey=function(e,t,n,o){d((3&n)===n,"The recovery param is more than two bits"),t=new m(t,o);var c=this.n,l=new r(e),h=t.r,s=t.s,f=1&n,v=n>>1;if(h.cmp(this.curve.p.umod(this.curve.n))>=0&&v)throw new Error("Unable to find sencond key candinate");h=v?this.curve.pointFromX(h.add(this.curve.n),f):this.curve.pointFromX(h,f);var y=t.r.invm(c),w=c.sub(l).mul(y).umod(c),S=s.mul(y).umod(c);return this.g.mulAdd(w,h,S)},v.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new m(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(594),o=n(864),c=n(178);function l(e){if(!(this instanceof l))return new l(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=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=l,l.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},l.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},l.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())},l.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=o.toArray(e,t),n=o.toArray(n,r),c(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},l.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=o.toArray(n,r||"hex"),this._update(n));for(var c=[];c.length<e;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var l=c.slice(0,e);return this._update(n),this._reseed++,o.encode(l,t)}},function(e,t,n){"use strict";var r=n(125),o=n(179).assert;function c(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=c,c.fromPublic=function(e,t,n){return t instanceof c?t:new c(e,{pub:t,pubEnc:n})},c.fromPrivate=function(e,t,n){return t instanceof c?t:new c(e,{priv:t,privEnc:n})},c.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"}},c.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},c.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},c.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(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)},c.prototype.derive=function(e){return e.validate()||o(e.validate(),"public point not validated"),e.mul(this.priv).getX()},c.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},c.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},c.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(125),o=n(179),c=o.assert;function l(e,t){if(e instanceof l)return e;this._importDER(e,t)||(c(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 h(){this.place=0}function d(e,p){var t=e[p.place++];if(!(128&t))return t;var n=15&t;if(0===n||n>4)return!1;for(var r=0,i=0,o=p.place;i<n;i++,o++)r<<=8,r|=e[o],r>>>=0;return!(r<=127)&&(p.place=o,r)}function f(e){for(var i=0,t=e.length-1;!e[i]&&!(128&e[i+1])&&i<t;)i++;return 0===i?e:e.slice(i)}function m(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=l,l.prototype._importDER=function(data,e){data=o.toArray(data,e);var p=new h;if(48!==data[p.place++])return!1;var t=d(data,p);if(!1===t)return!1;if(t+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var n=d(data,p);if(!1===n)return!1;var c=data.slice(p.place,n+p.place);if(p.place+=n,2!==data[p.place++])return!1;var l=d(data,p);if(!1===l)return!1;if(data.length!==l+p.place)return!1;var s=data.slice(p.place,l+p.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new r(c),this.s=new r(s),this.recoveryParam=null,!0},l.prototype.toDER=function(e){var t=this.r.toArray(),s=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&s[0]&&(s=[0].concat(s)),t=f(t),s=f(s);!(s[0]||128&s[1]);)s=s.slice(1);var n=[2];m(n,t.length),(n=n.concat(t)).push(2),m(n,s.length);var r=n.concat(s),c=[48];return m(c,r.length),c=c.concat(r),o.encode(c,e)}},function(e,t,n){"use strict";var r=n(594),o=n(593),c=n(179),l=c.assert,h=c.parseBytes,d=n(1354),f=n(1355);function m(e){if(l("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof m))return new m(e);e=o[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=m,m.prototype.sign=function(e,t){e=h(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),c=this.encodePoint(o),l=this.hashInt(c,n.pubBytes(),e).mul(n.priv()),d=r.add(l).umod(this.curve.n);return this.makeSignature({R:o,S:d,Rencoded:c})},m.prototype.verify=function(e,t,n){e=h(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),c=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(c)},m.prototype.hashInt=function(){for(var e=this.hash(),i=0;i<arguments.length;i++)e.update(arguments[i]);return c.intFromLE(e.digest()).umod(this.curve.n)},m.prototype.keyFromPublic=function(e){return d.fromPublic(this,e)},m.prototype.keyFromSecret=function(e){return d.fromSecret(this,e)},m.prototype.makeSignature=function(e){return e instanceof f?e:new f(this,e)},m.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},m.prototype.decodePoint=function(e){var t=(e=c.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),o=c.intFromLE(n);return this.curve.pointFromY(o,r)},m.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},m.prototype.decodeInt=function(e){return c.intFromLE(e)},m.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(179),o=r.assert,c=r.parseBytes,l=r.cachedProperty;function h(e,t){this.eddsa=e,this._secret=c(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=c(t.pub)}h.fromPublic=function(e,t){return t instanceof h?t:new h(e,{pub:t})},h.fromSecret=function(e,t){return t instanceof h?t:new h(e,{secret:t})},h.prototype.secret=function(){return this._secret},l(h,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),l(h,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),l(h,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a})),l(h,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),l(h,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),l(h,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),h.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},h.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},h.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},h.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=h},function(e,t,n){"use strict";var r=n(125),o=n(179),c=o.assert,l=o.cachedProperty,h=o.parseBytes;function d(e,t){this.eddsa=e,"object"!=typeof t&&(t=h(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),c(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}l(d,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),l(d,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),l(d,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),l(d,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=d},,function(e,t,n){"use strict";var r=n(870);t.certificate=n(1363);var o=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=o;var c=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=c;var l=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())}));t.PublicKey=l;var h=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())})),d=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(h),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=d;var f=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=f;var m=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=m,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var v=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=v;var y=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){"use strict";const r=n(871),o=n(873),c=n(47);function l(e,body){this.name=e,this.body=body,this.decoders={},this.encoders={}}t.define=function(e,body){return new l(e,body)},l.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return c(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},l.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(o[e])),this.decoders[e]},l.prototype.decode=function(data,e,t){return this._getDecoder(e).decode(data,t)},l.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},l.prototype.encode=function(data,e,t){return this._getEncoder(e).encode(data,t)}},function(e,t,n){"use strict";const r=n(47),o=n(872);function c(e){o.call(this,e),this.enc="pem"}r(c,o),e.exports=c,c.prototype.encode=function(data,e){const p=o.prototype.encode.call(this,data).toString("base64"),t=["-----BEGIN "+e.label+"-----"];for(let i=0;i<p.length;i+=64)t.push(p.slice(i,i+64));return t.push("-----END "+e.label+"-----"),t.join("\n")}},function(e,t,n){"use strict";const r=n(47),o=n(595).Buffer,c=n(874);function l(e){c.call(this,e),this.enc="pem"}r(l,c),e.exports=l,l.prototype.decode=function(data,e){const t=data.toString().split(/[\r\n]+/g),label=e.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/;let r=-1,l=-1;for(let i=0;i<t.length;i++){const e=t[i].match(n);if(null!==e&&e[2]===label){if(-1!==r){if("END"!==e[1])break;l=i;break}if("BEGIN"!==e[1])break;r=i}}if(-1===r||-1===l)throw new Error("PEM section not found for: "+label);const h=t.slice(r+1,l).join("");h.replace(/[^a-z0-9+/=]+/gi,"");const input=o.from(h,"base64");return c.prototype.decode.call(this,input,e)}},function(e,t,n){"use strict";const base=t;base.Reporter=n(597).Reporter,base.DecoderBuffer=n(414).DecoderBuffer,base.EncoderBuffer=n(414).EncoderBuffer,base.Node=n(596)},function(e,t,n){"use strict";const r=t;r._reverse=function(map){const e={};return Object.keys(map).forEach((function(t){(0|t)==t&&(t|=0);const n=map[t];e[n]=t})),e},r.der=n(598)},function(e,t,n){"use strict";var r=n(870),o=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),c=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),l=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),h=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())})),d=r.define("RelativeDistinguishedName",(function(){this.setof(c)})),f=r.define("RDNSequence",(function(){this.seqof(d)})),m=r.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),v=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),y=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),w=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(l),this.key("issuer").use(m),this.key("validity").use(v),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(h),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(y).optional())})),S=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(l),this.key("signatureValue").bitstr())}));e.exports=S},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,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,l=n(485),h=n(587),d=n(58).Buffer;e.exports=function(e,t){var n,f=e.toString(),m=f.match(r);if(m){var v="aes"+m[1],y=d.from(m[2],"hex"),w=d.from(m[3].replace(/[\r\n]/g,""),"base64"),S=l(t,y.slice(0,8),parseInt(m[1],10)).key,_=[],C=h.createDecipheriv(v,S,y);_.push(C.update(w)),_.push(C.final()),n=d.concat(_)}else{var O=f.match(c);n=d.from(O[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(o)[1],data:n}}},function(e,t,n){var r=n(58).Buffer,o=n(869),c=n(592).ec,l=n(488),h=n(875);function d(b,q){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(q)>=q)throw new Error("invalid sig")}e.exports=function(e,t,n,f,m){var v=l(n);if("ec"===v.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,n){var r=h[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new c(r),l=n.data.subjectPrivateKey.data;return o.verify(t,e,l)}(e,t,v)}if("dsa"===v.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,n){var p=n.data.p,q=n.data.q,g=n.data.g,r=n.data.pub_key,c=l.signature.decode(e,"der"),s=c.s,h=c.r;d(s,q),d(h,q);var f=o.mont(p),m=s.invm(q),v=g.toRed(f).redPow(new o(t).mul(m).mod(q)).fromRed().mul(r.toRed(f).redPow(h.mul(m).mod(q)).fromRed()).mod(p).mod(q);return 0===v.cmp(h)}(e,t,v)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");t=r.concat([m,t]);for(var y=v.modulus.byteLength(),w=[1],S=0;t.length+w.length+2<y;)w.push(255),S++;w.push(0);for(var i=-1;++i<t.length;)w.push(t[i]);w=r.from(w);var _=o.mont(v.modulus);e=(e=new o(e).toRed(_)).redPow(new o(v.publicExponent)),e=r.from(e.fromRed().toArray());var C=S<8?1:0;for(y=Math.min(e.length,w.length),e.length!==w.length&&(C=1),i=-1;++i<y;)C|=e[i]^w[i];return 0===C}},function(e,t,n){(function(t){var r=n(592),o=n(125);e.exports=function(e){return new l(e)};var c={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 l(e){this.curveType=c[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function h(e,n,r){Array.isArray(e)||(e=e.toArray());var o=new t(e);if(r&&o.length<r){var c=new t(r-o.length);c.fill(0),o=t.concat([c,o])}return n?o.toString(n):o}c.p224=c.secp224r1,c.p256=c.secp256r1=c.prime256v1,c.p192=c.secp192r1=c.prime192v1,c.p384=c.secp384r1,c.p521=c.secp521r1,l.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},l.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),h(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},l.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),h(n,e)},l.prototype.getPrivateKey=function(e){return h(this.keys.getPrivate(),e)},l.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},l.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(46).Buffer)},function(e,t,n){t.publicEncrypt=n(1369),t.privateDecrypt=n(1370),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(488),o=n(347),c=n(410),l=n(876),h=n(877),d=n(125),f=n(878),m=n(591),v=n(58).Buffer;e.exports=function(e,t,n){var y;y=e.padding?e.padding:n?1:4;var w,S=r(e);if(4===y)w=function(e,t){var n=e.modulus.byteLength(),r=t.length,f=c("sha1").update(v.alloc(0)).digest(),m=f.length,y=2*m;if(r>n-y-2)throw new Error("message too long");var w=v.alloc(n-r-y-2),S=n-m-1,_=o(m),C=h(v.concat([f,w,v.alloc(1,1),t],S),l(_,S)),O=h(_,l(C,m));return new d(v.concat([v.alloc(1),O,C],n))}(S,t);else if(1===y)w=function(e,t,n){var r,c=t.length,l=e.modulus.byteLength();if(c>l-11)throw new Error("message too long");r=n?v.alloc(l-c-3,255):function(e){var t,n=v.allocUnsafe(e),i=0,r=o(2*e),c=0;for(;i<e;)c===r.length&&(r=o(2*e),c=0),(t=r[c++])&&(n[i++]=t);return n}(l-c-3);return new d(v.concat([v.from([0,n?1:2]),r,v.alloc(1),t],l))}(S,t,n);else{if(3!==y)throw new Error("unknown padding");if((w=new d(t)).cmp(S.modulus)>=0)throw new Error("data too long for modulus")}return n?m(w,S):f(w,S)}},function(e,t,n){var r=n(488),o=n(876),c=n(877),l=n(125),h=n(591),d=n(410),f=n(878),m=n(58).Buffer;e.exports=function(e,t,n){var v;v=e.padding?e.padding:n?1:4;var y,w=r(e),S=w.modulus.byteLength();if(t.length>S||new l(t).cmp(w.modulus)>=0)throw new Error("decryption error");y=n?f(new l(t),w):h(t,w);var _=m.alloc(S-y.length);if(y=m.concat([_,y],S),4===v)return function(e,t){var n=e.modulus.byteLength(),r=d("sha1").update(m.alloc(0)).digest(),l=r.length;if(0!==t[0])throw new Error("decryption error");var h=t.slice(1,l+1),f=t.slice(l+1),v=c(h,o(f,l)),y=c(f,o(v,n-l-1));if(function(a,b){a=m.from(a),b=m.from(b);var e=0,t=a.length;a.length!==b.length&&(e++,t=Math.min(a.length,b.length));var i=-1;for(;++i<t;)e+=a[i]^b[i];return e}(r,y.slice(0,l)))throw new Error("decryption error");var i=l;for(;0===y[i];)i++;if(1!==y[i++])throw new Error("decryption error");return y.slice(i)}(w,y);if(1===v)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 c=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;c.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,y,n);if(3===v)return y;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var c=n(58),l=(n(347),c.Buffer),h=c.kMaxLength,d=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function m(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>h||e>t)throw new RangeError("offset out of range")}function v(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>h)throw new RangeError("buffer too small")}function y(e,t,n,o){var c=e.buffer,l=new Uint8Array(c,t,n);return d.getRandomValues(l),o?void r.nextTick((function(){o(null,e)})):e}d&&d.getRandomValues?(t.randomFill=function(t,n,r,o){if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,r=t.length;else if("function"==typeof r)o=r,r=t.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return m(n,t.length),v(r,n,t.length),y(t,n,r,o)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(l.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');m(n,t.length),void 0===r&&(r=t.length-n);return v(r,n,t.length),y(t,n,r)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,n(67),n(83))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";(function(e){const r=n(1375);t.encode=function(e,t){return r(e,{from:256,to:62,fixedLength:t}).map((e=>"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[e])).join("")},t.decode=function(t,n){const input=Array.from(t,(e=>{const t=e.charCodeAt(0);return t<58?t-48:t<91?t-55:t-61}));return e.from(r(input,{from:62,to:256,fixedLength:n}))}}).call(this,n(46).Buffer)},function(e,t,n){"use strict";const r=(e,t,n)=>Math.ceil(e.length*Math.log2(t)/Math.log2(n));e.exports=function(e,{from:t,to:n,fixedLength:o=null}){const c=null===o?r(e,t,n):o,l=new Array(c);let h=c,input=e;for(;input.length>0;){if(0===h)throw new RangeError(`Fixed length of ${o} is too small, expected at least ${r(e,t,n)}`);const c=[];let d=0;for(const e of input){const r=e+d*t,q=Math.floor(r/n);d=r%n,(c.length>0||q>0)&&c.push(q)}l[--h]=d,input=c}if(null===o)return h>0?l.slice(h):l;for(;h>0;)l[--h]=0;return l}},,,,function(e,t,n){e.exports={}},,,,,function(e,t,n){e.exports={}},,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,function(e,t,n){e.exports={}},,,,,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,function(e,t,n){e.exports={}},,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,,function(e,t,n){e.exports={}},,,,,,,,,function(e,t,n){e.exports={}},,,,,,,,,,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,,,,,,,,,function(e,t,n){"use strict";var r=n(1474),o=n(923),c=n(608),l=Object.prototype.hasOwnProperty,h={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},d=Array.isArray,f=Array.prototype.push,m=function(e,t){f.apply(e,d(t)?t:[t])},v=Date.prototype.toISOString,y=c.default,w={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:y,formatter:c.formatters[y],indices:!1,serializeDate:function(e){return v.call(e)},skipNulls:!1,strictNullHandling:!1},S={},_=function e(object,t,n,c,l,h,f,filter,v,y,_,C,O,A,T,E){for(var P,M=object,x=E,k=0,I=!1;void 0!==(x=x.get(S))&&!I;){var R=x.get(object);if(k+=1,void 0!==R){if(R===k)throw new RangeError("Cyclic object value");I=!0}void 0===x.get(S)&&(k=0)}if("function"==typeof filter?M=filter(t,M):M instanceof Date?M=_(M):"comma"===n&&d(M)&&(M=o.maybeMap(M,(function(e){return e instanceof Date?_(e):e}))),null===M){if(l)return f&&!A?f(t,w.encoder,T,"key",C):t;M=""}if("string"==typeof(P=M)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||o.isBuffer(M))return f?[O(A?t:f(t,w.encoder,T,"key",C))+"="+O(f(M,w.encoder,T,"value",C))]:[O(t)+"="+O(String(M))];var j,D=[];if(void 0===M)return D;if("comma"===n&&d(M))A&&f&&(M=o.maybeMap(M,f)),j=[{value:M.length>0?M.join(",")||null:void 0}];else if(d(filter))j=filter;else{var N=Object.keys(M);j=v?N.sort(v):N}for(var L=c&&d(M)&&1===M.length?t+"[]":t,B=0;B<j.length;++B){var U=j[B],F="object"==typeof U&&void 0!==U.value?U.value:M[U];if(!h||null!==F){var z=d(M)?"function"==typeof n?n(L,U):L:L+(y?"."+U:"["+U+"]");E.set(object,k);var $=r();$.set(S,E),m(D,e(F,z,n,c,l,h,"comma"===n&&A&&d(M)?null:f,filter,v,y,_,C,O,A,T,$))}}return D};e.exports=function(object,e){var t,n=object,o=function(e){if(!e)return w;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||w.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=c.default;if(void 0!==e.format){if(!l.call(c.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=c.formatters[n],filter=w.filter;return("function"==typeof e.filter||d(e.filter))&&(filter=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:w.addQueryPrefix,allowDots:void 0===e.allowDots?w.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:w.charsetSentinel,delimiter:void 0===e.delimiter?w.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:w.encode,encoder:"function"==typeof e.encoder?e.encoder:w.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:w.encodeValuesOnly,filter:filter,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:w.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:w.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:w.strictNullHandling}}(e);"function"==typeof o.filter?n=(0,o.filter)("",n):d(o.filter)&&(t=o.filter);var f,v=[];if("object"!=typeof n||null===n)return"";f=e&&e.arrayFormat in h?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var y=h[f];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var S="comma"===y&&e&&e.commaRoundTrip;t||(t=Object.keys(n)),o.sort&&t.sort(o.sort);for(var C=r(),i=0;i<t.length;++i){var O=t[i];o.skipNulls&&null===n[O]||m(v,_(n[O],O,y,S,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,C))}var A=v.join(o.delimiter),T=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?T+="utf8=%26%2310003%3B&":T+="utf8=%E2%9C%93&"),A.length>0?T+A:""}},function(e,t,n){"use strict";var r=n(355),o=n(1485),c=n(1490),l=r("%TypeError%"),h=r("%WeakMap%",!0),d=r("%Map%",!0),f=o("WeakMap.prototype.get",!0),m=o("WeakMap.prototype.set",!0),v=o("WeakMap.prototype.has",!0),y=o("Map.prototype.get",!0),w=o("Map.prototype.set",!0),S=o("Map.prototype.has",!0),_=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+c(e))},get:function(r){if(h&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(d){if(t)return y(t,r)}else if(n)return function(e,t){var n=_(e,t);return n&&n.value}(n,r)},has:function(r){if(h&&r&&("object"==typeof r||"function"==typeof r)){if(e)return v(e,r)}else if(d){if(t)return S(t,r)}else if(n)return function(e,t){return!!_(e,t)}(n,r);return!1},set:function(r,o){h&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new h),m(e,r,o)):d?(t||(t=new d),w(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=_(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},function(e,t,n){"use strict";e.exports=Error},function(e,t,n){"use strict";e.exports=EvalError},function(e,t,n){"use strict";e.exports=RangeError},function(e,t,n){"use strict";e.exports=ReferenceError},function(e,t,n){"use strict";e.exports=URIError},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1481);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r={__proto__:null,foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof o)}},function(e,t,n){"use strict";var r=Object.prototype.toString,o=Math.max,c=function(a,b){for(var e=[],i=0;i<a.length;i+=1)e[i]=a[i];for(var t=0;t<b.length;t+=1)e[t+a.length]=b[t];return e};e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==r.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,l=function(e,t){for(var n=[],i=t||0,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n}(arguments,1),h=o(0,t.length-l.length),d=[],i=0;i<h;i++)d[i]="$"+i;if(n=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(d,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var r=t.apply(this,c(l,arguments));return Object(r)===r?r:this}return t.apply(e,c(l,arguments))})),t.prototype){var f=function(){};f.prototype=t.prototype,n.prototype=new f,f.prototype=null}return n}},function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,c=n(606);e.exports=c.call(r,o)},function(e,t,n){"use strict";var r=n(355),o=n(1486),c=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&c(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var r=n(606),o=n(355),c=n(1487),l=n(491),h=o("%Function.prototype.apply%"),d=o("%Function.prototype.call%"),f=o("%Reflect.apply%",!0)||r.call(d,h),m=n(607),v=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new l("a function is required");var t=f(r,d,arguments);return c(t,1+v(0,e.length-(arguments.length-1)),!0)};var y=function(){return f(r,h,arguments)};m?m(e.exports,"apply",{value:y}):e.exports.apply=y},function(e,t,n){"use strict";var r=n(355),o=n(1488),c=n(1489)(),l=n(922),h=n(491),d=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new h("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||d(t)!==t)throw new h("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,f=!0;if("length"in e&&l){var desc=l(e,"length");desc&&!desc.configurable&&(r=!1),desc&&!desc.writable&&(f=!1)}return(r||f||!n)&&(c?o(e,"length",t,!0,!0):o(e,"length",t)),e}},function(e,t,n){"use strict";var r=n(607),o=n(921),c=n(491),l=n(922);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new c("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,m=arguments.length>6&&arguments[6],desc=!!l&&l(e,t);if(r)r(e,t,{configurable:null===f&&desc?desc.configurable:!f,enumerable:null===h&&desc?desc.enumerable:!h,value:n,writable:null===d&&desc?desc.writable:!d});else{if(!m&&(h||d||f))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},function(e,t,n){"use strict";var r=n(607),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},function(e,t,n){(function(t){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,c=r&&o&&"function"==typeof o.get?o.get:null,l=r&&Map.prototype.forEach,h="function"==typeof Set&&Set.prototype,d=Object.getOwnPropertyDescriptor&&h?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=h&&d&&"function"==typeof d.get?d.get:null,m=h&&Set.prototype.forEach,v="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,y="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,w="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,_=Object.prototype.toString,C=Function.prototype.toString,O=String.prototype.match,A=String.prototype.slice,T=String.prototype.replace,E=String.prototype.toUpperCase,P=String.prototype.toLowerCase,M=RegExp.prototype.test,x=Array.prototype.concat,k=Array.prototype.join,I=Array.prototype.slice,R=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"==typeof Symbol&&"object"==typeof Symbol.iterator,B="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function z(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||M.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-R(-e):R(e);if(r!==e){var o=String(r),c=A.call(t,o.length+1);return T.call(o,n,"$&_")+"."+T.call(T.call(c,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(t,n,"$&_")}var $=n(1491),H=$.custom,G=X(H)?H:null;function V(s,e,t){var n="double"===(t.quoteStyle||e)?'"':"'";return n+s+n}function W(s){return T.call(String(s),/"/g,"&quot;")}function K(e){return!("[object Array]"!==Q(e)||B&&"object"==typeof e&&B in e)}function Y(e){return!("[object RegExp]"!==Q(e)||B&&"object"==typeof e&&B in e)}function X(e){if(L)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(n,r,o,h){var d=r||{};if(Z(d,"quoteStyle")&&"single"!==d.quoteStyle&&"double"!==d.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(d,"maxStringLength")&&("number"==typeof d.maxStringLength?d.maxStringLength<0&&d.maxStringLength!==1/0:null!==d.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _=!Z(d,"customInspect")||d.customInspect;if("boolean"!=typeof _&&"symbol"!==_)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(d,"indent")&&null!==d.indent&&"\t"!==d.indent&&!(parseInt(d.indent,10)===d.indent&&d.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(d,"numericSeparator")&&"boolean"!=typeof d.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var E=d.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return te(n,d);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var M=String(n);return E?z(n,M):M}if("bigint"==typeof n){var R=String(n)+"n";return E?z(n,R):R}var D=void 0===d.depth?5:d.depth;if(void 0===o&&(o=0),o>=D&&D>0&&"object"==typeof n)return K(n)?"[Array]":"[Object]";var H=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(d,o);if(void 0===h)h=[];else if(ee(h,n)>=0)return"[Circular]";function J(t,n,r){if(n&&(h=I.call(h)).push(n),r){var c={depth:d.depth};return Z(d,"quoteStyle")&&(c.quoteStyle=d.quoteStyle),e(t,c,o+1,h)}return e(t,d,o+1,h)}if("function"==typeof n&&!Y(n)){var ne=function(e){if(e.name)return e.name;var t=O.call(C.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(n),ce=se(n,J);return"[Function"+(ne?": "+ne:" (anonymous)")+"]"+(ce.length>0?" { "+k.call(ce,", ")+" }":"")}if(X(n)){var ue=L?T.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(n);return"object"!=typeof n||L?ue:re(ue)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var s="<"+P.call(String(n.nodeName)),le=n.attributes||[],i=0;i<le.length;i++)s+=" "+le[i].name+"="+V(W(le[i].value),"double",d);return s+=">",n.childNodes&&n.childNodes.length&&(s+="..."),s+="</"+P.call(String(n.nodeName))+">"}if(K(n)){if(0===n.length)return"[]";var he=se(n,J);return H&&!function(e){for(var i=0;i<e.length;i++)if(ee(e[i],"\n")>=0)return!1;return!0}(he)?"["+ae(he,H)+"]":"[ "+k.call(he,", ")+" ]"}if(function(e){return!("[object Error]"!==Q(e)||B&&"object"==typeof e&&B in e)}(n)){var de=se(n,J);return"cause"in Error.prototype||!("cause"in n)||U.call(n,"cause")?0===de.length?"["+String(n)+"]":"{ ["+String(n)+"] "+k.call(de,", ")+" }":"{ ["+String(n)+"] "+k.call(x.call("[cause]: "+J(n.cause),de),", ")+" }"}if("object"==typeof n&&_){if(G&&"function"==typeof n[G]&&$)return $(n,{depth:D-o});if("symbol"!==_&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{f.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var fe=[];return l&&l.call(n,(function(e,t){fe.push(J(t,n,!0)+" => "+J(e,n))})),oe("Map",c.call(n),fe,H)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var pe=[];return m&&m.call(n,(function(e){pe.push(J(e,n))})),oe("Set",f.call(n),pe,H)}if(function(e){if(!v||!e||"object"!=typeof e)return!1;try{v.call(e,v);try{y.call(e,y)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return ie("WeakMap");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{y.call(e,y);try{v.call(e,v)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return ie("WeakSet");if(function(e){if(!w||!e||"object"!=typeof e)return!1;try{return w.call(e),!0}catch(e){}return!1}(n))return ie("WeakRef");if(function(e){return!("[object Number]"!==Q(e)||B&&"object"==typeof e&&B in e)}(n))return re(J(Number(n)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(n))return re(J(j.call(n)));if(function(e){return!("[object Boolean]"!==Q(e)||B&&"object"==typeof e&&B in e)}(n))return re(S.call(n));if(function(e){return!("[object String]"!==Q(e)||B&&"object"==typeof e&&B in e)}(n))return re(J(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if(n===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Q(e)||B&&"object"==typeof e&&B in e)}(n)&&!Y(n)){var me=se(n,J),ge=F?F(n)===Object.prototype:n instanceof Object||n.constructor===Object,ve=n instanceof Object?"":"null prototype",be=!ge&&B&&Object(n)===n&&B in n?A.call(Q(n),8,-1):ve?"Object":"",ye=(ge||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(be||ve?"["+k.call(x.call([],be||[],ve||[]),": ")+"] ":"");return 0===me.length?ye+"{}":H?ye+"{"+ae(me,H)+"}":ye+"{ "+k.call(me,", ")+" }"}return String(n)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return J.call(e,t)}function Q(e){return _.call(e)}function ee(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}function te(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return te(A.call(e,0,t.maxStringLength),t)+r}return V(T.call(T.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ne),"single",t)}function ne(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+E.call(t.toString(16))}function re(e){return"Object("+e+")"}function ie(e){return e+" { ? }"}function oe(e,t,n,r){return e+" ("+t+") {"+(r?ae(n,r):k.call(n,", "))+"}"}function ae(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function se(e,t){var n=K(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Z(e,i)?t(e[i],e):""}var o,c="function"==typeof D?D(e):[];if(L){o={};for(var l=0;l<c.length;l++)o["$"+c[l]]=c[l]}for(var h in e)Z(e,h)&&(n&&String(Number(h))===h&&h<e.length||L&&o["$"+h]instanceof Symbol||(M.call(/[^\w$]/,h)?r.push(t(h,e)+": "+t(e[h],e)):r.push(h+": "+t(e[h],e))));if("function"==typeof D)for(var d=0;d<c.length;d++)U.call(e,c[d])&&r.push("["+t(c[d])+"]: "+t(e[c[d]],e));return r}}).call(this,n(67))},,function(e,t,n){"use strict";var r=n(923),o=Object.prototype.hasOwnProperty,c=Array.isArray,l={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},h=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},d=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},f=function(e,t,n,r){if(e){var c=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/g,h=n.depth>0&&/(\[[^[\]]*])/.exec(c),f=h?c.slice(0,h.index):c,m=[];if(f){if(!n.plainObjects&&o.call(Object.prototype,f)&&!n.allowPrototypes)return;m.push(f)}for(var i=0;n.depth>0&&null!==(h=l.exec(c))&&i<n.depth;){if(i+=1,!n.plainObjects&&o.call(Object.prototype,h[1].slice(1,-1))&&!n.allowPrototypes)return;m.push(h[1])}return h&&m.push("["+c.slice(h.index)+"]"),function(e,t,n,r){for(var o=r?t:d(t,n),i=e.length-1;i>=0;--i){var c,l=e[i];if("[]"===l&&n.parseArrays)c=[].concat(o);else{c=n.plainObjects?Object.create(null):{};var h="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,f=parseInt(h,10);n.parseArrays||""!==h?!isNaN(f)&&l!==h&&String(f)===h&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(c=[])[f]=o:"__proto__"!==h&&(c[h]=o):c={0:o}}o=c}return o}(m,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return l;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?l.charset:e.charset;return{allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:l.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:l.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:l.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:l.comma,decoder:"function"==typeof e.decoder?e.decoder:l.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:l.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:l.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:l.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:l.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:l.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var m="string"==typeof e?function(e,t){var i,n={__proto__:null},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,m=t.parameterLimit===1/0?void 0:t.parameterLimit,v=f.split(t.delimiter,m),y=-1,w=t.charset;if(t.charsetSentinel)for(i=0;i<v.length;++i)0===v[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===v[i]?w="utf-8":"utf8=%26%2310003%3B"===v[i]&&(w="iso-8859-1"),y=i,i=v.length);for(i=0;i<v.length;++i)if(i!==y){var S,_,C=v[i],O=C.indexOf("]="),A=-1===O?C.indexOf("="):O+1;-1===A?(S=t.decoder(C,l.decoder,w,"key"),_=t.strictNullHandling?null:""):(S=t.decoder(C.slice(0,A),l.decoder,w,"key"),_=r.maybeMap(d(C.slice(A+1),t),(function(e){return t.decoder(e,l.decoder,w,"value")}))),_&&t.interpretNumericEntities&&"iso-8859-1"===w&&(_=h(_)),C.indexOf("[]=")>-1&&(_=c(_)?[_]:_),o.call(n,S)?n[S]=r.combine(n[S],_):n[S]=_}return n}(e,n):e,v=n.plainObjects?Object.create(null):{},y=Object.keys(m),i=0;i<y.length;++i){var w=y[i],S=f(w,m[w],n,"string"==typeof e);v=r.merge(v,S,n)}return!0===n.allowSparse?v:r.compact(v)}},,,,,,,,,,,function(e,t,n){"use strict";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},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e},c.apply(this,arguments)}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},t=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(source).filter((function(e){return Object.getOwnPropertyDescriptor(source,e).enumerable})))),t.forEach((function(t){o(e,t,source[t])}))}return e}function h(source,e){if(null==source)return{};var t,i,n=function(source,e){if(null==source)return{};var t,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||(n[t]=source[t]);return n}(source,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(source,t)&&(n[t]=source[t])}return n}function d(e){return function(e){if(Array.isArray(e)){for(var i=0,t=new Array(e.length);i<e.length;i++)t[i]=e[i];return t}}(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.r(t),n.d(t,"MultiDrag",(function(){return Mt})),n.d(t,"Sortable",(function(){return Ke})),n.d(t,"Swap",(function(){return bt}));function f(pattern){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(pattern)}var m=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=f(/Edge/i),y=f(/firefox/i),w=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),S=f(/iP(ad|od|hone)/i),_=f(/chrome/i)&&f(/android/i),C={capture:!1,passive:!1};function O(e,t,n){e.addEventListener(t,n,!m&&C)}function A(e,t,n){e.removeEventListener(t,n,!m&&C)}function T(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function P(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&T(e,t):T(e,t))||r&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var M,x=/\s+/g;function k(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(x," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(x," ")}}function I(e,t,n){var style=e&&e.style;if(style){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in style||-1!==t.indexOf("webkit")||(t="-webkit-"+t),style[t]=n+("string"==typeof n?"":"px")}}function R(e,t){var n="";if("string"==typeof e)n=e;else do{var r=I(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function j(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function D(){var e=document.scrollingElement;return e||document.documentElement}function N(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var c,l,h,d,f,v,y;if(e!==window&&e!==D()?(l=(c=e.getBoundingClientRect()).top,h=c.left,d=c.bottom,f=c.right,v=c.height,y=c.width):(l=0,h=0,d=window.innerHeight,f=window.innerWidth,v=window.innerHeight,y=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!m))do{if(o&&o.getBoundingClientRect&&("none"!==I(o,"transform")||n&&"static"!==I(o,"position"))){var w=o.getBoundingClientRect();l-=w.top+parseInt(I(o,"border-top-width")),h-=w.left+parseInt(I(o,"border-left-width")),d=l+c.height,f=h+c.width;break}}while(o=o.parentNode);if(r&&e!==window){var S=R(o||e),_=S&&S.a,C=S&&S.d;S&&(d=(l/=C)+(v/=C),f=(h/=_)+(y/=_))}return{top:l,left:h,bottom:d,right:f,width:y,height:v}}}function L(e,t,n){for(var r=$(e,!0),o=N(e)[t];r;){var c=N(r)[n];if(!("top"===n||"left"===n?o>=c:o<=c))return r;if(r===D())break;r=$(r,!1)}return!1}function B(e,t,n){for(var r=0,i=0,o=e.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Ke.ghost&&o[i]!==Ke.dragged&&P(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function U(e,t){for(var n=e.lastElementChild;n&&(n===Ke.ghost||"none"===I(n,"display")||t&&!T(n,t));)n=n.previousElementSibling;return n||null}function F(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ke.clone||t&&!T(e,t)||n++;return n}function z(e){var t=0,n=0,r=D();if(e)do{var o=R(e),c=o.a,l=o.d;t+=e.scrollLeft*c,n+=e.scrollTop*l}while(e!==r&&(e=e.parentNode));return[t,n]}function $(e,t){if(!e||!e.getBoundingClientRect)return D();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=I(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return D();if(r||t)return n;r=!0}}}while(n=n.parentNode);return D()}function H(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function G(e,t){return function(){if(!M){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),M=setTimeout((function(){M=void 0}),t)}}}function V(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function W(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function K(e,rect){I(e,"position","absolute"),I(e,"top",rect.top),I(e,"left",rect.left),I(e,"width",rect.width),I(e,"height",rect.height)}function Y(e){I(e,"position",""),I(e,"top",""),I(e,"left",""),I(e,"width",""),I(e,"height","")}var X="Sortable"+(new Date).getTime();function J(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==I(e,"display")&&e!==Ke.ghost){t.push({target:e,rect:N(e)});var n=l({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=R(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var i in e)if(e.hasOwnProperty(i))for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,c=0;t.forEach((function(e){var time=0,t=e.target,n=t.fromRect,l=N(t),h=t.prevFromRect,d=t.prevToRect,f=e.rect,m=R(t,!0);m&&(l.top-=m.f,l.left-=m.e),t.toRect=l,t.thisAnimationDuration&&H(h,l)&&!H(n,l)&&(f.top-l.top)/(f.left-l.left)==(n.top-l.top)/(n.left-l.left)&&(time=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(f,h,d,r.options)),H(l,n)||(t.prevFromRect=n,t.prevToRect=l,time||(time=r.options.animation),r.animate(t,f,l,time)),time&&(o=!0,c=Math.max(c,time),clearTimeout(t.animationResetTimer),t.animationResetTimer=setTimeout((function(){t.animationTime=0,t.prevFromRect=null,t.fromRect=null,t.prevToRect=null,t.thisAnimationDuration=null}),time),t.thisAnimationDuration=time)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),c):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){I(e,"transition",""),I(e,"transform","");var o=R(this.el),c=o&&o.a,l=o&&o.d,h=(t.left-n.left)/(c||1),d=(t.top-n.top)/(l||1);e.animatingX=!!h,e.animatingY=!!d,I(e,"transform","translate3d("+h+"px,"+d+"px,0)"),function(e){e.offsetWidth}(e),I(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),I(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){I(e,"transition",""),I(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var Z=[],Q={initializeByDefault:!0},ee={mount:function(e){for(var option in Q)Q.hasOwnProperty(option)&&!(option in e)&&(e[option]=Q[option]);Z.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";Z.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](l({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](l({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var option in Z.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var l=new r(e,t,e.options);l.sortable=e,l.options=e.options,e[o]=l,c(n,l.defaults)}})),e.options)if(e.options.hasOwnProperty(option)){var o=this.modifyOption(e,option,e.options[option]);void 0!==o&&(e.options[option]=o)}},getEventProperties:function(e,t){var n={};return Z.forEach((function(r){"function"==typeof r.eventProperties&&c(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return Z.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function te(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,c=e.cloneEl,h=e.toEl,d=e.fromEl,f=e.oldIndex,y=e.newIndex,w=e.oldDraggableIndex,S=e.newDraggableIndex,_=e.originalEvent,C=e.putSortable,O=e.extraEventProperties;if(t=t||n&&n[X]){var A,T=t.options,E="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||v?(A=document.createEvent("Event")).initEvent(r,!0,!0):A=new CustomEvent(r,{bubbles:!0,cancelable:!0}),A.to=h||n,A.from=d||n,A.item=o||n,A.clone=c,A.oldIndex=f,A.newIndex=y,A.oldDraggableIndex=w,A.newDraggableIndex=S,A.originalEvent=_,A.pullMode=C?C.lastPutMode:void 0;var P=l({},O,ee.getEventProperties(r,t));for(var option in P)A[option]=P[option];n&&n.dispatchEvent(A),T[E]&&T[E].call(t,A)}}var ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,data=h(n,["evt"]);ee.pluginEvent.bind(Ke)(e,t,l({dragEl:ie,parentEl:oe,ghostEl:ae,rootEl:se,nextEl:ce,lastDownEl:ue,cloneEl:le,cloneHidden:he,dragStarted:Oe,putSortable:ve,activeSortable:Ke.active,originalEvent:r,oldIndex:de,oldDraggableIndex:pe,newIndex:fe,newDraggableIndex:me,hideGhostForTarget:Ge,unhideGhostForTarget:Ve,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){re({sortable:t,name:e,originalEvent:r})}},data))};function re(e){te(l({putSortable:ve,cloneEl:le,targetEl:ie,rootEl:se,oldIndex:de,oldDraggableIndex:pe,newIndex:fe,newDraggableIndex:me},e))}var ie,oe,ae,se,ce,ue,le,he,de,fe,pe,me,ge,ve,be,ye,we,Se,_e,Ce,Oe,Ae,Te,Ee,Pe,Me=!1,xe=!1,ke=[],Ie=!1,Re=!1,je=[],De=!1,Ne=[],Le="undefined"!=typeof document,Be=S,Ue=v||m?"cssFloat":"float",Fe=Le&&!_&&!S&&"draggable"in document.createElement("div"),ze=function(){if(Le){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),$e=function(e,t){var n=I(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=B(e,0,t),c=B(e,1,t),l=o&&I(o),h=c&&I(c),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(o).width,f=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+N(c).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&"none"!==l.float){var m="left"===l.float?"left":"right";return!c||"both"!==h.clear&&h.clear!==m?"horizontal":"vertical"}return o&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||d>=r&&"none"===n[Ue]||c&&"none"===n[Ue]&&d+f>r)?"vertical":"horizontal"},He=function(e){function t(e,n){return function(r,o,c,l){var h=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||h))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,c,l),n)(r,o,c,l);var d=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===d||e.join&&e.indexOf(d)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ge=function(){!ze&&ae&&I(ae,"display","none")},Ve=function(){!ze&&ae&&I(ae,"display","")};Le&&document.addEventListener("click",(function(e){if(xe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xe=!1,!1}),!0);var We=function(e){if(ie){var t=function(e,t){var n;return ke.some((function(r){if(!U(r)){var rect=N(r),o=r[X].options.emptyInsertThreshold,c=e>=rect.left-o&&e<=rect.right+o,l=t>=rect.top-o&&t<=rect.bottom+o;return o&&c&&l?n=r:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}},qe=function(e){ie&&ie.parentNode[X]._isOutsideThisEl(e.target)};function Ke(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=c({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $e(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ke.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ee.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in He(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?O(e,"pointerdown",this._onTapStart):(O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),ke.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),c(this,J())}function Ye(e,t,n,r,o,c,l,h){var d,f,y=e[X],w=y.options.onMove;return!window.CustomEvent||m||v?(d=document.createEvent("Event")).initEvent("move",!0,!0):d=new CustomEvent("move",{bubbles:!0,cancelable:!0}),d.to=t,d.from=e,d.dragged=n,d.draggedRect=r,d.related=o||t,d.relatedRect=c||N(t),d.willInsertAfter=h,d.originalEvent=l,e.dispatchEvent(d),w&&(f=w.call(y,d,l)),f}function Xe(e){e.draggable=!1}function Je(){De=!1}function Ze(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function Qe(e){return setTimeout(e,0)}function et(e){return clearTimeout(e)}Ke.prototype={constructor:Ke,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ae=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ie):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,c=e.type,l=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,h=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||h,filter=r.filter;if(function(e){Ne.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Ne.push(r)}}(n),!ie&&!(/mousedown|pointerdown/.test(c)&&0!==e.button||r.disabled||d.isContentEditable||(h=P(h,r.draggable,n,!1))&&h.animated||ue===h)){if(de=F(h),pe=F(h,r.draggable),"function"==typeof filter){if(filter.call(this,e,h,this))return re({sortable:t,rootEl:d,name:"filter",targetEl:h,toEl:n,fromEl:n}),ne("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(filter&&(filter=filter.split(",").some((function(r){if(r=P(d,r.trim(),n,!1))return re({sortable:t,rootEl:r,name:"filter",targetEl:h,fromEl:n,toEl:n}),ne("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!P(d,r.handle,n,!1)||this._prepareDragStart(e,l,h)}}},_prepareDragStart:function(e,t,n){var r,o=this,c=o.el,l=o.options,h=c.ownerDocument;if(n&&!ie&&n.parentNode===c){var d=N(n);if(se=c,oe=(ie=n).parentNode,ce=ie.nextSibling,ue=n,ge=l.group,Ke.dragged=ie,be={target:ie,clientX:(t||e).clientX,clientY:(t||e).clientY},_e=be.clientX-d.left,Ce=be.clientY-d.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ie.style["will-change"]="all",r=function(){ne("delayEnded",o,{evt:e}),Ke.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!y&&o.nativeDraggable&&(ie.draggable=!0),o._triggerDragStart(e,t),re({sortable:o,name:"choose",originalEvent:e}),k(ie,l.chosenClass,!0))},l.ignore.split(",").forEach((function(e){j(ie,e.trim(),Xe)})),O(h,"dragover",We),O(h,"mousemove",We),O(h,"touchmove",We),O(h,"mouseup",o._onDrop),O(h,"touchend",o._onDrop),O(h,"touchcancel",o._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),ne("delayStart",this,{evt:e}),!l.delay||l.delayOnTouchOnly&&!t||this.nativeDraggable&&(v||m))r();else{if(Ke.eventCanceled)return void this._onDrop();O(h,"mouseup",o._disableDelayedDrag),O(h,"touchend",o._disableDelayedDrag),O(h,"touchcancel",o._disableDelayedDrag),O(h,"mousemove",o._delayedDragTouchMoveHandler),O(h,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&O(h,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,l.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ie&&Xe(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;A(e,"mouseup",this._disableDelayedDrag),A(e,"touchend",this._disableDelayedDrag),A(e,"touchcancel",this._disableDelayedDrag),A(e,"mousemove",this._delayedDragTouchMoveHandler),A(e,"touchmove",this._delayedDragTouchMoveHandler),A(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?O(document,"pointermove",this._onTouchMove):O(document,t?"touchmove":"mousemove",this._onTouchMove):(O(ie,"dragend",this),O(se,"dragstart",this._onDragStart));try{document.selection?Qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Me=!1,se&&ie){ne("dragStarted",this,{evt:t}),this.nativeDraggable&&O(document,"dragover",qe);var n=this.options;!e&&k(ie,n.dragClass,!1),k(ie,n.ghostClass,!0),Ke.active=this,e&&this._appendGhost(),re({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ye){this._lastX=ye.clientX,this._lastY=ye.clientY,Ge();for(var e=document.elementFromPoint(ye.clientX,ye.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ye.clientX,ye.clientY))!==t;)t=e;if(ie.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){if(t[X]._onDragOver({clientX:ye.clientX,clientY:ye.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ve()}},_onTouchMove:function(e){if(be){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,c=ae&&R(ae,!0),l=ae&&c&&c.a,h=ae&&c&&c.d,d=Be&&Pe&&z(Pe),f=(o.clientX-be.clientX+r.x)/(l||1)+(d?d[0]-je[0]:0)/(l||1),m=(o.clientY-be.clientY+r.y)/(h||1)+(d?d[1]-je[1]:0)/(h||1);if(!Ke.active&&!Me){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ae){c?(c.e+=f-(we||0),c.f+=m-(Se||0)):c={a:1,b:0,c:0,d:1,e:f,f:m};var v="matrix(".concat(c.a,",").concat(c.b,",").concat(c.c,",").concat(c.d,",").concat(c.e,",").concat(c.f,")");I(ae,"webkitTransform",v),I(ae,"mozTransform",v),I(ae,"msTransform",v),I(ae,"transform",v),we=f,Se=m,ye=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ae){var e=this.options.fallbackOnBody?document.body:se,rect=N(ie,!0,Be,!0,e),t=this.options;if(Be){for(Pe=e;"static"===I(Pe,"position")&&"none"===I(Pe,"transform")&&Pe!==document;)Pe=Pe.parentNode;Pe!==document.body&&Pe!==document.documentElement?(Pe===document&&(Pe=D()),rect.top+=Pe.scrollTop,rect.left+=Pe.scrollLeft):Pe=D(),je=z(Pe)}k(ae=ie.cloneNode(!0),t.ghostClass,!1),k(ae,t.fallbackClass,!0),k(ae,t.dragClass,!0),I(ae,"transition",""),I(ae,"transform",""),I(ae,"box-sizing","border-box"),I(ae,"margin",0),I(ae,"top",rect.top),I(ae,"left",rect.left),I(ae,"width",rect.width),I(ae,"height",rect.height),I(ae,"opacity","0.8"),I(ae,"position",Be?"absolute":"fixed"),I(ae,"zIndex","100000"),I(ae,"pointerEvents","none"),Ke.ghost=ae,e.appendChild(ae),I(ae,"transform-origin",_e/parseInt(ae.style.width)*100+"% "+Ce/parseInt(ae.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;ne("dragStart",this,{evt:e}),Ke.eventCanceled?this._onDrop():(ne("setupClone",this),Ke.eventCanceled||((le=W(ie)).draggable=!1,le.style["will-change"]="",this._hideClone(),k(le,this.options.chosenClass,!1),Ke.clone=le),n.cloneId=Qe((function(){ne("clone",n),Ke.eventCanceled||(n.options.removeCloneOnHide||se.insertBefore(le,ie),n._hideClone(),re({sortable:n,name:"clone"}))})),!t&&k(ie,o.dragClass,!0),t?(xe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(A(document,"mouseup",n._onDrop),A(document,"touchend",n._onDrop),A(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,ie)),O(document,"drop",n),I(ie,"transform","translateZ(0)")),Me=!0,n._dragStartId=Qe(n._dragStarted.bind(n,t,e)),O(document,"selectstart",n),Oe=!0,w&&I(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,c=this.el,h=e.target,d=this.options,f=d.group,m=Ke.active,v=ge===f,y=d.sort,w=ve||m,S=this,_=!1;if(!De){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),h=P(h,d.draggable,c,!0),H("dragOver"),Ke.eventCanceled)return _;if(ie.contains(e.target)||h.animated&&h.animatingX&&h.animatingY||S._ignoreWhileAnimating===h)return W(!1);if(xe=!1,m&&!d.disabled&&(v?y||(r=!se.contains(ie)):ve===this||(this.lastPutMode=ge.checkPull(this,m,ie,e))&&f.checkPut(this,m,ie,e))){if(o="vertical"===this._getDirection(e,h),t=N(ie),H("dragOverValid"),Ke.eventCanceled)return _;if(r)return oe=se,G(),this._hideClone(),H("revert"),Ke.eventCanceled||(ce?se.insertBefore(ie,ce):se.appendChild(ie)),W(!0);var C=U(c,d.draggable);if(!C||function(e,t,n){var rect=N(U(n.el,n.options.draggable)),r=10;return t?e.clientX>rect.right+r||e.clientX<=rect.right&&e.clientY>rect.bottom&&e.clientX>=rect.left:e.clientX>rect.right&&e.clientY>rect.top||e.clientX<=rect.right&&e.clientY>rect.bottom+r}(e,o,this)&&!C.animated){if(C===ie)return W(!1);if(C&&c===e.target&&(h=C),h&&(n=N(h)),!1!==Ye(se,c,ie,t,h,n,e,!!h))return G(),c.appendChild(ie),oe=c,K(),W(!0)}else if(h.parentNode===c){n=N(h);var O,A,T,E=ie.parentNode!==c,M=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,c=n?e.width:e.height,l=n?t.left:t.top,h=n?t.right:t.bottom,d=n?t.width:t.height;return r===l||o===h||r+c/2===l+d/2}(ie.animated&&ie.toRect||t,h.animated&&h.toRect||n,o),x=o?"top":"left",R=L(h,"top","top")||L(ie,"top","top"),j=R?R.scrollTop:void 0;if(Ae!==h&&(A=n[x],Ie=!1,Re=!M&&d.invertSwap||E),O=function(e,t,n,r,o,c,l,h){var d=r?e.clientY:e.clientX,f=r?n.height:n.width,m=r?n.top:n.left,v=r?n.bottom:n.right,y=!1;if(!l)if(h&&Ee<f*o){if(!Ie&&(1===Te?d>m+f*c/2:d<v-f*c/2)&&(Ie=!0),Ie)y=!0;else if(1===Te?d<m+Ee:d>v-Ee)return-Te}else if(d>m+f*(1-o)/2&&d<v-f*(1-o)/2)return function(e){return F(ie)<F(e)?1:-1}(t);if((y=y||l)&&(d<m+f*c/2||d>v-f*c/2))return d>m+f/2?1:-1;return 0}(e,h,n,o,M?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,Re,Ae===h),0!==O){var D=F(ie);do{D-=O,T=oe.children[D]}while(T&&("none"===I(T,"display")||T===ae))}if(0===O||T===h)return W(!1);Ae=h,Te=O;var B=h.nextElementSibling,z=!1,$=Ye(se,c,ie,t,h,n,e,z=1===O);if(!1!==$)return 1!==$&&-1!==$||(z=1===$),De=!0,setTimeout(Je,30),G(),z&&!B?c.appendChild(ie):h.parentNode.insertBefore(ie,z?B:h),R&&V(R,0,j-R.scrollTop),oe=ie.parentNode,void 0===A||Re||(Ee=Math.abs(A-N(h)[x])),K(),W(!0)}if(c.contains(ie))return W(!1)}return!1}function H(d,f){ne(d,S,l({evt:e,isOwner:v,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:y,fromSortable:w,target:h,completed:W,onMove:function(n,r){return Ye(se,c,ie,t,n,N(n),e,r)},changed:K},f))}function G(){H("dragOverAnimationCapture"),S.captureAnimationState(),S!==w&&w.captureAnimationState()}function W(t){return H("dragOverCompleted",{insertion:t}),t&&(v?m._hideClone():m._showClone(S),S!==w&&(k(ie,ve?ve.options.ghostClass:m.options.ghostClass,!1),k(ie,d.ghostClass,!0)),ve!==S&&S!==Ke.active?ve=S:S===Ke.active&&ve&&(ve=null),w===S&&(S._ignoreWhileAnimating=h),S.animateAll((function(){H("dragOverAnimationComplete"),S._ignoreWhileAnimating=null})),S!==w&&(w.animateAll(),w._ignoreWhileAnimating=null)),(h===ie&&!ie.animated||h===c&&!h.animated)&&(Ae=null),d.dragoverBubble||e.rootEl||h===document||(ie.parentNode[X]._isOutsideThisEl(e.target),!t&&We(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),_=!0}function K(){fe=F(ie),me=F(ie,d.draggable),re({sortable:S,name:"change",toEl:c,newIndex:fe,newDraggableIndex:me,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){A(document,"mousemove",this._onTouchMove),A(document,"touchmove",this._onTouchMove),A(document,"pointermove",this._onTouchMove),A(document,"dragover",We),A(document,"mousemove",We),A(document,"touchmove",We)},_offUpEvents:function(){var e=this.el.ownerDocument;A(e,"mouseup",this._onDrop),A(e,"touchend",this._onDrop),A(e,"pointerup",this._onDrop),A(e,"touchcancel",this._onDrop),A(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;fe=F(ie),me=F(ie,n.draggable),ne("drop",this,{evt:e}),oe=ie&&ie.parentNode,fe=F(ie),me=F(ie,n.draggable),Ke.eventCanceled||(Me=!1,Re=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),et(this.cloneId),et(this._dragStartId),this.nativeDraggable&&(A(document,"drop",this),A(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),w&&I(document.body,"user-select",""),I(ie,"transform",""),e&&(Oe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ae&&ae.parentNode&&ae.parentNode.removeChild(ae),(se===oe||ve&&"clone"!==ve.lastPutMode)&&le&&le.parentNode&&le.parentNode.removeChild(le),ie&&(this.nativeDraggable&&A(ie,"dragend",this),Xe(ie),ie.style["will-change"]="",Oe&&!Me&&k(ie,ve?ve.options.ghostClass:this.options.ghostClass,!1),k(ie,this.options.chosenClass,!1),re({sortable:this,name:"unchoose",toEl:oe,newIndex:null,newDraggableIndex:null,originalEvent:e}),se!==oe?(fe>=0&&(re({rootEl:oe,name:"add",toEl:oe,fromEl:se,originalEvent:e}),re({sortable:this,name:"remove",toEl:oe,originalEvent:e}),re({rootEl:oe,name:"sort",toEl:oe,fromEl:se,originalEvent:e}),re({sortable:this,name:"sort",toEl:oe,originalEvent:e})),ve&&ve.save()):fe!==de&&fe>=0&&(re({sortable:this,name:"update",toEl:oe,originalEvent:e}),re({sortable:this,name:"sort",toEl:oe,originalEvent:e})),Ke.active&&(null!=fe&&-1!==fe||(fe=de,me=pe),re({sortable:this,name:"end",toEl:oe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ne("nulling",this),se=ie=oe=ae=ce=le=ue=he=be=ye=Oe=fe=me=de=pe=Ae=Te=ve=ge=Ke.dragged=Ke.ghost=Ke.clone=Ke.active=null,Ne.forEach((function(e){e.checked=!0})),Ne.length=we=Se=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ie&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)P(e=n[i],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||Ze(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){var r=n.children[i];P(r,this.options.draggable,n,!1)&&(t[e]=r)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return P(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ee.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&He(n)},destroy:function(){ne("destroy",this);var e=this.el;e[X]=null,A(e,"mousedown",this._onTapStart),A(e,"touchstart",this._onTapStart),A(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(A(e,"dragover",this),A(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ne("hideClone",this),Ke.eventCanceled)return;I(le,"display","none"),this.options.removeCloneOnHide&&le.parentNode&&le.parentNode.removeChild(le),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ne("showClone",this),Ke.eventCanceled)return;se.contains(ie)&&!this.options.group.revertClone?se.insertBefore(le,ie):ce?se.insertBefore(le,ce):se.appendChild(le),this.options.group.revertClone&&this.animate(ie,le),I(le,"display",""),he=!1}}else this._hideClone()}},Le&&O(document,"touchmove",(function(e){(Ke.active||Me)&&e.cancelable&&e.preventDefault()})),Ke.utils={on:O,off:A,css:I,find:j,is:function(e,t){return!!P(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:G,closest:P,toggleClass:k,clone:W,index:F,nextTick:Qe,cancelNextTick:et,detectDirection:$e,getChild:B},Ke.get=function(element){return element[X]},Ke.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ke.utils=l({},Ke.utils,e.utils)),ee.mount(e)}))},Ke.create=function(e,t){return new Ke(e,t)},Ke.version="1.10.2";var tt,nt,it,ot,at,st,ct=[],ut=!1;function lt(){ct.forEach((function(e){clearInterval(e.pid)})),ct=[]}function ht(){clearInterval(st)}var ft,pt=G((function(e,t,n,r){if(t.scroll){var o,c=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,h=t.scrollSensitivity,d=t.scrollSpeed,f=D(),m=!1;nt!==n&&(nt=n,lt(),tt=t.scroll,o=t.scrollFn,!0===tt&&(tt=$(n,!0)));var v=0,y=tt;do{var w=y,rect=N(w),S=rect.top,_=rect.bottom,C=rect.left,O=rect.right,A=rect.width,T=rect.height,E=void 0,P=void 0,M=w.scrollWidth,x=w.scrollHeight,k=I(w),R=w.scrollLeft,j=w.scrollTop;w===f?(E=A<M&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),P=T<x&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(E=A<M&&("auto"===k.overflowX||"scroll"===k.overflowX),P=T<x&&("auto"===k.overflowY||"scroll"===k.overflowY));var L=E&&(Math.abs(O-c)<=h&&R+A<M)-(Math.abs(C-c)<=h&&!!R),B=P&&(Math.abs(_-l)<=h&&j+T<x)-(Math.abs(S-l)<=h&&!!j);if(!ct[v])for(var i=0;i<=v;i++)ct[i]||(ct[i]={});ct[v].vx==L&&ct[v].vy==B&&ct[v].el===w||(ct[v].el=w,ct[v].vx=L,ct[v].vy=B,clearInterval(ct[v].pid),0==L&&0==B||(m=!0,ct[v].pid=setInterval(function(){r&&0===this.layer&&Ke.active._onTouchMove(at);var t=ct[this.layer].vy?ct[this.layer].vy*d:0,n=ct[this.layer].vx?ct[this.layer].vx*d:0;"function"==typeof o&&"continue"!==o.call(Ke.dragged.parentNode[X],n,t,e,at,ct[this.layer].el)||V(ct[this.layer].el,n,t)}.bind({layer:v}),24))),v++}while(t.bubbleScroll&&y!==f&&(y=$(y,!1)));ut=m}}),30),mt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,c=e.dispatchSortableEvent,l=e.hideGhostForTarget,h=e.unhideGhostForTarget;if(t){var d=n||o;l();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,m=document.elementFromPoint(f.clientX,f.clientY);h(),d&&!d.el.contains(m)&&(c("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function gt(){}function vt(){}function bt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ft=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,c=e.changed,l=e.cancel;if(o.options.swap){var h=this.sortable.el,d=this.options;if(n&&n!==h){var f=ft;!1!==r(n)?(k(n,d.swapClass,!0),ft=n):ft=null,f&&f!==ft&&k(f,d.swapClass,!1)}c(),t(!0),l()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,c=this.options;ft&&k(ft,c.swapClass,!1),ft&&(c.swap||n&&n.options.swap)&&r!==ft&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,c=t.parentNode;if(!o||!c||o.isEqualNode(t)||c.isEqualNode(e))return;n=F(e),r=F(t),o.isEqualNode(c)&&n<r&&r++;o.insertBefore(t,o.children[n]),c.insertBefore(e,c.children[r])}(r,ft),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){ft=null}},c(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ft}}})}gt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=B(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:mt},c(gt,{pluginName:"revertOnSpill"}),vt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:mt},c(vt,{pluginName:"removeOnSpill"});var yt,wt,St,_t,Ct,Ot=[],At=[],Tt=!1,Et=!1,Pt=!1;function Mt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?O(document,"pointerup",this._deselectMultiDrag):(O(document,"mouseup",this._deselectMultiDrag),O(document,"touchend",this._deselectMultiDrag)),O(document,"keydown",this._checkKeyDown),O(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var data="";Ot.length&&wt===e?Ot.forEach((function(e,i){data+=(i?", ":"")+e.textContent})):data=n.textContent,t.setData("Text",data)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;St=t},delayEnded:function(){this.isMultiDrag=~Ot.indexOf(St)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var i=0;i<Ot.length;i++)At.push(W(Ot[i])),At[i].sortableIndex=Ot[i].sortableIndex,At[i].draggable=!1,At[i].style["will-change"]="",k(At[i],this.options.selectedClass,!1),Ot[i]===St&&k(At[i],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ot.length&&wt===t&&(xt(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(xt(!1,n),At.forEach((function(e){I(e,"display","")})),t(),Ct=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(At.forEach((function(e){I(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Ct=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&wt&&wt.multiDrag._deselectMultiDrag(),Ot.forEach((function(e){e.sortableIndex=F(e)})),Ot=Ot.sort((function(a,b){return a.sortableIndex-b.sortableIndex})),Pt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Ot.forEach((function(e){e!==St&&I(e,"position","absolute")}));var r=N(St,!1,!0,!0);Ot.forEach((function(e){e!==St&&K(e,r)})),Et=!0,Tt=!0}n.animateAll((function(){Et=!1,Tt=!1,t.options.animation&&Ot.forEach((function(e){Y(e)})),t.options.sort&&kt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Et&&~Ot.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;Ot.length>1&&(Ot.forEach((function(e){r.addAnimationState({target:e,rect:Et?N(e):o}),Y(e),e.fromRect=o,t.removeAnimationState(e)})),Et=!1,function(e,t){Ot.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,c=e.parentEl,l=e.putSortable,h=this.options;if(r){if(n&&o._hideClone(),Tt=!1,h.animation&&Ot.length>1&&(Et||!n&&!o.options.sort&&!l)){var d=N(St,!1,!0,!0);Ot.forEach((function(e){e!==St&&(K(e,d),c.appendChild(e))})),Et=!0}if(!n)if(Et||kt(),Ot.length>1){var f=Ct;o._showClone(t),o.options.animation&&!Ct&&f&&At.forEach((function(e){o.addAnimationState({target:e,rect:_t}),e.fromRect=_t,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Ot.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){_t=c({},t);var o=R(St,!0);_t.top-=o.f,_t.left-=o.e}},dragOverAnimationComplete:function(){Et&&(Et=!1,kt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,c=e.dispatchSortableEvent,l=e.oldIndex,h=e.putSortable,d=h||this.sortable;if(t){var f=this.options,m=r.children;if(!Pt)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),k(St,f.selectedClass,!~Ot.indexOf(St)),~Ot.indexOf(St))Ot.splice(Ot.indexOf(St),1),yt=null,te({sortable:o,rootEl:n,name:"deselect",targetEl:St,originalEvt:t});else{if(Ot.push(St),te({sortable:o,rootEl:n,name:"select",targetEl:St,originalEvt:t}),t.shiftKey&&yt&&o.el.contains(yt)){var v,i,y=F(yt),w=F(St);if(~y&&~w&&y!==w)for(w>y?(i=y,v=w):(i=w,v=y+1);i<v;i++)~Ot.indexOf(m[i])||(k(m[i],f.selectedClass,!0),Ot.push(m[i]),te({sortable:o,rootEl:n,name:"select",targetEl:m[i],originalEvt:t}))}else yt=St;wt=d}if(Pt&&this.isMultiDrag){if((r[X].options.sort||r!==n)&&Ot.length>1){var S=N(St),_=F(St,":not(."+this.options.selectedClass+")");if(!Tt&&f.animation&&(St.thisAnimationDuration=null),d.captureAnimationState(),!Tt&&(f.animation&&(St.fromRect=S,Ot.forEach((function(e){if(e.thisAnimationDuration=null,e!==St){var rect=Et?N(e):S;e.fromRect=rect,d.addAnimationState({target:e,rect:rect})}}))),kt(),Ot.forEach((function(e){m[_]?r.insertBefore(e,m[_]):r.appendChild(e),_++})),l===F(St))){var C=!1;Ot.forEach((function(e){e.sortableIndex===F(e)||(C=!0)})),C&&c("update")}Ot.forEach((function(e){Y(e)})),d.animateAll()}wt=d}(n===r||h&&"clone"!==h.lastPutMode)&&At.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Pt=!1,At.length=0},destroyGlobal:function(){this._deselectMultiDrag(),A(document,"pointerup",this._deselectMultiDrag),A(document,"mouseup",this._deselectMultiDrag),A(document,"touchend",this._deselectMultiDrag),A(document,"keydown",this._checkKeyDown),A(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Pt&&Pt||wt!==this.sortable||e&&P(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;Ot.length;){var t=Ot[0];k(t,this.options.selectedClass,!1),Ot.shift(),te({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},c(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[X];t&&t.options.multiDrag&&!~Ot.indexOf(e)&&(wt&&wt!==t&&(wt.multiDrag._deselectMultiDrag(),wt=t),k(e,t.options.selectedClass,!0),Ot.push(e))},deselect:function(e){var t=e.parentNode[X],n=Ot.indexOf(e);t&&t.options.multiDrag&&~n&&(k(e,t.options.selectedClass,!1),Ot.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Ot.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=Et&&r!==St?-1:Et?F(r,":not(."+e.options.selectedClass+")"):F(r),n.push({multiDragElement:r,index:o})})),{items:d(Ot),clones:[].concat(At),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function xt(e,t){At.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function kt(){Ot.forEach((function(e){e!==St&&e.parentNode&&e.parentNode.removeChild(e)}))}Ke.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):this.options.supportPointer?O(document,"pointermove",this._handleFallbackAutoScroll):t.touches?O(document,"touchmove",this._handleFallbackAutoScroll):O(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):(A(document,"pointermove",this._handleFallbackAutoScroll),A(document,"touchmove",this._handleFallbackAutoScroll),A(document,"mousemove",this._handleFallbackAutoScroll)),ht(),lt(),clearTimeout(M),M=void 0},nulling:function(){at=nt=tt=ut=st=it=ot=null,ct.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,c=document.elementFromPoint(r,o);if(at=e,t||v||m||w){pt(e,this.options,c,t);var l=$(c,!0);!ut||st&&r===it&&o===ot||(st&&ht(),st=setInterval((function(){var c=$(document.elementFromPoint(r,o),!0);c!==l&&(l=c,lt()),pt(e,n.options,c,t)}),10),it=r,ot=o)}else{if(!this.options.bubbleScroll||$(c,!0)===D())return void lt();pt(e,this.options,$(c,!1),!1)}}},c(e,{pluginName:"scroll",initializeByDefault:!0})}),Ke.mount(vt,gt),t.default=Ke},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,object){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in object)Object.prototype.hasOwnProperty.call(object,t)&&(e[t]=object[t]);return e},e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,l.default)(1,arguments),!(0,o.default)(e)&&"number"!=typeof e)return!1;var t=(0,c.default)(e);return!isNaN(Number(t))};var o=r(n(1506)),c=r(n(215)),l=r(n(145));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,c.default)(1,arguments),e instanceof Date||"object"===(0,o.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var o=r(n(419)),c=r(n(145));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,c.default)(2,arguments);var n=(0,l.default)(t);return(0,o.default)(e,-n)};var o=r(n(1508)),c=r(n(145)),l=r(n(272));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,l.default)(2,arguments);var n=(0,c.default)(e).getTime(),r=(0,o.default)(t);return new Date(n+r)};var o=r(n(272)),c=r(n(215)),l=r(n(145));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1510)),c=r(n(1511)),l=r(n(928)),h=r(n(1513)),d=r(n(929)),f=r(n(930)),m=r(n(1515)),v="midnight",y="noon",w="morning",S="afternoon",_="evening",C="night";function O(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),c=r%60;if(0===c)return n+String(o);var l=t||"";return n+String(o)+l+(0,f.default)(c,2)}function A(e,t){return e%60==0?(e>0?"-":"+")+(0,f.default)(Math.abs(e)/60,2):T(e,t)}function T(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+(0,f.default)(Math.floor(o/60),2)+n+(0,f.default)(o%60,2)}var E={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return m.default.y(e,t)},Y:function(e,t,n,r){var o=(0,d.default)(e,r),c=o>0?o:1-o;if("YY"===t){var l=c%100;return(0,f.default)(l,2)}return"Yo"===t?n.ordinalNumber(c,{unit:"year"}):(0,f.default)(c,t.length)},R:function(e,t){var n=(0,l.default)(e);return(0,f.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,f.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,f.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,f.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return m.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,f.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,h.default)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,f.default)(o,t.length)},I:function(e,t,n){var r=(0,c.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,f.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m.default.d(e,t)},D:function(e,t,n){var r=(0,o.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,f.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),c=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(c);case"ee":return(0,f.default)(c,2);case"eo":return n.ordinalNumber(c,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),c=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(c);case"cc":return(0,f.default)(c,t.length);case"co":return n.ordinalNumber(c,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,f.default)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?y:0===o?v:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?_:o>=12?S:o>=4?w:C,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):m.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,f.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,f.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):m.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):m.default.s(e,t)},S:function(e,t){return m.default.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return A(o);case"XXXX":case"XX":return T(o);default:return T(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return A(o);case"xxxx":case"xx":return T(o);default:return T(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+O(o,":");default:return"GMT"+T(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+O(o,":");default:return"GMT"+T(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,c=Math.floor(o.getTime()/1e3);return(0,f.default)(c,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return(0,f.default)(o,t.length)}};t.default=E,e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,c.default)(1,arguments);var t=(0,o.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),h=n-r;return Math.floor(h/l)+1};var o=r(n(215)),c=r(n(145)),l=864e5;e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,h.default)(1,arguments);var t=(0,o.default)(e),n=(0,c.default)(t).getTime()-(0,l.default)(t).getTime();return Math.round(n/d)+1};var o=r(n(215)),c=r(n(609)),l=r(n(1512)),h=r(n(145)),d=6048e5;e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,l.default)(1,arguments);var t=(0,o.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,c.default)(n)};var o=r(n(928)),c=r(n(609)),l=r(n(145));e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,h.default)(1,arguments);var n=(0,o.default)(e),r=(0,c.default)(n,t).getTime()-(0,l.default)(n,t).getTime();return Math.round(r/d)+1};var o=r(n(215)),c=r(n(610)),l=r(n(1514)),h=r(n(145)),d=6048e5;e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,f,m,v,y,w,S;(0,c.default)(1,arguments);var _=(0,d.getDefaultOptions)(),C=(0,h.default)(null!==(n=null!==(r=null!==(f=null!==(m=null==t?void 0:t.firstWeekContainsDate)&&void 0!==m?m:null==t||null===(v=t.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==f?f:_.firstWeekContainsDate)&&void 0!==r?r:null===(w=_.locale)||void 0===w||null===(S=w.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==n?n:1),O=(0,o.default)(e,t),A=new Date(0);return A.setUTCFullYear(O,0,C),A.setUTCHours(0,0,0,0),(0,l.default)(A,t)};var o=r(n(929)),c=r(n(145)),l=r(n(610)),h=r(n(272)),d=n(492);e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(930)),c={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,o.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,o.default)(n+1,2)},d:function(e,t){return(0,o.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,o.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,o.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,o.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,o.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),c=Math.floor(r*Math.pow(10,n-3));return(0,o.default)(c,t.length)}};t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(pattern,e){switch(pattern){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},o=function(pattern,e){switch(pattern){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},c={p:o,P:function(pattern,e){var t,n=pattern.match(/(P+)(p+)?/)||[],c=n[1],l=n[2];if(!l)return r(pattern,e);switch(c){case"P":t=e.dateTime({width:"short"});break;case"PP":t=e.dateTime({width:"medium"});break;case"PPP":t=e.dateTime({width:"long"});break;default:t=e.dateTime({width:"full"})}return t.replace("{{date}}",r(c,e)).replace("{{time}}",o(l,e))}};t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==r.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==o.indexOf(e)},t.throwProtectedError=function(e,t,input){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var r=["D","DD"],o=["YY","YYYY"]},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1519)).default;t.default=o,e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1520)),c=r(n(1521)),l=r(n(1523)),h=r(n(1524)),d=r(n(1526)),f={code:"en-US",formatDistance:o.default,formatLong:c.default,formatRelative:l.default,localize:h.default,match:d.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(e,t,n){var o,c=r[e];return o="string"==typeof c?c:1===t?c.one:c.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};t.default=o,e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1522)),c={date:(0,o.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=function(e,t,n,o){return r[e]};t.default=o,e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1525)),c={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,o.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,o.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,o.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,o.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,o.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,c=null!=n&&n.width?String(n.width):o;r=e.formattingValues[c]||e.formattingValues[o]}else{var l=e.defaultWidth,h=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[h]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},function(e,t,n){"use strict";var r=n(96).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1527)),c={ordinalNumber:(0,r(n(1528)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,o.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,o.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,o.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,o.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,o.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],c=t.match(o);if(!c)return null;var l,h=c[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(d,(function(pattern){return pattern.test(h)})):function(object,e){for(var t in object)if(object.hasOwnProperty(t)&&e(object[t]))return t;return}(d,(function(pattern){return pattern.test(h)}));return l=e.valueCallback?e.valueCallback(f):f,{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(h.length)}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],c=t.match(e.parsePattern);if(!c)return null;var l=e.valueCallback?e.valueCallback(c[0]):c[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(o.length)}}},e.exports=t.default},function(e,t,n){e.exports={}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,,function(e,t,n){e.exports={}},,,,,,,,,,,,,,,,function(e,t,n){e.exports={}},,,,,function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},function(e,t,n){e.exports={}},,,,,,,,,,,,function(e,t,n){e.exports={}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}}),t=n(279);var i=n.n(t),u=(t=n(370),n.n(t)),r=(t=n(817),n.n(t));function o(e){try{return document.execCommand(e)}catch(e){return}}var a=function(e){return e=r()(e),o("cut"),e};function c(e,t){var n,c;return n=e,c="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[c?"right":"left"]="-9999px",c=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(c,"px"),e.setAttribute("readonly",""),e.value=n,t.container.appendChild(e),t=r()(e),o("copy"),e.remove(),t}var l=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=c(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=c(e.value,t):(n=r()(e),o("copy")),n};function h(e){return(h="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 s=function(){var e=void 0===(n=(r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":n,t=r.container,n=r.target,r=r.text;if("copy"!==e&&"cut"!==e)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==n){if(!n||"object"!==h(n)||1!==n.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===e&&n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===e&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?l(r,{container:t}):n?"cut"===e?a(n):l(n,{container:t}):void 0};function p(e){return(p="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 d(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);return n=t?(n=v(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments),r=this,!n||"object"!==p(n)&&"function"!=typeof n?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):n}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var b=function(){!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}}),t&&f(e,t)}(o,i());var e,t,n,r=m(o);function o(e,t){var n;return function(e){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return e=o,n=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return l(e,t)}},{key:"cut",value:function(e){return a(e)}},{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===p(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=u()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy";e=s({action:n,container:this.container,target:this.target(t),text:this.text(t)}),this.emit(e?"success":"error",{action:n,text:e,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){if(e=y("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&d(e.prototype,t),n&&d(e,n),o}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var u=n(828);function i(e,t,n,r,o){var i=function(e,t,n,r){return function(n){n.delegateTarget=u(n.target,t),n.delegateTarget&&r.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return h=t,a=n,(u=e).addEventListener(h,a),{destroy:function(){u.removeEventListener(h,a)}};if(r.nodeList(e))return c=e,l=t,i=n,Array.prototype.forEach.call(c,(function(e){e.addEventListener(l,i)})),{destroy:function(){Array.prototype.forEach.call(c,(function(e){e.removeEventListener(l,i)}))}};if(r.string(e))return o(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var c,l,i,u,h,a}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,u=r.length;i<u;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686).default;function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}var t,n}()},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(985),o=n(986),c=n(1622),l=n(1623),h=function(){function e(e){if(this.hash=new c.RawSha256,e){this.outer=new c.RawSha256;var t=function(e){var input=(0,l.convertToBuffer)(e);if(input.byteLength>o.BLOCK_SIZE){var t=new c.RawSha256;t.update(input),input=t.digest()}var n=new Uint8Array(o.BLOCK_SIZE);return n.set(input),n}(e),n=new Uint8Array(o.BLOCK_SIZE);n.set(t);for(var i=0;i<o.BLOCK_SIZE;i++)t[i]^=54,n[i]^=92;this.hash.update(t),this.outer.update(n);for(i=0;i<t.byteLength;i++)t[i]=0}}return e.prototype.update=function(e){if(!(0,l.isEmptyData)(e)&&!this.error)try{this.hash.update((0,l.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,(function(){return(0,r.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}();t.Sha256=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=n(986),o=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(data){if(this.finished)throw new Error("Attempted to update an already finished hash.");var e=0,t=data.byteLength;if(this.bytesHashed+=t,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;t>0;)this.buffer[this.bufferLength++]=data[e++],t--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i<r.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],o=t[1],c=t[2],l=t[3],h=t[4],d=t[5],f=t[6],m=t[7],i=0;i<r.BLOCK_SIZE;i++){if(i<16)this.temp[i]=(255&e[4*i])<<24|(255&e[4*i+1])<<16|(255&e[4*i+2])<<8|255&e[4*i+3];else{var u=this.temp[i-2],v=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,y=((u=this.temp[i-15])>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[i]=(v+this.temp[i-7]|0)+(y+this.temp[i-16]|0)}var w=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)|0)+(m+(r.KEY[i]+this.temp[i]|0)|0)|0,S=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&c^o&c)|0;m=f,f=d,d=h,h=l+w|0,l=c,c=o,o=n,n=w+S|0}t[0]+=n,t[1]+=o,t[2]+=c,t[3]+=l,t[4]+=h,t[5]+=d,t[6]+=f,t[7]+=m},e}();t.RawSha256=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n(1624);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var o=n(1625);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var c=n(1626);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return c.numToUint8}});var l=n(1627);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=n(1669),o=void 0!==e&&e.from?function(input){return e.from(input,"utf8")}:r.fromUtf8;t.convertToBuffer=function(data){return data instanceof Uint8Array?data:"string"==typeof data?o(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}}).call(this,n(46).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(data){return"string"==typeof data?0===data.length:0===data.byteLength}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return Uint32Array.from(e)}},function(e,t,n){(function(e,r){var o;!function(c){t&&t.nodeType,e&&e.nodeType;var l="object"==typeof r&&r;l.global!==l&&l.window!==l&&l.self;var h,d=2147483647,base=36,f=1,m=26,v=38,y=700,w=72,S=128,_="-",C=/^xn--/,O=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=base-f,P=Math.floor,M=String.fromCharCode;function x(e){throw new RangeError(T[e])}function map(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+map((e=e.replace(A,".")).split("."),t).join(".")}function I(e){for(var t,n,output=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?output.push(((1023&t)<<10)+(1023&n)+65536):(output.push(t),r--):output.push(t);return output}function R(e){return map(e,(function(e){var output="";return e>65535&&(output+=M((e-=65536)>>>10&1023|55296),e=56320|1023&e),output+=M(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?P(e/y):e>>1,e+=P(e/t);e>E*m>>1;r+=base)e=P(e/E);return P(r+(E+1)*e/(e+v))}function N(input){var e,t,n,r,o,c,l,h,v,y,C,output=[],O=input.length,i=0,A=S,T=w;for((t=input.lastIndexOf(_))<0&&(t=0),n=0;n<t;++n)input.charCodeAt(n)>=128&&x("not-basic"),output.push(input.charCodeAt(n));for(r=t>0?t+1:0;r<O;){for(o=i,c=1,l=base;r>=O&&x("invalid-input"),((h=(C=input.charCodeAt(r++))-48<10?C-22:C-65<26?C-65:C-97<26?C-97:base)>=base||h>P((d-i)/c))&&x("overflow"),i+=h*c,!(h<(v=l<=T?f:l>=T+m?m:l-T));l+=base)c>P(d/(y=base-v))&&x("overflow"),c*=y;T=D(i-o,e=output.length+1,0==o),P(i/e)>d-A&&x("overflow"),A+=P(i/e),i%=e,output.splice(i++,0,A)}return R(output)}function L(input){var e,t,n,r,o,c,l,q,h,v,y,C,O,A,T,output=[];for(C=(input=I(input)).length,e=S,t=0,o=w,c=0;c<C;++c)(y=input[c])<128&&output.push(M(y));for(n=r=output.length,r&&output.push(_);n<C;){for(l=d,c=0;c<C;++c)(y=input[c])>=e&&y<l&&(l=y);for(l-e>P((d-t)/(O=n+1))&&x("overflow"),t+=(l-e)*O,e=l,c=0;c<C;++c)if((y=input[c])<e&&++t>d&&x("overflow"),y==e){for(q=t,h=base;!(q<(v=h<=o?f:h>=o+m?m:h-o));h+=base)T=q-v,A=base-v,output.push(M(j(v+T%A,0))),q=P(T/A);output.push(M(j(q,0))),o=D(t,O,n==r),t=0,++n}++t,++e}return output.join("")}h={version:"1.4.1",ucs2:{decode:I,encode:R},decode:N,encode:L,toASCII:function(input){return k(input,(function(e){return O.test(e)?"xn--"+L(e):e}))},toUnicode:function(input){return k(input,(function(e){return C.test(e)?N(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return h}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(486)(e),n(67))},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(1631),t.encode=t.stringify=n(1632)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,c){t=t||"&",n=n||"=";var l={};if("string"!=typeof e||0===e.length)return l;var h=/\+/g;e=e.split(t);var d=1e3;c&&"number"==typeof c.maxKeys&&(d=c.maxKeys);var f=e.length;d>0&&f>d&&(f=d);for(var i=0;i<f;++i){var m,v,y,w,S=e[i].replace(h,"%20"),_=S.indexOf(n);_>=0?(m=S.substr(0,_),v=S.substr(_+1)):(m=S,v=""),y=decodeURIComponent(m),w=decodeURIComponent(v),r(l,y)?o(l[y])?l[y].push(w):l[y]=[l[y],w]:l[y]=w}return l};var o=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,l){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?map(c(e),(function(c){var l=encodeURIComponent(r(c))+n;return o(e[c])?map(e[c],(function(e){return l+encodeURIComponent(r(e))})).join(t):l+encodeURIComponent(r(e[c]))})).join(t):l?encodeURIComponent(r(l))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function map(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var c=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){e.exports=function(e){function t(e){let n,o,c,l=null;function h(...e){if(!h.enabled)return;const r=h,o=Number(new Date),c=o-(n||o);r.diff=c,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let l=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";l++;const c=t.formatters[o];if("function"==typeof c){const t=e[l];n=c.call(r,t),e.splice(l,1),l--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return h.namespace=e,h.useColors=t.useColors(),h.color=t.selectColor(e),h.extend=r,h.destroy=t.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==l?l:(o!==t.namespaces&&(o=t.namespaces,c=t.enabled(e)),c),set:e=>{l=e}}),"function"==typeof t.init&&t.init(h),h}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let i;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let i,n;for(i=0,n=t.skips.length;i<n;i++)if(t.skips[i].test(e))return!1;for(i=0,n=t.names.length;i<n;i++)if(t.names[i].test(e))return!0;return!1},t.humanize=n(1636),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let i=0;i<e.length;i++)n=(n<<5)-n+e.charCodeAt(i),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var s=1e3,n=60*s,r=60*n,o=24*r,c=7*o,l=365.25*o;function h(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var d=typeof e;if("string"===d&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var h=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return h*l;case"weeks":case"week":case"w":return h*c;case"days":case"day":case"d":return h*o;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}(e);if("number"===d&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return h(e,t,o,"day");if(t>=r)return h(e,t,r,"hour");if(t>=n)return h(e,t,n,"minute");if(t>=s)return h(e,t,s,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=r)return Math.round(e/r)+"h";if(t>=n)return Math.round(e/n)+"m";if(t>=s)return Math.round(e/s)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(495)("h264-profile-level-id");r.log=console.info.bind(console);t.ProfileConstrainedBaseline=1,t.ProfileBaseline=2,t.ProfileMain=3,t.ProfileConstrainedHigh=4,t.ProfileHigh=5;const o=0,c=10;t.Level1_b=o,t.Level1=c,t.Level1_1=11,t.Level1_2=12,t.Level1_3=13,t.Level2=20,t.Level2_1=21,t.Level2_2=22,t.Level3=30,t.Level3_1=31,t.Level3_2=32,t.Level4=40,t.Level4_1=41,t.Level4_2=42,t.Level5=50,t.Level5_1=51,t.Level5_2=52;class l{constructor(e,t){this.profile=e,this.level=t}}t.ProfileLevelId=l;const h=new l(1,31);class d{constructor(e){this._mask=~v("x",e),this._maskedValue=v("1",e)}isMatch(e){return this._maskedValue===(e&this._mask)}}class f{constructor(e,t,n){this.profile_idc=e,this.profile_iop=t,this.profile=n}}const m=[new f(66,new d("x1xx0000"),1),new f(77,new d("1xxx0000"),1),new f(88,new d("11xx0000"),1),new f(66,new d("x0xx0000"),2),new f(88,new d("10xx0000"),2),new f(77,new d("0x0x0000"),3),new f(100,new d("00000000"),5),new f(100,new d("00001100"),4)];function v(e,t){return(t[0]===e)<<7|(t[1]===e)<<6|(t[2]===e)<<5|(t[3]===e)<<4|(t[4]===e)<<3|(t[5]===e)<<2|(t[6]===e)<<1|(t[7]===e)<<0}function y(e={}){const t=e["level-asymmetry-allowed"];return 1===t||"1"===t}t.parseProfileLevelId=function(e){if("string"!=typeof e||6!==e.length)return null;const t=parseInt(e,16);if(0===t)return null;const n=255&t,h=t>>8&255,d=t>>16&255;let f;switch(n){case 11:f=0!=(16&h)?o:11;break;case c:case 12:case 13:case 20:case 21:case 22:case 30:case 31:case 32:case 40:case 41:case 42:case 50:case 51:case 52:f=n;break;default:return r("parseProfileLevelId() | unrecognized level_idc:%s",n),null}for(const pattern of m)if(d===pattern.profile_idc&&pattern.profile_iop.isMatch(h))return new l(pattern.profile,f);return r("parseProfileLevelId() | unrecognized profile_idc/profile_iop combination"),null},t.profileLevelIdToString=function(e){if(e.level==o)switch(e.profile){case 1:return"42f00b";case 2:return"42100b";case 3:return"4d100b";default:return r("profileLevelIdToString() | Level 1_b not is allowed for profile:%s",e.profile),null}let t;switch(e.profile){case 1:t="42e0";break;case 2:t="4200";break;case 3:t="4d00";break;case 4:t="640c";break;case 5:t="6400";break;default:return r("profileLevelIdToString() | unrecognized profile:%s",e.profile),null}let n=e.level.toString(16);return 1===n.length&&(n=`0${n}`),`${t}${n}`},t.parseSdpProfileLevelId=function(e={}){const n=e["profile-level-id"];return n?t.parseProfileLevelId(n):h},t.isSameProfile=function(e={},n={}){const r=t.parseSdpProfileLevelId(e),o=t.parseSdpProfileLevelId(n);return Boolean(r&&o&&r.profile===o.profile)},t.generateProfileLevelIdForAnswer=function(e={},n={}){if(!e["profile-level-id"]&&!n["profile-level-id"])return r("generateProfileLevelIdForAnswer() | no profile-level-id in local and remote params"),null;const h=t.parseSdpProfileLevelId(e),d=t.parseSdpProfileLevelId(n);if(!h)throw new TypeError("invalid local_profile_level_id");if(!d)throw new TypeError("invalid remote_profile_level_id");if(h.profile!==d.profile)throw new TypeError("H264 Profile mismatch");const f=y(e)&&y(n),m=h.level,v=d.level,w=function(a,b){return a===o?b!==c&&b!==o:b===o?a!==c:a<b}(a=m,b=v)?a:b;var a,b;const S=f?m:w;return r("generateProfileLevelIdForAnswer() | result: [profile:%s, level:%s]",h.profile,S),t.profileLevelIdToString(new l(h.profile,S))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwaitQueue=t.AwaitQueueRemovedTaskError=t.AwaitQueueStoppedError=void 0;const r=new(n(1639).Logger);class o extends Error{constructor(e){super(null!=e?e:"AwaitQueue stopped"),this.name="AwaitQueueStoppedError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,o)}}t.AwaitQueueStoppedError=o;class c extends Error{constructor(e){super(null!=e?e:"AwaitQueue task removed"),this.name="AwaitQueueRemovedTaskError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,c)}}t.AwaitQueueRemovedTaskError=c;t.AwaitQueue=class{constructor(){this.pendingTasks=new Map,this.nextTaskId=0,this.stopping=!1}get size(){return this.pendingTasks.size}async push(e,t){var n;if(t=null!==(n=t)&&void 0!==n?n:e.name,r.debug(`push() [name:${t}]`),"function"!=typeof e)throw new TypeError("given task is not a function");if(t)try{Object.defineProperty(e,"name",{value:t})}catch(e){}return new Promise(((n,o)=>{const c={id:this.nextTaskId++,task:e,name:t,enqueuedAt:Date.now(),executedAt:void 0,completed:!1,resolve:e=>{if(c.completed)return;c.completed=!0,this.pendingTasks.delete(c.id),r.debug(`resolving task [name:${c.name}]`),n(e);const[t]=this.pendingTasks.values();t&&!t.executedAt&&this.execute(t)},reject:e=>{if(!c.completed&&(c.completed=!0,this.pendingTasks.delete(c.id),r.debug(`rejecting task [name:${c.name}]: %s`,String(e)),o(e),!this.stopping)){const[e]=this.pendingTasks.values();e&&!e.executedAt&&this.execute(e)}}};this.pendingTasks.set(c.id,c),1===this.pendingTasks.size&&this.execute(c)}))}stop(){r.debug("stop()"),this.stopping=!0;for(const e of this.pendingTasks.values())r.debug(`stop() | stopping task [name:${e.name}]`),e.reject(new o);this.stopping=!1}remove(e){r.debug(`remove() [taskIdx:${e}]`);const t=Array.from(this.pendingTasks.values())[e];t?t.reject(new c):r.debug(`stop() | no task with given idx [taskIdx:${e}]`)}dump(){const e=Date.now();let t=0;return Array.from(this.pendingTasks.values()).map((n=>({idx:t++,task:n.task,name:n.name,enqueuedTime:n.executedAt?n.executedAt-n.enqueuedAt:e-n.enqueuedAt,executionTime:n.executedAt?e-n.executedAt:0})))}async execute(e){if(r.debug(`execute() [name:${e.name}]`),e.executedAt)throw new Error("task already being executed");e.executedAt=Date.now();try{const t=await e.task();e.resolve(t)}catch(t){e.reject(t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const r=n(495),o="awaitqueue";t.Logger=class{constructor(e){e?(this._debug=(0,r.default)(`${o}:${e}`),this._warn=(0,r.default)(`${o}:WARN:${e}`),this._error=(0,r.default)(`${o}:ERROR:${e}`)):(this._debug=(0,r.default)(o),this._warn=(0,r.default)(`${o}:WARN`),this._error=(0,r.default)(`${o}:ERROR`)),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}get debug(){return this._debug}get warn(){return this._warn}get error(){return this._error}}},function(e,t,n){(function(t){let n;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:t):e=>(n||(n=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))}).call(this,n(67))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome111=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(356)),y=c(n(496)),w=n(156),S=n(181),_=n(217),C=n(310),O=new h.Logger("Chrome111"),A={OS:1024,MIS:1024};class T extends S.HandlerInterface{static createFactory(){return()=>new T}constructor(){super(),this._closed=!1,this._mapMidTransceiver=new Map,this._sendStream=new MediaStream,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Chrome111"}close(){if(O.debug("close()"),!this._closed){if(this._closed=!0,this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}}async getNativeRtpCapabilities(){O.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan"});try{e.addTransceiver("audio"),e.addTransceiver("video");const t=await e.createOffer();try{e.close()}catch(e){}const n=l.parse(t.sdp),r=m.extractRtpCapabilities({sdpObject:n});return y.addNackSuppportForOpus(r),r}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return O.debug("getNativeSctpCapabilities()"),{numStreams:A}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){this.assertNotClosed(),O.debug("run()"),this._direction=e,this._remoteSdp=new _.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):(O.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}})))}async updateIceServers(e){this.assertNotClosed(),O.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(this.assertNotClosed(),O.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});O.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();O.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this.assertNotClosed(),this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){if(this.assertNotClosed(),this.assertSendDirection(),O.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),e&&e.length>1){e.forEach(((e,t)=>{e.rid=`r${t}`}));let t=1,n=1;for(const t of e){const e=t.scalabilityMode?(0,C.parse)(t.scalabilityMode).temporalLayers:3;e>n&&(n=e)}for(const r of e)r.rid="r"+t++,r.scalabilityMode=`L1T${n}`}const r=d.clone(this._sendingRtpParametersByKind[track.kind]);r.codecs=f.reduceCodecs(r.codecs,n);const o=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);o.codecs=f.reduceCodecs(o.codecs,n);const c=this._remoteSdp.getNextMediaSectionIdx(),h=this._pc.addTransceiver(track,{direction:"sendonly",streams:[this._sendStream],sendEncodings:e}),y=await this._pc.createOffer();let w=l.parse(y.sdp);var S;this._transportReady||await this.setupTransport({localDtlsRole:null!==(S=this._forcedLocalDtlsRole)&&void 0!==S?S:"client",localSdpObject:w});O.debug("send() | calling pc.setLocalDescription() [offer:%o]",y),await this._pc.setLocalDescription(y);const _=h.mid;r.mid=_,w=l.parse(this._pc.localDescription.sdp);const A=w.media[c.idx];if(r.rtcp.cname=m.getCname({offerMediaObject:A}),e)if(1===e.length){const t=v.getRtpEncodings({offerMediaObject:A});Object.assign(t[0],e[0]),r.encodings=t}else r.encodings=e;else r.encodings=v.getRtpEncodings({offerMediaObject:A});this._remoteSdp.send({offerMediaObject:A,reuseMid:c.reuseMid,offerRtpParameters:r,answerRtpParameters:o,codecOptions:t,extmapAllowMixed:!0});const T={type:"answer",sdp:this._remoteSdp.getSdp()};return O.debug("send() | calling pc.setRemoteDescription() [answer:%o]",T),await this._pc.setRemoteDescription(T),this._mapMidTransceiver.set(_,h),{localId:_,rtpParameters:r,rtpSender:h.sender}}async stopSending(e){if(this.assertSendDirection(),O.debug("stopSending() [localId:%s]",e),this._closed)return;const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.sender.replaceTrack(null),this._pc.removeTrack(t.sender);if(this._remoteSdp.closeMediaSection(t.mid))try{t.stop()}catch(e){}const n=await this._pc.createOffer();O.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._mapMidTransceiver.delete(e)}async pauseSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("pauseSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="inactive",this._remoteSdp.pauseMediaSection(e);const n=await this._pc.createOffer();O.debug("pauseSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("pauseSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async resumeSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("resumeSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(this._remoteSdp.resumeSendingMediaSection(e),!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="sendonly";const n=await this._pc.createOffer();O.debug("resumeSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("resumeSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async replaceTrack(e,track){this.assertNotClosed(),this.assertSendDirection(),track?O.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):O.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");await t.sender.replaceTrack(track)}async setMaxSpatialLayer(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setMaxSpatialLayer() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setMaxSpatialLayer() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async setRtpEncodingParameters(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setRtpEncodingParameters() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setRtpEncodingParameters() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async getSenderStats(e){this.assertNotClosed(),this.assertSendDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.sender.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertNotClosed(),this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmits:n,protocol:r};O.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%A.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});O.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertNotClosed(),this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o,streamId:c}=t;O.debug("receive() [trackId:%s, kind:%s]",e,r);const l=o.mid||String(this._mapMidTransceiver.size);n.set(e,l),this._remoteSdp.receive({mid:l,kind:r,offerRtpParameters:o,streamId:c||o.rtcp.cname,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{trackId:e,rtpParameters:r}=t,o=n.get(e),l=c.media.find((e=>String(e.mid)===o));m.applyCodecParameters({offerRtpParameters:r,answerMediaObject:l})}var h;(o={type:"answer",sdp:l.write(c)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:c});O.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{trackId:e}=r,o=n.get(e),c=this._pc.getTransceivers().find((e=>e.mid===o));if(!c)throw new Error("new RTCRtpTransceiver not found");this._mapMidTransceiver.set(o,c),t.push({localId:o,track:c.receiver.track,rtpReceiver:c.receiver})}return t}async stopReceiving(e){if(this.assertRecvDirection(),this._closed)return;for(const t of e){O.debug("stopReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");this._remoteSdp.closeMediaSection(e.mid)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n);for(const t of e)this._mapMidTransceiver.delete(t)}async pauseReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("pauseReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="inactive",this._remoteSdp.pauseMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("pauseReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("pauseReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async resumeReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("resumeReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="recvonly",this._remoteSdp.resumeReceivingMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("resumeReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("resumeReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async getReceiverStats(e){this.assertNotClosed(),this.assertRecvDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.receiver.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertNotClosed(),this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c,protocol:t};O.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation();const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertNotClosed(){if(this._closed)throw new w.InvalidStateError("method called in a closed handler")}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Chrome111=T},function(e,t,n){var r=function(e){return String(Number(e))===e?Number(e):e},o=function(e,t,content){var n=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:n&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:n?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(content.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},c=n(999),l=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],r=t;return e.split(/(\r\n|\r|\n)/).filter(l).forEach((function(e){var t=e[0],content=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),r=n[n.length-1]);for(var l=0;l<(c[t]||[]).length;l+=1){var h=c[t][l];if(h.reg.test(content))return o(h,r,content)}})),t.media=n,t};var h=function(e,t){var s=t.split(/=(.+)/,2);return 2===s.length?e[s[0]]=r(s[1]):1===s.length&&t.length>1&&(e[s[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(h,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(r),i=0;i<n.length;i+=3)t.push({component:n[i],ip:n[i+1],port:n[i+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(h,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}},function(e,t,n){var r=n(999),o=/%[sdv%]/g,c=function(e){var i=1,t=arguments,n=t.length;return e.replace(o,(function(e){if(i>=n)return e;var r=t[i];switch(i+=1,e){case"%%":return"%";case"%s":return String(r);case"%d":return Number(r);case"%v":return""}}))},l=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?r.push(n[t.name][o]):r.push(n[t.names[i]])}else r.push(n[t.name]);return c.apply(null,r)},h=["v","o","s","i","u","e","p","c","b","t","r","z","a"],d=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||h,o=t.innerOrder||d,c=[];return n.forEach((function(t){r[t].forEach((function(n){n.name in e&&null!=e[n.name]?c.push(l(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){c.push(l(t,n,e))}))}))})),e.media.forEach((function(e){c.push(l("m",r.m[0],e)),o.forEach((function(t){r[t].forEach((function(n){n.name in e&&null!=e[n.name]?c.push(l(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){c.push(l(t,n,e))}))}))}))})),c.join("\r\n")+"\r\n"}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.OfferMediaSection=t.AnswerMediaSection=t.MediaSection=void 0;const l=c(n(170)),h=c(n(137));class d{constructor({iceParameters:e,iceCandidates:t,dtlsParameters:n,planB:r=!1}){if(this._mediaObject={},this._planB=r,e&&this.setIceParameters(e),t){this._mediaObject.candidates=[];for(const e of t){const t={component:1};t.foundation=e.foundation,t.ip=e.ip,t.port=e.port,t.priority=e.priority,t.transport=e.protocol,t.type=e.type,e.tcpType&&(t.tcptype=e.tcpType),this._mediaObject.candidates.push(t)}this._mediaObject.endOfCandidates="end-of-candidates",this._mediaObject.iceOptions="renomination"}n&&this.setDtlsRole(n.role)}get mid(){return String(this._mediaObject.mid)}get closed(){return 0===this._mediaObject.port}getObject(){return this._mediaObject}setIceParameters(e){this._mediaObject.iceUfrag=e.usernameFragment,this._mediaObject.icePwd=e.password}pause(){this._mediaObject.direction="inactive"}disable(){this.pause(),delete this._mediaObject.ext,delete this._mediaObject.ssrcs,delete this._mediaObject.ssrcGroups,delete this._mediaObject.simulcast,delete this._mediaObject.simulcast_03,delete this._mediaObject.rids,delete this._mediaObject.extmapAllowMixed}close(){this.disable(),this._mediaObject.port=0}}t.MediaSection=d;t.AnswerMediaSection=class extends d{constructor({iceParameters:e,iceCandidates:t,dtlsParameters:n,sctpParameters:r,plainRtpParameters:o,planB:c=!1,offerMediaObject:l,offerRtpParameters:d,answerRtpParameters:m,codecOptions:v,extmapAllowMixed:y=!1}){switch(super({iceParameters:e,iceCandidates:t,dtlsParameters:n,planB:c}),this._mediaObject.mid=String(l.mid),this._mediaObject.type=l.type,this._mediaObject.protocol=l.protocol,o?(this._mediaObject.connection={ip:o.ip,version:o.ipVersion},this._mediaObject.port=o.port):(this._mediaObject.connection={ip:"127.0.0.1",version:4},this._mediaObject.port=7),l.type){case"audio":case"video":this._mediaObject.direction="recvonly",this._mediaObject.rtp=[],this._mediaObject.rtcpFb=[],this._mediaObject.fmtp=[];for(const e of m.codecs){var w,S;const t={payload:e.payloadType,codec:f(e),rate:e.clockRate};e.channels>1&&(t.encoding=e.channels),this._mediaObject.rtp.push(t);const n=null!==(w=h.clone(e.parameters))&&void 0!==w?w:{};let r=null!==(S=h.clone(e.rtcpFeedback))&&void 0!==S?S:[];if(v){const{opusStereo:t,opusFec:o,opusDtx:c,opusMaxPlaybackRate:l,opusMaxAverageBitrate:h,opusPtime:f,opusNack:m,videoGoogleStartBitrate:y,videoGoogleMaxBitrate:w,videoGoogleMinBitrate:S}=v,_=d.codecs.find((t=>t.payloadType===e.payloadType));switch(e.mimeType.toLowerCase()){case"audio/opus":case"audio/multiopus":void 0!==t&&(_.parameters["sprop-stereo"]=t?1:0,n.stereo=t?1:0),void 0!==o&&(_.parameters.useinbandfec=o?1:0,n.useinbandfec=o?1:0),void 0!==c&&(_.parameters.usedtx=c?1:0,n.usedtx=c?1:0),void 0!==l&&(n.maxplaybackrate=l),void 0!==h&&(n.maxaveragebitrate=h),void 0!==f&&(_.parameters.ptime=f,n.ptime=f),m||(_.rtcpFeedback=_.rtcpFeedback.filter((e=>"nack"!==e.type||e.parameter)),r=r.filter((e=>"nack"!==e.type||e.parameter)));break;case"video/vp8":case"video/vp9":case"video/h264":case"video/h265":void 0!==y&&(n["x-google-start-bitrate"]=y),void 0!==w&&(n["x-google-max-bitrate"]=w),void 0!==S&&(n["x-google-min-bitrate"]=S)}}const o={payload:e.payloadType,config:""};for(const e of Object.keys(n))o.config&&(o.config+=";"),o.config+=`${e}=${n[e]}`;o.config&&this._mediaObject.fmtp.push(o);for(const t of r)this._mediaObject.rtcpFb.push({payload:e.payloadType,type:t.type,subtype:t.parameter})}this._mediaObject.payloads=m.codecs.map((e=>e.payloadType)).join(" "),this._mediaObject.ext=[];for(const e of m.headerExtensions){(l.ext||[]).some((t=>t.uri===e.uri))&&this._mediaObject.ext.push({uri:e.uri,value:e.id})}if(y&&"extmap-allow-mixed"===l.extmapAllowMixed&&(this._mediaObject.extmapAllowMixed="extmap-allow-mixed"),l.simulcast){this._mediaObject.simulcast={dir1:"recv",list1:l.simulcast.list1},this._mediaObject.rids=[];for(const e of l.rids||[])"send"===e.direction&&this._mediaObject.rids.push({id:e.id,direction:"recv"})}else if(l.simulcast_03){this._mediaObject.simulcast_03={value:l.simulcast_03.value.replace(/send/g,"recv")},this._mediaObject.rids=[];for(const e of l.rids||[])"send"===e.direction&&this._mediaObject.rids.push({id:e.id,direction:"recv"})}this._mediaObject.rtcpMux="rtcp-mux",this._mediaObject.rtcpRsize="rtcp-rsize",this._planB&&"video"===this._mediaObject.type&&(this._mediaObject.xGoogleFlag="conference");break;case"application":"number"==typeof l.sctpPort?(this._mediaObject.payloads="webrtc-datachannel",this._mediaObject.sctpPort=r.port,this._mediaObject.maxMessageSize=r.maxMessageSize):l.sctpmap&&(this._mediaObject.payloads=r.port,this._mediaObject.sctpmap={app:"webrtc-datachannel",sctpmapNumber:r.port,maxMessageSize:r.maxMessageSize})}}setDtlsRole(e){switch(e){case"client":this._mediaObject.setup="active";break;case"server":this._mediaObject.setup="passive";break;case"auto":this._mediaObject.setup="actpass"}}resume(){this._mediaObject.direction="recvonly"}muxSimulcastStreams(e){if(!this._mediaObject.simulcast||!this._mediaObject.simulcast.list1)return;const t={};for(const n of e)n.rid&&(t[n.rid]=n);const n=this._mediaObject.simulcast.list1,r=l.parseSimulcastStreamList(n);for(const e of r)for(const n of e){var o;n.paused=!(null!==(o=t[n.scid])&&void 0!==o&&o.active)}this._mediaObject.simulcast.list1=r.map((e=>e.map((e=>`${e.paused?"~":""}${e.scid}`)).join(","))).join(";")}};function f(e){const t=new RegExp("^(audio|video)/(.+)","i").exec(e.mimeType);if(!t)throw new TypeError("invalid codec.mimeType");return t[2]}t.OfferMediaSection=class extends d{constructor({iceParameters:e,iceCandidates:t,dtlsParameters:n,sctpParameters:r,plainRtpParameters:o,planB:c=!1,mid:l,kind:h,offerRtpParameters:d,streamId:m,trackId:v,oldDataChannelSpec:y=!1}){switch(super({iceParameters:e,iceCandidates:t,dtlsParameters:n,planB:c}),this._mediaObject.mid=String(l),this._mediaObject.type=h,o?(this._mediaObject.connection={ip:o.ip,version:o.ipVersion},this._mediaObject.protocol="RTP/AVP",this._mediaObject.port=o.port):(this._mediaObject.connection={ip:"127.0.0.1",version:4},this._mediaObject.protocol=r?"UDP/DTLS/SCTP":"UDP/TLS/RTP/SAVPF",this._mediaObject.port=7),h){case"audio":case"video":{this._mediaObject.direction="sendonly",this._mediaObject.rtp=[],this._mediaObject.rtcpFb=[],this._mediaObject.fmtp=[],this._planB||(this._mediaObject.msid=`${m||"-"} ${v}`);for(const e of d.codecs){const t={payload:e.payloadType,codec:f(e),rate:e.clockRate};e.channels>1&&(t.encoding=e.channels),this._mediaObject.rtp.push(t);const n={payload:e.payloadType,config:""};for(const t of Object.keys(e.parameters))n.config&&(n.config+=";"),n.config+=`${t}=${e.parameters[t]}`;n.config&&this._mediaObject.fmtp.push(n);for(const t of e.rtcpFeedback)this._mediaObject.rtcpFb.push({payload:e.payloadType,type:t.type,subtype:t.parameter})}this._mediaObject.payloads=d.codecs.map((e=>e.payloadType)).join(" "),this._mediaObject.ext=[];for(const e of d.headerExtensions)this._mediaObject.ext.push({uri:e.uri,value:e.id});this._mediaObject.rtcpMux="rtcp-mux",this._mediaObject.rtcpRsize="rtcp-rsize";const e=d.encodings[0],t=e.ssrc,n=e.rtx&&e.rtx.ssrc?e.rtx.ssrc:void 0;this._mediaObject.ssrcs=[],this._mediaObject.ssrcGroups=[],d.rtcp.cname&&this._mediaObject.ssrcs.push({id:t,attribute:"cname",value:d.rtcp.cname}),this._planB&&this._mediaObject.ssrcs.push({id:t,attribute:"msid",value:`${m||"-"} ${v}`}),n&&(d.rtcp.cname&&this._mediaObject.ssrcs.push({id:n,attribute:"cname",value:d.rtcp.cname}),this._planB&&this._mediaObject.ssrcs.push({id:n,attribute:"msid",value:`${m||"-"} ${v}`}),this._mediaObject.ssrcGroups.push({semantics:"FID",ssrcs:`${t} ${n}`}));break}case"application":y?(this._mediaObject.payloads=r.port,this._mediaObject.sctpmap={app:"webrtc-datachannel",sctpmapNumber:r.port,maxMessageSize:r.maxMessageSize}):(this._mediaObject.payloads="webrtc-datachannel",this._mediaObject.sctpPort=r.port,this._mediaObject.maxMessageSize=r.maxMessageSize)}}setDtlsRole(e){this._mediaObject.setup="actpass"}resume(){this._mediaObject.direction="sendonly"}planBReceive({offerRtpParameters:e,streamId:t,trackId:n}){const r=e.encodings[0],o=r.ssrc,c=r.rtx&&r.rtx.ssrc?r.rtx.ssrc:void 0,l=this._mediaObject.payloads.split(" ");for(const t of e.codecs){if(l.includes(String(t.payloadType)))continue;const e={payload:t.payloadType,codec:f(t),rate:t.clockRate};t.channels>1&&(e.encoding=t.channels),this._mediaObject.rtp.push(e);const n={payload:t.payloadType,config:""};for(const e of Object.keys(t.parameters))n.config&&(n.config+=";"),n.config+=`${e}=${t.parameters[e]}`;n.config&&this._mediaObject.fmtp.push(n);for(const e of t.rtcpFeedback)this._mediaObject.rtcpFb.push({payload:t.payloadType,type:e.type,subtype:e.parameter})}this._mediaObject.payloads+=` ${e.codecs.filter((e=>!this._mediaObject.payloads.includes(e.payloadType))).map((e=>e.payloadType)).join(" ")}`,this._mediaObject.payloads=this._mediaObject.payloads.trim(),e.rtcp.cname&&this._mediaObject.ssrcs.push({id:o,attribute:"cname",value:e.rtcp.cname}),this._mediaObject.ssrcs.push({id:o,attribute:"msid",value:`${t||"-"} ${n}`}),c&&(e.rtcp.cname&&this._mediaObject.ssrcs.push({id:c,attribute:"cname",value:e.rtcp.cname}),this._mediaObject.ssrcs.push({id:c,attribute:"msid",value:`${t||"-"} ${n}`}),this._mediaObject.ssrcGroups.push({semantics:"FID",ssrcs:`${o} ${c}`}))}planBStopReceiving({offerRtpParameters:e}){const t=e.encodings[0],n=t.ssrc,r=t.rtx&&t.rtx.ssrc?t.rtx.ssrc:void 0;this._mediaObject.ssrcs=this._mediaObject.ssrcs.filter((s=>s.id!==n&&s.id!==r)),r&&(this._mediaObject.ssrcGroups=this._mediaObject.ssrcGroups.filter((e=>e.ssrcs!==`${n} ${r}`)))}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome74=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(356)),y=c(n(496)),w=n(156),S=n(181),_=n(217),C=n(310),O=new h.Logger("Chrome74"),A={OS:1024,MIS:1024};class T extends S.HandlerInterface{static createFactory(){return()=>new T}constructor(){super(),this._closed=!1,this._mapMidTransceiver=new Map,this._sendStream=new MediaStream,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Chrome74"}close(){if(O.debug("close()"),!this._closed){if(this._closed=!0,this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}}async getNativeRtpCapabilities(){O.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan"});try{e.addTransceiver("audio"),e.addTransceiver("video");const t=await e.createOffer();try{e.close()}catch(e){}const n=l.parse(t.sdp),r=m.extractRtpCapabilities({sdpObject:n});return y.addNackSuppportForOpus(r),r}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return O.debug("getNativeSctpCapabilities()"),{numStreams:A}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){O.debug("run()"),this._direction=e,this._remoteSdp=new _.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):(O.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}})))}async updateIceServers(e){this.assertNotClosed(),O.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(this.assertNotClosed(),O.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});O.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();O.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this.assertNotClosed(),this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertNotClosed(),this.assertSendDirection(),O.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),e&&e.length>1&&e.forEach(((e,t)=>{e.rid=`r${t}`}));const r=d.clone(this._sendingRtpParametersByKind[track.kind]);r.codecs=f.reduceCodecs(r.codecs,n);const o=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);o.codecs=f.reduceCodecs(o.codecs,n);const c=this._remoteSdp.getNextMediaSectionIdx(),h=this._pc.addTransceiver(track,{direction:"sendonly",streams:[this._sendStream],sendEncodings:e});let y,w=await this._pc.createOffer(),S=l.parse(w.sdp);var _;this._transportReady||await this.setupTransport({localDtlsRole:null!==(_=this._forcedLocalDtlsRole)&&void 0!==_?_:"client",localSdpObject:S});let A=!1;const T=(0,C.parse)((e||[{}])[0].scalabilityMode);e&&1===e.length&&T.spatialLayers>1&&"video/vp9"===r.codecs[0].mimeType.toLowerCase()&&(O.debug("send() | enabling legacy simulcast for VP9 SVC"),A=!0,S=l.parse(w.sdp),y=S.media[c.idx],v.addLegacySimulcast({offerMediaObject:y,numStreams:T.spatialLayers}),w={type:"offer",sdp:l.write(S)}),O.debug("send() | calling pc.setLocalDescription() [offer:%o]",w),await this._pc.setLocalDescription(w);const E=h.mid;if(r.mid=E,S=l.parse(this._pc.localDescription.sdp),y=S.media[c.idx],r.rtcp.cname=m.getCname({offerMediaObject:y}),e)if(1===e.length){let t=v.getRtpEncodings({offerMediaObject:y});Object.assign(t[0],e[0]),A&&(t=[t[0]]),r.encodings=t}else r.encodings=e;else r.encodings=v.getRtpEncodings({offerMediaObject:y});if(r.encodings.length>1&&("video/vp8"===r.codecs[0].mimeType.toLowerCase()||"video/h264"===r.codecs[0].mimeType.toLowerCase()))for(const e of r.encodings)e.scalabilityMode?e.scalabilityMode=`L1T${T.temporalLayers}`:e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:y,reuseMid:c.reuseMid,offerRtpParameters:r,answerRtpParameters:o,codecOptions:t,extmapAllowMixed:!0});const P={type:"answer",sdp:this._remoteSdp.getSdp()};return O.debug("send() | calling pc.setRemoteDescription() [answer:%o]",P),await this._pc.setRemoteDescription(P),this._mapMidTransceiver.set(E,h),{localId:E,rtpParameters:r,rtpSender:h.sender}}async stopSending(e){if(this.assertSendDirection(),O.debug("stopSending() [localId:%s]",e),this._closed)return;const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.sender.replaceTrack(null),this._pc.removeTrack(t.sender);if(this._remoteSdp.closeMediaSection(t.mid))try{t.stop()}catch(e){}const n=await this._pc.createOffer();O.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._mapMidTransceiver.delete(e)}async pauseSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("pauseSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="inactive",this._remoteSdp.pauseMediaSection(e);const n=await this._pc.createOffer();O.debug("pauseSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("pauseSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async resumeSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("resumeSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(this._remoteSdp.resumeSendingMediaSection(e),!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="sendonly";const n=await this._pc.createOffer();O.debug("resumeSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("resumeSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async replaceTrack(e,track){this.assertNotClosed(),this.assertSendDirection(),track?O.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):O.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");await t.sender.replaceTrack(track)}async setMaxSpatialLayer(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setMaxSpatialLayer() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setMaxSpatialLayer() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async setRtpEncodingParameters(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setRtpEncodingParameters() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setRtpEncodingParameters() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async getSenderStats(e){this.assertNotClosed(),this.assertSendDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.sender.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertNotClosed(),this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmits:n,protocol:r};O.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%A.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});O.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertNotClosed(),this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o,streamId:c}=t;O.debug("receive() [trackId:%s, kind:%s]",e,r);const l=o.mid||String(this._mapMidTransceiver.size);n.set(e,l),this._remoteSdp.receive({mid:l,kind:r,offerRtpParameters:o,streamId:c||o.rtcp.cname,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{trackId:e,rtpParameters:r}=t,o=n.get(e),l=c.media.find((e=>String(e.mid)===o));m.applyCodecParameters({offerRtpParameters:r,answerMediaObject:l})}var h;(o={type:"answer",sdp:l.write(c)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:c});O.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{trackId:e}=r,o=n.get(e),c=this._pc.getTransceivers().find((e=>e.mid===o));if(!c)throw new Error("new RTCRtpTransceiver not found");this._mapMidTransceiver.set(o,c),t.push({localId:o,track:c.receiver.track,rtpReceiver:c.receiver})}return t}async stopReceiving(e){if(this.assertRecvDirection(),this._closed)return;for(const t of e){O.debug("stopReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");this._remoteSdp.closeMediaSection(e.mid)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n);for(const t of e)this._mapMidTransceiver.delete(t)}async pauseReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("pauseReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="inactive",this._remoteSdp.pauseMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("pauseReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("pauseReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async resumeReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("resumeReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="recvonly",this._remoteSdp.resumeReceivingMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("resumeReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("resumeReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async getReceiverStats(e){this.assertNotClosed(),this.assertRecvDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.receiver.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertNotClosed(),this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c,protocol:t};O.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation();const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertNotClosed(){if(this._closed)throw new w.InvalidStateError("method called in a closed handler")}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Chrome74=T},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome70=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(356)),y=n(181),w=n(217),S=n(310),_=new h.Logger("Chrome70"),C={OS:1024,MIS:1024};class O extends y.HandlerInterface{static createFactory(){return()=>new O}constructor(){super(),this._mapMidTransceiver=new Map,this._sendStream=new MediaStream,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Chrome70"}close(){if(_.debug("close()"),this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}async getNativeRtpCapabilities(){_.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan"});try{e.addTransceiver("audio"),e.addTransceiver("video");const t=await e.createOffer();try{e.close()}catch(e){}const n=l.parse(t.sdp);return m.extractRtpCapabilities({sdpObject:n})}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return _.debug("getNativeSctpCapabilities()"),{numStreams:C}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){_.debug("run()"),this._direction=e,this._remoteSdp=new w.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(_.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){_.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(_.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});_.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();_.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertSendDirection(),_.debug("send() [kind:%s, track.id:%s]",track.kind,track.id);const r=d.clone(this._sendingRtpParametersByKind[track.kind]);r.codecs=f.reduceCodecs(r.codecs,n);const o=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);o.codecs=f.reduceCodecs(o.codecs,n);const c=this._remoteSdp.getNextMediaSectionIdx(),h=this._pc.addTransceiver(track,{direction:"sendonly",streams:[this._sendStream]});let y,w=await this._pc.createOffer(),C=l.parse(w.sdp);var O;this._transportReady||await this.setupTransport({localDtlsRole:null!==(O=this._forcedLocalDtlsRole)&&void 0!==O?O:"client",localSdpObject:C});e&&e.length>1&&(_.debug("send() | enabling legacy simulcast"),C=l.parse(w.sdp),y=C.media[c.idx],v.addLegacySimulcast({offerMediaObject:y,numStreams:e.length}),w={type:"offer",sdp:l.write(C)});let A=!1;const T=(0,S.parse)((e||[{}])[0].scalabilityMode);if(e&&1===e.length&&T.spatialLayers>1&&"video/vp9"===r.codecs[0].mimeType.toLowerCase()&&(_.debug("send() | enabling legacy simulcast for VP9 SVC"),A=!0,C=l.parse(w.sdp),y=C.media[c.idx],v.addLegacySimulcast({offerMediaObject:y,numStreams:T.spatialLayers}),w={type:"offer",sdp:l.write(C)}),_.debug("send() | calling pc.setLocalDescription() [offer:%o]",w),await this._pc.setLocalDescription(w),e){_.debug("send() | applying given encodings");const t=h.sender.getParameters();for(let n=0;n<(t.encodings||[]).length;++n){const r=t.encodings[n],o=e[n];if(!o)break;t.encodings[n]=Object.assign(r,o)}await h.sender.setParameters(t)}const E=h.mid;if(r.mid=E,C=l.parse(this._pc.localDescription.sdp),y=C.media[c.idx],r.rtcp.cname=m.getCname({offerMediaObject:y}),r.encodings=v.getRtpEncodings({offerMediaObject:y}),e)for(let t=0;t<r.encodings.length;++t)e[t]&&Object.assign(r.encodings[t],e[t]);if(A&&(r.encodings=[r.encodings[0]]),r.encodings.length>1&&("video/vp8"===r.codecs[0].mimeType.toLowerCase()||"video/h264"===r.codecs[0].mimeType.toLowerCase()))for(const e of r.encodings)e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:y,reuseMid:c.reuseMid,offerRtpParameters:r,answerRtpParameters:o,codecOptions:t});const P={type:"answer",sdp:this._remoteSdp.getSdp()};return _.debug("send() | calling pc.setRemoteDescription() [answer:%o]",P),await this._pc.setRemoteDescription(P),this._mapMidTransceiver.set(E,h),{localId:E,rtpParameters:r,rtpSender:h.sender}}async stopSending(e){this.assertSendDirection(),_.debug("stopSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.sender.replaceTrack(null),this._pc.removeTrack(t.sender);if(this._remoteSdp.closeMediaSection(t.mid))try{t.stop()}catch(e){}const n=await this._pc.createOffer();_.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._mapMidTransceiver.delete(e)}async pauseSending(e){}async resumeSending(e){}async replaceTrack(e,track){this.assertSendDirection(),track?_.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):_.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");await t.sender.replaceTrack(track)}async setMaxSpatialLayer(e,t){this.assertSendDirection(),_.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();_.debug("setMaxSpatialLayer() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("setMaxSpatialLayer() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async setRtpEncodingParameters(e,t){this.assertSendDirection(),_.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();_.debug("setRtpEncodingParameters() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("setRtpEncodingParameters() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async getSenderStats(e){this.assertSendDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.sender.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmitTime:t,maxRetransmits:n,protocol:r};_.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%C.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});_.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o,streamId:c}=t;_.debug("receive() [trackId:%s, kind:%s]",e,r);const l=o.mid||String(this._mapMidTransceiver.size);n.set(e,l),this._remoteSdp.receive({mid:l,kind:r,offerRtpParameters:o,streamId:c||o.rtcp.cname,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{trackId:e,rtpParameters:r}=t,o=n.get(e),l=c.media.find((e=>String(e.mid)===o));m.applyCodecParameters({offerRtpParameters:r,answerMediaObject:l})}var h;(o={type:"answer",sdp:l.write(c)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:c});_.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{trackId:e}=r,o=n.get(e),c=this._pc.getTransceivers().find((e=>e.mid===o));if(!c)throw new Error("new RTCRtpTransceiver not found");this._mapMidTransceiver.set(o,c),t.push({localId:o,track:c.receiver.track,rtpReceiver:c.receiver})}return t}async stopReceiving(e){this.assertRecvDirection();for(const t of e){_.debug("stopReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");this._remoteSdp.closeMediaSection(e.mid)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();_.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n);for(const t of e)this._mapMidTransceiver.delete(t)}async pauseReceiving(e){}async resumeReceiving(e){}async getReceiverStats(e){this.assertRecvDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.receiver.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmitTime:o,maxRetransmits:c,protocol:t};_.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation();const e={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}_.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Chrome70=O},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome67=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(497)),y=n(181),w=n(217),S=new h.Logger("Chrome67"),_={OS:1024,MIS:1024};class C extends y.HandlerInterface{static createFactory(){return()=>new C}constructor(){super(),this._sendStream=new MediaStream,this._mapSendLocalIdRtpSender=new Map,this._nextSendLocalId=0,this._mapRecvLocalIdInfo=new Map,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Chrome67"}close(){if(S.debug("close()"),this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}async getNativeRtpCapabilities(){S.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b"});try{const t=await e.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});try{e.close()}catch(e){}const n=l.parse(t.sdp);return m.extractRtpCapabilities({sdpObject:n})}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return S.debug("getNativeSctpCapabilities()"),{numStreams:_}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){S.debug("run()"),this._direction=e,this._remoteSdp=new w.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,planB:!0}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(S.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){S.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(S.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});S.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();S.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertSendDirection(),S.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),n&&S.warn("send() | codec selection is not available in %s handler",this.name),this._sendStream.addTrack(track),this._pc.addTrack(track,this._sendStream);let r,o=await this._pc.createOffer(),c=l.parse(o.sdp);const h=d.clone(this._sendingRtpParametersByKind[track.kind]);h.codecs=f.reduceCodecs(h.codecs);const y=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);var w;(y.codecs=f.reduceCodecs(y.codecs),this._transportReady)||await this.setupTransport({localDtlsRole:null!==(w=this._forcedLocalDtlsRole)&&void 0!==w?w:"client",localSdpObject:c});if("video"===track.kind&&e&&e.length>1&&(S.debug("send() | enabling simulcast"),c=l.parse(o.sdp),r=c.media.find((e=>"video"===e.type)),v.addLegacySimulcast({offerMediaObject:r,track:track,numStreams:e.length}),o={type:"offer",sdp:l.write(c)}),S.debug("send() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o),c=l.parse(this._pc.localDescription.sdp),r=c.media.find((e=>e.type===track.kind)),h.rtcp.cname=m.getCname({offerMediaObject:r}),h.encodings=v.getRtpEncodings({offerMediaObject:r,track:track}),e)for(let t=0;t<h.encodings.length;++t)e[t]&&Object.assign(h.encodings[t],e[t]);if(h.encodings.length>1&&"video/vp8"===h.codecs[0].mimeType.toLowerCase())for(const e of h.encodings)e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:r,offerRtpParameters:h,answerRtpParameters:y,codecOptions:t});const _={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("send() | calling pc.setRemoteDescription() [answer:%o]",_),await this._pc.setRemoteDescription(_);const C=String(this._nextSendLocalId);this._nextSendLocalId++;const O=this._pc.getSenders().find((s=>s.track===track));return this._mapSendLocalIdRtpSender.set(C,O),{localId:C,rtpParameters:h,rtpSender:O}}async stopSending(e){this.assertSendDirection(),S.debug("stopSending() [localId:%s]",e);const t=this._mapSendLocalIdRtpSender.get(e);if(!t)throw new Error("associated RTCRtpSender not found");this._pc.removeTrack(t),t.track&&this._sendStream.removeTrack(t.track),this._mapSendLocalIdRtpSender.delete(e);const n=await this._pc.createOffer();S.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n);try{await this._pc.setLocalDescription(n)}catch(e){if(0===this._sendStream.getTracks().length)return void S.warn("stopSending() | ignoring expected error due no sending tracks: %s",e.toString());throw e}if("stable"===this._pc.signalingState)return;const r={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async pauseSending(e){}async resumeSending(e){}async replaceTrack(e,track){this.assertSendDirection(),track?S.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):S.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapSendLocalIdRtpSender.get(e);if(!t)throw new Error("associated RTCRtpSender not found");const n=t.track;await t.replaceTrack(track),n&&this._sendStream.removeTrack(n),track&&this._sendStream.addTrack(track)}async setMaxSpatialLayer(e,t){this.assertSendDirection(),S.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapSendLocalIdRtpSender.get(e);if(!n)throw new Error("associated RTCRtpSender not found");const r=n.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.setParameters(r)}async setRtpEncodingParameters(e,t){this.assertSendDirection(),S.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapSendLocalIdRtpSender.get(e);if(!n)throw new Error("associated RTCRtpSender not found");const r=n.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.setParameters(r)}async getSenderStats(e){this.assertSendDirection();const t=this._mapSendLocalIdRtpSender.get(e);if(!t)throw new Error("associated RTCRtpSender not found");return t.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmitTime:t,maxRetransmits:n,protocol:r};S.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%_.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});S.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertRecvDirection();const t=[];for(const t of e){const{trackId:e,kind:n,rtpParameters:r,streamId:o}=t;S.debug("receive() [trackId:%s, kind:%s]",e,n);const c=n;this._remoteSdp.receive({mid:c,kind:n,offerRtpParameters:r,streamId:o||r.rtcp.cname,trackId:e})}const n={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",n),await this._pc.setRemoteDescription(n);let r=await this._pc.createAnswer();const o=l.parse(r.sdp);for(const t of e){const{kind:e,rtpParameters:n}=t,r=e,c=o.media.find((e=>String(e.mid)===r));m.applyCodecParameters({offerRtpParameters:n,answerMediaObject:c})}var c;(r={type:"answer",sdp:l.write(o)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(c=this._forcedLocalDtlsRole)&&void 0!==c?c:"client",localSdpObject:o});S.debug("receive() | calling pc.setLocalDescription() [answer:%o]",r),await this._pc.setLocalDescription(r);for(const n of e){const{kind:e,trackId:r,rtpParameters:o}=n,c=r,l=e,h=this._pc.getReceivers().find((e=>e.track&&e.track.id===c));if(!h)throw new Error("new RTCRtpReceiver not");this._mapRecvLocalIdInfo.set(c,{mid:l,rtpParameters:o,rtpReceiver:h}),t.push({localId:c,track:h.track,rtpReceiver:h})}return t}async stopReceiving(e){this.assertRecvDirection();for(const t of e){S.debug("stopReceiving() [localId:%s]",t);const{mid:e,rtpParameters:n}=this._mapRecvLocalIdInfo.get(t)||{};this._mapRecvLocalIdInfo.delete(t),this._remoteSdp.planBStopReceiving({mid:e,offerRtpParameters:n})}const t={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();S.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async pauseReceiving(e){}async resumeReceiving(e){}async getReceiverStats(e){this.assertRecvDirection();const{rtpReceiver:t}=this._mapRecvLocalIdInfo.get(e)||{};if(!t)throw new Error("associated RTCRtpReceiver not found");return t.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmitTime:o,maxRetransmits:c,protocol:t};S.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation({oldDataChannelSpec:!0});const e={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}S.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Chrome67=C},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome55=void 0;const l=c(n(170)),h=n(116),d=n(156),f=c(n(137)),m=c(n(169)),v=c(n(216)),y=c(n(497)),w=n(181),S=n(217),_=new h.Logger("Chrome55"),C={OS:1024,MIS:1024};class O extends w.HandlerInterface{static createFactory(){return()=>new O}constructor(){super(),this._sendStream=new MediaStream,this._mapSendLocalIdTrack=new Map,this._nextSendLocalId=0,this._mapRecvLocalIdInfo=new Map,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Chrome55"}close(){if(_.debug("close()"),this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}async getNativeRtpCapabilities(){_.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b"});try{const t=await e.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});try{e.close()}catch(e){}const n=l.parse(t.sdp);return v.extractRtpCapabilities({sdpObject:n})}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return _.debug("getNativeSctpCapabilities()"),{numStreams:C}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:f}){_.debug("run()"),this._direction=e,this._remoteSdp=new S.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,planB:!0}),this._sendingRtpParametersByKind={audio:m.getSendingRtpParameters("audio",f),video:m.getSendingRtpParameters("video",f)},this._sendingRemoteRtpParametersByKind={audio:m.getSendingRemoteRtpParameters("audio",f),video:m.getSendingRemoteRtpParameters("video",f)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(_.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){_.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(_.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});_.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();_.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertSendDirection(),_.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),n&&_.warn("send() | codec selection is not available in %s handler",this.name),this._sendStream.addTrack(track),this._pc.addStream(this._sendStream);let r,o=await this._pc.createOffer(),c=l.parse(o.sdp);const h=f.clone(this._sendingRtpParametersByKind[track.kind]);h.codecs=m.reduceCodecs(h.codecs);const d=f.clone(this._sendingRemoteRtpParametersByKind[track.kind]);var w;(d.codecs=m.reduceCodecs(d.codecs),this._transportReady)||await this.setupTransport({localDtlsRole:null!==(w=this._forcedLocalDtlsRole)&&void 0!==w?w:"client",localSdpObject:c});if("video"===track.kind&&e&&e.length>1&&(_.debug("send() | enabling simulcast"),c=l.parse(o.sdp),r=c.media.find((e=>"video"===e.type)),y.addLegacySimulcast({offerMediaObject:r,track:track,numStreams:e.length}),o={type:"offer",sdp:l.write(c)}),_.debug("send() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o),c=l.parse(this._pc.localDescription.sdp),r=c.media.find((e=>e.type===track.kind)),h.rtcp.cname=v.getCname({offerMediaObject:r}),h.encodings=y.getRtpEncodings({offerMediaObject:r,track:track}),e)for(let t=0;t<h.encodings.length;++t)e[t]&&Object.assign(h.encodings[t],e[t]);if(h.encodings.length>1&&"video/vp8"===h.codecs[0].mimeType.toLowerCase())for(const e of h.encodings)e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:r,offerRtpParameters:h,answerRtpParameters:d,codecOptions:t});const S={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("send() | calling pc.setRemoteDescription() [answer:%o]",S),await this._pc.setRemoteDescription(S);const C=String(this._nextSendLocalId);return this._nextSendLocalId++,this._mapSendLocalIdTrack.set(C,track),{localId:C,rtpParameters:h}}async stopSending(e){this.assertSendDirection(),_.debug("stopSending() [localId:%s]",e);const track=this._mapSendLocalIdTrack.get(e);if(!track)throw new Error("track not found");this._mapSendLocalIdTrack.delete(e),this._sendStream.removeTrack(track),this._pc.addStream(this._sendStream);const t=await this._pc.createOffer();_.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",t);try{await this._pc.setLocalDescription(t)}catch(e){if(0===this._sendStream.getTracks().length)return void _.warn("stopSending() | ignoring expected error due no sending tracks: %s",e.toString());throw e}if("stable"===this._pc.signalingState)return;const n={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",n),await this._pc.setRemoteDescription(n)}async pauseSending(e){}async resumeSending(e){}async replaceTrack(e,track){throw new d.UnsupportedError("not implemented")}async setMaxSpatialLayer(e,t){throw new d.UnsupportedError(" not implemented")}async setRtpEncodingParameters(e,t){throw new d.UnsupportedError("not supported")}async getSenderStats(e){throw new d.UnsupportedError("not implemented")}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmitTime:t,maxRetransmits:n,protocol:r};_.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%C.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});_.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertRecvDirection();const t=[];for(const t of e){const{trackId:e,kind:n,rtpParameters:r,streamId:o}=t;_.debug("receive() [trackId:%s, kind:%s]",e,n);const c=n;this._remoteSdp.receive({mid:c,kind:n,offerRtpParameters:r,streamId:o||r.rtcp.cname,trackId:e})}const n={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",n),await this._pc.setRemoteDescription(n);let r=await this._pc.createAnswer();const o=l.parse(r.sdp);for(const t of e){const{kind:e,rtpParameters:n}=t,r=e,c=o.media.find((e=>String(e.mid)===r));v.applyCodecParameters({offerRtpParameters:n,answerMediaObject:c})}var c;(r={type:"answer",sdp:l.write(o)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(c=this._forcedLocalDtlsRole)&&void 0!==c?c:"client",localSdpObject:o});_.debug("receive() | calling pc.setLocalDescription() [answer:%o]",r),await this._pc.setLocalDescription(r);for(const n of e){const{kind:e,trackId:r,rtpParameters:o}=n,c=e,l=r,h=n.streamId||o.rtcp.cname,track=this._pc.getRemoteStreams().find((s=>s.id===h)).getTrackById(l);if(!track)throw new Error("remote track not found");this._mapRecvLocalIdInfo.set(l,{mid:c,rtpParameters:o}),t.push({localId:l,track:track})}return t}async stopReceiving(e){this.assertRecvDirection();for(const t of e){_.debug("stopReceiving() [localId:%s]",t);const{mid:e,rtpParameters:n}=this._mapRecvLocalIdInfo.get(t)||{};this._mapRecvLocalIdInfo.delete(t),this._remoteSdp.planBStopReceiving({mid:e,offerRtpParameters:n})}const t={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();_.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async pauseReceiving(e){}async resumeReceiving(e){}async getReceiverStats(e){throw new d.UnsupportedError("not implemented")}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmitTime:o,maxRetransmits:c,protocol:t};_.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation({oldDataChannelSpec:!0});const e={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}_.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=v.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Chrome55=O},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Firefox60=void 0;const l=c(n(170)),h=n(116),d=n(156),f=c(n(137)),m=c(n(169)),v=c(n(216)),y=c(n(356)),w=n(181),S=n(217),_=n(310),C=new h.Logger("Firefox60"),O={OS:16,MIS:2048};class A extends w.HandlerInterface{static createFactory(){return()=>new A}constructor(){super(),this._closed=!1,this._mapMidTransceiver=new Map,this._sendStream=new MediaStream,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Firefox60"}close(){if(C.debug("close()"),!this._closed){if(this._closed=!0,this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}}async getNativeRtpCapabilities(){C.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require"}),canvas=document.createElement("canvas");canvas.getContext("2d");const t=canvas.captureStream().getVideoTracks()[0];try{e.addTransceiver("audio",{direction:"sendrecv"});const n=e.addTransceiver(t,{direction:"sendrecv"}),r=n.sender.getParameters(),o=[{rid:"r0",maxBitrate:1e5},{rid:"r1",maxBitrate:5e5}];r.encodings=o,await n.sender.setParameters(r);const c=await e.createOffer();try{canvas.remove()}catch(e){}try{t.stop()}catch(e){}try{e.close()}catch(e){}const h=l.parse(c.sdp);return v.extractRtpCapabilities({sdpObject:h})}catch(n){try{canvas.remove()}catch(e){}try{t.stop()}catch(e){}try{e.close()}catch(e){}throw n}}async getNativeSctpCapabilities(){return C.debug("getNativeSctpCapabilities()"),{numStreams:O}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:f}){this.assertNotClosed(),C.debug("run()"),this._direction=e,this._remoteSdp=new S.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o}),this._sendingRtpParametersByKind={audio:m.getSendingRtpParameters("audio",f),video:m.getSendingRtpParameters("video",f)},this._sendingRemoteRtpParametersByKind={audio:m.getSendingRemoteRtpParameters("audio",f),video:m.getSendingRemoteRtpParameters("video",f)},this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(C.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){throw this.assertNotClosed(),new d.UnsupportedError("not supported")}async restartIce(e){if(this.assertNotClosed(),C.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});C.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};C.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();C.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this.assertNotClosed(),this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertNotClosed(),this.assertSendDirection(),C.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),e&&(e=f.clone(e)).length>1&&(e.forEach(((e,t)=>{e.rid=`r${t}`})),e.reverse());const r=f.clone(this._sendingRtpParametersByKind[track.kind]);r.codecs=m.reduceCodecs(r.codecs,n);const o=f.clone(this._sendingRemoteRtpParametersByKind[track.kind]);o.codecs=m.reduceCodecs(o.codecs,n);const c=this._pc.addTransceiver(track,{direction:"sendonly",streams:[this._sendStream]});if(e){const t=c.sender.getParameters();t.encodings=e,await c.sender.setParameters(t)}const h=await this._pc.createOffer();let d=l.parse(h.sdp);this._transportReady||await this.setupTransport({localDtlsRole:"client",localSdpObject:d});const w=(0,_.parse)((e||[{}])[0].scalabilityMode);C.debug("send() | calling pc.setLocalDescription() [offer:%o]",h),await this._pc.setLocalDescription(h);const S=c.mid;r.mid=S,d=l.parse(this._pc.localDescription.sdp);const O=d.media[d.media.length-1];if(r.rtcp.cname=v.getCname({offerMediaObject:O}),e)if(1===e.length){const t=y.getRtpEncodings({offerMediaObject:O});Object.assign(t[0],e[0]),r.encodings=t}else r.encodings=e.reverse();else r.encodings=y.getRtpEncodings({offerMediaObject:O});if(r.encodings.length>1&&("video/vp8"===r.codecs[0].mimeType.toLowerCase()||"video/h264"===r.codecs[0].mimeType.toLowerCase()))for(const e of r.encodings)e.scalabilityMode?e.scalabilityMode=`L1T${w.temporalLayers}`:e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:O,offerRtpParameters:r,answerRtpParameters:o,codecOptions:t,extmapAllowMixed:!0});const A={type:"answer",sdp:this._remoteSdp.getSdp()};return C.debug("send() | calling pc.setRemoteDescription() [answer:%o]",A),await this._pc.setRemoteDescription(A),this._mapMidTransceiver.set(S,c),{localId:S,rtpParameters:r,rtpSender:c.sender}}async stopSending(e){if(this.assertSendDirection(),C.debug("stopSending() [localId:%s]",e),this._closed)return;const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated transceiver not found");t.sender.replaceTrack(null),this._pc.removeTrack(t.sender),this._remoteSdp.disableMediaSection(t.mid);const n=await this._pc.createOffer();C.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._mapMidTransceiver.delete(e)}async pauseSending(e){this.assertNotClosed(),this.assertSendDirection(),C.debug("pauseSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="inactive",this._remoteSdp.pauseMediaSection(e);const n=await this._pc.createOffer();C.debug("pauseSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("pauseSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async resumeSending(e){this.assertNotClosed(),this.assertSendDirection(),C.debug("resumeSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="sendonly",this._remoteSdp.resumeSendingMediaSection(e);const n=await this._pc.createOffer();C.debug("resumeSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("resumeSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async replaceTrack(e,track){this.assertNotClosed(),this.assertSendDirection(),track?C.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):C.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");await t.sender.replaceTrack(track)}async setMaxSpatialLayer(e,t){this.assertNotClosed(),this.assertSendDirection(),C.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated transceiver not found");const r=n.sender.getParameters();t=r.encodings.length-1-t,r.encodings.forEach(((e,n)=>{e.active=n>=t})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();C.debug("setMaxSpatialLayer() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("setMaxSpatialLayer() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async setRtpEncodingParameters(e,t){this.assertNotClosed(),this.assertSendDirection(),C.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();C.debug("setRtpEncodingParameters() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("setRtpEncodingParameters() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async getSenderStats(e){this.assertNotClosed(),this.assertSendDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.sender.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertNotClosed(),this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmits:n,protocol:r};C.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%O.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));this._transportReady||await this.setupTransport({localDtlsRole:"client",localSdpObject:t}),C.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};C.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertNotClosed(),this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o,streamId:c}=t;C.debug("receive() [trackId:%s, kind:%s]",e,r);const l=o.mid||String(this._mapMidTransceiver.size);n.set(e,l),this._remoteSdp.receive({mid:l,kind:r,offerRtpParameters:o,streamId:c||o.rtcp.cname,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};C.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{trackId:e,rtpParameters:r}=t,h=n.get(e),d=c.media.find((e=>String(e.mid)===h));v.applyCodecParameters({offerRtpParameters:r,answerMediaObject:d}),o={type:"answer",sdp:l.write(c)}}this._transportReady||await this.setupTransport({localDtlsRole:"client",localSdpObject:c}),C.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{trackId:e}=r,o=n.get(e),c=this._pc.getTransceivers().find((e=>e.mid===o));if(!c)throw new Error("new RTCRtpTransceiver not found");this._mapMidTransceiver.set(o,c),t.push({localId:o,track:c.receiver.track,rtpReceiver:c.receiver})}return t}async stopReceiving(e){if(this.assertRecvDirection(),this._closed)return;for(const t of e){C.debug("stopReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");this._remoteSdp.closeMediaSection(e.mid)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};C.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();C.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n);for(const t of e)this._mapMidTransceiver.delete(t)}async pauseReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){C.debug("pauseReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="inactive",this._remoteSdp.pauseMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};C.debug("pauseReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();C.debug("pauseReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async resumeReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){C.debug("resumeReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="recvonly",this._remoteSdp.resumeReceivingMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};C.debug("resumeReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();C.debug("resumeReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async getReceiverStats(e){this.assertRecvDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.receiver.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertNotClosed(),this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c,protocol:t};C.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation();const e={type:"offer",sdp:this._remoteSdp.getSdp()};C.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:"client",localSdpObject:e})}C.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=v.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertNotClosed(){if(this._closed)throw new d.InvalidStateError("method called in a closed handler")}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Firefox60=A},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Safari12=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(356)),y=c(n(496)),w=n(156),S=n(181),_=n(217),C=n(310),O=new h.Logger("Safari12"),A={OS:1024,MIS:1024};class T extends S.HandlerInterface{static createFactory(){return()=>new T}constructor(){super(),this._closed=!1,this._mapMidTransceiver=new Map,this._sendStream=new MediaStream,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Safari12"}close(){if(O.debug("close()"),!this._closed){if(this._closed=!0,this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}}async getNativeRtpCapabilities(){O.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require"});try{e.addTransceiver("audio"),e.addTransceiver("video");const t=await e.createOffer();try{e.close()}catch(e){}const n=l.parse(t.sdp),r=m.extractRtpCapabilities({sdpObject:n});return y.addNackSuppportForOpus(r),r}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return O.debug("getNativeSctpCapabilities()"),{numStreams:A}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){this.assertNotClosed(),O.debug("run()"),this._direction=e,this._remoteSdp=new _.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(O.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){this.assertNotClosed(),O.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(this.assertNotClosed(),O.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});O.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();O.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this.assertNotClosed(),this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertNotClosed(),this.assertSendDirection(),O.debug("send() [kind:%s, track.id:%s]",track.kind,track.id);const r=d.clone(this._sendingRtpParametersByKind[track.kind]);r.codecs=f.reduceCodecs(r.codecs,n);const o=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);o.codecs=f.reduceCodecs(o.codecs,n);const c=this._remoteSdp.getNextMediaSectionIdx(),h=this._pc.addTransceiver(track,{direction:"sendonly",streams:[this._sendStream]});let y,w=await this._pc.createOffer(),S=l.parse(w.sdp);var _;this._transportReady||await this.setupTransport({localDtlsRole:null!==(_=this._forcedLocalDtlsRole)&&void 0!==_?_:"client",localSdpObject:S});const A=(0,C.parse)((e||[{}])[0].scalabilityMode);e&&e.length>1&&(O.debug("send() | enabling legacy simulcast"),S=l.parse(w.sdp),y=S.media[c.idx],v.addLegacySimulcast({offerMediaObject:y,numStreams:e.length}),w={type:"offer",sdp:l.write(S)}),O.debug("send() | calling pc.setLocalDescription() [offer:%o]",w),await this._pc.setLocalDescription(w);const T=h.mid;if(r.mid=T,S=l.parse(this._pc.localDescription.sdp),y=S.media[c.idx],r.rtcp.cname=m.getCname({offerMediaObject:y}),r.encodings=v.getRtpEncodings({offerMediaObject:y}),e)for(let t=0;t<r.encodings.length;++t)e[t]&&Object.assign(r.encodings[t],e[t]);if(r.encodings.length>1&&("video/vp8"===r.codecs[0].mimeType.toLowerCase()||"video/h264"===r.codecs[0].mimeType.toLowerCase()))for(const e of r.encodings)e.scalabilityMode?e.scalabilityMode=`L1T${A.temporalLayers}`:e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:y,reuseMid:c.reuseMid,offerRtpParameters:r,answerRtpParameters:o,codecOptions:t});const E={type:"answer",sdp:this._remoteSdp.getSdp()};return O.debug("send() | calling pc.setRemoteDescription() [answer:%o]",E),await this._pc.setRemoteDescription(E),this._mapMidTransceiver.set(T,h),{localId:T,rtpParameters:r,rtpSender:h.sender}}async stopSending(e){if(this.assertSendDirection(),this._closed)return;O.debug("stopSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.sender.replaceTrack(null),this._pc.removeTrack(t.sender);if(this._remoteSdp.closeMediaSection(t.mid))try{t.stop()}catch(e){}const n=await this._pc.createOffer();O.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._mapMidTransceiver.delete(e)}async pauseSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("pauseSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="inactive",this._remoteSdp.pauseMediaSection(e);const n=await this._pc.createOffer();O.debug("pauseSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("pauseSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async resumeSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("resumeSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="sendonly",this._remoteSdp.resumeSendingMediaSection(e);const n=await this._pc.createOffer();O.debug("resumeSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("resumeSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async replaceTrack(e,track){this.assertNotClosed(),this.assertSendDirection(),track?O.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):O.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");await t.sender.replaceTrack(track)}async setMaxSpatialLayer(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setMaxSpatialLayer() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setMaxSpatialLayer() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async setRtpEncodingParameters(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setRtpEncodingParameters() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setRtpEncodingParameters() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async getSenderStats(e){this.assertNotClosed(),this.assertSendDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.sender.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertNotClosed(),this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmits:n,protocol:r};O.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%A.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});O.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertNotClosed(),this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o,streamId:c}=t;O.debug("receive() [trackId:%s, kind:%s]",e,r);const l=o.mid||String(this._mapMidTransceiver.size);n.set(e,l),this._remoteSdp.receive({mid:l,kind:r,offerRtpParameters:o,streamId:c||o.rtcp.cname,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{trackId:e,rtpParameters:r}=t,o=n.get(e),l=c.media.find((e=>String(e.mid)===o));m.applyCodecParameters({offerRtpParameters:r,answerMediaObject:l})}var h;(o={type:"answer",sdp:l.write(c)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:c});O.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{trackId:e}=r,o=n.get(e),c=this._pc.getTransceivers().find((e=>e.mid===o));if(!c)throw new Error("new RTCRtpTransceiver not found");this._mapMidTransceiver.set(o,c),t.push({localId:o,track:c.receiver.track,rtpReceiver:c.receiver})}return t}async stopReceiving(e){if(this.assertRecvDirection(),this._closed)return;for(const t of e){O.debug("stopReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");this._remoteSdp.closeMediaSection(e.mid)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n);for(const t of e)this._mapMidTransceiver.delete(t)}async pauseReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("pauseReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="inactive",this._remoteSdp.pauseMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("pauseReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("pauseReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async resumeReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("resumeReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="recvonly",this._remoteSdp.resumeReceivingMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("resumeReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("resumeReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async getReceiverStats(e){this.assertNotClosed(),this.assertRecvDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.receiver.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertNotClosed(),this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c,protocol:t};O.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation();const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertNotClosed(){if(this._closed)throw new w.InvalidStateError("method called in a closed handler")}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Safari12=T},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Safari11=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(497)),y=n(181),w=n(217),S=new h.Logger("Safari11"),_={OS:1024,MIS:1024};class C extends y.HandlerInterface{static createFactory(){return()=>new C}constructor(){super(),this._sendStream=new MediaStream,this._mapSendLocalIdRtpSender=new Map,this._nextSendLocalId=0,this._mapRecvLocalIdInfo=new Map,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"Safari11"}close(){if(S.debug("close()"),this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}async getNativeRtpCapabilities(){S.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b"});try{const t=await e.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});try{e.close()}catch(e){}const n=l.parse(t.sdp);return m.extractRtpCapabilities({sdpObject:n})}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return S.debug("getNativeSctpCapabilities()"),{numStreams:_}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){S.debug("run()"),this._direction=e,this._remoteSdp=new w.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,planB:!0}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(S.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){S.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(S.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});S.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();S.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertSendDirection(),S.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),n&&S.warn("send() | codec selection is not available in %s handler",this.name),this._sendStream.addTrack(track),this._pc.addTrack(track,this._sendStream);let r,o=await this._pc.createOffer(),c=l.parse(o.sdp);const h=d.clone(this._sendingRtpParametersByKind[track.kind]);h.codecs=f.reduceCodecs(h.codecs);const y=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);var w;(y.codecs=f.reduceCodecs(y.codecs),this._transportReady)||await this.setupTransport({localDtlsRole:null!==(w=this._forcedLocalDtlsRole)&&void 0!==w?w:"client",localSdpObject:c});if("video"===track.kind&&e&&e.length>1&&(S.debug("send() | enabling simulcast"),c=l.parse(o.sdp),r=c.media.find((e=>"video"===e.type)),v.addLegacySimulcast({offerMediaObject:r,track:track,numStreams:e.length}),o={type:"offer",sdp:l.write(c)}),S.debug("send() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o),c=l.parse(this._pc.localDescription.sdp),r=c.media.find((e=>e.type===track.kind)),h.rtcp.cname=m.getCname({offerMediaObject:r}),h.encodings=v.getRtpEncodings({offerMediaObject:r,track:track}),e)for(let t=0;t<h.encodings.length;++t)e[t]&&Object.assign(h.encodings[t],e[t]);if(h.encodings.length>1&&"video/vp8"===h.codecs[0].mimeType.toLowerCase())for(const e of h.encodings)e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:r,offerRtpParameters:h,answerRtpParameters:y,codecOptions:t});const _={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("send() | calling pc.setRemoteDescription() [answer:%o]",_),await this._pc.setRemoteDescription(_);const C=String(this._nextSendLocalId);this._nextSendLocalId++;const O=this._pc.getSenders().find((s=>s.track===track));return this._mapSendLocalIdRtpSender.set(C,O),{localId:C,rtpParameters:h,rtpSender:O}}async stopSending(e){this.assertSendDirection();const t=this._mapSendLocalIdRtpSender.get(e);if(!t)throw new Error("associated RTCRtpSender not found");t.track&&this._sendStream.removeTrack(t.track),this._mapSendLocalIdRtpSender.delete(e);const n=await this._pc.createOffer();S.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n);try{await this._pc.setLocalDescription(n)}catch(e){if(0===this._sendStream.getTracks().length)return void S.warn("stopSending() | ignoring expected error due no sending tracks: %s",e.toString());throw e}if("stable"===this._pc.signalingState)return;const r={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async pauseSending(e){}async resumeSending(e){}async replaceTrack(e,track){this.assertSendDirection(),track?S.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):S.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapSendLocalIdRtpSender.get(e);if(!t)throw new Error("associated RTCRtpSender not found");const n=t.track;await t.replaceTrack(track),n&&this._sendStream.removeTrack(n),track&&this._sendStream.addTrack(track)}async setMaxSpatialLayer(e,t){this.assertSendDirection(),S.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapSendLocalIdRtpSender.get(e);if(!n)throw new Error("associated RTCRtpSender not found");const r=n.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.setParameters(r)}async setRtpEncodingParameters(e,t){this.assertSendDirection(),S.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapSendLocalIdRtpSender.get(e);if(!n)throw new Error("associated RTCRtpSender not found");const r=n.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.setParameters(r)}async getSenderStats(e){this.assertSendDirection();const t=this._mapSendLocalIdRtpSender.get(e);if(!t)throw new Error("associated RTCRtpSender not found");return t.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmits:n,protocol:r};S.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%_.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});S.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};S.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertRecvDirection();const t=[];for(const t of e){const{trackId:e,kind:n,rtpParameters:r,streamId:o}=t;S.debug("receive() [trackId:%s, kind:%s]",e,n);const c=n;this._remoteSdp.receive({mid:c,kind:n,offerRtpParameters:r,streamId:o||r.rtcp.cname,trackId:e})}const n={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",n),await this._pc.setRemoteDescription(n);let r=await this._pc.createAnswer();const o=l.parse(r.sdp);for(const t of e){const{kind:e,rtpParameters:n}=t,r=e,c=o.media.find((e=>String(e.mid)===r));m.applyCodecParameters({offerRtpParameters:n,answerMediaObject:c})}var c;(r={type:"answer",sdp:l.write(o)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(c=this._forcedLocalDtlsRole)&&void 0!==c?c:"client",localSdpObject:o});S.debug("receive() | calling pc.setLocalDescription() [answer:%o]",r),await this._pc.setLocalDescription(r);for(const n of e){const{kind:e,trackId:r,rtpParameters:o}=n,c=e,l=r,h=this._pc.getReceivers().find((e=>e.track&&e.track.id===l));if(!h)throw new Error("new RTCRtpReceiver not");this._mapRecvLocalIdInfo.set(l,{mid:c,rtpParameters:o,rtpReceiver:h}),t.push({localId:l,track:h.track,rtpReceiver:h})}return t}async stopReceiving(e){this.assertRecvDirection();for(const t of e){S.debug("stopReceiving() [localId:%s]",t);const{mid:e,rtpParameters:n}=this._mapRecvLocalIdInfo.get(t)||{};this._mapRecvLocalIdInfo.delete(t),this._remoteSdp.planBStopReceiving({mid:e,offerRtpParameters:n})}const t={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();S.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async getReceiverStats(e){this.assertRecvDirection();const{rtpReceiver:t}=this._mapRecvLocalIdInfo.get(e)||{};if(!t)throw new Error("associated RTCRtpReceiver not found");return t.getStats()}async pauseReceiving(e){}async resumeReceiving(e){}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c,protocol:t};S.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation({oldDataChannelSpec:!0});const e={type:"offer",sdp:this._remoteSdp.getSdp()};S.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}S.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.Safari11=C},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Edge11=void 0;const l=n(116),h=n(156),d=c(n(137)),f=c(n(169)),m=c(n(1653)),v=n(181),y=new l.Logger("Edge11");class w extends v.HandlerInterface{static createFactory(){return()=>new w}constructor(){super(),this._rtpSenders=new Map,this._rtpReceivers=new Map,this._nextSendLocalId=0,this._transportReady=!1}get name(){return"Edge11"}close(){y.debug("close()");try{this._iceGatherer.close()}catch(e){}try{this._iceTransport.stop()}catch(e){}try{this._dtlsTransport.stop()}catch(e){}for(const e of this._rtpSenders.values())try{e.stop()}catch(e){}for(const e of this._rtpReceivers.values())try{e.stop()}catch(e){}this.emit("@close")}async getNativeRtpCapabilities(){return y.debug("getNativeRtpCapabilities()"),m.getCapabilities()}async getNativeSctpCapabilities(){return y.debug("getNativeSctpCapabilities()"),{numStreams:{OS:0,MIS:0}}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:m,extendedRtpCapabilities:v}){y.debug("run()"),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",v),video:f.getSendingRtpParameters("video",v)},this._remoteIceParameters=t,this._remoteIceCandidates=n,this._remoteDtlsParameters=r,this._cname=`CNAME-${d.generateRandomNumber()}`,this.setIceGatherer({iceServers:c,iceTransportPolicy:l}),this.setIceTransport(),this.setDtlsTransport()}async updateIceServers(e){throw new h.UnsupportedError("not supported")}async restartIce(e){if(y.debug("restartIce()"),this._remoteIceParameters=e,this._transportReady){y.debug("restartIce() | calling iceTransport.start()"),this._iceTransport.start(this._iceGatherer,e,"controlling");for(const e of this._remoteIceCandidates)this._iceTransport.addRemoteCandidate(e);this._iceTransport.addRemoteCandidate({})}}async getTransportStats(){return this._iceTransport.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){y.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),this._transportReady||await this.setupTransport({localDtlsRole:"server"}),y.debug("send() | calling new RTCRtpSender()");const r=new RTCRtpSender(track,this._dtlsTransport),o=d.clone(this._sendingRtpParametersByKind[track.kind]);o.codecs=f.reduceCodecs(o.codecs,n);const c=o.codecs.some((e=>/.+\/rtx$/i.test(e.mimeType)));e||(e=[{}]);for(const t of e)t.ssrc=d.generateRandomNumber(),c&&(t.rtx={ssrc:d.generateRandomNumber()});o.encodings=e,o.rtcp={cname:this._cname,reducedSize:!0,mux:!0};const l=m.mangleRtpParameters(o);y.debug("send() | calling rtpSender.send() [params:%o]",l),await r.send(l);const h=String(this._nextSendLocalId);return this._nextSendLocalId++,this._rtpSenders.set(h,r),{localId:h,rtpParameters:o,rtpSender:r}}async stopSending(e){y.debug("stopSending() [localId:%s]",e);const t=this._rtpSenders.get(e);if(!t)throw new Error("RTCRtpSender not found");this._rtpSenders.delete(e);try{y.debug("stopSending() | calling rtpSender.stop()"),t.stop()}catch(e){throw y.warn("stopSending() | rtpSender.stop() failed:%o",e),e}}async pauseSending(e){}async resumeSending(e){}async replaceTrack(e,track){track?y.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):y.debug("replaceTrack() [localId:%s, no track]",e);const t=this._rtpSenders.get(e);if(!t)throw new Error("RTCRtpSender not found");t.setTrack(track)}async setMaxSpatialLayer(e,t){y.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._rtpSenders.get(e);if(!n)throw new Error("RTCRtpSender not found");const r=n.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.setParameters(r)}async setRtpEncodingParameters(e,t){y.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._rtpSenders.get(e);if(!n)throw new Error("RTCRtpSender not found");const r=n.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.setParameters(r)}async getSenderStats(e){const t=this._rtpSenders.get(e);if(!t)throw new Error("RTCRtpSender not found");return t.getStats()}async sendDataChannel(e){throw new h.UnsupportedError("not implemented")}async receive(e){const t=[];for(const t of e){const{trackId:e,kind:n}=t;y.debug("receive() [trackId:%s, kind:%s]",e,n)}this._transportReady||await this.setupTransport({localDtlsRole:"server"});for(const n of e){const{trackId:e,kind:r,rtpParameters:o}=n;y.debug("receive() | calling new RTCRtpReceiver()");const c=new RTCRtpReceiver(this._dtlsTransport,r);c.addEventListener("error",(e=>{y.error('rtpReceiver "error" event [event:%o]',e)}));const l=m.mangleRtpParameters(o);y.debug("receive() | calling rtpReceiver.receive() [params:%o]",l),await c.receive(l);const h=e;this._rtpReceivers.set(h,c),t.push({localId:h,track:c.track,rtpReceiver:c})}return t}async stopReceiving(e){for(const t of e){y.debug("stopReceiving() [localId:%s]",t);const e=this._rtpReceivers.get(t);if(!e)throw new Error("RTCRtpReceiver not found");this._rtpReceivers.delete(t);try{y.debug("stopReceiving() | calling rtpReceiver.stop()"),e.stop()}catch(e){y.warn("stopReceiving() | rtpReceiver.stop() failed:%o",e)}}}async pauseReceiving(e){}async resumeReceiving(e){}async getReceiverStats(e){const t=this._rtpReceivers.get(e);if(!t)throw new Error("RTCRtpReceiver not found");return t.getStats()}async receiveDataChannel(e){throw new h.UnsupportedError("not implemented")}setIceGatherer({iceServers:e,iceTransportPolicy:t}){const n=new RTCIceGatherer({iceServers:e||[],gatherPolicy:t||"all"});n.addEventListener("error",(e=>{y.error('iceGatherer "error" event [event:%o]',e)}));try{n.gather()}catch(e){y.debug("setIceGatherer() | iceGatherer.gather() failed: %s",e.toString())}this._iceGatherer=n}setIceTransport(){const e=new RTCIceTransport(this._iceGatherer);e.addEventListener("statechange",(()=>{switch(e.state){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}})),e.addEventListener("icestatechange",(()=>{switch(e.state){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}})),e.addEventListener("candidatepairchange",(e=>{y.debug('iceTransport "candidatepairchange" event [pair:%o]',e.pair)})),this._iceTransport=e}setDtlsTransport(){const e=new RTCDtlsTransport(this._iceTransport);e.addEventListener("statechange",(()=>{y.debug('dtlsTransport "statechange" event [state:%s]',e.state)})),e.addEventListener("dtlsstatechange",(()=>{y.debug('dtlsTransport "dtlsstatechange" event [state:%s]',e.state),"closed"===e.state&&this.emit("@connectionstatechange","closed")})),e.addEventListener("error",(e=>{y.error('dtlsTransport "error" event [event:%o]',e)})),this._dtlsTransport=e}async setupTransport({localDtlsRole:e}){y.debug("setupTransport()");const t=this._dtlsTransport.getLocalParameters();t.role=e,await new Promise(((e,n)=>{this.safeEmit("@connect",{dtlsParameters:t},e,n)})),this._iceTransport.start(this._iceGatherer,this._remoteIceParameters,"controlling");for(const e of this._remoteIceCandidates)this._iceTransport.addRemoteCandidate(e);this._iceTransport.addRemoteCandidate({}),this._remoteDtlsParameters.fingerprints=this._remoteDtlsParameters.fingerprints.filter((e=>"sha-256"===e.algorithm||"sha-384"===e.algorithm||"sha-512"===e.algorithm)),this._dtlsTransport.start(this._remoteDtlsParameters),this._transportReady=!0}}t.Edge11=w},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mangleRtpParameters=t.getCapabilities=void 0;const l=c(n(137));t.getCapabilities=function(){const e=RTCRtpReceiver.getCapabilities(),t=l.clone(e);for(const e of null!==(n=t.codecs)&&void 0!==n?n:[]){var n;if(e.channels=e.numChannels,delete e.numChannels,e.mimeType=e.mimeType||`${e.kind}/${e.name}`,e.parameters){const t=e.parameters;t.apt&&(t.apt=Number(t.apt)),t["packetization-mode"]&&(t["packetization-mode"]=Number(t["packetization-mode"]))}for(const t of e.rtcpFeedback||[])t.parameter||(t.parameter="")}return t},t.mangleRtpParameters=function(e){const t=l.clone(e);t.mid&&(t.muxId=t.mid,delete t.mid);for(const e of t.codecs)e.channels&&(e.numChannels=e.channels,delete e.channels),e.mimeType&&!e.name&&(e.name=e.mimeType.split("/")[1]),delete e.mimeType;return t}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ReactNativeUnifiedPlan=void 0;const l=c(n(170)),h=n(116),d=c(n(137)),f=c(n(169)),m=c(n(216)),v=c(n(356)),y=c(n(496)),w=n(156),S=n(181),_=n(217),C=n(310),O=new h.Logger("ReactNativeUnifiedPlan"),A={OS:1024,MIS:1024};class T extends S.HandlerInterface{static createFactory(){return()=>new T}constructor(){super(),this._closed=!1,this._mapMidTransceiver=new Map,this._sendStream=new MediaStream,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"ReactNativeUnifiedPlan"}close(){if(O.debug("close()"),!this._closed){if(this._closed=!0,this._sendStream.release(!1),this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}}async getNativeRtpCapabilities(){O.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan"});try{e.addTransceiver("audio"),e.addTransceiver("video");const t=await e.createOffer();try{e.close()}catch(e){}const n=l.parse(t.sdp),r=m.extractRtpCapabilities({sdpObject:n});return y.addNackSuppportForOpus(r),r}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return O.debug("getNativeSctpCapabilities()"),{numStreams:A}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:m}){this.assertNotClosed(),O.debug("run()"),this._direction=e,this._remoteSdp=new _.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o}),this._sendingRtpParametersByKind={audio:f.getSendingRtpParameters("audio",m),video:f.getSendingRtpParameters("video",m)},this._sendingRemoteRtpParametersByKind={audio:f.getSendingRemoteRtpParameters("audio",m),video:f.getSendingRemoteRtpParameters("video",m)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"unified-plan",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(O.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){this.assertNotClosed(),O.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(this.assertNotClosed(),O.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});O.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();O.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this.assertNotClosed(),this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){var r;this.assertNotClosed(),this.assertSendDirection(),O.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),e&&e.length>1&&e.forEach(((e,t)=>{e.rid=`r${t}`}));const o=d.clone(this._sendingRtpParametersByKind[track.kind]);o.codecs=f.reduceCodecs(o.codecs,n);const c=d.clone(this._sendingRemoteRtpParametersByKind[track.kind]);c.codecs=f.reduceCodecs(c.codecs,n);const h=this._remoteSdp.getNextMediaSectionIdx(),y=this._pc.addTransceiver(track,{direction:"sendonly",streams:[this._sendStream],sendEncodings:e});let w,S=await this._pc.createOffer(),_=l.parse(S.sdp);var A;this._transportReady||await this.setupTransport({localDtlsRole:null!==(A=this._forcedLocalDtlsRole)&&void 0!==A?A:"client",localSdpObject:_});let T=!1;const E=(0,C.parse)((e||[{}])[0].scalabilityMode);e&&1===e.length&&E.spatialLayers>1&&"video/vp9"===o.codecs[0].mimeType.toLowerCase()&&(O.debug("send() | enabling legacy simulcast for VP9 SVC"),T=!0,_=l.parse(S.sdp),w=_.media[h.idx],v.addLegacySimulcast({offerMediaObject:w,numStreams:E.spatialLayers}),S={type:"offer",sdp:l.write(_)}),O.debug("send() | calling pc.setLocalDescription() [offer:%o]",S),await this._pc.setLocalDescription(S);let P=null!==(r=y.mid)&&void 0!==r?r:void 0;if(P||O.warn("send() | missing transceiver.mid (bug in react-native-webrtc, using a workaround"),o.mid=P,_=l.parse(this._pc.localDescription.sdp),w=_.media[h.idx],o.rtcp.cname=m.getCname({offerMediaObject:w}),e)if(1===e.length){let t=v.getRtpEncodings({offerMediaObject:w});Object.assign(t[0],e[0]),T&&(t=[t[0]]),o.encodings=t}else o.encodings=e;else o.encodings=v.getRtpEncodings({offerMediaObject:w});if(o.encodings.length>1&&("video/vp8"===o.codecs[0].mimeType.toLowerCase()||"video/h264"===o.codecs[0].mimeType.toLowerCase()))for(const e of o.encodings)e.scalabilityMode?e.scalabilityMode=`L1T${E.temporalLayers}`:e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:w,reuseMid:h.reuseMid,offerRtpParameters:o,answerRtpParameters:c,codecOptions:t,extmapAllowMixed:!0});const M={type:"answer",sdp:this._remoteSdp.getSdp()};return O.debug("send() | calling pc.setRemoteDescription() [answer:%o]",M),await this._pc.setRemoteDescription(M),P||(P=y.mid,o.mid=P),this._mapMidTransceiver.set(P,y),{localId:P,rtpParameters:o,rtpSender:y.sender}}async stopSending(e){if(this.assertSendDirection(),this._closed)return;O.debug("stopSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.sender.replaceTrack(null),this._pc.removeTrack(t.sender);if(this._remoteSdp.closeMediaSection(t.mid))try{t.stop()}catch(e){}const n=await this._pc.createOffer();O.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._mapMidTransceiver.delete(e)}async pauseSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("pauseSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="inactive",this._remoteSdp.pauseMediaSection(e);const n=await this._pc.createOffer();O.debug("pauseSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("pauseSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async resumeSending(e){this.assertNotClosed(),this.assertSendDirection(),O.debug("resumeSending() [localId:%s]",e);const t=this._mapMidTransceiver.get(e);if(this._remoteSdp.resumeSendingMediaSection(e),!t)throw new Error("associated RTCRtpTransceiver not found");t.direction="sendonly";const n=await this._pc.createOffer();O.debug("resumeSending() | calling pc.setLocalDescription() [offer:%o]",n),await this._pc.setLocalDescription(n);const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("resumeSending() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r)}async replaceTrack(e,track){this.assertNotClosed(),this.assertSendDirection(),track?O.debug("replaceTrack() [localId:%s, track.id:%s]",e,track.id):O.debug("replaceTrack() [localId:%s, no track]",e);const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");await t.sender.replaceTrack(track)}async setMaxSpatialLayer(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setMaxSpatialLayer() [localId:%s, spatialLayer:%s]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{e.active=n<=t})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setMaxSpatialLayer() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setMaxSpatialLayer() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async setRtpEncodingParameters(e,t){this.assertNotClosed(),this.assertSendDirection(),O.debug("setRtpEncodingParameters() [localId:%s, params:%o]",e,t);const n=this._mapMidTransceiver.get(e);if(!n)throw new Error("associated RTCRtpTransceiver not found");const r=n.sender.getParameters();r.encodings.forEach(((e,n)=>{r.encodings[n]={...e,...t}})),await n.sender.setParameters(r),this._remoteSdp.muxMediaSectionSimulcast(e,r.encodings);const o=await this._pc.createOffer();O.debug("setRtpEncodingParameters() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o);const c={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("setRtpEncodingParameters() | calling pc.setRemoteDescription() [answer:%o]",c),await this._pc.setRemoteDescription(c)}async getSenderStats(e){this.assertNotClosed(),this.assertSendDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.sender.getStats()}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertNotClosed(),this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmits:n,protocol:r};O.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%A.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});O.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};O.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertNotClosed(),this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o,streamId:c}=t;O.debug("receive() [trackId:%s, kind:%s]",e,r);const l=o.mid||String(this._mapMidTransceiver.size);n.set(e,l),this._remoteSdp.receive({mid:l,kind:r,offerRtpParameters:o,streamId:c||o.rtcp.cname,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{trackId:e,rtpParameters:r}=t,o=n.get(e),l=c.media.find((e=>String(e.mid)===o));m.applyCodecParameters({offerRtpParameters:r,answerMediaObject:l})}var h;(o={type:"answer",sdp:l.write(c)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:c});O.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{trackId:e}=r,o=n.get(e),c=this._pc.getTransceivers().find((e=>e.mid===o));if(!c)throw new Error("new RTCRtpTransceiver not found");this._mapMidTransceiver.set(o,c),t.push({localId:o,track:c.receiver.track,rtpReceiver:c.receiver})}return t}async stopReceiving(e){if(this.assertRecvDirection(),this._closed)return;for(const t of e){O.debug("stopReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");this._remoteSdp.closeMediaSection(e.mid)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n);for(const t of e)this._mapMidTransceiver.delete(t)}async pauseReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("pauseReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="inactive",this._remoteSdp.pauseMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("pauseReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("pauseReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async resumeReceiving(e){this.assertNotClosed(),this.assertRecvDirection();for(const t of e){O.debug("resumeReceiving() [localId:%s]",t);const e=this._mapMidTransceiver.get(t);if(!e)throw new Error("associated RTCRtpTransceiver not found");e.direction="recvonly",this._remoteSdp.resumeReceivingMediaSection(t)}const t={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("resumeReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();O.debug("resumeReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async getReceiverStats(e){this.assertNotClosed(),this.assertRecvDirection();const t=this._mapMidTransceiver.get(e);if(!t)throw new Error("associated RTCRtpTransceiver not found");return t.receiver.getStats()}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertNotClosed(),this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c,protocol:t};O.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation();const e={type:"offer",sdp:this._remoteSdp.getSdp()};O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}O.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=m.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertNotClosed(){if(this._closed)throw new w.InvalidStateError("method called in a closed handler")}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.ReactNativeUnifiedPlan=T},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ReactNative=void 0;const l=c(n(170)),h=n(116),d=n(156),f=c(n(137)),m=c(n(169)),v=c(n(216)),y=c(n(497)),w=n(181),S=n(217),_=new h.Logger("ReactNative"),C={OS:1024,MIS:1024};class O extends w.HandlerInterface{static createFactory(){return()=>new O}constructor(){super(),this._sendStream=new MediaStream,this._mapSendLocalIdTrack=new Map,this._nextSendLocalId=0,this._mapRecvLocalIdInfo=new Map,this._hasDataChannelMediaSection=!1,this._nextSendSctpStreamId=0,this._transportReady=!1}get name(){return"ReactNative"}close(){if(_.debug("close()"),this._sendStream.release(!1),this._pc)try{this._pc.close()}catch(e){}this.emit("@close")}async getNativeRtpCapabilities(){_.debug("getNativeRtpCapabilities()");const e=new RTCPeerConnection({iceServers:[],iceTransportPolicy:"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b"});try{const t=await e.createOffer({offerToReceiveAudio:!0,offerToReceiveVideo:!0});try{e.close()}catch(e){}const n=l.parse(t.sdp);return v.extractRtpCapabilities({sdpObject:n})}catch(t){try{e.close()}catch(e){}throw t}}async getNativeSctpCapabilities(){return _.debug("getNativeSctpCapabilities()"),{numStreams:C}}run({direction:e,iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,iceServers:c,iceTransportPolicy:l,additionalSettings:h,proprietaryConstraints:d,extendedRtpCapabilities:f}){_.debug("run()"),this._direction=e,this._remoteSdp=new S.RemoteSdp({iceParameters:t,iceCandidates:n,dtlsParameters:r,sctpParameters:o,planB:!0}),this._sendingRtpParametersByKind={audio:m.getSendingRtpParameters("audio",f),video:m.getSendingRtpParameters("video",f)},this._sendingRemoteRtpParametersByKind={audio:m.getSendingRemoteRtpParameters("audio",f),video:m.getSendingRemoteRtpParameters("video",f)},r.role&&"auto"!==r.role&&(this._forcedLocalDtlsRole="server"===r.role?"client":"server"),this._pc=new RTCPeerConnection({iceServers:c||[],iceTransportPolicy:l||"all",bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",sdpSemantics:"plan-b",...h},d),this._pc.addEventListener("icegatheringstatechange",(()=>{this.emit("@icegatheringstatechange",this._pc.iceGatheringState)})),this._pc.connectionState?this._pc.addEventListener("connectionstatechange",(()=>{this.emit("@connectionstatechange",this._pc.connectionState)})):this._pc.addEventListener("iceconnectionstatechange",(()=>{switch(_.warn("run() | pc.connectionState not supported, using pc.iceConnectionState"),this._pc.iceConnectionState){case"checking":this.emit("@connectionstatechange","connecting");break;case"connected":case"completed":this.emit("@connectionstatechange","connected");break;case"failed":this.emit("@connectionstatechange","failed");break;case"disconnected":this.emit("@connectionstatechange","disconnected");break;case"closed":this.emit("@connectionstatechange","closed")}}))}async updateIceServers(e){_.debug("updateIceServers()");const t=this._pc.getConfiguration();t.iceServers=e,this._pc.setConfiguration(t)}async restartIce(e){if(_.debug("restartIce()"),this._remoteSdp.updateIceParameters(e),this._transportReady)if("send"===this._direction){const e=await this._pc.createOffer({iceRestart:!0});_.debug("restartIce() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e);const t={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("restartIce() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setRemoteDescription(t)}else{const e={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("restartIce() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();_.debug("restartIce() | calling pc.setLocalDescription() [answer:%o]",t),await this._pc.setLocalDescription(t)}}async getTransportStats(){return this._pc.getStats()}async send({track:track,encodings:e,codecOptions:t,codec:n}){this.assertSendDirection(),_.debug("send() [kind:%s, track.id:%s]",track.kind,track.id),n&&_.warn("send() | codec selection is not available in %s handler",this.name),this._sendStream.addTrack(track),this._pc.addStream(this._sendStream);let r,o=await this._pc.createOffer(),c=l.parse(o.sdp);const h=f.clone(this._sendingRtpParametersByKind[track.kind]);h.codecs=m.reduceCodecs(h.codecs);const d=f.clone(this._sendingRemoteRtpParametersByKind[track.kind]);var w;(d.codecs=m.reduceCodecs(d.codecs),this._transportReady)||await this.setupTransport({localDtlsRole:null!==(w=this._forcedLocalDtlsRole)&&void 0!==w?w:"client",localSdpObject:c});if("video"===track.kind&&e&&e.length>1&&(_.debug("send() | enabling simulcast"),c=l.parse(o.sdp),r=c.media.find((e=>"video"===e.type)),y.addLegacySimulcast({offerMediaObject:r,track:track,numStreams:e.length}),o={type:"offer",sdp:l.write(c)}),_.debug("send() | calling pc.setLocalDescription() [offer:%o]",o),await this._pc.setLocalDescription(o),c=l.parse(this._pc.localDescription.sdp),r=c.media.find((e=>e.type===track.kind)),h.rtcp.cname=v.getCname({offerMediaObject:r}),h.encodings=y.getRtpEncodings({offerMediaObject:r,track:track}),e)for(let t=0;t<h.encodings.length;++t)e[t]&&Object.assign(h.encodings[t],e[t]);if(h.encodings.length>1&&("video/vp8"===h.codecs[0].mimeType.toLowerCase()||"video/h264"===h.codecs[0].mimeType.toLowerCase()))for(const e of h.encodings)e.scalabilityMode="L1T3";this._remoteSdp.send({offerMediaObject:r,offerRtpParameters:h,answerRtpParameters:d,codecOptions:t});const S={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("send() | calling pc.setRemoteDescription() [answer:%o]",S),await this._pc.setRemoteDescription(S);const C=String(this._nextSendLocalId);return this._nextSendLocalId++,this._mapSendLocalIdTrack.set(C,track),{localId:C,rtpParameters:h}}async stopSending(e){this.assertSendDirection(),_.debug("stopSending() [localId:%s]",e);const track=this._mapSendLocalIdTrack.get(e);if(!track)throw new Error("track not found");this._mapSendLocalIdTrack.delete(e),this._sendStream.removeTrack(track),this._pc.addStream(this._sendStream);const t=await this._pc.createOffer();_.debug("stopSending() | calling pc.setLocalDescription() [offer:%o]",t);try{await this._pc.setLocalDescription(t)}catch(e){if(0===this._sendStream.getTracks().length)return void _.warn("stopSending() | ignoring expected error due no sending tracks: %s",e.toString());throw e}if("stable"===this._pc.signalingState)return;const n={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("stopSending() | calling pc.setRemoteDescription() [answer:%o]",n),await this._pc.setRemoteDescription(n)}async pauseSending(e){}async resumeSending(e){}async replaceTrack(e,track){throw new d.UnsupportedError("not implemented")}async setMaxSpatialLayer(e,t){throw new d.UnsupportedError("not implemented")}async setRtpEncodingParameters(e,t){throw new d.UnsupportedError("not implemented")}async getSenderStats(e){throw new d.UnsupportedError("not implemented")}async sendDataChannel({ordered:e,maxPacketLifeTime:t,maxRetransmits:n,label:label,protocol:r}){this.assertSendDirection();const o={negotiated:!0,id:this._nextSendSctpStreamId,ordered:e,maxPacketLifeTime:t,maxRetransmitTime:t,maxRetransmits:n,protocol:r};_.debug("sendDataChannel() [options:%o]",o);const c=this._pc.createDataChannel(label,o);if(this._nextSendSctpStreamId=++this._nextSendSctpStreamId%C.MIS,!this._hasDataChannelMediaSection){const e=await this._pc.createOffer(),t=l.parse(e.sdp),n=t.media.find((e=>"application"===e.type));var h;if(!this._transportReady)await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:t});_.debug("sendDataChannel() | calling pc.setLocalDescription() [offer:%o]",e),await this._pc.setLocalDescription(e),this._remoteSdp.sendSctpAssociation({offerMediaObject:n});const r={type:"answer",sdp:this._remoteSdp.getSdp()};_.debug("sendDataChannel() | calling pc.setRemoteDescription() [answer:%o]",r),await this._pc.setRemoteDescription(r),this._hasDataChannelMediaSection=!0}return{dataChannel:c,sctpStreamParameters:{streamId:o.id,ordered:o.ordered,maxPacketLifeTime:o.maxPacketLifeTime,maxRetransmits:o.maxRetransmits}}}async receive(e){this.assertRecvDirection();const t=[],n=new Map;for(const t of e){const{trackId:e,kind:r,rtpParameters:o}=t;_.debug("receive() [trackId:%s, kind:%s]",e,r);const c=r;let l=t.streamId||o.rtcp.cname;_.debug("receive() | forcing a random remote streamId to avoid well known bug in react-native-webrtc"),l+=`-hack-${f.generateRandomNumber()}`,n.set(e,l),this._remoteSdp.receive({mid:c,kind:r,offerRtpParameters:o,streamId:l,trackId:e})}const r={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("receive() | calling pc.setRemoteDescription() [offer:%o]",r),await this._pc.setRemoteDescription(r);let o=await this._pc.createAnswer();const c=l.parse(o.sdp);for(const t of e){const{kind:e,rtpParameters:n}=t,r=e,o=c.media.find((e=>String(e.mid)===r));v.applyCodecParameters({offerRtpParameters:n,answerMediaObject:o})}var h;(o={type:"answer",sdp:l.write(c)},this._transportReady)||await this.setupTransport({localDtlsRole:null!==(h=this._forcedLocalDtlsRole)&&void 0!==h?h:"client",localSdpObject:c});_.debug("receive() | calling pc.setLocalDescription() [answer:%o]",o),await this._pc.setLocalDescription(o);for(const r of e){const{kind:e,trackId:o,rtpParameters:c}=r,l=o,h=e,d=n.get(o),track=this._pc.getRemoteStreams().find((s=>s.id===d)).getTrackById(l);if(!track)throw new Error("remote track not found");this._mapRecvLocalIdInfo.set(l,{mid:h,rtpParameters:c}),t.push({localId:l,track:track})}return t}async stopReceiving(e){this.assertRecvDirection();for(const t of e){_.debug("stopReceiving() [localId:%s]",t);const{mid:e,rtpParameters:n}=this._mapRecvLocalIdInfo.get(t)||{};this._mapRecvLocalIdInfo.delete(t),this._remoteSdp.planBStopReceiving({mid:e,offerRtpParameters:n})}const t={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("stopReceiving() | calling pc.setRemoteDescription() [offer:%o]",t),await this._pc.setRemoteDescription(t);const n=await this._pc.createAnswer();_.debug("stopReceiving() | calling pc.setLocalDescription() [answer:%o]",n),await this._pc.setLocalDescription(n)}async pauseReceiving(e){}async resumeReceiving(e){}async getReceiverStats(e){throw new d.UnsupportedError("not implemented")}async receiveDataChannel({sctpStreamParameters:e,label:label,protocol:t}){this.assertRecvDirection();const{streamId:n,ordered:r,maxPacketLifeTime:o,maxRetransmits:c}=e,h={negotiated:!0,id:n,ordered:r,maxPacketLifeTime:o,maxRetransmitTime:o,maxRetransmits:c,protocol:t};_.debug("receiveDataChannel() [options:%o]",h);const d=this._pc.createDataChannel(label,h);if(!this._hasDataChannelMediaSection){this._remoteSdp.receiveSctpAssociation({oldDataChannelSpec:!0});const e={type:"offer",sdp:this._remoteSdp.getSdp()};_.debug("receiveDataChannel() | calling pc.setRemoteDescription() [offer:%o]",e),await this._pc.setRemoteDescription(e);const t=await this._pc.createAnswer();if(!this._transportReady){var f;const e=l.parse(t.sdp);await this.setupTransport({localDtlsRole:null!==(f=this._forcedLocalDtlsRole)&&void 0!==f?f:"client",localSdpObject:e})}_.debug("receiveDataChannel() | calling pc.setRemoteDescription() [answer:%o]",t),await this._pc.setLocalDescription(t),this._hasDataChannelMediaSection=!0}return{dataChannel:d}}async setupTransport({localDtlsRole:e,localSdpObject:t}){t||(t=l.parse(this._pc.localDescription.sdp));const n=v.extractDtlsParameters({sdpObject:t});n.role=e,this._remoteSdp.updateDtlsRole("client"===e?"server":"client"),await new Promise(((e,t)=>{this.safeEmit("@connect",{dtlsParameters:n},e,t)})),this._transportReady=!0}assertSendDirection(){if("send"!==this._direction)throw new Error('method can just be called for handlers with "send" direction')}assertRecvDirection(){if("recv"!==this._direction)throw new Error('method can just be called for handlers with "recv" direction')}}t.ReactNative=O},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||r(t,e,p)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(993),t),o(n(994),t),o(n(995),t),o(n(996),t),o(n(997),t),o(n(998),t),o(n(1657),t),o(n(1658),t),o(n(181),t),o(n(156),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";const r={};t.decode=function(e){let t=e.indexOf("%");if(-1===t)return e;let n="",o=0,c=0,l=t,h=r.utf8.accept;for(;t>-1&&t<e.length;){const d=r.resolveHex(e[t+1],4)|r.resolveHex(e[t+2],0),f=r.utf8.data[d];if(h=r.utf8.data[256+h+f],c=c<<6|d&r.utf8.data[364+f],h!==r.utf8.accept){if(h===r.utf8.reject)return null;if(t+=3,t>=e.length||"%"!==e[t])return null}else n+=e.slice(o,l),n+=c<=65535?String.fromCharCode(c):String.fromCharCode(55232+(c>>10),56320+(1023&c)),c=0,o=t+3,t=e.indexOf("%",o),l=t}return n+e.slice(o)},r.resolveHex=function(e,t){const i=r.hex[e];return void 0===i?255:i<<t},r.hex={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},r.utf8={accept:12,reject:0,data:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7]}},function(e,t,n){"use strict";const r=n(879),o=n(1e3),c=n(613),l={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(r.TextEncoder||TextEncoder)};t.analyze=function(e,t){return l.email(e,t)},t.isValid=function(e,t){return!l.email(e,t)},l.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return c.code("EMPTY_STRING");const n=!l.nonAsciiRx.test(e);if(!n){if(!1===t.allowUnicode)return c.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const r=e.split("@");if(2!==r.length)return r.length>2?c.code("MULTIPLE_AT_CHAR"):c.code("MISSING_AT_CHAR");const[h,d]=r;if(!h)return c.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return c.code("ADDRESS_TOO_LONG");if(l.encoder.encode(h).length>64)return c.code("LOCAL_TOO_LONG")}return l.local(h,n)||o.analyze(d,t)},l.local=function(e,t){const n=e.split(".");for(const e of n){if(!e.length)return c.code("EMPTY_LOCAL_SEGMENT");if(t){if(!l.atextRx.test(e))return c.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(l.atextRx.test(t))continue;const e=l.binary(t);if(!l.atomRx.test(e))return c.code("INVALID_LOCAL_CHARS")}}},l.binary=function(e){return Array.from(l.encoder.encode(e)).map((e=>String.fromCharCode(e))).join("")},l.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,l.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},function(e,t,n){"use strict";const r=n(1001),o=n(1002);t.regex=function(e={}){r(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";r(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),r(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let n=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(n)||(n=[n]),r(n.length>=1,"options.version must have at least 1 version specified");for(let i=0;i<n.length;++i)r("string"==typeof n[i],"options.version must only contain strings"),n[i]=n[i].toLowerCase(),r(["ipv4","ipv6","ipvfuture"].includes(n[i]),"options.version contains unknown version "+n[i]+" - must be one of ipv4, ipv6, ipvfuture");n=Array.from(new Set(n));const c=`(?:${n.map((e=>{if("forbidden"===t)return o.ip[e];const n=`\\/${"ipv4"===e?o.ip.v4Cidr:o.ip.v6Cidr}`;return"required"===t?`${o.ip[e]}${n}`:`${o.ip[e]}(?:${n})?`})).join("|")})`,l=new RegExp(`^${c}$`);return{cidr:t,versions:n,regex:l,raw:c}}},function(e,t,n){"use strict";const r=n(1663);e.exports=class extends Error{constructor(e){super(e.filter((e=>""!==e)).map((e=>"string"==typeof e?e:e instanceof Error?e.message:r(e))).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},function(e,t,n){"use strict";e.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},function(e,t,n){"use strict";const r={tlds:["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADAC","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFAMILYCOMPANY","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUDAPEST","BUGATTI","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANCERRESEARCH","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASEIH","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CSC","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUCK","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUJIXEROX","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLADE","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","IVECO","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LIXIL","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATIONWIDE","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWHOLLAND","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFF","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","ONYOURSIDE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","QVC","RACING","RADIO","RAID","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RMIT","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCJOHNSON","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SPREADBETTING","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWIFTCOVER","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3OQ18VL8PN36A","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JLQ61U9W7B","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"]};e.exports=new Set(r.tlds.map((e=>e.toLowerCase())))},,function(e,t,n){e.exports={}},,function(e,t,n){"use strict";n.r(t),n.d(t,"fromUtf8",(function(){return r})),n.d(t,"toUtf8",(function(){return o}));const r=input=>"function"==typeof TextEncoder?function(input){return(new TextEncoder).encode(input)}(input):(input=>{const e=[];for(let i=0,t=input.length;i<t;i++){const t=input.charCodeAt(i);if(t<128)e.push(t);else if(t<2048)e.push(t>>6|192,63&t|128);else if(i+1<input.length&&55296==(64512&t)&&56320==(64512&input.charCodeAt(i+1))){const n=65536+((1023&t)<<10)+(1023&input.charCodeAt(++i));e.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else e.push(t>>12|224,t>>6&63|128,63&t|128)}return Uint8Array.from(e)})(input),o=input=>"function"==typeof TextDecoder?function(input){return new TextDecoder("utf-8").decode(input)}(input):(input=>{let e="";for(let i=0,t=input.length;i<t;i++){const t=input[i];if(t<128)e+=String.fromCharCode(t);else if(192<=t&&t<224){const n=input[++i];e+=String.fromCharCode((31&t)<<6|63&n)}else if(240<=t&&t<365){const n="%"+[t,input[++i],input[++i],input[++i]].map((e=>e.toString(16))).join("%");e+=decodeURIComponent(n)}else e+=String.fromCharCode((15&t)<<12|(63&input[++i])<<6|63&input[++i])}return e})(input)},function(e,t,n){"use strict";t.a=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";var r=n(265);var o=function(object,e){return Object(r.a)(e,(function(e){return[e,object[e]]}))},c=n(196),l=n(519);var h=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var d=function(e){return function(object){var t=Object(c.a)(object);return"[object Map]"==t?Object(l.a)(object):"[object Set]"==t?h(object):o(object,e(object))}}(n(147).a);t.a=d},function(e,t,n){"use strict";var r=n(185),o=n(182),c=n(147);var l=function(e){return function(t,n,l){var h=Object(t);if(!Object(o.a)(t)){var d=Object(r.a)(n,3);t=Object(c.a)(t),n=function(e){return d(h[e],e,h)}}var f=e(t,n,l);return f>-1?h[d?t[f]:f]:void 0}},h=n(754),d=n(521),f=Math.max,m=Math.min;var v=l((function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var c=o-1;return void 0!==n&&(c=Object(d.a)(n),c=n<0?f(o+c,0):m(c,o-1)),Object(h.a)(e,Object(r.a)(t,3),c,!0)}));t.a=v},function(e,t,n){"use strict";var r=function(e,t,n){var r=-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 c=Array(o);++r<o;)c[r]=e[r+t];return c},o=n(313),c=n(521),l=Math.ceil,h=Math.max;t.a=function(e,t,n){t=(n?Object(o.a)(e,t,n):void 0===t)?1:h(Object(c.a)(t),0);var d=null==e?0:e.length;if(!d||t<1)return[];for(var f=0,m=0,v=Array(l(d/t));f<d;)v[m++]=r(e,f,f+=t);return v}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(139),o=n(602),c=n(631),l=n(121),h=864e5;function d(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function f(e,t){Object(l.a)(2,arguments);var n=Object(r.a)(e),f=Object(r.a)(t),m=d(n,f),v=Math.abs(function(e,t){Object(l.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t),d=n.getTime()-Object(o.a)(n),f=r.getTime()-Object(o.a)(r);return Math.round((d-f)/h)}(n,f));n.setDate(n.getDate()-m*v);var y=m*(v-Number(d(n,f)===-m));return 0===y?0:y}},,,,,,,,,,,,,,function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(39),n(1387),n(163)),c=n(150),l=n(23),h=n(110),d=n(30),f=n(506),m=n(13),v=n(26);function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(m.a)(o.a,h.a,f.a).extend({name:"v-alert",props:{border:{type:String,validator:function(e){return["top","right","bottom","left"].includes(e)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator:function(e){return"string"==typeof e||!1===e}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator:function(e){return["info","error","success","warning"].includes(e)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder:function(){if(!this.border)return null;var data={staticClass:"v-alert__border",class:Object(r.a)({},"v-alert__border--".concat(this.border),!0)};return this.coloredBorder&&((data=this.setBackgroundColor(this.computedColor,data)).class["v-alert__border--has-color"]=!0),this.$createElement("div",data)},__cachedDismissible:function(){var e=this;if(!this.dismissible)return null;var t=this.iconColor;return this.$createElement(c.a,{staticClass:"v-alert__dismissible",props:{color:t,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:function(){return e.isActive=!1}}},[this.$createElement(l.a,{props:{color:t}},this.closeIcon)])},__cachedIcon:function(){return this.computedIcon?this.$createElement(l.a,{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes:function(){var e=w(w({},o.a.options.computed.classes.call(this)),{},{"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text});return this.border&&(e["v-alert--border-".concat(this.border)]=!0),e},computedColor:function(){return this.color||this.type},computedIcon:function(){return!1!==this.icon&&("string"==typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$".concat(this.type))},hasColoredIcon:function(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText:function(){return this.text||this.outlined},iconColor:function(){return this.hasColoredIcon?this.computedColor:void 0},isDark:function(){return!(!this.type||this.coloredBorder||this.outlined)||d.a.options.computed.isDark.call(this)}},created:function(){this.$attrs.hasOwnProperty("outline")&&Object(v.a)("outline","outlined",this)},methods:{genWrapper:function(){var e=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible];return this.$createElement("div",{staticClass:"v-alert__wrapper"},e)},genContent:function(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert:function(){var data={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};this.coloredBorder||(data=(this.hasText?this.setTextColor:this.setBackgroundColor)(this.computedColor,data));return this.$createElement("div",data,[this.genWrapper()])},toggle:function(){this.isActive=!this.isActive}},render:function(e){var t=this.genAlert();return this.transition?e("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[t]):t}})},function(e,t,n){"use strict";var r=n(0),o=(n(28),n(1393),n(234)),c=n(38),l=n(263),h=n(221),d=n(429),f=n(4),m=n(26),v=n(13);t.a=Object(v.a)(c.a,l.a,h.a,d.a).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var e=this.dimensions,t=e.activator,content=e.content,n=!(this.bottom||this.left||this.top||this.right),r=!1!==this.attach?t.offsetLeft:t.left,o=0;return this.top||this.bottom||n?o=r+t.width/2-content.width/2:(this.left||this.right)&&(o=r+(this.right?t.width:-content.width)+(this.right?10:-10)),this.nudgeLeft&&(o-=parseInt(this.nudgeLeft)),this.nudgeRight&&(o+=parseInt(this.nudgeRight)),"".concat(this.calcXOverflow(o,this.dimensions.content.width),"px")},calculatedTop:function(){var e=this.dimensions,t=e.activator,content=e.content,n=!1!==this.attach?t.offsetTop:t.top,r=0;return this.top||this.bottom?r=n+(this.bottom?t.height:-content.height)+(this.bottom?10:-10):(this.left||this.right)&&(r=n+t.height/2-content.height/2),this.nudgeTop&&(r-=parseInt(this.nudgeTop)),this.nudgeBottom&&(r+=parseInt(this.nudgeBottom)),!1===this.attach&&(r+=this.pageYOffset),"".concat(this.calcYOverflow(r),"px")},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},computedTransition:function(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:Object(f.i)(this.maxWidth),minWidth:Object(f.i)(this.minWidth),top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var e=this;this.$nextTick((function(){e.value&&e.callActivate()}))},mounted:function(){"v-slot"===Object(f.u)(this,"activator",!0)&&Object(m.b)("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{activate:function(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},deactivate:function(){this.runDelay("close")},genActivatorListeners:function(){var e=this,t=o.a.options.methods.genActivatorListeners.call(this);return this.openOnFocus&&(t.focus=function(t){e.getActivator(t),e.runDelay("open")},t.blur=function(t){e.getActivator(t),e.runDelay("close")}),t.keydown=function(t){t.keyCode===f.y.esc&&(e.getActivator(t),e.runDelay("close"))},t},genActivatorAttributes:function(){return{"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genTransition:function(){var content=this.genContent();return this.computedTransition?this.$createElement("transition",{props:{name:this.computedTransition}},[content]):content},genContent:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:Object(r.a)(Object(r.a)(Object(r.a)({},this.contentClass,!0),"menuable__content__active",this.isActive),"v-tooltip__content--fixed",this.activatorFixed),style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.getContentSlot())}},render:function(e){var t=this;return e(this.tag,{staticClass:"v-tooltip",class:this.classes},[this.showLazyContent((function(){return[t.genTransition()]})),this.genActivator()])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1399),n(30)),c=n(13);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(c.a)(o.a).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark:function(){return this.$vuetify.theme.dark}},beforeCreate:function(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://v2.vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render:function(e){var t=e("div",{staticClass:"v-application--wrap"},this.$slots.default);return e("div",{staticClass:"v-application",class:h({"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl},this.themeClasses),attrs:{"data-app":!0},domProps:{id:this.id}},[t])}})},function(e,t,n){"use strict";n(1400);var r=n(276);t.a=r.a.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles:function(){var e=this.$vuetify.application,t=e.bar,n=e.top,r=e.right,footer=e.footer,o=e.insetFooter,c=e.bottom,l=e.left;return{paddingTop:"".concat(n+t,"px"),paddingRight:"".concat(r,"px"),paddingBottom:"".concat(footer+o+c,"px"),paddingLeft:"".concat(l,"px")}}},render:function(e){var data={staticClass:"v-main",style:this.styles,ref:"main"};return e(this.tag,data,[e("div",{staticClass:"v-main__wrap"},this.$slots.default)])}})},function(e,t,n){"use strict";var r=n(14),o=n(0),c=(n(6),n(7),n(43),n(39),n(28),n(10),n(11),n(9),n(5),n(51),n(98),n(8),n(60),n(1401),n(1192)),l=n(234),h=n(221),d=n(508),f=n(430),m=n(509),v=n(507),y=n(274),w=n(13),S=n(26),_=n(4);function C(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?C(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):C(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var A=Object(w.a)(h.a,d.a,f.a,m.a,v.a,l.a);t.a=A.extend({name:"v-dialog",directives:{ClickOutside:y.a},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data:function(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes:function(){return Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},"v-dialog ".concat(this.contentClass).trim(),!0),"v-dialog--active",this.isActive),"v-dialog--persistent",this.persistent),"v-dialog--fullscreen",this.fullscreen),"v-dialog--scrollable",this.scrollable),"v-dialog--animated",this.animate)},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(e){var t;e?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null===(t=this.previousActiveElement)||void 0===t||t.focus())},fullscreen:function(e){this.isActive&&(e?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(S.e)("full-width",this)},beforeMount:function(){var e=this;this.$nextTick((function(){e.isBooted=e.isActive,e.isActive&&e.show()}))},beforeDestroy:function(){"undefined"!=typeof window&&this.unbind()},methods:{animateClick:function(){var e=this;this.animate=!1,this.$nextTick((function(){e.animate=!0,window.clearTimeout(e.animateTimeout),e.animateTimeout=window.setTimeout((function(){return e.animate=!1}),150)}))},closeConditional:function(e){var t=e.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t)||this.overlay&&t&&!this.overlay.$el.contains(t))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):f.a.options.methods.hideScroll.call(this)},show:function(){var e=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){e.$nextTick((function(){var t,n;(null===(t=e.$refs.dialog)||void 0===t?void 0:t.contains(document.activeElement))||(e.previousActiveElement=document.activeElement,null===(n=e.$refs.dialog)||void 0===n||n.focus()),e.bind()}))}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(e){this.$emit("click:outside",e),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(e){if(e.keyCode===_.y.esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var t=this.getActivator();this.$nextTick((function(){return t&&t.focus()}))}this.$emit("keydown",e)},onFocusin:function(e){if(e&&this.retainFocus){var t=e.target;if(t&&this.$refs.dialog&&![document,this.$refs.dialog].includes(t)&&!this.$refs.dialog.contains(t)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(e){return e.contains(t)}))){var n=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),o=Object(r.a)(n).find((function(e){return!e.hasAttribute("disabled")&&!e.matches('[tabindex="-1"]')}));o&&o.focus()}}},genContent:function(){var e=this;return this.showLazyContent((function(){return[e.$createElement(c.a,{props:{root:!0,light:e.light,dark:e.dark}},[e.$createElement("div",{class:e.contentClasses,attrs:O({role:"dialog","aria-modal":e.hideOverlay?void 0:"true"},e.getScopeIdAttrs()),on:{keydown:e.onKeydown},style:{zIndex:e.activeZIndex},ref:"content"},[e.genTransition()])])]}))},genTransition:function(){var content=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[content]):content},genInnerContent:function(){var data={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(data.style=O(O({},data.style),{},{maxWidth:Object(_.i)(this.maxWidth),width:Object(_.i)(this.width)})),this.$createElement("div",data,this.getContentSlot())}},render:function(e){return e("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}})},function(e,t,n){"use strict";n(550);var r=n(4);t.a=Object(r.k)("spacer","div","v-spacer")},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(98),n(23)),c=n(422),l=n(1);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=l.a.extend({name:"v-app-bar-nav-icon",functional:!0,render:function(e,t){var n=t.slots,r=t.listeners,l=t.props,data=t.data,h=Object.assign(data,{staticClass:"v-app-bar__nav-icon ".concat(data.staticClass||"").trim(),props:d(d({},l),{},{icon:!0}),on:r}),f=n().default;return e(c.a,h,f||[e(o.a,"$menu")])}})},function(e,t,n){"use strict";var r=n(0),o=(n(6),n(7),n(43),n(39),n(10),n(11),n(9),n(5),n(293),n(51),n(8),n(60),n(13)),c=n(186),l=n(126);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(o.a)(c.a,Object(l.b)("form")).extend({name:"v-form",provide:function(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:function(){return{inputs:[],watchers:[],errorBag:{}}},watch:{errorBag:{handler:function(e){var t=Object.values(e).includes(!0);this.$emit("input",!t)},deep:!0,immediate:!0}},methods:{watchInput:function(input){var e=this,t=function(input){return input.$watch("hasError",(function(t){e.$set(e.errorBag,input._uid,t)}),{immediate:!0})},n={_uid:input._uid,valid:function(){},shouldValidate:function(){}};return this.lazyValidation?n.shouldValidate=input.$watch("shouldValidate",(function(r){r&&(e.errorBag.hasOwnProperty(input._uid)||(n.valid=t(input)))})):n.valid=t(input),n},validate:function(){return 0===this.inputs.filter((function(input){return!input.validate(!0)})).length},reset:function(){this.inputs.forEach((function(input){return input.reset()})),this.resetErrorBag()},resetErrorBag:function(){var e=this;this.lazyValidation&&setTimeout((function(){e.errorBag={}}),0)},resetValidation:function(){this.inputs.forEach((function(input){return input.resetValidation()})),this.resetErrorBag()},register:function(input){this.inputs.push(input),this.watchers.push(this.watchInput(input))},unregister:function(input){var e=this.inputs.find((function(i){return i._uid===input._uid}));if(e){var t=this.watchers.find((function(i){return i._uid===e._uid}));t&&(t.valid(),t.shouldValidate()),this.watchers=this.watchers.filter((function(i){return i._uid!==e._uid})),this.inputs=this.inputs.filter((function(i){return i._uid!==e._uid})),this.$delete(this.errorBag,e._uid)}}},render:function(e){var t=this;return e("form",{staticClass:"v-form",attrs:d({novalidate:!0},this.attrs$),on:{submit:function(e){return t.$emit("submit",e)}}},this.$slots.default)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(95),o=n(0),c=(n(28),n(1425),n(364)),l=n(38),h=n(30),d=n(110),f=n(506),m=n(220),v=n(13),y=n(4),w=["aria-atomic","aria-label","aria-live","role","title"];function S(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}t.a=Object(v.a)(l.a,Object(m.b)(["left","bottom"]),h.a,d.a,f.a).extend({name:"v-badge",props:{avatar:Boolean,bordered:Boolean,color:{type:String,default:"primary"},content:{required:!1},dot:Boolean,label:{type:String,default:"$vuetify.badge"},icon:String,inline:Boolean,offsetX:[Number,String],offsetY:[Number,String],overlap:Boolean,tile:Boolean,transition:{type:String,default:"scale-rotate-transition"},value:{default:!0}},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-badge--avatar":this.avatar,"v-badge--bordered":this.bordered,"v-badge--bottom":this.bottom,"v-badge--dot":this.dot,"v-badge--icon":null!=this.icon,"v-badge--inline":this.inline,"v-badge--left":this.left,"v-badge--overlap":this.overlap,"v-badge--tile":this.tile},this.themeClasses)},computedBottom:function(){return this.bottom?"auto":this.computedYOffset},computedLeft:function(){return this.isRtl?this.left?this.computedXOffset:"auto":this.left?"auto":this.computedXOffset},computedRight:function(){return this.isRtl?this.left?"auto":this.computedXOffset:this.left?this.computedXOffset:"auto"},computedTop:function(){return this.bottom?this.computedYOffset:"auto"},computedXOffset:function(){return this.calcPosition(this.offsetX)},computedYOffset:function(){return this.calcPosition(this.offsetY)},isRtl:function(){return this.$vuetify.rtl},offset:function(){return this.overlap?this.dot?8:12:this.dot?2:4},styles:function(){return this.inline?{}:{bottom:this.computedBottom,left:this.computedLeft,right:this.computedRight,top:this.computedTop}}},methods:{calcPosition:function(e){return"calc(100% - ".concat(Object(y.i)(e||this.offset),")")},genBadge:function(){var e=this.$vuetify.lang,label=this.$attrs["aria-label"]||e.t(this.label),data=this.setBackgroundColor(this.color,{staticClass:"v-badge__badge",style:this.styles,attrs:{"aria-atomic":this.$attrs["aria-atomic"]||"true","aria-label":label,"aria-live":this.$attrs["aria-live"]||"polite",title:this.$attrs.title,role:this.$attrs.role||"status"},directives:[{name:"show",value:this.isActive}]}),t=this.$createElement("span",data,[this.genBadgeContent()]);return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[t]):t},genBadgeContent:function(){if(!this.dot){var slot=Object(y.t)(this,"badge");return slot||(this.content?String(this.content):this.icon?this.$createElement(c.a,this.icon):void 0)}},genBadgeWrapper:function(){return this.$createElement("span",{staticClass:"v-badge__wrapper"},[this.genBadge()])}},render:function(e){var t=[this.genBadgeWrapper()],n=[Object(y.t)(this)],o=this.$attrs,c=(o["aria-atomic"],o["aria-label"],o["aria-live"],o.role,o.title,Object(r.a)(o,w));return this.inline&&this.left?n.unshift(t):n.push(t),e("span",{staticClass:"v-badge",attrs:c,class:this.classes},n)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(8);var r=n(95),o=n(0),c=(n(5),n(50),n(1438),n(603),n(23)),l=n(79),h=n(235),d=["title"];function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=h.a.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data:function(){return{inputIndeterminate:this.indeterminate}},computed:{classes:function(){return m(m({},l.a.options.computed.classes.call(this)),{},{"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate})},computedIcon:function(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState:function(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate:function(e){var t=this;this.$nextTick((function(){return t.inputIndeterminate=e}))},inputIndeterminate:function(e){this.$emit("update:indeterminate",e)},isActive:function(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox:function(){var e=this.attrs$,t=(e.title,Object(r.a)(e,d));return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(c.a,this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",m(m({},t),{},{"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()})),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot:function(){return[this.genCheckbox(),this.genLabel()]}}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(21),o=n(0),c=(n(66),n(22),n(34),n(33),n(69),n(1439),n(353)),l=n(219),h=n(30),d=n(13),f=n(4);function m(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(d.a)(c.a,l.a,h.a).extend({name:"VSkeletonLoader",props:{boilerplate:Boolean,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},tile:Boolean,transition:String,type:String,types:{type:Object,default:function(){return{}}}},computed:{attrs:function(){return this.isLoading?v({"aria-busy":!this.boilerplate||void 0,"aria-live":this.boilerplate?void 0:"polite","aria-label":this.boilerplate?void 0:this.$vuetify.lang.t(this.loadingText),role:this.boilerplate?void 0:"alert"},this.$attrs):this.$attrs},classes:function(){return v(v({"v-skeleton-loader--boilerplate":this.boilerplate,"v-skeleton-loader--is-loading":this.isLoading,"v-skeleton-loader--tile":this.tile},this.themeClasses),this.elevationClasses)},isLoading:function(){return!("default"in this.$scopedSlots)||this.loading},rootTypes:function(){return v({actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, card-heading","card-avatar":"image, list-item-avatar","card-heading":"heading",chip:"chip","date-picker":"list-item, card-heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",paragraph:"text@3",sentences:"text@2",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"heading, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"table-cell@6","table-cell":"text","table-tfoot":"text@2, avatar@2",text:"text"},this.types)}},methods:{genBone:function(text,e){return this.$createElement("div",{staticClass:"v-skeleton-loader__".concat(text," v-skeleton-loader__bone")},e)},genBones:function(e){var t=this,n=e.split("@"),o=Object(r.a)(n,2),c=o[0],l=o[1];return Array.from({length:l}).map((function(){return t.genStructure(c)}))},genStructure:function(e){var t=[];e=e||this.type||"";var n=this.rootTypes[e]||"";if(e===n);else{if(e.indexOf(",")>-1)return this.mapBones(e);if(e.indexOf("@")>-1)return this.genBones(e);n.indexOf(",")>-1?t=this.mapBones(n):n.indexOf("@")>-1?t=this.genBones(n):n&&t.push(this.genStructure(n))}return[this.genBone(e,t)]},genSkeleton:function(){var e=[];return this.isLoading?e.push(this.genStructure()):e.push(Object(f.t)(this)),this.transition?this.$createElement("transition",{props:{name:this.transition},on:{afterEnter:this.resetStyles,beforeEnter:this.onBeforeEnter,beforeLeave:this.onBeforeLeave,leaveCancelled:this.resetStyles}},e):e},mapBones:function(e){return e.replace(/\s/g,"").split(",").map(this.genStructure)},onBeforeEnter:function(e){this.resetStyles(e),this.isLoading&&(e._initialStyle={display:e.style.display,transition:e.style.transition},e.style.setProperty("transition","none","important"))},onBeforeLeave:function(e){e.style.setProperty("display","none","important")},resetStyles:function(e){e._initialStyle&&(e.style.display=e._initialStyle.display||"",e.style.transition=e._initialStyle.transition,delete e._initialStyle)}},render:function(e){return e("div",{staticClass:"v-skeleton-loader",attrs:this.attrs,on:this.$listeners,class:this.classes,style:this.isLoading?this.measurableStyles:void 0},[this.genSkeleton()])}})},function(e,t,n){"use strict";var r=n(0),o=(n(6),n(12),n(7),n(39),n(246),n(10),n(11),n(9),n(5),n(34),n(51),n(33),n(69),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(8),n(36),n(604),n(1)),c=n(75),l=n(4);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var f=["sm","md","lg","xl"],m=["start","end","center"];function v(e,t){return f.reduce((function(n,r){return n[e+Object(l.H)(r)]=t(),n}),{})}var y=function(e){return[].concat(m,["baseline","stretch"]).includes(e)},w=v("align",(function(){return{type:String,default:null,validator:y}})),S=function(e){return[].concat(m,["space-between","space-around"]).includes(e)},_=v("justify",(function(){return{type:String,default:null,validator:S}})),C=function(e){return[].concat(m,["space-between","space-around","stretch"]).includes(e)},O=v("alignContent",(function(){return{type:String,default:null,validator:C}})),A={align:Object.keys(w),justify:Object.keys(_),alignContent:Object.keys(O)},T={align:"align",justify:"justify",alignContent:"align-content"};function E(e,t,n){var r=T[e];if(null!=n){if(t){var o=t.replace(e,"");r+="-".concat(o)}return(r+="-".concat(n)).toLowerCase()}}var P=new Map;t.a=o.a.extend({name:"v-row",functional:!0,props:d(d(d({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:y}},w),{},{justify:{type:String,default:null,validator:S}},_),{},{alignContent:{type:String,default:null,validator:C}},O),render:function(e,t){var n=t.props,data=t.data,o=t.children,l="";for(var h in n)l+=String(n[h]);var d=P.get(l);if(!d){var f;for(f in d=[],A)A[f].forEach((function(e){var t=n[e],r=E(f,e,t);r&&d.push(r)}));d.push(Object(r.a)(Object(r.a)(Object(r.a)({"no-gutters":n.noGutters,"row--dense":n.dense},"align-".concat(n.align),n.align),"justify-".concat(n.justify),n.justify),"align-content-".concat(n.alignContent),n.alignContent)),P.set(l,d)}return e(n.tag,Object(c.a)(data,{staticClass:"row",class:d}),o)}})},function(e,t,n){"use strict";var r=n(0),o=(n(39),n(6),n(7),n(246),n(28),n(10),n(11),n(9),n(5),n(34),n(33),n(69),n(92),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(8),n(36),n(604),n(1)),c=n(75),l=n(4);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var f=["sm","md","lg","xl"],m=f.reduce((function(e,t){return e[t]={type:[Boolean,String,Number],default:!1},e}),{}),v=f.reduce((function(e,t){return e["offset"+Object(l.H)(t)]={type:[String,Number],default:null},e}),{}),y=f.reduce((function(e,t){return e["order"+Object(l.H)(t)]={type:[String,Number],default:null},e}),{}),w={col:Object.keys(m),offset:Object.keys(v),order:Object.keys(y)};function S(e,t,n){var r=e;if(null!=n&&!1!==n){if(t){var o=t.replace(e,"");r+="-".concat(o)}return"col"!==e||""!==n&&!0!==n?(r+="-".concat(n)).toLowerCase():r.toLowerCase()}}var _=new Map;t.a=o.a.extend({name:"v-col",functional:!0,props:d(d(d(d({cols:{type:[Boolean,String,Number],default:!1}},m),{},{offset:{type:[String,Number],default:null}},v),{},{order:{type:[String,Number],default:null}},y),{},{alignSelf:{type:String,default:null,validator:function(e){return["auto","start","end","center","baseline","stretch"].includes(e)}},tag:{type:String,default:"div"}}),render:function(e,t){var n=t.props,data=t.data,o=t.children,l=(t.parent,"");for(var h in n)l+=String(n[h]);var d=_.get(l);if(!d){var f;for(f in d=[],w)w[f].forEach((function(e){var t=n[e],r=S(f,e,t);r&&d.push(r)}));var m=d.some((function(e){return e.startsWith("col-")}));d.push(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({col:!m||!n.cols},"col-".concat(n.cols),n.cols),"offset-".concat(n.offset),n.offset),"order-".concat(n.order),n.order),"align-self-".concat(n.alignSelf),n.alignSelf)),_.set(l,d)}return e(n.tag,Object(c.a)(data,{class:d}),o)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(328),n(329),n(1442),n(103)),c=n(26);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=o.a.extend({name:"v-expansion-panels",provide:function(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes:function(){return h(h({},o.a.options.computed.classes.call(this)),{},{"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile})}},created:function(){this.$attrs.hasOwnProperty("expand")&&Object(c.a)("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"==typeof this.value[0]&&Object(c.a)(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem:function(e,t){var n=this.getValue(e,t),r=this.getValue(e,t+1);e.isActive=this.toggleMethod(n),e.nextIsActive=this.toggleMethod(r)}}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=n(159),c=n(126),l=n(4),h=n(13);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}t.a=Object(h.a)(Object(o.a)("expansionPanels","v-expansion-panel","v-expansion-panels"),Object(c.b)("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data:function(){return{content:null,header:null,nextIsActive:!1}},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled},this.groupClasses)},isDisabled:function(){return this.expansionPanels.disabled||this.disabled},isReadonly:function(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent:function(e){this.content=e},unregisterContent:function(){this.content=null},registerHeader:function(e){this.header=e,e.$on("click",this.onClick)},unregisterHeader:function(){this.header=null},onClick:function(e){e.detail&&this.header.$el.blur(),this.$emit("click",e),this.isReadonly||this.isDisabled||this.toggle()},toggle:function(){var e=this;this.$nextTick((function(){return e.$emit("change")}))}},render:function(e){return e("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},Object(l.t)(this))}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=n(117),c=n(23),l=n(38),h=n(126),d=n(90),f=n(4),m=n(13);function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var w=Object(m.a)(l.a,Object(h.a)("expansionPanel","v-expansion-panel-header","v-expansion-panel"));t.a=w.extend().extend({name:"v-expansion-panel-header",directives:{ripple:d.a},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:function(){return{hasMousedown:!1}},computed:{classes:function(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive:function(){return this.expansionPanel.isActive},isDisabled:function(){return this.expansionPanel.isDisabled},isReadonly:function(){return this.expansionPanel.isReadonly}},created:function(){this.expansionPanel.registerHeader(this)},beforeDestroy:function(){this.expansionPanel.unregisterHeader()},methods:{onClick:function(e){this.$emit("click",e)},genIcon:function(){var e=Object(f.t)(this,"actions",{open:this.isActive})||[this.$createElement(c.a,this.expandIcon)];return this.$createElement(o.d,[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},e)])}},render:function(e){var t=this;return e("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:y(y({},this.$listeners),{},{click:this.onClick,mousedown:function(){return t.hasMousedown=!0},mouseup:function(){return t.hasMousedown=!1}})}),[Object(f.t)(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}})},function(e,t,n){"use strict";var r=n(117),o=n(275),c=n(38),l=n(126),h=n(4),d=n(13),f=Object(d.a)(o.a,c.a,Object(l.a)("expansionPanel","v-expansion-panel-content","v-expansion-panel"));t.a=f.extend().extend({name:"v-expansion-panel-content",data:function(){return{isActive:!1}},computed:{parentIsActive:function(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler:function(e,t){var n=this;e&&(this.isBooted=!0),null==t?this.isActive=e:this.$nextTick((function(){return n.isActive=e}))}}},created:function(){this.expansionPanel.registerContent(this)},beforeDestroy:function(){this.expansionPanel.unregisterContent()},render:function(e){var t=this;return e(r.a,this.showLazyContent((function(){return[e("div",t.setBackgroundColor(t.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:t.isActive}]}),[e("div",{class:"v-expansion-panel-content__wrap"},Object(h.t)(t,"default",{open:t.isActive}))])]})))}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(95),o=n(0),c=(n(328),n(329),n(603),n(1451),n(235)),l=n(79),h=n(218),d=n(117),f=n(421),m=n(4),v=["title"];function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=c.a.extend({name:"v-switch",directives:{Touch:h.a},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes:function(){return w(w({},l.a.options.computed.classes.call(this)),{},{"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset})},attrs:function(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState:function(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0},switchData:function(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot:function(){return[this.genSwitch(),this.genLabel()]},genSwitch:function(){var e=this.attrs$,t=(e.title,Object(r.a)(e,v));return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",w(w({},this.attrs),t)),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",w({staticClass:"v-input--switch__track"},this.switchData)),this.$createElement("div",w({staticClass:"v-input--switch__thumb"},this.switchData),[this.genProgress()])])},genProgress:function(){return this.$createElement(d.c,{},[!1===this.loading?null:this.$slots.progress||this.$createElement(f.a,{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft:function(){this.isActive&&this.onChange()},onSwipeRight:function(){this.isActive||this.onChange()},onKeydown:function(e){(e.keyCode===m.y.left&&this.isActive||e.keyCode===m.y.right&&!this.isActive)&&this.onChange()}}})},function(e,t,n){"use strict";var r=Array.prototype.reverse;t.a=function(e){return null==e?e:r.call(e)}},function(e,t,n){"use strict";var r=n(451),o=n(185),c=n(769);t.a=function(e,t){return e&&e.length?Object(r.a)(e,Object(o.a)(t,2),c.a):void 0}},function(e,t,n){"use strict";var r=n(451),o=n(744),c=n(185);t.a=function(e,t){return e&&e.length?Object(r.a)(e,Object(c.a)(t,2),o.a):void 0}},function(e,t,n){"use strict";n(12),n(7),n(9),n(5),n(92),n(550),n(604);var r=n(500),o=n(75);t.a=Object(r.a)("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render:function(e,t){var n,r=t.props,data=t.data,c=t.children,l=data.attrs;return l&&(data.attrs={},n=Object.keys(l).filter((function(e){if("slot"===e)return!1;var t=l[e];return e.startsWith("data-")?(data.attrs[e]=t,!1):t||"string"==typeof t}))),r.id&&(data.domProps=data.domProps||{},data.domProps.id=r.id),e(r.tag,Object(o.a)(data,{staticClass:"container",class:Array({"container--fluid":r.fluid}).concat(n||[])}),c)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(12),n(28),n(418),n(1462),n(510)),c=n(366),l=n(38),h=n(221),d=n(285),f=n(430),m=n(276),v=n(30),y=n(274),w=n(175),S=n(218),_=n(4),C=n(13);function O(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var A=Object(C.a)(Object(c.a)("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),l.a,h.a,d.a,f.a,m.a,v.a);t.a=A.extend({name:"v-navigation-drawer",directives:{ClickOutside:y.a,Resize:w.a,Touch:S.a},provide:function(){return{isInNav:"nav"===this.tag}},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default:function(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default:function(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:function(){return{isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}},computed:{applicationProperty:function(){return this.right?"right":"left"},classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?O(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):O(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":56!==Number(this.miniVariantWidth),"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary},this.themeClasses)},computedMaxHeight:function(){if(!this.hasApp)return null;var e=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?e+this.$vuetify.application.top:e},computedTop:function(){if(!this.hasApp)return 0;var e=this.$vuetify.application.bar;return e+=this.clipped?this.$vuetify.application.top:0,e},computedTransform:function(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth:function(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp:function(){return this.app&&!this.isMobile&&!this.temporary},isBottom:function(){return this.bottom&&this.isMobile},isMiniVariant:function(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile:function(){return!this.stateless&&!this.permanent&&d.a.options.computed.isMobile.call(this)},reactsToClick:function(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile:function(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize:function(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute:function(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay:function(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles:function(){var e=this.isBottom?"translateY":"translateX";return{height:Object(_.i)(this.height),top:this.isBottom?"auto":Object(_.i)(this.computedTop),maxHeight:null!=this.computedMaxHeight?"calc(100% - ".concat(Object(_.i)(this.computedMaxHeight),")"):void 0,transform:"".concat(e,"(").concat(Object(_.i)(this.computedTransform,"%"),")"),width:Object(_.i)(this.computedWidth)}}},watch:{$route:"onRouteChange",isActive:function(e){this.$emit("input",e)},isMobile:function(e,t){!e&&this.isActive&&!this.temporary&&this.removeOverlay(),null!=t&&this.reactsToResize&&this.reactsToMobile&&(this.isActive=!e)},permanent:function(e){e&&(this.isActive=!0)},showOverlay:function(e){e?this.genOverlay():this.removeOverlay()},value:function(e){this.permanent||(null!=e?e!==this.isActive&&(this.isActive=e):this.init())},expandOnHover:"updateMiniVariant",isMouseover:function(e){this.updateMiniVariant(!e)}},beforeMount:function(){this.init()},methods:{calculateTouchArea:function(){var e=this.$el.parentNode;if(e){var t=e.getBoundingClientRect();this.touchArea={left:t.left+50,right:t.right-50}}},closeConditional:function(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend:function(){return this.genPosition("append")},genBackground:function(){var e={height:"100%",width:"100%",src:this.src},image=this.$scopedSlots.img?this.$scopedSlots.img(e):this.$createElement(o.a,{props:e});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[image])},genDirectives:function(){var e=this,t=[{name:"click-outside",value:{handler:function(){e.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return this.touchless||this.stateless||t.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),t},genListeners:function(){var e=this,t={mouseenter:function(){return e.isMouseover=!0},mouseleave:function(){return e.isMouseover=!1},transitionend:function(t){if(t.target===t.currentTarget){e.$emit("transitionend",t);var n=document.createEvent("UIEvents");n.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(n)}}};return this.miniVariant&&(t.click=function(){return e.$emit("update:mini-variant",!1)}),t},genPosition:function(e){var slot=Object(_.t)(this,e);return slot?this.$createElement("div",{staticClass:"v-navigation-drawer__".concat(e)},slot):slot},genPrepend:function(){return this.genPosition("prepend")},genContent:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},this.$slots.default)},genBorder:function(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init:function(){this.permanent?this.isActive=!0:this.stateless||null!=this.value?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange:function(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft:function(e){this.isActive&&this.right||(this.calculateTouchArea(),Math.abs(e.touchendX-e.touchstartX)<100||(this.right&&e.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight:function(e){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(e.touchendX-e.touchstartX)<100||(!this.right&&e.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication:function(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;var e=Number(this.miniVariant?this.miniVariantWidth:this.width);return isNaN(e)?this.$el.clientWidth:e},updateMiniVariant:function(e){this.expandOnHover&&this.miniVariant!==e&&this.$emit("update:mini-variant",e)}},render:function(e){var t=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||Object(_.t)(this,"img"))&&t.unshift(this.genBackground()),e(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),t)}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(418),n(1463),n(366)),c=n(38),l=n(30),h=n(13),d=n(4);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}t.a=Object(h.a)(Object(o.a)("bar",["height","window"]),c.a,l.a).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(d.i)(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(e){var data={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return e("div",this.setBackgroundColor(this.color,data),Object(d.t)(this))}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(603),n(1550),n(79)),c=n(103),l=n(13);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var f=Object(l.a)(c.a,o.a);t.a=f.extend({name:"v-radio-group",provide:function(){return{radioGroup:this}},props:{column:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},name:String,row:Boolean,value:null},computed:{classes:function(){return d(d({},o.a.options.computed.classes.call(this)),{},{"v-input--selection-controls v-input--radio-group":!0,"v-input--radio-group--column":this.column&&!this.row,"v-input--radio-group--row":this.row})}},methods:{genDefaultSlot:function(){return this.$createElement("div",{staticClass:"v-input--radio-group__input",attrs:{id:this.id,role:"radiogroup","aria-labelledby":this.computedId}},o.a.options.methods.genDefaultSlot.call(this))},genInputSlot:function(){var e=o.a.options.methods.genInputSlot.call(this);return delete e.data.on.click,e},genLabel:function(){var label=o.a.options.methods.genLabel.call(this);return label?(label.data.attrs.id=this.computedId,delete label.data.attrs.for,label.tag="legend",label):null},onClick:c.a.options.methods.onClick},render:function(e){var t=o.a.options.render.call(this,e);return this._b(t.data,"div",this.attrs$),t}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(95),o=n(0),c=(n(24),n(1551),n(377)),l=n(23),h=n(79),d=n(186),f=n(38),m=n(159),v=n(456),y=n(30),w=n(235),S=n(4),_=n(13),C=n(75),O=["title"];function A(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?A(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):A(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var E=Object(_.a)(d.a,f.a,v.a,Object(m.a)("radioGroup"),y.a);t.a=E.extend().extend({name:"v-radio",inheritAttrs:!1,props:{disabled:{type:Boolean,default:null},id:String,label:String,name:String,offIcon:{type:String,default:"$radioOff"},onIcon:{type:String,default:"$radioOn"},readonly:{type:Boolean,default:null},value:{default:null}},data:function(){return{isFocused:!1}},computed:{classes:function(){return T(T({"v-radio--is-disabled":this.isDisabled,"v-radio--is-focused":this.isFocused},this.themeClasses),this.groupClasses)},computedColor:function(){if(!this.isDisabled)return w.a.options.computed.computedColor.call(this)},computedIcon:function(){return this.isActive?this.onIcon:this.offIcon},computedId:function(){return h.a.options.computed.computedId.call(this)},hasLabel:h.a.options.computed.hasLabel,hasState:function(){return(this.radioGroup||{}).hasState},isDisabled:function(){var e;return null!==(e=this.disabled)&&void 0!==e?e:!!this.radioGroup&&this.radioGroup.isDisabled},isReadonly:function(){var e;return null!==(e=this.readonly)&&void 0!==e?e:!!this.radioGroup&&this.radioGroup.isReadonly},computedName:function(){return this.name||!this.radioGroup?this.name:this.radioGroup.name||"radio-".concat(this.radioGroup._uid)},rippleState:function(){return w.a.options.computed.rippleState.call(this)},validationState:function(){return(this.radioGroup||{}).validationState||this.computedColor}},methods:{genInput:function(e){return w.a.options.methods.genInput.call(this,"radio",e)},genLabel:function(){return this.hasLabel?this.$createElement(c.a,{on:{click:w.b},attrs:{for:this.computedId},props:{color:this.validationState,focused:this.hasState}},Object(S.t)(this,"label")||this.label):null},genRadio:function(){var e=this.attrs$,t=(e.title,Object(r.a)(e,O));return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(l.a,this.setTextColor(this.validationState,{props:{dense:this.radioGroup&&this.radioGroup.dense}}),this.computedIcon),this.genInput(T({name:this.computedName,value:this.value},t)),this.genRipple(this.setTextColor(this.rippleState))])},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e)},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e)},onChange:function(){this.isDisabled||this.isReadonly||this.isActive||this.toggle()},onKeydown:function(){}},render:function(e){return e("div",{staticClass:"v-radio",class:this.classes,on:Object(C.c)({click:this.onChange},this.listeners$),attrs:{title:this.attrs$.title}},[this.genRadio(),this.genLabel()])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(1554),n(452)),c=n(38),l=n(13);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(l.a)(o.a,c.a).extend({name:"v-btn-toggle",props:{backgroundColor:String,borderless:Boolean,dense:Boolean,group:Boolean,rounded:Boolean,shaped:Boolean,tile:Boolean},computed:{classes:function(){return d(d({},o.a.options.computed.classes.call(this)),{},{"v-btn-toggle":!0,"v-btn-toggle--borderless":this.borderless,"v-btn-toggle--dense":this.dense,"v-btn-toggle--group":this.group,"v-btn-toggle--rounded":this.rounded,"v-btn-toggle--shaped":this.shaped,"v-btn-toggle--tile":this.tile},this.themeClasses)}},methods:{genData:function(){var data=this.setTextColor(this.color,d({},o.a.options.methods.genData.call(this)));return this.group?data:this.setBackgroundColor(this.backgroundColor,data)}}})},function(e,t,n){"use strict";n(550);var r=n(500);t.a=Object(r.a)("layout")},function(e,t,n){"use strict";var r=n(263),o=n(110),c=n(13),l=n(26);t.a=Object(c.a)(r.a,o.a).extend({name:"v-hover",props:{disabled:{type:Boolean,default:!1},value:{type:Boolean,default:void 0}},methods:{onMouseEnter:function(){this.runDelay("open")},onMouseLeave:function(){this.runDelay("close")}},render:function(){return this.$scopedSlots.default||void 0!==this.value?(this.$scopedSlots.default&&(element=this.$scopedSlots.default({hover:this.isActive})),Array.isArray(element)&&1===element.length&&(element=element[0]),element&&!Array.isArray(element)&&element.tag?(this.disabled||(element.data=element.data||{},this._g(element.data,{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave})),element):(Object(l.c)("v-hover should only contain a single element",this),element)):(Object(l.c)("v-hover is missing a default scopedSlot or bound value",this),null);var element}})},function(e,t,n){"use strict";n(22),n(54),n(28),n(1570);var r=n(219),o=n(511),c=n(4);t.a=r.a.extend({name:"v-virtual-scroll",directives:{Scroll:o.b},props:{bench:{type:[Number,String],default:0},itemHeight:{type:[Number,String],required:!0},items:{type:Array,default:function(){return[]}}},data:function(){return{first:0,last:0,scrollTop:0}},computed:{__bench:function(){return parseInt(this.bench,10)},__itemHeight:function(){return parseInt(this.itemHeight,10)},firstToRender:function(){return Math.max(0,this.first-this.__bench)},lastToRender:function(){return Math.min(this.items.length,this.last+this.__bench)}},watch:{height:"onScroll",itemHeight:"onScroll"},mounted:function(){this.last=this.getLast(0)},methods:{getChildren:function(){return this.items.slice(this.firstToRender,this.lastToRender).map(this.genChild)},genChild:function(e,t){t+=this.firstToRender;var n=Object(c.i)(t*this.__itemHeight);return this.$createElement("div",{staticClass:"v-virtual-scroll__item",style:{top:n},key:t},Object(c.t)(this,"default",{index:t,item:e}))},getFirst:function(){return Math.floor(this.scrollTop/this.__itemHeight)},getLast:function(e){var t=parseInt(this.height||0,10)||this.$el.clientHeight;return e+Math.ceil(t/this.__itemHeight)},onScroll:function(){this.scrollTop=this.$el.scrollTop,this.first=this.getFirst(),this.last=this.getLast(this.first)}},render:function(e){var content=e("div",{staticClass:"v-virtual-scroll__container",style:{height:Object(c.i)(this.items.length*this.__itemHeight)}},this.getChildren());return e("div",{staticClass:"v-virtual-scroll",style:this.measurableStyles,directives:[{name:"scroll",modifiers:{self:!0},value:this.onScroll}],on:this.$listeners},[content])}})},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(34),n(69),n(159)),c=n(131),l=n(30),h=n(4),d=n(13);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var v=Object(d.a)(c.a,Object(o.a)("tabsBar"),l.a);t.a=v.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0},tabValue:{required:!1}},data:function(){return{proxyClass:"v-tab--active"}},computed:{classes:function(){return m(m({"v-tab":!0},c.a.options.computed.classes.call(this)),{},{"v-tab--disabled":this.disabled},this.groupClasses)},value:function(){if(null!=this.tabValue)return this.tabValue;var e=this.to||this.href;if(null==e)return e;this.$router&&this.to===Object(this.to)&&(e=this.$router.resolve(this.to,this.$route,this.append).href);return e.replace("#","")}},methods:{click:function(e){this.disabled?e.preventDefault():(this.href&&this.href.indexOf("#")>-1&&e.preventDefault(),e.detail&&this.$el.blur(),this.$emit("click",e),this.to||this.toggle())},toggle:function(){this.isActive&&(this.tabsBar.mandatory||this.to)||this.$emit("change")}},render:function(e){var t=this,n=this.generateRouteLink(),r=n.tag,data=n.data;return data.attrs=m(m({},data.attrs),{},{"aria-selected":String(this.isActive),role:"tab",tabindex:this.disabled?-1:0}),data.on=m(m({},data.on),{},{keydown:function(e){e.keyCode===h.y.enter&&t.click(e),t.$emit("keydown",e)}}),e(r,data,this.$slots.default)}})},function(e,t,n){"use strict";var r=n(548);t.a=r.a.extend({name:"v-tab-item",props:{id:String},methods:{genWindowItem:function(){var e=r.a.options.methods.genWindowItem.call(this);return e.data.domProps=e.data.domProps||{},e.data.domProps.id=this.id||this.value,e}}})},function(e,t,n){"use strict";var r=n(277),o=n(537),c=Object.prototype.hasOwnProperty,l=Object(o.a)((function(e,t,n){c.call(e,n)?e[n].push(t):Object(r.a)(e,n,[t])}));t.a=l},function(e,t,n){"use strict";var r=n(35),o=n(0),c=(n(6),n(7),n(43),n(105),n(39),n(54),n(129),n(24),n(5),n(10),n(11),n(9),n(50),n(151),n(8),n(51),n(907),n(91)),l=n(387),h=n(4);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=l.a.extend({name:"v-combobox",props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return c.a.options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)},searchIsDirty:function(){return null!=this.internalSearch}},methods:{onInternalSearchChanged:function(e){if(e&&this.multiple&&this.delimiters.length){var t=this.delimiters.find((function(t){return e.endsWith(t)}));null!=t&&(this.internalSearch=e.slice(0,e.length-t.length),this.updateTags())}this.updateMenuDimensions()},genInput:function(){var input=l.a.options.methods.genInput.call(this);return delete input.data.attrs.name,input.data.on.paste=this.onPaste,input},genChipSelection:function(e,t){var n=this,r=c.a.options.methods.genChipSelection.call(this,e,t);return this.multiple&&(r.componentOptions.listeners=f(f({},r.componentOptions.listeners),{},{dblclick:function(){n.editingIndex=t,n.internalSearch=n.getText(e),n.selectedIndex=-1}})),r},onChipInput:function(e){c.a.options.methods.onChipInput.call(this,e),this.editingIndex=-1},onEnterDown:function(e){e.preventDefault(),this.getMenuIndex()>-1||this.$nextTick(this.updateSelf)},onKeyDown:function(e){var t=e.keyCode;!e.ctrlKey&&[h.y.home,h.y.end].includes(t)||c.a.options.methods.onKeyDown.call(this,e),this.multiple&&t===h.y.left&&0===this.$refs.input.selectionStart?this.updateSelf():t===h.y.enter&&this.onEnterDown(e),this.changeSelectedIndex(t)},onTabDown:function(e){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return e.preventDefault(),e.stopPropagation(),this.updateTags();l.a.options.methods.onTabDown.call(this,e)},selectItem:function(e){this.editingIndex>-1?this.updateEditing():(l.a.options.methods.selectItem.call(this,e),this.internalSearch&&this.multiple&&this.getText(e).toLocaleLowerCase().includes(this.internalSearch.toLocaleLowerCase())&&(this.internalSearch=null))},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(e){c.a.options.methods.setValue.call(this,void 0===e?this.internalSearch:e)},updateEditing:function(){var e=this,t=this.internalValue.slice(),n=this.selectedItems.findIndex((function(t){return e.getText(t)===e.internalSearch}));if(n>-1){var o="object"===Object(r.a)(t[n])?Object.assign({},t[n]):t[n];t.splice(n,1),t.push(o)}else t[this.editingIndex]=this.internalSearch;this.setValue(t),this.editingIndex=-1,this.internalSearch=null},updateCombobox:function(){this.searchIsDirty&&(this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),(Boolean(this.$scopedSlots.selection)||this.hasChips)&&(this.internalSearch=null))},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var e=this,t=this.getMenuIndex();if(!(t<0&&!this.searchIsDirty||!this.internalSearch)){if(this.editingIndex>-1)return this.updateEditing();var n=this.selectedItems.findIndex((function(t){return e.internalSearch===e.getText(t)})),o=n>-1&&"object"===Object(r.a)(this.selectedItems[n])?Object.assign({},this.selectedItems[n]):this.internalSearch;if(n>-1){var c=this.internalValue.slice();c.splice(n,1),this.setValue(c)}if(t>-1)return this.internalSearch=null;this.selectItem(o),this.internalSearch=null}},onPaste:function(e){var t;if(this.$emit("paste",e),this.multiple&&!this.searchIsDirty){var n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/vnd.vuetify.autocomplete.item+plain");n&&-1===this.findExistingIndex(n)&&(e.preventDefault(),c.a.options.methods.selectItem.call(this,n))}},clearableCallback:function(){this.editingIndex=-1,l.a.options.methods.clearableCallback.call(this)}}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(139),o=n(238),c=n(121);function l(e,t){var n,l;Object(c.a)(1,arguments);var h=Object(r.a)(e);if(isNaN(h.getTime()))throw new RangeError("Invalid time value");var d=String(null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"extended"),f=String(null!==(l=null==t?void 0:t.representation)&&void 0!==l?l:"complete");if("extended"!==d&&"basic"!==d)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==f&&"time"!==f&&"complete"!==f)throw new RangeError("representation must be 'date', 'time', or 'complete'");var m="",v="",y="extended"===d?"-":"",w="extended"===d?":":"";if("time"!==f){var S=Object(o.a)(h.getDate(),2),_=Object(o.a)(h.getMonth()+1,2),C=Object(o.a)(h.getFullYear(),4);m="".concat(C).concat(y).concat(_).concat(y).concat(S)}if("date"!==f){var O=h.getTimezoneOffset();if(0!==O){var A=Math.abs(O),T=Object(o.a)(Math.floor(A/60),2),E=Object(o.a)(A%60,2);v="".concat(O<0?"+":"-").concat(T,":").concat(E)}else v="Z";var P=""===m?"":"T",time=[Object(o.a)(h.getHours(),2),Object(o.a)(h.getMinutes(),2),Object(o.a)(h.getSeconds(),2)].join(w);m="".concat(m).concat(P).concat(time).concat(v)}return m}},function(e,t,n){"use strict";var r=n(288);var o=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},c=n(277),l=n(278),h=Object.prototype.hasOwnProperty;var d=function(object,e,t){var n=object[e];h.call(object,e)&&Object(l.a)(n,t)&&(void 0!==t||e in object)||Object(c.a)(object,e,t)};var f=function(source,e,object,t){var n=!object;object||(object={});for(var r=-1,o=e.length;++r<o;){var l=e[r],h=t?t(object[l],source[l],l,object,source):void 0;void 0===h&&(h=source[l]),n?Object(c.a)(object,l,h):d(object,l,h)}return object},m=n(147);var v=function(object,source){return object&&f(source,Object(m.a)(source),object)},y=n(539),w=n(118),S=n(354);var _=function(object){var e=[];if(null!=object)for(var t in Object(object))e.push(t);return e},C=Object.prototype.hasOwnProperty;var O=function(object){if(!Object(w.a)(object))return _(object);var e=Object(S.a)(object),t=[];for(var n in object)("constructor"!=n||!e&&C.call(object,n))&&t.push(n);return t},A=n(182);var T=function(object){return Object(A.a)(object)?Object(y.a)(object,!0):O(object)};var E=function(object,source){return object&&f(source,T(source),object)},P=n(1013);var M=function(source,e){var t=-1,n=source.length;for(e||(e=Array(n));++t<n;)e[t]=source[t];return e},x=n(378);var k=function(source,object){return f(source,Object(x.a)(source),object)},I=n(370),R=n(516),j=Object(R.a)(Object.getPrototypeOf,Object),D=n(517),N=Object.getOwnPropertySymbols?function(object){for(var e=[];object;)Object(I.a)(e,Object(x.a)(object)),object=j(object);return e}:D.a;var L=function(source,object){return f(source,N(source),object)},B=n(432),U=n(518);var F=function(object){return Object(U.a)(object,T,N)},z=n(196),$=Object.prototype.hasOwnProperty;var H=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&$.call(e,"index")&&(n.index=e.index,n.input=e.input),n},G=n(381);var V=function(e){var t=new e.constructor(e.byteLength);return new G.a(t).set(new G.a(e)),t};var W=function(e,t){var n=t?V(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},K=/\w*$/;var Y=function(e){var t=new e.constructor(e.source,K.exec(e));return t.lastIndex=e.lastIndex,t},X=n(128),J=X.a?X.a.prototype:void 0,Z=J?J.valueOf:void 0;var Q=function(symbol){return Z?Object(Z.call(symbol)):{}};var ee=function(e,t){var n=t?V(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var te=function(object,e,t){var n=object.constructor;switch(e){case"[object ArrayBuffer]":return V(object);case"[object Boolean]":case"[object Date]":return new n(+object);case"[object DataView]":return W(object,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ee(object,t);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(object);case"[object RegExp]":return Y(object);case"[object Symbol]":return Q(object)}},ne=Object.create,re=function(){function object(){}return function(e){if(!Object(w.a)(e))return{};if(ne)return ne(e);object.prototype=e;var t=new object;return object.prototype=void 0,t}}();var ie=function(object){return"function"!=typeof object.constructor||Object(S.a)(object)?{}:re(j(object))},oe=n(89),ae=n(311),se=n(146);var ce=function(e){return Object(se.a)(e)&&"[object Map]"==Object(z.a)(e)},ue=n(273),le=n(236),he=le.a&&le.a.isMap,de=he?Object(ue.a)(he):ce;var fe=function(e){return Object(se.a)(e)&&"[object Set]"==Object(z.a)(e)},pe=le.a&&le.a.isSet,me=pe?Object(ue.a)(pe):fe,ge="[object Arguments]",ve="[object Function]",be="[object Object]",ye={};ye[ge]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object DataView]"]=ye["[object Boolean]"]=ye["[object Date]"]=ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Map]"]=ye["[object Number]"]=ye[be]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object Symbol]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Error]"]=ye[ve]=ye["[object WeakMap]"]=!1;var we=function e(t,n,c,l,object,h){var f,y=1&n,S=2&n,_=4&n;if(c&&(f=object?c(t,l,object,h):c(t)),void 0!==f)return f;if(!Object(w.a)(t))return t;var C=Object(oe.a)(t);if(C){if(f=H(t),!y)return M(t,f)}else{var O=Object(z.a)(t),A=O==ve||"[object GeneratorFunction]"==O;if(Object(ae.a)(t))return Object(P.a)(t,y);if(O==be||O==ge||A&&!object){if(f=S||A?{}:ie(t),!y)return S?L(t,E(f,t)):k(t,v(f,t))}else{if(!ye[O])return object?t:{};f=te(t,O,y)}}h||(h=new r.a);var x=h.get(t);if(x)return x;h.set(t,f),me(t)?t.forEach((function(r){f.add(e(r,n,c,r,t,h))})):de(t)&&t.forEach((function(r,o){f.set(o,e(r,n,c,o,t,h))}));var I=_?S?F:B.a:S?T:m.a,R=C?void 0:I(t);return o(R||t,(function(r,o){R&&(r=t[o=r]),d(f,o,e(r,n,c,o,t,h))})),f};t.a=function(e){return we(e,5)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return qe}));var r,o=n(390),c=n(1024),l=n(222),h=(r=function(e,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},r(e,b)},function(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}),d=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},f=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},v=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},y=new o.a("Util"),w=function(e){function t(t){var n=e.call(this,t)||this;return n.nonRetryable=!0,n}return h(t,e),t}(Error);var S=3e5;function _(e){void 0===e&&(e=S);return function(t){var n=100*Math.pow(2,t)+100*Math.random();return!(n>e)&&n}}var C,O=function(e,t,n,r){return void 0===n&&(n=S),function(e,t,n,r){return d(this,void 0,void 0,(function(){var o=this;return f(this,(function(c){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise((function(c,l){return d(o,void 0,void 0,(function(){var o,h,d,w,S,_,C;return f(this,(function(O){switch(O.label){case 0:o=0,h=!1,w=function(){},r&&r.then((function(){h=!0,clearTimeout(d),w()})),_=function(){var r,_,C,O;return f(this,(function(f){switch(f.label){case 0:o++,y.debug("".concat(e.name," attempt #").concat(o," with this vars: ").concat(JSON.stringify(t))),f.label=1;case 1:return f.trys.push([1,3,,7]),r={},_=c,[4,e.apply(void 0,v([],m(t),!1))];case 2:return[2,(r.value=_.apply(void 0,[f.sent()]),r)];case 3:return C=f.sent(),S=C,y.debug("error on ".concat(e.name),C),(A=C)&&A.nonRetryable?(y.debug("".concat(e.name," non retryable error"),C),[2,{value:l(C)}]):(O=n(o,t,C),y.debug("".concat(e.name," retrying in ").concat(O," ms")),!1===O||h?[2,{value:l(C)}]:[3,4]);case 4:return[4,new Promise((function(e){w=e,d=setTimeout(w,O)}))];case 5:f.sent(),f.label=6;case 6:return[3,7];case 7:return[2]}var A}))},O.label=1;case 1:return h?[3,3]:[5,_()];case 2:return"object"==typeof(C=O.sent())?[2,C.value]:[3,1];case 3:return l(S),[2]}}))}))}))]}))}))}(e,t,_(n),r)},A=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},T=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},E=new o.a("CognitoCredentials"),P=new Promise((function(e,t){return Object(l.a)().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(E.debug("google api already loaded"),e()):void setTimeout((function(){return e()}),2e3):(E.debug("not in the browser, directly resolved"),e())})),M=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){return A(this,void 0,void 0,(function(){return T(this,(function(e){switch(e.label){case 0:return this.initialized?[3,2]:(E.debug("need to wait for the Google SDK loaded"),[4,P]);case 1:e.sent(),this.initialized=!0,E.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}}))}))},e.prototype._refreshGoogleTokenImpl=function(){var e=null;return Object(l.a)().isBrowser&&(e=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),e?new Promise((function(t,n){e.getAuthInstance().then((function(e){e||(E.debug("google Auth undefined"),n(new w("google Auth undefined")));var r=e.currentUser.get();r.isSignedIn()?(E.debug("refreshing the google access token"),r.reloadAuthResponse().then((function(e){var n=e.id_token,r=e.expires_at;t({token:n,expires_at:r})})).catch((function(e){e&&"network_error"===e.error?n("Network error reloading google auth response"):n(new w("Failed to reload google auth response"))}))):n(new w("User is not signed in with Google"))})).catch((function(e){E.debug("Failed to refresh google token",e),n(new w("Failed to refresh google token"))}))})):(E.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),x=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},k=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},I=new o.a("CognitoCredentials"),R=new Promise((function(e,t){return Object(l.a)().isBrowser?window.FB?(I.debug("FB SDK already loaded"),e()):void setTimeout((function(){return e()}),2e3):(I.debug("not in the browser, directly resolved"),e())})),j=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){return x(this,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return this.initialized?[3,2]:(I.debug("need to wait for the Facebook SDK loaded"),[4,R]);case 1:e.sent(),this.initialized=!0,I.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}}))}))},e.prototype._refreshFacebookTokenImpl=function(){var e=null;if(Object(l.a)().isBrowser&&(e=window.FB),!e){var t="no fb sdk available";return I.debug(t),Promise.reject(new w(t))}return new Promise((function(t,n){e.getLoginStatus((function(e){if(e&&e.authResponse){var r=e.authResponse,o=r.accessToken,c=1e3*r.expiresIn+(new Date).getTime();if(!o){l="the jwtToken is undefined";I.debug(l),n(new w(l))}t({token:o,expires_at:c})}else{var l="no response from facebook when refreshing the jwt token";I.debug(l),n(new w(l))}}),{scope:"public_profile,email"})}))},e}(),D=new M,N=new j,L=n(639),B={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},U={partitions:[B,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},F=function(e){var s="function"==typeof Symbol&&Symbol.iterator,t=s&&e[s],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},z=function(e){var t,n,r=U.partitions;try{for(var o=F(r),c=o.next();!c.done;c=o.next()){var l=c.value,h=l.regions,d=l.outputs,f=l.regionRegex,m=new RegExp(f);if(h.includes(e)||m.test(e))return d.dnsSuffix}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return B.outputs.dnsSuffix},$=function(){return $=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},$.apply(this,arguments)},H=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},G=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},V=function(e,t){if(null==t?void 0:t.aborted)return Promise.resolve();var n,r,o=new Promise((function(t){r=t,n=setTimeout(t,e)}));return null==t||t.addEventListener("abort",(function e(o){clearTimeout(n),null==t||t.removeEventListener("abort",e),r()})),o},W=function(e,t){var n;"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata=$($({},null!==(n=e.$metadata)&&void 0!==n?n:{}),{attempts:t}))},K=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},Y=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},X=function(e,t){return function(n,r){for(var o={},c=function(t){return e(t,r)},i=t.length-1;i>=0;i--){c=(0,t[i])(r)(c,o)}return c(n)}},J=(n(987),function(e){var t;return function(){return t||(t=e()),t}}),Z=function(){return Z=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},Z.apply(this,arguments)},Q=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},ee=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},te=function(e){return!["HEAD","GET","DELETE"].includes(e.toUpperCase())},ne=X((function(e,t){var n=e.url,r=e.method,o=e.headers,body=e.body,c=t.abortSignal;return Q(void 0,void 0,void 0,(function(){var e,t,l,h,d,f,m;return ee(this,(function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),[4,fetch(n,{method:r,headers:o,body:te(r)?body:void 0,signal:c})];case 1:return e=v.sent(),[3,3];case 2:if((t=v.sent())instanceof TypeError)throw new Error("Network error");throw t;case 3:return l={},null===(f=e.headers)||void 0===f||f.forEach((function(e,t){l[t.toLowerCase()]=e})),h={statusCode:e.status,headers:l,body:null},d=Object.assign(null!==(m=e.body)&&void 0!==m?m:{},{text:J((function(){return e.text()})),blob:J((function(){return e.blob()})),json:J((function(){return e.json()}))}),[2,Z(Z({},h),{body:d})]}}))}))}),[function(e){var t=e.userAgentHeader,n=void 0===t?"x-amz-user-agent":t,r=e.userAgentValue,o=void 0===r?"":r;return function(e){return function(t){return K(this,void 0,void 0,(function(){var r;return Y(this,(function(c){switch(c.label){case 0:return 0!==o.trim().length?[3,2]:[4,e(t)];case 1:return[2,c.sent()];case 2:return r=n.toLowerCase(),t.headers[r]=t.headers[r]?"".concat(t.headers[r]," ").concat(o):o,[4,e(t)];case 3:return[2,c.sent()]}}))}))}}},function(e){var t=e.maxAttempts,n=void 0===t?3:t,r=e.retryDecider,o=e.computeDelay,c=e.abortSignal;if(n<1)throw new Error("maxAttempts must be greater than 0");return function(e,t){return function(l){var h;return H(this,void 0,void 0,(function(){var d,f,m,v,y,w;return G(this,(function(S){switch(S.label){case 0:f=null!==(h=t.attemptsCount)&&void 0!==h?h:0,v=function(){if(m)return W(m,f),m;throw W(d,f),d},S.label=1;case 1:if((null==c?void 0:c.aborted)||!(f<n))return[3,11];S.label=2;case 2:return S.trys.push([2,4,,5]),[4,e(l)];case 3:return m=S.sent(),d=void 0,[3,5];case 4:return y=S.sent(),d=y,m=void 0,[3,5];case 5:return f=t.attemptsCount>f?t.attemptsCount:f+1,t.attemptsCount=f,[4,r(m,d)];case 6:return S.sent()?!(null==c?void 0:c.aborted)&&f<n?(w=o(f),[4,V(w,c)]):[3,8]:[3,9];case 7:S.sent(),S.label=8;case 8:return[3,1];case 9:return[2,v()];case 10:return[3,1];case 11:if(null==c?void 0:c.aborted)throw new Error("Request aborted.");return[2,v()]}}))}))}}}]),re=function(){return re=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},re.apply(this,arguments)},ie=function(e){var t,n,r=e.headers,o=e.statusCode;return re(re({},oe(e)?e.$metadata:{}),{httpStatusCode:o,requestId:null!==(n=null!==(t=r["x-amzn-requestid"])&&void 0!==t?t:r["x-amzn-request-id"])&&void 0!==n?n:r["x-amz-request-id"],extendedRequestId:r["x-amz-id-2"],cfId:r["x-amz-cf-id"]})},oe=function(e){return"object"==typeof(null==e?void 0:e.$metadata)},ae=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},se=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},ce=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},ue=function(e){return ae(void 0,void 0,void 0,(function(){var body,code,t,n,r,o,c,l,h;return se(this,(function(d){switch(d.label){case 0:return!e||e.statusCode<300?[2]:[4,le(e)];case 1:return body=d.sent(),code=function(e){var t=ce(e.toString().split(/[\,\:]+/),1)[0];return t.includes("#")?t.split("#")[1]:t}(null!==(c=null!==(o=null!==(r=e.headers["x-amzn-errortype"])&&void 0!==r?r:body.code)&&void 0!==o?o:body.__type)&&void 0!==c?c:"UnknownError"),t=null!==(h=null!==(l=body.message)&&void 0!==l?l:body.Message)&&void 0!==h?h:"Unknown error",n=new Error(t),[2,Object.assign(n,{name:code,$metadata:ie(e)})]}}))}))},le=function(e){return ae(void 0,void 0,void 0,(function(){var output;return se(this,(function(t){switch(t.label){case 0:if(!e.body)throw new Error("Missing response payload");return[4,e.body.json()];case 1:return output=t.sent(),[2,Object.assign(output,{$metadata:ie(e)})]}}))}))},he=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],de=function(e){return he.includes(e)},fe=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},pe=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},me=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],ge=["TimeoutError","RequestTimeout","RequestTimeoutException"],ve=function(e,t){return 429===e||me.includes(t)},be=function(e){return"Network error"===(null==e?void 0:e.name)},ye=function(e,t){return[500,502,503,504].includes(e)||ge.includes(t)},we=3e5,Se=n(669),_e=n(385),Ce=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},Oe=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},Ae=X(ne,[function(){return function(e,t){return function(t){return Ce(this,void 0,void 0,(function(){return Oe(this,(function(n){return t.headers["cache-control"]="no-store",[2,e(t)]}))}))}}}]),Te={service:"cognito-identity",endpointResolver:function(e){var t=e.region;return{url:new URL("https://cognito-identity.".concat(t,".").concat(z(t)))}},retryDecider:(C=ue,function(e,t){return fe(void 0,void 0,void 0,(function(){var n,r,o,c;return pe(this,(function(l){switch(l.label){case 0:return null==t?[3,1]:(r=t,[3,3]);case 1:return[4,C(e)];case 2:r=l.sent(),l.label=3;case 3:return n=(null!==(c=r)&&void 0!==c?c:{}).name,o=null==e?void 0:e.statusCode,[2,be(t)||ve(o,n)||de(n)||ye(o,n)]}}))}))}),computeDelay:function(e){var t=_(we)(e);return!1===t?we:t},userAgentValue:Object(Se.b)()};Object(_e.b)((function(){Te.userAgentValue=Object(Se.b)()}));var Ee=function(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.".concat(e)}},Pe=function(e,t,body){return{headers:t,url:e.url,body:body,method:"POST"}},Me=function(){return Me=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},Me.apply(this,arguments)},xe=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},ke=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},Ie=function(e,t,n,r){return function(o,input){return xe(void 0,void 0,void 0,(function(){var c,l,h,d;return ke(this,(function(f){switch(f.label){case 0:return[4,(c=Me(Me({},r),o)).endpointResolver(c,input)];case 1:return l=f.sent(),[4,t(input,l)];case 2:return h=f.sent(),[4,e(h,Me({},c))];case 3:return d=f.sent(),[4,n(d)];case 4:return[2,f.sent()]}}))}))}},Re=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},je=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},De=Ie(Ae,(function(input,e){var t=Ee("GetId"),body=JSON.stringify(input);return Pe(e,t,body)}),(function(e){return Re(void 0,void 0,void 0,(function(){return je(this,(function(t){switch(t.label){case 0:return e.statusCode>=300?[4,ue(e)]:[3,2];case 1:throw t.sent();case 2:return[4,le(e)];case 3:return[2,{IdentityId:t.sent().IdentityId,$metadata:ie(e)}]}}))}))}),Te),Ne=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},Le=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},Be=function(output){return void 0===output&&(output={}),{AccessKeyId:output.AccessKeyId,SecretKey:output.SecretKey,SessionToken:output.SessionToken,Expiration:new Date(1e3*output.Expiration)}},Ue=Ie(Ae,(function(input,e){var t=Ee("GetCredentialsForIdentity"),body=JSON.stringify(input);return Pe(e,t,body)}),(function(e){return Ne(void 0,void 0,void 0,(function(){var body;return Le(this,(function(t){switch(t.label){case 0:return e.statusCode>=300?[4,ue(e)]:[3,2];case 1:throw t.sent();case 2:return[4,le(e)];case 3:return[2,{IdentityId:(body=t.sent()).IdentityId,Credentials:Be(body.Credentials),$metadata:ie(e)}]}}))}))}),Te),Fe=n(1025),ze=n(638),$e=function(){return $e=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},$e.apply(this,arguments)},He=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{d(r.next(e))}catch(e){c(e)}}function h(e){try{d(r.throw(e))}catch(e){c(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,h)}d((r=r.apply(e,t||[])).next())}))},Ge=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}},Ve=new o.a("Credentials"),We="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",qe=new(function(){function e(e){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(e),this._refreshHandlers.google=D.refreshGoogleToken,this._refreshHandlers.facebook=N.refreshFacebookToken}return e.prototype.getModuleName=function(){return"Credentials"},e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(e){if(!e)return this._config||{};this._config=Object.assign({},this._config,e);var t,data,n,r=this._config.refreshHandlers;return r&&(this._refreshHandlers=$e($e({},this._refreshHandlers),r)),this._storage=this._config.storage,this._storage||(this._storage=(new c.a).getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),t="credentials_configured",data=null,n="Credentials has been configured successfully",ze.a.dispatch("core",{event:t,data:data,message:n},"Credentials",We),this._config},e.prototype.get=function(){return Ve.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(e){return"".concat("CognitoIdentityId-").concat(e)},e.prototype._pickupCredentials=function(){return Ve.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?Ve.debug("getting old cred promise"):(Ve.debug("getting new cred promise"),this._gettingCredPromise=Object(l.b)(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){return He(this,void 0,void 0,(function(){var e,t,n,r,o,c,l;return Ge(this,(function(h){switch(h.label){case 0:if(Ve.debug("checking if credentials exists and not expired"),(e=this._credentials)&&!this._isExpired(e)&&!this._isPastTTL())return Ve.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(e)];if(Ve.debug("need to get a new credential or refresh the existing one"),t=this.Auth,!(n=void 0===t?L.a.Auth:t)||"function"!=typeof n.currentUserCredentials)return[2,this._setCredentialsForGuest()];if(this._isExpired(e)||!this._isPastTTL())return[3,6];Ve.debug("ttl has passed but token is not yet expired"),h.label=1;case 1:return h.trys.push([1,5,,6]),[4,n.currentUserPoolUser()];case 2:return r=h.sent(),[4,n.currentSession()];case 3:return o=h.sent(),c=o.refreshToken,[4,new Promise((function(e,t){r.refreshSession(c,(function(n,data){return n?t(n):e(data)}))}))];case 4:return h.sent(),[3,6];case 5:return l=h.sent(),Ve.debug("Error attempting to refreshing the session",l),[3,6];case 6:return[2,n.currentUserCredentials()]}}))}))},e.prototype.refreshFederatedToken=function(e){Ve.debug("Getting federated credentials");var t=e.provider,n=e.user,r=e.token,o=e.identity_id,c=e.expires_at;c=1970===new Date(c).getFullYear()?1e3*c:c;var l=this;return Ve.debug("checking if federated jwt token expired"),c>(new Date).getTime()?(Ve.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:c})):l._refreshHandlers[t]&&"function"==typeof l._refreshHandlers[t]?(Ve.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:l._refreshHandlers[t],provider:t,user:n})):(Ve.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user;return O(n,[],1e4).then((function(data){return Ve.debug("refresh federated token sucessfully",data),t._setCredentialsFromFederation({provider:r,token:data.token,user:o,identity_id:data.identity_id,expires_at:data.expires_at})})).catch((function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),Ve.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return Ve.debug("no credentials for expiration check"),!0;Ve.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){var e;return He(this,void 0,void 0,(function(){var t,n,r,o,c,l,h,d,f,m,v=this;return Ge(this,(function(y){switch(y.label){case 0:return Ve.debug("setting credentials for guest"),(null===(e=this._config)||void 0===e?void 0:e.identityPoolId)||(this._config=Object.assign({},this._config,Object(Fe.a)(this._config||{}).Auth)),t=this._config,n=t.identityPoolId,r=t.region,o=t.mandatorySignIn,c=t.identityPoolRegion,o?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:n?c||r?(h=this,[4,this._getGuestIdentityId()]):(Ve.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(Ve.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return l=h._identityId=y.sent(),d={region:null!=c?c:r},f=function(){return He(v,void 0,void 0,(function(){var e,t;return Ge(this,(function(r){switch(r.label){case 0:return l?[3,2]:[4,De(d,{IdentityPoolId:n})];case 1:e=r.sent().IdentityId,this._identityId=e,r.label=2;case 2:return[4,Ue(d,{IdentityId:this._identityId})];case 3:return t=r.sent().Credentials,[2,{identityId:this._identityId,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}}))}))},m=f().catch((function(e){return He(v,void 0,void 0,(function(){return Ge(this,(function(t){throw e}))}))})),[2,this._loadCredentials(m,"guest",!1,null).then((function(e){return e})).catch((function(e){return He(v,void 0,void 0,(function(){var t,r=this;return Ge(this,(function(o){switch(o.label){case 0:return"ResourceNotFoundException"!==e.name||e.message!=="Identity '".concat(l,"' not found.")?[3,2]:(Ve.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return o.sent(),t=function(){return He(r,void 0,void 0,(function(){var e,t;return Ge(this,(function(r){switch(r.label){case 0:return[4,De(d,{IdentityPoolId:n})];case 1:return e=r.sent().IdentityId,this._identityId=e,[4,Ue(d,{IdentityId:e})];case 2:return t=r.sent().Credentials,[2,{identityId:e,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}}))}))},m=t().catch((function(e){return He(r,void 0,void 0,(function(){return Ge(this,(function(t){throw e}))}))})),[2,this._loadCredentials(m,"guest",!1,null)];case 2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=this,n=e.provider,r=e.token,o=e.identity_id,c={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[n]||n;if(!c)return Promise.reject("You must specify a federated provider");var l={};l[c]=r;var h=this._config,d=h.identityPoolId,f=h.region,m=h.identityPoolRegion;if(!d)return Ve.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!m&&!f)return Ve.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var v={region:null!=m?m:f},y=He(t,void 0,void 0,(function(){var e,t;return Ge(this,(function(n){switch(n.label){case 0:return o?[3,2]:[4,De(v,{IdentityPoolId:d,Logins:l})];case 1:e=n.sent().IdentityId,o=e,n.label=2;case 2:return[4,Ue(v,{IdentityId:o,Logins:l})];case 3:return t=n.sent().Credentials,[2,{identityId:o,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}}))})).catch((function(e){return He(t,void 0,void 0,(function(){return Ge(this,(function(t){throw e}))}))}));return this._loadCredentials(y,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;Ve.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,c=r.userPoolId,l=r.identityPoolId,h=r.identityPoolRegion;if(!l)return Ve.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!h&&!o)return Ve.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var d={};d["cognito-idp."+o+".amazonaws.com/"+c]=n;var f={region:null!=h?h:o},m=He(t,void 0,void 0,(function(){var e,t,n,r,o,c,h,m,v,y;return Ge(this,(function(w){switch(w.label){case 0:return[4,this._getGuestIdentityId()];case 1:return(e=w.sent())?[3,3]:[4,De(f,{IdentityPoolId:l,Logins:d})];case 2:n=w.sent().IdentityId,t=n,w.label=3;case 3:return[4,Ue(f,{IdentityId:e||t,Logins:d})];case 4:return r=w.sent(),o=r.Credentials,c=o.AccessKeyId,h=o.Expiration,m=o.SecretKey,v=o.SessionToken,y=r.IdentityId,this._identityId=y,e?(Ve.debug("The guest identity ".concat(e," has been successfully linked to the logins")),e===y&&Ve.debug("The guest identity ".concat(e," has become the primary identity")),[4,this._removeGuestIdentityId()]):[3,6];case 5:w.sent(),w.label=6;case 6:return[2,{accessKeyId:c,secretAccessKey:m,sessionToken:v,expiration:h,identityId:y}]}}))})).catch((function(e){return He(t,void 0,void 0,(function(){return Ge(this,(function(t){throw e}))}))}));return this._loadCredentials(m,"userPool",!0,null)},e.prototype._loadCredentials=function(e,source,t,n){var r=this,o=this;return new Promise((function(c,l){e.then((function(e){return He(r,void 0,void 0,(function(){var r,l,h,d,f;return Ge(this,(function(m){switch(m.label){case 0:if(Ve.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=t,o._credentials_source=source,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===source){r=Object.assign({id:this._credentials.identityId},n.user),l=n.provider,h=n.token,d=n.expires_at,f=n.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:l,token:h,user:r,expires_at:d,identity_id:f}))}catch(e){Ve.debug("Failed to put federated info into auth storage",e)}}return"guest"!==source?[3,2]:[4,this._setGuestIdentityId(e.identityId)];case 1:m.sent(),m.label=2;case 2:return c(o._credentials),[2]}}))}))})).catch((function(t){if(t)return Ve.debug("Failed to load credentials",e),Ve.debug("Error loading credentials",t),void l(t)}))}))},e.prototype.set=function(e,source){return"session"===source?this._setCredentialsFromSession(e):"federation"===source?this._setCredentialsFromFederation(e):"guest"===source?this._setCredentialsForGuest():(Ve.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return He(this,void 0,void 0,(function(){return Ge(this,(function(e){return this._credentials=null,this._credentials_source=null,Ve.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return He(this,void 0,void 0,(function(){var e,t;return Ge(this,(function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),Ve.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return He(this,void 0,void 0,(function(){var t,n;return Ge(this,(function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),Ve.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return He(this,void 0,void 0,(function(){var e;return Ge(this,(function(t){return e=this._config.identityPoolId,Ve.debug("removing ".concat(this._getCognitoIdentityIdStorageKey(e)," from storage")),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);L.a.register(qe)},function(e,t,n){"use strict";var r=n(21),o=n(35),c=n(0),l=(n(12),n(7),n(6),n(43),n(105),n(66),n(22),n(226),n(129),n(24),n(28),n(10),n(11),n(9),n(5),n(33),n(98),n(8),n(1428),n(14)),h=(n(54),n(34),n(207),n(4)),d=n(1);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var v=d.a.extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},sortBy:{type:[String,Array]},sortDesc:{type:[Boolean,Array]},customSort:{type:Function,default:h.F},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:function(){return[]}},groupDesc:{type:[Boolean,Array],default:function(){return[]}},customGroup:{type:Function,default:h.w},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:h.E},serverItemsLength:{type:Number,default:-1}},data:function(){var e={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:Object(h.I)(this.sortBy),sortDesc:Object(h.I)(this.sortDesc),groupBy:Object(h.I)(this.groupBy),groupDesc:Object(h.I)(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(e=Object.assign(e,this.options));var t,n,r=e,o=r.sortBy,c=r.sortDesc,d=r.groupBy,f=r.groupDesc,m=o.length-c.length,v=d.length-f.length;m>0&&(t=e.sortDesc).push.apply(t,Object(l.a)(Object(h.n)(m,!1)));v>0&&(n=e.groupDesc).push.apply(n,Object(l.a)(Object(h.n)(v,!1)));return{internalOptions:e}},computed:{itemsLength:function(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount:function(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart:function(){return-1!==this.internalOptions.itemsPerPage&&this.items.length?(this.internalOptions.page-1)*this.internalOptions.itemsPerPage:0},pageStop:function(){return-1===this.internalOptions.itemsPerPage?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped:function(){return!!this.internalOptions.groupBy.length},pagination:function(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems:function(){var e=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(e=this.customFilter(e,this.search)),e},computedItems:function(){var e=this.filteredItems.slice();return(!this.disableSort||this.internalOptions.groupBy.length)&&this.serverItemsLength<=0&&(e=this.sortItems(e)),!this.disablePagination&&this.serverItemsLength<=0&&(e=this.paginateItems(e)),e},groupedItems:function(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps:function(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions:function(){return m({},this.options)}},watch:{computedOptions:{handler:function(e,t){Object(h.l)(e,t)||this.updateOptions(e)},deep:!0,immediate:!0},internalOptions:{handler:function(e,t){Object(h.l)(e,t)||this.$emit("update:options",e)},deep:!0,immediate:!0},page:function(e){this.updateOptions({page:e})},"internalOptions.page":function(e){this.$emit("update:page",e)},itemsPerPage:function(e){this.updateOptions({itemsPerPage:e})},"internalOptions.itemsPerPage":function(e){this.$emit("update:items-per-page",e)},sortBy:function(e){this.updateOptions({sortBy:Object(h.I)(e)})},"internalOptions.sortBy":function(e,t){!Object(h.l)(e,t)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?e:e[0])},sortDesc:function(e){this.updateOptions({sortDesc:Object(h.I)(e)})},"internalOptions.sortDesc":function(e,t){!Object(h.l)(e,t)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?e:e[0])},groupBy:function(e){this.updateOptions({groupBy:Object(h.I)(e)})},"internalOptions.groupBy":function(e,t){!Object(h.l)(e,t)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?e:e[0])},groupDesc:function(e){this.updateOptions({groupDesc:Object(h.I)(e)})},"internalOptions.groupDesc":function(e,t){!Object(h.l)(e,t)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?e:e[0])},multiSort:function(e){this.updateOptions({multiSort:e})},"internalOptions.multiSort":function(e){this.$emit("update:multi-sort",e)},mustSort:function(e){this.updateOptions({mustSort:e})},"internalOptions.mustSort":function(e){this.$emit("update:must-sort",e)},pageCount:{handler:function(e){this.$emit("page-count",e)},immediate:!0},computedItems:{handler:function(e){this.$emit("current-items",e)},immediate:!0},pagination:{handler:function(e,t){Object(h.l)(e,t)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle:function(e,t,n,r,o,c){var l=t.slice(),desc=n.slice(),d=l.findIndex((function(t){return t===e}));return d<0?(c||(l=[],desc=[]),l.push(e),desc.push(!1)):d>=0&&!desc[d]?desc[d]=!0:o?desc[d]=!1:(l.splice(d,1),desc.splice(d,1)),Object(h.l)(l,t)&&Object(h.l)(desc,n)||(r=1),{by:l,desc:desc,page:r}},group:function(e){var t=this.toggle(e,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1),n=t.by,r=t.desc,o=t.page;this.updateOptions({groupBy:n,groupDesc:r,page:o})},sort:function(e){if(Array.isArray(e))return this.sortArray(e);var t=this.toggle(e,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort),n=t.by,r=t.desc,o=t.page;this.updateOptions({sortBy:n,sortDesc:r,page:o})},sortArray:function(e){var t=this,n=e.map((function(s){var i=t.internalOptions.sortBy.findIndex((function(e){return e===s}));return i>-1&&t.internalOptions.sortDesc[i]}));this.updateOptions({sortBy:e,sortDesc:n})},updateOptions:function(e){this.internalOptions=m(m(m({},this.internalOptions),e),{},{page:this.serverItemsLength<0?Math.max(1,Math.min(e.page||this.internalOptions.page,this.pageCount)):e.page||this.internalOptions.page})},sortItems:function(e){var t=[],n=[];return this.disableSort||(t=this.internalOptions.sortBy,n=this.internalOptions.sortDesc),this.internalOptions.groupBy.length&&(t=[].concat(Object(l.a)(this.internalOptions.groupBy),Object(l.a)(t)),n=[].concat(Object(l.a)(this.internalOptions.groupDesc),Object(l.a)(n))),this.customSort(e,t,n,this.locale)},groupItems:function(e){return this.customGroup(e,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems:function(e){return-1===this.serverItemsLength&&e.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,Math.ceil(e.length/this.internalOptions.itemsPerPage))||1),e.slice(this.pageStart,this.pageStop)}},render:function(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}}),y=(n(39),n(293),n(51),n(50),n(1429),n(91)),w=n(23),S=n(150),_=d.a.extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:function(){return[5,10,15,-1]}},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon:function(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions:function(){var e=this;return this.itemsPerPageOptions.map((function(option){return"object"===Object(o.a)(option)?option:e.genDataItemsPerPageOption(option)}))}},methods:{updateOptions:function(e){this.$emit("update:options",Object.assign({},this.options,e))},onFirstPage:function(){this.updateOptions({page:1})},onPreviousPage:function(){this.updateOptions({page:this.options.page-1})},onNextPage:function(){this.updateOptions({page:this.options.page+1})},onLastPage:function(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage:function(e){this.updateOptions({itemsPerPage:e,page:1})},genDataItemsPerPageOption:function(option){return{text:-1===option?this.$vuetify.lang.t(this.itemsPerPageAllText):String(option),value:option}},genItemsPerPageSelect:function(){var e=this.options.itemsPerPage,t=this.computedDataItemsPerPageOptions;return t.length<=1?null:(t.find((function(t){return t.value===e}))||(e=t[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(y.a,{attrs:{"aria-label":this.$vuetify.lang.t(this.itemsPerPageText)},props:{disabled:this.disableItemsPerPage,items:t,value:e,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo:function(){var e=["–"],t=this.pagination.itemsLength,n=this.pagination.pageStart,r=this.pagination.pageStop;return this.pagination.itemsLength&&this.pagination.itemsPerPage?(n=this.pagination.pageStart+1,r=t<this.pagination.pageStop||this.pagination.pageStop<0?t:this.pagination.pageStop,e=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:n,pageStop:r,itemsLength:t})]:[this.$vuetify.lang.t(this.pageText,n,r,t)]):this.$scopedSlots["page-text"]&&(e=[this.$scopedSlots["page-text"]({pageStart:n,pageStop:r,itemsLength:t})]),this.$createElement("div",{class:"v-data-footer__pagination"},e)},genIcon:function(e,t,label,n){return this.$createElement(S.a,{props:{disabled:t||this.disablePagination,icon:!0,text:!0},on:{click:e},attrs:{"aria-label":label}},[this.$createElement(w.a,n)])},genIcons:function(){var e=[],t=[];return e.push(this.genIcon(this.onPreviousPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),t.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(e.unshift(this.genIcon(this.onFirstPage,1===this.options.page,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),t.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||-1===this.options.itemsPerPage,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},e),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},t)]}},render:function(){return this.$createElement("div",{staticClass:"v-data-footer"},[Object(h.t)(this,"prepend"),this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),C=n(285),O=n(30),A=n(13),T=n(26);function E(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function P(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?E(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):E(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var M=Object(A.a)(C.a,O.a).extend({name:"v-data-iterator",props:P(P({},v.options.props),{},{itemKey:{type:String,default:"id"},value:{type:Array,default:function(){return[]}},singleSelect:Boolean,expanded:{type:Array,default:function(){return[]}},mobileBreakpoint:P(P({},C.a.options.props.mobileBreakpoint),{},{default:600}),singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}}),data:function(){return{selection:{},expansion:{},internalCurrentItems:[],shiftKeyDown:!1,lastEntry:-1}},computed:{everyItem:function(){var e=this;return!!this.selectableItems.length&&this.selectableItems.every((function(i){return e.isSelected(i)}))},someItems:function(){var e=this;return this.selectableItems.some((function(i){return e.isSelected(i)}))},sanitizedFooterProps:function(){return Object(h.e)(this.footerProps)},selectableItems:function(){var e=this;return this.internalCurrentItems.filter((function(t){return e.isSelectable(t)}))}},watch:{value:{handler:function(e){var t=this;this.selection=e.reduce((function(e,n){return e[Object(h.q)(n,t.itemKey)]=n,e}),{})},immediate:!0},selection:function(e,t){Object(h.l)(Object.keys(e),Object.keys(t))||this.$emit("input",Object.values(e))},expanded:{handler:function(e){var t=this;this.expansion=e.reduce((function(e,n){return e[Object(h.q)(n,t.itemKey)]=!0,e}),{})},immediate:!0},expansion:function(e,t){var n=this;if(!Object(h.l)(e,t)){var r=Object.keys(e).filter((function(t){return e[t]})),o=r.length?this.items.filter((function(i){return r.includes(String(Object(h.q)(i,n.itemKey)))})):[];this.$emit("update:expanded",o)}}},created:function(){var e=this;[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]].forEach((function(t){var n=Object(r.a)(t,2),o=n[0],c=n[1];e.$attrs.hasOwnProperty(o)&&Object(T.a)(o,c,e)}));["expand","content-class","content-props","content-tag"].forEach((function(t){e.$attrs.hasOwnProperty(t)&&Object(T.e)(t)}))},mounted:function(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)},beforeDestroy:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)},methods:{onKeyDown:function(e){this.shiftKeyDown=e.keyCode===h.y.shift||e.shiftKey},onKeyUp:function(e){e.keyCode!==h.y.shift&&e.shiftKey||(this.shiftKeyDown=!1)},toggleSelectAll:function(e){for(var t=Object.assign({},this.selection),i=0;i<this.selectableItems.length;i++){var n=this.selectableItems[i];if(this.isSelectable(n)){var r=Object(h.q)(n,this.itemKey);e?t[r]=n:delete t[r]}}this.selection=t,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:e})},isSelectable:function(e){return!1!==Object(h.q)(e,this.selectableKey)},isSelected:function(e){return!!this.selection[Object(h.q)(e,this.itemKey)]||!1},select:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.isSelectable(e)){var o=this.singleSelect?{}:Object.assign({},this.selection),c=Object(h.q)(e,this.itemKey);n?o[c]=e:delete o[c];var l=this.selectableItems.findIndex((function(e){return Object(h.q)(e,t.itemKey)===c}));if(-1===this.lastEntry)this.lastEntry=l;else if(this.shiftKeyDown&&!this.singleSelect&&r){var d=Object(h.q)(this.selectableItems[this.lastEntry],this.itemKey),f=Object.keys(this.selection).includes(String(d));this.multipleSelect(f,r,o,l)}if(this.lastEntry=l,this.singleSelect&&r){var m=Object.keys(this.selection),v=m.length&&Object(h.q)(this.selection[m[0]],this.itemKey);v&&v!==c&&this.$emit("item-selected",{item:this.selection[v],value:!1})}this.selection=o,r&&this.$emit("item-selected",{item:e,value:n})}},multipleSelect:function(){for(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=arguments.length>3?arguments[3]:void 0,o=r<this.lastEntry?r:this.lastEntry,c=r<this.lastEntry?this.lastEntry:r,i=o;i<=c;i++){var l=this.selectableItems[i],d=Object(h.q)(l,this.itemKey);e?n[d]=l:delete n[d],t&&this.$emit("item-selected",{currentItem:l,value:e})}},isExpanded:function(e){return this.expansion[Object(h.q)(e,this.itemKey)]||!1},expand:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.singleExpand?{}:Object.assign({},this.expansion),r=Object(h.q)(e,this.itemKey);t?n[r]=!0:delete n[r],this.expansion=n,this.$emit("item-expanded",{item:e,value:t})},createItemProps:function(e,t){var n=this;return{item:e,index:t,select:function(t){return n.select(e,t)},isSelected:this.isSelected(e),expand:function(t){return n.expand(e,t)},isExpanded:this.isExpanded(e),isMobile:this.isMobile}},genEmptyWrapper:function(content){return this.$createElement("div",content)},genEmpty:function(e,t){if(0===e&&this.loading){var n=this.$slots.loading||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(n)}if(0===e){var r=this.$slots["no-data"]||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(r)}if(0===t){var o=this.$slots["no-results"]||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(o)}return null},genItems:function(e){var t=this,n=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return n?[n]:this.$scopedSlots.default?this.$scopedSlots.default(P(P({},e),{},{isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,isMobile:this.isMobile,expand:this.expand})):this.$scopedSlots.item?e.items.map((function(e,n){return t.$scopedSlots.item(t.createItemProps(e,n))})):[]},genFooter:function(e){if(this.hideDefaultFooter)return null;var data={props:P(P({},this.sanitizedFooterProps),{},{options:e.options,pagination:e.pagination}),on:{"update:options":function(t){return e.updateOptions(t)}}},t=Object(h.r)("footer.",this.$scopedSlots);return this.$createElement(_,P({scopedSlots:t},data))},genDefaultScopedSlot:function(e){var t=P(P({},e),{},{someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll});return this.$createElement("div",{staticClass:"v-data-iterator"},[Object(h.t)(this,"header",t,!0),this.genItems(e),this.genFooter(e),Object(h.t)(this,"footer",t,!0)])}},render:function(){var e=this;return this.$createElement(v,{props:this.$props,on:{"update:options":function(t,n){return!Object(h.l)(t,n)&&e.$emit("update:options",t)},"update:page":function(t){return e.$emit("update:page",t)},"update:items-per-page":function(t){return e.$emit("update:items-per-page",t)},"update:sort-by":function(t){return e.$emit("update:sort-by",t)},"update:sort-desc":function(t){return e.$emit("update:sort-desc",t)},"update:group-by":function(t){return e.$emit("update:group-by",t)},"update:group-desc":function(t){return e.$emit("update:group-desc",t)},pagination:function(t,n){return!Object(h.l)(t,n)&&e.$emit("pagination",t)},"current-items":function(t){e.internalCurrentItems=t,e.$emit("current-items",t)},"page-count":function(t){return e.$emit("page-count",t)}},scopedSlots:{default:this.genDefaultScopedSlot}})}}),x=(n(1436),n(149)),k=n(369),I=n(90);function R(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var j=Object(A.a)().extend({directives:{ripple:I.a},props:{headers:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1}}},checkboxColor:String,sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll:function(){var e,t=this,data={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems,color:null!==(e=this.checkboxColor)&&void 0!==e?e:""},on:{input:function(e){return t.$emit("toggle-select-all",e)}}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](data):this.$createElement(k.a,function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?R(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):R(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({staticClass:"v-data-table__checkbox"},data))},genSortIcon:function(){return this.$createElement(w.a,{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}}),D=Object(A.a)(j).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip:function(e){var t=this,n=[e.item.text],r=this.options.sortBy.findIndex((function(t){return t===e.item.value})),o=r>=0,c=this.options.sortDesc[r];return n.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:o,asc:o&&!c,desc:o&&c}},[this.genSortIcon()])),this.$createElement(x.a,{staticClass:"sortable",on:{click:function(n){n.stopPropagation(),t.$emit("sort",e.item.value)}}},n)},genSortSelect:function(e){var t=this;return this.$createElement(y.a,{props:{label:this.$vuetify.lang.t(this.sortByText),items:e,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:function(e){return t.$emit("sort",e)}},scopedSlots:{selection:function(e){return t.genSortChip(e)}}})}},render:function(e){var t=[],header=this.headers.find((function(e){return"data-table-select"===e.value}));header&&!this.singleSelect&&t.push(this.$createElement("div",{class:["v-data-table-header-mobile__select"].concat(Object(l.a)(Object(h.I)(header.class))),attrs:{width:header.width}},[this.genSelectAll()]));var n=this.headers.filter((function(e){return!1!==e.sortable&&"data-table-select"!==e.value})).map((function(e){return{text:e.text,value:e.value}}));!this.disableSort&&n.length&&t.push(this.genSortSelect(n));var th=t.length?e("th",[e("div",{staticClass:"v-data-table-header-mobile__wrapper"},t)]):void 0,tr=e("tr",[th]);return e("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[tr])}}),N=(n(122),Object(A.a)(j).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle:function(header){var e=this;return this.$createElement("span",{on:{click:function(t){t.stopPropagation(),e.$emit("group",header.value)}}},["group"])},getAria:function(e,t){var n=this,r=function(e){return n.$vuetify.lang.t("$vuetify.dataTable.ariaLabel.".concat(e))},o="none",c=[r("sortNone"),r("activateAscending")];return e?(t?(o="descending",c=[r("sortDescending"),r(this.options.mustSort?"activateAscending":"activateNone")]):(o="ascending",c=[r("sortAscending"),r("activateDescending")]),{ariaSort:o,ariaLabel:c.join(" ")}):{ariaSort:o,ariaLabel:c.join(" ")}},genHeader:function(header){var e=this,data={attrs:{role:"columnheader",scope:"col","aria-label":header.text||""},style:{width:Object(h.i)(header.width),minWidth:Object(h.i)(header.width)},class:["text-".concat(header.align||"start")].concat(Object(l.a)(Object(h.I)(header.class)),[header.divider&&"v-data-table__divider"]),on:{}},t=[];if("data-table-select"===header.value&&!this.singleSelect)return this.$createElement("th",data,[this.genSelectAll()]);if(t.push(this.$scopedSlots.hasOwnProperty(header.value)?this.$scopedSlots[header.value]({header:header}):this.$createElement("span",[header.text])),!this.disableSort&&(header.sortable||!header.hasOwnProperty("sortable"))){data.on.click=function(){return e.$emit("sort",header.value)};var n=this.options.sortBy.findIndex((function(e){return e===header.value})),r=n>=0,o=this.options.sortDesc[n];data.class.push("sortable");var c=this.getAria(r,o),d=c.ariaLabel,f=c.ariaSort;data.attrs["aria-label"]+="".concat(header.text?": ":"").concat(d),data.attrs["aria-sort"]=f,r&&(data.class.push("active"),data.class.push(o?"desc":"asc")),"end"===header.align?t.unshift(this.genSortIcon()):t.push(this.genSortIcon()),this.options.multiSort&&r&&t.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(n+1)]))}return this.showGroupBy&&!1!==header.groupable&&t.push(this.genGroupByToggle(header)),this.$createElement("th",data,t)}},render:function(){var e=this;return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map((function(header){return e.genHeader(header)})))])}}));var L=n(75);function B(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function U(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?B(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):B(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var F=d.a.extend({name:"v-data-table-header",functional:!0,props:U(U({},j.options.props),{},{mobile:Boolean}),render:function(e,t){var n=t.props,data=t.data,r=t.slots;!function(data){if(data.model&&data.on&&data.on.input)if(Array.isArray(data.on.input)){var i=data.on.input.indexOf(data.model.callback);i>-1&&data.on.input.splice(i,1)}else delete data.on.input}(data);var o=function(e,t){var n=[];for(var slot in e)e.hasOwnProperty(slot)&&n.push(t("template",{slot:slot},e[slot]));return n}(r(),e);return data=Object(L.a)(data,{props:n}),n.mobile?e(D,data,o):e(N,data,o)}});var z=d.a.extend({name:"row",functional:!0,props:{headers:Array,index:Number,item:Object,rtl:Boolean},render:function(e,t){var n=t.props,r=t.slots,data=t.data,o=r(),c=n.headers.map((function(header){var t=[],r=Object(h.q)(n.item,header.value),c=header.value,d=data.scopedSlots&&data.scopedSlots.hasOwnProperty(c)&&data.scopedSlots[c],f=o.hasOwnProperty(c)&&o[c];d?t.push.apply(t,Object(l.a)(Object(h.I)(d({item:n.item,isMobile:!1,header:header,index:n.index,value:r})))):f?t.push.apply(t,Object(l.a)(Object(h.I)(f))):t.push(null==r?r:String(r));var slot,m,v="text-".concat(header.align||"start");return 1===(slot=t).length&&["td","th"].includes(null===(m=slot[0])||void 0===m?void 0:m.tag)?t:e("td",{class:[v,header.cellClass,{"v-data-table__divider":header.divider}]},t)}));return e("tr",data,c)}}),$=d.a.extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render:function(e,t){var n=t.slots,r=t.props,o=n(),c=[];return o["column.header"]?c.push(e("tr",{staticClass:r.headerClass},o["column.header"])):o["row.header"]&&c.push.apply(c,Object(l.a)(o["row.header"])),o["row.content"]&&r.value&&c.push.apply(c,Object(l.a)(o["row.content"])),o["column.summary"]?c.push(e("tr",{staticClass:r.summaryClass},o["column.summary"])):o["row.summary"]&&c.push.apply(c,Object(l.a)(o["row.summary"])),c}}),H=n(1009);function G(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function V(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?G(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):G(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var W=d.a.extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,index:Number,item:Object,rtl:Boolean},render:function(e,t){var n=t.props,r=t.slots,data=t.data,o=r(),c=n.headers.map((function(header){var t=[],r=Object(h.q)(n.item,header.value),c=header.value,l=data.scopedSlots&&data.scopedSlots.hasOwnProperty(c)&&data.scopedSlots[c],d=o.hasOwnProperty(c)&&o[c];l?t.push(l({item:n.item,isMobile:!0,header:header,index:n.index,value:r})):d?t.push(d):t.push(null==r?r:String(r));var f=[e("div",{staticClass:"v-data-table__mobile-row__cell"},t)];return"dataTableSelect"===header.value||n.hideDefaultHeader||f.unshift(e("div",{staticClass:"v-data-table__mobile-row__header"},[header.text])),e("td",{class:{"v-data-table__mobile-row":!0}},f)}));return e("tr",V(V({},data),{},{staticClass:"v-data-table__mobile-table-row"}),c)}}),K=n(312);n(151),n(490);function Y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function X(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Y(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var J=d.a.extend({name:"mouse",methods:{getDefaultMouseEventHandlers:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object.keys(this.$listeners).filter((function(t){return t.endsWith(e)})).reduce((function(t,n){return t[n]={event:n.slice(0,-e.length)},t}),{});return this.getMouseEventHandlers(X(X({},r),{},Object(c.a)({},"contextmenu"+e,{event:"contextmenu",prevent:!0,result:!1})),t,n)},getMouseEventHandlers:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={},c=function(c){var l=e[c];if(!n.$listeners[c])return 1;var h=(l.passive?"&":(l.once?"~":"")+(l.capture?"!":""))+l.event,d=function(e){var o,h,d=e;if(void 0===l.button||d.buttons>0&&d.button===l.button){if(l.prevent&&e.preventDefault(),l.stop&&e.stopPropagation(),e&&"touches"in e){var f=null===(o=e.currentTarget)||void 0===o?void 0:o.className.split(" "),m=document.elementsFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY).find((function(e){return e.className.split(" ").some((function(e){return f.includes(e)}))}));if(m&&!(null===(h=e.target)||void 0===h?void 0:h.isSameNode(m)))return void m.dispatchEvent(new TouchEvent(e.type,{changedTouches:e.changedTouches,targetTouches:e.targetTouches,touches:e.touches}))}r?n.$emit(c,e,t(e)):n.$emit(c,t(e),e)}return l.result};h in o?Array.isArray(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d};for(var l in e)c(l);return o}}});function Z(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Q(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Z(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Z(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function ee(e,t,filter){return function(header){var n=Object(h.q)(e,header.value);return header.filter?header.filter(n,t,e):filter(n,t,e)}}t.a=Object(A.a)(M,K.a,J).extend({name:"v-data-table",directives:{ripple:I.a},props:{headers:{type:Array,default:function(){return[]}},showSelect:Boolean,checkboxColor:String,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:h.m},filterMode:{type:String,default:"intersection"},itemClass:{type:[String,Function],default:function(){return""}},itemStyle:{type:[String,Function],default:function(){return""}},loaderHeight:{type:[Number,String],default:4}},data:function(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders:function(){var e=this;if(!this.headers)return[];var t=this.headers.filter((function(t){return void 0===t.value||!e.internalGroupBy.find((function(e){return e===t.value}))})),n={text:"",sortable:!1,width:"1px"};if(this.showSelect){var r=t.findIndex((function(e){return"data-table-select"===e.value}));r<0?t.unshift(Q(Q({},n),{},{value:"data-table-select"})):t.splice(r,1,Q(Q({},n),t[r]))}if(this.showExpand){var o=t.findIndex((function(e){return"data-table-expand"===e.value}));o<0?t.unshift(Q(Q({},n),{},{value:"data-table-expand"})):t.splice(o,1,Q(Q({},n),t[o]))}return t},colspanAttrs:function(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters:function(){return this.computedHeaders.reduce((function(e,header){return header.sort&&(e[header.value]=header.sort),e}),{})},headersWithCustomFilters:function(){return this.headers.filter((function(header){return header.filter&&(!header.hasOwnProperty("filterable")||!0===header.filterable)}))},headersWithoutCustomFilters:function(){return this.headers.filter((function(header){return!(header.filter||header.hasOwnProperty("filterable")&&!0!==header.filterable)}))},sanitizedHeaderProps:function(){return Object(h.e)(this.headerProps)},computedItemsPerPage:function(){var e=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,t=this.sanitizedFooterProps.itemsPerPageOptions;if(t&&!t.find((function(t){return"number"==typeof t?t===e:t.value===e}))){var n=t[0];return"object"===Object(o.a)(n)?n.value:n}return e},groupByText:function(){var e,t,n,r=this;return null!==(n=null===(t=null===(e=this.headers)||void 0===e?void 0:e.find((function(header){var e;return header.value===(null===(e=r.internalGroupBy)||void 0===e?void 0:e[0])})))||void 0===t?void 0:t.text)&&void 0!==n?n:""}},created:function(){var e=this;[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]].forEach((function(t){var n=Object(r.a)(t,2),o=n[0],c=n[1];e.$attrs.hasOwnProperty(o)&&Object(T.a)(o,c,e)}))},mounted:function(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy:function(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths:function(){this.widths=Array.from(this.$el.querySelectorAll("th")).map((function(e){return e.clientWidth}))},customFilterWithColumns:function(e,t){return function(e,t,n,r,o,c){return t="string"==typeof t?t.trim():null,"union"===c?t&&r.length||n.length?e.filter((function(e){return!(!n.length||!n.every(ee(e,t,h.m)))||t&&r.some(ee(e,t,o))})):e:"intersection"===c?e.filter((function(e){var c=n.every(ee(e,t,h.m)),l=!t||r.some(ee(e,t,o));return c&&l})):e}(e,t,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter,this.filterMode)},customSortWithHeaders:function(e,t,n,r){return this.customSort(e,t,n,r,this.columnSorters)},createItemProps:function(e,t){var n=this,data=Q(Q({},M.options.methods.createItemProps.call(this,e,t)),{},{headers:this.computedHeaders});return Q(Q({},data),{},{attrs:{class:{"v-data-table__selected":data.isSelected}},on:Q(Q({},this.getDefaultMouseEventHandlers(":row",(function(){return data}),!0)),{},{click:function(t){return n.$emit("click:row",e,data,t)}})})},genCaption:function(e){return this.caption?[this.$createElement("caption",[this.caption])]:Object(h.t)(this,"caption",e,!0)},genColgroup:function(e){var t=this;return this.$createElement("colgroup",this.computedHeaders.map((function(header){return t.$createElement("col",{class:{divider:header.divider}})})))},genLoading:function(){var th=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),tr=this.$createElement("tr",{staticClass:"v-data-table__progress"},[th]);return this.$createElement("thead",[tr])},genHeaders:function(e){var data={props:Q(Q({},this.sanitizedHeaderProps),{},{headers:this.computedHeaders,options:e.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,checkboxColor:this.checkboxColor,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort}),on:{sort:e.sort,group:e.group,"toggle-select-all":this.toggleSelectAll}},t=[Object(h.t)(this,"header",Q(Q({},data),{},{isMobile:this.isMobile}))];if(!this.hideDefaultHeader){var n=Object(h.r)("header.",this.$scopedSlots);t.push(this.$createElement(F,Q(Q({},data),{},{scopedSlots:n})))}return this.loading&&t.push(this.genLoading()),t},genEmptyWrapper:function(content){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},content)])},genItems:function(e,t){var n=this.genEmpty(t.originalItemsLength,t.pagination.itemsLength);return n?[n]:t.groupedItems?this.genGroupedRows(t.groupedItems,t):this.genRows(e,t)},genGroupedRows:function(e,t){var n=this;return e.map((function(e){return n.openCache.hasOwnProperty(e.name)||n.$set(n.openCache,e.name,!0),n.$scopedSlots.group?n.$scopedSlots.group({group:e.name,options:t.options,isMobile:n.isMobile,items:e.items,headers:n.computedHeaders}):n.genDefaultGroupedRow(e.name,e.items,t)}))},genDefaultGroupedRow:function(e,t,n){var r=this,o=!!this.openCache[e],c=[this.$createElement("template",{slot:"row.content"},this.genRows(t,n))],l=function(){return r.$set(r.openCache,e,!r.openCache[e])},h=function(){return n.updateOptions({groupBy:[],groupDesc:[]})};if(this.$scopedSlots["group.header"])c.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:e,groupBy:n.options.groupBy,isMobile:this.isMobile,items:t,headers:this.computedHeaders,isOpen:o,toggle:l,remove:h})]));else{var d=this.$createElement(S.a,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:l}},[this.$createElement(w.a,[o?"$minus":"$plus"])]),f=this.$createElement(S.a,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:h}},[this.$createElement(w.a,["$close"])]),m=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[d,"".concat(this.groupByText,": ").concat(e),f]);c.unshift(this.$createElement("template",{slot:"column.header"},[m]))}return this.$scopedSlots["group.summary"]&&c.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:e,groupBy:n.options.groupBy,isMobile:this.isMobile,items:t,headers:this.computedHeaders,isOpen:o,toggle:l})])),this.$createElement($,{key:e,props:{value:o}},c)},genRows:function(e,t){return this.$scopedSlots.item?this.genScopedRows(e,t):this.genDefaultRows(e,t)},genScopedRows:function(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];n.push(this.$scopedSlots.item(Q(Q({},this.createItemProps(r,i)),{},{isMobile:this.isMobile}))),this.isExpanded(r)&&n.push(this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,index:i,item:r}))}return n},genDefaultRows:function(e,t){var n=this;return this.$scopedSlots["expanded-item"]?e.map((function(e,t){return n.genDefaultExpandedRow(e,t)})):e.map((function(e,t){return n.genDefaultSimpleRow(e,t)}))},genDefaultExpandedRow:function(e,t){var n=this.isExpanded(e),r={"v-data-table__expanded v-data-table__expanded__row":n},o=this.genDefaultSimpleRow(e,t,r),c=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,item:e})]);return this.$createElement($,{props:{value:n}},[this.$createElement("template",{slot:"row.header"},[o]),this.$createElement("template",{slot:"row.content"},[c])])},genDefaultSimpleRow:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object(h.r)("item.",this.$scopedSlots),data=this.createItemProps(e,t);if(this.showSelect){var slot=o["data-table-select"];o["data-table-select"]=slot?function(){return slot(Q(Q({},data),{},{isMobile:n.isMobile}))}:function(){var t;return n.$createElement(k.a,{staticClass:"v-data-table__checkbox",props:{value:data.isSelected,disabled:!n.isSelectable(e),color:null!==(t=n.checkboxColor)&&void 0!==t?t:""},on:{input:function(e){return data.select(e)}}})}}if(this.showExpand){var c=o["data-table-expand"];o["data-table-expand"]=c?function(){return c(data)}:function(){return n.$createElement(w.a,{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":data.isExpanded},on:{click:function(e){e.stopPropagation(),data.expand(!data.isExpanded)}}},[n.expandIcon])}}return this.$createElement(this.isMobile?W:z,{key:Object(h.q)(e,this.itemKey),class:Object(L.b)(Q(Q({},r),{},{"v-data-table__selected":data.isSelected}),Object(h.s)(e,this.itemClass)),style:Object(L.d)({},Object(h.s)(e,this.itemStyle)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,index:t,item:e,rtl:this.$vuetify.rtl},scopedSlots:o,on:data.on})},genBody:function(e){var data=Q(Q({},e),{},{expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select});return this.$scopedSlots.body?this.$scopedSlots.body(data):this.$createElement("tbody",[Object(h.t)(this,"body.prepend",data,!0),this.genItems(e.items,e),Object(h.t)(this,"body.append",data,!0)])},genFoot:function(e){var t,n;return null===(n=(t=this.$scopedSlots).foot)||void 0===n?void 0:n.call(t,e)},genFooters:function(e){var data={props:Q({options:e.options,pagination:e.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText"},this.sanitizedFooterProps),on:{"update:options":function(t){return e.updateOptions(t)}},widths:this.widths,headers:this.computedHeaders},t=[Object(h.t)(this,"footer",data,!0)];return this.hideDefaultFooter||t.push(this.$createElement(_,Q(Q({},data),{},{scopedSlots:Object(h.r)("footer.",this.$scopedSlots)}))),t},genDefaultScopedSlot:function(e){var t={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(H.a,{props:t,class:{"v-data-table--mobile":this.isMobile,"v-data-table--selectable":this.showSelect}},[this.proxySlot("top",Object(h.t)(this,"top",Q(Q({},e),{},{isMobile:this.isMobile}),!0)),this.genCaption(e),this.genColgroup(e),this.genHeaders(e),this.genBody(e),this.genFoot(e),this.proxySlot("bottom",this.genFooters(e))])},proxySlot:function(slot,content){return this.$createElement("template",{slot:slot},content)}},render:function(){var e=this;return this.$createElement(v,{props:Q(Q({},this.$props),{},{customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage}),on:{"update:options":function(t,n){e.internalGroupBy=t.groupBy||[],!Object(h.l)(t,n)&&e.$emit("update:options",t)},"update:page":function(t){return e.$emit("update:page",t)},"update:items-per-page":function(t){return e.$emit("update:items-per-page",t)},"update:sort-by":function(t){return e.$emit("update:sort-by",t)},"update:sort-desc":function(t){return e.$emit("update:sort-desc",t)},"update:group-by":function(t){return e.$emit("update:group-by",t)},"update:group-desc":function(t){return e.$emit("update:group-desc",t)},pagination:function(t,n){return!Object(h.l)(t,n)&&e.$emit("pagination",t)},"current-items":function(t){e.internalCurrentItems=t,e.$emit("current-items",t)},"page-count":function(t){return e.$emit("page-count",t)}},scopedSlots:{default:this.genDefaultScopedSlot}})}})},function(e,t,n){"use strict";var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const c=new Uint8Array(16);function l(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(c)}const h=[];for(let i=0;i<256;++i)h.push((i+256).toString(16).slice(1));function d(e,t=0){return h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]}t.a=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||l)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=o[i];return t}return d(o)}},function(e,t,n){"use strict";var r=n(1006),o=n(265),c=n(373),l=n(185),h=n(536),d=n(182);var f=function(e,t){var n=-1,r=Object(d.a)(e)?Array(e.length):[];return Object(h.a)(e,(function(e,o,c){r[++n]=t(e,o,c)})),r};var m=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},v=n(273),y=n(172);var w=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,c=Object(y.a)(e),l=void 0!==t,h=null===t,d=t==t,f=Object(y.a)(t);if(!h&&!f&&!c&&e>t||c&&l&&d&&!h&&!f||r&&l&&d||!n&&d||!o)return 1;if(!r&&!c&&!f&&e<t||f&&n&&o&&!r&&!c||h&&n&&o||!l&&o||!d)return-1}return 0};var S=function(object,e,t){for(var n=-1,r=object.criteria,o=e.criteria,c=r.length,l=t.length;++n<c;){var h=w(r[n],o[n]);if(h)return n>=l?h:h*("desc"==t[n]?-1:1)}return object.index-e.index},_=n(262),C=n(89);var O=function(e,t,n){t=t.length?Object(o.a)(t,(function(e){return Object(C.a)(e)?function(t){return Object(c.a)(t,1===e.length?e[0]:e)}:e})):[_.a];var r=-1;t=Object(o.a)(t,Object(v.a)(l.a));var h=f(e,(function(e,n,c){return{criteria:Object(o.a)(t,(function(t){return t(e)})),index:++r,value:e}}));return m(h,(function(object,e){return S(object,e,n)}))},A=n(771),T=n(313),E=Object(A.a)((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Object(T.a)(e,t[0],t[1])?t=[]:n>2&&Object(T.a)(t[0],t[1],t[2])&&(t=[t[0]]),O(e,Object(r.a)(t,1),[])}));t.a=E},function(e,t,n){"use strict";var r=Math.ceil,o=Math.max;var c=function(e,t,n,c){for(var l=-1,h=o(r((t-e)/(n||1)),0),d=Array(h);h--;)d[c?h:++l]=e,e+=n;return d},l=n(313),h=n(383);var d=function(e){return function(t,n,r){return r&&"number"!=typeof r&&Object(l.a)(t,n,r)&&(n=r=void 0),t=Object(h.a)(t),void 0===n?(n=t,t=0):n=Object(h.a)(n),r=void 0===r?t<n?1:-1:Object(h.a)(r),c(t,n,r,e)}}();t.a=d},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(24),n(28),n(60),n(1575),n(49),n(94),n(66),n(54),n(34),n(50),n(33),n(36),n(394)),c=n(30),l=n(276),h=n(13);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!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 i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function m(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var y=Object(h.a)(o.a,l.a,c.a).extend({name:"v-tabs-bar",provide:function(){return{tabsBar:this}},computed:{classes:function(){return v(v({},o.a.options.computed.classes.call(this)),{},{"v-tabs-bar":!0,"v-tabs-bar--is-mobile":this.isMobile,"v-tabs-bar--show-arrows":this.showArrows},this.themeClasses)}},watch:{items:"callSlider",internalValue:"callSlider",$route:"onRouteChange"},methods:{callSlider:function(){this.isBooted&&this.$emit("call:slider")},genContent:function(){var e=o.a.options.methods.genContent.call(this);return e.data=e.data||{},e.data.staticClass+=" v-tabs-bar__content",e},onRouteChange:function(e,t){if(!this.mandatory){var n,r=this.items,o=e.path,c=t.path,l=!1,h=!1,f=d(r);try{for(f.s();!(n=f.n()).done;){var m=n.value;if(m.to===c?h=!0:m.to===o&&(l=!0),l&&h)break}}catch(e){f.e(e)}finally{f.f()}!l&&h&&(this.internalValue=void 0)}}},render:function(e){var t=o.a.options.render.call(this,e);return t.data.attrs={role:"tablist"},t}}),w=n(1021),S=n(38),_=Object(h.a)(S.a).extend({name:"v-tabs-slider",render:function(e){return e("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),C=n(365),O=n(175),A=n(4);function T(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var E=Object(h.a)(S.a,C.a,c.a);t.a=E.extend().extend({name:"v-tabs",directives:{Resize:O.a},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data:function(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes:function(){return function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?T(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):T(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical},this.themeClasses)},isReversed:function(){return this.$vuetify.rtl&&this.vertical},sliderStyles:function(){return{height:Object(A.i)(this.slider.height),left:this.isReversed?void 0:Object(A.i)(this.slider.left),right:this.isReversed?Object(A.i)(this.slider.right):void 0,top:this.vertical?Object(A.i)(this.slider.top):void 0,transition:null!=this.slider.left?null:"none",width:Object(A.i)(this.slider.width)}},computedColor:function(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",iconsAndText:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted:function(){var e=this;if("undefined"!=typeof ResizeObserver){var t=new ResizeObserver((function(){e.onResize()}));t.observe(this.$el),this.$on("hook:destroyed",(function(){t.disconnect()}))}this.$nextTick((function(){window.setTimeout(e.callSlider,30)}))},methods:{callSlider:function(){var e=this;return!this.hideSlider&&this.$refs.items&&this.$refs.items.selectedItems.length?(this.$nextTick((function(){var t=e.$refs.items.selectedItems[0];if(!t||!t.$el)return e.slider.width=0,void(e.slider.left=0);var n=t.$el;e.slider={height:e.vertical?n.scrollHeight:Number(e.sliderSize),left:e.vertical?0:n.offsetLeft,right:e.vertical?0:n.offsetLeft+n.offsetWidth,top:n.offsetTop,width:e.vertical?Number(e.sliderSize):n.scrollWidth}})),!0):(this.slider.width=0,!1)},genBar:function(e,t){var n=this,data={style:{height:Object(A.i)(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:function(e){n.internalValue=e}},ref:"items"};return this.setTextColor(this.computedColor,data),this.setBackgroundColor(this.backgroundColor,data),this.$createElement(y,data,[this.genSlider(t),e])},genItems:function(e,t){var n=this;return e||(t.length?this.$createElement(w.a,{props:{value:this.internalValue},on:{change:function(e){n.internalValue=e}}},t):null)},genSlider:function(e){return this.hideSlider?null:(e||(e=this.$createElement(_,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[e]))},onResize:function(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes:function(){for(var e=null,t=null,n=[],r=[],slot=this.$slots.default||[],o=slot.length,i=0;i<o;i++){var c=slot[i];if(c.componentOptions)switch(c.componentOptions.Ctor.options.name){case"v-tabs-slider":t=c;break;case"v-tabs-items":e=c;break;case"v-tab-item":n.push(c);break;default:r.push(c)}else r.push(c)}return{tab:r,slider:t,items:e,item:n}}},render:function(e){var t=this.parseNodes(),n=t.tab,r=t.slider,o=t.items,c=t.item;return e("div",{staticClass:"v-tabs",class:this.classes,directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar(n,r),this.genItems(o,c)])}})},function(e,t,n){"use strict";n(6),n(49),n(94),n(66),n(54),n(24),n(10),n(11),n(50);var r=n(21),o=n(14),c=n(0),l=(n(7),n(22),n(246),n(9),n(5),n(34),n(696),n(33),n(207),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(8),n(36),n(1589),n(39),n(28),n(117)),h=n(364),d=n(126),f=n(38),m=n(13),v=n(4);function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var w=Object(m.a)(f.a,Object(d.a)("treeview")),S={activatable:Boolean,activeClass:{type:String,default:"v-treeview-node--active"},color:{type:String,default:"primary"},disablePerNode:Boolean,expandIcon:{type:String,default:"$subgroup"},indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},itemChildren:{type:String,default:"children"},itemDisabled:{type:String,default:"disabled"},itemKey:{type:String,default:"id"},itemText:{type:String,default:"name"},loadChildren:Function,loadingIcon:{type:String,default:"$loading"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"},openOnClick:Boolean,rounded:Boolean,selectable:Boolean,selectedColor:{type:String,default:"accent"},shaped:Boolean,transition:Boolean,selectionType:{type:String,default:"leaf",validator:function(e){return["leaf","independent"].includes(e)}}},_=w.extend().extend({name:"v-treeview-node",inject:{treeview:{default:null}},props:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({level:Number,item:{type:Object,default:function(){return null}},parentIsDisabled:Boolean},S),data:function(){return{hasLoaded:!1,isActive:!1,isIndeterminate:!1,isLoading:!1,isOpen:!1,isSelected:!1}},computed:{disabled:function(){return Object(v.q)(this.item,this.itemDisabled)||!this.disablePerNode&&this.parentIsDisabled&&"leaf"===this.selectionType},key:function(){return Object(v.q)(this.item,this.itemKey)},children:function(){var e=this,t=Object(v.q)(this.item,this.itemChildren);return t&&t.filter((function(t){return!e.treeview.isExcluded(Object(v.q)(t,e.itemKey))}))},text:function(){return Object(v.q)(this.item,this.itemText)},scopedProps:function(){return{item:this.item,leaf:!this.children,selected:this.isSelected,indeterminate:this.isIndeterminate,active:this.isActive,open:this.isOpen}},computedIcon:function(){return this.isIndeterminate?this.indeterminateIcon:this.isSelected?this.onIcon:this.offIcon},hasChildren:function(){return!(!this.children||!this.children.length&&!this.loadChildren)}},created:function(){this.treeview.register(this)},beforeDestroy:function(){this.treeview.unregister(this)},methods:{checkChildren:function(){var e=this;return new Promise((function(t){if(!e.children||e.children.length||!e.loadChildren||e.hasLoaded)return t();e.isLoading=!0,t(e.loadChildren(e.item))})).then((function(){e.isLoading=!1,e.hasLoaded=!0}))},open:function(){this.isOpen=!this.isOpen,this.treeview.updateOpen(this.key,this.isOpen),this.treeview.emitOpen()},genLabel:function(){var e=[];return this.$scopedSlots.label?e.push(this.$scopedSlots.label(this.scopedProps)):e.push(this.text),this.$createElement("div",{slot:"label",staticClass:"v-treeview-node__label"},e)},genPrependSlot:function(){return this.$scopedSlots.prepend?this.$createElement("div",{staticClass:"v-treeview-node__prepend"},this.$scopedSlots.prepend(this.scopedProps)):null},genAppendSlot:function(){return this.$scopedSlots.append?this.$createElement("div",{staticClass:"v-treeview-node__append"},this.$scopedSlots.append(this.scopedProps)):null},genContent:function(){var e=[this.genPrependSlot(),this.genLabel(),this.genAppendSlot()];return this.$createElement("div",{staticClass:"v-treeview-node__content"},e)},genToggle:function(){var e=this;return this.$createElement(h.a,{staticClass:"v-treeview-node__toggle",class:{"v-treeview-node__toggle--open":this.isOpen,"v-treeview-node__toggle--loading":this.isLoading},slot:"prepend",on:{click:function(t){t.stopPropagation(),e.isLoading||e.checkChildren().then((function(){return e.open()}))}}},[this.isLoading?this.loadingIcon:this.expandIcon])},genCheckbox:function(){var e=this;return this.$createElement(h.a,{staticClass:"v-treeview-node__checkbox",props:{color:this.isSelected||this.isIndeterminate?this.selectedColor:void 0,disabled:this.disabled},on:{click:function(t){t.stopPropagation(),e.isLoading||e.checkChildren().then((function(){e.$nextTick((function(){e.isSelected=!e.isSelected,e.isIndeterminate=!1,e.treeview.updateSelected(e.key,e.isSelected),e.treeview.emitSelected()}))}))}}},[this.computedIcon])},genLevel:function(e){var t=this;return Object(v.j)(e).map((function(){return t.$createElement("div",{staticClass:"v-treeview-node__level"})}))},genNode:function(){var e=this,t=[this.genContent()];return this.selectable&&t.unshift(this.genCheckbox()),this.hasChildren?t.unshift(this.genToggle()):t.unshift.apply(t,Object(o.a)(this.genLevel(1))),t.unshift.apply(t,Object(o.a)(this.genLevel(this.level))),this.$createElement("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-treeview-node__root",class:Object(c.a)({},this.activeClass,this.isActive),on:{click:function(){e.openOnClick&&e.hasChildren?e.checkChildren().then(e.open):e.activatable&&!e.disabled&&(e.isActive=!e.isActive,e.treeview.updateActive(e.key,e.isActive),e.treeview.emitActive())}}}),t)},genChild:function(e,t){return this.$createElement(_,{key:Object(v.q)(e,this.itemKey),props:{activatable:this.activatable,activeClass:this.activeClass,item:e,selectable:this.selectable,selectedColor:this.selectedColor,color:this.color,disablePerNode:this.disablePerNode,expandIcon:this.expandIcon,indeterminateIcon:this.indeterminateIcon,offIcon:this.offIcon,onIcon:this.onIcon,loadingIcon:this.loadingIcon,itemKey:this.itemKey,itemText:this.itemText,itemDisabled:this.itemDisabled,itemChildren:this.itemChildren,loadChildren:this.loadChildren,transition:this.transition,openOnClick:this.openOnClick,rounded:this.rounded,shaped:this.shaped,level:this.level+1,selectionType:this.selectionType,parentIsDisabled:t},scopedSlots:this.$scopedSlots})},genChildrenWrapper:function(){var e=this;if(!this.isOpen||!this.children)return null;var t=[this.children.map((function(t){return e.genChild(t,e.disabled)}))];return this.$createElement("div",{staticClass:"v-treeview-node__children"},t)},genTransition:function(){return this.$createElement(l.a,[this.genChildrenWrapper()])}},render:function(e){var t=[this.genNode()];return this.transition?t.push(this.genTransition()):t.push(this.genChildrenWrapper()),e("div",{staticClass:"v-treeview-node",class:{"v-treeview-node--leaf":!this.hasChildren,"v-treeview-node--click":this.openOnClick,"v-treeview-node--disabled":this.disabled,"v-treeview-node--rounded":this.rounded,"v-treeview-node--shaped":this.shaped,"v-treeview-node--selected":this.isSelected},attrs:{"aria-expanded":String(this.isOpen)}},t)}}),C=_,O=n(30),A=n(26);function T(e,t,n){return Object(v.q)(e,n).toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}function E(filter,e,t,n,r,o,c){if(filter(e,t,r))return!0;var l=Object(v.q)(e,o);if(l){for(var h=!1,i=0;i<l.length;i++)E(filter,l[i],t,n,r,o,c)&&(h=!0);if(h)return!0}return c.add(Object(v.q)(e,n)),!1}function P(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return M(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 M(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f: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.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function x(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function k(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?x(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):x(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=Object(m.a)(Object(d.b)("treeview"),O.a).extend({name:"v-treeview",provide:function(){return{treeview:this}},props:k({active:{type:Array,default:function(){return[]}},dense:Boolean,disabled:Boolean,filter:Function,hoverable:Boolean,items:{type:Array,default:function(){return[]}},multipleActive:Boolean,open:{type:Array,default:function(){return[]}},openAll:Boolean,returnObject:{type:Boolean,default:!1},search:String,value:{type:Array,default:function(){return[]}}},S),data:function(){return{level:-1,activeCache:new Set,nodes:{},openCache:new Set,selectedCache:new Set}},computed:{excludedItems:function(){var e=new Set;if(!this.search)return e;for(var i=0;i<this.items.length;i++)E(this.filter||T,this.items[i],this.search,this.itemKey,this.itemText,this.itemChildren,e);return e}},watch:{items:{handler:function(){var e=this,t=Object.keys(this.nodes).map((function(t){return Object(v.q)(e.nodes[t].item,e.itemKey)})),n=this.getKeys(this.items),r=Object(v.c)(n,t);if(r.length||!(n.length<t.length)){r.forEach((function(t){return delete e.nodes[t]}));var c=Object(o.a)(this.selectedCache);this.selectedCache=new Set,this.activeCache=new Set,this.openCache=new Set,this.buildTree(this.items),Object(v.l)(c,Object(o.a)(this.selectedCache))||this.emitSelected()}},deep:!0},active:function(e){this.handleNodeCacheWatcher(e,this.activeCache,this.updateActive,this.emitActive)},value:function(e){this.handleNodeCacheWatcher(e,this.selectedCache,this.updateSelected,this.emitSelected)},open:function(e){this.handleNodeCacheWatcher(e,this.openCache,this.updateOpen,this.emitOpen)}},created:function(){var e=this,t=function(t){return e.returnObject?Object(v.q)(t,e.itemKey):t};this.buildTree(this.items);var n,r=P(this.value.map(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;this.updateSelected(o,!0,!0)}}catch(e){r.e(e)}finally{r.f()}var c,l=P(this.active.map(t));try{for(l.s();!(c=l.n()).done;){var h=c.value;this.updateActive(h,!0)}}catch(e){l.e(e)}finally{l.f()}},mounted:function(){var e=this;(this.$slots.prepend||this.$slots.append)&&Object(A.c)("The prepend and append slots require a slot-scope attribute",this),this.openAll?this.updateAll(!0):(this.open.forEach((function(t){return e.updateOpen(e.returnObject?Object(v.q)(t,e.itemKey):t,!0)})),this.emitOpen())},methods:{updateAll:function(e){var t=this;Object.keys(this.nodes).forEach((function(n){return t.updateOpen(Object(v.q)(t.nodes[n].item,t.itemKey),e)})),this.emitOpen()},getKeys:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=0;i<e.length;i++){var n=Object(v.q)(e[i],this.itemKey);t.push(n);var r=Object(v.q)(e[i],this.itemChildren);r&&t.push.apply(t,Object(o.a)(this.getKeys(r)))}return t},buildTree:function(e){for(var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=0;i<e.length;i++){var o=e[i],c=Object(v.q)(o,this.itemKey),l=null!==(t=Object(v.q)(o,this.itemChildren))&&void 0!==t?t:[],h=this.nodes.hasOwnProperty(c)?this.nodes[c]:{isSelected:!1,isIndeterminate:!1,isActive:!1,isOpen:!1,vnode:null},d={vnode:h.vnode,parent:r,children:l.map((function(e){return Object(v.q)(e,n.itemKey)})),item:o};if(this.buildTree(l,c),"independent"!==this.selectionType&&null!==r&&!this.nodes.hasOwnProperty(c)&&this.nodes.hasOwnProperty(r)?d.isSelected=this.nodes[r].isSelected:(d.isSelected=h.isSelected,d.isIndeterminate=h.isIndeterminate),d.isActive=h.isActive,d.isOpen=h.isOpen,this.nodes[c]=d,l.length&&"independent"!==this.selectionType){var f=this.calculateState(c,this.nodes),m=f.isSelected,y=f.isIndeterminate;d.isSelected=m,d.isIndeterminate=y}!this.nodes[c].isSelected||"independent"!==this.selectionType&&0!==d.children.length||this.selectedCache.add(c),this.nodes[c].isActive&&this.activeCache.add(c),this.nodes[c].isOpen&&this.openCache.add(c),this.updateVnodeState(c)}},calculateState:function(e,t){var n=t[e].children,r=n.reduce((function(e,n){return e[0]+=+Boolean(t[n].isSelected),e[1]+=+Boolean(t[n].isIndeterminate),e}),[0,0]),o=!!n.length&&r[0]===n.length;return{isSelected:o,isIndeterminate:!o&&(r[0]>0||r[1]>0)}},emitOpen:function(){this.emitNodeCache("update:open",this.openCache)},emitSelected:function(){this.emitNodeCache("input",this.selectedCache)},emitActive:function(){this.emitNodeCache("update:active",this.activeCache)},emitNodeCache:function(e,t){var n=this;this.$emit(e,this.returnObject?Object(o.a)(t).map((function(e){return n.nodes[e].item})):Object(o.a)(t))},handleNodeCacheWatcher:function(e,t,n,r){var c=this;e=this.returnObject?e.map((function(e){return Object(v.q)(e,c.itemKey)})):e;var l=Object(o.a)(t);Object(v.l)(l,e)||(l.forEach((function(e){return n(e,!1)})),e.forEach((function(e){return n(e,!0)})),r())},getDescendants:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.nodes[e].children;(t=n).push.apply(t,Object(o.a)(r));for(var i=0;i<r.length;i++)n=this.getDescendants(r[i],n);return n},getParents:function(e){for(var t=this.nodes[e].parent,n=[];null!==t;)n.push(t),t=this.nodes[t].parent;return n},register:function(e){var t=Object(v.q)(e.item,this.itemKey);this.nodes[t].vnode=e,this.updateVnodeState(t)},unregister:function(e){var t=Object(v.q)(e.item,this.itemKey);this.nodes[t]&&(this.nodes[t].vnode=null)},isParent:function(e){return this.nodes[e].children&&this.nodes[e].children.length},updateActive:function(e,t){var n=this;if(this.nodes.hasOwnProperty(e)){this.multipleActive||this.activeCache.forEach((function(e){n.nodes[e].isActive=!1,n.updateVnodeState(e),n.activeCache.delete(e)}));var r=this.nodes[e];r&&(t?this.activeCache.add(e):this.activeCache.delete(e),r.isActive=t,this.updateVnodeState(e))}},updateSelected:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.nodes.hasOwnProperty(e)){var o=new Map;if("independent"!==this.selectionType){var c,l=P(this.getDescendants(e));try{for(l.s();!(c=l.n()).done;){var h=c.value;Object(v.q)(this.nodes[h].item,this.itemDisabled)&&!n||(this.nodes[h].isSelected=t,this.nodes[h].isIndeterminate=!1,o.set(h,t))}}catch(e){l.e(e)}finally{l.f()}var d=this.calculateState(e,this.nodes);this.nodes[e].isSelected=t,this.nodes[e].isIndeterminate=d.isIndeterminate,o.set(e,t);var f,m=P(this.getParents(e));try{for(m.s();!(f=m.n()).done;){var y=f.value,w=this.calculateState(y,this.nodes);this.nodes[y].isSelected=w.isSelected,this.nodes[y].isIndeterminate=w.isIndeterminate,o.set(y,w.isSelected)}}catch(e){m.e(e)}finally{m.f()}}else this.nodes[e].isSelected=t,this.nodes[e].isIndeterminate=!1,o.set(e,t);var S,_=P(o.entries());try{for(_.s();!(S=_.n()).done;){var C=Object(r.a)(S.value,2),O=C[0],A=C[1];this.updateVnodeState(O),"leaf"===this.selectionType&&this.isParent(O)||(!0===A?this.selectedCache.add(O):this.selectedCache.delete(O))}}catch(e){_.e(e)}finally{_.f()}}},updateOpen:function(e,t){var n=this;if(this.nodes.hasOwnProperty(e)){var r=this.nodes[e],o=Object(v.q)(r.item,this.itemChildren);o&&!o.length&&r.vnode&&!r.vnode.hasLoaded?r.vnode.checkChildren().then((function(){return n.updateOpen(e,t)})):o&&o.length&&(r.isOpen=t,r.isOpen?this.openCache.add(e):this.openCache.delete(e),this.updateVnodeState(e))}},updateVnodeState:function(e){var t=this.nodes[e];t&&t.vnode&&(t.vnode.isSelected=t.isSelected,t.vnode.isIndeterminate=t.isIndeterminate,t.vnode.isActive=t.isActive,t.vnode.isOpen=t.isOpen)},isExcluded:function(e){return!!this.search&&this.excludedItems.has(e)}},render:function(e){var t=this,n=this.items.length?this.items.filter((function(e){return!t.isExcluded(Object(v.q)(e,t.itemKey))})).map((function(e){return C.options.methods.genChild.bind(t)(e,t.disabled||Object(v.q)(e,t.itemDisabled))})):this.$slots.default;return e("div",{staticClass:"v-treeview",class:k({"v-treeview--hoverable":this.hoverable,"v-treeview--dense":this.dense},this.themeClasses)},n)}})},function(e,t,n){"use strict";var r=n(118),o=n(102),c=function(){return o.a.Date.now()},l=n(433),h=Math.max,d=Math.min;t.a=function(e,t,n){var o,f,m,v,y,w,S=0,_=!1,C=!1,O=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function A(time){var t=o,n=f;return o=f=void 0,S=time,v=e.apply(n,t)}function T(time){var e=time-w;return void 0===w||e>=t||e<0||C&&time-S>=m}function E(){var time=c();if(T(time))return P(time);y=setTimeout(E,function(time){var e=t-(time-w);return C?d(e,m-(time-S)):e}(time))}function P(time){return y=void 0,O&&o?A(time):(o=f=void 0,v)}function M(){var time=c(),e=T(time);if(o=arguments,f=this,w=time,e){if(void 0===y)return function(time){return S=time,y=setTimeout(E,t),_?A(time):v}(w);if(C)return clearTimeout(y),y=setTimeout(E,t),A(w)}return void 0===y&&(y=setTimeout(E,t)),v}return t=Object(l.a)(t)||0,Object(r.a)(n)&&(_=!!n.leading,m=(C="maxWait"in n)?h(Object(l.a)(n.maxWait)||0,t):m,O="trailing"in n?!!n.trailing:O),M.cancel=function(){void 0!==y&&clearTimeout(y),S=0,o=w=f=y=void 0},M.flush=function(){return void 0===y?v:P(c())},M}},function(e,t,n){"use strict";n(6),n(7),n(10),n(11),n(9),n(5),n(8);var r=n(0),o=(n(28),n(418),n(1405),n(204)),c=n(511),l=n(366),h=n(26),d=n(1).a.extend({name:"scrollable",directives:{Scroll:c.a},props:{scrollTarget:String,scrollThreshold:[String,Number]},data:function(){return{currentScroll:0,currentThreshold:0,isActive:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}},computed:{canScroll:function(){return"undefined"!=typeof window},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):300}},watch:{isScrollingUp:function(){this.savedScroll=this.savedScroll||this.currentScroll},isActive:function(){this.savedScroll=0}},mounted:function(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget),this.target||Object(h.c)("Unable to locate element with identifier ".concat(this.scrollTarget),this))},methods:{onScroll:function(){var e=this;this.canScroll&&(this.previousScroll=this.currentScroll,this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScroll<this.previousScroll,this.currentThreshold=Math.abs(this.currentScroll-this.computedScrollThreshold),this.$nextTick((function(){Math.abs(e.currentScroll-e.savedScroll)>e.computedScrollThreshold&&e.thresholdMet()})))},thresholdMet:function(){}}}),f=n(276),m=n(110),v=n(4),y=n(13);function w(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function S(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?w(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):w(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var _=Object(y.a)(o.a,d,f.a,m.a,Object(l.a)("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","isExtended","isProminent","value"]));t.a=_.extend({name:"v-app-bar",directives:{Scroll:c.b},provide:function(){return{VAppBar:this}},props:{clippedLeft:Boolean,clippedRight:Boolean,collapseOnScroll:Boolean,elevateOnScroll:Boolean,fadeImgOnScroll:Boolean,hideOnScroll:Boolean,invertedScroll:Boolean,scrollOffScreen:Boolean,shrinkOnScroll:Boolean,value:{type:Boolean,default:!0}},data:function(){return{isActive:this.value}},computed:{applicationProperty:function(){return this.bottom?"bottom":"top"},canScroll:function(){return d.options.computed.canScroll.call(this)&&(this.invertedScroll||this.elevateOnScroll||this.hideOnScroll||this.collapseOnScroll||this.isBooted||!this.value)},classes:function(){return S(S({},o.a.options.computed.classes.call(this)),{},{"v-toolbar--collapse":this.collapse||this.collapseOnScroll,"v-app-bar":!0,"v-app-bar--clipped":this.clippedLeft||this.clippedRight,"v-app-bar--fade-img-on-scroll":this.fadeImgOnScroll,"v-app-bar--elevate-on-scroll":this.elevateOnScroll,"v-app-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-app-bar--hide-shadow":this.hideShadow,"v-app-bar--is-scrolled":this.currentScroll>0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll})},scrollRatio:function(){var e=this.computedScrollThreshold;return Math.max((e-this.currentScroll)/e,0)},computedContentHeight:function(){if(!this.shrinkOnScroll)return o.a.options.computed.computedContentHeight.call(this);var e=this.dense?48:56;return e+(this.computedOriginalHeight-e)*this.scrollRatio},computedFontSize:function(){if(this.isProminent){return 1.25+.25*this.scrollRatio}},computedLeft:function(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop:function(){return this.app?this.$vuetify.application.bar:0},computedOpacity:function(){if(this.fadeImgOnScroll)return this.scrollRatio},computedOriginalHeight:function(){var e=o.a.options.computed.computedContentHeight.call(this);return this.isExtended&&(e+=parseInt(this.extensionHeight)),e},computedRight:function(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold:function(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform:function(){if(!this.canScroll||this.elevateOnScroll&&0===this.currentScroll&&this.isActive)return 0;if(this.isActive)return 0;var e=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?e:-e},hideShadow:function(){return this.elevateOnScroll&&this.isExtended?this.currentScroll<this.computedScrollThreshold:this.elevateOnScroll?0===this.currentScroll||this.computedTransform<0:(!this.isExtended||this.scrollOffScreen)&&0!==this.computedTransform},isCollapsed:function(){return this.collapseOnScroll?this.currentScroll>0:o.a.options.computed.isCollapsed.call(this)},isProminent:function(){return o.a.options.computed.isProminent.call(this)||this.shrinkOnScroll},styles:function(){return S(S({},o.a.options.computed.styles.call(this)),{},{fontSize:Object(v.i)(this.computedFontSize,"rem"),marginTop:Object(v.i)(this.computedMarginTop),transform:"translateY(".concat(Object(v.i)(this.computedTransform),")"),left:Object(v.i)(this.computedLeft),right:Object(v.i)(this.computedRight)})}},watch:{canScroll:"onScroll",computedTransform:function(){this.canScroll&&(this.clippedLeft||this.clippedRight)&&this.callUpdate()},invertedScroll:function(e){this.isActive=!e||0!==this.currentScroll},hideOnScroll:function(e){this.isActive=!e||this.currentScroll<this.computedScrollThreshold}},created:function(){this.invertedScroll&&(this.isActive=!1)},methods:{genBackground:function(){var e=o.a.options.methods.genBackground.call(this);return e.data=this._b(e.data||{},e.tag,{style:{opacity:this.computedOpacity}}),e},updateApplication:function(){return this.invertedScroll?0:this.computedHeight+this.computedTransform},thresholdMet:function(){this.invertedScroll?this.isActive=this.currentScroll>this.computedScrollThreshold:(this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll<this.computedScrollThreshold),this.currentThreshold<this.computedScrollThreshold||(this.savedScroll=this.currentScroll))}},render:function(e){var t=o.a.options.render.call(this,e);return t.data=t.data||{},this.canScroll&&(t.data.directives=t.data.directives||[],t.data.directives.push({arg:this.scrollTarget,name:"scroll",value:this.onScroll})),t}})}]]);