/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],[,,function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"addTypenameToDocument",(function(){return at})),n.d(e,"argumentsObjectFromField",(function(){return x})),n.d(e,"assign",(function(){return B})),n.d(e,"buildQueryFromSelectionSet",(function(){return vt})),n.d(e,"canUseWeakMap",(function(){return gt})),n.d(e,"checkDocument",(function(){return z})),n.d(e,"cloneDeep",(function(){return _t})),n.d(e,"createFragmentMap",(function(){return K})),n.d(e,"getDefaultValues",(function(){return X})),n.d(e,"getDirectiveInfoFromField",(function(){return I})),n.d(e,"getDirectiveNames",(function(){return j})),n.d(e,"getDirectivesFromDocument",(function(){return ft})),n.d(e,"getEnv",(function(){return xt})),n.d(e,"getFragmentDefinition",(function(){return Q})),n.d(e,"getFragmentDefinitions",(function(){return H})),n.d(e,"getFragmentQueryDocument",(function(){return N})),n.d(e,"getInclusionDirectives",(function(){return L})),n.d(e,"getMainDefinition",(function(){return Y})),n.d(e,"getMutationDefinition",(function(){return V})),n.d(e,"getOperationDefinition",(function(){return U})),n.d(e,"getOperationDefinitionOrDie",(function(){return $})),n.d(e,"getOperationName",(function(){return G})),n.d(e,"getQueryDefinition",(function(){return W})),n.d(e,"getStoreKeyName",(function(){return w})),n.d(e,"graphQLResultHasError",(function(){return Tt})),n.d(e,"hasClientExports",(function(){return F})),n.d(e,"hasDirectives",(function(){return D})),n.d(e,"isDevelopment",(function(){return kt})),n.d(e,"isEnv",(function(){return Et})),n.d(e,"isField",(function(){return S})),n.d(e,"isIdValue",(function(){return A})),n.d(e,"isInlineFragment",(function(){return k})),n.d(e,"isJsonValue",(function(){return T})),n.d(e,"isNumberValue",(function(){return m})),n.d(e,"isProduction",(function(){return St})),n.d(e,"isScalarValue",(function(){return d})),n.d(e,"isTest",(function(){return At})),n.d(e,"maybeDeepFreeze",(function(){return Pt})),n.d(e,"mergeDeep",(function(){return Mt})),n.d(e,"mergeDeepArray",(function(){return jt})),n.d(e,"removeArgumentsFromDocument",(function(){return ht})),n.d(e,"removeClientSetsFromDocument",(function(){return yt})),n.d(e,"removeConnectionDirectiveFromDocument",(function(){return ut})),n.d(e,"removeDirectivesFromDocument",(function(){return ot})),n.d(e,"removeFragmentSpreadFromDocument",(function(){return pt})),n.d(e,"resultKeyNameFromField",(function(){return E})),n.d(e,"shouldInclude",(function(){return M})),n.d(e,"storeKeyNameFromField",(function(){return y})),n.d(e,"stripSymbols",(function(){return Bt})),n.d(e,"toIdValue",(function(){return O})),n.d(e,"tryFunctionOrLogError",(function(){return Ot})),n.d(e,"valueFromNode",(function(){return P})),n.d(e,"valueToObjectRepresentation",(function(){return v})),n.d(e,"variablesInOperation",(function(){return J})),n.d(e,"warnOnceInDevelopment",(function(){return Nt}));var r=n(68),o=n(8),l=n(57),c=n(406),f=n.n(c),h=n(379);function d(t){return["StringValue","BooleanValue","EnumValue"].indexOf(t.kind)>-1}function m(t){return["IntValue","FloatValue"].indexOf(t.kind)>-1}function v(t,e,n,r){if(function(t){return"IntValue"===t.kind}(n)||function(t){return"FloatValue"===t.kind}(n))t[e.value]=Number(n.value);else if(function(t){return"BooleanValue"===t.kind}(n)||function(t){return"StringValue"===t.kind}(n))t[e.value]=n.value;else if(function(t){return"ObjectValue"===t.kind}(n)){var l={};n.fields.map((function(t){return v(l,t.name,t.value,r)})),t[e.value]=l}else if(function(t){return"Variable"===t.kind}(n)){var c=(r||{})[n.name.value];t[e.value]=c}else if(function(t){return"ListValue"===t.kind}(n))t[e.value]=n.values.map((function(t){var n={};return v(n,e,t,r),n[e.value]}));else if(function(t){return"EnumValue"===t.kind}(n))t[e.value]=n.value;else{if(!function(t){return"NullValue"===t.kind}(n))throw new o.a(17);t[e.value]=null}}function y(t,e){var n=null;t.directives&&(n={},t.directives.forEach((function(t){n[t.name.value]={},t.arguments&&t.arguments.forEach((function(r){var o=r.name,l=r.value;return v(n[t.name.value],o,l,e)}))})));var r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach((function(t){var n=t.name,o=t.value;return v(r,n,o,e)}))),w(t.name.value,r,n)}n.d(e,"isEqual",(function(){return h.a}));var _=["connection","include","skip","client","rest","export"];function w(t,e,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o=e,l={};return r.forEach((function(t){l[t]=o[t]})),n.connection.key+"("+JSON.stringify(l)+")"}return n.connection.key}var c=t;if(e){var h=f()(e);c+="("+h+")"}return n&&Object.keys(n).forEach((function(t){-1===_.indexOf(t)&&(n[t]&&Object.keys(n[t]).length?c+="@"+t+"("+JSON.stringify(n[t])+")":c+="@"+t)})),c}function x(t,e){if(t.arguments&&t.arguments.length){var n={};return t.arguments.forEach((function(t){var r=t.name,o=t.value;return v(n,r,o,e)})),n}return null}function E(t){return t.alias?t.alias.value:t.name.value}function S(t){return"Field"===t.kind}function k(t){return"InlineFragment"===t.kind}function A(t){return t&&"id"===t.type&&"boolean"==typeof t.generated}function O(t,e){return void 0===e&&(e=!1),Object(l.a)({type:"id",generated:e},"string"==typeof t?{id:t,typename:void 0}:t)}function T(t){return null!=t&&"object"==typeof t&&"json"===t.type}function C(t){throw new o.a(18)}function P(t,e){switch(void 0===e&&(e=C),t.kind){case"Variable":return e(t);case"NullValue":return null;case"IntValue":return parseInt(t.value,10);case"FloatValue":return parseFloat(t.value);case"ListValue":return t.values.map((function(t){return P(t,e)}));case"ObjectValue":for(var n={},r=0,o=t.fields;r<o.length;r++){var l=o[r];n[l.name.value]=P(l.value,e)}return n;default:return t.value}}function I(t,e){if(t.directives&&t.directives.length){var n={};return t.directives.forEach((function(t){n[t.name.value]=x(t,e)})),n}return null}function M(t,e){return void 0===e&&(e={}),L(t.directives).every((function(t){var n=t.directive,r=t.ifArgument,l=!1;return"Variable"===r.value.kind?(l=e[r.value.name.value],Object(o.b)(void 0!==l,13)):l=r.value.value,"skip"===n.name.value?!l:l}))}function j(t){var e=[];return Object(r.b)(t,{Directive:function(t){e.push(t.name.value)}}),e}function D(t,e){return j(e).some((function(e){return t.indexOf(e)>-1}))}function F(t){return t&&D(["client"],t)&&D(["export"],t)}function R(t){var e=t.name.value;return"skip"===e||"include"===e}function L(t){return t?t.filter(R).map((function(t){var e=t.arguments;t.name.value;Object(o.b)(e&&1===e.length,14);var n=e[0];Object(o.b)(n.name&&"if"===n.name.value,15);var r=n.value;return Object(o.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:t,ifArgument:n}})):[]}function N(t,e){var n=e,r=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw new o.a(11);"FragmentDefinition"===t.kind&&r.push(t)})),void 0===n&&(Object(o.b)(1===r.length,12),n=r[0].name.value),Object(l.a)(Object(l.a)({},t),{definitions:Object(l.b)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],t.definitions)})}function B(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach((function(source){null!=source&&Object.keys(source).forEach((function(e){t[e]=source[e]}))})),t}function V(t){z(t);var e=t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}))[0];return Object(o.b)(e,1),e}function z(t){Object(o.b)(t&&"Document"===t.kind,2);var e=t.definitions.filter((function(t){return"FragmentDefinition"!==t.kind})).map((function(t){if("OperationDefinition"!==t.kind)throw new o.a(3);return t}));return Object(o.b)(e.length<=1,4),t}function U(t){return z(t),t.definitions.filter((function(t){return"OperationDefinition"===t.kind}))[0]}function $(t){var e=U(t);return Object(o.b)(e,5),e}function G(t){return t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&t.name})).map((function(t){return t.name.value}))[0]||null}function H(t){return t.definitions.filter((function(t){return"FragmentDefinition"===t.kind}))}function W(t){var e=U(t);return Object(o.b)(e&&"query"===e.operation,6),e}function Q(t){Object(o.b)("Document"===t.kind,7),Object(o.b)(t.definitions.length<=1,8);var e=t.definitions[0];return Object(o.b)("FragmentDefinition"===e.kind,9),e}function Y(t){var e;z(t);for(var n=0,r=t.definitions;n<r.length;n++){var l=r[n];if("OperationDefinition"===l.kind){var c=l.operation;if("query"===c||"mutation"===c||"subscription"===c)return l}"FragmentDefinition"!==l.kind||e||(e=l)}if(e)return e;throw new o.a(10)}function K(t){void 0===t&&(t=[]);var e={};return t.forEach((function(t){e[t.name.value]=t})),e}function X(t){if(t&&t.variableDefinitions&&t.variableDefinitions.length){var e=t.variableDefinitions.filter((function(t){return t.defaultValue})).map((function(t){var e=t.variable,n=t.defaultValue,r={};return v(r,e.name,n),r}));return B.apply(void 0,Object(l.b)([{}],e))}return{}}function J(t){var e=new Set;if(t.variableDefinitions)for(var n=0,r=t.variableDefinitions;n<r.length;n++){var o=r[n];e.add(o.variable.name.value)}return e}function Z(t,e,n){var r=0;return t.forEach((function(n,i){e.call(this,n,i,t)&&(t[r++]=n)}),n),t.length=r,t}var tt={kind:"Field",name:{kind:"Name",value:"__typename"}};function et(t,e){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&et(e[t.name.value],e)}))}function nt(t){return et(U(t)||Q(t),K(H(t)))?null:t}function it(t){return function(e){return t.some((function(t){return t.name&&t.name===e.name.value||t.test&&t.test(e)}))}}function ot(t,e){var n=Object.create(null),o=[],l=Object.create(null),c=[],f=nt(Object(r.b)(e,{Variable:{enter:function(t,e,r){"VariableDefinition"!==r.kind&&(n[t.name.value]=!0)}},Field:{enter:function(e){if(t&&e.directives&&(t.some((function(t){return t.remove}))&&e.directives&&e.directives.some(it(t))))return e.arguments&&e.arguments.forEach((function(t){"Variable"===t.value.kind&&o.push({name:t.value.name.value})})),e.selectionSet&&mt(e.selectionSet).forEach((function(t){c.push({name:t.name.value})})),null}},FragmentSpread:{enter:function(t){l[t.name.value]=!0}},Directive:{enter:function(e){if(it(t)(e))return null}}}));return f&&Z(o,(function(t){return!n[t.name]})).length&&(f=ht(o,f)),f&&Z(c,(function(t){return!l[t.name]})).length&&(f=pt(c,f)),f}function at(t){return Object(r.b)(z(t),{SelectionSet:{enter:function(t,e,n){if(!n||"OperationDefinition"!==n.kind){var r=t.selections;if(r)if(!r.some((function(t){return S(t)&&("__typename"===t.name.value||0===t.name.value.lastIndexOf("__",0))}))){var o=n;if(!(S(o)&&o.directives&&o.directives.some((function(t){return"export"===t.name.value}))))return Object(l.a)(Object(l.a)({},t),{selections:Object(l.b)(r,[tt])})}}}}})}var st={test:function(t){var e="connection"===t.name.value;return e&&(!t.arguments||t.arguments.some((function(t){return"key"===t.name.value}))),e}};function ut(t){return ot([st],z(t))}function lt(t,e,n){return void 0===n&&(n=!0),e&&e.selections&&e.selections.some((function(e){return ct(t,e,n)}))}function ct(t,e,n){return void 0===n&&(n=!0),!S(e)||!!e.directives&&(e.directives.some(it(t))||n&&lt(t,e.selectionSet,n))}function ft(t,e){var n;return z(e),nt(Object(r.b)(e,{SelectionSet:{enter:function(e,r,o,path){var c=path.join("-");if(!n||c===n||!c.startsWith(n)){if(e.selections){var f=e.selections.filter((function(e){return ct(t,e)}));return lt(t,e,!1)&&(n=c),Object(l.a)(Object(l.a)({},e),{selections:f})}return null}}}}))}function ht(t,e){var n=function(t){return function(e){return t.some((function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))}))}}(t);return nt(Object(r.b)(e,{OperationDefinition:{enter:function(e){return Object(l.a)(Object(l.a)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return!t.some((function(t){return t.name===e.variable.name.value}))}))})}},Field:{enter:function(e){if(t.some((function(t){return t.remove}))){var r=0;if(e.arguments.forEach((function(t){n(t)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(t){if(n(t))return null}}}))}function pt(t,e){function n(e){if(t.some((function(t){return t.name===e.name.value})))return null}return nt(Object(r.b)(e,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}function mt(t){var e=[];return t.selections.forEach((function(t){(S(t)||k(t))&&t.selectionSet?mt(t.selectionSet).forEach((function(t){return e.push(t)})):"FragmentSpread"===t.kind&&e.push(t)})),e}function vt(t){return"query"===Y(t).operation?t:Object(r.b)(t,{OperationDefinition:{enter:function(t){return Object(l.a)(Object(l.a)({},t),{operation:"query"})}}})}function yt(t){z(t);var e=ot([{test:function(t){return"client"===t.name.value},remove:!0}],t);return e&&(e=Object(r.b)(e,{FragmentDefinition:{enter:function(t){if(t.selectionSet&&t.selectionSet.selections.every((function(t){return S(t)&&"__typename"===t.name.value})))return null}}})),e}var gt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),bt=Object.prototype.toString;function _t(t){return wt(t,new Map)}function wt(t,e){switch(bt.call(t)){case"[object Array]":if(e.has(t))return e.get(t);var n=t.slice(0);return e.set(t,n),n.forEach((function(t,i){n[i]=wt(t,e)})),n;case"[object Object]":if(e.has(t))return e.get(t);var r=Object.create(Object.getPrototypeOf(t));return e.set(t,r),Object.keys(t).forEach((function(n){r[n]=wt(t[n],e)})),r;default:return t}}function xt(){return void 0!==t?"production":"development"}function Et(t){return xt()===t}function St(){return!0===Et("production")}function kt(){return!0===Et("development")}function At(){return!0===Et("test")}function Ot(t){try{return t()}catch(t){console.error&&console.error(t)}}function Tt(t){return t.errors&&t.errors.length}function Ct(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){null===t[e]||"object"!=typeof t[e]&&"function"!=typeof t[e]||Object.isFrozen(t[e])||Ct(t[e])})),t}function Pt(t){if((kt()||At())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return Ct(t);return t}var It=Object.prototype.hasOwnProperty;function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return jt(t)}function jt(t){var e=t[0]||{},n=t.length;if(n>1){var r=[];e=Rt(e,r);for(var i=1;i<n;++i)e=Ft(e,t[i],r)}return e}function Dt(t){return null!==t&&"object"==typeof t}function Ft(t,source,e){return Dt(source)&&Dt(t)?(Object.isExtensible&&!Object.isExtensible(t)&&(t=Rt(t,e)),Object.keys(source).forEach((function(n){var r=source[n];if(It.call(t,n)){var o=t[n];r!==o&&(t[n]=Ft(Rt(o,e),r,e))}else t[n]=r})),t):source}function Rt(t,e){return null!==t&&"object"==typeof t&&e.indexOf(t)<0&&(t=Array.isArray(t)?t.slice(0):Object(l.a)({__proto__:Object.getPrototypeOf(t)},t),e.push(t)),t}var Lt=Object.create({});function Nt(t,e){void 0===e&&(e="warn"),St()||Lt[t]||(At()||(Lt[t]=!0),"error"===e?console.error(t):console.warn(t))}function Bt(data){return JSON.parse(JSON.stringify(data))}}.call(this,n(62))},,,,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h}));var r=n(405),o="Invariant Violation",l=Object.setPrototypeOf,c=void 0===l?function(t,e){return t.__proto__=e,t}:l,f=function(t){function e(n){void 0===n&&(n=o);var r=t.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,c(r,e.prototype),r}return Object(r.a)(e,t),e}(Error);function h(t,e){if(!t)throw new f(e)}function d(t){return function(){return console[t].apply(console,arguments)}}!function(t){t.warn=d("warn"),t.error=d("error")}(h||(h={}));var m={env:{}};if("object"==typeof t)m=t;else try{Function("stub","process = stub")(m)}catch(t){}}).call(this,n(62))},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},,,,,,,,,,,,,,,,function(t,e,n){(function(t,r){var o;(function(){var l,c="Expected a function",f="__lodash_hash_undefined__",h="__lodash_placeholder__",d=16,m=32,v=64,y=128,_=256,w=1/0,x=9007199254740991,E=NaN,S=4294967295,k=[["ary",y],["bind",1],["bindKey",2],["curry",8],["curryRight",d],["flip",512],["partial",m],["partialRight",v],["rearg",_]],A="[object Arguments]",O="[object Array]",T="[object Boolean]",C="[object Date]",P="[object Error]",I="[object Function]",M="[object GeneratorFunction]",j="[object Map]",D="[object Number]",F="[object Object]",R="[object Promise]",L="[object RegExp]",N="[object Set]",B="[object String]",V="[object Symbol]",z="[object WeakMap]",U="[object ArrayBuffer]",$="[object DataView]",G="[object Float32Array]",H="[object Float64Array]",W="[object Int8Array]",Q="[object Int16Array]",Y="[object Int32Array]",K="[object Uint8Array]",X="[object Uint8ClampedArray]",J="[object Uint16Array]",Z="[object Uint32Array]",tt=/\b__p \+= '';/g,et=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,it=/&(?:amp|lt|gt|quot|#39);/g,ot=/[&<>"']/g,at=RegExp(it.source),st=RegExp(ot.source),ut=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,ct=/<%=([\s\S]+?)%>/g,ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ht=/^\w*$/,pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mt=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(mt.source),yt=/^\s+/,gt=/\s/,bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_t=/\{\n\/\* \[wrapped with (.+)\] \*/,wt=/,? & /,xt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Et=/[()=,{}\[\]\/\s]/,St=/\\(\\)?/g,kt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,At=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,Ct=/^\[object .+?Constructor\]$/,Pt=/^0o[0-7]+$/i,It=/^(?:0|[1-9]\d*)$/,Mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jt=/($^)/,Dt=/['\n\r\u2028\u2029\\]/g,Ft="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rt="\\u2700-\\u27bf",Lt="a-z\\xdf-\\xf6\\xf8-\\xff",Nt="A-Z\\xc0-\\xd6\\xd8-\\xde",Bt="\\ufe0e\\ufe0f",Vt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zt="['’]",qt="[\\ud800-\\udfff]",Ut="["+Vt+"]",$t="["+Ft+"]",Gt="\\d+",Ht="[\\u2700-\\u27bf]",Wt="["+Lt+"]",Qt="[^\\ud800-\\udfff"+Vt+Gt+Rt+Lt+Nt+"]",Yt="\\ud83c[\\udffb-\\udfff]",Kt="[^\\ud800-\\udfff]",Xt="(?:\\ud83c[\\udde6-\\uddff]){2}",Jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="["+Nt+"]",te="(?:"+Wt+"|"+Qt+")",ee="(?:"+Zt+"|"+Qt+")",ne="(?:['’](?:d|ll|m|re|s|t|ve))?",re="(?:['’](?:D|LL|M|RE|S|T|VE))?",ie="(?:"+$t+"|"+Yt+")"+"?",oe="[\\ufe0e\\ufe0f]?",ae=oe+ie+("(?:\\u200d(?:"+[Kt,Xt,Jt].join("|")+")"+oe+ie+")*"),se="(?:"+[Ht,Xt,Jt].join("|")+")"+ae,ue="(?:"+[Kt+$t+"?",$t,Xt,Jt,qt].join("|")+")",le=RegExp(zt,"g"),ce=RegExp($t,"g"),fe=RegExp(Yt+"(?="+Yt+")|"+ue+ae,"g"),he=RegExp([Zt+"?"+Wt+"+"+ne+"(?="+[Ut,Zt,"$"].join("|")+")",ee+"+"+re+"(?="+[Ut,Zt+te,"$"].join("|")+")",Zt+"?"+te+"+"+ne,Zt+"+"+re,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gt,se].join("|"),"g"),pe=RegExp("[\\u200d\\ud800-\\udfff"+Ft+Bt+"]"),de=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,me=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ve=-1,ye={};ye[G]=ye[H]=ye[W]=ye[Q]=ye[Y]=ye[K]=ye[X]=ye[J]=ye[Z]=!0,ye[A]=ye[O]=ye[U]=ye[T]=ye[$]=ye[C]=ye[P]=ye[I]=ye[j]=ye[D]=ye[F]=ye[L]=ye[N]=ye[B]=ye[z]=!1;var ge={};ge[A]=ge[O]=ge[U]=ge[$]=ge[T]=ge[C]=ge[G]=ge[H]=ge[W]=ge[Q]=ge[Y]=ge[j]=ge[D]=ge[F]=ge[L]=ge[N]=ge[B]=ge[V]=ge[K]=ge[X]=ge[J]=ge[Z]=!0,ge[P]=ge[I]=ge[z]=!1;var be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_e=parseFloat,we=parseInt,xe="object"==typeof t&&t&&t.Object===Object&&t,Ee="object"==typeof self&&self&&self.Object===Object&&self,Se=xe||Ee||Function("return this")(),ke=e&&!e.nodeType&&e,Ae=ke&&"object"==typeof r&&r&&!r.nodeType&&r,Oe=Ae&&Ae.exports===ke,Te=Oe&&xe.process,Ce=function(){try{var t=Ae&&Ae.require&&Ae.require("util").types;return t||Te&&Te.binding&&Te.binding("util")}catch(t){}}(),Pe=Ce&&Ce.isArrayBuffer,Ie=Ce&&Ce.isDate,Me=Ce&&Ce.isMap,je=Ce&&Ce.isRegExp,De=Ce&&Ce.isSet,Fe=Ce&&Ce.isTypedArray;function Re(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Le(t,e,n,r){for(var o=-1,l=null==t?0:t.length;++o<l;){var c=t[o];e(r,c,n(c),t)}return r}function Ne(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Be(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ve(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ze(t,e){for(var n=-1,r=null==t?0:t.length,o=0,l=[];++n<r;){var c=t[n];e(c,n,t)&&(l[o++]=c)}return l}function qe(t,e){return!!(null==t?0:t.length)&&Je(t,e,0)>-1}function Ue(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function $e(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Ge(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function He(t,e,n,r){var o=-1,l=null==t?0:t.length;for(r&&l&&(n=t[++o]);++o<l;)n=e(n,t[o],o,t);return n}function We(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Qe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ye=nn("length");function Ke(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Xe(t,e,n,r){for(var o=t.length,l=n+(r?1:-1);r?l--:++l<o;)if(e(t[l],l,t))return l;return-1}function Je(t,e,n){return e==e?function(t,e,n){var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Xe(t,tn,n)}function Ze(t,e,n,r){for(var o=n-1,l=t.length;++o<l;)if(r(t[o],e))return o;return-1}function tn(t){return t!=t}function en(t,e){var n=null==t?0:t.length;return n?an(t,e)/n:E}function nn(t){return function(object){return null==object?l:object[t]}}function rn(object){return function(t){return null==object?l:object[t]}}function on(t,e,n,r,o){return o(t,(function(t,o,l){n=r?(r=!1,t):e(n,t,o,l)})),n}function an(t,e){for(var n,r=-1,o=t.length;++r<o;){var c=e(t[r]);c!==l&&(n=n===l?c:n+c)}return n}function sn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function un(t){return t?t.slice(0,An(t)+1).replace(yt,""):t}function ln(t){return function(e){return t(e)}}function cn(object,t){return $e(t,(function(t){return object[t]}))}function fn(t,e){return t.has(e)}function hn(t,e){for(var n=-1,r=t.length;++n<r&&Je(e,t[n],0)>-1;);return n}function pn(t,e){for(var n=t.length;n--&&Je(e,t[n],0)>-1;);return n}function dn(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var mn=rn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),vn=rn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function yn(t){return"\\"+be[t]}function gn(t){return pe.test(t)}function bn(map){var t=-1,e=Array(map.size);return map.forEach((function(n,r){e[++t]=[r,n]})),e}function _n(t,e){return function(n){return t(e(n))}}function wn(t,e){for(var n=-1,r=t.length,o=0,l=[];++n<r;){var c=t[n];c!==e&&c!==h||(t[n]=h,l[o++]=n)}return l}function xn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function En(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function Sn(t){return gn(t)?function(t){var e=fe.lastIndex=0;for(;fe.test(t);)++e;return e}(t):Ye(t)}function kn(t){return gn(t)?function(t){return t.match(fe)||[]}(t):function(t){return t.split("")}(t)}function An(t){for(var e=t.length;e--&&gt.test(t.charAt(e)););return e}var On=rn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Tn=function t(e){var n,r=(e=null==e?Se:Tn.defaults(Se.Object(),e,Tn.pick(Se,me))).Array,o=e.Date,gt=e.Error,Ft=e.Function,Rt=e.Math,Lt=e.Object,Nt=e.RegExp,Bt=e.String,Vt=e.TypeError,zt=r.prototype,qt=Ft.prototype,Ut=Lt.prototype,$t=e["__core-js_shared__"],Gt=qt.toString,Ht=Ut.hasOwnProperty,Wt=0,Qt=(n=/[^.]+$/.exec($t&&$t.keys&&$t.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Yt=Ut.toString,Kt=Gt.call(Lt),Xt=Se._,Jt=Nt("^"+Gt.call(Ht).replace(mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zt=Oe?e.Buffer:l,te=e.Symbol,ee=e.Uint8Array,ne=Zt?Zt.allocUnsafe:l,re=_n(Lt.getPrototypeOf,Lt),ie=Lt.create,oe=Ut.propertyIsEnumerable,ae=zt.splice,se=te?te.isConcatSpreadable:l,ue=te?te.iterator:l,fe=te?te.toStringTag:l,pe=function(){try{var t=To(Lt,"defineProperty");return t({},"",{}),t}catch(t){}}(),be=e.clearTimeout!==Se.clearTimeout&&e.clearTimeout,xe=o&&o.now!==Se.Date.now&&o.now,Ee=e.setTimeout!==Se.setTimeout&&e.setTimeout,ke=Rt.ceil,Ae=Rt.floor,Te=Lt.getOwnPropertySymbols,Ce=Zt?Zt.isBuffer:l,Ye=e.isFinite,rn=zt.join,Cn=_n(Lt.keys,Lt),Pn=Rt.max,In=Rt.min,Mn=o.now,jn=e.parseInt,Dn=Rt.random,Fn=zt.reverse,Rn=To(e,"DataView"),Ln=To(e,"Map"),Nn=To(e,"Promise"),Bn=To(e,"Set"),Vn=To(e,"WeakMap"),zn=To(Lt,"create"),qn=Vn&&new Vn,Un={},$n=ea(Rn),Gn=ea(Ln),Hn=ea(Nn),Wn=ea(Bn),Qn=ea(Vn),Yn=te?te.prototype:l,Kn=Yn?Yn.valueOf:l,Xn=Yn?Yn.toString:l;function Jn(t){if(vs(t)&&!os(t)&&!(t instanceof rr)){if(t instanceof nr)return t;if(Ht.call(t,"__wrapped__"))return na(t)}return new nr(t)}var Zn=function(){function object(){}return function(t){if(!ms(t))return{};if(ie)return ie(t);object.prototype=t;var e=new object;return object.prototype=l,e}}();function er(){}function nr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=l}function rr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function ir(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function or(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ar(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function sr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ar;++e<n;)this.add(t[e])}function ur(t){var data=this.__data__=new or(t);this.size=data.size}function lr(t,e){var n=os(t),r=!n&&is(t),o=!n&&!r&&ls(t),l=!n&&!r&&!o&&Ss(t),c=n||r||o||l,f=c?sn(t.length,Bt):[],h=f.length;for(var d in t)!e&&!Ht.call(t,d)||c&&("length"==d||o&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Fo(d,h))||f.push(d);return f}function cr(t){var e=t.length;return e?t[ci(0,e-1)]:l}function fr(t,e){return Jo(Gi(t),xr(e,0,t.length))}function pr(t){return Jo(Gi(t))}function dr(object,t,e){(e!==l&&!es(object[t],e)||e===l&&!(t in object))&&_r(object,t,e)}function mr(object,t,e){var n=object[t];Ht.call(object,t)&&es(n,e)&&(e!==l||t in object)||_r(object,t,e)}function vr(t,e){for(var n=t.length;n--;)if(es(t[n][0],e))return n;return-1}function yr(t,e,n,r){return Or(t,(function(t,o,l){e(r,t,n(t),l)})),r}function gr(object,source){return object&&Hi(source,Hs(source),object)}function _r(object,t,e){"__proto__"==t&&pe?pe(object,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):object[t]=e}function wr(object,t){for(var e=-1,n=t.length,o=r(n),c=null==object;++e<n;)o[e]=c?l:zs(object,t[e]);return o}function xr(t,e,n){return t==t&&(n!==l&&(t=t<=n?t:n),e!==l&&(t=t>=e?t:e)),t}function Er(t,e,n,r,object,o){var c,f=1&e,h=2&e,d=4&e;if(n&&(c=object?n(t,r,object,o):n(t)),c!==l)return c;if(!ms(t))return t;var m=os(t);if(m){if(c=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Ht.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!f)return Gi(t,c)}else{var v=Io(t),y=v==I||v==M;if(ls(t))return Bi(t,f);if(v==F||v==A||y&&!object){if(c=h||y?{}:jo(t),!f)return h?function(source,object){return Hi(source,Po(source),object)}(t,function(object,source){return object&&Hi(source,Ws(source),object)}(c,t)):function(source,object){return Hi(source,Co(source),object)}(t,gr(c,t))}else{if(!ge[v])return object?t:{};c=function(object,t,e){var n=object.constructor;switch(t){case U:return Vi(object);case T:case C:return new n(+object);case $:return function(t,e){var n=e?Vi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(object,e);case G:case H:case W:case Q:case Y:case K:case X:case J:case Z:return zi(object,e);case j:return new n;case D:case B:return new n(object);case L:return function(t){var e=new t.constructor(t.source,At.exec(t));return e.lastIndex=t.lastIndex,e}(object);case N:return new n;case V:return symbol=object,Kn?Lt(Kn.call(symbol)):{}}var symbol}(t,v,f)}}o||(o=new ur);var _=o.get(t);if(_)return _;o.set(t,c),ws(t)?t.forEach((function(r){c.add(Er(r,e,n,r,t,o))})):ys(t)&&t.forEach((function(r,l){c.set(l,Er(r,e,n,l,t,o))}));var w=m?l:(d?h?wo:_o:h?Ws:Hs)(t);return Ne(w||t,(function(r,l){w&&(r=t[l=r]),mr(c,l,Er(r,e,n,l,t,o))})),c}function Sr(object,source,t){var e=t.length;if(null==object)return!e;for(object=Lt(object);e--;){var n=t[e],r=source[n],o=object[n];if(o===l&&!(n in object)||!r(o))return!1}return!0}function kr(t,e,n){if("function"!=typeof t)throw new Vt(c);return Qo((function(){t.apply(l,n)}),e)}function Ar(t,e,n,r){var o=-1,l=qe,c=!0,f=t.length,h=[],d=e.length;if(!f)return h;n&&(e=$e(e,ln(n))),r?(l=Ue,c=!1):e.length>=200&&(l=fn,c=!1,e=new sr(e));t:for(;++o<f;){var m=t[o],v=null==n?m:n(m);if(m=r||0!==m?m:0,c&&v==v){for(var y=d;y--;)if(e[y]===v)continue t;h.push(m)}else l(e,v,r)||h.push(m)}return h}Jn.templateSettings={escape:ut,evaluate:lt,interpolate:ct,variable:"",imports:{_:Jn}},Jn.prototype=er.prototype,Jn.prototype.constructor=Jn,nr.prototype=Zn(er.prototype),nr.prototype.constructor=nr,rr.prototype=Zn(er.prototype),rr.prototype.constructor=rr,ir.prototype.clear=function(){this.__data__=zn?zn(null):{},this.size=0},ir.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ir.prototype.get=function(t){var data=this.__data__;if(zn){var e=data[t];return e===f?l:e}return Ht.call(data,t)?data[t]:l},ir.prototype.has=function(t){var data=this.__data__;return zn?data[t]!==l:Ht.call(data,t)},ir.prototype.set=function(t,e){var data=this.__data__;return this.size+=this.has(t)?0:1,data[t]=zn&&e===l?f:e,this},or.prototype.clear=function(){this.__data__=[],this.size=0},or.prototype.delete=function(t){var data=this.__data__,e=vr(data,t);return!(e<0)&&(e==data.length-1?data.pop():ae.call(data,e,1),--this.size,!0)},or.prototype.get=function(t){var data=this.__data__,e=vr(data,t);return e<0?l:data[e][1]},or.prototype.has=function(t){return vr(this.__data__,t)>-1},or.prototype.set=function(t,e){var data=this.__data__,n=vr(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this},ar.prototype.clear=function(){this.size=0,this.__data__={hash:new ir,map:new(Ln||or),string:new ir}},ar.prototype.delete=function(t){var e=Ao(this,t).delete(t);return this.size-=e?1:0,e},ar.prototype.get=function(t){return Ao(this,t).get(t)},ar.prototype.has=function(t){return Ao(this,t).has(t)},ar.prototype.set=function(t,e){var data=Ao(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this},sr.prototype.add=sr.prototype.push=function(t){return this.__data__.set(t,f),this},sr.prototype.has=function(t){return this.__data__.has(t)},ur.prototype.clear=function(){this.__data__=new or,this.size=0},ur.prototype.delete=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e},ur.prototype.get=function(t){return this.__data__.get(t)},ur.prototype.has=function(t){return this.__data__.has(t)},ur.prototype.set=function(t,e){var data=this.__data__;if(data instanceof or){var n=data.__data__;if(!Ln||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new ar(n)}return data.set(t,e),this.size=data.size,this};var Or=Yi(Fr),Tr=Yi(Rr,!0);function Cr(t,e){var n=!0;return Or(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function Pr(t,e,n){for(var r=-1,o=t.length;++r<o;){var c=t[r],f=e(c);if(null!=f&&(h===l?f==f&&!Es(f):n(f,h)))var h=f,d=c}return d}function Ir(t,e){var n=[];return Or(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function Mr(t,e,n,r,o){var l=-1,c=t.length;for(n||(n=Do),o||(o=[]);++l<c;){var f=t[l];e>0&&n(f)?e>1?Mr(f,e-1,n,r,o):Ge(o,f):r||(o[o.length]=f)}return o}var jr=Ki(),Dr=Ki(!0);function Fr(object,t){return object&&jr(object,t,Hs)}function Rr(object,t){return object&&Dr(object,t,Hs)}function Lr(object,t){return ze(t,(function(t){return hs(object[t])}))}function Nr(object,path){for(var t=0,e=(path=Fi(path,object)).length;null!=object&&t<e;)object=object[ta(path[t++])];return t&&t==e?object:l}function Br(object,t,e){var n=t(object);return os(object)?n:Ge(n,e(object))}function Vr(t){return null==t?t===l?"[object Undefined]":"[object Null]":fe&&fe in Lt(t)?function(t){var e=Ht.call(t,fe),n=t[fe];try{t[fe]=l;var r=!0}catch(t){}var o=Yt.call(t);r&&(e?t[fe]=n:delete t[fe]);return o}(t):function(t){return Yt.call(t)}(t)}function zr(t,e){return t>e}function qr(object,t){return null!=object&&Ht.call(object,t)}function Ur(object,t){return null!=object&&t in Lt(object)}function $r(t,e,n){for(var o=n?Ue:qe,c=t[0].length,f=t.length,h=f,d=r(f),m=1/0,v=[];h--;){var y=t[h];h&&e&&(y=$e(y,ln(e))),m=In(y.length,m),d[h]=!n&&(e||c>=120&&y.length>=120)?new sr(h&&y):l}y=t[0];var _=-1,w=d[0];t:for(;++_<c&&v.length<m;){var x=y[_],E=e?e(x):x;if(x=n||0!==x?x:0,!(w?fn(w,E):o(v,E,n))){for(h=f;--h;){var S=d[h];if(!(S?fn(S,E):o(t[h],E,n)))continue t}w&&w.push(E),v.push(x)}}return v}function Gr(object,path,t){var e=null==(object=$o(object,path=Fi(path,object)))?object:object[ta(ha(path))];return null==e?l:Re(e,object,t)}function Hr(t){return vs(t)&&Vr(t)==A}function Wr(t,e,n,r,o){return t===e||(null==t||null==e||!vs(t)&&!vs(e)?t!=t&&e!=e:function(object,t,e,n,r,o){var c=os(object),f=os(t),h=c?O:Io(object),d=f?O:Io(t),m=(h=h==A?F:h)==F,v=(d=d==A?F:d)==F,y=h==d;if(y&&ls(object)){if(!ls(t))return!1;c=!0,m=!1}if(y&&!m)return o||(o=new ur),c||Ss(object)?go(object,t,e,n,r,o):function(object,t,e,n,r,o,l){switch(e){case $:if(object.byteLength!=t.byteLength||object.byteOffset!=t.byteOffset)return!1;object=object.buffer,t=t.buffer;case U:return!(object.byteLength!=t.byteLength||!o(new ee(object),new ee(t)));case T:case C:case D:return es(+object,+t);case P:return object.name==t.name&&object.message==t.message;case L:case B:return object==t+"";case j:var c=bn;case N:var f=1&n;if(c||(c=xn),object.size!=t.size&&!f)return!1;var h=l.get(object);if(h)return h==t;n|=2,l.set(object,t);var d=go(c(object),c(t),n,r,o,l);return l.delete(object),d;case V:if(Kn)return Kn.call(object)==Kn.call(t)}return!1}(object,t,h,e,n,r,o);if(!(1&e)){var _=m&&Ht.call(object,"__wrapped__"),w=v&&Ht.call(t,"__wrapped__");if(_||w){var x=_?object.value():object,E=w?t.value():t;return o||(o=new ur),r(x,E,e,n,o)}}if(!y)return!1;return o||(o=new ur),function(object,t,e,n,r,o){var c=1&e,f=_o(object),h=f.length,d=_o(t).length;if(h!=d&&!c)return!1;var m=h;for(;m--;){var v=f[m];if(!(c?v in t:Ht.call(t,v)))return!1}var y=o.get(object),_=o.get(t);if(y&&_)return y==t&&_==object;var w=!0;o.set(object,t),o.set(t,object);var x=c;for(;++m<h;){var E=object[v=f[m]],S=t[v];if(n)var k=c?n(S,E,v,t,object,o):n(E,S,v,object,t,o);if(!(k===l?E===S||r(E,S,e,n,o):k)){w=!1;break}x||(x="constructor"==v)}if(w&&!x){var A=object.constructor,O=t.constructor;A==O||!("constructor"in object)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof O&&O instanceof O||(w=!1)}return o.delete(object),o.delete(t),w}(object,t,e,n,r,o)}(t,e,n,r,Wr,o))}function Qr(object,source,t,e){var n=t.length,r=n,o=!e;if(null==object)return!r;for(object=Lt(object);n--;){var data=t[n];if(o&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++n<r;){var c=(data=t[n])[0],f=object[c],h=data[1];if(o&&data[2]){if(f===l&&!(c in object))return!1}else{var d=new ur;if(e)var m=e(f,h,c,object,source,d);if(!(m===l?Wr(h,f,3,e,d):m))return!1}}return!0}function Yr(t){return!(!ms(t)||(e=t,Qt&&Qt in e))&&(hs(t)?Jt:Ct).test(ea(t));var e}function Kr(t){return"function"==typeof t?t:null==t?gu:"object"==typeof t?os(t)?ni(t[0],t[1]):ei(t):Ou(t)}function Xr(object){if(!Vo(object))return Cn(object);var t=[];for(var e in Lt(object))Ht.call(object,e)&&"constructor"!=e&&t.push(e);return t}function Jr(object){if(!ms(object))return function(object){var t=[];if(null!=object)for(var e in Lt(object))t.push(e);return t}(object);var t=Vo(object),e=[];for(var n in object)("constructor"!=n||!t&&Ht.call(object,n))&&e.push(n);return e}function Zr(t,e){return t<e}function ti(t,e){var n=-1,o=ss(t)?r(t.length):[];return Or(t,(function(t,r,l){o[++n]=e(t,r,l)})),o}function ei(source){var t=Oo(source);return 1==t.length&&t[0][2]?qo(t[0][0],t[0][1]):function(object){return object===source||Qr(object,source,t)}}function ni(path,t){return Lo(path)&&zo(t)?qo(ta(path),t):function(object){var e=zs(object,path);return e===l&&e===t?qs(object,path):Wr(t,e,3)}}function ri(object,source,t,e,n){object!==source&&jr(source,(function(r,o){if(n||(n=new ur),ms(r))!function(object,source,t,e,n,r,o){var c=Ho(object,t),f=Ho(source,t),h=o.get(f);if(h)return void dr(object,t,h);var d=r?r(c,f,t+"",object,source,o):l,m=d===l;if(m){var v=os(f),y=!v&&ls(f),_=!v&&!y&&Ss(f);d=f,v||y||_?os(c)?d=c:us(c)?d=Gi(c):y?(m=!1,d=Bi(f,!0)):_?(m=!1,d=zi(f,!0)):d=[]:bs(f)||is(f)?(d=c,is(c)?d=Ms(c):ms(c)&&!hs(c)||(d=jo(f))):m=!1}m&&(o.set(f,d),n(d,f,e,r,o),o.delete(f));dr(object,t,d)}(object,source,o,t,ri,e,n);else{var c=e?e(Ho(object,o),r,o+"",object,source,n):l;c===l&&(c=r),dr(object,o,c)}}),Ws)}function ii(t,e){var n=t.length;if(n)return Fo(e+=e<0?n:0,n)?t[e]:l}function oi(t,e,n){e=e.length?$e(e,(function(t){return os(t)?function(e){return Nr(e,1===t.length?t[0]:t)}:t})):[gu];var r=-1;e=$e(e,ln(ko()));var o=ti(t,(function(t,n,o){var l=$e(e,(function(e){return e(t)}));return{criteria:l,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,(function(object,t){return function(object,t,e){var n=-1,r=object.criteria,o=t.criteria,l=r.length,c=e.length;for(;++n<l;){var f=qi(r[n],o[n]);if(f)return n>=c?f:f*("desc"==e[n]?-1:1)}return object.index-t.index}(object,t,n)}))}function ai(object,t,e){for(var n=-1,r=t.length,o={};++n<r;){var path=t[n],l=Nr(object,path);e(l,path)&&mi(o,Fi(path,object),l)}return o}function si(t,e,n,r){var o=r?Ze:Je,l=-1,c=e.length,f=t;for(t===e&&(e=Gi(e)),n&&(f=$e(t,ln(n)));++l<c;)for(var h=0,d=e[l],m=n?n(d):d;(h=o(f,m,h,r))>-1;)f!==t&&ae.call(f,h,1),ae.call(t,h,1);return t}function ui(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==l){var l=o;Fo(o)?ae.call(t,o,1):Oi(t,o)}}return t}function ci(t,e){return t+Ae(Dn()*(e-t+1))}function fi(t,e){var n="";if(!t||e<1||e>x)return n;do{e%2&&(n+=t),(e=Ae(e/2))&&(t+=t)}while(e);return n}function hi(t,e){return Yo(Uo(t,e,gu),t+"")}function pi(t){return cr(eu(t))}function di(t,e){var n=eu(t);return Jo(n,xr(e,0,n.length))}function mi(object,path,t,e){if(!ms(object))return object;for(var n=-1,r=(path=Fi(path,object)).length,o=r-1,c=object;null!=c&&++n<r;){var f=ta(path[n]),h=t;if("__proto__"===f||"constructor"===f||"prototype"===f)return object;if(n!=o){var d=c[f];(h=e?e(d,f,c):l)===l&&(h=ms(d)?d:Fo(path[n+1])?[]:{})}mr(c,f,h),c=c[f]}return object}var vi=qn?function(t,data){return qn.set(t,data),t}:gu,yi=pe?function(t,e){return pe(t,"toString",{configurable:!0,enumerable:!1,value:mu(e),writable:!0})}:gu;function gi(t){return Jo(eu(t))}function bi(t,e,n){var o=-1,l=t.length;e<0&&(e=-e>l?0:l+e),(n=n>l?l:n)<0&&(n+=l),l=e>n?0:n-e>>>0,e>>>=0;for(var c=r(l);++o<l;)c[o]=t[o+e];return c}function _i(t,e){var n;return Or(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function wi(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var l=r+o>>>1,c=t[l];null!==c&&!Es(c)&&(n?c<=e:c<e)?r=l+1:o=l}return o}return xi(t,e,gu,n)}function xi(t,e,n,r){var o=0,c=null==t?0:t.length;if(0===c)return 0;for(var f=(e=n(e))!=e,h=null===e,d=Es(e),m=e===l;o<c;){var v=Ae((o+c)/2),y=n(t[v]),_=y!==l,w=null===y,x=y==y,E=Es(y);if(f)var S=r||x;else S=m?x&&(r||_):h?x&&_&&(r||!w):d?x&&_&&!w&&(r||!E):!w&&!E&&(r?y<=e:y<e);S?o=v+1:c=v}return In(c,4294967294)}function Ei(t,e){for(var n=-1,r=t.length,o=0,l=[];++n<r;){var c=t[n],f=e?e(c):c;if(!n||!es(f,h)){var h=f;l[o++]=0===c?0:c}}return l}function Si(t){return"number"==typeof t?t:Es(t)?E:+t}function ki(t){if("string"==typeof t)return t;if(os(t))return $e(t,ki)+"";if(Es(t))return Xn?Xn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ai(t,e,n){var r=-1,o=qe,l=t.length,c=!0,f=[],h=f;if(n)c=!1,o=Ue;else if(l>=200){var d=e?null:fo(t);if(d)return xn(d);c=!1,o=fn,h=new sr}else h=e?[]:f;t:for(;++r<l;){var m=t[r],v=e?e(m):m;if(m=n||0!==m?m:0,c&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue t;e&&h.push(v),f.push(m)}else o(h,v,n)||(h!==f&&h.push(v),f.push(m))}return f}function Oi(object,path){return null==(object=$o(object,path=Fi(path,object)))||delete object[ta(ha(path))]}function Ti(object,path,t,e){return mi(object,path,t(Nr(object,path)),e)}function Ci(t,e,n,r){for(var o=t.length,l=r?o:-1;(r?l--:++l<o)&&e(t[l],l,t););return n?bi(t,r?0:l,r?l+1:o):bi(t,r?l+1:0,r?o:l)}function Pi(t,e){var n=t;return n instanceof rr&&(n=n.value()),He(e,(function(t,e){return e.func.apply(e.thisArg,Ge([t],e.args))}),n)}function Ii(t,e,n){var o=t.length;if(o<2)return o?Ai(t[0]):[];for(var l=-1,c=r(o);++l<o;)for(var f=t[l],h=-1;++h<o;)h!=l&&(c[l]=Ar(c[l]||f,t[h],e,n));return Ai(Mr(c,1),e,n)}function Mi(t,e,n){for(var r=-1,o=t.length,c=e.length,f={};++r<o;){var h=r<c?e[r]:l;n(f,t[r],h)}return f}function ji(t){return us(t)?t:[]}function Di(t){return"function"==typeof t?t:gu}function Fi(t,object){return os(t)?t:Lo(t,object)?[t]:Zo(js(t))}var Ri=hi;function Li(t,e,n){var r=t.length;return n=n===l?r:n,!e&&n>=r?t:bi(t,e,n)}var Ni=be||function(t){return Se.clearTimeout(t)};function Bi(t,e){if(e)return t.slice();var n=t.length,r=ne?ne(n):new t.constructor(n);return t.copy(r),r}function Vi(t){var e=new t.constructor(t.byteLength);return new ee(e).set(new ee(t)),e}function zi(t,e){var n=e?Vi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function qi(t,e){if(t!==e){var n=t!==l,r=null===t,o=t==t,c=Es(t),f=e!==l,h=null===e,d=e==e,m=Es(e);if(!h&&!m&&!c&&t>e||c&&f&&d&&!h&&!m||r&&f&&d||!n&&d||!o)return 1;if(!r&&!c&&!m&&t<e||m&&n&&o&&!r&&!c||h&&n&&o||!f&&o||!d)return-1}return 0}function Ui(t,e,n,o){for(var l=-1,c=t.length,f=n.length,h=-1,d=e.length,m=Pn(c-f,0),v=r(d+m),y=!o;++h<d;)v[h]=e[h];for(;++l<f;)(y||l<c)&&(v[n[l]]=t[l]);for(;m--;)v[h++]=t[l++];return v}function $i(t,e,n,o){for(var l=-1,c=t.length,f=-1,h=n.length,d=-1,m=e.length,v=Pn(c-h,0),y=r(v+m),_=!o;++l<v;)y[l]=t[l];for(var w=l;++d<m;)y[w+d]=e[d];for(;++f<h;)(_||l<c)&&(y[w+n[f]]=t[l++]);return y}function Gi(source,t){var e=-1,n=source.length;for(t||(t=r(n));++e<n;)t[e]=source[e];return t}function Hi(source,t,object,e){var n=!object;object||(object={});for(var r=-1,o=t.length;++r<o;){var c=t[r],f=e?e(object[c],source[c],c,object,source):l;f===l&&(f=source[c]),n?_r(object,c,f):mr(object,c,f)}return object}function Wi(t,e){return function(n,r){var o=os(n)?Le:yr,l=e?e():{};return o(n,t,ko(r,2),l)}}function Qi(t){return hi((function(object,e){var n=-1,r=e.length,o=r>1?e[r-1]:l,c=r>2?e[2]:l;for(o=t.length>3&&"function"==typeof o?(r--,o):l,c&&Ro(e[0],e[1],c)&&(o=r<3?l:o,r=1),object=Lt(object);++n<r;){var source=e[n];source&&t(object,source,n,o)}return object}))}function Yi(t,e){return function(n,r){if(null==n)return n;if(!ss(n))return t(n,r);for(var o=n.length,l=e?o:-1,c=Lt(n);(e?l--:++l<o)&&!1!==r(c[l],l,c););return n}}function Ki(t){return function(object,e,n){for(var r=-1,o=Lt(object),l=n(object),c=l.length;c--;){var f=l[t?c:++r];if(!1===e(o[f],f,o))break}return object}}function Xi(t){return function(e){var n=gn(e=js(e))?kn(e):l,r=n?n[0]:e.charAt(0),o=n?Li(n,1).join(""):e.slice(1);return r[t]()+o}}function Ji(t){return function(e){return He(hu(iu(e).replace(le,"")),t,"")}}function Zi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Zn(t.prototype),r=t.apply(n,e);return ms(r)?r:n}}function to(t){return function(e,n,r){var o=Lt(e);if(!ss(e)){var c=ko(n,3);e=Hs(e),n=function(t){return c(o[t],t,o)}}var f=t(e,n,r);return f>-1?o[c?e[f]:f]:l}}function eo(t){return bo((function(e){var n=e.length,r=n,o=nr.prototype.thru;for(t&&e.reverse();r--;){var f=e[r];if("function"!=typeof f)throw new Vt(c);if(o&&!h&&"wrapper"==Eo(f))var h=new nr([],!0)}for(r=h?r:n;++r<n;){var d=Eo(f=e[r]),data="wrapper"==d?xo(f):l;h=data&&No(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?h[Eo(data[0])].apply(h,data[3]):1==f.length&&No(f)?h[d]():h.thru(f)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&os(r))return h.plant(r).value();for(var o=0,l=n?e[o].apply(this,t):r;++o<n;)l=e[o].call(this,l);return l}}))}function no(t,e,n,o,c,f,h,d,m,v){var _=e&y,w=1&e,x=2&e,E=24&e,S=512&e,k=x?l:Zi(t);return function l(){for(var y=arguments.length,A=r(y),O=y;O--;)A[O]=arguments[O];if(E)var T=So(l),C=dn(A,T);if(o&&(A=Ui(A,o,c,E)),f&&(A=$i(A,f,h,E)),y-=C,E&&y<v){var P=wn(A,T);return lo(t,e,no,l.placeholder,n,A,P,d,m,v-y)}var I=w?n:this,M=x?I[t]:t;return y=A.length,d?A=Go(A,d):S&&y>1&&A.reverse(),_&&m<y&&(A.length=m),this&&this!==Se&&this instanceof l&&(M=k||Zi(M)),M.apply(I,A)}}function ro(t,e){return function(object,n){return function(object,t,e,n){return Fr(object,(function(r,o,object){t(n,e(r),o,object)})),n}(object,t,e(n),{})}}function io(t,e){return function(n,r){var o;if(n===l&&r===l)return e;if(n!==l&&(o=n),r!==l){if(o===l)return r;"string"==typeof n||"string"==typeof r?(n=ki(n),r=ki(r)):(n=Si(n),r=Si(r)),o=t(n,r)}return o}}function oo(t){return bo((function(e){return e=$e(e,ln(ko())),hi((function(n){var r=this;return t(e,(function(t){return Re(t,r,n)}))}))}))}function ao(t,e){var n=(e=e===l?" ":ki(e)).length;if(n<2)return n?fi(e,t):e;var r=fi(e,ke(t/Sn(e)));return gn(e)?Li(kn(r),0,t).join(""):r.slice(0,t)}function so(t){return function(e,n,o){return o&&"number"!=typeof o&&Ro(e,n,o)&&(n=o=l),e=Ts(e),n===l?(n=e,e=0):n=Ts(n),function(t,e,n,o){for(var l=-1,c=Pn(ke((e-t)/(n||1)),0),f=r(c);c--;)f[o?c:++l]=t,t+=n;return f}(e,n,o=o===l?e<n?1:-1:Ts(o),t)}}function uo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Is(e),n=Is(n)),t(e,n)}}function lo(t,e,n,r,o,c,f,h,d,y){var _=8&e;e|=_?m:v,4&(e&=~(_?v:m))||(e&=-4);var w=[t,e,o,_?c:l,_?f:l,_?l:c,_?l:f,h,d,y],x=n.apply(l,w);return No(t)&&Wo(x,w),x.placeholder=r,Ko(x,t,e)}function co(t){var e=Rt[t];return function(t,n){if(t=Is(t),(n=null==n?0:In(Cs(n),292))&&Ye(t)){var r=(js(t)+"e").split("e");return+((r=(js(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var fo=Bn&&1/xn(new Bn([,-0]))[1]==w?function(t){return new Bn(t)}:Eu;function ho(t){return function(object){var e=Io(object);return e==j?bn(object):e==N?En(object):function(object,t){return $e(t,(function(t){return[t,object[t]]}))}(object,t(object))}}function po(t,e,n,o,f,w,x,E){var S=2&e;if(!S&&"function"!=typeof t)throw new Vt(c);var k=o?o.length:0;if(k||(e&=-97,o=f=l),x=x===l?x:Pn(Cs(x),0),E=E===l?E:Cs(E),k-=f?f.length:0,e&v){var A=o,O=f;o=f=l}var data=S?l:xo(t),T=[t,e,n,o,f,A,O,w,x,E];if(data&&function(data,source){var t=data[1],e=source[1],n=t|e,r=n<131,o=e==y&&8==t||e==y&&t==_&&data[7].length<=source[8]||384==e&&source[7].length<=source[8]&&8==t;if(!r&&!o)return data;1&e&&(data[2]=source[2],n|=1&t?0:4);var l=source[3];if(l){var c=data[3];data[3]=c?Ui(c,l,source[4]):l,data[4]=c?wn(data[3],h):source[4]}(l=source[5])&&(c=data[5],data[5]=c?$i(c,l,source[6]):l,data[6]=c?wn(data[5],h):source[6]);(l=source[7])&&(data[7]=l);e&y&&(data[8]=null==data[8]?source[8]:In(data[8],source[8]));null==data[9]&&(data[9]=source[9]);data[0]=source[0],data[1]=n}(T,data),t=T[0],e=T[1],n=T[2],o=T[3],f=T[4],!(E=T[9]=T[9]===l?S?0:t.length:Pn(T[9]-k,0))&&24&e&&(e&=-25),e&&1!=e)C=8==e||e==d?function(t,e,n){var o=Zi(t);return function c(){for(var f=arguments.length,h=r(f),d=f,m=So(c);d--;)h[d]=arguments[d];var v=f<3&&h[0]!==m&&h[f-1]!==m?[]:wn(h,m);return(f-=v.length)<n?lo(t,e,no,c.placeholder,l,h,v,l,l,n-f):Re(this&&this!==Se&&this instanceof c?o:t,this,h)}}(t,e,E):e!=m&&33!=e||f.length?no.apply(l,T):function(t,e,n,o){var l=1&e,c=Zi(t);return function e(){for(var f=-1,h=arguments.length,d=-1,m=o.length,v=r(m+h),y=this&&this!==Se&&this instanceof e?c:t;++d<m;)v[d]=o[d];for(;h--;)v[d++]=arguments[++f];return Re(y,l?n:this,v)}}(t,e,n,o);else var C=function(t,e,n){var r=1&e,o=Zi(t);return function e(){return(this&&this!==Se&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,e,n);return Ko((data?vi:Wo)(C,T),t,e)}function mo(t,e,n,object){return t===l||es(t,Ut[n])&&!Ht.call(object,n)?e:t}function vo(t,e,n,object,source,r){return ms(t)&&ms(e)&&(r.set(e,t),ri(t,e,l,vo,r),r.delete(e)),t}function yo(t){return bs(t)?l:t}function go(t,e,n,r,o,c){var f=1&n,h=t.length,d=e.length;if(h!=d&&!(f&&d>h))return!1;var m=c.get(t),v=c.get(e);if(m&&v)return m==e&&v==t;var y=-1,_=!0,w=2&n?new sr:l;for(c.set(t,e),c.set(e,t);++y<h;){var x=t[y],E=e[y];if(r)var S=f?r(E,x,y,e,t,c):r(x,E,y,t,e,c);if(S!==l){if(S)continue;_=!1;break}if(w){if(!Qe(e,(function(t,e){if(!fn(w,e)&&(x===t||o(x,t,n,r,c)))return w.push(e)}))){_=!1;break}}else if(x!==E&&!o(x,E,n,r,c)){_=!1;break}}return c.delete(t),c.delete(e),_}function bo(t){return Yo(Uo(t,l,ua),t+"")}function _o(object){return Br(object,Hs,Co)}function wo(object){return Br(object,Ws,Po)}var xo=qn?function(t){return qn.get(t)}:Eu;function Eo(t){for(var e=t.name+"",n=Un[e],r=Ht.call(Un,e)?n.length:0;r--;){var data=n[r],o=data.func;if(null==o||o==t)return data.name}return e}function So(t){return(Ht.call(Jn,"placeholder")?Jn:t).placeholder}function ko(){var t=Jn.iteratee||bu;return t=t===bu?Kr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ao(map,t){var e,n,data=map.__data__;return("string"==(n=typeof(e=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?data["string"==typeof t?"string":"hash"]:data.map}function Oo(object){for(var t=Hs(object),e=t.length;e--;){var n=t[e],r=object[n];t[e]=[n,r,zo(r)]}return t}function To(object,t){var e=function(object,t){return null==object?l:object[t]}(object,t);return Yr(e)?e:l}var Co=Te?function(object){return null==object?[]:(object=Lt(object),ze(Te(object),(function(symbol){return oe.call(object,symbol)})))}:Pu,Po=Te?function(object){for(var t=[];object;)Ge(t,Co(object)),object=re(object);return t}:Pu,Io=Vr;function Mo(object,path,t){for(var e=-1,n=(path=Fi(path,object)).length,r=!1;++e<n;){var o=ta(path[e]);if(!(r=null!=object&&t(object,o)))break;object=object[o]}return r||++e!=n?r:!!(n=null==object?0:object.length)&&ds(n)&&Fo(o,n)&&(os(object)||is(object))}function jo(object){return"function"!=typeof object.constructor||Vo(object)?{}:Zn(re(object))}function Do(t){return os(t)||is(t)||!!(se&&t&&t[se])}function Fo(t,e){var n=typeof t;return!!(e=null==e?x:e)&&("number"==n||"symbol"!=n&&It.test(t))&&t>-1&&t%1==0&&t<e}function Ro(t,e,object){if(!ms(object))return!1;var n=typeof e;return!!("number"==n?ss(object)&&Fo(e,object.length):"string"==n&&e in object)&&es(object[e],t)}function Lo(t,object){if(os(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Es(t))||(ht.test(t)||!ft.test(t)||null!=object&&t in Lt(object))}function No(t){var e=Eo(t),n=Jn[e];if("function"!=typeof n||!(e in rr.prototype))return!1;if(t===n)return!0;var data=xo(n);return!!data&&t===data[0]}(Rn&&Io(new Rn(new ArrayBuffer(1)))!=$||Ln&&Io(new Ln)!=j||Nn&&Io(Nn.resolve())!=R||Bn&&Io(new Bn)!=N||Vn&&Io(new Vn)!=z)&&(Io=function(t){var e=Vr(t),n=e==F?t.constructor:l,r=n?ea(n):"";if(r)switch(r){case $n:return $;case Gn:return j;case Hn:return R;case Wn:return N;case Qn:return z}return e});var Bo=$t?hs:Iu;function Vo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ut)}function zo(t){return t==t&&!ms(t)}function qo(t,e){return function(object){return null!=object&&(object[t]===e&&(e!==l||t in Lt(object)))}}function Uo(t,e,n){return e=Pn(e===l?t.length-1:e,0),function(){for(var o=arguments,l=-1,c=Pn(o.length-e,0),f=r(c);++l<c;)f[l]=o[e+l];l=-1;for(var h=r(e+1);++l<e;)h[l]=o[l];return h[e]=n(f),Re(t,this,h)}}function $o(object,path){return path.length<2?object:Nr(object,bi(path,0,-1))}function Go(t,e){for(var n=t.length,r=In(e.length,n),o=Gi(t);r--;){var c=e[r];t[r]=Fo(c,n)?o[c]:l}return t}function Ho(object,t){if(("constructor"!==t||"function"!=typeof object[t])&&"__proto__"!=t)return object[t]}var Wo=Xo(vi),Qo=Ee||function(t,e){return Se.setTimeout(t,e)},Yo=Xo(yi);function Ko(t,e,n){var source=e+"";return Yo(t,function(source,details){var t=details.length;if(!t)return source;var e=t-1;return details[e]=(t>1?"& ":"")+details[e],details=details.join(t>2?", ":" "),source.replace(bt,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,t){return Ne(k,(function(e){var n="_."+e[0];t&e[1]&&!qe(details,n)&&details.push(n)})),details.sort()}(function(source){var t=source.match(_t);return t?t[1].split(wt):[]}(source),n)))}function Xo(t){var e=0,n=0;return function(){var r=Mn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(l,arguments)}}function Jo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===l?r:e;++n<e;){var c=ci(n,o),f=t[c];t[c]=t[n],t[n]=f}return t.length=e,t}var Zo=function(t){var e=Ya(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(pt,(function(t,n,r,o){e.push(r?o.replace(St,"$1"):n||t)})),e}));function ta(t){if("string"==typeof t||Es(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ea(t){if(null!=t){try{return Gt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function na(t){if(t instanceof rr)return t.clone();var e=new nr(t.__wrapped__,t.__chain__);return e.__actions__=Gi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ra=hi((function(t,e){return us(t)?Ar(t,Mr(e,1,us,!0)):[]})),ia=hi((function(t,e){var n=ha(e);return us(n)&&(n=l),us(t)?Ar(t,Mr(e,1,us,!0),ko(n,2)):[]})),oa=hi((function(t,e){var n=ha(e);return us(n)&&(n=l),us(t)?Ar(t,Mr(e,1,us,!0),l,n):[]}));function aa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Cs(n);return o<0&&(o=Pn(r+o,0)),Xe(t,ko(e,3),o)}function sa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==l&&(o=Cs(n),o=n<0?Pn(r+o,0):In(o,r-1)),Xe(t,ko(e,3),o,!0)}function ua(t){return(null==t?0:t.length)?Mr(t,1):[]}function head(t){return t&&t.length?t[0]:l}var la=hi((function(t){var e=$e(t,ji);return e.length&&e[0]===t[0]?$r(e):[]})),ca=hi((function(t){var e=ha(t),n=$e(t,ji);return e===ha(n)?e=l:n.pop(),n.length&&n[0]===t[0]?$r(n,ko(e,2)):[]})),fa=hi((function(t){var e=ha(t),n=$e(t,ji);return(e="function"==typeof e?e:l)&&n.pop(),n.length&&n[0]===t[0]?$r(n,l,e):[]}));function ha(t){var e=null==t?0:t.length;return e?t[e-1]:l}var pa=hi(da);function da(t,e){return t&&t.length&&e&&e.length?si(t,e):t}var ma=bo((function(t,e){var n=null==t?0:t.length,r=wr(t,e);return ui(t,$e(e,(function(t){return Fo(t,n)?+t:t})).sort(qi)),r}));function va(t){return null==t?t:Fn.call(t)}var ya=hi((function(t){return Ai(Mr(t,1,us,!0))})),ga=hi((function(t){var e=ha(t);return us(e)&&(e=l),Ai(Mr(t,1,us,!0),ko(e,2))})),ba=hi((function(t){var e=ha(t);return e="function"==typeof e?e:l,Ai(Mr(t,1,us,!0),l,e)}));function _a(t){if(!t||!t.length)return[];var e=0;return t=ze(t,(function(t){if(us(t))return e=Pn(t.length,e),!0})),sn(e,(function(e){return $e(t,nn(e))}))}function wa(t,e){if(!t||!t.length)return[];var n=_a(t);return null==e?n:$e(n,(function(t){return Re(e,l,t)}))}var xa=hi((function(t,e){return us(t)?Ar(t,e):[]})),Ea=hi((function(t){return Ii(ze(t,us))})),Sa=hi((function(t){var e=ha(t);return us(e)&&(e=l),Ii(ze(t,us),ko(e,2))})),ka=hi((function(t){var e=ha(t);return e="function"==typeof e?e:l,Ii(ze(t,us),l,e)})),Aa=hi(_a);var Oa=hi((function(t){var e=t.length,n=e>1?t[e-1]:l;return n="function"==typeof n?(t.pop(),n):l,wa(t,n)}));function Ta(t){var e=Jn(t);return e.__chain__=!0,e}function Ca(t,e){return e(t)}var Pa=bo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(object){return wr(object,t)};return!(e>1||this.__actions__.length)&&r instanceof rr&&Fo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Ca,args:[o],thisArg:l}),new nr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(l),t}))):this.thru(o)}));var Ia=Wi((function(t,e,n){Ht.call(t,n)?++t[n]:_r(t,n,1)}));var Ma=to(aa),ja=to(sa);function Da(t,e){return(os(t)?Ne:Or)(t,ko(e,3))}function Fa(t,e){return(os(t)?Be:Tr)(t,ko(e,3))}var Ra=Wi((function(t,e,n){Ht.call(t,n)?t[n].push(e):_r(t,n,[e])}));var La=hi((function(t,path,e){var n=-1,o="function"==typeof path,l=ss(t)?r(t.length):[];return Or(t,(function(t){l[++n]=o?Re(path,t,e):Gr(t,path,e)})),l})),Na=Wi((function(t,e,n){_r(t,n,e)}));function map(t,e){return(os(t)?$e:ti)(t,ko(e,3))}var Ba=Wi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Va=hi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ro(t,e[0],e[1])?e=[]:n>2&&Ro(e[0],e[1],e[2])&&(e=[e[0]]),oi(t,Mr(e,1),[])})),za=xe||function(){return Se.Date.now()};function qa(t,e,n){return e=n?l:e,e=t&&null==e?t.length:e,po(t,y,l,l,l,l,e)}function Ua(t,e){var n;if("function"!=typeof e)throw new Vt(c);return t=Cs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=l),n}}var $a=hi((function(t,e,n){var r=1;if(n.length){var o=wn(n,So($a));r|=m}return po(t,r,e,n,o)})),Ga=hi((function(object,t,e){var n=3;if(e.length){var r=wn(e,So(Ga));n|=m}return po(t,n,object,e,r)}));function Ha(t,e,n){var r,o,f,h,d,m,v=0,y=!1,_=!1,w=!0;if("function"!=typeof t)throw new Vt(c);function x(time){var e=r,n=o;return r=o=l,v=time,h=t.apply(n,e)}function E(time){return v=time,d=Qo(k,e),y?x(time):h}function S(time){var t=time-m;return m===l||t>=e||t<0||_&&time-v>=f}function k(){var time=za();if(S(time))return A(time);d=Qo(k,function(time){var t=e-(time-m);return _?In(t,f-(time-v)):t}(time))}function A(time){return d=l,w&&r?x(time):(r=o=l,h)}function O(){var time=za(),t=S(time);if(r=arguments,o=this,m=time,t){if(d===l)return E(m);if(_)return Ni(d),d=Qo(k,e),x(m)}return d===l&&(d=Qo(k,e)),h}return e=Is(e)||0,ms(n)&&(y=!!n.leading,f=(_="maxWait"in n)?Pn(Is(n.maxWait)||0,e):f,w="trailing"in n?!!n.trailing:w),O.cancel=function(){d!==l&&Ni(d),v=0,r=m=o=d=l},O.flush=function(){return d===l?h:A(za())},O}var Wa=hi((function(t,e){return kr(t,1,e)})),Qa=hi((function(t,e,n){return kr(t,Is(e)||0,n)}));function Ya(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Vt(c);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=t.apply(this,r);return n.cache=l.set(o,c)||l,c};return n.cache=new(Ya.Cache||ar),n}function Ka(t){if("function"!=typeof t)throw new Vt(c);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ya.Cache=ar;var Xa=Ri((function(t,e){var n=(e=1==e.length&&os(e[0])?$e(e[0],ln(ko())):$e(Mr(e,1),ln(ko()))).length;return hi((function(r){for(var o=-1,l=In(r.length,n);++o<l;)r[o]=e[o].call(this,r[o]);return Re(t,this,r)}))})),Ja=hi((function(t,e){var n=wn(e,So(Ja));return po(t,m,l,e,n)})),Za=hi((function(t,e){var n=wn(e,So(Za));return po(t,v,l,e,n)})),ts=bo((function(t,e){return po(t,_,l,l,l,e)}));function es(t,e){return t===e||t!=t&&e!=e}var ns=uo(zr),rs=uo((function(t,e){return t>=e})),is=Hr(function(){return arguments}())?Hr:function(t){return vs(t)&&Ht.call(t,"callee")&&!oe.call(t,"callee")},os=r.isArray,as=Pe?ln(Pe):function(t){return vs(t)&&Vr(t)==U};function ss(t){return null!=t&&ds(t.length)&&!hs(t)}function us(t){return vs(t)&&ss(t)}var ls=Ce||Iu,cs=Ie?ln(Ie):function(t){return vs(t)&&Vr(t)==C};function fs(t){if(!vs(t))return!1;var e=Vr(t);return e==P||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!bs(t)}function hs(t){if(!ms(t))return!1;var e=Vr(t);return e==I||e==M||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ps(t){return"number"==typeof t&&t==Cs(t)}function ds(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=x}function ms(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function vs(t){return null!=t&&"object"==typeof t}var ys=Me?ln(Me):function(t){return vs(t)&&Io(t)==j};function gs(t){return"number"==typeof t||vs(t)&&Vr(t)==D}function bs(t){if(!vs(t)||Vr(t)!=F)return!1;var e=re(t);if(null===e)return!0;var n=Ht.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Gt.call(n)==Kt}var _s=je?ln(je):function(t){return vs(t)&&Vr(t)==L};var ws=De?ln(De):function(t){return vs(t)&&Io(t)==N};function xs(t){return"string"==typeof t||!os(t)&&vs(t)&&Vr(t)==B}function Es(t){return"symbol"==typeof t||vs(t)&&Vr(t)==V}var Ss=Fe?ln(Fe):function(t){return vs(t)&&ds(t.length)&&!!ye[Vr(t)]};var ks=uo(Zr),As=uo((function(t,e){return t<=e}));function Os(t){if(!t)return[];if(ss(t))return xs(t)?kn(t):Gi(t);if(ue&&t[ue])return function(t){for(var data,e=[];!(data=t.next()).done;)e.push(data.value);return e}(t[ue]());var e=Io(t);return(e==j?bn:e==N?xn:eu)(t)}function Ts(t){return t?(t=Is(t))===w||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Cs(t){var e=Ts(t),n=e%1;return e==e?n?e-n:e:0}function Ps(t){return t?xr(Cs(t),0,S):0}function Is(t){if("number"==typeof t)return t;if(Es(t))return E;if(ms(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ms(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=un(t);var n=Tt.test(t);return n||Pt.test(t)?we(t.slice(2),n?2:8):Ot.test(t)?E:+t}function Ms(t){return Hi(t,Ws(t))}function js(t){return null==t?"":ki(t)}var Ds=Qi((function(object,source){if(Vo(source)||ss(source))Hi(source,Hs(source),object);else for(var t in source)Ht.call(source,t)&&mr(object,t,source[t])})),Fs=Qi((function(object,source){Hi(source,Ws(source),object)})),Rs=Qi((function(object,source,t,e){Hi(source,Ws(source),object,e)})),Ls=Qi((function(object,source,t,e){Hi(source,Hs(source),object,e)})),Ns=bo(wr);var Bs=hi((function(object,t){object=Lt(object);var e=-1,n=t.length,r=n>2?t[2]:l;for(r&&Ro(t[0],t[1],r)&&(n=1);++e<n;)for(var source=t[e],o=Ws(source),c=-1,f=o.length;++c<f;){var h=o[c],d=object[h];(d===l||es(d,Ut[h])&&!Ht.call(object,h))&&(object[h]=source[h])}return object})),Vs=hi((function(t){return t.push(l,vo),Re(Ys,l,t)}));function zs(object,path,t){var e=null==object?l:Nr(object,path);return e===l?t:e}function qs(object,path){return null!=object&&Mo(object,path,Ur)}var Us=ro((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Yt.call(e)),t[e]=n}),mu(gu)),$s=ro((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Yt.call(e)),Ht.call(t,e)?t[e].push(n):t[e]=[n]}),ko),Gs=hi(Gr);function Hs(object){return ss(object)?lr(object):Xr(object)}function Ws(object){return ss(object)?lr(object,!0):Jr(object)}var Qs=Qi((function(object,source,t){ri(object,source,t)})),Ys=Qi((function(object,source,t,e){ri(object,source,t,e)})),Ks=bo((function(object,t){var e={};if(null==object)return e;var n=!1;t=$e(t,(function(path){return path=Fi(path,object),n||(n=path.length>1),path})),Hi(object,wo(object),e),n&&(e=Er(e,7,yo));for(var r=t.length;r--;)Oi(e,t[r]);return e}));var Xs=bo((function(object,t){return null==object?{}:function(object,t){return ai(object,t,(function(t,path){return qs(object,path)}))}(object,t)}));function Js(object,t){if(null==object)return{};var e=$e(wo(object),(function(t){return[t]}));return t=ko(t),ai(object,e,(function(e,path){return t(e,path[0])}))}var Zs=ho(Hs),tu=ho(Ws);function eu(object){return null==object?[]:cn(object,Hs(object))}var nu=Ji((function(t,e,n){return e=e.toLowerCase(),t+(n?ru(e):e)}));function ru(t){return fu(js(t).toLowerCase())}function iu(t){return(t=js(t))&&t.replace(Mt,mn).replace(ce,"")}var ou=Ji((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),au=Ji((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),su=Xi("toLowerCase");var uu=Ji((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var lu=Ji((function(t,e,n){return t+(n?" ":"")+fu(e)}));var cu=Ji((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),fu=Xi("toUpperCase");function hu(t,pattern,e){return t=js(t),(pattern=e?l:pattern)===l?function(t){return de.test(t)}(t)?function(t){return t.match(he)||[]}(t):function(t){return t.match(xt)||[]}(t):t.match(pattern)||[]}var pu=hi((function(t,e){try{return Re(t,l,e)}catch(t){return fs(t)?t:new gt(t)}})),du=bo((function(object,t){return Ne(t,(function(t){t=ta(t),_r(object,t,$a(object[t],object))})),object}));function mu(t){return function(){return t}}var vu=eo(),yu=eo(!0);function gu(t){return t}function bu(t){return Kr("function"==typeof t?t:Er(t,1))}var _u=hi((function(path,t){return function(object){return Gr(object,path,t)}})),wu=hi((function(object,t){return function(path){return Gr(object,path,t)}}));function xu(object,source,t){var e=Hs(source),n=Lr(source,e);null!=t||ms(source)&&(n.length||!e.length)||(t=source,source=object,object=this,n=Lr(source,Hs(source)));var r=!(ms(t)&&"chain"in t&&!t.chain),o=hs(object);return Ne(n,(function(t){var e=source[t];object[t]=e,o&&(object.prototype[t]=function(){var t=this.__chain__;if(r||t){var n=object(this.__wrapped__),o=n.__actions__=Gi(this.__actions__);return o.push({func:e,args:arguments,thisArg:object}),n.__chain__=t,n}return e.apply(object,Ge([this.value()],arguments))})})),object}function Eu(){}var Su=oo($e),ku=oo(Ve),Au=oo(Qe);function Ou(path){return Lo(path)?nn(ta(path)):function(path){return function(object){return Nr(object,path)}}(path)}var Tu=so(),Cu=so(!0);function Pu(){return[]}function Iu(){return!1}var Mu=io((function(t,e){return t+e}),0),ju=co("ceil"),Du=io((function(t,e){return t/e}),1),Fu=co("floor");var source,Ru=io((function(t,e){return t*e}),1),Lu=co("round"),Nu=io((function(t,e){return t-e}),0);return Jn.after=function(t,e){if("function"!=typeof e)throw new Vt(c);return t=Cs(t),function(){if(--t<1)return e.apply(this,arguments)}},Jn.ary=qa,Jn.assign=Ds,Jn.assignIn=Fs,Jn.assignInWith=Rs,Jn.assignWith=Ls,Jn.at=Ns,Jn.before=Ua,Jn.bind=$a,Jn.bindAll=du,Jn.bindKey=Ga,Jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return os(t)?t:[t]},Jn.chain=Ta,Jn.chunk=function(t,e,n){e=(n?Ro(t,e,n):e===l)?1:Pn(Cs(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var c=0,f=0,h=r(ke(o/e));c<o;)h[f++]=bi(t,c,c+=e);return h},Jn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var l=t[e];l&&(o[r++]=l)}return o},Jn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return Ge(os(n)?Gi(n):[n],Mr(e,1))},Jn.cond=function(t){var e=null==t?0:t.length,n=ko();return t=e?$e(t,(function(t){if("function"!=typeof t[1])throw new Vt(c);return[n(t[0]),t[1]]})):[],hi((function(n){for(var r=-1;++r<e;){var o=t[r];if(Re(o[0],this,n))return Re(o[1],this,n)}}))},Jn.conforms=function(source){return function(source){var t=Hs(source);return function(object){return Sr(object,source,t)}}(Er(source,1))},Jn.constant=mu,Jn.countBy=Ia,Jn.create=function(t,e){var n=Zn(t);return null==e?n:gr(n,e)},Jn.curry=function t(e,n,r){var o=po(e,8,l,l,l,l,l,n=r?l:n);return o.placeholder=t.placeholder,o},Jn.curryRight=function t(e,n,r){var o=po(e,d,l,l,l,l,l,n=r?l:n);return o.placeholder=t.placeholder,o},Jn.debounce=Ha,Jn.defaults=Bs,Jn.defaultsDeep=Vs,Jn.defer=Wa,Jn.delay=Qa,Jn.difference=ra,Jn.differenceBy=ia,Jn.differenceWith=oa,Jn.drop=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,(e=n||e===l?1:Cs(e))<0?0:e,r):[]},Jn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,0,(e=r-(e=n||e===l?1:Cs(e)))<0?0:e):[]},Jn.dropRightWhile=function(t,e){return t&&t.length?Ci(t,ko(e,3),!0,!0):[]},Jn.dropWhile=function(t,e){return t&&t.length?Ci(t,ko(e,3),!0):[]},Jn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Ro(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=Cs(n))<0&&(n=-n>o?0:o+n),(r=r===l||r>o?o:Cs(r))<0&&(r+=o),r=n>r?0:Ps(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Jn.filter=function(t,e){return(os(t)?ze:Ir)(t,ko(e,3))},Jn.flatMap=function(t,e){return Mr(map(t,e),1)},Jn.flatMapDeep=function(t,e){return Mr(map(t,e),w)},Jn.flatMapDepth=function(t,e,n){return n=n===l?1:Cs(n),Mr(map(t,e),n)},Jn.flatten=ua,Jn.flattenDeep=function(t){return(null==t?0:t.length)?Mr(t,w):[]},Jn.flattenDepth=function(t,e){return(null==t?0:t.length)?Mr(t,e=e===l?1:Cs(e)):[]},Jn.flip=function(t){return po(t,512)},Jn.flow=vu,Jn.flowRight=yu,Jn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},Jn.functions=function(object){return null==object?[]:Lr(object,Hs(object))},Jn.functionsIn=function(object){return null==object?[]:Lr(object,Ws(object))},Jn.groupBy=Ra,Jn.initial=function(t){return(null==t?0:t.length)?bi(t,0,-1):[]},Jn.intersection=la,Jn.intersectionBy=ca,Jn.intersectionWith=fa,Jn.invert=Us,Jn.invertBy=$s,Jn.invokeMap=La,Jn.iteratee=bu,Jn.keyBy=Na,Jn.keys=Hs,Jn.keysIn=Ws,Jn.map=map,Jn.mapKeys=function(object,t){var e={};return t=ko(t,3),Fr(object,(function(n,r,object){_r(e,t(n,r,object),n)})),e},Jn.mapValues=function(object,t){var e={};return t=ko(t,3),Fr(object,(function(n,r,object){_r(e,r,t(n,r,object))})),e},Jn.matches=function(source){return ei(Er(source,1))},Jn.matchesProperty=function(path,t){return ni(path,Er(t,1))},Jn.memoize=Ya,Jn.merge=Qs,Jn.mergeWith=Ys,Jn.method=_u,Jn.methodOf=wu,Jn.mixin=xu,Jn.negate=Ka,Jn.nthArg=function(t){return t=Cs(t),hi((function(e){return ii(e,t)}))},Jn.omit=Ks,Jn.omitBy=function(object,t){return Js(object,Ka(ko(t)))},Jn.once=function(t){return Ua(2,t)},Jn.orderBy=function(t,e,n,r){return null==t?[]:(os(e)||(e=null==e?[]:[e]),os(n=r?l:n)||(n=null==n?[]:[n]),oi(t,e,n))},Jn.over=Su,Jn.overArgs=Xa,Jn.overEvery=ku,Jn.overSome=Au,Jn.partial=Ja,Jn.partialRight=Za,Jn.partition=Ba,Jn.pick=Xs,Jn.pickBy=Js,Jn.property=Ou,Jn.propertyOf=function(object){return function(path){return null==object?l:Nr(object,path)}},Jn.pull=pa,Jn.pullAll=da,Jn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?si(t,e,ko(n,2)):t},Jn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?si(t,e,l,n):t},Jn.pullAt=ma,Jn.range=Tu,Jn.rangeRight=Cu,Jn.rearg=ts,Jn.reject=function(t,e){return(os(t)?ze:Ir)(t,Ka(ko(e,3)))},Jn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],l=t.length;for(e=ko(e,3);++r<l;){var c=t[r];e(c,r,t)&&(n.push(c),o.push(r))}return ui(t,o),n},Jn.rest=function(t,e){if("function"!=typeof t)throw new Vt(c);return hi(t,e=e===l?e:Cs(e))},Jn.reverse=va,Jn.sampleSize=function(t,e,n){return e=(n?Ro(t,e,n):e===l)?1:Cs(e),(os(t)?fr:di)(t,e)},Jn.set=function(object,path,t){return null==object?object:mi(object,path,t)},Jn.setWith=function(object,path,t,e){return e="function"==typeof e?e:l,null==object?object:mi(object,path,t,e)},Jn.shuffle=function(t){return(os(t)?pr:gi)(t)},Jn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Ro(t,e,n)?(e=0,n=r):(e=null==e?0:Cs(e),n=n===l?r:Cs(n)),bi(t,e,n)):[]},Jn.sortBy=Va,Jn.sortedUniq=function(t){return t&&t.length?Ei(t):[]},Jn.sortedUniqBy=function(t,e){return t&&t.length?Ei(t,ko(e,2)):[]},Jn.split=function(t,e,n){return n&&"number"!=typeof n&&Ro(t,e,n)&&(e=n=l),(n=n===l?S:n>>>0)?(t=js(t))&&("string"==typeof e||null!=e&&!_s(e))&&!(e=ki(e))&&gn(t)?Li(kn(t),0,n):t.split(e,n):[]},Jn.spread=function(t,e){if("function"!=typeof t)throw new Vt(c);return e=null==e?0:Pn(Cs(e),0),hi((function(n){var r=n[e],o=Li(n,0,e);return r&&Ge(o,r),Re(t,this,o)}))},Jn.tail=function(t){var e=null==t?0:t.length;return e?bi(t,1,e):[]},Jn.take=function(t,e,n){return t&&t.length?bi(t,0,(e=n||e===l?1:Cs(e))<0?0:e):[]},Jn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?bi(t,(e=r-(e=n||e===l?1:Cs(e)))<0?0:e,r):[]},Jn.takeRightWhile=function(t,e){return t&&t.length?Ci(t,ko(e,3),!1,!0):[]},Jn.takeWhile=function(t,e){return t&&t.length?Ci(t,ko(e,3)):[]},Jn.tap=function(t,e){return e(t),t},Jn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Vt(c);return ms(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ha(t,e,{leading:r,maxWait:e,trailing:o})},Jn.thru=Ca,Jn.toArray=Os,Jn.toPairs=Zs,Jn.toPairsIn=tu,Jn.toPath=function(t){return os(t)?$e(t,ta):Es(t)?[t]:Gi(Zo(js(t)))},Jn.toPlainObject=Ms,Jn.transform=function(object,t,e){var n=os(object),r=n||ls(object)||Ss(object);if(t=ko(t,4),null==e){var o=object&&object.constructor;e=r?n?new o:[]:ms(object)&&hs(o)?Zn(re(object)):{}}return(r?Ne:Fr)(object,(function(n,r,object){return t(e,n,r,object)})),e},Jn.unary=function(t){return qa(t,1)},Jn.union=ya,Jn.unionBy=ga,Jn.unionWith=ba,Jn.uniq=function(t){return t&&t.length?Ai(t):[]},Jn.uniqBy=function(t,e){return t&&t.length?Ai(t,ko(e,2)):[]},Jn.uniqWith=function(t,e){return e="function"==typeof e?e:l,t&&t.length?Ai(t,l,e):[]},Jn.unset=function(object,path){return null==object||Oi(object,path)},Jn.unzip=_a,Jn.unzipWith=wa,Jn.update=function(object,path,t){return null==object?object:Ti(object,path,Di(t))},Jn.updateWith=function(object,path,t,e){return e="function"==typeof e?e:l,null==object?object:Ti(object,path,Di(t),e)},Jn.values=eu,Jn.valuesIn=function(object){return null==object?[]:cn(object,Ws(object))},Jn.without=xa,Jn.words=hu,Jn.wrap=function(t,e){return Ja(Di(e),t)},Jn.xor=Ea,Jn.xorBy=Sa,Jn.xorWith=ka,Jn.zip=Aa,Jn.zipObject=function(t,e){return Mi(t||[],e||[],mr)},Jn.zipObjectDeep=function(t,e){return Mi(t||[],e||[],mi)},Jn.zipWith=Oa,Jn.entries=Zs,Jn.entriesIn=tu,Jn.extend=Fs,Jn.extendWith=Rs,xu(Jn,Jn),Jn.add=Mu,Jn.attempt=pu,Jn.camelCase=nu,Jn.capitalize=ru,Jn.ceil=ju,Jn.clamp=function(t,e,n){return n===l&&(n=e,e=l),n!==l&&(n=(n=Is(n))==n?n:0),e!==l&&(e=(e=Is(e))==e?e:0),xr(Is(t),e,n)},Jn.clone=function(t){return Er(t,4)},Jn.cloneDeep=function(t){return Er(t,5)},Jn.cloneDeepWith=function(t,e){return Er(t,5,e="function"==typeof e?e:l)},Jn.cloneWith=function(t,e){return Er(t,4,e="function"==typeof e?e:l)},Jn.conformsTo=function(object,source){return null==source||Sr(object,source,Hs(source))},Jn.deburr=iu,Jn.defaultTo=function(t,e){return null==t||t!=t?e:t},Jn.divide=Du,Jn.endsWith=function(t,e,n){t=js(t),e=ki(e);var r=t.length,o=n=n===l?r:xr(Cs(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Jn.eq=es,Jn.escape=function(t){return(t=js(t))&&st.test(t)?t.replace(ot,vn):t},Jn.escapeRegExp=function(t){return(t=js(t))&&vt.test(t)?t.replace(mt,"\\$&"):t},Jn.every=function(t,e,n){var r=os(t)?Ve:Cr;return n&&Ro(t,e,n)&&(e=l),r(t,ko(e,3))},Jn.find=Ma,Jn.findIndex=aa,Jn.findKey=function(object,t){return Ke(object,ko(t,3),Fr)},Jn.findLast=ja,Jn.findLastIndex=sa,Jn.findLastKey=function(object,t){return Ke(object,ko(t,3),Rr)},Jn.floor=Fu,Jn.forEach=Da,Jn.forEachRight=Fa,Jn.forIn=function(object,t){return null==object?object:jr(object,ko(t,3),Ws)},Jn.forInRight=function(object,t){return null==object?object:Dr(object,ko(t,3),Ws)},Jn.forOwn=function(object,t){return object&&Fr(object,ko(t,3))},Jn.forOwnRight=function(object,t){return object&&Rr(object,ko(t,3))},Jn.get=zs,Jn.gt=ns,Jn.gte=rs,Jn.has=function(object,path){return null!=object&&Mo(object,path,qr)},Jn.hasIn=qs,Jn.head=head,Jn.identity=gu,Jn.includes=function(t,e,n,r){t=ss(t)?t:eu(t),n=n&&!r?Cs(n):0;var o=t.length;return n<0&&(n=Pn(o+n,0)),xs(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Je(t,e,n)>-1},Jn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Cs(n);return o<0&&(o=Pn(r+o,0)),Je(t,e,o)},Jn.inRange=function(t,e,n){return e=Ts(e),n===l?(n=e,e=0):n=Ts(n),function(t,e,n){return t>=In(e,n)&&t<Pn(e,n)}(t=Is(t),e,n)},Jn.invoke=Gs,Jn.isArguments=is,Jn.isArray=os,Jn.isArrayBuffer=as,Jn.isArrayLike=ss,Jn.isArrayLikeObject=us,Jn.isBoolean=function(t){return!0===t||!1===t||vs(t)&&Vr(t)==T},Jn.isBuffer=ls,Jn.isDate=cs,Jn.isElement=function(t){return vs(t)&&1===t.nodeType&&!bs(t)},Jn.isEmpty=function(t){if(null==t)return!0;if(ss(t)&&(os(t)||"string"==typeof t||"function"==typeof t.splice||ls(t)||Ss(t)||is(t)))return!t.length;var e=Io(t);if(e==j||e==N)return!t.size;if(Vo(t))return!Xr(t).length;for(var n in t)if(Ht.call(t,n))return!1;return!0},Jn.isEqual=function(t,e){return Wr(t,e)},Jn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:l)?n(t,e):l;return r===l?Wr(t,e,l,n):!!r},Jn.isError=fs,Jn.isFinite=function(t){return"number"==typeof t&&Ye(t)},Jn.isFunction=hs,Jn.isInteger=ps,Jn.isLength=ds,Jn.isMap=ys,Jn.isMatch=function(object,source){return object===source||Qr(object,source,Oo(source))},Jn.isMatchWith=function(object,source,t){return t="function"==typeof t?t:l,Qr(object,source,Oo(source),t)},Jn.isNaN=function(t){return gs(t)&&t!=+t},Jn.isNative=function(t){if(Bo(t))throw new gt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Yr(t)},Jn.isNil=function(t){return null==t},Jn.isNull=function(t){return null===t},Jn.isNumber=gs,Jn.isObject=ms,Jn.isObjectLike=vs,Jn.isPlainObject=bs,Jn.isRegExp=_s,Jn.isSafeInteger=function(t){return ps(t)&&t>=-9007199254740991&&t<=x},Jn.isSet=ws,Jn.isString=xs,Jn.isSymbol=Es,Jn.isTypedArray=Ss,Jn.isUndefined=function(t){return t===l},Jn.isWeakMap=function(t){return vs(t)&&Io(t)==z},Jn.isWeakSet=function(t){return vs(t)&&"[object WeakSet]"==Vr(t)},Jn.join=function(t,e){return null==t?"":rn.call(t,e)},Jn.kebabCase=ou,Jn.last=ha,Jn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==l&&(o=(o=Cs(n))<0?Pn(r+o,0):In(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Xe(t,tn,o,!0)},Jn.lowerCase=au,Jn.lowerFirst=su,Jn.lt=ks,Jn.lte=As,Jn.max=function(t){return t&&t.length?Pr(t,gu,zr):l},Jn.maxBy=function(t,e){return t&&t.length?Pr(t,ko(e,2),zr):l},Jn.mean=function(t){return en(t,gu)},Jn.meanBy=function(t,e){return en(t,ko(e,2))},Jn.min=function(t){return t&&t.length?Pr(t,gu,Zr):l},Jn.minBy=function(t,e){return t&&t.length?Pr(t,ko(e,2),Zr):l},Jn.stubArray=Pu,Jn.stubFalse=Iu,Jn.stubObject=function(){return{}},Jn.stubString=function(){return""},Jn.stubTrue=function(){return!0},Jn.multiply=Ru,Jn.nth=function(t,e){return t&&t.length?ii(t,Cs(e)):l},Jn.noConflict=function(){return Se._===this&&(Se._=Xt),this},Jn.noop=Eu,Jn.now=za,Jn.pad=function(t,e,n){t=js(t);var r=(e=Cs(e))?Sn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ao(Ae(o),n)+t+ao(ke(o),n)},Jn.padEnd=function(t,e,n){t=js(t);var r=(e=Cs(e))?Sn(t):0;return e&&r<e?t+ao(e-r,n):t},Jn.padStart=function(t,e,n){t=js(t);var r=(e=Cs(e))?Sn(t):0;return e&&r<e?ao(e-r,n)+t:t},Jn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),jn(js(t).replace(yt,""),e||0)},Jn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Ro(t,e,n)&&(e=n=l),n===l&&("boolean"==typeof e?(n=e,e=l):"boolean"==typeof t&&(n=t,t=l)),t===l&&e===l?(t=0,e=1):(t=Ts(t),e===l?(e=t,t=0):e=Ts(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Dn();return In(t+o*(e-t+_e("1e-"+((o+"").length-1))),e)}return ci(t,e)},Jn.reduce=function(t,e,n){var r=os(t)?He:on,o=arguments.length<3;return r(t,ko(e,4),n,o,Or)},Jn.reduceRight=function(t,e,n){var r=os(t)?We:on,o=arguments.length<3;return r(t,ko(e,4),n,o,Tr)},Jn.repeat=function(t,e,n){return e=(n?Ro(t,e,n):e===l)?1:Cs(e),fi(js(t),e)},Jn.replace=function(){var t=arguments,e=js(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Jn.result=function(object,path,t){var e=-1,n=(path=Fi(path,object)).length;for(n||(n=1,object=l);++e<n;){var r=null==object?l:object[ta(path[e])];r===l&&(e=n,r=t),object=hs(r)?r.call(object):r}return object},Jn.round=Lu,Jn.runInContext=t,Jn.sample=function(t){return(os(t)?cr:pi)(t)},Jn.size=function(t){if(null==t)return 0;if(ss(t))return xs(t)?Sn(t):t.length;var e=Io(t);return e==j||e==N?t.size:Xr(t).length},Jn.snakeCase=uu,Jn.some=function(t,e,n){var r=os(t)?Qe:_i;return n&&Ro(t,e,n)&&(e=l),r(t,ko(e,3))},Jn.sortedIndex=function(t,e){return wi(t,e)},Jn.sortedIndexBy=function(t,e,n){return xi(t,e,ko(n,2))},Jn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=wi(t,e);if(r<n&&es(t[r],e))return r}return-1},Jn.sortedLastIndex=function(t,e){return wi(t,e,!0)},Jn.sortedLastIndexBy=function(t,e,n){return xi(t,e,ko(n,2),!0)},Jn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=wi(t,e,!0)-1;if(es(t[n],e))return n}return-1},Jn.startCase=lu,Jn.startsWith=function(t,e,n){return t=js(t),n=null==n?0:xr(Cs(n),0,t.length),e=ki(e),t.slice(n,n+e.length)==e},Jn.subtract=Nu,Jn.sum=function(t){return t&&t.length?an(t,gu):0},Jn.sumBy=function(t,e){return t&&t.length?an(t,ko(e,2)):0},Jn.template=function(t,e,n){var r=Jn.templateSettings;n&&Ro(t,e,n)&&(e=l),t=js(t),e=Rs({},e,r,mo);var o,c,f=Rs({},e.imports,r.imports,mo),h=Hs(f),d=cn(f,h),m=0,v=e.interpolate||jt,source="__p += '",y=Nt((e.escape||jt).source+"|"+v.source+"|"+(v===ct?kt:jt).source+"|"+(e.evaluate||jt).source+"|$","g"),_="//# sourceURL="+(Ht.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ve+"]")+"\n";t.replace(y,(function(e,n,r,l,f,h){return r||(r=l),source+=t.slice(m,h).replace(Dt,yn),n&&(o=!0,source+="' +\n__e("+n+") +\n'"),f&&(c=!0,source+="';\n"+f+";\n__p += '"),r&&(source+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),m=h+e.length,e})),source+="';\n";var w=Ht.call(e,"variable")&&e.variable;if(w){if(Et.test(w))throw new gt("Invalid `variable` option passed into `_.template`")}else source="with (obj) {\n"+source+"\n}\n";source=(c?source.replace(tt,""):source).replace(et,"$1").replace(nt,"$1;"),source="function("+(w||"obj")+") {\n"+(w?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var x=pu((function(){return Ft(h,_+"return "+source).apply(l,d)}));if(x.source=source,fs(x))throw x;return x},Jn.times=function(t,e){if((t=Cs(t))<1||t>x)return[];var n=S,r=In(t,S);e=ko(e),t-=S;for(var o=sn(r,e);++n<t;)e(n);return o},Jn.toFinite=Ts,Jn.toInteger=Cs,Jn.toLength=Ps,Jn.toLower=function(t){return js(t).toLowerCase()},Jn.toNumber=Is,Jn.toSafeInteger=function(t){return t?xr(Cs(t),-9007199254740991,x):0===t?t:0},Jn.toString=js,Jn.toUpper=function(t){return js(t).toUpperCase()},Jn.trim=function(t,e,n){if((t=js(t))&&(n||e===l))return un(t);if(!t||!(e=ki(e)))return t;var r=kn(t),o=kn(e);return Li(r,hn(r,o),pn(r,o)+1).join("")},Jn.trimEnd=function(t,e,n){if((t=js(t))&&(n||e===l))return t.slice(0,An(t)+1);if(!t||!(e=ki(e)))return t;var r=kn(t);return Li(r,0,pn(r,kn(e))+1).join("")},Jn.trimStart=function(t,e,n){if((t=js(t))&&(n||e===l))return t.replace(yt,"");if(!t||!(e=ki(e)))return t;var r=kn(t);return Li(r,hn(r,kn(e))).join("")},Jn.truncate=function(t,e){var n=30,r="...";if(ms(e)){var o="separator"in e?e.separator:o;n="length"in e?Cs(e.length):n,r="omission"in e?ki(e.omission):r}var c=(t=js(t)).length;if(gn(t)){var f=kn(t);c=f.length}if(n>=c)return t;var h=n-Sn(r);if(h<1)return r;var d=f?Li(f,0,h).join(""):t.slice(0,h);if(o===l)return d+r;if(f&&(h+=d.length-h),_s(o)){if(t.slice(h).search(o)){var m,v=d;for(o.global||(o=Nt(o.source,js(At.exec(o))+"g")),o.lastIndex=0;m=o.exec(v);)var y=m.index;d=d.slice(0,y===l?h:y)}}else if(t.indexOf(ki(o),h)!=h){var _=d.lastIndexOf(o);_>-1&&(d=d.slice(0,_))}return d+r},Jn.unescape=function(t){return(t=js(t))&&at.test(t)?t.replace(it,On):t},Jn.uniqueId=function(t){var e=++Wt;return js(t)+e},Jn.upperCase=cu,Jn.upperFirst=fu,Jn.each=Da,Jn.eachRight=Fa,Jn.first=head,xu(Jn,(source={},Fr(Jn,(function(t,e){Ht.call(Jn.prototype,e)||(source[e]=t)})),source),{chain:!1}),Jn.VERSION="4.17.21",Ne(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Jn[t].placeholder=Jn})),Ne(["drop","take"],(function(t,e){rr.prototype[t]=function(n){n=n===l?1:Pn(Cs(n),0);var r=this.__filtered__&&!e?new rr(this):this.clone();return r.__filtered__?r.__takeCount__=In(n,r.__takeCount__):r.__views__.push({size:In(n,S),type:t+(r.__dir__<0?"Right":"")}),r},rr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ne(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;rr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ko(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ne(["head","last"],(function(t,e){var n="take"+(e?"Right":"");rr.prototype[t]=function(){return this[n](1).value()[0]}})),Ne(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");rr.prototype[t]=function(){return this.__filtered__?new rr(this):this[n](1)}})),rr.prototype.compact=function(){return this.filter(gu)},rr.prototype.find=function(t){return this.filter(t).head()},rr.prototype.findLast=function(t){return this.reverse().find(t)},rr.prototype.invokeMap=hi((function(path,t){return"function"==typeof path?new rr(this):this.map((function(e){return Gr(e,path,t)}))})),rr.prototype.reject=function(t){return this.filter(Ka(ko(t)))},rr.prototype.slice=function(t,e){t=Cs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new rr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==l&&(n=(e=Cs(e))<0?n.dropRight(-e):n.take(e-t)),n)},rr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},rr.prototype.toArray=function(){return this.take(S)},Fr(rr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Jn[r?"take"+("last"==e?"Right":""):e],c=r||/^find/.test(e);o&&(Jn.prototype[e]=function(){var e=this.__wrapped__,f=r?[1]:arguments,h=e instanceof rr,d=f[0],m=h||os(e),v=function(t){var e=o.apply(Jn,Ge([t],f));return r&&y?e[0]:e};m&&n&&"function"==typeof d&&1!=d.length&&(h=m=!1);var y=this.__chain__,_=!!this.__actions__.length,w=c&&!y,x=h&&!_;if(!c&&m){e=x?e:new rr(this);var E=t.apply(e,f);return E.__actions__.push({func:Ca,args:[v],thisArg:l}),new nr(E,y)}return w&&x?t.apply(this,f):(E=this.thru(v),w?r?E.value()[0]:E.value():E)})})),Ne(["pop","push","shift","sort","splice","unshift"],(function(t){var e=zt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Jn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(os(o)?o:[],t)}return this[n]((function(n){return e.apply(os(n)?n:[],t)}))}})),Fr(rr.prototype,(function(t,e){var n=Jn[e];if(n){var r=n.name+"";Ht.call(Un,r)||(Un[r]=[]),Un[r].push({name:e,func:n})}})),Un[no(l,2).name]=[{name:"wrapper",func:l}],rr.prototype.clone=function(){var t=new rr(this.__wrapped__);return t.__actions__=Gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Gi(this.__views__),t},rr.prototype.reverse=function(){if(this.__filtered__){var t=new rr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},rr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=os(t),r=e<0,o=n?t.length:0,view=function(t,e,n){var r=-1,o=n.length;for(;++r<o;){var data=n[r],l=data.size;switch(data.type){case"drop":t+=l;break;case"dropRight":e-=l;break;case"take":e=In(e,t+l);break;case"takeRight":t=Pn(t,e-l)}}return{start:t,end:e}}(0,o,this.__views__),l=view.start,c=view.end,f=c-l,h=r?c:l-1,d=this.__iteratees__,m=d.length,v=0,y=In(f,this.__takeCount__);if(!n||!r&&o==f&&y==f)return Pi(t,this.__actions__);var _=[];t:for(;f--&&v<y;){for(var w=-1,x=t[h+=e];++w<m;){var data=d[w],E=data.iteratee,S=data.type,k=E(x);if(2==S)x=k;else if(!k){if(1==S)continue t;break t}}_[v++]=x}return _},Jn.prototype.at=Pa,Jn.prototype.chain=function(){return Ta(this)},Jn.prototype.commit=function(){return new nr(this.value(),this.__chain__)},Jn.prototype.next=function(){this.__values__===l&&(this.__values__=Os(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?l:this.__values__[this.__index__++]}},Jn.prototype.plant=function(t){for(var e,n=this;n instanceof er;){var r=na(n);r.__index__=0,r.__values__=l,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof rr){var e=t;return this.__actions__.length&&(e=new rr(this)),(e=e.reverse()).__actions__.push({func:Ca,args:[va],thisArg:l}),new nr(e,this.__chain__)}return this.thru(va)},Jn.prototype.toJSON=Jn.prototype.valueOf=Jn.prototype.value=function(){return Pi(this.__wrapped__,this.__actions__)},Jn.prototype.first=Jn.prototype.head,ue&&(Jn.prototype[ue]=function(){return this}),Jn}();Se._=Tn,(o=function(){return Tn}.call(e,n,e,r))===l||(r.exports=o)}).call(this)}).call(this,n(36),n(329)(t))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return f}));var r=n(161);function o(t){var e=t.prototype.toJSON;"function"==typeof e||function(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}(0),t.prototype.inspect=e,r.a&&(t.prototype[r.a]=e)}var l=function(){function t(t,e,source){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=source}return t.prototype.toJSON=function(){return{start:this.start,end:this.end}},t}();o(l);var c=function(){function t(t,e,n,line,r,o,l){this.kind=t,this.start=e,this.end=n,this.line=line,this.column=r,this.value=l,this.prev=o,this.next=null}return t.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();function f(t){return null!=t&&"string"==typeof t.kind}o(c)},,,,,,,function(t,e,n){"use strict";function r(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(t,Error)}}function o(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function l(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function c(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function f(t){return"[object String]"===Object.prototype.toString.call(t)}function h(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function d(t){return"[object Object]"===Object.prototype.toString.call(t)}function m(t){return"undefined"!=typeof Event&&x(t,Event)}function v(t){return"undefined"!=typeof Element&&x(t,Element)}function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function _(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function w(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function x(t,base){try{return t instanceof base}catch(t){return!1}}n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"k",(function(){return f})),n.d(e,"i",(function(){return h})),n.d(e,"h",(function(){return d})),n.d(e,"f",(function(){return m})),n.d(e,"c",(function(){return v})),n.d(e,"j",(function(){return y})),n.d(e,"m",(function(){return _})),n.d(e,"l",(function(){return w})),n.d(e,"g",(function(){return x}))},,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"Observable",(function(){return r.a})),n.d(e,"getOperationName",(function(){return f.getOperationName})),n.d(e,"ApolloLink",(function(){return O})),n.d(e,"concat",(function(){return A})),n.d(e,"createOperation",(function(){return _})),n.d(e,"empty",(function(){return E})),n.d(e,"execute",(function(){return T})),n.d(e,"from",(function(){return S})),n.d(e,"fromError",(function(){return y})),n.d(e,"fromPromise",(function(){return v})),n.d(e,"makePromise",(function(){return m})),n.d(e,"split",(function(){return k})),n.d(e,"toPromise",(function(){return d}));var r=n(56),o=n(8),l=function(t,b){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},l(t,b)};var c=function(){return c=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},c.apply(this,arguments)};var f=n(2);!function(t){function e(e,link){var n=t.call(this,e)||this;return n.link=link,n}(function(t,b){function e(){this.constructor=t}l(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)})(e,t)}(Error);function h(link){return link.request.length<=1}function d(t){var e=!1;return new Promise((function(n,r){t.subscribe({next:function(data){e||(e=!0,n(data))},error:r})}))}var m=d;function v(t){return new r.a((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}))}function y(t){return new r.a((function(e){e.error(t)}))}function _(t,e){var n=c({},t);return Object.defineProperty(e,"setContext",{enumerable:!1,value:function(t){n=c({},n,"function"==typeof t?t(n):t)}}),Object.defineProperty(e,"getContext",{enumerable:!1,value:function(){return c({},n)}}),Object.defineProperty(e,"toKey",{enumerable:!1,value:function(){return function(t){var e=t.query,n=t.variables,r=t.operationName;return JSON.stringify([r,e,n])}(e)}}),e}function w(t,e){return e?e(t):r.a.of()}function x(t){return"function"==typeof t?new O(t):t}function E(){return new O((function(){return r.a.of()}))}function S(t){return 0===t.length?E():t.map(x).reduce((function(t,e){return t.concat(e)}))}function k(t,e,n){var o=x(e),l=x(n||new O(w));return h(o)&&h(l)?new O((function(e){return t(e)?o.request(e)||r.a.of():l.request(e)||r.a.of()})):new O((function(e,n){return t(e)?o.request(e,n)||r.a.of():l.request(e,n)||r.a.of()}))}var A=function(t,e){var n=x(t);if(h(n))return n;var o=x(e);return h(o)?new O((function(t){return n.request(t,(function(t){return o.request(t)||r.a.of()}))||r.a.of()})):new O((function(t,e){return n.request(t,(function(t){return o.request(t,e)||r.a.of()}))||r.a.of()}))},O=function(){function t(t){t&&(this.request=t)}return t.prototype.split=function(e,n,r){return this.concat(k(e,n,r||new t(w)))},t.prototype.concat=function(t){return A(this,t)},t.prototype.request=function(t,e){throw new o.a(1)},t.empty=E,t.from=S,t.split=k,t.execute=T,t}();function T(link,t){return link.request(_(t.context,function(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName="string"!=typeof e.query?Object(f.getOperationName)(e.query):""),e}(function(t){for(var e=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(t);n<r.length;n++){var l=r[n];if(e.indexOf(l)<0)throw new o.a(2)}return t}(t))))||r.a.of()}},,,,,,,function(t,e,n){"use strict";var r=n(404),o=n.n(r).a;e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){return r=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},r.apply(this,arguments)};function o(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),n=0;for(i=0;i<t;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)e[n]=a[r];return e}},,,,,,function(t,e,n){"use strict";(function(t){n.d(e,"e",(function(){return l})),n.d(e,"i",(function(){return c})),n.d(e,"h",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"g",(function(){return _}));var r=n(162),o=(n(119),{});function l(){return Object(r.b)()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function c(){var t=l(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function f(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function h(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function d(t){var e=l();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),o}function m(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function v(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(t){}}function y(){try{return document.location.href}catch(t){return""}}function _(t,header){if(!header)return 6e4;var e=parseInt(""+header,10);if(!isNaN(e))return 1e3*e;var n=Date.parse(""+header);return isNaN(n)?6e4:n-t}}).call(this,n(36))},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return f}));var r=n(158),o=n(30),l={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},c=Object.freeze({});function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,f=void 0,d=Array.isArray(t),m=[t],v=-1,y=[],_=void 0,w=void 0,x=void 0,path=[],E=[],S=t;do{var k=++v===m.length,A=k&&0!==y.length;if(k){if(w=0===E.length?void 0:path[path.length-1],_=x,x=E.pop(),A){if(d)_=_.slice();else{for(var O={},T=0,C=Object.keys(_);T<C.length;T++){var P=C[T];O[P]=_[P]}_=O}for(var I=0,M=0;M<y.length;M++){var j=y[M][0],D=y[M][1];d&&(j-=I),d&&null===D?(_.splice(j,1),I++):_[j]=D}}v=f.index,m=f.keys,y=f.edits,d=f.inArray,f=f.prev}else{if(w=x?d?v:m[v]:void 0,null==(_=x?x[w]:S))continue;x&&path.push(w)}var F,R=void 0;if(!Array.isArray(_)){if(!Object(o.c)(_))throw new Error("Invalid AST Node: ".concat(Object(r.a)(_),"."));var L=h(e,_.kind,k);if(L){if((R=L.call(e,_,w,x,path,E))===c)break;if(!1===R){if(!k){path.pop();continue}}else if(void 0!==R&&(y.push([w,R]),!k)){if(!Object(o.c)(R)){path.pop();continue}_=R}}}if(void 0===R&&A&&y.push([w,_]),k)path.pop();else f={inArray:d,index:v,keys:m,edits:y,prev:f},m=(d=Array.isArray(_))?_:null!==(F=n[_.kind])&&void 0!==F?F:[],v=-1,y=[],x&&E.push(x),x=_}while(void 0!==f);return 0!==y.length&&(S=y[y.length-1][1]),S}function h(t,e,n){var r=t[e];if(r){if(!n&&"function"==typeof r)return r;var o=n?r.leave:r.enter;if("function"==typeof o)return o}else{var l=n?t.leave:t.enter;if(l){if("function"==typeof l)return l;var c=l[e];if("function"==typeof c)return c}}}},function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return d})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return E})),n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return k}));var r=n(75),o=n(261),l=n(37),c=n(401),f=n(201),h=n(119);function d(source,t,e){if(t in source){var n=source[t],r=e(n);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:n}})}catch(t){}source[t]=r}}function m(object){return Object.keys(object).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(object[t])})).join("&")}function v(t){if(Object(l.d)(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}if(Object(l.f)(t)){var r=t,source={};source.type=r.type;try{source.target=Object(l.c)(r.target)?Object(o.a)(r.target):Object.prototype.toString.call(r.target)}catch(t){source.target="<unknown>"}try{source.currentTarget=Object(l.c)(r.currentTarget)?Object(o.a)(r.currentTarget):Object.prototype.toString.call(r.currentTarget)}catch(t){source.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&Object(l.g)(t,CustomEvent)&&(source.detail=r.detail),r)Object.prototype.hasOwnProperty.call(r,i)&&(source[i]=r);return source}return t}function y(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function _(object,t,e){void 0===t&&(t=3),void 0===e&&(e=102400);var n=E(object,t);return y(n)>e?_(object,t-1,e):n}function w(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(l.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(f.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function x(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new c.a),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=w(t);return Object(l.i)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var o=w(e,t);if(Object(l.i)(o))return o;var source=v(e),f=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var h in source)Object.prototype.hasOwnProperty.call(source,h)&&(f[h]=x(h,source[h],n-1,r));return r.unmemoize(e),f}function E(input,t){try{return JSON.parse(JSON.stringify(input,(function(e,n){return x(e,n,t)})))}catch(t){return"**non-serializable**"}}function S(t,e){void 0===e&&(e=40);var n=Object.keys(v(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(h.d)(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:Object(h.d)(o,e)}return""}function k(t){var e,n;if(Object(l.h)(t)){var o=t,c={};try{for(var f=Object(r.d)(Object.keys(o)),h=f.next();!h.done;h=f.next()){var d=h.value;void 0!==o[d]&&(c[d]=k(o[d]))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return c}return Array.isArray(t)?t.map(k):t}}).call(this,n(36))},,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return f}));var r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)};function o(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};function c(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}},,,,function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",n=t[3];if(!n)return content;if(e&&"function"==typeof btoa){var r=(l=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var l,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);r&&o[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[l]?r[l].parts.push(c):n.push(r[l]={id:l,parts:[c]})}return n}n.r(e),n.d(e,"default",(function(){return _}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,f=0,h=!1,d=function(){},m=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function _(t,e,n,o){h=n,m=o||{};var c=r(t,e);return w(c),function(e){for(var n=[],i=0;i<c.length;i++){var o=c[i];(f=l[o.id]).refs--,n.push(f)}e?w(c=r(t,e)):c=[];for(i=0;i<n.length;i++){var f;if(0===(f=n[i]).refs){for(var h=0;h<f.parts.length;h++)f.parts[h]();delete l[f.id]}}}}function w(t){for(var i=0;i<t.length;i++){var e=t[i],n=l[e.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](e.parts[r]);for(;r<e.parts.length;r++)n.parts.push(E(e.parts[r]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r<e.parts.length;r++)o.push(E(e.parts[r]));l[e.id]={id:e.id,refs:1,parts:o}}}}function x(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function E(t){var e,n,r=document.querySelector("style["+v+'~="'+t.id+'"]');if(r){if(h)return d;r.parentNode.removeChild(r)}if(y){var o=f++;r=c||(c=x()),e=A.bind(null,r,o,!1),n=A.bind(null,r,o,!0)}else r=x(),e=O.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var S,k=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function A(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=k(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function O(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute(v,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.mappedProps,n=t.name,f=t.ctr,d=t.ctrArgs,_=t.events,w=t.beforeCreate,x=t.afterCreate,E=t.props,S=y(t,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),k="$".concat(n,"Promise"),A="$".concat(n,"Object");return function(t,e){if(!t)throw new Error(e)}(!(S.props instanceof Array),"`props` should be an object, not Array"),m({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:t}:{},{mixins:[l.default],props:m({},E,{},(0,c.default)(e)),render:function(){return""},provide:function(){var t=this,n=this.$mapPromise.then((function(map){t.$map=map;var n=m({},t.options,{map:map},(0,o.getPropsValues)(t,e)),r=(n.options,y(n,["options"]));if(w){var l=w.bind(t)(r);if(l instanceof Promise)return l.then((function(){return{options:r}}))}return{options:r}})).then((function(n){var l,c,m=n.options,v=f();return t[A]=d?new((l=Function.prototype.bind).call.apply(l,[v,null].concat(function(t){if(Array.isArray(t))return h(t)}(c=d(m,(0,o.getPropsValues)(t,E||{})))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(c)||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.")}()))):new v(m),(0,o.bindProps)(t,t[A],e),(0,r.default)(t,t[A],_),x&&x.bind(t)(t[A]),t[A]}));return this[k]=n,v({},k,n)},destroyed:function(){this[A]&&this[A].setMap&&this[A].setMap(null)}},S)};var r=f(n(247)),o=n(157),l=f(n(389)),c=f(n(187));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){v(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return r=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},r.apply(this,arguments)};Object.create;Object.create},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(85);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function c(source,t){for(var e,n=/\r\n|[\n\r]/g,line=1,r=t+1;(e=n.exec(source.body))&&e.index<t;)line+=1,r=t+1-(e.index+e[0].length);return{line:line,column:r}}function f(t){return h(t.source,c(t.source,t.start))}function h(source,t){var e=source.locationOffset.column-1,body=m(e)+source.body,n=t.line-1,r=source.locationOffset.line-1,o=t.line+r,l=1===t.line?e:0,c=t.column+l,f="".concat(source.name,":").concat(o,":").concat(c,"\n"),h=body.split(/\r\n|[\n\r]/g),v=h[n];if(v.length>120){for(var y=Math.floor(c/80),_=c%80,w=[],i=0;i<v.length;i+=80)w.push(v.slice(i,i+80));return f+d([["".concat(o),w[0]]].concat(w.slice(1,y+1).map((function(t){return["",t]})),[[" ",m(_-1)+"^"],["",w[y+1]]]))}return f+d([["".concat(o-1),h[n-1]],["".concat(o),v],["",m(c-1)+"^"],["".concat(o+1),h[n+1]]])}function d(t){var e=t.filter((function(t){t[0];return void 0!==t[1]})),n=Math.max.apply(Math,e.map((function(t){return t[0].length})));return e.map((function(t){var e,r=t[0],line=t[1];return m(n-(e=r).length)+e+(line?" | "+line:" |")})).join("\n")}function m(t){return Array(t+1).join(" ")}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?E(t):e}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){var e="function"==typeof Map?new Map:void 0;return S=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return k(t,arguments,T(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O(r,t)},S(t)}function k(t,e,n){return k=A()?Reflect.construct:function(t,e,n){var a=[null];a.push.apply(a,e);var r=new(Function.bind.apply(t,a));return n&&O(r,n.prototype),r},k.apply(null,arguments)}function A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function O(t,p){return O=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t},O(t,p)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(S,t);var e,n,r,d,m,v=(e=S,n=A(),function(){var t,r=T(e);if(n){var o=T(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return x(this,t)});function S(t,e,source,n,path,r,l){var f,h,d,m;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,S),(m=v.call(this,t)).name="GraphQLError",m.originalError=null!=r?r:void 0,m.nodes=P(Array.isArray(e)?e:e?[e]:void 0);for(var w=[],k=0,A=null!==(O=m.nodes)&&void 0!==O?O:[];k<A.length;k++){var O,T=A[k].loc;null!=T&&w.push(T)}w=P(w),m.source=null!=source?source:null===(f=w)||void 0===f?void 0:f[0].source,m.positions=null!=n?n:null===(h=w)||void 0===h?void 0:h.map((function(t){return t.start})),m.locations=n&&source?n.map((function(t){return c(source,t)})):null===(d=w)||void 0===d?void 0:d.map((function(t){return c(t.source,t.start)})),m.path=null!=path?path:void 0;var C,I=null==r?void 0:r.extensions;return null==l&&("object"==o(C=I)&&null!==C)?m.extensions=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(e){_(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},I):m.extensions=null!=l?l:{},Object.defineProperties(E(m),{message:{enumerable:!0},locations:{enumerable:null!=m.locations},path:{enumerable:null!=m.path},extensions:{enumerable:null!=m.extensions&&Object.keys(m.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=r&&r.stack?(Object.defineProperty(E(m),"stack",{value:r.stack,writable:!0,configurable:!0}),x(m)):(Error.captureStackTrace?Error.captureStackTrace(E(m),S):Object.defineProperty(E(m),"stack",{value:Error().stack,writable:!0,configurable:!0}),m)}return r=S,(d=[{key:"toString",value:function(){return function(t){var output=t.message;if(t.nodes)for(var e=0,n=t.nodes;e<n.length;e++){var r=n[e];r.loc&&(output+="\n\n"+f(r.loc))}else if(t.source&&t.locations)for(var o=0,l=t.locations;o<l.length;o++){var c=l[o];output+="\n\n"+h(t.source,c)}return output}(this)}},{key:l,get:function(){return"Object"}}])&&w(r.prototype,d),m&&w(r,m),S}(S(Error));function P(t){return void 0===t||0===t.length?void 0:t}function I(source,t,e){return new C("Syntax Error: ".concat(e),void 0,source,[t])}var M=n(12),j=n(30),D=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),F=n(158);function R(t,e){if(!Boolean(t))throw new Error(e)}var L=function(t,e){return t instanceof e};function N(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var B=function(){function t(body){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof body||R(0,"Body must be a string. Received: ".concat(Object(F.a)(body),".")),this.body=body,this.name=t,this.locationOffset=e,this.locationOffset.line>0||R(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||R(0,"column in locationOffset is 1-indexed and must be positive.")}var e,n,r;return e=t,(n=[{key:l,get:function(){return"Source"}}])&&N(e.prototype,n),r&&N(e,r),t}();var V=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),z=n(198),U=function(){function t(source){var t=new j.b(D.SOF,0,0,0,0,null);this.source=source,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function(){var t=this.token;if(t.kind!==D.EOF)do{var e;t=null!==(e=t.next)&&void 0!==e?e:t.next=G(this,t)}while(t.kind===D.COMMENT);return t},t}();function $(code){return isNaN(code)?D.EOF:code<127?JSON.stringify(String.fromCharCode(code)):'"\\u'.concat(("00"+code.toString(16).toUpperCase()).slice(-4),'"')}function G(t,e){for(var source=t.source,body=source.body,n=body.length,r=e.end;r<n;){var code=body.charCodeAt(r),o=t.line,l=1+r-t.lineStart;switch(code){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++t.line,t.lineStart=r;continue;case 13:10===body.charCodeAt(r+1)?r+=2:++r,++t.line,t.lineStart=r;continue;case 33:return new j.b(D.BANG,r,r+1,o,l,e);case 35:return W(source,r,o,l,e);case 36:return new j.b(D.DOLLAR,r,r+1,o,l,e);case 38:return new j.b(D.AMP,r,r+1,o,l,e);case 40:return new j.b(D.PAREN_L,r,r+1,o,l,e);case 41:return new j.b(D.PAREN_R,r,r+1,o,l,e);case 46:if(46===body.charCodeAt(r+1)&&46===body.charCodeAt(r+2))return new j.b(D.SPREAD,r,r+3,o,l,e);break;case 58:return new j.b(D.COLON,r,r+1,o,l,e);case 61:return new j.b(D.EQUALS,r,r+1,o,l,e);case 64:return new j.b(D.AT,r,r+1,o,l,e);case 91:return new j.b(D.BRACKET_L,r,r+1,o,l,e);case 93:return new j.b(D.BRACKET_R,r,r+1,o,l,e);case 123:return new j.b(D.BRACE_L,r,r+1,o,l,e);case 124:return new j.b(D.PIPE,r,r+1,o,l,e);case 125:return new j.b(D.BRACE_R,r,r+1,o,l,e);case 34:return 34===body.charCodeAt(r+1)&&34===body.charCodeAt(r+2)?X(source,r,o,l,e,t):K(source,r,o,l,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Q(source,r,code,o,l,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Z(source,r,o,l,e)}throw I(source,r,H(code))}var line=t.line,col=1+r-t.lineStart;return new j.b(D.EOF,n,n,line,col,e)}function H(code){return code<32&&9!==code&&10!==code&&13!==code?"Cannot contain the invalid character ".concat($(code),"."):39===code?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat($(code),".")}function W(source,t,line,col,e){var code,body=source.body,n=t;do{code=body.charCodeAt(++n)}while(!isNaN(code)&&(code>31||9===code));return new j.b(D.COMMENT,t,n,line,col,e,body.slice(t+1,n))}function Q(source,t,e,line,col,n){var body=source.body,code=e,r=t,o=!1;if(45===code&&(code=body.charCodeAt(++r)),48===code){if((code=body.charCodeAt(++r))>=48&&code<=57)throw I(source,r,"Invalid number, unexpected digit after 0: ".concat($(code),"."))}else r=Y(source,r,code),code=body.charCodeAt(r);if(46===code&&(o=!0,code=body.charCodeAt(++r),r=Y(source,r,code),code=body.charCodeAt(r)),69!==code&&101!==code||(o=!0,43!==(code=body.charCodeAt(++r))&&45!==code||(code=body.charCodeAt(++r)),r=Y(source,r,code),code=body.charCodeAt(r)),46===code||function(code){return 95===code||code>=65&&code<=90||code>=97&&code<=122}(code))throw I(source,r,"Invalid number, expected digit but got: ".concat($(code),"."));return new j.b(o?D.FLOAT:D.INT,t,r,line,col,n,body.slice(t,r))}function Y(source,t,e){var body=source.body,n=t,code=e;if(code>=48&&code<=57){do{code=body.charCodeAt(++n)}while(code>=48&&code<=57);return n}throw I(source,n,"Invalid number, expected digit but got: ".concat($(code),"."))}function K(source,t,line,col,e){for(var a,b,n,r,body=source.body,o=t+1,l=o,code=0,c="";o<body.length&&!isNaN(code=body.charCodeAt(o))&&10!==code&&13!==code;){if(34===code)return c+=body.slice(l,o),new j.b(D.STRING,t,o+1,line,col,e,c);if(code<32&&9!==code)throw I(source,o,"Invalid character within String: ".concat($(code),"."));if(++o,92===code){switch(c+=body.slice(l,o-1),code=body.charCodeAt(o)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var f=(a=body.charCodeAt(o+1),b=body.charCodeAt(o+2),n=body.charCodeAt(o+3),r=body.charCodeAt(o+4),J(a)<<12|J(b)<<8|J(n)<<4|J(r));if(f<0){var h=body.slice(o+1,o+5);throw I(source,o,"Invalid character escape sequence: \\u".concat(h,"."))}c+=String.fromCharCode(f),o+=4;break;default:throw I(source,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(code),"."))}l=++o}}throw I(source,o,"Unterminated string.")}function X(source,t,line,col,e,n){for(var body=source.body,r=t+3,o=r,code=0,l="";r<body.length&&!isNaN(code=body.charCodeAt(r));){if(34===code&&34===body.charCodeAt(r+1)&&34===body.charCodeAt(r+2))return l+=body.slice(o,r),new j.b(D.BLOCK_STRING,t,r+3,line,col,e,Object(z.a)(l));if(code<32&&9!==code&&10!==code&&13!==code)throw I(source,r,"Invalid character within String: ".concat($(code),"."));10===code?(++r,++n.line,n.lineStart=r):13===code?(10===body.charCodeAt(r+1)?r+=2:++r,++n.line,n.lineStart=r):92===code&&34===body.charCodeAt(r+1)&&34===body.charCodeAt(r+2)&&34===body.charCodeAt(r+3)?(l+=body.slice(o,r)+'"""',o=r+=4):++r}throw I(source,r,"Unterminated string.")}function J(a){return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:-1}function Z(source,t,line,col,e){for(var body=source.body,n=body.length,r=t+1,code=0;r!==n&&!isNaN(code=body.charCodeAt(r))&&(95===code||code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122);)++r;return new j.b(D.NAME,t,r,line,col,e,body.slice(t,r))}var tt=function(){function t(source,t){var e=function(source){return L(source,B)}(source)?source:new B(source);this._lexer=new U(e),this._options=t}var e=t.prototype;return e.parseName=function(){var t=this.expectToken(D.NAME);return{kind:M.a.NAME,value:t.value,loc:this.loc(t)}},e.parseDocument=function(){var t=this._lexer.token;return{kind:M.a.DOCUMENT,definitions:this.many(D.SOF,this.parseDefinition,D.EOF),loc:this.loc(t)}},e.parseDefinition=function(){if(this.peek(D.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(D.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var t=this._lexer.token;if(this.peek(D.BRACE_L))return{kind:M.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var e,n=this.parseOperationType();return this.peek(D.NAME)&&(e=this.parseName()),{kind:M.a.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseOperationType=function(){var t=this.expectToken(D.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)},e.parseVariableDefinitions=function(){return this.optionalMany(D.PAREN_L,this.parseVariableDefinition,D.PAREN_R)},e.parseVariableDefinition=function(){var t=this._lexer.token;return{kind:M.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(D.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(D.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(t)}},e.parseVariable=function(){var t=this._lexer.token;return this.expectToken(D.DOLLAR),{kind:M.a.VARIABLE,name:this.parseName(),loc:this.loc(t)}},e.parseSelectionSet=function(){var t=this._lexer.token;return{kind:M.a.SELECTION_SET,selections:this.many(D.BRACE_L,this.parseSelection,D.BRACE_R),loc:this.loc(t)}},e.parseSelection=function(){return this.peek(D.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var t,e,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(D.COLON)?(t=r,e=this.parseName()):e=r,{kind:M.a.FIELD,alias:t,name:e,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(D.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function(t){var e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(D.PAREN_L,e,D.PAREN_R)},e.parseArgument=function(){var t=this._lexer.token,e=this.parseName();return this.expectToken(D.COLON),{kind:M.a.ARGUMENT,name:e,value:this.parseValueLiteral(!1),loc:this.loc(t)}},e.parseConstArgument=function(){var t=this._lexer.token;return{kind:M.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(D.COLON),this.parseValueLiteral(!0)),loc:this.loc(t)}},e.parseFragment=function(){var t=this._lexer.token;this.expectToken(D.SPREAD);var e=this.expectOptionalKeyword("on");return!e&&this.peek(D.NAME)?{kind:M.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(t)}:{kind:M.a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentDefinition=function(){var t,e=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(t=this._options)||void 0===t?void 0:t.experimentalFragmentVariables)?{kind:M.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:M.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(t){var e=this._lexer.token;switch(e.kind){case D.BRACKET_L:return this.parseList(t);case D.BRACE_L:return this.parseObject(t);case D.INT:return this._lexer.advance(),{kind:M.a.INT,value:e.value,loc:this.loc(e)};case D.FLOAT:return this._lexer.advance(),{kind:M.a.FLOAT,value:e.value,loc:this.loc(e)};case D.STRING:case D.BLOCK_STRING:return this.parseStringLiteral();case D.NAME:switch(this._lexer.advance(),e.value){case"true":return{kind:M.a.BOOLEAN,value:!0,loc:this.loc(e)};case"false":return{kind:M.a.BOOLEAN,value:!1,loc:this.loc(e)};case"null":return{kind:M.a.NULL,loc:this.loc(e)};default:return{kind:M.a.ENUM,value:e.value,loc:this.loc(e)}}case D.DOLLAR:if(!t)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function(){var t=this._lexer.token;return this._lexer.advance(),{kind:M.a.STRING,value:t.value,block:t.kind===D.BLOCK_STRING,loc:this.loc(t)}},e.parseList=function(t){var e=this,n=this._lexer.token;return{kind:M.a.LIST,values:this.any(D.BRACKET_L,(function(){return e.parseValueLiteral(t)}),D.BRACKET_R),loc:this.loc(n)}},e.parseObject=function(t){var e=this,n=this._lexer.token;return{kind:M.a.OBJECT,fields:this.any(D.BRACE_L,(function(){return e.parseObjectField(t)}),D.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function(t){var e=this._lexer.token,n=this.parseName();return this.expectToken(D.COLON),{kind:M.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t),loc:this.loc(e)}},e.parseDirectives=function(t){for(var e=[];this.peek(D.AT);)e.push(this.parseDirective(t));return e},e.parseDirective=function(t){var e=this._lexer.token;return this.expectToken(D.AT),{kind:M.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(e)}},e.parseTypeReference=function(){var t,e=this._lexer.token;return this.expectOptionalToken(D.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(D.BRACKET_R),t={kind:M.a.LIST_TYPE,type:t,loc:this.loc(e)}):t=this.parseNamedType(),this.expectOptionalToken(D.BANG)?{kind:M.a.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},e.parseNamedType=function(){var t=this._lexer.token;return{kind:M.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}},e.parseTypeSystemDefinition=function(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===D.NAME)switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(t)},e.peekDescription=function(){return this.peek(D.STRING)||this.peek(D.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);return{kind:M.a.SCHEMA_DEFINITION,description:e,directives:n,operationTypes:r,loc:this.loc(t)}},e.parseOperationTypeDefinition=function(){var t=this._lexer.token,e=this.parseOperationType();this.expectToken(D.COLON);var n=this.parseNamedType();return{kind:M.a.OPERATION_TYPE_DEFINITION,operation:e,type:n,loc:this.loc(t)}},e.parseScalarTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:M.a.SCALAR_TYPE_DEFINITION,description:e,name:n,directives:r,loc:this.loc(t)}},e.parseObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),l=this.parseFieldsDefinition();return{kind:M.a.OBJECT_TYPE_DEFINITION,description:e,name:n,interfaces:r,directives:o,fields:l,loc:this.loc(t)}},e.parseImplementsInterfaces=function(){var t;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces)){var e=[];this.expectOptionalToken(D.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(D.AMP)||this.peek(D.NAME));return e}return this.delimitedMany(D.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var t;return!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLEmptyFields)&&this.peek(D.BRACE_L)&&this._lexer.lookahead().kind===D.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(D.BRACE_L,this.parseFieldDefinition,D.BRACE_R)},e.parseFieldDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(D.COLON);var o=this.parseTypeReference(),l=this.parseDirectives(!0);return{kind:M.a.FIELD_DEFINITION,description:e,name:n,arguments:r,type:o,directives:l,loc:this.loc(t)}},e.parseArgumentDefs=function(){return this.optionalMany(D.PAREN_L,this.parseInputValueDef,D.PAREN_R)},e.parseInputValueDef=function(){var t=this._lexer.token,e=this.parseDescription(),n=this.parseName();this.expectToken(D.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(D.EQUALS)&&(r=this.parseValueLiteral(!0));var l=this.parseDirectives(!0);return{kind:M.a.INPUT_VALUE_DEFINITION,description:e,name:n,type:o,defaultValue:r,directives:l,loc:this.loc(t)}},e.parseInterfaceTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),l=this.parseFieldsDefinition();return{kind:M.a.INTERFACE_TYPE_DEFINITION,description:e,name:n,interfaces:r,directives:o,fields:l,loc:this.loc(t)}},e.parseUnionTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:M.a.UNION_TYPE_DEFINITION,description:e,name:n,directives:r,types:o,loc:this.loc(t)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(D.EQUALS)?this.delimitedMany(D.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:M.a.ENUM_TYPE_DEFINITION,description:e,name:n,directives:r,values:o,loc:this.loc(t)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseEnumValueDefinition,D.BRACE_R)},e.parseEnumValueDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:M.a.ENUM_VALUE_DEFINITION,description:e,name:n,directives:r,loc:this.loc(t)}},e.parseInputObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:M.a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:n,directives:r,fields:o,loc:this.loc(t)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseInputValueDef,D.BRACE_R)},e.parseTypeSystemExtension=function(){var t=this._lexer.lookahead();if(t.kind===D.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)},e.parseSchemaExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var e=this.parseDirectives(!0),n=this.optionalMany(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);if(0===e.length&&0===n.length)throw this.unexpected();return{kind:M.a.SCHEMA_EXTENSION,directives:e,operationTypes:n,loc:this.loc(t)}},e.parseScalarTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var e=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:M.a.SCALAR_TYPE_EXTENSION,name:e,directives:n,loc:this.loc(t)}},e.parseObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var e=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:M.a.OBJECT_TYPE_EXTENSION,name:e,interfaces:n,directives:r,fields:o,loc:this.loc(t)}},e.parseInterfaceTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var e=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:M.a.INTERFACE_TYPE_EXTENSION,name:e,interfaces:n,directives:r,fields:o,loc:this.loc(t)}},e.parseUnionTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var e=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:M.a.UNION_TYPE_EXTENSION,name:e,directives:n,types:r,loc:this.loc(t)}},e.parseEnumTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var e=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:M.a.ENUM_TYPE_EXTENSION,name:e,directives:n,values:r,loc:this.loc(t)}},e.parseInputObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var e=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:M.a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:n,fields:r,loc:this.loc(t)}},e.parseDirectiveDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(D.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var l=this.parseDirectiveLocations();return{kind:M.a.DIRECTIVE_DEFINITION,description:e,name:n,arguments:r,repeatable:o,locations:l,loc:this.loc(t)}},e.parseDirectiveLocations=function(){return this.delimitedMany(D.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var t=this._lexer.token,e=this.parseName();if(void 0!==V[e.value])return e;throw this.unexpected(t)},e.loc=function(t){var e;if(!0!==(null===(e=this._options)||void 0===e?void 0:e.noLocation))return new j.a(t,this._lexer.lastToken,this._lexer.source)},e.peek=function(t){return this._lexer.token.kind===t},e.expectToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw I(this._lexer.source,e.start,"Expected ".concat(nt(t),", found ").concat(et(e),"."))},e.expectOptionalToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e},e.expectKeyword=function(t){var e=this._lexer.token;if(e.kind!==D.NAME||e.value!==t)throw I(this._lexer.source,e.start,'Expected "'.concat(t,'", found ').concat(et(e),"."));this._lexer.advance()},e.expectOptionalKeyword=function(t){var e=this._lexer.token;return e.kind===D.NAME&&e.value===t&&(this._lexer.advance(),!0)},e.unexpected=function(t){var e=null!=t?t:this._lexer.token;return I(this._lexer.source,e.start,"Unexpected ".concat(et(e),"."))},e.any=function(t,e,n){this.expectToken(t);for(var r=[];!this.expectOptionalToken(n);)r.push(e.call(this));return r},e.optionalMany=function(t,e,n){if(this.expectOptionalToken(t)){var r=[];do{r.push(e.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function(t,e,n){this.expectToken(t);var r=[];do{r.push(e.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function(t,e){this.expectOptionalToken(t);var n=[];do{n.push(e.call(this))}while(this.expectOptionalToken(t));return n},t}();function et(t){var e=t.value;return nt(t.kind)+(null!=e?' "'.concat(e,'"'):"")}function nt(t){return function(t){return t===D.BANG||t===D.DOLLAR||t===D.AMP||t===D.PAREN_L||t===D.PAREN_R||t===D.SPREAD||t===D.COLON||t===D.EQUALS||t===D.AT||t===D.BRACKET_L||t===D.BRACKET_R||t===D.BRACE_L||t===D.PIPE||t===D.BRACE_R}(t)?'"'.concat(t,'"'):t}var it=new Map,ot=new Map,at=!0,st=!1;function ut(t){return t.replace(/[\s,]+/g," ").trim()}function lt(t){var e=new Set,n=[];return t.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var r=t.name.value,o=ut((c=t.loc).source.body.substring(c.start,c.end)),l=ot.get(r);l&&!l.has(o)?at&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):l||ot.set(r,l=new Set),l.add(o),e.has(o)||(e.add(o),n.push(t))}else n.push(t);var c})),Object(r.a)(Object(r.a)({},t),{definitions:n})}function ct(source){var t=ut(source);if(!it.has(t)){var e=function(source,t){return new tt(source,t).parseDocument()}(source,{experimentalFragmentVariables:st,allowLegacyFragmentVariables:st});if(!e||"Document"!==e.kind)throw new Error("Not a valid GraphQL document.");it.set(t,function(t){var e=new Set(t.definitions);e.forEach((function(t){t.loc&&delete t.loc,Object.keys(t).forEach((function(n){var r=t[n];r&&"object"==typeof r&&e.add(r)}))}));var n=t.loc;return n&&(delete n.startToken,delete n.endToken),t}(lt(e)))}return it.get(t)}function ft(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];"string"==typeof t&&(t=[t]);var r=t[0];return e.forEach((function(e,i){e&&"Document"===e.kind?r+=e.loc.source.body:r+=e,r+=t[i+1]})),ct(r)}var ht,pt=ft,mt=function(){it.clear(),ot.clear()},vt=function(){at=!1},yt=function(){st=!0},gt=function(){st=!1};(ht=ft||(ft={})).gql=pt,ht.resetCaches=mt,ht.disableFragmentWarnings=vt,ht.enableExperimentalFragmentVariables=yt,ht.disableExperimentalFragmentVariables=gt,ft.default=ft;e.a=ft},function(t,e,n){"use strict";(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?d(t):e}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||w(t,e)||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 p(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||w(t)||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 w(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return Yr})),n.d(e,"b",(function(){return Dr})),n.d(e,"c",(function(){return Ir})),n.d(e,"d",(function(){return ar})),n.d(e,"e",(function(){return _r})),n.d(e,"f",(function(){return Wr})),n.d(e,"g",(function(){return Ar}));var g=Float32Array;function E(t,e,n){var r=new g(3);return t&&(r[0]=t),e&&(r[1]=e),n&&(r[2]=n),r}function S(t,e,n){return(n=n||new g(3))[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n}function b(t,e,n){n=n||new g(3);var r=t[2]*e[0]-t[0]*e[2],i=t[0]*e[1]-t[1]*e[0];return n[0]=t[1]*e[2]-t[2]*e[1],n[1]=r,n[2]=i,n}function k(t,e){e=e||new g(3);var n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=Math.sqrt(n);return r>1e-5?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=0,e[1]=0,e[2]=0),e}var A,O,T,C=Float32Array;function P(t,e){return(e=e||new C(16))[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function I(t){return(t=t||new C(16))[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){e=e||new C(16);var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],f=t[9],h=t[10],d=t[11],m=t[12],p=t[13],v=t[14],y=t[15],g=h*y,_=v*d,w=u*y,b=v*l,x=u*d,E=h*l,S=i*y,k=v*o,A=i*d,O=h*o,T=i*l,P=u*o,I=c*p,M=m*f,j=a*p,D=m*s,F=a*f,R=c*s,L=n*p,N=m*r,B=n*f,V=c*r,z=n*s,U=a*r,$=g*s+b*f+x*p-(_*s+w*f+E*p),G=_*r+S*f+O*p-(g*r+k*f+A*p),H=w*r+k*s+T*p-(b*r+S*s+P*p),W=E*r+A*s+P*f-(x*r+O*s+T*f),Q=1/(n*$+a*G+c*H+m*W);return e[0]=Q*$,e[1]=Q*G,e[2]=Q*H,e[3]=Q*W,e[4]=Q*(_*a+w*c+E*m-(g*a+b*c+x*m)),e[5]=Q*(g*n+k*c+A*m-(_*n+S*c+O*m)),e[6]=Q*(b*n+S*a+P*m-(w*n+k*a+T*m)),e[7]=Q*(x*n+O*a+T*c-(E*n+A*a+P*c)),e[8]=Q*(I*l+D*d+F*y-(M*l+j*d+R*y)),e[9]=Q*(M*o+L*d+V*y-(I*o+N*d+B*y)),e[10]=Q*(j*o+N*l+z*y-(D*o+L*l+U*y)),e[11]=Q*(R*o+B*l+U*d-(F*o+V*l+z*d)),e[12]=Q*(j*h+R*v+M*u-(F*v+I*u+D*h)),e[13]=Q*(B*v+I*i+N*h-(L*h+V*v+M*i)),e[14]=Q*(L*u+U*v+D*i-(z*v+j*i+N*u)),e[15]=Q*(z*h+F*i+V*u-(B*u+U*h+R*i)),e}function j(t,e,n){n=n||E();var r=e[0],i=e[1],o=e[2],a=r*t[3]+i*t[7]+o*t[11]+t[15];return n[0]=(r*t[0]+i*t[4]+o*t[8]+t[12])/a,n[1]=(r*t[1]+i*t[5]+o*t[9]+t[13])/a,n[2]=(r*t[2]+i*t[6]+o*t[10]+t[14])/a,n}function D(t,e,n){n=n||E();var r=e[0],i=e[1],o=e[2];return n[0]=r*t[0]+i*t[4]+o*t[8],n[1]=r*t[1]+i*t[5]+o*t[9],n[2]=r*t[2]+i*t[6]+o*t[10],n}var F=Object.freeze({__proto__:null,axisRotate:function(t,e,n,r){r=r||new C(16);var i=e[0],o=e[1],a=e[2],s=Math.sqrt(i*i+o*o+a*a),u=(i/=s)*i,l=(o/=s)*o,c=(a/=s)*a,f=Math.cos(n),h=Math.sin(n),d=1-f,m=u+(1-u)*f,p=i*o*d+a*h,v=i*a*d-o*h,y=i*o*d-a*h,g=l+(1-l)*f,_=o*a*d+i*h,w=i*a*d+o*h,b=o*a*d-i*h,x=c+(1-c)*f,E=t[0],S=t[1],k=t[2],A=t[3],O=t[4],T=t[5],P=t[6],I=t[7],M=t[8],j=t[9],D=t[10],F=t[11];return r[0]=m*E+p*O+v*M,r[1]=m*S+p*T+v*j,r[2]=m*k+p*P+v*D,r[3]=m*A+p*I+v*F,r[4]=y*E+g*O+_*M,r[5]=y*S+g*T+_*j,r[6]=y*k+g*P+_*D,r[7]=y*A+g*I+_*F,r[8]=w*E+b*O+x*M,r[9]=w*S+b*T+x*j,r[10]=w*k+b*P+x*D,r[11]=w*A+b*I+x*F,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r},axisRotation:function(t,e,n){n=n||new C(16);var r=t[0],i=t[1],o=t[2],a=Math.sqrt(r*r+i*i+o*o),s=(r/=a)*r,u=(i/=a)*i,l=(o/=a)*o,c=Math.cos(e),f=Math.sin(e),h=1-c;return n[0]=s+(1-s)*c,n[1]=r*i*h+o*f,n[2]=r*o*h-i*f,n[3]=0,n[4]=r*i*h-o*f,n[5]=u+(1-u)*c,n[6]=i*o*h+r*f,n[7]=0,n[8]=r*o*h+i*f,n[9]=i*o*h-r*f,n[10]=l+(1-l)*c,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n},copy:P,frustum:function(t,e,n,r,i,o,a){var s=e-t,u=r-n,l=i-o;return(a=a||new C(16))[0]=2*i/s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*i/u,a[6]=0,a[7]=0,a[8]=(t+e)/s,a[9]=(r+n)/u,a[10]=o/l,a[11]=-1,a[12]=0,a[13]=0,a[14]=i*o/l,a[15]=0,a},getAxis:function(t,e,n){var r=4*e;return(n=n||E())[0]=t[r+0],n[1]=t[r+1],n[2]=t[r+2],n},getTranslation:function(t,e){return(e=e||E())[0]=t[12],e[1]=t[13],e[2]=t[14],e},identity:I,inverse:M,lookAt:function(t,e,n,r){return r=r||new C(16),A=A||E(),O=O||E(),k(function(t,e,n){return(n=n||new g(3))[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n}(t,e,T=T||E()),T),k(b(n,T,A),A),k(b(T,A,O),O),r[0]=A[0],r[1]=A[1],r[2]=A[2],r[3]=0,r[4]=O[0],r[5]=O[1],r[6]=O[2],r[7]=0,r[8]=T[0],r[9]=T[1],r[10]=T[2],r[11]=0,r[12]=t[0],r[13]=t[1],r[14]=t[2],r[15]=1,r},multiply:function(t,e,n){n=n||new C(16);var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=t[9],d=t[10],m=t[11],p=t[12],v=t[13],y=t[14],g=t[15],_=e[0],w=e[1],b=e[2],x=e[3],E=e[4],S=e[5],k=e[6],A=e[7],O=e[8],T=e[9],P=e[10],I=e[11],M=e[12],j=e[13],D=e[14],F=e[15];return n[0]=r*_+s*w+f*b+p*x,n[1]=i*_+u*w+h*b+v*x,n[2]=o*_+l*w+d*b+y*x,n[3]=a*_+c*w+m*b+g*x,n[4]=r*E+s*S+f*k+p*A,n[5]=i*E+u*S+h*k+v*A,n[6]=o*E+l*S+d*k+y*A,n[7]=a*E+c*S+m*k+g*A,n[8]=r*O+s*T+f*P+p*I,n[9]=i*O+u*T+h*P+v*I,n[10]=o*O+l*T+d*P+y*I,n[11]=a*O+c*T+m*P+g*I,n[12]=r*M+s*j+f*D+p*F,n[13]=i*M+u*j+h*D+v*F,n[14]=o*M+l*j+d*D+y*F,n[15]=a*M+c*j+m*D+g*F,n},negate:function(t,e){return(e=e||new C(16))[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e[4]=-t[4],e[5]=-t[5],e[6]=-t[6],e[7]=-t[7],e[8]=-t[8],e[9]=-t[9],e[10]=-t[10],e[11]=-t[11],e[12]=-t[12],e[13]=-t[13],e[14]=-t[14],e[15]=-t[15],e},ortho:function(t,e,n,r,i,o,a){return(a=a||new C(16))[0]=2/(e-t),a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2/(r-n),a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2/(i-o),a[11]=0,a[12]=(e+t)/(t-e),a[13]=(r+n)/(n-r),a[14]=(o+i)/(i-o),a[15]=1,a},perspective:function(t,e,n,r,i){i=i||new C(16);var o=Math.tan(.5*Math.PI-.5*t),a=1/(n-r);return i[0]=o/e,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=o,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=(n+r)*a,i[11]=-1,i[12]=0,i[13]=0,i[14]=n*r*a*2,i[15]=0,i},rotateX:function(t,e,n){n=n||new C(16);var r=t[4],i=t[5],o=t[6],a=t[7],s=t[8],u=t[9],l=t[10],c=t[11],f=Math.cos(e),h=Math.sin(e);return n[4]=f*r+h*s,n[5]=f*i+h*u,n[6]=f*o+h*l,n[7]=f*a+h*c,n[8]=f*s-h*r,n[9]=f*u-h*i,n[10]=f*l-h*o,n[11]=f*c-h*a,t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n},rotateY:function(t,e,n){n=n||new C(16);var r=t[0],i=t[1],o=t[2],a=t[3],s=t[8],u=t[9],l=t[10],c=t[11],f=Math.cos(e),h=Math.sin(e);return n[0]=f*r-h*s,n[1]=f*i-h*u,n[2]=f*o-h*l,n[3]=f*a-h*c,n[8]=f*s+h*r,n[9]=f*u+h*i,n[10]=f*l+h*o,n[11]=f*c+h*a,t!==n&&(n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n},rotateZ:function(t,e,n){n=n||new C(16);var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=Math.cos(e),h=Math.sin(e);return n[0]=f*r+h*s,n[1]=f*i+h*u,n[2]=f*o+h*l,n[3]=f*a+h*c,n[4]=f*s-h*r,n[5]=f*u-h*i,n[6]=f*l-h*o,n[7]=f*c-h*a,t!==n&&(n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n},rotationX:function(t,e){e=e||new C(16);var n=Math.cos(t),r=Math.sin(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},rotationY:function(t,e){e=e||new C(16);var n=Math.cos(t),r=Math.sin(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},rotationZ:function(t,e){e=e||new C(16);var n=Math.cos(t),r=Math.sin(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},scale:function(t,e,n){n=n||new C(16);var r=e[0],i=e[1],o=e[2];return n[0]=r*t[0],n[1]=r*t[1],n[2]=r*t[2],n[3]=r*t[3],n[4]=i*t[4],n[5]=i*t[5],n[6]=i*t[6],n[7]=i*t[7],n[8]=o*t[8],n[9]=o*t[9],n[10]=o*t[10],n[11]=o*t[11],t!==n&&(n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n},scaling:function(t,e){return(e=e||new C(16))[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},setAxis:function(t,e,n,r){r!==t&&(r=P(t,r));var i=4*n;return r[i+0]=e[0],r[i+1]=e[1],r[i+2]=e[2],r},setDefaultType:function(t){var e=C;return C=t,e},setTranslation:function(t,e,n){return t!==(n=n||I())&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11]),n[12]=e[0],n[13]=e[1],n[14]=e[2],n[15]=1,n},transformDirection:D,transformNormal:function(t,e,n){n=n||E();var r=M(t),i=e[0],o=e[1],a=e[2];return n[0]=i*r[0]+o*r[1]+a*r[2],n[1]=i*r[4]+o*r[5]+a*r[6],n[2]=i*r[8]+o*r[9]+a*r[10],n},transformPoint:j,translate:function(t,e,n){n=n||new C(16);var r=e[0],i=e[1],o=e[2],a=t[0],s=t[1],u=t[2],l=t[3],c=t[4],f=t[5],h=t[6],d=t[7],m=t[8],p=t[9],v=t[10],y=t[11],g=t[12],_=t[13],w=t[14],b=t[15];return t!==n&&(n[0]=a,n[1]=s,n[2]=u,n[3]=l,n[4]=c,n[5]=f,n[6]=h,n[7]=d,n[8]=m,n[9]=p,n[10]=v,n[11]=y),n[12]=a*r+c*i+m*o+g,n[13]=s*r+f*i+p*o+_,n[14]=u*r+h*i+v*o+w,n[15]=l*r+d*i+y*o+b,n},translation:function(t,e){return(e=e||new C(16))[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e},transpose:function(t,e){var n;if((e=e||new C(16))===t)return n=t[1],t[1]=t[4],t[4]=n,n=t[2],t[2]=t[8],t[8]=n,n=t[3],t[3]=t[12],t[12]=n,n=t[6],t[6]=t[9],t[9]=n,n=t[7],t[7]=t[13],t[13]=n,n=t[11],t[11]=t[14],t[14]=n,e;var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],f=t[8],h=t[9],d=t[10],m=t[11],p=t[12],v=t[13],y=t[14],g=t[15];return e[0]=r,e[1]=s,e[2]=f,e[3]=p,e[4]=i,e[5]=u,e[6]=h,e[7]=v,e[8]=o,e[9]=l,e[10]=d,e[11]=y,e[12]=a,e[13]=c,e[14]=m,e[15]=g,e}}),R={},L=R;function N(t){if(t instanceof Int8Array)return 5120;if(t instanceof Uint8Array)return 5121;if(t instanceof Uint8ClampedArray)return 5121;if(t instanceof Int16Array)return 5122;if(t instanceof Uint16Array)return 5123;if(t instanceof Int32Array)return 5124;if(t instanceof Uint32Array)return 5125;if(t instanceof Float32Array)return 5126;throw new Error("unsupported typed array type")}L[5120]=Int8Array,L[5121]=Uint8Array,L[5122]=Int16Array,L[5123]=Uint16Array,L[5124]=Int32Array,L[5125]=Uint32Array,L[5126]=Float32Array,L[32819]=Uint16Array,L[32820]=Uint16Array,L[33635]=Uint16Array,L[5131]=Uint16Array,L[33640]=Uint32Array,L[35899]=Uint32Array,L[35902]=Uint32Array,L[36269]=Uint32Array,L[34042]=Uint32Array;var B="undefined"!=typeof SharedArrayBuffer?function(t){return t&&t.buffer&&(t.buffer instanceof ArrayBuffer||t.buffer instanceof SharedArrayBuffer)}:function(t){return t&&t.buffer&&t.buffer instanceof ArrayBuffer};function V(){var t;(t=console).error.apply(t,arguments)}function z(){var t;(t=console).warn.apply(t,arguments)}function U(t,e){return"undefined"!=typeof WebGLTexture&&e instanceof WebGLTexture}function $(t,e,n,r,i){t.bindBuffer(e,n),t.bufferData(e,r,i||35044)}function G(t,e,n,r){if("undefined"!=typeof WebGLBuffer&&e instanceof WebGLBuffer)return e;n=n||34962;var o=t.createBuffer();return $(t,n,o,e,r),o}function H(t){return"indices"===t}function W(t){return t.length?t:t.data}var Q=/coord|texture/i,Y=/color|colour/i;function K(t,e){var n;if(e%(n=Q.test(t)?2:Y.test(t)?4:3)>0)throw new Error("Can not guess numComponents for attribute '".concat(t,"'. Tried ").concat(n," but ").concat(e," values is not evenly divisible by ").concat(n,". You should specify it."));return n}function q(t,e){return t.numComponents||t.size||K(e,W(t).length)}function X(t,e){if(B(t))return t;if(B(t.data))return t.data;Array.isArray(t)&&(t={data:t});var n=t.type;return n||(n=H(e)?Uint16Array:Float32Array),new n(t.data)}var J=["position","positions","a_position"];function Z(t,e,n){var r=function(t,e){var n={};return Object.keys(e).forEach((function(r){if(!H(r)){var i=e[r],o=i.attrib||i.name||i.attribName||""+r;if(i.value){if(!Array.isArray(i.value)&&!B(i.value))throw new Error("array.value is not array or typedarray");n[o]={value:i.value}}else{var a,s,u,l;if(i.buffer&&i.buffer instanceof WebGLBuffer)a=i.buffer,l=i.numComponents||i.size,s=i.type,u=i.normalize;else if("number"==typeof i||"number"==typeof i.data){var c=i.data||i,f=i.type||Float32Array,h=c*f.BYTES_PER_ELEMENT;s=function(t){if(t===Int8Array)return 5120;if(t===Uint8Array)return 5121;if(t===Uint8ClampedArray)return 5121;if(t===Int16Array)return 5122;if(t===Uint16Array)return 5123;if(t===Int32Array)return 5124;if(t===Uint32Array)return 5125;if(t===Float32Array)return 5126;throw new Error("unsupported typed array type")}(f),u=void 0!==i.normalize?i.normalize:(m=f)===Int8Array||m===Uint8Array,l=i.numComponents||i.size||K(r,c),a=t.createBuffer(),t.bindBuffer(34962,a),t.bufferData(34962,h,i.drawType||35044)}else{var d=X(i,r);a=G(t,d,void 0,i.drawType),s=N(d),u=void 0!==i.normalize?i.normalize:function(t){return t instanceof Int8Array||t instanceof Uint8Array}(d),l=q(i,r)}n[o]={buffer:a,numComponents:l,type:s,normalize:u,stride:i.stride||0,offset:i.offset||0,divisor:void 0===i.divisor?void 0:i.divisor,drawType:i.drawType}}}var m})),t.bindBuffer(34962,null),n}(t,e),i=Object.assign({},n||{});i.attribs=Object.assign({},n?n.attribs:{},r);var o=e.indices;if(o){var a=X(o,"indices");i.indices=G(t,a,34963),i.numElements=a.length,i.elementType=N(a)}else i.numElements||(i.numElements=function(t,e){var n,r;for(r=0;r<J.length&&!((n=J[r])in e)&&!((n=""+n)in e);++r);r===J.length&&(n=Object.keys(e)[0]);var i=e[n];t.bindBuffer(34962,i.buffer);var o=t.getBufferParameter(34962,34660);t.bindBuffer(34962,null);var a,s=o/(5120===(a=i.type)||5121===a?1:5122===a||5123===a?2:5124===a||5125===a||5126===a?4:0),u=i.numComponents||i.size,l=s/u;if(l%1!=0)throw new Error("numComponents ".concat(u," not correct for length ").concat(length));return l}(t,i.attribs));return i}function tt(t,e){var n={};return Object.keys(e).forEach((function(r){n[r]=function(t,e,n){var r="indices"===n?34963:34962;return G(t,X(e,n),r)}(t,e[r],r)})),e.indices?(n.numElements=e.indices.length,n.elementType=N(X(e.indices))):n.numElements=function(t){var e,n;for(n=0;n<J.length&&!((e=J[n])in t);++n);n===J.length&&(e=Object.keys(t)[0]);var r=t[e],i=W(r).length,o=q(r,e),a=i/o;if(i%o>0)throw new Error("numComponents ".concat(o," not correct for length ").concat(i));return a}(e),n}var et=W,nt=q;function it(t,e){var n=0;return t.push=function(){for(var e=0;e<arguments.length;++e){var r=arguments[e];if(r instanceof Array||B(r))for(var i=0;i<r.length;++i)t[n++]=r[i];else t[n++]=r}},t.reset=function(t){n=t||0},t.numComponents=e,Object.defineProperty(t,"numElements",{get:function(){return this.length/this.numComponents|0}}),t}function rt(t,e,n){return it(new(n||Float32Array)(t*e),t)}function ot(t){return"indices"!==t}function at(t,e,n){for(var r=t.length,i=new Float32Array(3),o=0;o<r;o+=3)n(e,[t[o],t[o+1],t[o+2]],i),t[o]=i[0],t[o+1]=i[1],t[o+2]=i[2]}function st(t,e,n){n=n||E();var r=e[0],i=e[1],o=e[2];return n[0]=r*t[0]+i*t[1]+o*t[2],n[1]=r*t[4]+i*t[5]+o*t[6],n[2]=r*t[8]+i*t[9]+o*t[10],n}function ut(t,e){return at(t,e,D),t}function lt(t,e){return at(t,M(e),st),t}function ct(t,e){return at(t,e,j),t}function ft(t,e){return Object.keys(t).forEach((function(n){var r=t[n];n.indexOf("pos")>=0?ct(r,e):n.indexOf("tan")>=0||n.indexOf("binorm")>=0?ut(r,e):n.indexOf("norm")>=0&&lt(r,e)})),t}function ht(t,e,n){return t=t||2,{position:{numComponents:2,data:[(e=e||0)+-1*(t*=.5),(n=n||0)+-1*t,e+1*t,n+-1*t,e+-1*t,n+1*t,e+1*t,n+1*t]},normal:[0,0,1,0,0,1,0,0,1,0,0,1],texcoord:[0,0,1,0,0,1,1,1],indices:[0,1,2,2,1,3]}}function pt(t,e,n,r,i){t=t||1,e=e||1,n=n||1,r=r||1,i=i||I();for(var o=(n+1)*(r+1),a=rt(3,o),s=rt(3,o),u=rt(2,o),l=0;l<=r;l++)for(var c=0;c<=n;c++){var f=c/n,h=l/r;a.push(t*f-.5*t,0,e*h-.5*e),s.push(0,1,0),u.push(f,h)}for(var d=n+1,m=rt(3,n*r*2,Uint16Array),p=0;p<r;p++)for(var v=0;v<n;v++)m.push((p+0)*d+v,(p+1)*d+v,(p+0)*d+v+1),m.push((p+1)*d+v,(p+1)*d+v+1,(p+0)*d+v+1);return ft({position:a,normal:s,texcoord:u,indices:m},i)}function mt(t,e,n,r,i,o,a){if(e<=0||n<=0)throw new Error("subdivisionAxis and subdivisionHeight must be > 0");r=r||0,o=o||0;for(var s=(i=i||Math.PI)-r,u=(a=a||2*Math.PI)-o,l=(e+1)*(n+1),c=rt(3,l),f=rt(3,l),h=rt(2,l),d=rt(3,l),m=rt(3,l),p=0;p<=n;p++)for(var v=0;v<=e;v++){var y=v/e,g=p/n,_=u*y+o,w=s*g+r,b=Math.sin(_),x=Math.cos(_),E=Math.sin(w),S=x*E,k=Math.cos(w),A=b*E,O=u*((v+1)/e)+o,T=s*(p/n)+r,C=Math.sin(O),P=Math.cos(O),I=Math.sin(T),M=Math.cos(T);d.push(P*I-S,M-k,C*I-A);var j=u*(v/e)+o,D=s*((p+1)/n)+r,F=Math.sin(j),R=Math.cos(j),L=Math.sin(D),N=R*L-S,B=Math.cos(D)-k,V=F*L-A;c.push(t*S,t*k,t*A),f.push(S,k,A),h.push(1-y,g),m.push(N,B,V)}for(var z=e+1,U=rt(3,e*n*2,Uint16Array),$=0;$<e;$++)for(var G=0;G<n;G++)U.push((G+0)*z+$,(G+0)*z+$+1,(G+1)*z+$),U.push((G+1)*z+$,(G+0)*z+$+1,(G+1)*z+$+1);return{position:c,normal:f,texcoord:h,indices:U,tangent:d,bitangent:m}}var dt=[[3,7,5,1],[6,2,0,4],[6,7,3,2],[0,1,5,4],[7,6,4,5],[2,3,1,0]];function vt(t){for(var e=(t=t||1)/2,n=[[-e,-e,-e],[+e,-e,-e],[-e,+e,-e],[+e,+e,-e],[-e,-e,+e],[+e,-e,+e],[-e,+e,+e],[+e,+e,+e]],r=[[1,0,0],[-1,0,0],[0,1,0],[0,-1,0],[0,0,1],[0,0,-1]],i=[[1,0],[0,0],[0,1],[1,1]],o=rt(3,24),a=rt(3,24),s=rt(2,24),u=rt(3,12,Uint16Array),l=0;l<6;++l){for(var c=dt[l],f=0;f<4;++f){var h=n[c[f]],d=r[l],m=i[f];o.push(h),a.push(d),s.push(m)}var p=4*l;u.push(p+0,p+1,p+2),u.push(p+0,p+2,p+3)}return{position:o,normal:a,texcoord:s,indices:u}}function yt(t,e,n,r,i,o,a){if(r<3)throw new Error("radialSubdivisions must be 3 or greater");if(i<1)throw new Error("verticalSubdivisions must be 1 or greater");for(var s=void 0===o||o,u=void 0===a||a,l=(s?2:0)+(u?2:0),c=(r+1)*(i+1+l),f=rt(3,c),h=rt(3,c),d=rt(2,c),m=rt(3,r*(i+l/2)*2,Uint16Array),p=r+1,v=Math.atan2(t-e,n),y=Math.cos(v),g=Math.sin(v),_=i+(u?2:0),w=s?-2:0;w<=_;++w){var b=w/i,x=n*b,E=void 0;w<0?(x=0,b=1,E=t):w>i?(x=n,b=1,E=e):E=t+w/i*(e-t),-2!==w&&w!==i+2||(E=0,b=0),x-=n/2;for(var S=0;S<p;++S){var k=Math.sin(S*Math.PI*2/r),A=Math.cos(S*Math.PI*2/r);f.push(k*E,x,A*E),w<0?h.push(0,-1,0):w>i?h.push(0,1,0):0===E?h.push(0,0,0):h.push(k*y,g,A*y),d.push(S/r,1-b)}}for(var O=0;O<i+l;++O)if(!(1===O&&s||O===i+l-2&&u))for(var T=0;T<r;++T)m.push(p*(O+0)+0+T,p*(O+0)+1+T,p*(O+1)+1+T),m.push(p*(O+0)+0+T,p*(O+1)+1+T,p*(O+1)+0+T);return{position:f,normal:h,texcoord:d,indices:m}}function gt(t,e){e=e||[];for(var n=[],r=0;r<t.length;r+=4){var i=t[r],o=t.slice(r+1,r+4);o.push.apply(o,e);for(var a=0;a<i;++a)n.push.apply(n,o)}return n}function bt(){var t=[0,0,0,0,150,0,30,0,0,0,150,0,30,150,0,30,0,0,30,0,0,30,30,0,100,0,0,30,30,0,100,30,0,100,0,0,30,60,0,30,90,0,67,60,0,30,90,0,67,90,0,67,60,0,0,0,30,30,0,30,0,150,30,0,150,30,30,0,30,30,150,30,30,0,30,100,0,30,30,30,30,30,30,30,100,0,30,100,30,30,30,60,30,67,60,30,30,90,30,30,90,30,67,60,30,67,90,30,0,0,0,100,0,0,100,0,30,0,0,0,100,0,30,0,0,30,100,0,0,100,30,0,100,30,30,100,0,0,100,30,30,100,0,30,30,30,0,30,30,30,100,30,30,30,30,0,100,30,30,100,30,0,30,30,0,30,60,30,30,30,30,30,30,0,30,60,0,30,60,30,30,60,0,67,60,30,30,60,30,30,60,0,67,60,0,67,60,30,67,60,0,67,90,30,67,60,30,67,60,0,67,90,0,67,90,30,30,90,0,30,90,30,67,90,30,30,90,0,67,90,30,67,90,0,30,90,0,30,150,30,30,90,30,30,90,0,30,150,0,30,150,30,0,150,0,0,150,30,30,150,30,0,150,0,30,150,30,30,150,0,0,0,0,0,0,30,0,150,30,0,0,0,0,150,30,0,150,0],e=gt([18,0,0,1,18,0,0,-1,6,0,1,0,6,1,0,0,6,0,-1,0,6,1,0,0,6,0,1,0,6,1,0,0,6,0,-1,0,6,1,0,0,6,0,-1,0,6,-1,0,0]),n=gt([18,200,70,120,18,80,70,200,6,70,200,210,6,200,200,70,6,210,100,70,6,210,160,70,6,70,180,210,6,100,70,210,6,76,210,100,6,140,210,80,6,90,130,110,6,160,160,220],[255]),r=t.length/3,i={position:rt(3,r),texcoord:rt(2,r),normal:rt(3,r),color:rt(4,r,Uint8Array),indices:rt(3,r/3,Uint16Array)};i.position.push(t),i.texcoord.push([.22,.19,.22,.79,.34,.19,.22,.79,.34,.79,.34,.19,.34,.19,.34,.31,.62,.19,.34,.31,.62,.31,.62,.19,.34,.43,.34,.55,.49,.43,.34,.55,.49,.55,.49,.43,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,0,1,1,1,0]),i.normal.push(e),i.color.push(n);for(var o=0;o<r;++o)i.indices.push(o);return i}function _t(t,e,n,r,i,o,a){if(i<=0)throw new Error("subdivisionDown must be > 0");var s=(a=a||1)-(o=o||0),u=2*(i+1)*4,l=rt(3,u),c=rt(3,u),f=rt(2,u);function h(t,e,n){return t+(e-t)*n}function d(e,n,a,u,d,m){for(var p=0;p<=i;p++){var v=n/1,y=p/i,_=2*(v-.5),b=(o+y*s)*Math.PI,w=Math.sin(b),x=Math.cos(b),E=h(t,e,w),k=_*r,A=x*t,O=w*E;l.push(k,A,O);var T=S((C=[0,w,x],P=a,(I=(I=void 0)||new g(3))[0]=C[0]*P[0],I[1]=C[1]*P[1],I[2]=C[2]*P[2],I),u);c.push(T),f.push(v*d+m,y)}var C,P,I}for(var m=0;m<2;m++){var p=2*(m/1-.5);d(e,m,[1,1,1],[0,0,0],1,0),d(e,m,[0,0,0],[p,0,0],0,0),d(n,m,[1,1,1],[0,0,0],1,0),d(n,m,[0,0,0],[p,0,0],0,1)}var v=rt(3,2*i*4,Uint16Array);function y(t,e){for(var n=0;n<i;++n)v.push(t+n+0,t+n+1,e+n+0),v.push(t+n+1,e+n+1,e+n+0)}var _=i+1;return y(0*_,4*_),y(5*_,7*_),y(6*_,2*_),y(3*_,1*_),{position:l,normal:c,texcoord:f,indices:v}}function wt(t,e,n,r,i,o){return yt(t,t,e,n,r,i,o)}function xt(t,e,n,r,i,o){if(n<3)throw new Error("radialSubdivisions must be 3 or greater");if(r<3)throw new Error("verticalSubdivisions must be 3 or greater");i=i||0;for(var a=(o=o||2*Math.PI)-i,s=n+1,u=r+1,l=s*u,c=rt(3,l),f=rt(3,l),h=rt(2,l),d=rt(3,n*r*2,Uint16Array),m=0;m<u;++m)for(var p=m/r,v=p*Math.PI*2,y=Math.sin(v),g=t+y*e,_=Math.cos(v),w=_*e,b=0;b<s;++b){var x=b/n,E=i+x*a,S=Math.sin(E),k=Math.cos(E),A=S*g,O=k*g,T=S*y,C=k*y;c.push(A,w,O),f.push(T,_,C),h.push(x,1-p)}for(var P=0;P<r;++P)for(var I=0;I<n;++I){var M=1+I,j=1+P;d.push(s*P+I,s*j+I,s*P+M),d.push(s*j+I,s*j+M,s*P+M)}return{position:c,normal:f,texcoord:h,indices:d}}function Et(t,e,n,r,i){if(e<3)throw new Error("divisions must be at least 3");i=i||1,r=r||0;for(var o=(e+1)*((n=n||1)+1),a=rt(3,o),s=rt(3,o),u=rt(2,o),l=rt(3,n*e*2,Uint16Array),c=0,f=t-r,h=e+1,d=0;d<=n;++d){for(var m=r+f*Math.pow(d/n,i),p=0;p<=e;++p){var v=2*Math.PI*p/e,y=m*Math.cos(v),g=m*Math.sin(v);if(a.push(y,0,g),s.push(0,1,0),u.push(1-p/e,d/n),d>0&&p!==e){var _=c+(p+1),w=c+p,b=c+p-h,x=c+(p+1)-h;l.push(_,w,b),l.push(_,b,x)}}c+=e+1}return{position:a,normal:s,texcoord:u,indices:l}}function St(t){return function(e){var n=t.apply(this,Array.prototype.slice.call(arguments,1));return tt(e,n)}}function kt(t){return function(e){var n=t.apply(null,Array.prototype.slice.call(arguments,1));return Z(e,n)}}var At=["numComponents","size","type","normalize","stride","offset","attrib","name","attribName"];function Ot(t,e,n,r){r=r||0;for(var i=t.length,o=0;o<i;++o)e[n+o]=t[o]+r}function Tt(t,e){var n,r,i=et(t),o=new i.constructor(e),a=o;return i.numComponents&&i.numElements&&it(o,i.numComponents),t.data&&(n=t,r=a={data:o},At.forEach((function(t){var e=n[t];void 0!==e&&(r[t]=e)}))),a}var Ct=kt(bt),Pt=St(bt),It=kt(vt),Mt=St(vt),jt=kt(pt),Dt=St(pt),Ft=kt(mt),Rt=St(mt),Lt=kt(yt),Nt=St(yt),Bt=kt(ht),Vt=St(ht),zt=kt(_t),qt=St(_t),Ut=kt(wt),$t=St(wt),Gt=kt(xt),Ht=St(xt),Wt=kt(Et),Qt=St(Et),Yt=zt,Kt=qt,Xt=_t,Jt=Object.freeze({__proto__:null,create3DFBufferInfo:Ct,create3DFBuffers:Pt,create3DFVertices:bt,createAugmentedTypedArray:rt,createCubeBufferInfo:It,createCubeBuffers:Mt,createCubeVertices:vt,createPlaneBufferInfo:jt,createPlaneBuffers:Dt,createPlaneVertices:pt,createSphereBufferInfo:Ft,createSphereBuffers:Rt,createSphereVertices:mt,createTruncatedConeBufferInfo:Lt,createTruncatedConeBuffers:Nt,createTruncatedConeVertices:yt,createXYQuadBufferInfo:Bt,createXYQuadBuffers:Vt,createXYQuadVertices:ht,createCresentBufferInfo:Yt,createCresentBuffers:Kt,createCresentVertices:Xt,createCrescentBufferInfo:zt,createCrescentBuffers:qt,createCrescentVertices:_t,createCylinderBufferInfo:Ut,createCylinderBuffers:$t,createCylinderVertices:wt,createTorusBufferInfo:Gt,createTorusBuffers:Ht,createTorusVertices:xt,createDiscBufferInfo:Wt,createDiscBuffers:Qt,createDiscVertices:Et,deindexVertices:function(t){var e=t.indices,n={},r=e.length;return Object.keys(t).filter(ot).forEach((function(i){for(var o=t[i],a=o.numComponents,s=rt(a,r,o.constructor),u=0;u<r;++u)for(var l=e[u]*a,c=0;c<a;++c)s.push(o[l+c]);n[i]=s})),n},flattenNormals:function(t){if(t.indices)throw new Error("can not flatten normals of indexed vertices. deindex them first");for(var e=t.normal,n=e.length,r=0;r<n;r+=9){var i=e[r+0],o=e[r+1],a=e[r+2],s=e[r+3],u=e[r+4],l=e[r+5],c=i+s+e[r+6],f=o+u+e[r+7],h=a+l+e[r+8],d=Math.sqrt(c*c+f*f+h*h);c/=d,f/=d,h/=d,e[r+0]=c,e[r+1]=f,e[r+2]=h,e[r+3]=c,e[r+4]=f,e[r+5]=h,e[r+6]=c,e[r+7]=f,e[r+8]=h}return t},makeRandomVertexColors:function(t,e){e=e||{};var n=t.position.numElements,r=rt(4,n,Uint8Array),i=e.rand||function(t,e){return e<3?(256,256*Math.random()|0):255};if(t.color=r,t.indices)for(var o=0;o<n;++o)r.push(i(o,0),i(o,1),i(o,2),i(o,3));else for(var a=e.vertsPerColor||3,s=n/a,u=0;u<s;++u)for(var l=[i(u,0),i(u,1),i(u,2),i(u,3)],c=0;c<a;++c)r.push(l);return t},reorientDirections:ut,reorientNormals:lt,reorientPositions:ct,reorientVertices:ft,concatVertices:function(t){for(var e,n={},r=function(r){var i=t[r];Object.keys(i).forEach((function(t){n[t]||(n[t]=[]),e||"indices"===t||(e=t);var r=i[t],o=nt(r,t),a=et(r).length/o;n[t].push(a)}))},i=0;i<t.length;++i)r(i);var o=n[e],a={};return Object.keys(n).forEach((function(e){var n=function(e){for(var n,r=0,i=0;i<t.length;++i){var o=t[i][e];r+=et(o).length,n&&!o.data||(n=o)}return{length:r,spec:n}}(e),r=Tt(n.spec,n.length);!function(e,n,r){for(var i=0,o=0,a=0;a<t.length;++a){var s=t[a][e],u=et(s);"indices"===e?(Ot(u,r,o,i),i+=n[a]):Ot(u,r,o),o+=u.length}}(e,o,et(r)),a[e]=r})),a},duplicateVertices:function(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n],i=et(r),o=Tt(r,i.length);Ot(i,et(o),0),e[n]=o})),e}});function Zt(t){return!!t.texStorage2D}function te(t){return!t.texStorage2D}var ee,ne,re,ie=(ee={},ne={},function(t,e){return function(t){var e=t.constructor.name;if(!ee[e]){for(var n in t)if("number"==typeof t[n]){var r=ne[t[n]];ne[t[n]]=r?"".concat(r," | ").concat(n):n}ee[e]=!0}}(t),ne[e]||"0x"+e.toString(16)}),oe={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},ae=B;function se(){return re=re||("undefined"!=typeof document&&document.createElement?document.createElement("canvas").getContext("2d"):null)}var ue,le=6407,ce=33319,fe={6406:{numColorComponents:1},6409:{numColorComponents:1},6410:{numColorComponents:2},6407:{numColorComponents:3},6408:{numColorComponents:4},6403:{numColorComponents:1},36244:{numColorComponents:1},33319:{numColorComponents:2},33320:{numColorComponents:2}};function he(t){if(!ue){var e={6406:{textureFormat:6406,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[5121,5131,36193,5126]},6409:{textureFormat:6409,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[5121,5131,36193,5126]},6410:{textureFormat:6410,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[5121,5131,36193,5126]}};e[le]={textureFormat:le,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[5121,5131,36193,5126,33635]},e[6408]={textureFormat:6408,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[5121,5131,36193,5126,32819,32820]},e[33321]={textureFormat:6403,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[5121]},e[36756]={textureFormat:6403,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[5120]},e[33325]={textureFormat:6403,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[5126,5131]},e[33326]={textureFormat:6403,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[5126]},e[33330]={textureFormat:36244,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[5121]},e[33329]={textureFormat:36244,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[5120]},e[33332]={textureFormat:36244,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[5123]},e[33331]={textureFormat:36244,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[5122]},e[33334]={textureFormat:36244,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5125]},e[33333]={textureFormat:36244,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5124]},e[33323]={textureFormat:ce,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[5121]},e[36757]={textureFormat:ce,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[5120]},e[33327]={textureFormat:ce,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[5126,5131]},e[33328]={textureFormat:ce,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[5126]},e[33336]={textureFormat:33320,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[5121]},e[33335]={textureFormat:33320,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[5120]},e[33338]={textureFormat:33320,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5123]},e[33337]={textureFormat:33320,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5122]},e[33340]={textureFormat:33320,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[5125]},e[33339]={textureFormat:33320,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[5124]},e[32849]={textureFormat:le,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[5121]},e[35905]={textureFormat:le,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[5121]},e[36194]={textureFormat:le,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[5121,33635]},e[36758]={textureFormat:le,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[5120]},e[35898]={textureFormat:le,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[5126,5131,35899]},e[35901]={textureFormat:le,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[5126,5131,35902]},e[34843]={textureFormat:le,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[5126,5131]},e[34837]={textureFormat:le,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[5126]},e[36221]={textureFormat:36248,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[5121]},e[36239]={textureFormat:36248,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[5120]},e[36215]={textureFormat:36248,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[5123]},e[36233]={textureFormat:36248,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[5122]},e[36209]={textureFormat:36248,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[5125]},e[36227]={textureFormat:36248,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[5124]},e[32856]={textureFormat:6408,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[5121]},e[35907]={textureFormat:6408,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[5121]},e[36759]={textureFormat:6408,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[5120]},e[32855]={textureFormat:6408,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[5121,32820,33640]},e[32854]={textureFormat:6408,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[5121,32819]},e[32857]={textureFormat:6408,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[33640]},e[34842]={textureFormat:6408,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[5126,5131]},e[34836]={textureFormat:6408,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[5126]},e[36220]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5121]},e[36238]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5120]},e[36975]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[33640]},e[36214]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[5123]},e[36232]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[5122]},e[36226]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[5124]},e[36208]={textureFormat:36249,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[5125]},e[33189]={textureFormat:6402,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[5123,5125]},e[33190]={textureFormat:6402,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5125]},e[36012]={textureFormat:6402,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[5126]},e[35056]={textureFormat:34041,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[34042]},e[36013]={textureFormat:34041,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[36269]},Object.keys(e).forEach((function(t){var n=e[t];n.bytesPerElementMap={},n.bytesPerElement.forEach((function(t,e){var r=n.type[e];n.bytesPerElementMap[r]=t}))})),ue=e}return ue[t]}function pe(t){var e=he(t);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function de(t){return 0==(t&t-1)}function me(t,e,n,r,i){if(i%1!=0)throw"can't guess dimensions";if(n||r){if(r){if(!n&&(n=i/r)%1)throw"can't guess dimensions"}else if((r=i/n)%1)throw"can't guess dimensions"}else{var o=Math.sqrt(i/(34067===e?6:1));o%1==0?(n=o,r=o):(n=i,r=1)}return{width:n,height:r}}fe[le]={numColorComponents:3},fe[36248]={numColorComponents:3},fe[6408]={numColorComponents:4},fe[36249]={numColorComponents:4},fe[6402]={numColorComponents:1},fe[34041]={numColorComponents:2};var ve={};function ye(t,e){void 0!==e.colorspaceConversion&&(ve.colorspaceConversion=t.getParameter(37443),t.pixelStorei(37443,e.colorspaceConversion)),void 0!==e.premultiplyAlpha&&(ve.premultiplyAlpha=t.getParameter(37441),t.pixelStorei(37441,e.premultiplyAlpha)),void 0!==e.flipY&&(ve.flipY=t.getParameter(37440),t.pixelStorei(37440,e.flipY))}function ge(t,e){void 0!==e.colorspaceConversion&&t.pixelStorei(37443,ve.colorspaceConversion),void 0!==e.premultiplyAlpha&&t.pixelStorei(37441,ve.premultiplyAlpha),void 0!==e.flipY&&t.pixelStorei(37440,ve.flipY)}function be(t){ve.unpackAlignment=t.getParameter(3317),Zt(t)&&(ve.unpackRowLength=t.getParameter(3314),ve.unpackImageHeight=t.getParameter(32878),ve.unpackSkipPixels=t.getParameter(3316),ve.unpackSkipRows=t.getParameter(3315),ve.unpackSkipImages=t.getParameter(32877))}function _e(t){t.pixelStorei(3317,ve.unpackAlignment),Zt(t)&&(t.pixelStorei(3314,ve.unpackRowLength),t.pixelStorei(32878,ve.unpackImageHeight),t.pixelStorei(3316,ve.unpackSkipPixels),t.pixelStorei(3315,ve.unpackSkipRows),t.pixelStorei(32877,ve.unpackSkipImages))}function we(t,e,n){var r=n.target||3553;t.bindTexture(r,e),function(t,e,n,r){r.minMag&&(n.call(t,e,10241,r.minMag),n.call(t,e,10240,r.minMag)),r.min&&n.call(t,e,10241,r.min),r.mag&&n.call(t,e,10240,r.mag),r.wrap&&(n.call(t,e,10242,r.wrap),n.call(t,e,10243,r.wrap),(32879===e||"undefined"!=typeof WebGLSampler&&e instanceof WebGLSampler)&&n.call(t,e,32882,r.wrap)),r.wrapR&&n.call(t,e,32882,r.wrapR),r.wrapS&&n.call(t,e,10242,r.wrapS),r.wrapT&&n.call(t,e,10243,r.wrapT),r.minLod&&n.call(t,e,33082,r.minLod),r.maxLod&&n.call(t,e,33083,r.maxLod),r.baseLevel&&n.call(t,e,33084,r.baseLevel),r.maxLevel&&n.call(t,e,33085,r.maxLevel)}(t,r,t.texParameteri,n)}function xe(t,e,n,r,i,o){o=o||6408;var a=(n=n||oe.textureOptions).target||3553;if(r=r||n.width,i=i||n.height,t.bindTexture(a,e),function(t,e,n,r){if(!Zt(t))return de(e)&&de(n);var i=he(r);if(!i)throw"unknown internal format";return i.colorRenderable&&i.textureFilterable}(t,r,i,o))t.generateMipmap(a);else{var s=function(t){var e=he(t);if(!e)throw"unknown internal format";return e.textureFilterable}(o)?9729:9728;t.texParameteri(a,10241,s),t.texParameteri(a,10240,s),t.texParameteri(a,10242,33071),t.texParameteri(a,10243,33071)}}function Ee(t){return!0===t.auto||void 0===t.auto&&void 0===t.level}function Se(t,e){return(e=e||{}).cubeFaceOrder||[34069,34070,34071,34072,34073,34074]}function ke(t,e){var n=Se(0,e).map((function(t,e){return{face:t,ndx:e}}));return n.sort((function(t,e){return t.face-e.face})),n}function Ae(t,e,n,r){var i=(r=r||oe.textureOptions).target||3553,o=r.level||0,a=n.width,s=n.height,u=r.internalFormat||r.format||6408,l=pe(u),c=r.format||l.format,f=r.type||l.type;if(ye(t,r),t.bindTexture(i,e),34067===i){var h,d,m=n.width,p=n.height;if(m/6===p)h=p,d=[0,0,1,0,2,0,3,0,4,0,5,0];else if(p/6===m)h=m,d=[0,0,0,1,0,2,0,3,0,4,0,5];else if(m/3==p/2)h=m/3,d=[0,0,1,0,2,0,0,1,1,1,2,1];else{if(m/2!=p/3)throw"can't figure out cube map from element: "+(n.src?n.src:n.nodeName);h=m/2,d=[0,0,1,0,0,1,1,1,0,2,1,2]}var v=se();v?(v.canvas.width=h,v.canvas.height=h,a=h,s=h,ke(0,r).forEach((function(e){var r=d[2*e.ndx+0]*h,i=d[2*e.ndx+1]*h;v.drawImage(n,r,i,h,h,0,0,h,h),t.texImage2D(e.face,o,u,c,f,v.canvas)})),v.canvas.width=1,v.canvas.height=1):"undefined"!=typeof createImageBitmap&&(a=h,s=h,ke(0,r).forEach((function(l){var m=d[2*l.ndx+0]*h,p=d[2*l.ndx+1]*h;t.texImage2D(l.face,o,u,h,h,0,c,f,null),createImageBitmap(n,m,p,h,h,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then((function(n){ye(t,r),t.bindTexture(i,e),t.texImage2D(l.face,o,u,c,f,n),ge(t,r),Ee(r)&&xe(t,e,r,a,s,u)}))})))}else if(32879===i||35866===i){var y=Math.min(n.width,n.height),g=Math.max(n.width,n.height),_=g/y;if(_%1!=0)throw"can not compute 3D dimensions of element";var w=n.width===g?1:0,b=n.height===g?1:0;be(t),t.pixelStorei(3317,1),t.pixelStorei(3314,n.width),t.pixelStorei(32878,0),t.pixelStorei(32877,0),t.texImage3D(i,o,u,y,y,y,0,c,f,null);for(var x=0;x<_;++x){var E=x*y*w,S=x*y*b;t.pixelStorei(3316,E),t.pixelStorei(3315,S),t.texSubImage3D(i,o,0,0,x,y,y,1,c,f,n)}_e(t)}else t.texImage2D(i,o,u,c,f,n);ge(t,r),Ee(r)&&xe(t,e,r,a,s,u),we(t,e,r)}function Oe(){}function Te(t){return"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof ImageData&&t instanceof ImageData||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement}function Ce(t,e,n){return Te(t)?(setTimeout((function(){n(null,t)})),t):function(t,e,n){var r;if(n=n||Oe,e=function(t,e){return void 0!==e||function(t){if("undefined"!=typeof document){var e=document.createElement("a");return e.href=t,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}var n=new URL(location.href).origin;return new URL(t,location.href).origin===n}(t)?e:"anonymous"}(t,e=void 0!==e?e:oe.crossOrigin),"undefined"!=typeof Image){r=new Image,void 0!==e&&(r.crossOrigin=e);var i=function(){r.removeEventListener("error",o),r.removeEventListener("load",a),r=null},o=function(){var e="couldn't load image: "+t;V(e),n(e,r),i()},a=function(){n(null,r),i()};return r.addEventListener("error",o),r.addEventListener("load",a),r.src=t,r}if("undefined"!=typeof ImageBitmap){var s,u,l=function(){n(s,u)},c={};e&&(c.mode="cors"),fetch(t,c).then((function(t){if(!t.ok)throw t;return t.blob()})).then((function(t){return createImageBitmap(t,{premultiplyAlpha:"none",colorSpaceConversion:"none"})})).then((function(t){u=t,setTimeout(l)})).catch((function(t){s=t,setTimeout(l)})),r=null}return r}(t,e,n)}function Pe(t,e,n){var r=(n=n||oe.textureOptions).target||3553;if(t.bindTexture(r,e),!1!==n.color){var i=function(t){return ae(t=t||oe.textureColor)?t:new Uint8Array([255*t[0],255*t[1],255*t[2],255*t[3]])}(n.color);if(34067===r)for(var o=0;o<6;++o)t.texImage2D(34069+o,0,6408,1,1,0,6408,5121,i);else 32879===r||35866===r?t.texImage3D(r,0,6408,1,1,1,0,6408,5121,i):t.texImage2D(r,0,6408,1,1,0,6408,5121,i)}}function Ie(t,e,n){n=n||Oe,e=e||oe.textureOptions;var r=t.createTexture(),i=e.target||3553,o=e.width||1,a=e.height||1,s=e.internalFormat||6408;t.bindTexture(i,r),34067===i&&(t.texParameteri(i,10242,33071),t.texParameteri(i,10243,33071));var u=e.src;if(u)if("function"==typeof u&&(u=u(t,e)),"string"==typeof u)!function(t,e,n,r){r=r||Oe,Pe(t,e,n=n||oe.textureOptions),Ce((n=Object.assign({},n)).src,n.crossOrigin,(function(i,o){i?r(i,e,o):(Ae(t,e,o,n),r(null,e,o))}))}(t,r,e,n);else if(ae(u)||Array.isArray(u)&&("number"==typeof u[0]||Array.isArray(u[0])||ae(u[0]))){var l=function(t,e,n,r){var i=(r=r||oe.textureOptions).target||3553;t.bindTexture(i,e);var o=r.width,a=r.height,s=r.depth,u=r.level||0,l=r.internalFormat||r.format||6408,c=pe(l),f=r.format||c.format,h=r.type||function(t,e,n){return ae(e)?N(e):n||5121}(0,n,c.type);if(ae(n))n instanceof Uint8ClampedArray&&(n=new Uint8Array(n.buffer));else{var d=function(t){var e=R[t];if(!e)throw new Error("unknown gl type");return e}(h);n=new d(n)}var m,p=function(t,e){var n=he(t);if(!n)throw"unknown internal format";var r=n.bytesPerElementMap[e];if(void 0===r)throw"unknown internal format";return r}(l,h),v=n.byteLength/p;if(v%1)throw"length wrong size for format: "+ie(t,f);if(32879===i||35866===i)if(o||a||s)!o||a&&s?!a||o&&s?(m=me(0,i,o,a,v/s),o=m.width,a=m.height):(m=me(0,i,o,s,v/a),o=m.width,s=m.height):(m=me(0,i,a,s,v/o),a=m.width,s=m.height);else{var y=Math.cbrt(v);if(y%1!=0)throw"can't guess cube size of array of numElements: "+v;o=y,a=y,s=y}else m=me(0,i,o,a,v),o=m.width,a=m.height;if(be(t),t.pixelStorei(3317,r.unpackAlignment||1),ye(t,r),34067===i){var g=v/6*(p/n.BYTES_PER_ELEMENT);ke(0,r).forEach((function(e){var r=g*e.ndx,i=n.subarray(r,r+g);t.texImage2D(e.face,u,l,o,a,0,f,h,i)}))}else 32879===i||35866===i?t.texImage3D(i,u,l,o,a,s,0,f,h,n):t.texImage2D(i,u,l,o,a,0,f,h,n);return ge(t,r),_e(t),{width:o,height:a,depth:s,type:h}}(t,r,u,e);o=l.width,a=l.height}else Array.isArray(u)&&("string"==typeof u[0]||Te(u[0]))?34067===i?function(t,e,n,r){r=r||Oe;var i=n.src;if(6!==i.length)throw"there must be 6 urls for a cubemap";var o=n.level||0,a=n.internalFormat||n.format||6408,s=pe(a),u=n.format||s.format,l=n.type||5121,c=n.target||3553;if(34067!==c)throw"target must be TEXTURE_CUBE_MAP";Pe(t,e,n),n=Object.assign({},n);var f,h=6,d=[],m=Se(0,n);f=i.map((function(i,s){return Ce(i,n.crossOrigin,(p=m[s],function(i,s){--h,i?d.push(i):s.width!==s.height?d.push("cubemap face img is not a square: "+s.src):(ye(t,n),t.bindTexture(c,e),5===h?Se().forEach((function(e){t.texImage2D(e,o,a,u,l,s)})):t.texImage2D(p,o,a,u,l,s),ge(t,n),Ee(n)&&t.generateMipmap(c)),0===h&&r(d.length?d:void 0,e,f)}));var p}))}(t,r,e,n):function(t,e,n,r){r=r||Oe;var i=n.src,o=n.internalFormat||n.format||6408,a=pe(o),s=n.format||a.format,u=n.type||5121,l=n.target||35866;if(32879!==l&&35866!==l)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";Pe(t,e,n),n=Object.assign({},n);var c,f=i.length,h=[],d=n.level||0,m=n.width,p=n.height,v=i.length,y=!0;c=i.map((function(i,a){return Ce(i,n.crossOrigin,(g=a,function(i,a){if(--f,i)h.push(i);else{if(ye(t,n),t.bindTexture(l,e),y){y=!1,m=n.width||a.width,p=n.height||a.height,t.texImage3D(l,d,o,m,p,v,0,s,u,null);for(var _=0;_<v;++_)t.texSubImage3D(l,d,0,0,_,m,p,1,s,u,a)}else{var w,b=a;a.width===m&&a.height===p||(b=(w=se()).canvas,w.canvas.width=m,w.canvas.height=p,w.drawImage(a,0,0,m,p)),t.texSubImage3D(l,d,0,0,g,m,p,1,s,u,b),w&&b===w.canvas&&(w.canvas.width=0,w.canvas.height=0)}ge(t,n),Ee(n)&&t.generateMipmap(l)}0===f&&r(h.length?h:void 0,e,c)}));var g}))}(t,r,e,n):(Ae(t,r,u,e),o=u.width,a=u.height);else!function(t,e,n){var r=n.target||3553;t.bindTexture(r,e);var i=n.level||0,o=n.internalFormat||n.format||6408,a=pe(o),s=n.format||a.format,u=n.type||a.type;if(ye(t,n),34067===r)for(var l=0;l<6;++l)t.texImage2D(34069+l,i,o,n.width,n.height,0,s,u,null);else 32879===r||35866===r?t.texImage3D(r,i,o,n.width,n.height,n.depth,0,s,u,null):t.texImage2D(r,i,o,n.width,n.height,0,s,u,null);ge(t,n)}(t,r,e);return Ee(e)&&xe(t,r,e,o,a,s),we(t,r,e),r}var Me=V;function je(t){return"undefined"!=typeof document&&document.getElementById?document.getElementById(t):null}var De={};function Fe(t,e){return De[e].bindPoint}function Re(t,e){return function(n){t.uniform1i(e,n)}}function Le(t,e){return function(n){t.uniform1iv(e,n)}}function Ne(t,e){return function(n){t.uniform2iv(e,n)}}function Be(t,e){return function(n){t.uniform3iv(e,n)}}function Ve(t,e){return function(n){t.uniform4iv(e,n)}}function ze(t,e,n,r){var i=Fe(0,e);return Zt(t)?function(e){var o,a;U(0,e)?(o=e,a=null):(o=e.texture,a=e.sampler),t.uniform1i(r,n),t.activeTexture(33984+n),t.bindTexture(i,o),t.bindSampler(n,a)}:function(e){t.uniform1i(r,n),t.activeTexture(33984+n),t.bindTexture(i,e)}}function qe(t,e,n,r,i){for(var o=Fe(0,e),a=new Int32Array(i),s=0;s<i;++s)a[s]=n+s;return Zt(t)?function(e){t.uniform1iv(r,a),e.forEach((function(e,r){var i,s;t.activeTexture(33984+a[r]),U(0,e)?(i=e,s=null):(i=e.texture,s=e.sampler),t.bindSampler(n,s),t.bindTexture(o,i)}))}:function(e){t.uniform1iv(r,a),e.forEach((function(e,n){t.activeTexture(33984+a[n]),t.bindTexture(o,e)}))}}function Ue(t,e){return function(n){if(n.value)switch(t.disableVertexAttribArray(e),n.value.length){case 4:t.vertexAttrib4fv(e,n.value);break;case 3:t.vertexAttrib3fv(e,n.value);break;case 2:t.vertexAttrib2fv(e,n.value);break;case 1:t.vertexAttrib1fv(e,n.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else t.bindBuffer(34962,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribPointer(e,n.numComponents||n.size,n.type||5126,n.normalize||!1,n.stride||0,n.offset||0),void 0!==n.divisor&&t.vertexAttribDivisor(e,n.divisor)}}function $e(t,e){return function(n){if(n.value){if(t.disableVertexAttribArray(e),4!==n.value.length)throw new Error("The length of an integer constant value must be 4!");t.vertexAttrib4iv(e,n.value)}else t.bindBuffer(34962,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||5124,n.stride||0,n.offset||0),void 0!==n.divisor&&t.vertexAttribDivisor(e,n.divisor)}}function Ge(t,e){return function(n){if(n.value){if(t.disableVertexAttribArray(e),4!==n.value.length)throw new Error("The length of an unsigned integer constant value must be 4!");t.vertexAttrib4uiv(e,n.value)}else t.bindBuffer(34962,n.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,n.numComponents||n.size,n.type||5125,n.stride||0,n.offset||0),void 0!==n.divisor&&t.vertexAttribDivisor(e,n.divisor)}}function He(t,e,n){var r=n.size,i=n.count;return function(n){t.bindBuffer(34962,n.buffer);for(var o=n.size||n.numComponents||r,a=o/i,s=n.type||5126,u=De[s].size*o,l=n.normalize||!1,c=n.offset||0,f=u/i,h=0;h<i;++h)t.enableVertexAttribArray(e+h),t.vertexAttribPointer(e+h,a,s,l,u,c+f*h),void 0!==n.divisor&&t.vertexAttribDivisor(e+h,n.divisor)}}De[5126]={Type:Float32Array,size:4,setter:function(t,e){return function(n){t.uniform1f(e,n)}},arraySetter:function(t,e){return function(n){t.uniform1fv(e,n)}}},De[35664]={Type:Float32Array,size:8,setter:function(t,e){return function(n){t.uniform2fv(e,n)}}},De[35665]={Type:Float32Array,size:12,setter:function(t,e){return function(n){t.uniform3fv(e,n)}}},De[35666]={Type:Float32Array,size:16,setter:function(t,e){return function(n){t.uniform4fv(e,n)}}},De[5124]={Type:Int32Array,size:4,setter:Re,arraySetter:Le},De[35667]={Type:Int32Array,size:8,setter:Ne},De[35668]={Type:Int32Array,size:12,setter:Be},De[35669]={Type:Int32Array,size:16,setter:Ve},De[5125]={Type:Uint32Array,size:4,setter:function(t,e){return function(n){t.uniform1ui(e,n)}},arraySetter:function(t,e){return function(n){t.uniform1uiv(e,n)}}},De[36294]={Type:Uint32Array,size:8,setter:function(t,e){return function(n){t.uniform2uiv(e,n)}}},De[36295]={Type:Uint32Array,size:12,setter:function(t,e){return function(n){t.uniform3uiv(e,n)}}},De[36296]={Type:Uint32Array,size:16,setter:function(t,e){return function(n){t.uniform4uiv(e,n)}}},De[35670]={Type:Uint32Array,size:4,setter:Re,arraySetter:Le},De[35671]={Type:Uint32Array,size:8,setter:Ne},De[35672]={Type:Uint32Array,size:12,setter:Be},De[35673]={Type:Uint32Array,size:16,setter:Ve},De[35674]={Type:Float32Array,size:16,setter:function(t,e){return function(n){t.uniformMatrix2fv(e,!1,n)}}},De[35675]={Type:Float32Array,size:36,setter:function(t,e){return function(n){t.uniformMatrix3fv(e,!1,n)}}},De[35676]={Type:Float32Array,size:64,setter:function(t,e){return function(n){t.uniformMatrix4fv(e,!1,n)}}},De[35685]={Type:Float32Array,size:24,setter:function(t,e){return function(n){t.uniformMatrix2x3fv(e,!1,n)}}},De[35686]={Type:Float32Array,size:32,setter:function(t,e){return function(n){t.uniformMatrix2x4fv(e,!1,n)}}},De[35687]={Type:Float32Array,size:24,setter:function(t,e){return function(n){t.uniformMatrix3x2fv(e,!1,n)}}},De[35688]={Type:Float32Array,size:48,setter:function(t,e){return function(n){t.uniformMatrix3x4fv(e,!1,n)}}},De[35689]={Type:Float32Array,size:32,setter:function(t,e){return function(n){t.uniformMatrix4x2fv(e,!1,n)}}},De[35690]={Type:Float32Array,size:48,setter:function(t,e){return function(n){t.uniformMatrix4x3fv(e,!1,n)}}},De[35678]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:3553},De[35680]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:34067},De[35679]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:32879},De[35682]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:3553},De[36289]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:35866},De[36292]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:35866},De[36293]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:34067},De[36298]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:3553},De[36299]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:32879},De[36300]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:34067},De[36303]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:35866},De[36306]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:3553},De[36307]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:32879},De[36308]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:34067},De[36311]={Type:null,size:0,setter:ze,arraySetter:qe,bindPoint:35866};var We={};We[5126]={size:4,setter:Ue},We[35664]={size:8,setter:Ue},We[35665]={size:12,setter:Ue},We[35666]={size:16,setter:Ue},We[5124]={size:4,setter:$e},We[35667]={size:8,setter:$e},We[35668]={size:12,setter:$e},We[35669]={size:16,setter:$e},We[5125]={size:4,setter:Ge},We[36294]={size:8,setter:Ge},We[36295]={size:12,setter:Ge},We[36296]={size:16,setter:Ge},We[35670]={size:4,setter:$e},We[35671]={size:8,setter:$e},We[35672]={size:12,setter:$e},We[35673]={size:16,setter:$e},We[35674]={size:4,setter:He,count:2},We[35675]={size:9,setter:He,count:3},We[35676]={size:16,setter:He,count:4};var Qe=/^[ \t]*\n/;function Ye(t,e,n,r){var i=r||Me,o=t.createShader(n),a=0;if(Qe.test(e)&&(a=1,e=e.replace(Qe,"")),t.shaderSource(o,e),t.compileShader(o),!t.getShaderParameter(o,35713)){var s=t.getShaderInfoLog(o);return i(function(t,e){return e=e||0,++e,t.split("\n").map((function(t,n){return n+e+": "+t})).join("\n")}(e,a)+"\n*** Error compiling shader: "+s),t.deleteShader(o),null}return o}function Ke(t,e,n){var r,i;if("function"==typeof e&&(n=e,e=void 0),"function"==typeof t)n=t,t=void 0;else if(t&&!Array.isArray(t)){if(t.errorCallback)return t;var o=t;n=o.errorCallback,t=o.attribLocations,r=o.transformFeedbackVaryings,i=o.transformFeedbackMode}var a={errorCallback:n||Me,transformFeedbackVaryings:r,transformFeedbackMode:i};if(t){var s={};Array.isArray(t)?t.forEach((function(t,n){s[t]=e?e[n]:n})):s=t,a.attribLocations=s}return a}var Xe=["VERTEX_SHADER","FRAGMENT_SHADER"];function Je(t,e){e.forEach((function(e){t.deleteShader(e)}))}function Ze(t){var e=t.name;return e.startsWith("gl_")||e.startsWith("webgl_")}function tn(t,e){for(var n=t.uniformSetters||t,r=arguments.length,i=1;i<r;++i){var o=arguments[i];if(Array.isArray(o))for(var a=o.length,s=0;s<a;++s)tn(n,o[s]);else for(var u in o){var l=n[u];l&&l(o[u])}}}function en(t,e,n){n.vertexArrayObject?t.bindVertexArray(n.vertexArrayObject):(function(t,e){for(var n in e){var r=t[n];r&&r(e[n])}}(e.attribSetters||e,n.attribs),n.indices&&t.bindBuffer(34963,n.indices))}function nn(t,e,n){var r=t.createVertexArray();return t.bindVertexArray(r),e.length||(e=[e]),e.forEach((function(e){en(t,e,n)})),t.bindVertexArray(null),{numElements:n.numElements,elementType:n.elementType,vertexArrayObject:r}}var rn=/^(.*?)_/;function on(t,e){ie(t,0);var n=t.getExtension(e);if(n){var r={},i=rn.exec(e)[1],o="_"+i;for(var a in n){var s=n[a],u="function"==typeof s,l=u?i:o,c=a;a.endsWith(l)&&(c=a.substring(0,a.length-l.length)),void 0!==t[c]?u||t[c]===s||z(c,t[c],s,a):u?t[c]=function(t){return function(){return t.apply(n,arguments)}}(s):(t[c]=s,r[c]=s)}r.constructor={name:n.constructor.name},ie(r,0)}return n}var an=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function sn(t){for(var e=0;e<an.length;++e)on(t,an[e])}function un(t,e){e=e||1,e=Math.max(0,e);var n=t.clientWidth*e|0,r=t.clientHeight*e|0;return(t.width!==n||t.height!==r)&&(t.width=n,t.height=r,!0)}var ln=function(){function t(e,n){var r=this;o(this,t),i(this,"gl",null),i(this,"isWebGL2",null),i(this,"init",(function(){var t=r.gl;t.viewport(0,0,t.canvas.width,t.canvas.height),t.clearColor(0,0,0,1),t.enable(t.DEPTH_TEST),t.enable(t.CULL_FACE),t.enable(t.BLEND),t.blendFunc(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA)})),i(this,"resize",(function(t,e){r.gl.viewport(0,0,t,e)})),i(this,"prepareRenderFrame",(function(){r.gl.clear(r.gl.COLOR_BUFFER_BIT|r.gl.DEPTH_BUFFER_BIT)})),this.gl=function(t,e){return function(t,e){for(var n=["webgl","experimental-webgl"],r=null,i=0;i<n.length;++i)if(r=t.getContext(n[i],e)){sn(r);break}return r}(t,e)}(e,n),this.isWebGL2=Zt(this.gl)&&te(this.gl),sn(this.gl),this.gl.drawArraysInstanced&&this.gl.createVertexArray?un(e):alert("need drawArraysInstanced and createVertexArray")}return c(t,[{key:"clearColor",set:function(t){this.gl.clearColor(t[0],t[1],t[2],t[3])}}]),t}(),cn="undefined"!=typeof Float32Array?Float32Array:Array;function fn(){var t=new cn(16);return cn!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function hn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function pn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],f=e[9],h=e[10],d=e[11],m=e[12],p=e[13],v=e[14],y=e[15],g=n*s-r*a,_=n*u-i*a,w=n*l-o*a,b=r*u-i*s,x=r*l-o*s,E=i*l-o*u,S=c*p-f*m,k=c*v-h*m,A=c*y-d*m,O=f*v-h*p,T=f*y-d*p,C=h*y-d*v,P=g*C-_*T+w*O+b*A-x*k+E*S;return P?(P=1/P,t[0]=(s*C-u*T+l*O)*P,t[1]=(i*T-r*C-o*O)*P,t[2]=(p*E-v*x+y*b)*P,t[3]=(h*x-f*E-d*b)*P,t[4]=(u*A-a*C-l*k)*P,t[5]=(n*C-i*A+o*k)*P,t[6]=(v*w-m*E-y*_)*P,t[7]=(c*E-h*w+d*_)*P,t[8]=(a*T-s*A+l*S)*P,t[9]=(r*A-n*T-o*S)*P,t[10]=(m*x-p*w+y*g)*P,t[11]=(f*w-c*x-d*g)*P,t[12]=(s*k-a*O-u*S)*P,t[13]=(n*O-r*k+i*S)*P,t[14]=(p*_-m*b-v*g)*P,t[15]=(c*b-f*_+h*g)*P,t):null}function dn(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],f=e[8],h=e[9],d=e[10],m=e[11],p=e[12],v=e[13],y=e[14],g=e[15],_=n[0],w=n[1],b=n[2],x=n[3];return t[0]=_*r+w*s+b*f+x*p,t[1]=_*i+w*u+b*h+x*v,t[2]=_*o+w*l+b*d+x*y,t[3]=_*a+w*c+b*m+x*g,_=n[4],w=n[5],b=n[6],x=n[7],t[4]=_*r+w*s+b*f+x*p,t[5]=_*i+w*u+b*h+x*v,t[6]=_*o+w*l+b*d+x*y,t[7]=_*a+w*c+b*m+x*g,_=n[8],w=n[9],b=n[10],x=n[11],t[8]=_*r+w*s+b*f+x*p,t[9]=_*i+w*u+b*h+x*v,t[10]=_*o+w*l+b*d+x*y,t[11]=_*a+w*c+b*m+x*g,_=n[12],w=n[13],b=n[14],x=n[15],t[12]=_*r+w*s+b*f+x*p,t[13]=_*i+w*u+b*h+x*v,t[14]=_*o+w*l+b*d+x*y,t[15]=_*a+w*c+b*m+x*g,t}function mn(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}function vn(t,e,n,r){var i,o,a,s,u,l,c,f,h,d,m=e[0],p=e[1],v=e[2],y=r[0],g=r[1],_=r[2],w=n[0],b=n[1],x=n[2];return Math.abs(m-w)<1e-6&&Math.abs(p-b)<1e-6&&Math.abs(v-x)<1e-6?hn(t):(c=m-w,f=p-b,h=v-x,i=g*(h*=d=1/Math.hypot(c,f,h))-_*(f*=d),o=_*(c*=d)-y*h,a=y*f-g*c,(d=Math.hypot(i,o,a))?(i*=d=1/d,o*=d,a*=d):(i=0,o=0,a=0),s=f*a-h*o,u=h*i-c*a,l=c*o-f*i,(d=Math.hypot(s,u,l))?(s*=d=1/d,u*=d,l*=d):(s=0,u=0,l=0),t[0]=i,t[1]=s,t[2]=c,t[3]=0,t[4]=o,t[5]=u,t[6]=f,t[7]=0,t[8]=a,t[9]=l,t[10]=h,t[11]=0,t[12]=-(i*m+o*p+a*v),t[13]=-(s*m+u*p+l*v),t[14]=-(c*m+f*p+h*v),t[15]=1,t)}function yn(){var t=new cn(3);return cn!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function gn(t,e,n){var r=new cn(3);return r[0]=t,r[1]=e,r[2]=n,r}function bn(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function _n(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function wn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function xn(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function En(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Sn(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function kn(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function An(){var t=new cn(4);return cn!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}yn(),function(){var t;t=new cn(4),cn!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var On;yn(),gn(1,0,0),gn(0,1,0),An(),An(),On=new cn(9),cn!=Float32Array&&(On[1]=0,On[2]=0,On[3]=0,On[5]=0,On[6]=0,On[7]=0),On[0]=1,On[4]=1,On[8]=1,function(){var t=new cn(2);cn!=Float32Array&&(t[0]=0,t[1]=0)}();var Tn=function t(e,n){var r=this;o(this,t),i(this,"fov",void 0),i(this,"width",void 0),i(this,"height",void 0),i(this,"aspect",void 0),i(this,"zNear",void 0),i(this,"zFar",void 0),i(this,"projection",void 0),i(this,"eye",void 0),i(this,"target",void 0),i(this,"up",void 0),i(this,"view",void 0),i(this,"viewProjection",void 0),i(this,"world",void 0),i(this,"resize",(function(t,e){r.width=t,r.height=e,r.aspect=t/e,r.projection=fn(),mn(r.projection,r.fov,r.aspect,r.zNear,r.zFar)})),i(this,"update",(function(){vn(r.view,r.eye,r.target,r.up),pn(r.camera,r.view),dn(r.viewProjection,r.projection,r.view)})),i(this,"setPosition",(function(t){r.eye=t})),i(this,"getUniforms",(function(){var t={};return t.u_viewInverse=r.camera,t.u_world=r.world,t.u_worldInverseTranspose=fn(),t.u_view=r.view,t.u_resolution=[r.width,r.height],pn(t.u_worldInverseTranspose,r.world),function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15]}(t.u_worldInverseTranspose,t.u_worldInverseTranspose),t.u_worldViewProjection=fn(),dn(t.u_worldViewProjection,r.viewProjection,r.world),t.u_cameraPos=r.eye,t})),i(this,"getRayFromScreen",(function(t,e){var n=2*t-1,o=2*e-1,i=r.unproject([n,o,-1]),a=r.unproject([n,o,1]),s=yn();return _n(s,a,i),xn(s,s),{origin:i,direction:s}})),i(this,"unproject",(function(t){var e=fn();pn(e,r.viewProjection);var n=gn(t[0],t[1],t[2]);return kn(n,n,e),n})),i(this,"project",(function(t){var e=function(t){var e=new cn(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}(t);return kn(e,e,r.viewProjection),[(e[0]+1)/2,(e[1]+1)/2]})),this.fov=Math.PI/180*30,this.width=e,this.height=n,this.aspect=e/n,this.zNear=.01,this.zFar=100,this.projection=fn(),mn(this.projection,this.fov,this.aspect,this.zNear,this.zFar),this.eye=[0,0,6],this.target=[0,0,0],this.up=[0,1,0],this.view=fn(),vn(this.view,this.eye,this.target,this.up),this.camera=fn(),pn(this.camera,this.view),this.viewProjection=fn(),dn(this.viewProjection,this.projection,this.view),this.world=fn(),hn(this.world)},Cn=function t(e,n){var r=this;o(this,t),i(this,"resize",(function(t,e){r.camera.resize(t,e)})),i(this,"update",(function(t){r.camera.update(t)})),i(this,"getUniforms",(function(t){var e=r.camera.getUniforms(t);return e.time=t,e})),this.camera=new Tn(e,n)},Pn=function(){function t(e){var n=this;o(this,t),i(this,"programInfo",null),i(this,"textures",{}),i(this,"uniforms",null),i(this,"shaderStrings",null),i(this,"isInit",!1),i(this,"texturesLoaded",!1),i(this,"init",(function(t){n.programInfo=function(t,e,n,r,i){var o=Ke(void 0,void 0,void 0),a=!0;if(e=e.map((function(t){if(t.indexOf("\n")<0){var e=je(t);e?t=e.text:(o.errorCallback("no element with id: "+t),a=!1)}return t})),!a)return null;var s=function(t,e,n,r,i){for(var o=Ke(n,r,i),a=[],s=0;s<e.length;++s){var u=Ye(t,e[s],t[Xe[s]],o.errorCallback);if(!u)return null;a.push(u)}return function(t,e,n,r,i){for(var a,s=Ke(n,void 0,void 0),u=[],o=[],l=0;l<e.length;++l){var c=e[l];if("string"==typeof c){var f=je(c),h=f?f.text:c,d=t[Xe[l]];f&&f.type&&(d=((a=f.type).indexOf("frag")>=0?35632:a.indexOf("vert")>=0?35633:void 0)||d),c=Ye(t,h,d,s.errorCallback),o.push(c)}"undefined"!=typeof WebGLShader&&c instanceof WebGLShader&&u.push(c)}if(u.length!==e.length)return s.errorCallback("not enough shaders for program"),Je(t,o),null;var p=t.createProgram();u.forEach((function(e){t.attachShader(p,e)})),s.attribLocations&&Object.keys(s.attribLocations).forEach((function(e){t.bindAttribLocation(p,s.attribLocations[e],e)}));var m=s.transformFeedbackVaryings;if(m&&(m.attribs&&(m=m.attribs),Array.isArray(m)||(m=Object.keys(m)),t.transformFeedbackVaryings(p,m,s.transformFeedbackMode||35981)),t.linkProgram(p),!t.getProgramParameter(p,35714)){var v=t.getProgramInfoLog(p);return s.errorCallback("Error in program linking:"+v),t.deleteProgram(p),Je(t,o),null}return p}(t,a,o)}(t,e,o);return s?function(t,e){var n={program:e,uniformSetters:function(t,e){var n=0;function r(e,r,i){var o,a=r.size>1&&"[0]"===r.name.substr(-3),s=r.type,u=De[s];if(!u)throw new Error("unknown type: 0x".concat(s.toString(16)));if(u.bindPoint){var l=n;n+=r.size,o=a?u.arraySetter(t,s,l,i,r.size):u.setter(t,s,l,i,r.size)}else o=u.arraySetter&&a?u.arraySetter(t,i):u.setter(t,i);return o.location=i,o}for(var i={},o=t.getProgramParameter(e,35718),a=0;a<o;++a){var s=t.getActiveUniform(e,a);if(!Ze(s)){var u=s.name;"[0]"===u.substr(-3)&&(u=u.substr(0,u.length-3));var l=t.getUniformLocation(e,s.name);l&&(i[u]=r(0,s,l))}}return i}(t,e),attribSetters:function(t,e){for(var n={},r=t.getProgramParameter(e,35721),i=0;i<r;++i){var o=t.getActiveAttrib(e,i);if(!Ze(o)){var a=t.getAttribLocation(e,o.name),s=We[o.type],u=s.setter(t,a,s);u.location=a,n[o.name]=u}}return n}(t,e)};return Zt(t)&&(n.uniformBlockSpec=function(t,e){for(var n=t.getProgramParameter(e,35718),r=[],i=[],o=0;o<n;++o){i.push(o),r.push({});var a=t.getActiveUniform(e,o);if(Ze(a))break;r[o].name=a.name}[["UNIFORM_TYPE","type"],["UNIFORM_SIZE","size"],["UNIFORM_BLOCK_INDEX","blockNdx"],["UNIFORM_OFFSET","offset"]].forEach((function(n){var o=n[0],a=n[1];t.getActiveUniforms(e,i,t[o]).forEach((function(t,e){r[e][a]=t}))}));for(var s={},u=t.getProgramParameter(e,35382),l=0;l<u;++l){var c=t.getActiveUniformBlockName(e,l),f={index:t.getUniformBlockIndex(e,c),usedByVertexShader:t.getActiveUniformBlockParameter(e,l,35396),usedByFragmentShader:t.getActiveUniformBlockParameter(e,l,35398),size:t.getActiveUniformBlockParameter(e,l,35392),uniformIndices:t.getActiveUniformBlockParameter(e,l,35395)};f.used=f.usedByVertexShader||f.usedByFragmentShader,s[c]=f}return{blockSpecs:s,uniformData:r}}(t,e),n.transformFeedbackInfo=function(t,e){for(var n={},r=t.getProgramParameter(e,35971),i=0;i<r;++i){var o=t.getTransformFeedbackVarying(e,i);n[o.name]={index:i,type:o.type,size:o.size}}return n}(t,e)),n}(t,s):null}(t,Object.values(n.shaderStrings)),n.isInit=!0})),i(this,"loadTextures",(function(t,e,r){if(e){var i=Object.keys(e).length,o=0;Object.entries(e).forEach((function(e){var a=_(e,2),s=a[0],u=a[1];n.textures[s]=Ie(t,u,(function(){(o+=1)===i&&(n.texturesLoaded=!0,r&&r())}))}))}})),i(this,"updateUniforms",(function(t){Object.entries(t).forEach((function(t){var e=_(t,2),r=e[0],i=e[1];n.uniforms[r]=i}))})),this.shaderStrings=e}return c(t,[{key:"isReady",get:function(){return this.isInit&&this.texturesLoaded}}]),t}();let In;const Mn=new Array(32).fill(void 0);function jn(t){return Mn[t]}Mn.push(void 0,null,!0,!1);let Dn=Mn.length;function tr(t){const e=jn(t);return function(t){t<36||(Mn[t]=Dn,Dn=t)}(t),e}let Fn=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fn.decode();let Rn=null;function Ln(){return null!==Rn&&Rn.buffer===In.memory.buffer||(Rn=new Uint8Array(In.memory.buffer)),Rn}function Nn(t,e){return Fn.decode(Ln().subarray(t,t+e))}function Bn(t){Dn===Mn.length&&Mn.push(Mn.length+1);const e=Dn;return Dn=Mn[e],Mn[e]=t,e}let Vn=0,zn=new TextEncoder("utf-8");const qn="function"==typeof zn.encodeInto?function(t,e){return zn.encodeInto(t,e)}:function(t,e){const n=zn.encode(t);return e.set(n),{read:t.length,written:n.length}};function Un(t,e,n){if(void 0===n){const n=zn.encode(t),r=e(n.length);return Ln().subarray(r,r+n.length).set(n),Vn=n.length,r}let r=t.length,i=e(r);const o=Ln();let a=0;for(;a<r;a++){const e=t.charCodeAt(a);if(e>127)break;o[i+a]=e}if(a!==r){0!==a&&(t=t.slice(a)),i=n(i,r,r=a+3*t.length);const e=Ln().subarray(i+a,i+r);a+=qn(t,e).written}return Vn=a,i}let $n=null;function Gn(){return null!==$n&&$n.buffer===In.memory.buffer||($n=new Int32Array(In.memory.buffer)),$n}function Hn(t,e,n){In._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha5107d5f7795da4f(t,e,Bn(n))}let hr=null;function Wn(t,e){const n=e(4*t.length);return(null!==hr&&hr.buffer===In.memory.buffer||(hr=new Float32Array(In.memory.buffer)),hr).set(t,n/4),Vn=t.length,n}let Qn=null;class Yn{free(){const t=this.ptr;this.ptr=0,In.__wbg_gkcollider_free(t)}static create_collision_geometry(t,e,n){var r=Wn(t,In.__wbindgen_malloc),i=Vn,o=Wn(e,In.__wbindgen_malloc),a=Vn,s=function(t,e){const n=e(4*t.length);return(null!==Qn&&Qn.buffer===In.memory.buffer||(Qn=new Uint32Array(In.memory.buffer)),Qn).set(t,n/4),Vn=t.length,n}(n,In.__wbindgen_malloc),u=Vn,l=In.gkcollider_create_collision_geometry(r,i,o,a,s,u);return Xn.__wrap(l)}}class Kn{free(){const t=this.ptr;this.ptr=0,In.__wbg_gkcollision_free(t)}}class Xn{static __wrap(t){const e=Object.create(Xn.prototype);return e.ptr=t,e}free(){const t=this.ptr;this.ptr=0,In.__wbg_gkcollisiongeo_free(t)}raycast(t,e){var n=Wn(t,In.__wbindgen_malloc),r=Vn,i=Wn(e,In.__wbindgen_malloc),o=Vn;return tr(In.gkcollisiongeo_raycast(this.ptr,n,r,i,o))}hitTest(t,e){var n=Wn(t,In.__wbindgen_malloc),r=Vn,i=Wn(e,In.__wbindgen_malloc),o=Vn;return 0!==In.gkcollisiongeo_hitTest(this.ptr,n,r,i,o)}}async function Jn(t){void 0===t&&console.log("You must specify wasm location");const e={wbg:{}};e.wbg.__wbindgen_object_drop_ref=function(t){tr(t)},e.wbg.__wbindgen_json_parse=function(t,e){return Bn(JSON.parse(Nn(t,e)))},e.wbg.__wbindgen_json_serialize=function(t,e){const n=jn(e);var r=Un(JSON.stringify(void 0===n?null:n),In.__wbindgen_malloc,In.__wbindgen_realloc),i=Vn;Gn()[t/4+1]=i,Gn()[t/4+0]=r},e.wbg.__wbindgen_number_new=function(t){return Bn(t)},e.wbg.__wbindgen_string_new=function(t,e){return Bn(Nn(t,e))},e.wbg.__wbg_new_59cb74e423758ede=function(){return Bn(new Error)},e.wbg.__wbg_stack_558ba5917b466edd=function(t,e){var n=Un(jn(e).stack,In.__wbindgen_malloc,In.__wbindgen_realloc),r=Vn;Gn()[t/4+1]=r,Gn()[t/4+0]=n},e.wbg.__wbg_error_4bb6c2a97407129a=function(t,e){try{console.error(Nn(t,e))}finally{In.__wbindgen_free(t,e)}},e.wbg.__wbg_debug_7020dcb48edf105b=function(t){console.debug(jn(t))},e.wbg.__wbg_error_b23efba5bfb5cec5=function(t){console.error(jn(t))},e.wbg.__wbg_info_8ce99578d0b91a35=function(t){console.info(jn(t))},e.wbg.__wbg_log_c180b836187d3c94=function(t){console.log(jn(t))},e.wbg.__wbg_warn_942f927afebcc748=function(t){console.warn(jn(t))},e.wbg.__wbindgen_cb_drop=function(t){const e=tr(t).original;return 1==e.cnt--&&(e.a=0,!0)},e.wbg.__wbg_call_d713ea0274dfc6d2=function(t){return function(){try{return t.apply(this,arguments)}catch(t){In.__wbindgen_exn_store(Bn(t))}}}((function(t,e,n){return Bn(jn(t).call(jn(e),jn(n)))})),e.wbg.__wbg_new_d0c63652ab4d825c=function(t,e){try{var n={a:t,b:e},r=new Promise(((t,e)=>{const r=n.a;n.a=0;try{return function(t,e,n,r){In.wasm_bindgen__convert__closures__invoke2_mut__h8bf6a25e700c374c(t,e,Bn(n),Bn(r))}(r,n.b,t,e)}finally{n.a=r}}));return Bn(r)}finally{n.a=n.b=0}},e.wbg.__wbg_resolve_2529512c3bb73938=function(t){return Bn(Promise.resolve(jn(t)))},e.wbg.__wbg_then_4a7a614abbbe6d81=function(t,e){return Bn(jn(t).then(jn(e)))},e.wbg.__wbindgen_throw=function(t,e){throw new Error(Nn(t,e))},e.wbg.__wbindgen_rethrow=function(t){throw tr(t)},e.wbg.__wbindgen_closure_wrapper2042=function(t,e,n){return Bn(function(t,e,n,r){const i={a:t,b:e,cnt:1,dtor:61},o=(...t)=>{i.cnt++;const e=i.a;i.a=0;try{return r(e,i.b,...t)}finally{0==--i.cnt?In.__wbindgen_export_2.get(i.dtor)(e,i.b):i.a=e}};return o.original=i,o}(t,e,0,Hn))},("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:n,module:r}=await async function(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(e){if("application/wasm"==t.headers.get("Content-Type"))throw e;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e)}const n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}{const n=await WebAssembly.instantiate(t,e);return n instanceof WebAssembly.Instance?{instance:n,module:t}:n}}(await t,e);return In=n.exports,Jn.__wbindgen_wasm_module=r,In}var br=function(){function t(){var e=this;o(this,t),i(this,"id",null),i(this,"geometry",null),i(this,"collisionGeometry",null),i(this,"material",null),i(this,"_translation",[0,0,0]),i(this,"_rotation",[0,0,0]),i(this,"_scale",[1,1,1]),i(this,"_modelMatrix",null),i(this,"_modelIsDirty",!0),i(this,"rayCast",!0),i(this,"isInteractive",!1),i(this,"isSelectable",!1),i(this,"isHoverable",!1),i(this,"shouldDraw",!0),i(this,"setInteractive",(function(t,n,r){e.isInteractive="boolean"==typeof t&&t,e.isSelectable="boolean"==typeof n&&n,e.isHoverable="boolean"==typeof r&&r})),this.id="_"+Math.random().toString(36).substr(2,9)}return c(t,[{key:"update",value:function(t){var e=this;t&&Object.entries(t).forEach((function(t){e.material.uniforms[t[0]]=t[1]}))}},{key:"isReady",get:function(){return!(!this.geometry||!this.material)&&this.geometry.isReady&&this.material.isReady}},{key:"translation",get:function(){return this._translation},set:function(t){this._translation=t,this._modelIsDirty=!0}},{key:"rotation",get:function(){return this._rotation},set:function(t){this._rotation=t,this._modelIsDirty=!0}},{key:"scale",get:function(){return this._scale},set:function(t){this._scale=t,this._modelIsDirty=!0}},{key:"modelMatrix",get:function(){if(this._modelIsDirty){var t=F.identity(),e=F.translation(this._translation,t),n=F.scaling(this._scale);this._modelMatrix=e,F.rotateX(e,this._rotation[0],this._modelMatrix),F.rotateY(e,this._rotation[1],this._modelMatrix),F.rotateZ(e,this._rotation[2],this._modelMatrix),F.multiply(this._modelMatrix,n,this._modelMatrix),this._modelIsDirty=!1}return this._modelMatrix}}]),t}(),Zn=function(t){s(n,br);var e=v(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(),er=function(){function t(e){var n=this;o(this,t),i(this,"isInit",!1),i(this,"isDirty",!1),i(this,"needsResize",!1),i(this,"bufferInfo",void 0),i(this,"vertices",void 0),i(this,"init",(function(t){0===Object.keys(n.vertices).length&&n.vertices.constructor===Object||(Object.keys(n.vertices).forEach((function(e){"DYNAMIC_DRAW"===n.vertices[e].drawType&&(n.vertices[e].drawType=t.DYNAMIC_DRAW)})),n.bufferInfo=Z(t,n.vertices),n.isInit=!0,n.isDirty=!1)})),i(this,"resizeVertices",(function(){})),i(this,"updateGeometry",(function(t,e){void 0!==e&&"number"==typeof e||(e=0),Object.keys(t).forEach((function(r){for(var i=n.vertices[r].perInstance*e,o=0;o<t[r].data.length;o+=1)n.vertices[r].data[o+i]=t[r].data[o]})),n.isDirty=!0})),i(this,"updateBuffers",(function(t){Object.keys(n.bufferInfo.attribs).forEach((function(e){!function(t,e,n,r){n=X(n),$(t,34962,e.buffer,n,e.drawType)}(t,n.bufferInfo.attribs[e],n.vertices[e])})),n.isDirty=!1})),i(this,"reloadBuffers",(function(t){n.deleteBuffers(t),n.bufferInfo=Z(t,n.vertices),n.isDirty=!1,n.needsResize=!1})),i(this,"deleteBuffers",(function(t){Object.keys(n.bufferInfo.attribs).forEach((function(e){t.deleteBuffer(e.buffer)})),t.deleteBuffer(n.bufferInfo.indices),n.bufferInfo={}})),this.vertices="sphere"===e?Jt.createSphereVertices(1,128,128):{}}return c(t,[{key:"isReady",get:function(){return this.isInit}}]),t}(),nr={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec3 normal;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;uniform float shadowPower;varying float vAlpha;varying vec2 vTexture;void main(){vec4 pos=u_worldViewProjection*u_model*position;vec4 transformedCamera=vec4(-0.5,1.0,-1.0,1.0)*u_worldViewProjection;vAlpha=pow((1.0+(dot(normal,normalize(transformedCamera.xyz))))/2.0,shadowPower);vTexture=texcoord;gl_Position=pos;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D uTexture;varying float vAlpha;varying vec2 vTexture;vec3 yellow=vec3(255.0/255.0,210.0/255.0,28.0/255.0);void main(){vec4 textureColor=texture2D(uTexture,vec2(vTexture.x-0.25,vTexture.y));float alpha=vAlpha+(1.0-vAlpha)*0.05;alpha*=0.9;gl_FragColor=vec4(textureColor.rgb*vAlpha,1.0);}"},rr={shadowPower:.3},ir=(function(t){s(n,Zn);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"init",(function(t,e){a.geometry=new er("sphere"),a.geometry.init(t);var n={surface:{src:a.textureSrc.surface,minMag:t.LINEAR,wrap:t.REPEAT}};a.material.init(t),a.material.loadTextures(t,n,(function(){a.material.uniforms.uTexture=a.material.textures.surface,e&&e()})),a.material.uniforms.uModelMatrix=a.modelMatrix})),i(d(a),"createCollisionGeo",(function(){a.collisionGeometry&&a.collisionGeometry instanceof Kn||(a.collisionGeometry=Yn.create_collision_geometry(a.geometry.vertices.position,a.geometry.vertices.texcoord,a.geometry.vertices.indices))})),i(d(a),"rayCastFrom",(function(t){return a.collisionGeometry.raycast(t.origin,t.direction)})),i(d(a),"hitTest",(function(t){return a.collisionGeometry.hitTest(t.origin,t.direction)})),i(d(a),"onSelection",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix})),i(d(a),"draw",(function(t){a.isReady&&a.shouldDraw&&(t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.TRIANGLES,a.geometry.bufferInfo.numElements,t.UNSIGNED_SHORT,0))})),i(d(a),"setShadowPower",(function(t){console.log(t,"ShadowPower"),a.material.uniforms.shadowPower=t})),a.material=new Pn(nr),a.material.uniforms=rr,a.textureSrc={surface:t},a}}(),function t(e,n){var r=this;o(this,t),i(this,"isLoaded",!1),i(this,"ctx",void 0),i(this,"canvas",void 0),i(this,"image",void 0),i(this,"getIdFromLatLon",(function(t,e){if(r.isLoaded){var n=1-(t/90+1)/2,o=(e/180+1)/2*r.canvas.width,i=n*r.canvas.height;return r.ctx.getImageData(o,i,1,1).data[0]}})),this.image=new Image,this.image.src=e,this.image.addEventListener("load",(function(){r.canvas=document.createElement("canvas"),r.canvas.width=r.image.width,r.canvas.height=r.image.height,r.ctx=r.canvas.getContext("2d"),r.ctx.drawImage(r.image,0,0),r.isLoaded=!0,n&&n()}))}),or=function t(e,n){var r=this;o(this,t),i(this,"isInit",!1),i(this,"useImageLookup",!1),i(this,"imageLookup",null),i(this,"getIdFromLatLon",(function(t,e){return r.imageLookup.getIdFromLatLon(t,e)})),i(this,"getFromId",(function(t){return r.data.find((function(e){return e.id===t}))})),i(this,"getFromCode",(function(t){return r.data.find((function(e){return e.code===t}))})),i(this,"getFromName",(function(t){return r.data.find((function(e){return e.name===t}))})),e instanceof Array&&(this.data=e,n&&(this.useImageLookup=!0,this.imageLookup=new ir(n,(function(){r.isInit=!0}))))},ar=function(){function t(){o(this,t)}return c(t,null,[{key:"radiansForPosition",value:function(t,e){return e>0?t>=0?Math.atan(t/e):2*Math.PI+Math.atan(t/e):e<0?Math.PI+Math.atan(t/e):t>0?Math.PI/2:3*Math.PI/2}},{key:"latLonFromWorld",value:function(t){var e=yn();xn(e,t);for(var n=Math.asin(e[1]),r=this.radiansForPosition(e[0],e[2]),i=180*n/Math.PI,o=180*r/Math.PI;o>180;)o-=360;return{lat:i,lon:o}}},{key:"distanceBetweenPoints",value:function(t,e){var n=function(t){return t*(Math.PI/180)},r=n(t.lat),i=n(e.lat),o=n(e.lat-t.lat),a=n(e.lon-t.lon),s=Math.sin(o/2)*Math.sin(o/2)+Math.cos(r)*Math.cos(i)*Math.sin(a/2)*Math.sin(a/2);return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371}},{key:"worldFromLatLon",value:function(t,e,n){var r=n||0,i=t*Math.PI/180,o=e*Math.PI/180,a=Math.cos(i),s=Math.sin(i),u=gn(Math.sin(o)*a,s,Math.cos(o)*a),l=yn();return xn(l,u),bn(u,u,wn(l,l,r)),u}},{key:"dotBetweenLatLon",value:function(e,n){return En(t.worldFromLatLon(e[0],e[1]),t.worldFromLatLon(n[0],n[1]))}},{key:"hexToRGB",value:function(t,e){var n=0,r=0,i=0,o=!1!==e;return 4===t.length?(n="0x".concat(t[1]).concat(t[1]),r="0x".concat(t[2]).concat(t[2]),i="0x".concat(t[3]).concat(t[3])):7===t.length&&(n="0x".concat(t[1]).concat(t[2]),r="0x".concat(t[3]).concat(t[4]),i="0x".concat(t[5]).concat(t[6])),o?(n/=255,r/=255,i/=255):(n=parseInt(n,16),r=parseInt(r,16),i=parseInt(i,16)),[n,r,i]}},{key:"hexToRGBA",value:function(t,e,n){var r=this.hexToRGB(t,n),i=!1!==n?e:255*e;return[r[0],r[1],r[2],i]}},{key:"isSubSet",value:function(t,e){return t.every((function(t){return void 0!==e.find((function(e){return e===t}))}))}},{key:"lerpColor",value:function(t,e,n){var r=this.hexToRGB(t),i=this.hexToRGB(e),o=gn(r[0],r[1],r[2]),a=gn(i[0],i[1],i[2]),s=yn();return Sn(s,o,a,n),s}}]),t}();i(ar,"RGBToHex",(function(t,e,n){var r=t.toString(16),i=e.toString(16),o=n.toString(16);return 1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}));var sr=function(){function t(e,n,r,s){var u=this;o(this,t),i(this,"time",void 0),i(this,"delay",0),i(this,"ease",(function(t){return t})),i(this,"onComplete",(function(t){})),i(this,"onUpdate",(function(t){})),i(this,"endAt",void 0),i(this,"isNumeric",!1),i(this,"toObj",null),i(this,"fromObj",null),i(this,"currentObj",null),i(this,"mechanism",(function(){if(u.isRunning){if(u.stopped)return!1;var t=u.endAt-(new Date).getTime();t<=0?(clearTimeout(u.playTimeout),u.stopped=!0,u.advanceFrame(1,1),u.isNumeric?u.onUpdate(u.currentObj.value):u.onUpdate(u.currentObj),u.onComplete(!0),u.cleanup()):(u.advanceFrame(u.time-t,u.time),u.isNumeric?u.onUpdate(u.currentObj.value):u.onUpdate(u.currentObj))}})),s=s||{},this.time=r,this.endAt=(new Date).getTime()+this.time,this.isNumeric=!isNaN(e),this.isNumeric?(this.toObj={value:n},this.fromObj={value:e}):(this.toObj=a({},n),this.fromObj=a({},e)),this.currentObj=a({},this.fromObj),this.id=t.getId(),t.tweens[this.id]=this,s.onComplete&&(this.onComplete=s.onComplete,delete s.onComplete),s.onUpdate&&(this.onUpdate=s.onUpdate,delete s.onUpdate),s.ease&&(this.ease=s.ease,delete s.ease),s.delay&&(this.endAt+=s.delay,this.delay=s.delay,delete s.delay),this.playTimeout=setTimeout((function(){u.play()}),this.delay)}return c(t,[{key:"play",value:function(){this.endAt=(new Date).getTime()+this.time,this.isRunning=!0,t.isRunning||(t.isRunning=!0,requestAnimationFrame(t.mechanism))}},{key:"stop",value:function(){clearTimeout(this.playTimeout),this.stopped=!0,this.onComplete(!1),this.cleanup()}},{key:"currentValue",value:function(){return this.isNumeric?this.currentObj.value:this.currentObj}},{key:"cleanup",value:function(){this.isRunning=!1,delete t.tweens[this.id],0===Object.keys(t.tweens).length&&(t.isRunning=!1)}},{key:"advanceFrame",value:function(t,e){var n=0!==e?t/e:1;for(var r in n=this.ease(n),this.toObj){var i=this.fromObj[r],o=this.toObj[r]-i;this.currentObj[r]=i+o*n}}}]),t}();sr.id=0,sr.tweens={},sr.killTweensOf=function(t){for(var e in sr.tweens){var n=sr.tweens[e];n.obj===t&&n.stop()}},sr.getId=function(){return++sr.id},sr.isRunning=!1,sr.mechanism=function(){for(var t in sr.tweens)sr.tweens[t].mechanism();sr.isRunning&&requestAnimationFrame(sr.mechanism)};var ur=function t(e,n){var r=this;o(this,t),i(this,"width",4),i(this,"height",4),i(this,"channels",4),i(this,"elementLength",1),i(this,"data",void 0),i(this,"texture",void 0),i(this,"isInit",!1),i(this,"init",(function(t){var e={width:r.width,height:r.height,mag:t.NEAREST,min:t.NEAREST,src:r.data};r.texture=Ie(t,e),r.isInit=!0})),i(this,"updatePixel",(function(t,e,n,o){if(r.isInit){var i=new Uint8Array(e);t.bindTexture(t.TEXTURE_2D,r.texture),t.texSubImage2D(t.TEXTURE_2D,0,o,n,1,1,t.RGBA,t.UNSIGNED_BYTE,i)}})),i(this,"updatePixelId",(function(t,e,n){var o=Math.floor(n/r.width),i=n-o*r.width;e.forEach((function(t,e){r.data[4*n+e]=t})),r.updatePixel(t,e,o,i)})),i(this,"updateSubrect",(function(t,e){r.isInit&&(t.bindTexture(t.TEXTURE_2D,r.texture),t.texSubImage2D(t.TEXTURE_2D,0,0,0,r.width,r.height,t.RGBA,t.UNSIGNED_BYTE,e))})),i(this,"getIdColor",(function(t){return r.data.slice(4*t,4*t+4)})),this.width=e||this.width,this.height=n||this.height,this.data=new Uint8Array(this.width*this.height*this.channels).fill(0)},lr={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec3 normal;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;varying float vAlpha;varying vec2 vTexture;void main(){vec4 pos=u_worldViewProjection*u_model*position;vAlpha=dot(normalize(u_cameraPos),normalize(position.xyz));vTexture=texcoord;gl_Position=pos;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_inactive;uniform sampler2D u_active;uniform sampler2D u_id;uniform sampler2D u_data;uniform float u_idAnimateIn;uniform float u_idAnimateOut;uniform float u_animateIn;uniform float u_animateOut;uniform vec3 u_animateHover;uniform vec3 u_animatable0;uniform vec3 u_animatable1;uniform vec3 u_animatable2;uniform vec3 u_animatable3;uniform vec3 u_animatable4;uniform vec3 u_animatable5;varying float vAlpha;varying vec2 vTexture;float when_eq(float x,float y){return 1.0-abs(sign(x-y));}float when_lt(float x,float y){return max(sign(y-x),0.0);}vec2 get_data_coords_from_id(float id){float width=16.0;float height=16.0;float w_pixel=1.0/width;float h_pixel=1.0/height;float row=floor(id/width);float col=id-(row*width);return vec2(col*w_pixel,row*h_pixel);}void main(){vec4 inactiveColor=texture2D(u_inactive,vec2(vTexture.x-0.25,vTexture.y));vec4 activeColor=texture2D(u_active,vec2(vTexture.x-0.25,vTexture.y));vec4 idColor=texture2D(u_id,vec2(vTexture.x-0.25,vTexture.y));vec4 dataColor=texture2D(u_data,get_data_coords_from_id(floor(idColor.r*255.0)))*idColor.a;vec3 base=inactiveColor.rgb*(1.0-dataColor.a)+dataColor.rgb*(dataColor.a);vec3 color=base;gl_FragColor=vec4(color,1.0);}"},cr={},fr=(function(t){s(n,Zn);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"lookup",null),i(d(a),"currentSelection",-1),i(d(a),"previousSelection",-1),i(d(a),"inAnimation",null),i(d(a),"outAnimation",null),i(d(a),"currentHover",-1),i(d(a),"hoverables",[]),i(d(a),"hoverableUniforms",["u_animatable0","u_animatable1","u_animatable2","u_animatable3","u_animatable4","u_animatable5"]),i(d(a),"inAnimations",{}),i(d(a),"outAnimations",{}),i(d(a),"highlighedCountries",[]),i(d(a),"selection0",236),i(d(a),"selection1",144),i(d(a),"current",236),i(d(a),"dataTexture",void 0),i(d(a),"dataTextureSize",16),i(d(a),"updateCMDs",[]),i(d(a),"highlightAnimationProps",{start:0,stop:1,duration:1e3,onUpdate:function(t){a.material.uniforms.u_animateIn=t}}),i(d(a),"init",(function(t,e){a.geometry=new er("sphere"),a.geometry.init(t);var n={inactive:{src:a.textureSrc.inactive,minMag:t.LINEAR},active:{src:a.textureSrc.active,minMag:t.LINEAR},id:{src:a.textureSrc.id,minMag:t.NEAREST}};a.material.init(t),a.material.loadTextures(t,n,(function(){a.material.uniforms.u_inactive=a.material.textures.inactive,a.material.uniforms.u_active=a.material.textures.active,a.material.uniforms.u_id=a.material.textures.id,a.dataTexture.init(t),a.material.uniforms.u_data=a.dataTexture.texture,e&&e()}))})),i(d(a),"getValueForId",(function(t){return a.lookup.getFromId(t)})),i(d(a),"getValueForCode",(function(t){return a.lookup.getFromCode(t)})),i(d(a),"getValueForName",(function(t){return a.lookup.getFromName(t)})),i(d(a),"setIdColor",(function(t,e,n){var r=void 0===n?1:n,i=ar.hexToRGBA(e,r,!1);a.updateCMDs.push((function(e){a.dataTexture.updatePixelId(e,i,t)}))})),i(d(a),"getIdColor",(function(t){var e=a.dataTexture.getIdColor(t);return{color:ar.RGBToHex(e[0],e[1],e[2]),alpha:e[3]/255}})),i(d(a),"createCollisionGeo",(function(){a.collisionGeometry&&a.collisionGeometry instanceof Kn||(a.collisionGeometry=Yn.create_collision_geometry(a.geometry.vertices.position,a.geometry.vertices.texcoord,a.geometry.vertices.indices))})),i(d(a),"rayCastFrom",(function(t){return a.collisionGeometry.raycast(t.origin,t.direction)})),i(d(a),"hitTest",(function(t){return a.collisionGeometry.hitTest(t.origin,t.direction)})),i(d(a),"onSelectionCB",(function(){})),i(d(a),"onSelection",(function(t,e,n){var r=ar.latLonFromWorld(n.point);return a.current=a.lookup.getIdFromLatLon(r.lat,r.lon),{id:a.current,name:a.lookup.getFromId(a.current)}})),i(d(a),"onHover",(function(t){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.updateCMDs.forEach((function(e){e(t)})),a.updateCMDs=[]})),i(d(a),"draw",(function(t){a.isReady&&a.shouldDraw&&(t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.TRIANGLES,a.geometry.bufferInfo.numElements,t.UNSIGNED_SHORT,0))})),i(d(a),"setCountryHover",(function(t){})),i(d(a),"highlightId",(function(t,e,n,r,i){if(!(a.inAnimations[t]instanceof sr)){var o=e||"#ffffff",s=n||1,u=r||!0,l=0;a.outAnimations[t]instanceof sr&&(l=a.outAnimations[t].currentValue(),a.outAnimations[t].stop());var c=i||{};if(c.duration=c.duration||500,c.onComplete=c.onComplete||function(){},c.outDuration=c.outDuration||c.duration,c.onOutComplete=c.onOutComplete||function(){},u){var f={duration:c.outDuration,onComplete:c.onOutComplete};a.highlighedCountries.forEach((function(e){e!==t&&a.unhighlightId(e,f)}))}a.inAnimations[t]=new sr(l,s,c.duration,{onUpdate:function(e){a.setIdColor(t,o,e)},onComplete:function(e){delete a.inAnimations[t],c.onComplete(e)}}),a.highlighedCountries.push(t)}})),i(d(a),"unhighlightId",(function(t,e){if(-1!==a.highlighedCountries.indexOf(t)&&!(a.outAnimations[t]instanceof sr)){var n=e||{};n.duration=n.duration||500,n.onComplete=n.onComplete||function(){};var r=a.getIdColor(t),i=r.alpha;a.inAnimations[t]instanceof sr&&(i=a.inAnimations[t].currentValue(),a.inAnimations[t].stop()),a.outAnimations[t]=new sr(i,0,n.duration,{onUpdate:function(e){a.setIdColor(t,r.color,e)},onComplete:function(e){if(e){var r=a.highlighedCountries.indexOf(t);a.highlighedCountries.splice(r,1)}delete a.outAnimations[t],n.onComplete(e,t)}})}})),i(d(a),"addDataset",(function(t){a.lookup=new or(t,a.textureSrc.id)})),a.material=new Pn(lr),a.material.uniforms=cr,a.textureSrc={inactive:t.inactive,active:t.active,id:t.id},a.dataTexture=new ur(a.dataTextureSize,a.dataTextureSize),a}}(),function(){function t(){var e=this;o(this,t),i(this,"springStrength",.2),i(this,"drag",.875),i(this,"poleBufferThreshold",18),i(this,"panDeltaScale",42),i(this,"velocityDeltaScale",750),i(this,"_ambientController",null),i(this,"_animationController",null),i(this,"_interactionController",null),i(this,"_currentLatLonAlt",[0,0,4]),i(this,"_interactionStartLatLonAlt",null),i(this,"_interactionTargetLatLonAlt",null),i(this,"_latLonVelocity",[0,0,0]),i(this,"_ambientLonDirection",1),i(this,"_ambientLatIn",0),i(this,"_ambientLatDirection",1),i(this,"_prevTime",0),i(this,"_rotBounded",(function(t){return[Math.max(Math.min(t[0],90),-90),t[1]]})),i(this,"_rotSprung",(function(t){var n=.499*Math.PI,r=.499*-Math.PI,i=(90-e.poleBufferThreshold)/90,o=n*i,a=r*i,s=t[0]*(Math.PI/180),u=function(t){return Math.sin(t*Math.PI/2)},l=s;if(s>o){var c=s-o,f=n-o;l=o+f*u(Math.min(c/f,1))}if(s<a){var h=s-a,d=r-a;l=a+d*u(Math.min(h/d,1))}return[l*(180/Math.PI),t[1]]})),i(this,"_frustumDist",(function(t,e){return.5*t/Math.tan(.5*e*(Math.PI/180))})),i(this,"_rotForDelta",(function(t){var n=_(e._currentLatLonAlt,3)[2],r=t[0]*(e.pointsPerRadian*(n/e.zFullWidth)),i=t[1]*(e.pointsPerRadian*(n/e.zFullWidth)),o=180/Math.PI;return[-r*o,i*o]})),i(this,"_calcAmbientLatIn",(function(t){var n=t*(Math.PI/180)/(.5*Math.PI)*(90/(e._ambientController.latitudeVariance/2));return Math.abs(n)>1&&(n/=Math.abs(n)),Math.asin(n)}))}return c(t,[{key:"register",value:function(t,e,n){this._ambientController=t,this._animationController=e,this._interactionController=n}},{key:"resize",value:function(t,e,n,r){this.pointsPerRadian=Math.PI/(t/window.devicePixelRatio),this.camFov=r,this.camAspect=n,this.zFullWidth=this._frustumDist(1/this.camAspect*2,this.camFov)}},{key:"setLatLonAlt",value:function(t,e,n){this.setLatLon(t,e),this.setAlt(n)}},{key:"setLatLon",value:function(t,e){for(this._currentLatLonAlt=[t,e,this._currentLatLonAlt[2]],this._ambientLatIn=this._calcAmbientLatIn(t);this._currentLatLonAlt[1]>180;)this._currentLatLonAlt[1]-=360;for(;this._currentLatLonAlt[1]<-180;)this._currentLatLonAlt[1]+=360;this._animationController.cancelLatLon()}},{key:"setAlt",value:function(t){this._currentLatLonAlt=[this._currentLatLonAlt[0],this._currentLatLonAlt[1],t],this._animationController.cancelAlt()}},{key:"update",value:function(t,e){var n=t-this._prevTime;this.fov=e,this._updateAlt(n),this._updateLatLon(n),this._prevTime=t}},{key:"startPan",value:function(t){for(;this._currentLatLonAlt[1]>180;)this._currentLatLonAlt[1]-=360;for(;this._currentLatLonAlt[1]<-180;)this._currentLatLonAlt[1]+=360;this._interactionStartLatLonAlt=p(this._currentLatLonAlt);var e=this.panDeltaScale/devicePixelRatio,n=[t.deltaY*e,t.deltaX*e],r=_(this._currentLatLonAlt,3)[2],i=this._rotForDelta([this._interactionStartLatLonAlt[0]-n[0],this._interactionStartLatLonAlt[1]-n[1]]);this._interactionTargetLatLonAlt=[this._interactionStartLatLonAlt[0]+i[0],this._interactionStartLatLonAlt[1]+i[1],r],this._latLonVelocity=[0,0,0]}},{key:"continuePan",value:function(t){if(this._interactionStartLatLonAlt){var e=this.panDeltaScale/devicePixelRatio,n=[t.deltaY*e,t.deltaX*e],r=this._rotForDelta([this._interactionStartLatLonAlt[0]-n[0],this._interactionStartLatLonAlt[1]-n[1]]),i=this.velocityDeltaScale/devicePixelRatio,o=this._rotForDelta([t.velocityY,t.velocityX]);this._latLonVelocity=[-o[0]*i,-o[1]*i],this._ambientLonDirection=o[1]<0?1:-1;var a=_(this._interactionTargetLatLonAlt,3)[2],s=this._rotBounded([this._interactionStartLatLonAlt[0]+r[0],this._interactionStartLatLonAlt[1]+r[1]]);this._interactionTargetLatLonAlt=[s[0],s[1],a],this._lastGestureChange=t.timeStamp}}},{key:"endPan",value:function(t){this._interactionStartLatLonAlt=null,this._interactionTargetLatLonAlt=null;var e=t.timeStamp-this._lastGestureChange;this._ambientLatIn=this._calcAmbientLatIn(this._currentLatLonAlt[0]),e>.1&&(this._latLonVelocity=[0,0])}},{key:"_updateAlt",value:function(){if(this._animationController.isAnimatingAlt){var t=_(this._currentLatLonAlt,2),e=t[0],n=t[1];this._currentLatLonAlt=[e,n,this._animationController.currentAlt]}}},{key:"_updateLatLon",value:function(t){var e=_(this._currentLatLonAlt,3),n=e[0],r=e[1],i=e[2];if(this._interactionTargetLatLonAlt){var o=_(this._interactionTargetLatLonAlt,2),a=[o[0]-n,o[1]-r];this._currentLatLonAlt=[n+a[0]*this.springStrength,r+a[1]*this.springStrength,i]}else{var s=this._rotBounded([n+this._latLonVelocity[0],r+this._latLonVelocity[1]]);this._currentLatLonAlt=[s[0],s[1],i];var u=90-this.poleBufferThreshold,l=-90+this.poleBufferThreshold;if(s[0]>u){var c=s[0]-u;this._currentLatLonAlt[0]=u+.95*c}if(s[0]<l){var f=s[0]-l;this._currentLatLonAlt[0]=l+.95*f}if(this._latLonVelocity=[this._latLonVelocity[0]*this.drag,this._latLonVelocity[1]*this.drag],this._ambientController.isEnabled){var h=this._ambientController.ambientStrength,d=this._ambientLonDirection,p=this._ambientController.longitudeSpeed,m=_(this._currentLatLonAlt,2),v=m[0],g=m[1];g+=p*d*h,Math.abs(this._latLonVelocity[0])>1e-4&&(this._ambientLatIn=this._calcAmbientLatIn(n));var y=this._ambientController.latitudeSpeed;this._ambientLatIn+=t*this._ambientLatDirection*y*h;var w=this._ambientController.latitudeVariance/2;v+=(Math.sin(this._ambientLatIn)*w-v)*h*h,this._currentLatLonAlt=[v,g,i]}if(this._animationController.isAnimatingLatLon){var b=this._animationController.currentLatLon;this._currentLatLonAlt=[b[0],b[1],i]}else{for(;this._currentLatLonAlt[1]>180;)this._currentLatLonAlt[1]-=360;for(;this._currentLatLonAlt[1]<-180;)this._currentLatLonAlt[1]+=360}}}},{key:"currentLatLonAlt",get:function(){return p(this._currentLatLonAlt)}}]),t}());function pr(t,e){return t(e={exports:{}},e.exports),e.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self,pr((function(t){!function(e,n,i,o){function a(t,e,n){return setTimeout(f(t,n),e)}function s(t,e,n){return!!Array.isArray(t)&&(u(t,n[e],n),!0)}function u(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==o)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function l(t,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}function c(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&ot(r,n)}function f(t,e){return function(){return t.apply(e,arguments)}}function h(t,e){return r(t)==ut?t.apply(e&&e[0]||o,e):t}function d(t,e){return t===o?e:t}function m(t,e,n){u(g(e),(function(e){t.addEventListener(e,n,!1)}))}function p(t,e,n){u(g(e),(function(e){t.removeEventListener(e,n,!1)}))}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function _(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function w(t){return Array.prototype.slice.call(t,0)}function b(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];_(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function x(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),a=0;a<at.length;){if((r=(n=at[a])?n+i:e)in t)return r;a++}return o}function E(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}function S(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){h(t.options.enable,[t])&&n.handler(e)},this.init()}function k(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&wt&&r-i==0,a=e&(Et|St)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=O(e)),i>1&&!n.firstMultiple?n.firstMultiple=O(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=T(r);e.timeStamp=ft(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=M(s,u),e.distance=I(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==wt&&o.eventType!==Et||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=P(e.deltaX,e.deltaY);var l=C(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=ct(l.x)>ct(l.y)?l.x:l.y,e.scale=a?function(t,e){return I(e[0],e[1],Dt)/I(t[0],t[1],Dt)}(a.pointers,r):1,e.rotation=a?function(t,e){return M(e[1],e[0],Dt)+M(t[1],t[0],Dt)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,A(n,e);var c=t.element;v(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function A(t,e){var n,r,i,a,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(e.eventType!=St&&(u>_t||s.velocity===o)){var l=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,f=C(u,l,c);r=f.x,i=f.y,n=ct(f.x)>ct(f.y)?f.x:f.y,a=P(l,c),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=a}function O(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:lt(t.pointers[n].clientX),clientY:lt(t.pointers[n].clientY)},n++;return{timeStamp:ft(),pointers:e,center:T(e),deltaX:t.deltaX,deltaY:t.deltaY}}function T(t){var e=t.length;if(1===e)return{x:lt(t[0].clientX),y:lt(t[0].clientY)};for(var n=0,r=0,i=0;e>i;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:lt(n/e),y:lt(r/e)}}function C(t,e,n){return{x:e/t||0,y:n/t||0}}function P(t,e){return t===e?kt:ct(t)>=ct(e)?0>t?At:Ot:0>e?Tt:Ct}function I(t,e,n){n||(n=jt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function M(t,e,n){n||(n=jt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function j(){this.evEl=Rt,this.evWin=Lt,this.pressed=!1,S.apply(this,arguments)}function D(){this.evEl=Vt,this.evWin=zt,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget=Ut,this.evWin=$t,this.started=!1,S.apply(this,arguments)}function R(t,e){var n=w(t.touches),r=w(t.changedTouches);return e&(Et|St)&&(n=b(n.concat(r),"identifier",!0)),[n,r]}function L(){this.evTarget=Ht,this.targetIds={},S.apply(this,arguments)}function N(t,e){var n=w(t.touches),r=this.targetIds;if(e&(wt|xt)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=w(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return v(t.target,u)})),e===wt)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(Et|St)&&delete r[a[i].identifier],i++;return s.length?[b(o.concat(s),"identifier",!0),s]:void 0}function B(){S.apply(this,arguments);var t=f(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new j(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function V(t,e){t&wt?(this.primaryTouch=e.changedPointers[0].identifier,z.call(this,e)):t&(Et|St)&&z.call(this,e)}function z(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),Wt)}}function U(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(Qt>=o&&Qt>=a)return!0}return!1}function $(t,e){this.manager=t,this.set(e)}function G(t){this.options=ot({},this.defaults,t||{}),this.id=dt++,this.manager=null,this.options.enable=d(this.options.enable,!0),this.state=ie,this.simultaneous={},this.requireFail=[]}function H(t){return t&le?"cancel":t&se?"end":t&ae?"move":t&oe?"start":""}function W(t){return t==Ct?"down":t==Tt?"up":t==At?"left":t==Ot?"right":""}function Q(t,e){var n=e.manager;return n?n.get(t):t}function q(){G.apply(this,arguments)}function Y(){q.apply(this,arguments),this.pX=null,this.pY=null}function K(){q.apply(this,arguments)}function X(){G.apply(this,arguments),this._timer=null,this._input=null}function J(){q.apply(this,arguments)}function Z(){q.apply(this,arguments)}function tt(){G.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function et(t,e){return(e=e||{}).recognizers=d(e.recognizers,et.defaults.preset),new nt(t,e)}function nt(t,e){this.options=ot({},et.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){return new(t.options.inputClass||(vt?D:yt?L:mt?B:j))(t,k)}(this),this.touchAction=new $(this,this.options.touchAction),rt(this,!0),u(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function rt(t,e){var n,r=t.element;r.style&&(u(t.options.cssProps,(function(i,o){n=x(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function it(t,e){var r=n.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}var ot,at=["","webkit","Moz","MS","ms","o"],st=n.createElement("div"),ut="function",lt=Math.round,ct=Math.abs,ft=Date.now;ot="function"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==o&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var ht=l((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===o)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),pt=l((function(t,e){return ht(t,e,!0)}),"merge","Use `assign`."),dt=1,mt="ontouchstart"in e,vt=x(e,"PointerEvent")!==o,yt=mt&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),gt="touch",bt="mouse",_t=25,wt=1,xt=2,Et=4,St=8,kt=1,At=2,Ot=4,Tt=8,Ct=16,Pt=At|Ot,It=Tt|Ct,Mt=Pt|It,jt=["x","y"],Dt=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(E(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(E(this.element),this.evWin,this.domHandler)}};var Ft={mousedown:wt,mousemove:xt,mouseup:Et},Rt="mousedown",Lt="mousemove mouseup";c(j,S,{handler:function(t){var e=Ft[t.type];e&wt&&0===t.button&&(this.pressed=!0),e&xt&&1!==t.which&&(e=Et),this.pressed&&(e&Et&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:bt,srcEvent:t}))}});var Nt={pointerdown:wt,pointermove:xt,pointerup:Et,pointercancel:St,pointerout:St},Bt={2:gt,3:"pen",4:bt,5:"kinect"},Vt="pointerdown",zt="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Vt="MSPointerDown",zt="MSPointerMove MSPointerUp MSPointerCancel"),c(D,S,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Nt[r],o=Bt[t.pointerType]||t.pointerType,a=o==gt,s=_(e,t.pointerId,"pointerId");i&wt&&(0===t.button||a)?0>s&&(e.push(t),s=e.length-1):i&(Et|St)&&(n=!0),0>s||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var qt={touchstart:wt,touchmove:xt,touchend:Et,touchcancel:St},Ut="touchstart",$t="touchstart touchmove touchend touchcancel";c(F,S,{handler:function(t){var e=qt[t.type];if(e===wt&&(this.started=!0),this.started){var n=R.call(this,t,e);e&(Et|St)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:gt,srcEvent:t})}}});var Gt={touchstart:wt,touchmove:xt,touchend:Et,touchcancel:St},Ht="touchstart touchmove touchend touchcancel";c(L,S,{handler:function(t){var e=Gt[t.type],n=N.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:gt,srcEvent:t})}});var Wt=2500,Qt=25;c(B,S,{handler:function(t,e,n){var r=n.pointerType==gt,i=n.pointerType==bt;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)V.call(this,e,n);else if(i&&U.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yt=x(st.style,"touchAction"),Kt=Yt!==o,Xt="compute",Jt="auto",Zt="manipulation",te="none",ee="pan-x",ne="pan-y",re=function(){if(!Kt)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){t[r]=!n||e.CSS.supports("touch-action",r)})),t}();$.prototype={set:function(t){t==Xt&&(t=this.compute()),Kt&&this.manager.element.style&&re[t]&&(this.manager.element.style[Yt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return u(this.manager.recognizers,(function(e){h(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(y(t,te))return te;var e=y(t,ee),n=y(t,ne);return e&&n?te:e||n?e?ee:ne:y(t,Zt)?Zt:Jt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,i=y(r,te)&&!re[te],o=y(r,ne)&&!re[ne],a=y(r,ee)&&!re[ee];if(i){var s=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(s&&u&&l)return}return a&&o?void 0:i||o&&n&Pt||a&&n&It?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ie=1,oe=2,ae=4,se=8,ue=se,le=16;G.prototype={defaults:{},set:function(t){return ot(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Q(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)||(t=Q(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return-1===_(e,t=Q(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=Q(t,this);var e=_(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;se>r&&e(n.options.event+H(r)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),r>=se&&e(n.options.event+H(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|ie)))return!1;t++}return!0},recognize:function(t){var e=ot({},t);return h(this.options.enable,[this,e])?(this.state&(ue|le|32)&&(this.state=ie),this.state=this.process(e),void(this.state&(oe|ae|se|le)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},c(q,G,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(oe|ae),i=this.attrTest(t);return r&&(n&St||!i)?e|le:r||i?n&Et?e|se:e&oe?e|ae:oe:32}}),c(Y,q,{defaults:{event:"pan",threshold:10,pointers:1,direction:Mt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Pt&&e.push(ne),t&It&&e.push(ee),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&Pt?(i=0===o?kt:0>o?At:Ot,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?kt:0>a?Tt:Ct,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return q.prototype.attrTest.call(this,t)&&(this.state&oe||!(this.state&oe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=W(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),c(K,q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[te]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&oe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),c(X,G,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Jt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(Et|St)&&!i)this.reset();else if(t.eventType&wt)this.reset(),this._timer=a((function(){this.state=ue,this.tryEmit()}),e.time,this);else if(t.eventType&Et)return ue;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ue&&(t&&t.eventType&Et?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ft(),this.manager.emit(this.options.event,this._input)))}}),c(J,q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[te]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&oe)}}),c(Z,q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Pt|It,pointers:1},getTouchAction:function(){return Y.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Pt|It)?e=t.overallVelocity:n&Pt?e=t.overallVelocityX:n&It&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ct(e)>this.options.velocity&&t.eventType&Et},emit:function(t){var e=W(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),c(tt,G,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Zt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&wt&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=Et)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||I(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=a((function(){this.state=ue,this.tryEmit()}),e.interval,this),oe):ue}return 32},failTimeout:function(){return this._timer=a((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ue&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),et.VERSION="2.0.8",et.defaults={domEvents:!1,touchAction:Xt,enable:!0,inputTarget:null,inputClass:null,preset:[[J,{enable:!1}],[K,{enable:!1},["rotate"]],[Z,{direction:Pt}],[Y,{direction:Pt},["swipe"]],[tt],[tt,{event:"doubletap",taps:2},["tap"]],[X]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},nt.prototype={set:function(t){return ot(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&ue)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(oe|ae|se)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof G)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(s(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(s(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=_(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==o&&e!==o){var n=this.handlers;return u(g(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==o){var n=this.handlers;return u(g(t),(function(t){e?n[t]&&n[t].splice(_(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&it(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&rt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ot(et,{INPUT_START:wt,INPUT_MOVE:xt,INPUT_END:Et,INPUT_CANCEL:St,STATE_POSSIBLE:ie,STATE_BEGAN:oe,STATE_CHANGED:ae,STATE_ENDED:se,STATE_RECOGNIZED:ue,STATE_CANCELLED:le,STATE_FAILED:32,DIRECTION_NONE:kt,DIRECTION_LEFT:At,DIRECTION_RIGHT:Ot,DIRECTION_UP:Tt,DIRECTION_DOWN:Ct,DIRECTION_HORIZONTAL:Pt,DIRECTION_VERTICAL:It,DIRECTION_ALL:Mt,Manager:nt,Input:S,TouchAction:$,TouchInput:L,MouseInput:j,PointerEventInput:D,TouchMouseInput:B,SingleTouchInput:F,Recognizer:G,AttrRecognizer:q,Tap:tt,Pan:Y,Swipe:Z,Pinch:K,Rotate:J,Press:X,on:m,off:p,each:u,merge:pt,extend:ht,assign:ot,inherit:c,bindFn:f,prefixed:x}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=et,t.exports?t.exports=et:e.Hammer=et}(window,document)}));var dr=function(){function t(e,n,r){var a=this;o(this,t),i(this,"targetElement",window),i(this,"targetDrawable",null),i(this,"camera",null),i(this,"boundingRect",null),i(this,"onTapCB",null),i(this,"onMouseMoveCB",null),i(this,"options",{tap:!0,pan:!0,pinch:!0}),i(this,"_movementModel",null),i(this,"_ambientController",null),i(this,"_animationController",null),i(this,"_isInteractive",!1),i(this,"resize",(function(){a.boundingRect=a.targetElement.getBoundingClientRect(),a._movementModel.resize(a.boundingRect.width,a.boundingRect.height,a.camera.aspect,a.camera.fov)})),i(this,"update",(function(){a._movementModel.update(a.camera.fov)})),i(this,"isOverTarget",(function(t,e){var n=t-a.boundingRect.x,r=e-a.boundingRect.y,i=n/a.boundingRect.width,o=(a.boundingRect.height-r)/a.boundingRect.height,s=a.camera.getRayFromScreen(i,o);return a.targetDrawable.hitTest(s)})),i(this,"onPanStart",(function(t){a.isOverTarget(t.center.x,t.center.y)&&(a._movementModel.startPan(t),a._ambientController.pauseMotion())})),i(this,"onPanContinue",(function(t){a._movementModel.continuePan(t)})),i(this,"onPanEnd",(function(t){a._movementModel.endPan(t),a._ambientController.isEnabled&&a._ambientController.resumeMotionAnimated()})),i(this,"onTap",(function(t){var e=t.center.x-a.boundingRect.x,n=t.center.y-a.boundingRect.y;a.onTapCB&&a.onTapCB(e,n)})),i(this,"onMouseMove",(function(t){var e=t.offsetX-a.boundingRect.x,n=t.offsetY-a.boundingRect.y;a.onMouseMoveCB&&a.onMouseMoveCB(e,n)})),e&&(this.targetElement=e,this.boundingRect=this.targetElement.getBoundingClientRect()),this.camera=n,r&&(r.tap&&(this.options.tap=r.tap),r.pan&&(this.options.pan=r.pan),r.pinch&&(this.options.pinch=r.pinch));var s=window.Hammer;this.hammer=s(this.targetElement,null),this.hammer.get("pan").set({direction:s.DIRECTION_ALL}),this.targetElement.addEventListener("mousemove",this.onMouseMove),this.isInteractive=!0}return c(t,[{key:"register",value:function(t,e,n){this._movementModel=n,this._movementModel.resize(this.boundingRect.width,this.boundingRect.height,this.camera.aspect,this.camera.fov),this._ambientController=t,this._animationController=e}},{key:"target",set:function(t){this.targetDrawable=t}},{key:"isInteractive",get:function(){return this._isInteractive},set:function(t){t!==this._isInteractive&&(t?(this.options.tap&&this.hammer.on("tap",this.onTap),this.options.pan&&this.hammer.on("panstart",this.onPanStart),this.options.pan&&this.hammer.on("pan",this.onPanContinue),this.options.pan&&this.hammer.on("panend",this.onPanEnd),this.options.pinch&&this.hammer.on("tap",this.onPinch),this._isInteractive=t):(this.options.tap&&this.hammer.off("tap",this.onTap),this.options.pan&&this.hammer.off("panstart",this.onPanStart),this.options.pan&&this.hammer.off("pan",this.onPanContinue),this.options.pan&&this.hammer.off("panend",this.onPanEnd),this.options.pinch&&this.hammer.off("tap",this.onPinch),this._isInteractive=t))}}]),t}(),mr=function(){function t(){o(this,t)}return c(t,null,[{key:"create",value:function(t,e,n,r){var i=3*t,o=3*(n-t)-i,a=1-i-o,s=3*e,u=3*(r-e)-s,l=1-s-u,c=function(t){return((a*t+o)*t+i)*t};return function(t){return function(t){return((l*t+u)*t+s)*t}(function(t,e){var n,r,s,u,l,f;s=t;for(var h=0;h<8;h++){if(u=c(s)-t,Math.abs(u)<1e-9)return s;if(l=(3*a*(f=s)+2*o)*f+i,Math.abs(l)<1e-6)break;s-=u/l}if((s=t)<(n=0))return n;if(s>(r=1))return r;for(;n<r;){if(u=c(s),Math.abs(u-t)<1e-9)return s;t>u?n=s:r=s,s=.5*(r-n)+n}return s}(t))}}}]),t}(),vr=function(){function t(){o(this,t),i(this,"_latLonTween",null),i(this,"_altTween",null),i(this,"_currentLatLon",null),i(this,"_currentAlt",null),i(this,"_movementModel",null),i(this,"_interactionController",null),i(this,"_ambientController",null)}return c(t,[{key:"register",value:function(t,e,n){this._movementModel=n,this._interactionController=e,this._ambientController=t}},{key:"animateLatLonAlt",value:function(e,n,r,i){var o=i||{};if(!o.duration&&0!==o.duration){var s=this._movementModel.currentLatLonAlt,u=[e,n];o.duration=t._defaultDuration(s,u)}this.animateLatLon(e,n,o),this.animateAlt(r,a(a({},o),{},{onComplete:null}))}},{key:"animateLatLon",value:function(e,n,r){var i=this,o=r||{},a=this._movementModel.currentLatLonAlt;this._currentLatLon=[a[0],a[1]];var s=p(this._currentLatLon),u=[e,n],l=n+360,c=n-360,f=Math.abs(n-s[1]),h=Math.abs(l-s[1]),d=Math.abs(c-s[1]);h<=d&&h<=f&&(u[1]=l),d<=f&&d<=h&&(u[1]=c);var m,v=o.duration;if(v||0===v||(v=t._defaultDuration(s,u)),m=o.ease&&"function"==typeof o.ease?o.ease:t._defaultLatLonEase(v),!this._ambientController.isPaused){var y=Math.min(250,v/4);this._ambientController.pauseMotionAnimated({duration:y})}this._latLonTween&&this._latLonTween.stop(),this._latLonTween=new sr(0,1,v,{onUpdate:function(t){var e=m(t);i._currentLatLon=[s[0]+(u[0]-s[0])*e,s[1]+(u[1]-s[1])*e]},onComplete:function(t){t&&(i._latLonTween=null,i._currentLatLon=null,i._movementModel.setLatLon(u[0],u[1]),i._ambientController.isEnabled&&i._ambientController.isPaused&&i._ambientController.resumeMotionAnimated()),o.onComplete&&"function"==typeof o.onComplete&&o.onComplete(t)}})}},{key:"animateAlt",value:function(t,e){var n=this,r=e||{};this._currentAlt=this._movementModel.currentLatLonAlt[2];var i,o=this._currentAlt,a=t,s=r.duration;if(s||0===s||(s=500),i=r.ease&&"function"==typeof r.ease?r.ease:function(t){return t},!this._ambientController.isPaused){var u=Math.min(250,s/4);this._ambientController.pauseMotionAnimated({duration:u})}this._altTween&&this._altTween.stop(),this._altTween=new sr(0,1,s,{onUpdate:function(t){var e=i(t);n._currentAlt=o+(a-o)*e},onComplete:function(t){t&&(n._altTween=null,n._currentAlt=null,n._movementModel.setAlt(a),n._ambientController.isEnabled&&n._ambientController.isPaused&&n._ambientController.resumeMotionAnimated()),r.onComplete&&"function"==typeof r.onComplete&&r.onComplete(t)}})}},{key:"cancelLatLonAlt",value:function(){this.cancelLatLon(),this.cancelAlt()}},{key:"cancelLatLon",value:function(){this._latLonTween&&(this._latLonTween.stop(),this._latLonTween=null,this._currentLatLon=null)}},{key:"cancelAlt",value:function(){this._altTween&&(this._altTween.stop(),this._altTween=null,this._currentAlt=null)}},{key:"isAnimatingLatLon",get:function(){return null!=this._latLonTween}},{key:"isAnimatingAlt",get:function(){return null!=this._altTween}},{key:"currentLatLon",get:function(){return this._currentLatLon}},{key:"currentAlt",get:function(){return this._currentAlt}}],[{key:"_defaultDuration",value:function(t,e){return 300+700*(1-(ar.dotBetweenLatLon(t,e)+1)/2)}},{key:"_defaultLatLonEase",value:function(t){var e=t-350,n=.55+(.85-.55)*Math.min(Math.max(e/100,0),1);return mr.create(.315,.015,1-n,1)}}]),t}(),yr=function(){function t(){o(this,t),i(this,"latitudeVariance",100),i(this,"latitudeSpeed",.5),i(this,"longitudeSpeed",.05),i(this,"isEnabled",!0),i(this,"_ambientStrength",1),i(this,"_ambientTween",null),i(this,"_isPaused",!1),i(this,"_movementController",null),i(this,"_animationController",null),i(this,"_interactionController",null)}return c(t,[{key:"register",value:function(t,e,n){this._movementModel=n,this._interactionController=e,this._animationController=t}},{key:"pauseMotion",value:function(){this._isPaused=!0,this._ambientTween&&this._ambientTween.stop(),this._ambientTween=null,this._ambientStrength=0}},{key:"pauseMotionAnimated",value:function(t){var e=this;this._isPaused=!0;var n,r=t||{},i=500;(r.duration||0===r.duration)&&(i=r.duration),n=r.ease&&"function"==typeof r.ease?r.ease:function(t){return t};var o=1;this._ambientTween&&(o=this._ambientTween.currentValue(),this._ambientTween.stop()),this._ambientTween=new sr(o,0,(o-0)*i,{onUpdate:function(t){e._ambientStrength=n(t)},onComplete:function(t){t&&(e._ambientTween=null),r.onComplete&&"function"==typeof r.onComplete&&r.onComplete(t)}})}},{key:"resumeMotion",value:function(){this._isPaused=!1,this._ambientTween.stop(),this._ambientTween=null,this._ambientStrength=1}},{key:"resumeMotionAnimated",value:function(t){var e=this;this._isPaused=!1;var n,r=t||{},i=1e3;(r.duration||0===r.duration)&&(i=r.duration),n=r.ease&&"function"==typeof r.ease?r.ease:function(t){return t};var o=0;this._ambientTween&&(o=this._ambientTween.currentValue(),this._ambientTween.stop()),this._ambientTween=new sr(o,1,(1-o)*i,{onUpdate:function(t){e._ambientStrength=1-n(1-t)},onComplete:function(t){t&&(e._ambientTween=null),r.onComplete&&"function"==typeof r.onComplete&&r.onComplete(t)}})}},{key:"ambientStrength",get:function(){return this._ambientStrength}},{key:"isPaused",get:function(){return this._isPaused}}]),t}(),gr=function(){function t(e){var n=this;o(this,t),i(this,"_container",null),i(this,"_callouts",{}),i(this,"_calloutDefinitions",[]),i(this,"_currentlyRemoving",[]),i(this,"onAutoRemove",null),i(this,"autoRemoveCallouts",!0),i(this,"autoRemoveThresholdSimilarity",.5),i(this,"autoRemoveThresholdMargins",{top:0,right:0,left:0,bottom:0}),i(this,"shouldAutoRemoveCallout",null),e&&"DIV"===e.tagName?(this._container=e,this._container.style.pointerEvents="none",this.resizeObserver=new ResizeObserver((function(t){t.length&&(n.bounds=t[0].contentRect)})),this.resizeObserver.observe(this._container)):console.warn("CalloutManager expects a DIV element as a container."),this._removeCalloutComplete=this._removeCalloutComplete.bind(this)}return c(t,[{key:"release",value:function(){this.resizeObserver.disconnect()}},{key:"addCallout",value:function(t){this.replaceCallouts([].concat(p(this._calloutDefinitions),[t]))}},{key:"removeCallout",value:function(t){var e=this._calloutDefinitions.findIndex((function(e){return e.id===t.id}));-1!==e&&this.replaceCallouts([].concat(p(this._calloutDefinitions.slice(0,e)),p(this._calloutDefinitions.slice(e+1))))}},{key:"replaceCallouts",value:function(t){var e=this,n=t.filter((function(t){return!e._calloutDefinitions.includes(t)})),r=this._calloutDefinitions.filter((function(e){return!t.includes(e)})).filter((function(t){return!e._currentlyRemoving.includes(t)}));this._currentlyRemoving=[].concat(p(this._currentlyRemoving),p(r)),this._calloutDefinitions=[].concat(p(this._calloutDefinitions),p(n)),n.map((function(t){var n=t.calloutClass;if(n){var r=new n(t);if(e.positionProvider){var i=e.positionProvider([t]);r.setPosition(i[0])}return r}})).filter((function(t){return t})).forEach((function(t){e._callouts[t.definition.id]=t,e._container.appendChild(t.element),t.animateIn()})),r.map((function(t){return e._callouts[t.id]})).forEach((function(t){t.animateOut(e._removeCalloutComplete)}))}},{key:"removeAllCallouts",value:function(){this.replaceCallouts([])}},{key:"getCalloutForDefinition",value:function(t){return this._callouts[t.id]}},{key:"update",value:function(t){var e=this;if(this.positionProvider){var n=[],r=this.positionProvider(this._calloutDefinitions);this._calloutDefinitions.forEach((function(i,o){var a=e._callouts[i.id],s=r[o];if(a&&(a.setPosition(s),a.update(t)),e.autoRemoveCallouts){var u=e.autoRemoveThresholdSimilarity,l=e.autoRemoveThresholdMargins;(s.world.similarityToCameraVector<u||s.screen.x<l.left||s.screen.x>e.bounds.width-l.right||s.screen.y<l.top||s.screen.y>e.bounds.height-l.bottom)&&n.push(i)}})),n.forEach((function(t){e.shouldAutoRemoveCallout&&!e.shouldAutoRemoveCallout(t)||(e.removeCallout(t),e.onAutoRemove&&e.onAutoRemove(t))}))}}},{key:"_removeCalloutComplete",value:function(t){var e=t.definition.id,n=this._calloutDefinitions.findIndex((function(t){return t.id===e}));-1!==n&&(this._calloutDefinitions=[].concat(p(this._calloutDefinitions.slice(0,n)),p(this._calloutDefinitions.slice(n+1))),n=this._currentlyRemoving.findIndex((function(t){return t.id===e})),this._currentlyRemoving=[].concat(p(this._currentlyRemoving.slice(0,n)),p(this._currentlyRemoving.slice(n+1))),this._container.removeChild(this._callouts[e].element),this._callouts[e].release(),delete this._callouts[e])}},{key:"drawables",get:function(){var t=this;return this._calloutDefinitions.map((function(e){return t._callouts[e.id].drawables}))}}]),t}(),_r=function(){function t(e,n,r){var a=this;o(this,t),i(this,"_wasmLoaded",!1),i(this,"isInit",!1),i(this,"shouldDraw",!1),i(this,"renderer",null),i(this,"scene",null),i(this,"targetDrawable",null),i(this,"calloutManager",null),i(this,"boundingRect",null),i(this,"_onWasmLoad",[]),i(this,"drawqueue",[]),i(this,"onInit",void 0),i(this,"onSelection",void 0),i(this,"onTap",void 0),i(this,"onUpdate",void 0),i(this,"_movementModel",null),i(this,"_interactionController",null),i(this,"_ambientController",null),i(this,"_animationController",null),i(this,"_storedMouseXY",null),i(this,"loadWasm",(function(t,e){return Jn(void 0===t?"./gkweb_bg.wasm":t).then((function(){(function(t){var e=Un(t,In.__wbindgen_malloc,In.__wbindgen_realloc),n=Vn;return tr(In.init_runtime(e,n))})(e).then((function(){a._wasmLoaded=!0,a._onWasmLoad.forEach((function(t){t()})),a._onInitCB()}))}))})),i(this,"init",(function(t){a.renderer=new ln(t,a.gkOptions.attributes),a.renderer.init(),a.gkOptions.clearColor&&(a.renderer.clearColor=a.gkOptions.clearColor),a.scene=new Cn(t.width,t.height),a.gkOptions.movementModel?a._movementModel=a.gkOptions.movementModel:a._movementModel=new fr,a._interactionController=new dr(t,a.scene.camera),a._interactionController.onTapCB=a.onTapCB,a._interactionController.onMouseMoveCB=a.onMouseMoveCB,a._animationController=new vr,a._ambientController=new yr,a._ambientController.register(a._animationController,a._interactionController,a._movementModel),a._animationController.register(a._ambientController,a._interactionController,a._movementModel),a._interactionController.register(a._ambientController,a._animationController,a._movementModel),a._movementModel.register(a._ambientController,a._animationController,a._interactionController),window.addEventListener("resize",a.onResizeCB),window.addEventListener("scroll",a.onResizeCB),a._resizeObserver=new ResizeObserver((function(t){t.length&&a.onResizeCB()})),a._resizeObserver.observe(t),a.loadWasm(a.gkOptions.wasmPath,a.gkOptions.apiKey),a.isInit=!0})),i(this,"_onInitCB",(function(){a.onInit&&a.onInit(a),a.renderloop(0)})),i(this,"onResizeCB",(function(){a.boundingRect=a.renderer.gl.canvas.getBoundingClientRect(),un(a.renderer.gl.canvas),a.scene.resize(a.boundingRect.width,a.boundingRect.height),a.renderer.resize(a.boundingRect.width,a.boundingRect.height),a.interactionController.resize()})),i(this,"setCameratargetDrawable",(function(t){a.interactionController.hitTarget=t.hitTest})),i(this,"addDrawable",(function(t,e){return t instanceof br&&(t instanceof Zn&&null===a.targetDrawable&&(a.targetDrawable=t,a.interactionController.target=t),t.init(a.renderer.gl,e),a.drawqueue.push(t),a._wasmLoaded?t.createCollisionGeo():a._onWasmLoad.push(t.createCollisionGeo),!0)})),i(this,"startDrawing",(function(){a.shouldDraw=!0,a.renderloop(0)})),i(this,"stopDrawing",(function(){a.shouldDraw=!1})),i(this,"renderloop",(function(t){var e=t/1e4;if(a.shouldDraw){a.movementModel.update(e,a.scene.camera.fov);var n=_(a.movementModel.currentLatLonAlt,3),r=n[0],i=n[1],o=n[2],s=ar.worldFromLatLon(r,i,o);a.scene.camera.setPosition(s),a.renderer.prepareRenderFrame(),a.scene.update(e);var u=a.scene.getUniforms(e);if(a.drawqueue.forEach((function(t){t.update(a.renderer.gl,u,e)})),a.calloutManager&&a.calloutManager.update(e),a.drawqueue.forEach((function(t){t.draw(a.renderer.gl)})),a.onUpdate&&"function"==typeof a.onUpdate)if(a._storedMouseXY){var l=_(a._storedMouseXY,2),c=l[0],f=l[1],h=c/a.boundingRect.width,d=(a.boundingRect.height-f)/a.boundingRect.height,p=a.scene.camera.getRayFromScreen(h,d),m=a.targetLatLon(p);m?a.onUpdate(a.getPosition(m.lat,m.lon,0)):a.onUpdate()}else a.onUpdate();requestAnimationFrame(a.renderloop)}})),i(this,"onTapCB",(function(t,e){if(a._wasmLoaded){var n=t/a.boundingRect.width,r=(a.boundingRect.height-e)/a.boundingRect.height,i=a.scene.camera.getRayFromScreen(n,r),o=a.targetLatLon(i),s={drawables:[]};o&&(s.lat=o.lat,s.lon=o.lon),a.drawqueue.forEach((function(t){if(t.isInteractive&&t.isSelectable){var e={};e.obj=t;var n=t.rayCastFrom(i);n&&t.isSelectable&&(e.selection=t.onSelection(o.lat,o.lon,n)),s.drawables.push(e)}})),a.onSelection&&"function"==typeof a.onSelection&&a.onSelection(s),a.onTap&&"function"==typeof a.onTap&&(o?a.onTap(a.getPosition(o.lat,o.lon,0)):a.onTap())}})),i(this,"targetLatLon",(function(t){var e,n=a.targetDrawable.rayCastFrom(t);return!1!==n&&(e=ar.latLonFromWorld(n.point)),e})),i(this,"onMouseMoveCB",(function(t,e){if(a._wasmLoaded){var n=t/a.boundingRect.width,r=(a.boundingRect.height-e)/a.boundingRect.height,i=a.scene.camera.getRayFromScreen(n,r);a.drawqueue.forEach((function(t){if(t.isInteractive&&t.isHoverable){var e=t.rayCastFrom(i);e&&t.isHoverable&&t.onHover(e)}})),a._storedMouseXY=[t,e]}})),i(this,"getPosition",(function(t,e,n){n||(n=0);var r=ar.worldFromLatLon(t,e,n),i=a.scene.camera.project(r);i[0]*=a.boundingRect.width,i[1]*=a.boundingRect.height,i[1]=a.boundingRect.height-i[1];var o=a.scene.camera.project(a.scene.camera.target);o[0]*=a.boundingRect.width,o[1]*=a.boundingRect.height,o[1]=a.boundingRect.height-o[1];var s=[];s.push(i[0]-o[0]),s.push(i[1]-o[1]);var u=yn();xn(u,r);var l=a.scene.camera.eye,c=yn();xn(c,l);var f=En(u,c);return{coord:{lat:t,lon:e,alt:n},screen:{x:i[0],y:i[1]},world:{x:s[0],y:s[1],similarityToCameraVector:f}}})),i(this,"registerCalloutManager",(function(t){t&&t instanceof gr?(t.positionProvider=function(t){return t.map((function(t){return a.getPosition(t.latitude,t.longitude,t.altitude)}))},a.calloutManager=t):console.warn("registerCalloutManager must be passed an instance of CalloutManager")})),i(this,"computeGlobeSize",(function(){var t,e,n,r,i,o=a.scene.camera.fov,s=(t=a.scene.camera.eye,n=(e=a.targetDrawable.translation)[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],Math.hypot(n,r,i));return 2*Math.asin(1/s)/o*a.boundingRect.height})),i(this,"setGlobeSize",(function(t){var e=a.scene.camera.fov;return 1*Math.sin(t/a.boundingRect.height*e/2)})),this.gkOptions=void 0===n?{}:n,r&&(this.onInit=r),this.boundingRect=e.getBoundingClientRect(),this.init(e)}return c(t,[{key:"movementModel",get:function(){return this._movementModel}},{key:"ambientController",get:function(){return this._ambientController}},{key:"animationController",get:function(){return this._animationController}},{key:"interactionController",get:function(){return this._interactionController}}]),c(t,[{key:"isWebGL1",get:function(){return!!this.gl&&te(this.gl)}},{key:"isWebGL2",get:function(){return!!this.gl&&Zt(this.gl)}},{key:"VERSION",get:function(){return{version:"1.0.4",wasmVersion:this.WASM_VERSION}}},{key:"WASM_VERSION",get:function(){return!!this._wasmLoaded&&function(){try{const n=In.__wbindgen_export_4.value-16;In.__wbindgen_export_4.value=n,In.get_wasm_version(n);var t=Gn()[n/4+0],e=Gn()[n/4+1];return Nn(t,e)}finally{In.__wbindgen_export_4.value+=16,In.__wbindgen_free(t,e)}}()}}]),t}(),wr=pr((function(t,e){!function(t){function e(t,e,n){this.obj=t,this.left=null,this.right=null,this.parent=n,this.dimension=e}function n(t){this.content=[],this.scoreFunction=t}n.prototype={push:function(t){this.content.push(t),this.bubbleUp(this.content.length-1)},pop:function(){var t=this.content[0],e=this.content.pop();return this.content.length>0&&(this.content[0]=e,this.sinkDown(0)),t},peek:function(){return this.content[0]},remove:function(t){for(var e=this.content.length,n=0;n<e;n++)if(this.content[n]==t){var r=this.content.pop();return void(n!=e-1&&(this.content[n]=r,this.scoreFunction(r)<this.scoreFunction(t)?this.bubbleUp(n):this.sinkDown(n)))}throw new Error("Node not found.")},size:function(){return this.content.length},bubbleUp:function(t){for(var e=this.content[t];t>0;){var n=Math.floor((t+1)/2)-1,r=this.content[n];if(!(this.scoreFunction(e)<this.scoreFunction(r)))break;this.content[n]=e,this.content[t]=r,t=n}},sinkDown:function(t){for(var e=this.content.length,n=this.content[t],r=this.scoreFunction(n);;){var i=2*(t+1),o=i-1,a=null;if(o<e){var s=this.content[o],u=this.scoreFunction(s);u<r&&(a=o)}if(i<e){var l=this.content[i];this.scoreFunction(l)<(null==a?r:u)&&(a=i)}if(null==a)break;this.content[t]=this.content[a],this.content[a]=n,t=a}}},t.kdTree=function(t,r,i){var o=this;Array.isArray(t)?this.root=function t(n,r,o){var a,s,u=r%i.length;return 0===n.length?null:1===n.length?new e(n[0],u,o):(n.sort((function(t,e){return t[i[u]]-e[i[u]]})),(s=new e(n[a=Math.floor(n.length/2)],u,o)).left=t(n.slice(0,a),r+1,s),s.right=t(n.slice(a+1),r+1,s),s)}(t,0,null):function(t){o.root=t,function t(e){e.left&&(e.left.parent=e,t(e.left)),e.right&&(e.right.parent=e,t(e.right))}(o.root)}(t),this.toJSON=function(t){t||(t=this.root);var n=new e(t.obj,t.dimension,null);return t.left&&(n.left=o.toJSON(t.left)),t.right&&(n.right=o.toJSON(t.right)),n},this.insert=function(t){var n,r,o=function e(n,r){if(null===n)return r;var o=i[n.dimension];return t[o]<n.obj[o]?e(n.left,n):e(n.right,n)}(this.root,null);null!==o?(n=new e(t,(o.dimension+1)%i.length,o),r=i[o.dimension],t[r]<o.obj[r]?o.left=n:o.right=n):this.root=new e(t,0,null)},this.remove=function(t){var e;null!==(e=function e(n){if(null===n)return null;if(n.obj===t)return n;var r=i[n.dimension];return t[r]<n.obj[r]?e(n.left):e(n.right)}(o.root))&&function t(e){function n(t,e){var r,o,a,s,u;return null===t?null:(r=i[e],t.dimension===e?null!==t.left?n(t.left,e):t:(o=t.obj[r],a=n(t.left,e),s=n(t.right,e),u=t,null!==a&&a.obj[r]<o&&(u=a),null!==s&&s.obj[r]<u.obj[r]&&(u=s),u))}var r,a,s;if(null===e.left&&null===e.right)return null===e.parent?void(o.root=null):(s=i[e.parent.dimension],void(e.obj[s]<e.parent.obj[s]?e.parent.left=null:e.parent.right=null));null!==e.right?(a=(r=n(e.right,e.dimension)).obj,t(r),e.obj=a):(a=(r=n(e.left,e.dimension)).obj,t(r),e.right=e.left,e.left=null,e.obj=a)}(e)},this.nearest=function(t,e,a){var s,u,l;if(l=new n((function(t){return-t[1]})),a)for(s=0;s<e;s+=1)l.push([null,a]);for(o.root&&function n(o){function a(t,n){l.push([t,n]),l.size()>e&&l.pop()}var s,u,c,f,h=i[o.dimension],d=r(t,o.obj),m={};for(f=0;f<i.length;f+=1)f===o.dimension?m[i[f]]=t[i[f]]:m[i[f]]=o.obj[i[f]];u=r(m,o.obj),null!==o.right||null!==o.left?(n(s=null===o.right?o.left:null===o.left?o.right:t[h]<o.obj[h]?o.left:o.right),(l.size()<e||d<l.peek()[1])&&a(o,d),(l.size()<e||Math.abs(u)<l.peek()[1])&&null!==(c=s===o.left?o.right:o.left)&&n(c)):(l.size()<e||d<l.peek()[1])&&a(o,d)}(o.root),u=[],s=0;s<Math.min(e,l.content.length);s+=1)l.content[s][0]&&u.push([l.content[s][0].obj,l.content[s][1]]);return u},this.balanceFactor=function(){return function t(e){return null===e?0:Math.max(t(e.left),t(e.right))+1}(o.root)/(Math.log(function t(e){return null===e?0:t(e.left)+t(e.right)+1}(o.root))/Math.log(2))}},t.BinaryHeap=n}(e)})),xr=function(){function t(){var e=this;o(this,t),i(this,"data",[]),i(this,"types",[]),i(this,"kdtree",null),i(this,"isInit",!1),i(this,"init",(function(){e.isInit||(e.kdtree=new wr.kdTree(e.data,ar.distanceBetweenPoints,["lat","lon"]))})),i(this,"addGeojson",(function(t){if("FeatureCollection"===t.type&&t.features instanceof Array){var n=[];t.features.forEach((function(t){var r={id:"_".concat(Math.random().toString(36).substr(2,9)),lat:t.geometry.coordinates[1],lon:t.geometry.coordinates[0],properties:t.properties};e.data.push(r),n.push(n)})),e.isInit?e.kdtree.insert(n):e.init()}})),i(this,"addGeojsonPoint",(function(t){var n={id:"_".concat(Math.random().toString(36).substr(2,9)),lat:t.geometry.coordinates[1],lon:t.geometry.coordinates[0],properties:t.properties};return e.data.push(n),e.isInit?e.kdtree.insert(n):e.init(),n})),i(this,"addDataPoint",(function(t){var n=void 0===t.length?[t]:t,r=[];n.forEach((function(t){var n={id:"_".concat(Math.random().toString(36).substr(2,9)),lat:t.coordinates[1],lon:t.coordinates[0],properties:t.properties};e.data.push(n),r.push(n)})),e.isInit?e.kdtree.insert(r):e.init()})),i(this,"updateDataset",(function(t){t.features.forEach((function(t){var n=e.data.find((function(e){var n=e.lat===t.geometry.coordinates[1],r=e.lon===t.geometry.coordinates[0];return n&&r}));void 0===n?e.addGeojsonPoint(t):n.properties=t.properties}))})),i(this,"deleteDataset",(function(){e.data=[],e.init()})),i(this,"getNearest",(function(t,n,r,i){e.isInit||e.init();var o=e.kdtree.nearest({lat:t,lon:n},i,r);if(void 0!==o[0])return o})),i(this,"getElementFromId",(function(t){return e.data.find((function(e){return e.id===t}))})),i(this,"getElementFromKey",(function(t,n){return e.data.find((function(e){return e.properties[t]===n}))})),i(this,"getTypeList",(function(){var t=[];return t.push([e.data[0]]),e.data.forEach((function(e){var n=Object.keys(e.properties),r=!1;t.forEach((function(t){var i=Object.keys(t[0].properties),o=ar.isSubSet(n,i),a=ar.isSubSet(i,n);o&&a&&(t.push(e),r=!0)})),!1===r&&t.push([e])})),t})),i(this,"getMaxForKey",(function(t){var n,r=-1/0;if("number"==typeof e.data[0].properties[t])return e.data.forEach((function(e){var i=e.properties[t];i>=r&&(r=i,n=e.id)})),{max:r,id:n};console.warn("Cannot compare non-numbers")})),i(this,"getMinForKey",(function(t){var n,r=1/0;if("number"==typeof e.data[0].properties[t])return e.data.forEach((function(e){var i=e.properties[t];i<=r&&(r=i,n=e.id)})),{min:r,id:n};console.warn("Cannot compare non-numbers")})),i(this,"getRangeForKey",(function(t){return{min:e.getMinForKey(t),max:e.getMaxForKey(t)}})),i(this,"mapKeyToRange",(function(t,n,r){var i=e.getRangeForKey(t);return e.data.map((function(e){var o=(e.properties[t]-i.min.min)/(i.max.max-i.min.min)*(r-n)+n;return{id:e.properties.region_id,value:o}}))}))}return c(t,[{key:"isHomogeneous",get:function(){return 1===this.getTypeList().length}}]),t}(),Er=function(t){s(n,br);var e=v(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(),Sr="precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_texture;varying vec4 v_color;varying float v_alpha;void main(){vec4 surfaceColor=texture2D(u_texture,gl_PointCoord.xy);float d=(1.0+v_alpha)/2.0;float alpha=smoothstep(0.4,0.49,v_alpha);gl_FragColor=vec4(surfaceColor.rgb,surfaceColor.a*alpha);}",kr={},Ar=function(t){s(n,Er);var e=v(n);function n(t){var r,a;o(this,n),i(d(a=e.call(this,t)),"datastore",void 0),i(d(a),"maxSelectionDistance",300),i(d(a),"maxSelectionCount",1),i(d(a),"maxDataPoints",1e4),i(d(a),"dataPointCount",0),i(d(a),"_resourceLoaded",!1),i(d(a),"_isDirty",!0),i(d(a),"_hasGeometry",!1),i(d(a),"useTexture",!1),i(d(a),"createEmptyVertices",(function(){a.geometry.vertices.position={numComponents:3,data:new Array(3*a.maxDataPoints).fill(0),perInstance:1},a.geometry.vertices.color={numComponents:4,data:new Array(4*a.maxDataPoints).fill(0),perInstance:4},a.geometry.vertices.size={numComponents:1,data:new Array(1*a.maxDataPoints).fill(0),perInstance:1},a.geometry.vertices.indices={numComponents:1,data:Array.from(Array(1*a.maxDataPoints).keys()),perInstance:1}})),i(d(a),"extendVerticesBy",(function(t){var e,n,r;(e=a.geometry.vertices.position.data).push.apply(e,p(Array(3*t).fill(0))),(n=a.geometry.vertices.color.data).push.apply(n,p(Array(4*t).fill(0))),(r=a.geometry.vertices.size.data).push.apply(r,p(Array(1*t).fill(0)));var i=a.geometry.vertices.indices.data.length;a.geometry.vertices.indices.data=Array.from(Array(1*(i+t)).keys()),a.geometry.needsResize=!0,a.maxDataPoints+=t})),i(d(a),"init",(function(t,e){if(a.geometry.init(t),a._hasGeometry=!0,a.material.init(t),a.useTexture){var n={texture:{src:a.textureSrc.texture,minMag:t.LINEAR}};a.material.loadTextures(t,n,(function(){e&&e(),a.material.uniforms.u_texture=a.material.textures.texture}))}else e&&e()})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.geometry.needsResize&&a.geometry.reloadBuffers(t),a.geometry.isDirty&&a.geometry.updateBuffers(t)})),i(d(a),"draw",(function(t){(a.isReady||a._hasGeometry)&&0!==!a.dataPointCount&&(t.useProgram(a.material.programInfo.program),t.disable(t.DEPTH_TEST),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.POINTS,a.dataPointCount,t.UNSIGNED_SHORT,0),t.enable(t.DEPTH_TEST))})),i(d(a),"rayCastFrom",(function(){return!0})),i(d(a),"hitTest",(function(){return!0})),i(d(a),"onSelectionCB",(function(t){return t})),i(d(a),"onSelection",(function(t,e){var n=a.getNearest(t,e);return a.onSelectionCB(n)})),i(d(a),"transform",(function(t,e){return e})),i(d(a),"addGeojson",(function(t,e){if("string"!=typeof t){a.datastore.addGeojson(t);var n={position:{numComponents:3,data:[]},color:{numComponents:4,data:[]},size:{numComponents:1,data:[]},indices:{numComponents:1,data:[]}};a.datastore.data.forEach((function(t,e){var r,i,o={lat:t.lat,lon:t.lon,color:[1,1,1,1],size:10};(o=a.transform(t,o)).coords=ar.worldFromLatLon(o.lat,o.lon,.01),(r=n.position.data).push.apply(r,p(o.coords)),(i=n.color.data).push.apply(i,p(o.color)),n.size.data.push(o.size),n.indices.data.push(e)})),a.geometry.updateGeometry(n,a.dataPointCount),a.dataPointCount+=t.features.length,void 0!==e&&e()}else console.warn("This function needs a geojson object at this time")})),i(d(a),"addDataPoint",(function(t,e){a.dataPointCount+1>=a.maxDataPoints&&(console.warn("More than ".concat(a.maxDataPoints," datapoints have been added, Increasing buffer size by: ").concat(a.maxDataPoints)),a.extendVerticesBy(a.maxDataPoints));var n=[];n.push(a.datastore.addGeojsonPoint(t));var r={position:{numComponents:3,data:[]},color:{numComponents:4,data:[]},size:{numComponents:1,data:[]},indices:{numComponents:1,data:[]}};n.forEach((function(t,e){var n,i,o={lat:t.lat,lon:t.lon,color:[1,1,1,1],size:10};(o=a.transform(t,o)).coords=ar.worldFromLatLon(o.lat,o.lon,.01),(n=r.position.data).push.apply(n,p(o.coords)),(i=r.color.data).push.apply(i,p(o.color)),r.size.data.push(o.size),r.indices.data.push(e)})),a.geometry.updateGeometry(r,a.dataPointCount),a.dataPointCount+=1,void 0!==e&&e()})),i(d(a),"updatePoint",(function(t,e){var n,r,i={};void 0!==e.position&&(i.position={numComponents:3,data:[]},(n=i.position.data).push.apply(n,p(e.position))),void 0!==e.color&&(i.color={numComponents:4,data:[]},(r=i.color.data).push.apply(r,p(e.color))),void 0!==e.size&&(i.size={numComponents:1,data:[]},i.size.data.push(e.size)),a.geometry.updateGeometry(i,t)})),i(d(a),"getNearest",(function(t,e){return a.datastore.getNearest(t,e,a.maxSelectionDistance,a.maxSelectionCount)}));var s={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec4 color;attribute float size;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;varying vec4 v_color;varying float v_alpha;void main(){vec4 pos=u_worldViewProjection*u_model*position;gl_PointSize=size;gl_Position=pos;v_color=color;v_alpha=dot(position.xyz,normalize(u_cameraPos));}",fragment:"precision mediump float;\n#define GLSLIFY 1\nvarying vec4 v_color;varying float v_alpha;void main(){float d=distance(vec2(0.5),gl_PointCoord.xy);float c=1.0-smoothstep(0.40,0.5,d);gl_FragColor=vec4(v_color.rgb,v_color.a*v_alpha*c);}"};return t&&(t.maxSelectionCount&&(a.maxSelectionCount=t.maxSelectionCount),t.maxSelectionDistance&&(a.maxSelectionDistance=t.maxSelectionDistance),t.maxDataPoints&&(a.maxDataPoints=t.maxDataPoints),!0===t.useTexture&&void 0!==t.texture&&(a.useTexture=!0,s.fragment=Sr,a.textureSrc={texture:t.texture})),a.material=new Pn(s),a.datastore=new xr,a.material.uniforms=kr,a.geometry=new er,a.createEmptyVertices(),a}return n}(),Or={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec3 normal;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;varying vec2 vTexture;varying float vAlpha;void main(){vec4 pos=u_worldViewProjection*u_model*position;gl_PointSize=10.0;vec3 transformedNormal=(u_worldViewProjection*u_model*vec4(normal,1.0)).xyz;vec4 transformedCamera=vec4(0.0,0.0,-1.0,1.0)*u_worldViewProjection;vAlpha=pow((1.0+(dot(normal,normalize(transformedCamera.xyz))))/2.0,9.0);vTexture=texcoord.xy;gl_Position=pos+0.00000000000000001*normal.x*texcoord.x;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_surface;varying vec2 vTexture;varying float vAlpha;void main(){vec4 surfaceColor=texture2D(u_surface,vec2(vTexture.x,1.0-vTexture.y));vec3 color=surfaceColor.rgb*vAlpha;gl_FragColor=vec4(color,1.0);}"},Tr={},Cr=(function(t){s(n,Zn);var e=v(n);function n(t,r){var a,s;o(this,n),i(d(s=e.call(this)),"material",null),i(d(s),"lookup",null),i(d(s),"currentSelection",-1),i(d(s),"previousSelection",-1),i(d(s),"inAnimation",null),i(d(s),"outAnimation",null),i(d(s),"selection0",236),i(d(s),"selection1",144),i(d(s),"current",236),i(d(s),"dataTexture",void 0),i(d(s),"dataTextureSize",16),i(d(s),"updateCMDs",[]),i(d(s),"highlightAnimationProps",{start:0,stop:1,duration:1e3,onUpdate:function(t){s.material.uniforms.u_animateIn=t}}),i(d(s),"init",(function(t,e){s.geometry.init(t);var n={surface:{src:s.textureSrc.surface,minMag:t.LINEAR}};s.material.init(t),s.material.uniforms.uModelMatrix=s.modelMatrix,s.material.loadTextures(t,n,(function(){s.material.uniforms.u_surface=s.material.textures.surface,e&&e()}))})),i(d(s),"getValueForId",(function(t){return s.lookup.getFromId(t)})),i(d(s),"getValueForCode",(function(t){return s.lookup.getFromCode(t)})),i(d(s),"getValueForName",(function(t){return s.lookup.getFromName(t)})),i(d(s),"setIdColor",(function(t,e,n){var r=void 0===n?1:n,i=ar.hexToRGBA(e,r,!1);s.updateCMDs.push((function(e){s.dataTexture.updatePixelId(e,i,t)}))})),i(d(s),"createCollisionGeo",(function(){s.collisionGeometry&&s.collisionGeometry instanceof Kn||(s.collisionGeometry=Yn.create_collision_geometry(s.geometry.vertices.position.data,s.geometry.vertices.texcoord.data,s.geometry.vertices.indices.data))})),i(d(s),"rayCastFrom",(function(t){return s.collisionGeometry.raycast(t.origin,t.direction)})),i(d(s),"hitTest",(function(t){return s.collisionGeometry.hitTest(t.origin,t.direction)})),i(d(s),"onSelectionCB",(function(){})),i(d(s),"onSelection",(function(t,e,n){var r=ar.latLonFromWorld(n.point);return s.current=s.lookup.getIdFromLatLon(r.lat,r.lon),s.setHighlightId(s.current),s.onSelectionCB(s.current),{id:s.current,name:s.lookup.getFromId(s.current)}})),i(d(s),"onHover",(function(){})),i(d(s),"update",(function(t,e,r){y((a=d(s),u(n.prototype)),"update",a).call(a,e,r),s.material.uniforms.u_model=s.modelMatrix,s.updateCMDs.forEach((function(e){e(t)})),s.updateCMDs=[]})),i(d(s),"draw",(function(t){s.isReady&&s.shouldDraw&&(t.useProgram(s.material.programInfo.program),en(t,s.material.programInfo,s.geometry.bufferInfo),tn(s.material.programInfo,s.material.uniforms),t.drawArrays(t.TRIANGLES,0,s.geometry.bufferInfo.numElements))})),i(d(s),"setCountryHover",(function(t){})),i(d(s),"setHighlightId",(function(t){s.previousSelection=s.currentSelection,s.currentSelection=t;var e=s.inAnimation?s.inAnimation.currentValue():1,n=300*e;s.animateIn(s.currentSelection,500),s.animateOut(s.previousSelection,n,e)})),i(d(s),"animateIn",(function(t,e){s.material.uniforms.u_idAnimateIn=t,s.inAnimation&&s.inAnimation.stop(),s.material.uniforms.u_animateIn=0,s.inAnimation=new sr(s.highlightAnimationProps.start,s.highlightAnimationProps.stop,s.highlightAnimationProps.duration,{onUpdate:s.highlightAnimationProps.onUpdate,onComplete:function(){e&&e()}})})),i(d(s),"animateOut",(function(t,e,n,r){s.material.uniforms.u_idAnimateOut=t,s.outAnimation&&s.outAnimation.stop(),s.material.uniforms.u_animateOut=n,s.outAnimation=new sr(n,0,e,{onUpdate:function(t){s.material.uniforms.u_animateOut=t},onComplete:function(){r&&r()}})})),i(d(s),"addDataset",(function(t){s.lookup=new or(t,s.textureSrc.id)})),s.textureSrc={surface:t.surface},s.material=new Pn(Or),s.material.uniforms=Tr,s.geometry=new er;var l=0,c=new Float32Array(r),f=new Int32Array(r),h=c.subarray(l,l+34992);l+=34992;var p=c.subarray(l,l+34992);l+=34992;var m=c.subarray(l,l+34992);l+=34992;var v=f.subarray(l,l+11664);return s.geometry.vertices.position={numComponents:3,data:h},s.geometry.vertices.normal={numComponents:3,data:p},s.geometry.vertices.texcoord={numComponents:3,data:m},s.geometry.vertices.indices={numComponents:3,data:v},s}}(),{vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;varying float vAlpha;varying vec2 vTexture;void main(){vTexture=texcoord;gl_Position=position;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_background;uniform vec2 u_resolution;varying float vAlpha;varying vec2 vTexture;void main(){vec2 texture=u_resolution/256.0;vec4 textureColor=texture2D(u_background,vTexture*texture);gl_FragColor=vec4(textureColor.rgb,1.0);}"}),Pr={},Ir=function(t){s(n,br);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"init",(function(t,e){a.geometry=new er,a.geometry.vertices.position=[-1,-1,1,-1,1,1,1,1,1,1,-1,1],a.geometry.vertices.texcoord=[0,0,0,1,1,1,1,0],a.geometry.vertices.indices=[0,2,1,0,3,2],a.geometry.init(t);var n={background:{src:a.textureSrc.background,minMag:t.LINEAR}};a.material.init(t),a.material.loadTextures(t,n,(function(){a.material.uniforms.u_background=a.material.textures.background,e&&e()}))})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelection",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix})),i(d(a),"draw",(function(t){a.isReady&&(t.disable(t.DEPTH_TEST),t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.TRIANGLES,a.geometry.bufferInfo.numElements,t.UNSIGNED_SHORT,0),t.enable(t.DEPTH_TEST))})),a.material=new Pn(Cr),a.material.uniforms=Pr,a.textureSrc={background:t},a}return n}(),Mr={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform mat4 u_view;uniform float u_scale;uniform vec3 u_cameraPos;varying float vAlpha;varying vec2 vTexture;void main(){vec3 cameraRight=normalize(vec3(u_view[0][0],u_view[1][0],u_view[2][0]));vec3 cameraUp=normalize(vec3(u_view[0][1],u_view[1][1],u_view[2][1]));vec3 cameraForward=normalize(u_cameraPos);vec3 worldPos=cameraRight*position.x*u_scale+cameraUp*position.y*u_scale;vec4 pos=u_worldViewProjection*vec4(worldPos,1.0);gl_Position=pos;vTexture=texcoord;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_background;varying float vAlpha;varying vec2 vTexture;void main(){gl_FragColor=vec4(1.0);}"},jr={u_scale:1},Dr=function(t){s(n,br);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"useTexture",!1),i(d(a),"nScale",1),i(d(a),"init",(function(t,e){if(a.geometry=new er,a.geometry.vertices.position=[-1,-1,0,-1,1,0,1,1,0,1,-1,0],a.geometry.vertices.texcoord=[0,0,0,1,1,1,1,0],a.geometry.vertices.indices=[0,2,1,0,3,2],a.geometry.init(t),a.material.init(t),a.useTexture){var n={background:{src:a.textureSrc.texture,minMag:t.LINEAR,flipY:!0}};a.material.loadTextures(t,n,(function(){a.material.uniforms.u_background=a.material.textures.background,e&&e()}))}else a.material.texturesLoaded=!0,e&&e()})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelection",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.material.uniforms.u_scale=a.nScale})),i(d(a),"draw",(function(t){a.isReady&&(t.disable(t.DEPTH_TEST),t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.TRIANGLES,a.geometry.bufferInfo.numElements,t.UNSIGNED_SHORT,0),t.enable(t.DEPTH_TEST))})),t.texture&&(a.useTexture=!0,Mr.fragment="precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_background;varying float vAlpha;varying vec2 vTexture;void main(){vec4 textureColor=texture2D(u_background,vTexture);gl_FragColor=textureColor;}",a.textureSrc={texture:t.texture}),a.material=new Pn(Mr),a.material.uniforms=jr,a}return n}(),Fr={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform mat4 u_view;uniform float u_scale;uniform vec3 u_point;uniform vec2 u_resolution;uniform vec3 u_cameraPos;varying float vAlpha;varying vec2 vTexture;void main(){vec4 pos=u_worldViewProjection*vec4(u_point,1.0);float size=u_scale*16.0;pos.y+=(size*4.0/u_resolution.y);gl_PointSize=size;gl_Position=pos;vTexture=texcoord;float d=(1.0+dot(u_point,normalize(u_cameraPos)))/2.0;vAlpha=smoothstep(0.4,0.5,d);}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_background;varying float vAlpha;varying vec2 vTexture;void main(){vec4 textureColor=texture2D(u_background,gl_PointCoord);gl_FragColor=vec4(textureColor.rgb,vAlpha*textureColor.a);}"},Rr={u_scale:1,u_point:[0,0,1]},Lr=(function(t){s(n,br);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"useTexture",!1),i(d(a),"nScale",1),i(d(a),"point",[0,0,1]),i(d(a),"init",(function(t,e){a.geometry=new er,a.geometry.vertices.position=[0,0,1],a.geometry.init(t),a.material.init(t);var n={background:{src:a.textureSrc.texture,minMag:t.LINEAR}};a.material.loadTextures(t,n,(function(){a.material.uniforms.u_background=a.material.textures.background,e&&e()}))})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelection",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.material.uniforms.u_scale=a.nScale,a.material.uniforms.u_point=a.point})),i(d(a),"draw",(function(t){a.isReady&&(t.disable(t.DEPTH_TEST),t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawArrays(t.POINTS,0,a.geometry.bufferInfo.numElements),t.enable(t.DEPTH_TEST))})),i(d(a),"setPoint",(function(t,e,n){var r=void 0===n?0:n;a.point=ar.worldFromLatLon(t,e,r)})),a.textureSrc={texture:t.texture},a.material=new Pn(Fr),a.material.uniforms=Rr,a}}(),function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)};!function(){var e=Math.abs,r=Math.min,o=Math.max,a=Math.cos,s=Math.sin,u=Math.acos,l=Math.sqrt,c=Math.PI,f={x:0,y:0,z:0},h=n(2),d=n(3),m=function(t){var n=t&&t.forEach?t:[].slice.call(arguments),r=!1;if("object"===i(n[0])){r=n.length;var o=[];n.forEach((function(t){["x","y","z"].forEach((function(e){void 0!==t[e]&&o.push(t[e])}))})),n=o}var a=!1,s=n.length;if(r){if(r>4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(6!==s&&8!==s&&9!==s&&12!==s&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");var u=!a&&(9===s||12===s)||t&&t[0]&&void 0!==t[0].z;this._3d=u;for(var l=[],c=0,f=u?3:2;c<s;c+=f){var d={x:n[c],y:n[c+1]};u&&(d.z=n[c+2]),l.push(d)}this.order=l.length-1,this.points=l;var m=["x","y"];u&&m.push("z"),this.dims=m,this.dimlen=m.length,function(t){for(var n=t.order,r=t.points,i=h.align(r,{p1:r[0],p2:r[n]}),o=0;o<i.length;o++)if(e(i[o].y)>1e-4)return void(t._linear=!1);t._linear=!0}(this),this._t1=0,this._t2=1,this.update()},p=n(4);function v(t,e,n,r,i){void 0===i&&(i=.5);var o=h.projectionratio(i,t),a=1-o,s={x:o*e.x+a*r.x,y:o*e.y+a*r.y},u=h.abcratio(i,t);return{A:{x:n.x+(n.x-s.x)/u,y:n.y+(n.y-s.y)/u},B:n,C:s}}m.SVGtoBeziers=function(t){return p(m,t)},m.quadraticFromPoints=function(t,e,n,r){if(void 0===r&&(r=.5),0===r)return new m(e,e,n);if(1===r)return new m(t,e,e);var i=v(2,t,e,n,r);return new m(t,i.A,n)},m.cubicFromPoints=function(t,e,n,r,i){void 0===r&&(r=.5);var o=v(3,t,e,n,r);void 0===i&&(i=h.dist(e,o.C));var a=i*(1-r)/r,s=h.dist(t,n),u=(n.x-t.x)/s,l=(n.y-t.y)/s,c=i*u,f=i*l,d=a*u,p=a*l,y=e.x-c,g=e.y-f,_=e.x+d,w=e.y+p,b=o.A,x=b.x+(y-b.x)/(1-r),E=b.y+(g-b.y)/(1-r),S=b.x+(_-b.x)/r,k=b.y+(w-b.y)/r,A={x:t.x+(x-t.x)/r,y:t.y+(E-t.y)/r},O={x:n.x+(S-n.x)/(1-r),y:n.y+(k-n.y)/(1-r)};return new m(t,A,O,n)};var y=function(){return h};m.getUtils=y,m.PolyBezier=d,m.prototype={getUtils:y,valueOf:function(){return this.toString()},toString:function(){return h.pointsToString(this.points)},toSVG:function(t){if(this._3d)return!1;for(var e=this.points,n=["M",e[0].x,e[0].y,2===this.order?"Q":"C"],r=1,i=e.length;r<i;r++)n.push(e[r].x),n.push(e[r].y);return n.join(" ")},setRatios:function(t){if(t.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=t,this._lut=[]},verify:function(){var t=this.coordDigest();t!==this._print&&(this._print=t,this.update())},coordDigest:function(){return this.points.map((function(t,e){return""+e+t.x+t.y+(t.z?t.z:0)})).join("")},update:function(t){this._lut=[],this.dpoints=h.derive(this.points,this._3d),this.computedirection()},computedirection:function(){var t=this.points,e=h.angle(t[0],t[this.order],t[1]);this.clockwise=e>0},length:function(){return h.length(this.derivative.bind(this))},_lut:[],getLUT:function(t){if(this.verify(),t=t||100,this._lut.length===t)return this._lut;this._lut=[],t--;for(var e=0;e<=t;e++)this._lut.push(this.compute(e/t));return this._lut},on:function(t,e){e=e||5;for(var n,r=this.getLUT(),i=[],o=0,a=0;a<r.length;a++)n=r[a],h.dist(n,t)<e&&(i.push(n),o+=a/r.length);return!!i.length&&o/i.length},project:function(t){var e,n,r,i,o=this.getLUT(),a=o.length-1,s=h.closest(o,t),u=s.mdist,l=s.mpos,c=(l+1)/a,f=.1/a;for(u+=1,e=n=(l-1)/a;n<c+f;n+=f)r=this.compute(n),(i=h.dist(t,r))<u&&(u=i,e=n);return(r=this.compute(e)).t=e,r.d=u,r},get:function(t){return this.compute(t)},point:function(t){return this.points[t]},compute:function(t){return this.ratios?h.computeWithRatios(t,this.points,this.ratios,this._3d):h.compute(t,this.points,this._3d,this.ratios)},raise:function(){for(var t,e,n=this.points,r=[n[0]],i=n.length,o=1;o<i;o++)t=n[o],e=n[o-1],r[o]={x:(i-o)/i*t.x+o/i*e.x,y:(i-o)/i*t.y+o/i*e.y};return r[i]=n[i-1],new m(r)},derivative:function(t){var e,n,r=1-t,i=0,o=this.dpoints[0];2===this.order&&(o=[o[0],o[1],f],e=r,n=t),3===this.order&&(e=r*r,n=r*t*2,i=t*t);var a={x:e*o[0].x+n*o[1].x+i*o[2].x,y:e*o[0].y+n*o[1].y+i*o[2].y};return this._3d&&(a.z=e*o[0].z+n*o[1].z+i*o[2].z),a},curvature:function(t){return h.curvature(t,this.points,this._3d)},inflections:function(){return h.inflections(this.points)},normal:function(t){return this._3d?this.__normal3(t):this.__normal2(t)},__normal2:function(t){var e=this.derivative(t),n=l(e.x*e.x+e.y*e.y);return{x:-e.y/n,y:e.x/n}},__normal3:function(t){var e=this.derivative(t),n=this.derivative(t+.01),r=l(e.x*e.x+e.y*e.y+e.z*e.z),i=l(n.x*n.x+n.y*n.y+n.z*n.z);e.x/=r,e.y/=r,e.z/=r,n.x/=i,n.y/=i,n.z/=i;var o={x:n.y*e.z-n.z*e.y,y:n.z*e.x-n.x*e.z,z:n.x*e.y-n.y*e.x},a=l(o.x*o.x+o.y*o.y+o.z*o.z);o.x/=a,o.y/=a,o.z/=a;var s=[o.x*o.x,o.x*o.y-o.z,o.x*o.z+o.y,o.x*o.y+o.z,o.y*o.y,o.y*o.z-o.x,o.x*o.z-o.y,o.y*o.z+o.x,o.z*o.z];return{x:s[0]*e.x+s[1]*e.y+s[2]*e.z,y:s[3]*e.x+s[4]*e.y+s[5]*e.z,z:s[6]*e.x+s[7]*e.y+s[8]*e.z}},hull:function(t){var e,n=this.points,r=[],i=[],o=0,a=0,s=0;for(i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],3===this.order&&(i[o++]=n[3]);n.length>1;){for(r=[],a=0,s=n.length-1;a<s;a++)e=h.lerp(t,n[a],n[a+1]),i[o++]=e,r.push(e);n=r}return i},split:function(t,e){if(0===t&&e)return this.split(e).left;if(1===e)return this.split(t).right;var n=this.hull(t),r={left:2===this.order?new m([n[0],n[3],n[5]]):new m([n[0],n[4],n[7],n[9]]),right:2===this.order?new m([n[5],n[4],n[2]]):new m([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=h.map(0,0,1,this._t1,this._t2),r.left._t2=h.map(t,0,1,this._t1,this._t2),r.right._t1=h.map(t,0,1,this._t1,this._t2),r.right._t2=h.map(1,0,1,this._t1,this._t2),e?(e=h.map(e,t,1,0,1),r.right.split(e).left):r},extrema:function(){var t,e,n=this.dims,r={},i=[];return n.forEach(function(n){e=function(t){return t[n]},t=this.dpoints[0].map(e),r[n]=h.droots(t),3===this.order&&(t=this.dpoints[1].map(e),r[n]=r[n].concat(h.droots(t))),r[n]=r[n].filter((function(t){return t>=0&&t<=1})),i=i.concat(r[n].sort(h.numberSort))}.bind(this)),i=i.sort(h.numberSort).filter((function(t,e){return i.indexOf(t)===e})),r.values=i,r},bbox:function(){var t=this.extrema(),e={};return this.dims.forEach(function(n){e[n]=h.getminmax(this,n,t[n])}.bind(this)),e},overlaps:function(t){var e=this.bbox(),n=t.bbox();return h.bboxoverlap(e,n)},offset:function(t,e){if(void 0!==e){var n=this.get(t),r=this.normal(t),i={c:n,n:r,x:n.x+r.x*e,y:n.y+r.y*e};return this._3d&&(i.z=n.z+r.z*e),i}if(this._linear){var o=this.normal(0),a=this.points.map((function(e){var n={x:e.x+t*o.x,y:e.y+t*o.y};return e.z&&r.z&&(n.z=e.z+t*o.z),n}));return[new m(a)]}return this.reduce().map((function(e){return e._linear?e.offset(t)[0]:e.scale(t)}))},simple:function(){if(3===this.order){var t=h.angle(this.points[0],this.points[3],this.points[1]),n=h.angle(this.points[0],this.points[3],this.points[2]);if(t>0&&n<0||t<0&&n>0)return!1}var r=this.normal(0),i=this.normal(1),o=r.x*i.x+r.y*i.y;return this._3d&&(o+=r.z*i.z),e(u(o))<c/3},reduce:function(){var t,n,r=0,i=0,o=[],a=[],s=this.extrema().values;for(-1===s.indexOf(0)&&(s=[0].concat(s)),-1===s.indexOf(1)&&s.push(1),r=s[0],t=1;t<s.length;t++)i=s[t],(n=this.split(r,i))._t1=r,n._t2=i,o.push(n),r=i;return o.forEach((function(t){for(r=0,i=0;i<=1;)for(i=r+.01;i<=1.01;i+=.01)if(!(n=t.split(r,i)).simple()){if(e(r-(i-=.01))<.01)return[];(n=t.split(r,i))._t1=h.map(r,0,1,t._t1,t._t2),n._t2=h.map(i,0,1,t._t1,t._t2),a.push(n),r=i;break}r<1&&((n=t.split(r,1))._t1=h.map(r,0,1,t._t1,t._t2),n._t2=t._t2,a.push(n))})),a},scale:function(t){var e=this.order,n=!1;if("function"==typeof t&&(n=t),n&&2===e)return this.raise().scale(n);var r=this.clockwise,i=n?n(0):t,o=n?n(1):t,a=[this.offset(0,10),this.offset(1,10)],s=h.lli4(a[0],a[0].c,a[1],a[1].c);if(!s)throw new Error("cannot scale this curve. Try reducing it first.");var u=this.points,c=[];return[0,1].forEach(function(t){var n=c[t*e]=h.copy(u[t*e]);n.x+=(t?o:i)*a[t].n.x,n.y+=(t?o:i)*a[t].n.y}.bind(this)),n?([0,1].forEach(function(i){if(2!==this.order||!i){var o=u[i+1],a={x:o.x-s.x,y:o.y-s.y},f=n?n((i+1)/e):t;n&&!r&&(f=-f);var h=l(a.x*a.x+a.y*a.y);a.x/=h,a.y/=h,c[i+1]={x:o.x+f*a.x,y:o.y+f*a.y}}}.bind(this)),new m(c)):([0,1].forEach(function(t){if(2!==this.order||!t){var n=c[t*e],r=this.derivative(t),i={x:n.x+r.x,y:n.y+r.y};c[t+1]=h.lli4(n,i,s,u[t+1])}}.bind(this)),new m(c))},outline:function(t,e,n,r){e=void 0===e?t:e;var i,o=this.reduce(),a=o.length,s=[],u=[],l=0,c=this.length(),f=void 0!==n&&void 0!==r;function m(t,e,n,r,i){return function(o){var a=r/n,s=(r+i)/n,u=e-t;return h.map(o,0,1,t+a*u,t+s*u)}}o.forEach((function(i){x=i.length(),f?(s.push(i.scale(m(t,n,c,l,x))),u.push(i.scale(m(-e,-r,c,l,x)))):(s.push(i.scale(t)),u.push(i.scale(-e))),l+=x})),u=u.map((function(t){return(i=t.points)[3]?t.points=[i[3],i[2],i[1],i[0]]:t.points=[i[2],i[1],i[0]],t})).reverse();var p=s[0].points[0],v=s[a-1].points[s[a-1].points.length-1],y=u[a-1].points[u[a-1].points.length-1],g=u[0].points[0],_=h.makeline(y,p),w=h.makeline(v,g),b=[_].concat(s).concat([w]).concat(u),x=b.length;return new d(b)},outlineshapes:function(t,e,n){e=e||t;for(var r=this.outline(t,e).curves,i=[],o=1,a=r.length;o<a/2;o++){var s=h.makeshape(r[o],r[a-o],n);s.startcap.virtual=o>1,s.endcap.virtual=o<a/2-1,i.push(s)}return i},intersects:function(t,e){return t?t.p1&&t.p2?this.lineIntersects(t):(t instanceof m&&(t=t.reduce()),this.curveintersects(this.reduce(),t,e)):this.selfintersects(e)},lineIntersects:function(t){var e=r(t.p1.x,t.p2.x),n=r(t.p1.y,t.p2.y),i=o(t.p1.x,t.p2.x),a=o(t.p1.y,t.p2.y),s=this;return h.roots(this.points,t).filter((function(t){var r=s.get(t);return h.between(r.x,e,i)&&h.between(r.y,n,a)}))},selfintersects:function(t){var e,n,r,i,o=this.reduce(),a=o.length-2,s=[];for(e=0;e<a;e++)r=o.slice(e,e+1),i=o.slice(e+2),n=this.curveintersects(r,i,t),s=s.concat(n);return s},curveintersects:function(t,e,n){var r=[];t.forEach((function(t){e.forEach((function(e){t.overlaps(e)&&r.push({left:t,right:e})}))}));var i=[];return r.forEach((function(t){var e=h.pairiteration(t.left,t.right,n);e.length>0&&(i=i.concat(e))})),i},arcs:function(t){return t=t||.5,this._iterate(t,[])},_error:function(t,n,r,i){var o=(i-r)/4,a=this.get(r+o),s=this.get(i-o),u=h.dist(t,n),l=h.dist(t,a),c=h.dist(t,s);return e(l-u)+e(c-u)},_iterate:function(t,e){var n,r=0,i=1;do{n=0,i=1;var o,u,l,c,f,d=this.get(r),m=!1,p=!1,v=i,y=1;do{if(p=m,c=l,v=(r+i)/2,o=this.get(v),u=this.get(i),(l=h.getccenter(d,o,u)).interval={start:r,end:i},m=this._error(l,d,r,i)<=t,(f=p&&!m)||(y=i),m){if(i>=1){if(l.interval.end=y=1,c=l,i>1){var g={x:l.x+l.r*a(l.e),y:l.y+l.r*s(l.e)};l.e+=h.angle({x:l.x,y:l.y},g,this.get(1))}break}i+=(i-r)/2}else i=v}while(!f&&n++<100);if(n>=100)break;c=c||l,e.push(c),r=y}while(i<1);return e}},t.exports=m}()},function(t,e,n){var r,i,o,a,s,u,l,c,f,h,d,m,p,v,y;r=Math.abs,i=Math.cos,o=Math.sin,a=Math.acos,s=Math.atan2,u=Math.sqrt,l=Math.pow,c=function(t){return t<0?-l(-t,1/3):l(t,1/3)},f=Math.PI,h=2*f,d=f/2,m=Number.MAX_SAFE_INTEGER||9007199254740991,p=Number.MIN_SAFE_INTEGER||-9007199254740991,v={x:0,y:0,z:0},y={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(t,e){var n=e(t),r=n.x*n.x+n.y*n.y;return void 0!==n.z&&(r+=n.z*n.z),u(r)},compute:function(t,e,n){if(0===t)return e[0];var r=e.length-1;if(1===t)return e[r];var i=e,o=1-t;if(0===r)return e[0];if(1===r)return h={x:o*i[0].x+t*i[1].x,y:o*i[0].y+t*i[1].y},n&&(h.z=o*i[0].z+t*i[1].z),h;if(r<4){var a,s,u,l=o*o,c=t*t,f=0;2===r?(i=[i[0],i[1],i[2],v],a=l,s=o*t*2,u=c):3===r&&(a=l*o,s=l*t*3,u=o*c*3,f=t*c);var h={x:a*i[0].x+s*i[1].x+u*i[2].x+f*i[3].x,y:a*i[0].y+s*i[1].y+u*i[2].y+f*i[3].y};return n&&(h.z=a*i[0].z+s*i[1].z+u*i[2].z+f*i[3].z),h}for(var d=JSON.parse(JSON.stringify(e));d.length>1;){for(var m=0;m<d.length-1;m++)d[m]={x:d[m].x+(d[m+1].x-d[m].x)*t,y:d[m].y+(d[m+1].y-d[m].y)*t},void 0!==d[m].z&&(d[m]=d[m].z+(d[m+1].z-d[m].z)*t);d.splice(d.length-1,1)}return d[0]},computeWithRatios:function(t,e,n,r){var i,o=1-t,a=n,s=e,u=a[0],l=a[1],c=a[2],f=a[3];return u*=o,l*=t,2===s.length?(i=u+l,{x:(u*s[0].x+l*s[1].x)/i,y:(u*s[0].y+l*s[1].y)/i,z:!!r&&(u*s[0].z+l*s[1].z)/i}):(u*=o,l*=2*o,c*=t*t,3===s.length?(i=u+l+c,{x:(u*s[0].x+l*s[1].x+c*s[2].x)/i,y:(u*s[0].y+l*s[1].y+c*s[2].y)/i,z:!!r&&(u*s[0].z+l*s[1].z+c*s[2].z)/i}):(u*=o,l*=1.5*o,c*=3*o,f*=t*t*t,4===s.length?(i=u+l+c+f,{x:(u*s[0].x+l*s[1].x+c*s[2].x+f*s[3].x)/i,y:(u*s[0].y+l*s[1].y+c*s[2].y+f*s[3].y)/i,z:!!r&&(u*s[0].z+l*s[1].z+c*s[2].z+f*s[3].z)/i}):void 0))},derive:function(t,e){for(var n=[],r=t,i=r.length,o=i-1;i>1;i--,o--){for(var a,s=[],u=0;u<o;u++)a={x:o*(r[u+1].x-r[u].x),y:o*(r[u+1].y-r[u].y)},e&&(a.z=o*(r[u+1].z-r[u].z)),s.push(a);n.push(s),r=s}return n},between:function(t,e,n){return e<=t&&t<=n||y.approximately(t,e)||y.approximately(t,n)},approximately:function(t,e,n){return r(t-e)<=(n||1e-6)},length:function(t){var e,n,r=0,i=y.Tvalues.length;for(e=0;e<i;e++)n=.5*y.Tvalues[e]+.5,r+=y.Cvalues[e]*y.arcfn(n,t);return.5*r},map:function(t,e,n,r,i){return r+(t-e)/(n-e)*(i-r)},lerp:function(t,e,n){var r={x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)};return e.z&&n.z&&(r.z=e.z+t*(n.z-e.z)),r},pointToString:function(t){var e=t.x+"/"+t.y;return void 0!==t.z&&(e+="/"+t.z),e},pointsToString:function(t){return"["+t.map(y.pointToString).join(", ")+"]"},copy:function(t){return JSON.parse(JSON.stringify(t))},angle:function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=n.x-t.x,a=n.y-t.y;return s(r*a-i*o,r*o+i*a)},round:function(t,e){var n=""+t,r=n.indexOf(".");return parseFloat(n.substring(0,r+1+e))},dist:function(t,e){var n=t.x-e.x,r=t.y-e.y;return u(n*n+r*r)},closest:function(t,e){var n,r,i=l(2,63);return t.forEach((function(t,o){(r=y.dist(e,t))<i&&(i=r,n=o)})),{mdist:i,mpos:n}},abcratio:function(t,e){if(2!==e&&3!==e)return!1;if(void 0===t)t=.5;else if(0===t||1===t)return t;var n=l(t,e)+l(1-t,e);return r((n-1)/n)},projectionratio:function(t,e){if(2!==e&&3!==e)return!1;if(void 0===t)t=.5;else if(0===t||1===t)return t;var n=l(1-t,e);return n/(l(t,e)+n)},lli8:function(t,e,n,r,i,o,a,s){var u=(t-n)*(o-s)-(e-r)*(i-a);return 0!=u&&{x:((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,y:((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u}},lli4:function(t,e,n,r){var i=t.x,o=t.y,a=e.x,s=e.y,u=n.x,l=n.y,c=r.x,f=r.y;return y.lli8(i,o,a,s,u,l,c,f)},lli:function(t,e){return y.lli4(t,t.c,e,e.c)},makeline:function(t,e){var r=n(1),i=t.x,o=t.y,a=e.x,s=e.y,u=(a-i)/3,l=(s-o)/3;return new r(i,o,i+u,o+l,i+2*u,o+2*l,a,s)},findbbox:function(t){var e=m,n=m,r=p,i=p;return t.forEach((function(t){var o=t.bbox();e>o.x.min&&(e=o.x.min),n>o.y.min&&(n=o.y.min),r<o.x.max&&(r=o.x.max),i<o.y.max&&(i=o.y.max)})),{x:{min:e,mid:(e+r)/2,max:r,size:r-e},y:{min:n,mid:(n+i)/2,max:i,size:i-n}}},shapeintersections:function(t,e,n,r,i){if(!y.bboxoverlap(e,r))return[];var o=[],a=[t.startcap,t.forward,t.back,t.endcap],s=[n.startcap,n.forward,n.back,n.endcap];return a.forEach((function(e){e.virtual||s.forEach((function(r){if(!r.virtual){var a=e.intersects(r,i);a.length>0&&(a.c1=e,a.c2=r,a.s1=t,a.s2=n,o.push(a))}}))})),o},makeshape:function(t,e,n){var r=e.points.length,i=t.points.length,o=y.makeline(e.points[r-1],t.points[0]),a=y.makeline(t.points[i-1],e.points[0]),s={startcap:o,forward:t,back:e,endcap:a,bbox:y.findbbox([o,t,e,a])},u=y;return s.intersections=function(t){return u.shapeintersections(s,s.bbox,t,t.bbox,n)},s},getminmax:function(t,e,n){if(!n)return{min:0,max:0};var r,i,o=m,a=p;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(var s=0,u=n.length;s<u;s++)r=n[s],(i=t.get(r))[e]<o&&(o=i[e]),i[e]>a&&(a=i[e]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(t,e){var n=e.p1.x,r=e.p1.y,a=-s(e.p2.y-r,e.p2.x-n);return t.map((function(t){return{x:(t.x-n)*i(a)-(t.y-r)*o(a),y:(t.x-n)*o(a)+(t.y-r)*i(a)}}))},roots:function(t,e){e=e||{p1:{x:0,y:0},p2:{x:1,y:0}};var n=t.length-1,r=y.align(t,e),o=function(t){return 0<=t&&t<=1};if(2===n){if(0!==(p=(v=r[0].y)-2*(g=r[1].y)+(_=r[2].y))){var s=-u(g*g-v*_),l=-v+g;return[-(s+l)/p,-(-s+l)/p].filter(o)}return g!==_&&0===p?[(2*g-_)/(2*g-2*_)].filter(o):[]}var f=r[0].y,d=r[1].y,m=r[2].y,p=3*d-f-3*m+r[3].y,v=3*f-6*d+3*m,g=-3*f+3*d,_=f;if(y.approximately(p,0)){if(y.approximately(v,0))return y.approximately(g,0)?[]:[-_/g].filter(o);var w=2*v;return[((b=u(g*g-4*v*_))-g)/w,(-g-b)/w].filter(o)}var b,x,E=(r=(3*(g/=p)-(v/=p)*v)/3)/3,S=(b=(2*v*v*v-9*v*g+27*(_/=p))/27)/2,k=S*S+E*E*E;if(k<0){var A=-r/3,O=u(A*A*A),T=-b/(2*O),C=a(T<-1?-1:T>1?1:T),P=2*c(O);return[P*i(C/3)-v/3,P*i((C+h)/3)-v/3,P*i((C+2*h)/3)-v/3].filter(o)}if(0===k)return[2*(x=S<0?c(-S):-c(S))-v/3,-x-v/3].filter(o);var I=u(k);return[(x=c(-S+I))-c(S+I)-v/3].filter(o)},droots:function(t){if(3===t.length){var e=t[0],n=t[1],r=t[2],i=e-2*n+r;if(0!==i){var o=-u(n*n-e*r),a=-e+n;return[-(o+a)/i,-(-o+a)/i]}return n!==r&&0===i?[(2*n-r)/(2*(n-r))]:[]}if(2===t.length)return(e=t[0])!==(n=t[1])?[e/(e-n)]:[]},curvature:function(t,e,n,i){var o,a,s,c,f,h,d=y.derive(e),m=d[0],p=d[1],v=y.compute(t,m),g=y.compute(t,p),_=v.x*v.x+v.y*v.y;if(n?(o=u(l(v.y*g.z-g.y*v.z,2)+l(v.z*g.x-g.z*v.x,2)+l(v.x*g.y-g.x*v.y,2)),a=l(_+v.z*v.z,1.5)):(o=v.x*g.y-v.y*g.x,a=l(_,1.5)),0===o||0===a)return{k:0,r:0};if(f=o/a,h=a/o,!i){var w=y.curvature(t-.001,e,n,!0).k,b=y.curvature(t+.001,e,n,!0).k;c=(b-f+(f-w))/2,s=(r(b-f)+r(f-w))/2}return{k:f,r:h,dk:c,adk:s}},inflections:function(t){if(t.length<4)return[];var e=y.align(t,{p1:t[0],p2:t.slice(-1)[0]}),n=e[2].x*e[1].y,r=e[3].x*e[1].y,i=e[1].x*e[2].y,o=18*(-3*n+2*r+3*i-e[3].x*e[2].y),a=18*(3*n-r-3*i),s=18*(i-n);if(y.approximately(o,0)){if(!y.approximately(a,0)){var u=-s/a;if(0<=u&&u<=1)return[u]}return[]}var l=a*a-4*o*s,c=Math.sqrt(l),f=2*o;return y.approximately(f,0)?[]:[(c-a)/f,-(a+c)/f].filter((function(t){return 0<=t&&t<=1}))},bboxoverlap:function(t,e){var n,i,o,a,s,u=["x","y"],l=u.length;for(n=0;n<l;n++)if(o=t[i=u[n]].mid,a=e[i].mid,s=(t[i].size+e[i].size)/2,r(o-a)>=s)return!1;return!0},expandbox:function(t,e){e.x.min<t.x.min&&(t.x.min=e.x.min),e.y.min<t.y.min&&(t.y.min=e.y.min),e.z&&e.z.min<t.z.min&&(t.z.min=e.z.min),e.x.max>t.x.max&&(t.x.max=e.x.max),e.y.max>t.y.max&&(t.y.max=e.y.max),e.z&&e.z.max>t.z.max&&(t.z.max=e.z.max),t.x.mid=(t.x.min+t.x.max)/2,t.y.mid=(t.y.min+t.y.max)/2,t.z&&(t.z.mid=(t.z.min+t.z.max)/2),t.x.size=t.x.max-t.x.min,t.y.size=t.y.max-t.y.min,t.z&&(t.z.size=t.z.max-t.z.min)},pairiteration:function(t,e,n){var r=t.bbox(),i=e.bbox(),o=1e5,a=n||.5;if(r.x.size+r.y.size<a&&i.x.size+i.y.size<a)return[(o*(t._t1+t._t2)/2|0)/o+"/"+(o*(e._t1+e._t2)/2|0)/o];var s=t.split(.5),u=e.split(.5),l=[{left:s.left,right:u.left},{left:s.left,right:u.right},{left:s.right,right:u.right},{left:s.right,right:u.left}];l=l.filter((function(t){return y.bboxoverlap(t.left.bbox(),t.right.bbox())}));var c=[];return 0===l.length?c:(l.forEach((function(t){c=c.concat(y.pairiteration(t.left,t.right,a))})),c=c.filter((function(t,e){return c.indexOf(t)===e})))},getccenter:function(t,e,n){var r,a=e.x-t.x,u=e.y-t.y,l=n.x-e.x,c=n.y-e.y,f=a*i(d)-u*o(d),m=a*o(d)+u*i(d),p=l*i(d)-c*o(d),v=l*o(d)+c*i(d),g=(t.x+e.x)/2,_=(t.y+e.y)/2,w=(e.x+n.x)/2,b=(e.y+n.y)/2,x=g+f,E=_+m,S=w+p,k=b+v,A=y.lli8(g,_,x,E,w,b,S,k),O=y.dist(A,t),T=s(t.y-A.y,t.x-A.x),C=s(e.y-A.y,e.x-A.x),P=s(n.y-A.y,n.x-A.x);return T<P?((T>C||C>P)&&(T+=h),T>P&&(r=P,P=T,T=r)):P<C&&C<T?(r=P,P=T,T=r):P+=h,A.s=T,A.e=P,A.r=O,A},numberSort:function(t,e){return t-e}},t.exports=y},function(t,e,n){var r,i;r=n(2),(i=function(t){this.curves=[],this._3d=!1,t&&(this.curves=t,this._3d=this.curves[0]._3d)}).prototype={valueOf:function(){return this.toString()},toString:function(){return"["+this.curves.map((function(t){return r.pointsToString(t.points)})).join(", ")+"]"},addCurve:function(t){this.curves.push(t),this._3d=this._3d||t._3d},length:function(){return this.curves.map((function(t){return t.length()})).reduce((function(t,e){return t+e}))},curve:function(t){return this.curves[t]},bbox:function(){for(var t=this.curves,e=t[0].bbox(),n=1;n<t.length;n++)r.expandbox(e,t[n].bbox());return e},offset:function(t){var e=[];return this.curves.forEach((function(n){e=e.concat(n.offset(t))})),new i(e)}},t.exports=i},function(t,e,n){var r=n(5),i={x:!1,y:!1};function o(t,e,n){if("Z"!==e){if("M"!==e){var r=[!1,i.x,i.y].concat(n),o=new(t.bind.apply(t,r)),a=n.slice(-2);return i={x:a[0],y:a[1]},o}i={x:n[0],y:n[1]}}}t.exports=function(t,e){for(var n,i,a=r(e).split(" "),s=new RegExp("[MLCQZ]",""),u=[],l={C:6,Q:4,L:2,M:2};a.length;)n=a.splice(0,1)[0],s.test(n)&&(i=o(t,n,a.splice(0,l[n]).map(parseFloat)))&&u.push(i);return new t.PolyBezier(u)}},function(t,e){t.exports=function(t){var e,n,r,i,o,a,s=(t=t.replace(/,/g," ").replace(/-/g," - ").replace(/-\s+/g,"-").replace(/([a-zA-Z])/g," $1 ")).replace(/([a-zA-Z])\s?/g,"|$1").split("|"),u=s.length,l=[],c=0,f=0,h=0,d=0,m=0,p=0,v=0,y=0,g="";for(e=1;e<u;e++)if(i=(r=(n=s[e]).substring(0,1)).toLowerCase(),o=(l=(l=n.replace(r,"").trim().split(" ")).filter((function(t){return""!==t})).map(parseFloat)).length,"m"===i){if(g+="M ","m"===r?(h+=l[0],d+=l[1]):(h=l[0],d=l[1]),c=h,f=d,g+=h+" "+d+" ",o>2)for(a=0;a<o;a+=2)"m"===r?(h+=l[a],d+=l[a+1]):(h=l[a],d=l[a+1]),g+=["L",h,d,""].join(" ")}else if("l"===i)for(a=0;a<o;a+=2)"l"===r?(h+=l[a],d+=l[a+1]):(h=l[a],d=l[a+1]),g+=["L",h,d,""].join(" ");else if("h"===i)for(a=0;a<o;a++)"h"===r?h+=l[a]:h=l[a],g+=["L",h,d,""].join(" ");else if("v"===i)for(a=0;a<o;a++)"v"===r?d+=l[a]:d=l[a],g+=["L",h,d,""].join(" ");else if("q"===i)for(a=0;a<o;a+=4)"q"===r?(m=h+l[a],p=d+l[a+1],h+=l[a+2],d+=l[a+3]):(m=l[a],p=l[a+1],h=l[a+2],d=l[a+3]),g+=["Q",m,p,h,d,""].join(" ");else if("t"===i)for(a=0;a<o;a+=2)m=h+(h-m),p=d+(d-p),"t"===r?(h+=l[a],d+=l[a+1]):(h=l[a],d=l[a+1]),g+=["Q",m,p,h,d,""].join(" ");else if("c"===i)for(a=0;a<o;a+=6)"c"===r?(m=h+l[a],p=d+l[a+1],v=h+l[a+2],y=d+l[a+3],h+=l[a+4],d+=l[a+5]):(m=l[a],p=l[a+1],v=l[a+2],y=l[a+3],h=l[a+4],d=l[a+5]),g+=["C",m,p,v,y,h,d,""].join(" ");else if("s"===i)for(a=0;a<o;a+=4)m=h+(h-v),p=d+(d-y),"s"===r?(v=h+l[a],y=d+l[a+1],h+=l[a+2],d+=l[a+3]):(v=l[a],y=l[a+1],h=l[a+2],d=l[a+3]),g+=["C",m,p,v,y,h,d,""].join(" ");else"z"===i&&(g+="Z ",h=c,d=f);return g.trim()}}])),Nr="#define GLSLIFY 1\nattribute vec4 position;attribute vec2 texcoord;attribute vec3 pointA;attribute vec3 pointB;attribute vec3 startColor;attribute vec3 endColor;attribute vec2 width;attribute float inst;attribute float shouldDraw;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;uniform vec2 u_resolution;uniform float u_segments;varying vec3 v_color;varying float v_alpha;varying float v_draw;float when_lt(float x,float y){return max(sign(y-x),0.0);}void main(){float rel_inst=inst+position.z;float width=mix(width.x,width.y,rel_inst);vec4 clip0=u_worldViewProjection*u_model*vec4(pointA,1.0);vec4 clip1=u_worldViewProjection*u_model*vec4(pointB,1.0);vec2 screen0=u_resolution*(0.5*clip0.xy/clip0.w+0.5);vec2 screen1=u_resolution*(0.5*clip1.xy/clip1.w+0.5);vec2 xBasis=normalize(screen1-screen0);vec2 yBasis=vec2(-xBasis.y,xBasis.x);vec2 pt0=screen0+width*(position.x*xBasis+position.y*yBasis);vec2 pt1=screen1+width*(position.x*xBasis+position.y*yBasis);vec2 pt=mix(pt0,pt1,position.z);vec4 clip=mix(clip0,clip1,position.z);gl_Position=vec4(clip.w*(2.0*pt/u_resolution-1.0),clip.z,clip.w)*when_lt(inst,u_segments);gl_PointSize=16.0;v_alpha=rel_inst/u_segments;v_color=mix(startColor,endColor,rel_inst/u_segments);v_draw=shouldDraw;}",li="precision mediump float;\n#define GLSLIFY 1\nuniform float u_time;varying vec3 v_color;varying float v_alpha;varying float v_draw;void main(){if(v_alpha>v_draw){discard;}gl_FragColor=vec4(v_color,1.0);}",Br=(function(t){s(n,Er);var e=v(n);function n(t){var r,a;o(this,n),i(d(a=e.call(this,t)),"numInstances",1e4),i(d(a),"init",(function(t){a.geometry.init(t),a._hasGeometry=!0,a.material.init(t),a.material.texturesLoaded=!0,a.vertexArrayInfo=nn(t,a.material.programInfo,a.geometry.bufferInfo)})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix})),i(d(a),"draw",(function(t){a.isReady&&(t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.vertexArrayInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElementsInstanced(t.TRIANGLE_FAN,a.vertexArrayInfo.numElements,t.UNSIGNED_SHORT,0,3*a.segments-1),t.bindVertexArray(null))})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelectionCB",(function(t){return t})),i(d(a),"onSelection",(function(t,e){var n=a.getNearest(t,e);return a.onSelectionCB(n)})),t&&void 0!==t.numInstances&&(a.numInstances=t.numInstances);var s={vertex:Nr,fragment:li};a.material=new Pn(s),a.material.uniforms={},a.geometry=new er;var l=[0,-.5,0,0,-.5,1,0,.5,1,0,-.5,0,0,.5,1,0,.5,0],c=Array.from(Array(101).keys());c.forEach((function(t){c.push(t)})),c.forEach((function(t){c.push(t)}));for(var f=Array.from(Array(3).keys()),h=0;h<15;h+=1){var m=Math.PI/2+(h+0)*Math.PI/15,v=Math.PI/2+(h+1)*Math.PI/15;l.push.apply(l,[0,0,0]),l.push.apply(l,[.5*Math.cos(m),.5*Math.sin(m),0]),l.push.apply(l,[.5*Math.cos(v),.5*Math.sin(v),0])}for(var g=0;g<15;g+=1){var _=3*Math.PI/2+(g+0)*Math.PI/15,w=3*Math.PI/2+(g+1)*Math.PI/15;l.push.apply(l,[0,0,1]),l.push.apply(l,[.5*Math.cos(_),.5*Math.sin(_),1]),l.push.apply(l,[.5*Math.cos(w),.5*Math.sin(w),1])}var b=[].concat(p(ar.worldFromLatLon(41,-111,.001)),p(ar.worldFromLatLon(20,-50,1)),p(ar.worldFromLatLon(0,0,.001)));a.segments=100;var x=new Lr(b).getLUT(a.segments+1),E=[];return x.forEach((function(t){E.push.apply(E,p(Object.values(t)))})),new Lr([-1,0,0,-2,0,-2,0,0,-1]).getLUT(a.segments+1).forEach((function(t){E.push.apply(E,p(Object.values(t)))})),new Lr([-1,1,-1,-2,0,-2,0,-1,-1]).getLUT(a.segments+1).forEach((function(t){E.push.apply(E,p(Object.values(t)))})),a.geometry.vertices.position={numComponents:3,data:l,divisor:0},a.geometry.vertices.pointA={numComponents:3,data:E,divisor:1,offset:0*Float32Array.BYTES_PER_ELEMENT},a.geometry.vertices.pointB={numComponents:3,data:E,divisor:1,offset:3*Float32Array.BYTES_PER_ELEMENT},a.geometry.vertices.inst={numComponents:1,data:c,divisor:1},a.geometry.vertices.arc={numComponents:1,data:f,divisor:101},a.geometry.vertices.indices={numComponents:1,data:Array.from(Array(96).keys()),divisor:0},a}}(),function(t){s(n,Er);var e=v(n);function n(t){var r,a;o(this,n),i(d(a=e.call(this,t)),"numInstances",1e4),i(d(a),"segments",30),i(d(a),"capResolution",6),i(d(a),"_arcCount",0),i(d(a),"_tweens",[]),i(d(a),"init",(function(t){a.geometry.init(t),a._hasGeometry=!0,a.material.init(t),a.material.texturesLoaded=!0,a.vertexArrayInfo=nn(t,a.material.programInfo,a.geometry.bufferInfo)})),i(d(a),"createRandomArcs",(function(t){for(var e=0;e<t;e+=1){var n={from:[180*Math.random()-90,360*Math.random()-180],to:[180*Math.random()-90,360*Math.random()-180]};a.addArc(n)}})),i(d(a),"addArc",(function(t,e,n){var r=[],i={from:t.from,to:t.to,normalFactor:1,alt:.5,startColor:"#ff0000",endColor:"#00ff00",startWidth:4,endWidth:4,shouldDraw:1,arcNumber:a._arcCount};void 0!==a.transform&&(i=a.transform(t,i)),r.push.apply(r,p(a._createArcFrom(i)));var o=Array.from(Array(1).keys()),s=a._createInstArray(1),u=ar.hexToRGB(i.startColor),l=ar.hexToRGB(i.endColor),c=[i.startWidth,i.endWidth];if(void 0!==e){i.shouldDraw=0;var f=a._arcCount,h=new sr(0,1,e,{onUpdate:function(t){a.geometry.updateGeometry({shouldDraw:{data:[t]}},f)},onComplete:function(){n&&n()}});a._tweens.push(h)}var d=[i.shouldDraw],m={pointA:{data:new Float32Array(r)},pointB:{data:r},inst:{data:s},arc:{data:o},startColor:{data:u},endColor:{data:l},width:{data:c},shouldDraw:{data:d}};a.geometry.updateGeometry(m,a._arcCount),a._arcCount+=1})),i(d(a),"updateArc",(function(t,e){var n=[],r={from:t.from,to:t.to,normalFactor:1,alt:.5,startColor:"#ff0000",endColor:"#00ff00",startWidth:4,endWidth:4,shouldDraw:1,arcNumber:a._arcCount};r=a.transform(t,r),n.push.apply(n,p(a._createArcFrom(r)));var i=Array.from(Array(1).keys()),o=a._createInstArray(1),s=ar.hexToRGB(r.startColor),u=ar.hexToRGB(r.endColor),l=[r.startWidth,r.endWidth],c=[r.shouldDraw],f={pointA:{data:new Float32Array(n)},pointB:{data:n},inst:{data:o},arc:{data:i},startColor:{data:s},endColor:{data:u},width:{data:l},shouldDraw:{data:c}};a.geometry.updateGeometry(f,e)})),i(d(a),"_createArcFrom",(function(t){var e=a._computeControlPoints(t),n=new Lr(e.cp0),r=new Lr(e.cp1),i=n.getLUT(a._pointsPerArcHalf),o=r.getLUT(a._pointsPerArcHalf),s=[];i.reverse().forEach((function(t){s.push(t)})),o.forEach((function(t){s.push(t)})),s.splice(a._pointsPerArcHalf,1);var u=[];return s.forEach((function(t){u.push.apply(u,p(Object.values(t)))})),u})),i(d(a),"_computeControlPoints",(function(t){var e=ar.worldFromLatLon(t.from[0],t.from[1],.005),n=ar.worldFromLatLon(t.to[0],t.to[1],.005),r=yn();Sn(r,e,n,.5);var i=ar.latLonFromWorld(r),o=ar.worldFromLatLon(i.lat,i.lon,t.alt),a=yn();_n(a,e,r),wn(a,a,t.normalFactor);var s=yn();bn(s,o,a);var u=yn();_n(u,o,a);var l=[];l.push.apply(l,p(o)),l.push.apply(l,p(s)),l.push.apply(l,p(e));var c=[];return c.push.apply(c,p(o)),c.push.apply(c,p(u)),c.push.apply(c,p(n)),{cp0:l,cp1:c}})),i(d(a),"_createInstArray",(function(t){for(var e=Array.from(Array(a.segments+1).keys()),n=[],r=0;r<t;r+=1)e.forEach((function(t){n.push(t)}));return n})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.material.uniforms.u_time=o,a.geometry.isDirty&&a.geometry.updateBuffers(t)})),i(d(a),"draw",(function(t){!a.isReady||a._arcCount<=0||(t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.vertexArrayInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElementsInstanced(t.TRIANGLE_FAN,a.vertexArrayInfo.numElements,t.UNSIGNED_SHORT,0,(a.segments+1)*a._arcCount),t.bindVertexArray(null))})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelectionCB",(function(t){return t})),i(d(a),"onSelection",(function(t,e){var n=a.getNearest(t,e);return a.onSelectionCB(n)})),t&&(void 0!==t.numInstances&&(a.numInstances=t.numInstances),void 0!==t.segments&&(a.segments=t.segments),void 0!==t.transform&&(a.transform=t.transform)),a._pointsPerArcHalf=a.segments/2+1;var s={vertex:Nr,fragment:li};a.material=new Pn(s),a.material.uniforms={u_segments:a.segments},a.geometry=new er;for(var l=[0,-.5,0,0,-.5,1,0,.5,1,0,-.5,0,0,.5,1,0,.5,0],c=0;c<a.capResolution;c+=1){var f=Math.PI/2+(c+0)*Math.PI/a.capResolution,h=Math.PI/2+(c+1)*Math.PI/a.capResolution;l.push.apply(l,[0,0,0]),l.push.apply(l,[.5*Math.cos(f),.5*Math.sin(f),0]),l.push.apply(l,[.5*Math.cos(h),.5*Math.sin(h),0])}for(var m=0;m<a.capResolution;m+=1){var v=3*Math.PI/2+(m+0)*Math.PI/a.capResolution,g=3*Math.PI/2+(m+1)*Math.PI/a.capResolution;l.push.apply(l,[0,0,1]),l.push.apply(l,[.5*Math.cos(v),.5*Math.sin(v),1]),l.push.apply(l,[.5*Math.cos(g),.5*Math.sin(g),1])}var _=Array.from(Array(2*a._pointsPerArcHalf*a.numInstances)).fill(0);return a.geometry.vertices.position={numComponents:3,data:l,divisor:0},a.geometry.vertices.pointA={numComponents:3,data:_,divisor:1,offset:0*Float32Array.BYTES_PER_ELEMENT,perInstance:3*(a.segments+1)},a.geometry.vertices.pointB={numComponents:3,data:_,divisor:1,offset:3*Float32Array.BYTES_PER_ELEMENT,perInstance:3*(a.segments+1)},a.geometry.vertices.inst={numComponents:1,data:[],divisor:1,perInstance:a.segments+1},a.geometry.vertices.arc={numComponents:1,data:[],divisor:a.segments,perInstance:1},a.geometry.vertices.startColor={numComponents:3,data:[],divisor:a.segments+1,perInstance:3,drawType:"DYNAMIC_DRAW"},a.geometry.vertices.endColor={numComponents:3,data:[],divisor:a.segments+1,perInstance:3,drawType:"DYNAMIC_DRAW"},a.geometry.vertices.width={numComponents:2,data:[],divisor:a.segments+1,perInstance:2,drawType:"DYNAMIC_DRAW"},a.geometry.vertices.shouldDraw={numComponents:1,data:[],divisor:a.segments+1,perInstance:1,drawType:"DYNAMIC_DRAW"},a.geometry.vertices.indices={numComponents:1,data:Array.from(Array(6+3*a.capResolution*2).keys()),divisor:0},a}}(),{vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec3 normal;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;varying vec2 vTexture;void main(){vec4 pos=u_worldViewProjection*u_model*position;vTexture=texcoord;gl_Position=pos;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D uTexture;varying vec2 vTexture;void main(){vec4 textureColor=texture2D(uTexture,vTexture);gl_FragColor=vec4(textureColor.rgb,1.0);}"}),Vr={},zr=(function(t){s(n,br);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"init",(function(t,e){a.geometry=new er,a.geometry.vertices=Jt.createSphereVertices(50,128,128),a.geometry.init(t);var n={surface:{src:a.textureSrc.surface,minMag:t.NEAREST}};a.material.init(t),a.material.loadTextures(t,n,(function(){a.material.uniforms.uTexture=a.material.textures.surface,e&&e()})),a.material.uniforms.uModelMatrix=a.modelMatrix})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelection",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix})),i(d(a),"draw",(function(t){a.isReady&&a.shouldDraw&&(t.useProgram(a.material.programInfo.program),t.cullFace(t.FRONT),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.TRIANGLES,a.geometry.bufferInfo.numElements,t.UNSIGNED_SHORT,0),t.cullFace(t.BACK))})),a.material=new Pn(Br),a.material.uniforms=Vr,a.textureSrc={surface:t},a}}(),{vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec3 normal;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;varying float vAlpha;varying vec2 vTexture;void main(){vec4 pos=u_worldViewProjection*u_model*position;vec4 transformedCamera=vec4(-0.5,1.0,-1.0,1.0)*u_worldViewProjection;vAlpha=pow((1.0+(dot(normal,normalize(transformedCamera.xyz))))/2.0,1.0);vTexture=texcoord;gl_Position=pos;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D uTexture;uniform vec2 u_offset;varying float vAlpha;varying vec2 vTexture;void main(){vec4 textureColor=texture2D(uTexture,vec2(vTexture.x-0.25+u_offset.x,vTexture.y+u_offset.y));float alpha=vAlpha+(1.0-vAlpha)*0.05;alpha*=0.9;gl_FragColor=vec4(textureColor.rgb,textureColor.r);}"}),qr={u_offset:[0,0]},Ur=(function(t){s(n,br);var e=v(n);function n(t){var r,a;return o(this,n),i(d(a=e.call(this)),"material",null),i(d(a),"movementSpeed",[7,0]),i(d(a),"init",(function(t,e){a.geometry=new er("sphere"),a.geometry.init(t);var n={surface:{src:a.textureSrc.surface,minMag:t.LINEAR}};a.material.init(t),a.material.loadTextures(t,n,(function(){a.material.uniforms.uTexture=a.material.textures.surface,e&&e()})),a.material.uniforms.uModelMatrix=a.modelMatrix,a.scale=[1.04,1.04,1.04]})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"rayCastFrom",(function(){return!1})),i(d(a),"hitTest",(function(){return!1})),i(d(a),"onSelection",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.material.uniforms.u_offset=[o*a.movementSpeed[0]/1e3,o*a.movementSpeed[1]/1e3]})),i(d(a),"draw",(function(t){a.isReady&&a.shouldDraw&&(t.useProgram(a.material.programInfo.program),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawElements(t.TRIANGLES,a.geometry.bufferInfo.numElements,t.UNSIGNED_SHORT,0))})),a.material=new Pn(zr),a.material.uniforms=qr,a.textureSrc={surface:t},a}}(),{vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute vec3 normal;attribute vec2 texcoord;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;varying vec2 vTexture;varying float vAlpha;void main(){vec4 pos=u_worldViewProjection*u_model*position;gl_PointSize=10.0;vec3 transformedNormal=(u_worldViewProjection*u_model*vec4(normal,1.0)).xyz;vec4 transformedCamera=vec4(1.0,1.0,-1.0,1.0)*u_worldViewProjection;vAlpha=pow(dot(position.xyz,normalize(u_cameraPos)),0.2);vTexture=texcoord.xy;gl_Position=pos;}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform sampler2D u_surface;varying vec2 vTexture;varying float vAlpha;void main(){vec3 surfaceColor=texture2D(u_surface,vec2(vTexture.x,1.0-vTexture.y)).rgb;float alpha=clamp(vAlpha,0.1,1.0);vec3 color=surfaceColor*alpha;gl_FragColor=vec4(color,1.0);}"}),$r={},Gr=(function(t){s(n,Zn);var e=v(n);function n(t,r){var a,s;o(this,n),i(d(s=e.call(this)),"material",null),i(d(s),"lookup",null),i(d(s),"currentSelection",-1),i(d(s),"previousSelection",-1),i(d(s),"inAnimation",null),i(d(s),"outAnimation",null),i(d(s),"selection0",236),i(d(s),"selection1",144),i(d(s),"current",236),i(d(s),"dataTexture",void 0),i(d(s),"dataTextureSize",16),i(d(s),"updateCMDs",[]),i(d(s),"highlightAnimationProps",{start:0,stop:1,duration:1e3,onUpdate:function(t){s.material.uniforms.u_animateIn=t}}),i(d(s),"init",(function(t,e){s.geometry.init(t);var n={surface:{src:s.textureSrc.surface,minMag:t.LINEAR}};s.material.init(t),s.material.uniforms.uModelMatrix=s.modelMatrix,s.material.loadTextures(t,n,(function(){s.material.uniforms.u_surface=s.material.textures.surface,e&&e()}))})),i(d(s),"getValueForId",(function(t){return s.lookup.getFromId(t)})),i(d(s),"getValueForCode",(function(t){return s.lookup.getFromCode(t)})),i(d(s),"getValueForName",(function(t){return s.lookup.getFromName(t)})),i(d(s),"createCollisionGeo",(function(){s.collisionGeometry&&s.collisionGeometry instanceof Kn||(s.collisionGeometry=Yn.create_collision_geometry(s.geometry.vertices.position.data,s.geometry.vertices.texcoord.data,s.geometry.vertices.indices.data))})),i(d(s),"rayCastFrom",(function(t){return s.collisionGeometry.raycast(t.origin,t.direction)})),i(d(s),"hitTest",(function(t){return s.collisionGeometry.hitTest(t.origin,t.direction)})),i(d(s),"onSelectionCB",(function(){})),i(d(s),"onSelection",(function(){})),i(d(s),"onHover",(function(){})),i(d(s),"update",(function(t,e,r){y((a=d(s),u(n.prototype)),"update",a).call(a,e,r),s.material.uniforms.u_model=s.modelMatrix,s.updateCMDs.forEach((function(e){e(t)})),s.updateCMDs=[]})),i(d(s),"draw",(function(t){s.isReady&&s.shouldDraw&&(t.useProgram(s.material.programInfo.program),en(t,s.material.programInfo,s.geometry.bufferInfo),tn(s.material.programInfo,s.material.uniforms),t.drawElements(t.TRIANGLES,s.geometry.bufferInfo.numElements,t.UNSIGNED_INT,0))})),i(d(s),"setCountryHover",(function(){})),i(d(s),"setHighlightId",(function(t){s.previousSelection=s.currentSelection,s.currentSelection=t;var e=s.inAnimation?s.inAnimation.currentValue():1,n=300*e;s.animateIn(s.currentSelection,500),s.animateOut(s.previousSelection,n,e)})),i(d(s),"animateIn",(function(t,e,n){s.material.uniforms.u_idAnimateIn=t,s.inAnimation&&s.inAnimation.stop(),s.material.uniforms.u_animateIn=0,s.inAnimation=new sr(s.highlightAnimationProps.start,s.highlightAnimationProps.stop,s.highlightAnimationProps.duration,{onUpdate:s.highlightAnimationProps.onUpdate,onComplete:function(){n&&n()}})})),i(d(s),"animateOut",(function(t,e,n,r){s.material.uniforms.u_idAnimateOut=t,s.outAnimation&&s.outAnimation.stop(),s.material.uniforms.u_animateOut=n,s.outAnimation=new sr(n,0,e,{onUpdate:function(t){s.material.uniforms.u_animateOut=t},onComplete:function(){r&&r()}})})),i(d(s),"addDataset",(function(t){s.lookup=new or(t,s.textureSrc.id)})),i(d(s),"updateIdState",(function(){})),s.textureSrc={surface:t.surface},s.material=new Pn(Ur),s.material.uniforms=$r,s.geometry=new er;var l=0,c=new Float32Array(r),f=new Int32Array(r),h=c.subarray(l,l+288e3);l+=288e3;var p=c.subarray(l,l+288e3);l+=288e3;var m=c.subarray(l,l+288e3);l+=288e3;var v=f.subarray(l,l+96e3);return s.geometry.vertices.position={numComponents:3,data:h},s.geometry.vertices.normal={numComponents:3,data:p},s.geometry.vertices.texcoord={numComponents:3,data:m},s.geometry.vertices.indices={numComponents:3,data:v},s}}(),{vertex:"#define GLSLIFY 1\nattribute vec3 position;attribute vec2 texture;attribute vec3 tangentU;attribute vec3 tangentV;attribute vec2 textureG;attribute float random;uniform mat4 u_model;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform vec3 u_cameraPos;uniform float uPointSize;uniform float uRandomPointSizeDelta;uniform float uRandomPointSizeRatio;uniform float uMinPointAlpha;uniform float uMinPointSize;uniform float u_time;uniform float u_speed;uniform vec2 uOffset;uniform vec3 uRippleCenter;uniform float uRippleProgress;uniform float uRippleWidth;uniform float uRippleHeight;varying vec2 vTexture;varying vec4 vColor;varying float vShine;varying vec2 vTextureG;varying float vTime;varying float vAlpha;mat4 rotationMatrix(vec3 axis,float angle){axis=normalize(axis);float s=sin(angle);float c=cos(angle);float oc=1.0-c;return mat4(oc*axis.x*axis.x+c,oc*axis.x*axis.y-axis.z*s,oc*axis.z*axis.x+axis.y*s,0.0,oc*axis.x*axis.y+axis.z*s,oc*axis.y*axis.y+c,oc*axis.y*axis.z-axis.x*s,0.0,oc*axis.z*axis.x-axis.y*s,oc*axis.y*axis.z+axis.x*s,oc*axis.z*axis.z+c,0.0,0.0,0.0,0.0,1.0);}void main(){vec4 pos=vec4(position,1.0);gl_PointSize=10.0;mat4 rot1=rotationMatrix(tangentU,(texture.x*2.0)-1.0);vec4 pos1=rot1*pos;mat4 rot2=rotationMatrix(tangentV,((texture.y*2.0)-1.0));vec4 pos2=rot2*pos;float rotSizeDelta=max((dot(normalize(u_cameraPos),position)+1.0)/2.0,uMinPointSize);float randomSize=uRandomPointSizeDelta*random*step(random,1.0-uRandomPointSizeRatio);pos.xyz+=pos1.xyz*(uPointSize+randomSize);pos.xyz+=pos2.xyz*(uPointSize+randomSize);vec3 rippleCenter=vec3(0.0,0.0,1.0);float d=1.0-((dot(pos.xyz,uRippleCenter)+1.0)/2.0);float q=smoothstep(uRippleProgress-uRippleWidth,uRippleProgress,d);q-=smoothstep(uRippleProgress,uRippleProgress+uRippleWidth,d);float t=1.0+q*uRippleHeight;pos.xyz*=t;gl_Position=u_worldViewProjection*u_model*pos;gl_Position.xy+=uOffset*gl_Position.w;float c=t/1.04;vTexture=texture;vTextureG=textureG;vShine=q;vTime=(u_time/100.0)*u_speed;vAlpha=max((dot(normalize(u_cameraPos),position)+1.0)/2.0,uMinPointAlpha);}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform vec3 uLeftColorCurrent;uniform vec3 uLeftColorTarget;uniform vec3 uRightColor;uniform float uColorChangeAnimation;uniform vec2 uResolution;uniform float uSeed;uniform float uScale;uniform vec3 uColor;uniform vec3 uRippleColor;uniform vec4 uCardMargin;uniform sampler2D uNoiseTexture;varying vec2 vTexture;varying vec2 vTextureG;varying vec4 vColor;varying float vShine;varying float vTime;varying float vAlpha;void main(){vec4 noiseColor=texture2D(uNoiseTexture,vec2(vTextureG.x+fract(vTime),vTextureG.y));float d=1.0-smoothstep(0.45,0.5,distance(vec2(0.5,0.5),vTexture));vec3 color=mix(uColor,uRippleColor,vShine);float alpha=vAlpha*d*pow(noiseColor.r,2.5);gl_FragColor=vec4(color,alpha);}"}),Hr={uPointSize:.005,uRandomPointSizeDelta:0,uRandomPointSizeRatio:0,uMinPointAlpha:0,uMinPointSize:1,uOffset:[0,0],uRippleCenter:[0,0,1],uRippleProgress:-2,uRippleWidth:.2,uRippleHeight:.1,uRippleColor:[1,1,1],uColor:[1,1,1],u_speed:10},Wr=function(t){s(n,Zn);var e=v(n);function n(t,r,a){var s,l;o(this,n),i(d(l=e.call(this)),"material",null),i(d(l),"lookup",null),i(d(l),"currentSelection",-1),i(d(l),"previousSelection",-1),i(d(l),"inAnimation",null),i(d(l),"outAnimation",null),i(d(l),"dataTexture",void 0),i(d(l),"dataTextureSize",16),i(d(l),"updateCMDs",[]),i(d(l),"highlightAnimationProps",{start:0,stop:1,duration:1e3,onUpdate:function(t){l.material.uniforms.u_animateIn=t}}),i(d(l),"init",(function(t,e){l.geometry.init(t);var n={noise:{src:l.textureSrc.noise,minMag:t.LINEAR}};l.material.init(t),l.material.uniforms.uModelMatrix=l.modelMatrix,l.material.loadTextures(t,n,(function(){l.material.uniforms.uNoiseTexture=l.material.textures.noise,e&&e()}))})),i(d(l),"getValueForId",(function(t){return l.lookup.getFromId(t)})),i(d(l),"getValueForCode",(function(t){return l.lookup.getFromCode(t)})),i(d(l),"getValueForName",(function(t){return l.lookup.getFromName(t)})),i(d(l),"setIdColor",(function(t,e,n){var r=void 0===n?1:n,i=ar.hexToRGBA(e,r,!1);l.updateCMDs.push((function(e){l.dataTexture.updatePixelId(e,i,t)}))})),i(d(l),"createCollisionGeo",(function(){if(!(l.collisionGeometry&&l.collisionGeometry instanceof Kn)){var t=Jt.createSphereVertices(1,128,128);l.collisionGeometry=Yn.create_collision_geometry(t.position,t.texcoord,t.indices)}})),i(d(l),"rayCastFrom",(function(t){return l.collisionGeometry.raycast(t.origin,t.direction)})),i(d(l),"hitTest",(function(t){return l.collisionGeometry.hitTest(t.origin,t.direction)})),i(d(l),"onSelectionCB",(function(){})),i(d(l),"onSelection",(function(t,e,n){var r=ar.latLonFromWorld(n.point);return console.log(r,n),{lat:t,lon:e}})),i(d(l),"onHover",(function(){})),i(d(l),"update",(function(t,e,r){y((s=d(l),u(n.prototype)),"update",s).call(s,e,r),l.material.uniforms.u_model=l.modelMatrix,l.material.uniforms.u_time=r,l.updateCMDs.forEach((function(e){e(t)})),l.updateCMDs=[]})),i(d(l),"draw",(function(t){l.isReady&&l.shouldDraw&&(t.useProgram(l.material.programInfo.program),t.disable(t.CULL_FACE),en(t,l.material.programInfo,l.geometry.bufferInfo),tn(l.material.programInfo,l.material.uniforms),t.drawElements(t.TRIANGLES,l.geometry.bufferInfo.numElements,t.UNSIGNED_INT,0),t.enable(t.CULL_FACE))})),i(d(l),"setCountryHover",(function(t){})),i(d(l),"setHighlightId",(function(t){l.previousSelection=l.currentSelection,l.currentSelection=t;var e=l.inAnimation?l.inAnimation.currentValue():1,n=300*e;l.animateIn(l.currentSelection,500),l.animateOut(l.previousSelection,n,e)})),i(d(l),"animateIn",(function(t,e){l.material.uniforms.u_idAnimateIn=t,l.inAnimation&&l.inAnimation.stop(),l.material.uniforms.u_animateIn=0,l.inAnimation=new sr(l.highlightAnimationProps.start,l.highlightAnimationProps.stop,l.highlightAnimationProps.duration,{onUpdate:l.highlightAnimationProps.onUpdate,onComplete:function(){e&&e()}})})),i(d(l),"animateOut",(function(t,e,n,r){l.material.uniforms.u_idAnimateOut=t,l.outAnimation&&l.outAnimation.stop(),l.material.uniforms.u_animateOut=n,l.outAnimation=new sr(n,0,e,{onUpdate:function(t){l.material.uniforms.u_animateOut=t},onComplete:function(){r&&r()}})})),i(d(l),"addDataset",(function(t){l.lookup=new or(t,l.textureSrc.id)})),i(d(l),"rippleAtLocation",(function(t,e,n){l._ripple instanceof sr&&l._ripple.stop(),l.material.uniforms.uRippleCenter=ar.worldFromLatLon(t,e,0);var r=2e3;n&&(n.width&&(l.material.uniforms.uRippleWidth=n.width),n.height&&(l.material.uniforms.uRippleHeight=n.height),n.speed&&(l.material.uniforms.u_speed=n.speed),n.rippleColor&&(l.material.uniforms.uRippleColor=n.rippleColor),n.duration&&(r=n.duration));var i=0-l.material.uniforms.uRippleWidth,o=1+l.material.uniforms.uRippleWidth;l._ripple=new sr(i,o,r,{onUpdate:function(t){l.material.uniforms.uRippleProgress=t}})})),l.textureSrc={noise:t.noise},l.material=new Pn(Gr),l.material.uniforms=Hr,l.geometry=new er;var c=0,f=new Float32Array(r),h=new Int32Array(r),p=f.subarray(c,c+114192);c+=114192;var m=f.subarray(c,c+114192);c+=114192;var v=f.subarray(c,c+114192);c+=114192;var g=f.subarray(c,c+76128);c+=76128;var _=f.subarray(c,c+76128);c+=76128;var w=f.subarray(c,c+38064);c+=38064;var b=h.subarray(c,c+57096);return l.geometry.vertices.position={numComponents:3,data:p},l.geometry.vertices.tangentU={numComponents:3,data:m},l.geometry.vertices.tangentV={numComponents:3,data:v},l.geometry.vertices.texture={numComponents:2,data:g},l.geometry.vertices.textureG={numComponents:2,data:_},l.geometry.vertices.random={numComponents:1,data:w},l.geometry.vertices.indices={numComponents:3,data:b},a&&(a.pointSize&&(l.material.uniforms.uPointSize=a.pointSize),a.randomPointSizeVariance&&(l.material.uniforms.uRandomPointSizeDelta=a.randomPointSizeVariance),a.randomPointSizeRatio&&(l.material.uniforms.uRandomPointSizeRatio=a.randomPointSizeRatio),a.minPointAlpha&&(l.material.uniforms.uMinPointAlpha=a.minPointAlpha),a.minPointSize&&(l.material.uniforms.uMinPointSize=a.minPointSize),a.offset&&(l.material.uniforms.uOffset=a.offset),a.color&&(l.material.uniforms.uColor=ar.hexToRGB(a.color))),l}return n}(),Qr={u_animation:1,u_startsize:4,u_midsize:16,u_endsize:4,u_startColor:[1,1,1,.4],u_midColor:[1,1,1,1],u_endColor:[1,1,1,.4]},Yr=function(t){s(n,Er);var e=v(n);function n(t){var r,a;o(this,n),i(d(a=e.call(this,t)),"datastore",void 0),i(d(a),"maxSelectionDistance",300),i(d(a),"maxSelectionCount",1),i(d(a),"maxDataPoints",10),i(d(a),"_segments",600),i(d(a),"_pointsPerArcHalf",300),i(d(a),"_tweens",[]),i(d(a),"dataPointCount",0),i(d(a),"_resourceLoaded",!1),i(d(a),"_isDirty",!0),i(d(a),"_hasGeometry",!1),i(d(a),"useTexture",!1),i(d(a),"createEmptyVertices",(function(){a.geometry.vertices.position={numComponents:3,data:new Array(a._segments).fill(0),perInstance:3},a.geometry.vertices.inst={numComponents:1,data:new Array(a._segments).fill(0),perInstance:1},a.geometry.vertices.indices={numComponents:1,data:Array.from(Array(a._segments).keys()),perInstance:1}})),i(d(a),"addArc",(function(t,e,n){var r=[],i={from:t.from,to:t.to,normalFactor:t.normalFactor||.5,alt:t.alt||.3,startColor:t.startColor||"#ffffff",midColor:t.midColor||"#ffffff",endColor:t.endColor||"#ffffff",startAlpha:t.startAlpha||0,midAlpha:t.midAlpha||1,endAlpha:t.endAlpha||0,startWidth:t.startWidth||4,midWidth:t.midWidth||4,endWidth:t.endWidth||4},o=(ar.dotBetweenLatLon(t.from,t.to)+1)/2;void 0!==a.transform&&(i=a.transform(t,i)),i.alt=.1+(1-o)*i.alt,a.material.uniforms.u_startsize=i.startWidth,a.material.uniforms.u_midsize=i.midWidth,a.material.uniforms.u_endsize=i.endWidth,a.material.uniforms.u_startColor=ar.hexToRGBA(i.startColor,i.startAlpha),a.material.uniforms.u_midColor=ar.hexToRGBA(i.midColor,i.midAlpha),a.material.uniforms.u_endColor=ar.hexToRGBA(i.endColor,i.endAlpha),r.push.apply(r,p(a._createArcFrom(i)));var s=Array.from(Array(a._segments).keys());if(void 0!==e){a.material.uniforms.u_animation=0;var u=new sr(0,1,e,{onUpdate:function(t){a.material.uniforms.u_animation=t},onComplete:function(){n&&n()}});a._tweens.push(u)}var l={position:{data:new Float32Array(r)},inst:{data:s}};a.geometry.updateGeometry(l,0),a.shouldDraw=!0})),i(d(a),"_createArcFrom",(function(t){var e=a._computeControlPoints(t),n=new Lr(e.cp0),r=new Lr(e.cp1),i=n.getLUT(a._pointsPerArcHalf),o=r.getLUT(a._pointsPerArcHalf),s=[];i.reverse().forEach((function(t){s.push(t)})),o.forEach((function(t){s.push(t)})),s.splice(a._pointsPerArcHalf,1);var u=[];return s.forEach((function(t){u.push.apply(u,p(Object.values(t)))})),u})),i(d(a),"_computeControlPoints",(function(t){var e=ar.worldFromLatLon(t.from[0],t.from[1],.005),n=ar.worldFromLatLon(t.to[0],t.to[1],.005),r=yn();Sn(r,e,n,.5);var i=ar.latLonFromWorld(r),o=ar.worldFromLatLon(i.lat,i.lon,t.alt),a=yn();_n(a,e,r),wn(a,a,t.normalFactor);var s=yn();bn(s,o,a);var u=yn();_n(u,o,a);var l=[];l.push.apply(l,p(o)),l.push.apply(l,p(s)),l.push.apply(l,p(e));var c=[];return c.push.apply(c,p(o)),c.push.apply(c,p(u)),c.push.apply(c,p(n)),{cp0:l,cp1:c}})),i(d(a),"_createInstArray",(function(t){for(var e=Array.from(Array(a._segments+1).keys()),n=[],r=0;r<t;r+=1)e.forEach((function(t){n.push(t)}));return n})),i(d(a),"removeAllArcs",(function(){a.shouldDraw=!1})),i(d(a),"init",(function(t,e){if(a.geometry.init(t),a._hasGeometry=!0,a.material.init(t),a.useTexture){var n={texture:{src:a.textureSrc.texture,minMag:t.LINEAR}};a.material.loadTextures(t,n,(function(){e&&e(),a.material.uniforms.u_texture=a.material.textures.texture}))}else e&&e()})),i(d(a),"createCollisionGeo",(function(){})),i(d(a),"update",(function(t,e,o){y((r=d(a),u(n.prototype)),"update",r).call(r,e,o),a.material.uniforms.u_model=a.modelMatrix,a.geometry.needsResize&&a.geometry.reloadBuffers(t),a.geometry.isDirty&&a.geometry.updateBuffers(t)})),i(d(a),"draw",(function(t){(a.isReady||a._hasGeometry)&&a.shouldDraw&&(t.useProgram(a.material.programInfo.program),t.disable(t.DEPTH_TEST),en(t,a.material.programInfo,a.geometry.bufferInfo),tn(a.material.programInfo,a.material.uniforms),t.drawArrays(t.POINTS,0,a._segments-1),t.enable(t.DEPTH_TEST))})),i(d(a),"rayCastFrom",(function(){return!0})),i(d(a),"hitTest",(function(){return!0})),i(d(a),"onSelectionCB",(function(t){return t})),i(d(a),"onSelection",(function(){}));var s={vertex:"#define GLSLIFY 1\nattribute vec4 position;attribute float inst;uniform mat4 u_worldViewProjection;uniform mat4 u_viewInverse;uniform mat4 u_model;uniform vec3 u_cameraPos;uniform float u_startsize;uniform float u_midsize;uniform float u_endsize;uniform vec4 u_startColor;uniform vec4 u_midColor;uniform vec4 u_endColor;varying vec4 v_color;varying float v_tex;varying float v_alpha;float when_gt(float x,float y){return max(sign(x-y),0.0);}float when_lt(float x,float y){return max(sign(y-x),0.0);}float getV(vec3 x){return x.x*x.x+x.y*x.y+x.z*x.z;}void main(){v_tex=inst/600.0;float t0=v_tex*2.0;float t1=(v_tex*2.0-1.0);float firstHalfSize=mix(u_startsize,u_midsize,t0)*(1.0-step(0.5,v_tex));float secondHalfSize=mix(u_midsize,u_endsize,t1)*step(0.5,v_tex);;vec4 firstHalfColor=mix(u_startColor,u_midColor,t0)*(1.0-step(0.5,v_tex));vec4 secondHalfColor=mix(u_midColor,u_endColor,t1)*step(0.5,v_tex);vec4 pos=u_worldViewProjection*u_model*position;gl_PointSize=firstHalfSize+secondHalfSize;gl_Position=pos;v_color=firstHalfColor+secondHalfColor;v_alpha=step(0.3,(1.0+dot(normalize(u_cameraPos),normalize(position.xyz)))/2.0);}",fragment:"precision mediump float;\n#define GLSLIFY 1\nuniform float u_time;uniform float u_animation;varying vec4 v_color;varying float v_tex;varying float v_alpha;void main(){float d=distance(vec2(0.5),gl_PointCoord.xy);float c=1.0-smoothstep(0.4,0.5,d);float alpha=step(1.0-u_animation,1.0-v_tex);gl_FragColor=vec4(v_color.rgb,v_color.a*c*alpha);}"};return t&&(t.maxSelectionCount&&(a.maxSelectionCount=t.maxSelectionCount),t.maxSelectionDistance&&(a.maxSelectionDistance=t.maxSelectionDistance),t.maxDataPoints&&(a.maxDataPoints=t.maxDataPoints),!0===t.useTexture&&void 0!==t.texture&&(a.useTexture=!0,s.fragment=Sr,a.textureSrc={texture:t.texture})),a.material=new Pn(s),a.datastore=new xr,a.material.uniforms=Qr,a.geometry=new er,a.shouldDraw=!1,a.createEmptyVertices(),a}return n}();!function(){function t(e){var n=this;o(this,t),i(this,"drawables",[]),i(this,"element",void 0),i(this,"definition",void 0),i(this,"size",{width:0,height:0}),this.definition=e,this.element=this.createElement(),this.resizeObserver=new ResizeObserver((function(t){t.length&&(n.size=t[0].contentRect)})),this.resizeObserver.observe(this.element)}c(t,[{key:"release",value:function(){this.resizeObserver.disconnect()}},{key:"createElement",value:function(){return document.createElement("div")}},{key:"animateIn",value:function(){}},{key:"animateOut",value:function(t){t(this)}},{key:"update",value:function(t){this.drawables.forEach((function(e){return e.update(t)}))}},{key:"setPosition",value:function(t){this.element.style.transform="translate(".concat(t.screen.x,"px, ").concat(t.screen.y,"px)")}}])}()}).call(this,n(36))},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return bt})),n.d(e,"b",(function(){return et}));var r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)};function o(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};var c=n(2);function f(t){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:h(t)}]}}function h(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return null;if(Array.isArray(t))return h(t[0]);var e=[];return Object.keys(t).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:h(t[n])||void 0};e.push(r)})),{kind:"SelectionSet",selections:e}}var d,m={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},v=function(){function t(){}return t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.read({query:Object(c.getFragmentQueryDocument)(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,optimistic:e})},t.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables})},t.prototype.writeFragment=function(t){this.write({dataId:t.id,result:t.data,variables:t.variables,query:Object(c.getFragmentQueryDocument)(t.fragment,t.fragmentName)})},t.prototype.writeData=function(t){var e,n,r=t.id,data=t.data;if(void 0!==r){var o=null;try{o=this.read({rootId:r,optimistic:!1,query:m})}catch(t){}var l=o&&o.__typename||"__ClientData",c=Object.assign({__typename:l},data);this.writeFragment({id:r,fragment:(e=c,n=l,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:h(e)}]}),data:c})}else this.writeQuery({query:f(data),data:data})},t}();d||(d={});var y=n(379),_=null,w={},x=1,E="@wry/context:Slot",S=Array,k=S[E]||function(){var t=function(){function t(){this.id=["slot",x++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var t=_;t;t=t.parent)if(this.id in t.slots){var e=t.slots[this.id];if(e===w)break;return t!==_&&(_.slots[this.id]=e),!0}return _&&(_.slots[this.id]=w),!1},t.prototype.getValue=function(){if(this.hasValue())return _.slots[this.id]},t.prototype.withValue=function(t,e,n,r){var o,l=((o={__proto__:null})[this.id]=t,o),c=_;_={parent:c,slots:l};try{return e.apply(r,n)}finally{_=c}},t.bind=function(t){var e=_;return function(){var n=_;try{return _=e,t.apply(this,arguments)}finally{_=n}}},t.noContext=function(t,e,n){if(!_)return t.apply(n,e);var r=_;try{return _=null,t.apply(n,e)}finally{_=r}},t}();try{Object.defineProperty(S,E,{value:S[E]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}();k.bind,k.noContext;function A(){}var O=function(){function t(t,e){void 0===t&&(t=1/0),void 0===e&&(e=A),this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.get=function(t){var e=this.getEntry(t);return e&&e.value},t.prototype.getEntry=function(t){var e=this.map.get(t);if(e&&e!==this.newest){var n=e.older,r=e.newer;r&&(r.older=n),n&&(n.newer=r),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=r)}return e},t.prototype.set=function(t,e){var n=this.getEntry(t);return n?n.value=e:(n={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(t,n),n.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(t){var e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)},t}(),T=new k,C=[],P=[];function I(t,e){if(!t)throw new Error(e||"assertion failure")}function M(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var j=function(){function t(e,n){this.fn=e,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++t.count}return t.prototype.recompute=function(){if(I(!this.recomputing,"already recomputing"),function(t){var e=T.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),F(t)?N(e,t):B(e,t),e}(this)||!z(this))return F(this)?function(t){var e=U(t);T.withValue(t,D,[t]),function(t){if("function"==typeof t.subscribe)try{G(t),t.unsubscribe=t.subscribe.apply(null,t.args)}catch(e){return t.setDirty(),!1}return!0}(t)&&function(t){if(t.dirty=!1,F(t))return;L(t)}(t);return e.forEach(z),M(t.value)}(this):M(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,R(this),G(this))},t.prototype.dispose=function(){var t=this;U(this).forEach(z),G(this),this.parents.forEach((function(e){e.setDirty(),$(e,t)}))},t.count=0,t}();function D(t){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,t.args)}catch(e){t.value[1]=e}t.recomputing=!1}function F(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function R(t){t.parents.forEach((function(e){return N(e,t)}))}function L(t){t.parents.forEach((function(e){return B(e,t)}))}function N(t,e){if(I(t.childValues.has(e)),I(F(e)),t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=P.pop()||new Set;t.dirtyChildren.add(e),R(t)}function B(t,e){I(t.childValues.has(e)),I(!F(e));var a,b,n,r=t.childValues.get(e);0===r.length?t.childValues.set(e,e.value.slice(0)):(a=r,b=e.value,(n=a.length)>0&&n===b.length&&a[n-1]===b[n-1]||t.setDirty()),V(t,e),F(t)||L(t)}function V(t,e){var n=t.dirtyChildren;n&&(n.delete(e),0===n.size&&(P.length<100&&P.push(n),t.dirtyChildren=null))}function z(t){return 0===t.parents.size&&"function"==typeof t.reportOrphan&&!0===t.reportOrphan()}function U(t){var e=C;return t.childValues.size>0&&(e=[],t.childValues.forEach((function(n,r){$(t,r),e.push(r)}))),I(null===t.dirtyChildren),e}function $(t,e){e.parents.delete(t),t.childValues.delete(e),V(t,e)}function G(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var H=function(){function t(t){this.weakness=t}return t.prototype.lookup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.lookupArray(t)},t.prototype.lookupArray=function(t){var e=this;return t.forEach((function(t){return e=e.getChildTrie(t)})),e.data||(e.data=Object.create(null))},t.prototype.getChildTrie=function(e){var map=this.weakness&&function(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=map.get(e);return n||map.set(e,n=new t(this.weakness)),n},t}();var W=new H("function"==typeof WeakMap);function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return W.lookupArray(t)}var Y=new Set;function K(t,e){void 0===e&&(e=Object.create(null));var n=new O(e.max||Math.pow(2,16),(function(t){return t.dispose()})),r=!!e.disposable,o=e.makeCacheKey||Q;function l(){if(!r||T.hasValue()){var l=o.apply(null,arguments);if(void 0===l)return t.apply(null,arguments);var c=Array.prototype.slice.call(arguments),f=n.get(l);f?f.args=c:(f=new j(t,c),n.set(l,f),f.subscribe=e.subscribe,r&&(f.reportOrphan=function(){return n.delete(l)}));var h=f.recompute();return n.set(l,f),Y.add(n),T.hasValue()||(Y.forEach((function(t){return t.clean()})),Y.clear()),r?void 0:h}}return l.dirty=function(){var t=o.apply(null,arguments),e=void 0!==t&&n.get(t);e&&e.setDirty()},l}var X=n(8),J=!1;function Z(){var t=!J;return Object(c.isTest)()||(J=!0),t}var tt=function(){function t(){}return t.prototype.ensureReady=function(){return Promise.resolve()},t.prototype.canBypassInit=function(){return!0},t.prototype.match=function(t,e,n){var r=n.store.get(t.id),o="ROOT_QUERY"===t.id;if(!r)return o;var l=r.__typename,c=void 0===l?o&&"Query":l;return c&&c===e||(Z(),"heuristic")},t}(),et=function(){function t(t){t&&t.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(t.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return t.prototype.match=function(t,e,n){Object(X.b)(this.isReady,1);var r=n.store.get(t.id),o="ROOT_QUERY"===t.id;if(!r)return o;var l=r.__typename,c=void 0===l?o&&"Query":l;if(Object(X.b)(c,2),c===e)return!0;var f=this.possibleTypesMap[e];return!!(c&&f&&f.indexOf(c)>-1)},t.prototype.parseIntrospectionResult=function(t){var e={};return t.__schema.types.forEach((function(t){"UNION"!==t.kind&&"INTERFACE"!==t.kind||(e[t.name]=t.possibleTypes.map((function(t){return t.name})))})),e},t}(),nt=Object.prototype.hasOwnProperty,it=function(){function t(data){var t=this;void 0===data&&(data=Object.create(null)),this.data=data,this.depend=K((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(t){return t}})}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.depend(t),this.data[t]},t.prototype.set=function(t,e){e!==this.data[t]&&(this.data[t]=e,this.depend.dirty(t))},t.prototype.delete=function(t){nt.call(this.data,t)&&(delete this.data[t],this.depend.dirty(t))},t.prototype.clear=function(){this.replace(null)},t.prototype.replace=function(t){var e=this;t?(Object.keys(t).forEach((function(n){e.set(n,t[n])})),Object.keys(this.data).forEach((function(n){nt.call(t,n)||e.delete(n)}))):Object.keys(this.data).forEach((function(t){e.delete(t)}))},t}();function ot(t){return new it(t)}var at=function(){function t(t){var e=this,n=void 0===t?{}:t,r=n.cacheKeyRoot,o=void 0===r?new H(c.canUseWeakMap):r,l=n.freezeResults,f=void 0!==l&&l,h=this,d=h.executeStoreQuery,m=h.executeSelectionSet,v=h.executeSubSelectedArray;this.freezeResults=f,this.executeStoreQuery=K((function(t){return d.call(e,t)}),{makeCacheKey:function(t){var e=t.query,n=t.rootValue,r=t.contextValue,l=t.variableValues,c=t.fragmentMatcher;if(r.store instanceof it)return o.lookup(r.store,e,c,JSON.stringify(l),n.id)}}),this.executeSelectionSet=K((function(t){return m.call(e,t)}),{makeCacheKey:function(t){var e=t.selectionSet,n=t.rootValue,r=t.execContext;if(r.contextValue.store instanceof it)return o.lookup(r.contextValue.store,e,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=K((function(t){return v.call(e,t)}),{makeCacheKey:function(t){var e=t.field,n=t.array,r=t.execContext;if(r.contextValue.store instanceof it)return o.lookup(r.contextValue.store,e,n,JSON.stringify(r.variableValues))}})}return t.prototype.readQueryFromStore=function(t){return this.diffQueryAgainstStore(l(l({},t),{returnPartialData:!1})).result},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,n=t.query,r=t.variables,o=t.previousResult,l=t.returnPartialData,f=void 0===l||l,h=t.rootId,d=void 0===h?"ROOT_QUERY":h,m=t.fragmentMatcherFunction,v=t.config,_=Object(c.getQueryDefinition)(n);r=Object(c.assign)({},Object(c.getDefaultValues)(_),r);var w={store:e,dataIdFromObject:v&&v.dataIdFromObject,cacheRedirects:v&&v.cacheRedirects||{}},x=this.executeStoreQuery({query:n,rootValue:{type:"id",id:d,generated:!0,typename:"Query"},contextValue:w,variableValues:r,fragmentMatcher:m}),E=x.missing&&x.missing.length>0;return E&&!f&&x.missing.forEach((function(t){if(!t.tolerable)throw new X.a(8)})),o&&Object(y.a)(o,x.result)&&(x.result=o),{result:x.result,complete:!E}},t.prototype.executeStoreQuery=function(t){var e=t.query,n=t.rootValue,r=t.contextValue,o=t.variableValues,l=t.fragmentMatcher,f=void 0===l?ut:l,h=Object(c.getMainDefinition)(e),d=Object(c.getFragmentDefinitions)(e),m={query:e,fragmentMap:Object(c.createFragmentMap)(d),contextValue:r,variableValues:o,fragmentMatcher:f};return this.executeSelectionSet({selectionSet:h.selectionSet,rootValue:n,execContext:m})},t.prototype.executeSelectionSet=function(t){var e=this,n=t.selectionSet,r=t.rootValue,o=t.execContext,f=o.fragmentMap,h=o.contextValue,d=o.variableValues,m={result:null},v=[],object=h.store.get(r.id),y=object&&object.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function _(t){var e;return t.missing&&(m.missing=m.missing||[],(e=m.missing).push.apply(e,t.missing)),t.result}return n.selections.forEach((function(t){var n;if(Object(c.shouldInclude)(t,d))if(Object(c.isField)(t)){var m=_(e.executeField(object,y,t,o));void 0!==m&&v.push(((n={})[Object(c.resultKeyNameFromField)(t)]=m,n))}else{var w=void 0;if(Object(c.isInlineFragment)(t))w=t;else if(!(w=f[t.name.value]))throw new X.a(9);var x=w.typeCondition&&w.typeCondition.name.value,E=!x||o.fragmentMatcher(r,x,h);if(E){var S=e.executeSelectionSet({selectionSet:w.selectionSet,rootValue:r,execContext:o});"heuristic"===E&&S.missing&&(S=l(l({},S),{missing:S.missing.map((function(t){return l(l({},t),{tolerable:!0})}))})),v.push(_(S))}}})),m.result=Object(c.mergeDeepArray)(v),this.freezeResults,m},t.prototype.executeField=function(object,t,e,n){var r=n.variableValues,o=n.contextValue,l=function(object,t,e,n,r,o){o.resultKey;var l=o.directives,f=e;(n||l)&&(f=Object(c.getStoreKeyName)(f,n,l));var h=void 0;if(object&&void 0===(h=object[f])&&r.cacheRedirects&&"string"==typeof t){var d=r.cacheRedirects[t];if(d){var m=d[e];m&&(h=m(object,n,{getCacheKey:function(t){var e=r.dataIdFromObject(t);return e&&Object(c.toIdValue)({id:e,typename:t.__typename})}}))}}if(void 0===h)return{result:h,missing:[{object:object,fieldName:f,tolerable:!1}]};Object(c.isJsonValue)(h)&&(h=h.json);return{result:h}}(object,t,e.name.value,Object(c.argumentsObjectFromField)(e,r),o,{resultKey:Object(c.resultKeyNameFromField)(e),directives:Object(c.getDirectiveInfoFromField)(e,r)});return Array.isArray(l.result)?this.combineExecResults(l,this.executeSubSelectedArray({field:e,array:l.result,execContext:n})):e.selectionSet?null==l.result?l:this.combineExecResults(l,this.executeSelectionSet({selectionSet:e.selectionSet,rootValue:l.result,execContext:n})):(st(e,l.result),this.freezeResults,l)},t.prototype.combineExecResults=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.forEach((function(e){e.missing&&(t=t||[]).push.apply(t,e.missing)})),{result:e.pop().result,missing:t}},t.prototype.executeSubSelectedArray=function(t){var e,n=this,r=t.field,o=t.array,l=t.execContext;function c(t){return t.missing&&(e=e||[]).push.apply(e,t.missing),t.result}return o=o.map((function(t){return null===t?null:Array.isArray(t)?c(n.executeSubSelectedArray({field:r,array:t,execContext:l})):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,rootValue:t,execContext:l})):(st(r,t),t)})),this.freezeResults,{result:o,missing:e}},t}();function st(t,e){if(!t.selectionSet&&Object(c.isIdValue)(e))throw new X.a(10)}function ut(){return!0}var lt=function(){function t(data){void 0===data&&(data=Object.create(null)),this.data=data}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){this.data[t]=e},t.prototype.delete=function(t){this.data[t]=void 0},t.prototype.clear=function(){this.data=Object.create(null)},t.prototype.replace=function(t){this.data=t||Object.create(null)},t}();var ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="WriteError",e}return o(e,t),e}(Error);var ft=function(){function t(){}return t.prototype.writeQueryToStore=function(t){var e=t.query,n=t.result,r=t.store,o=void 0===r?ot():r,l=t.variables,c=t.dataIdFromObject,f=t.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:n,document:e,store:o,variables:l,dataIdFromObject:c,fragmentMatcherFunction:f})},t.prototype.writeResultToStore=function(t){var e=t.dataId,n=t.result,r=t.document,o=t.store,l=void 0===o?ot():o,f=t.variables,h=t.dataIdFromObject,d=t.fragmentMatcherFunction,m=Object(c.getOperationDefinition)(r);try{return this.writeSelectionSetToStore({result:n,dataId:e,selectionSet:m.selectionSet,context:{store:l,processedData:{},variables:Object(c.assign)({},Object(c.getDefaultValues)(m),f),dataIdFromObject:h,fragmentMap:Object(c.createFragmentMap)(Object(c.getFragmentDefinitions)(r)),fragmentMatcherFunction:d}})}catch(t){throw function(t,e){var n=new ct("Error writing result to store for query:\n "+JSON.stringify(e));return n.message+="\n"+t.message,n.stack=t.stack,n}(t,r)}},t.prototype.writeSelectionSetToStore=function(t){var e=this,n=t.result,r=t.dataId,o=t.selectionSet,l=t.context,f=l.variables,h=l.store,d=l.fragmentMap;return o.selections.forEach((function(t){var o;if(Object(c.shouldInclude)(t,f))if(Object(c.isField)(t)){var h=Object(c.resultKeyNameFromField)(t),m=n[h];if(void 0!==m)e.writeFieldToStore({dataId:r,value:m,field:t,context:l});else{var v=!1,y=!1;t.directives&&t.directives.length&&(v=t.directives.some((function(t){return t.name&&"defer"===t.name.value})),y=t.directives.some((function(t){return t.name&&"client"===t.name.value}))),!v&&!y&&l.fragmentMatcherFunction}}else{var _=void 0;Object(c.isInlineFragment)(t)?_=t:(_=(d||{})[t.name.value],Object(X.b)(_,3));var w=!0;if(l.fragmentMatcherFunction&&_.typeCondition){var x=r||"self",E=Object(c.toIdValue)({id:x,typename:void 0}),S={store:new lt((o={},o[x]=n,o)),cacheRedirects:{}},k=l.fragmentMatcherFunction(E,_.typeCondition.name.value,S);Object(c.isProduction)(),w=!!k}w&&e.writeSelectionSetToStore({result:n,selectionSet:_.selectionSet,dataId:r,context:l})}})),h},t.prototype.writeFieldToStore=function(t){var e,n,r,o=t.field,f=t.value,h=t.dataId,d=t.context,m=d.variables,v=d.dataIdFromObject,_=d.store,w=Object(c.storeKeyNameFromField)(o,m);if(o.selectionSet&&null!==f)if(Array.isArray(f)){var x=h+"."+w;n=this.processArrayValue(f,x,o.selectionSet,d)}else{var E=h+"."+w,S=!0;if(ht(E)||(E="$"+E),v){var k=v(f);Object(X.b)(!k||!ht(k),4),(k||"number"==typeof k&&0===k)&&(E=k,S=!1)}mt(E,o,d.processedData)||this.writeSelectionSetToStore({dataId:E,result:f,selectionSet:o.selectionSet,context:d});var A=f.__typename;n=Object(c.toIdValue)({id:E,typename:A},S);var O=(r=_.get(h))&&r[w];if(O!==n&&Object(c.isIdValue)(O)){var T=void 0!==O.typename,C=void 0!==A,P=T&&C&&O.typename!==A;Object(X.b)(!S||O.generated||P,5),Object(X.b)(!T||C,6),O.generated&&(P?S||_.delete(O.id):pt(O.id,n.id,_))}}else n=null!=f&&"object"==typeof f?{type:"json",json:f}:f;(r=_.get(h))&&Object(y.a)(n,r[w])||_.set(h,l(l({},r),((e={})[w]=n,e)))},t.prototype.processArrayValue=function(t,e,n,r){var o=this;return t.map((function(t,l){if(null===t)return null;var f=e+"."+l;if(Array.isArray(t))return o.processArrayValue(t,f,n,r);var h=!0;if(r.dataIdFromObject){var d=r.dataIdFromObject(t);d&&(f=d,h=!1)}return mt(f,n,r.processedData)||o.writeSelectionSetToStore({dataId:f,result:t,selectionSet:n,context:r}),Object(c.toIdValue)({id:f,typename:t.__typename},h)}))},t}();function ht(t){return"$"===t[0]}function pt(t,e,n){if(t===e)return!1;var r=n.get(t),o=n.get(e),f=!1;Object.keys(r).forEach((function(t){var e=r[t],l=o[t];Object(c.isIdValue)(e)&&ht(e.id)&&Object(c.isIdValue)(l)&&!Object(y.a)(e,l)&&pt(e.id,l.id,n)&&(f=!0)})),n.delete(t);var h=l(l({},r),o);return Object(y.a)(h,o)?f:(n.set(e,h),!0)}function mt(t,e,n){if(!n)return!1;if(n[t]){if(n[t].indexOf(e)>=0)return!0;n[t].push(e)}else n[t]=[e];return!1}var vt={fragmentMatcher:new tt,dataIdFromObject:function(t){if(t.__typename){if(void 0!==t.id)return t.__typename+":"+t.id;if(void 0!==t._id)return t.__typename+":"+t._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var yt=Object.prototype.hasOwnProperty,gt=function(t){function e(e,n,r){var o=t.call(this,Object.create(null))||this;return o.optimisticId=e,o.parent=n,o.transaction=r,o}return o(e,t),e.prototype.toObject=function(){return l(l({},this.parent.toObject()),this.data)},e.prototype.get=function(t){return yt.call(this.data,t)?this.data[t]:this.parent.get(t)},e}(lt),bt=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new H(c.canUseWeakMap),n.silenceBroadcast=!1,n.config=l(l({},vt),e),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new it:new lt,n.optimisticData=n.data,n.storeWriter=new ft,n.storeReader=new at({cacheKeyRoot:n.cacheKeyRoot,freezeResults:e.freezeResults});var r=n,o=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=K((function(t){return o.call(n,t)}),{makeCacheKey:function(t){if(!t.optimistic&&!t.previousResult)return r.data instanceof it?r.cacheKeyRoot.lookup(t.query,JSON.stringify(t.variables)):void 0}}),n}return o(e,t),e.prototype.restore=function(data){return data&&this.data.replace(data),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){if("string"==typeof t.rootId&&void 0===this.data.get(t.rootId))return null;var e=this.config.fragmentMatcher,n=e&&e.match;return this.storeReader.readQueryFromStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:n,previousResult:t.previousResult,config:this.config})||null},e.prototype.write=function(t){var e=this.config.fragmentMatcher,n=e&&e.match;this.storeWriter.writeResultToStore({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},e.prototype.diff=function(t){var e=this.config.fragmentMatcher,n=e&&e.match;return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:n,config:this.config})},e.prototype.watch=function(t){var e=this;return this.watches.add(t),function(){e.watches.delete(t)}},e.prototype.evict=function(t){throw new X.a(7)},e.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){for(var e=[],n=0,r=this.optimisticData;r instanceof gt;)r.optimisticId===t?++n:e.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;e.length>0;){var o=e.pop();this.performTransaction(o.transaction,o.optimisticId)}this.broadcastWatches()}},e.prototype.performTransaction=function(t,e){var data=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof e&&(this.data=this.optimisticData=new gt(e,this.optimisticData,t));try{t(this)}finally{this.silenceBroadcast=n,this.data=data}this.broadcastWatches()},e.prototype.recordOptimisticTransaction=function(t,e){return this.performTransaction(t,e)},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=Object(c.addTypenameToDocument)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach((function(e){return t.maybeBroadcastWatch(e)}))},e.prototype.maybeBroadcastWatch=function(t){t.callback(this.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic}))},e}(v)},function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var r=n(37);function o(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function l(line,t){var e=line,n=e.length;if(n<=150)return e;t>n&&(t=n);var r=Math.max(t-60,0);r<5&&(r=0);var o=Math.min(r+140,n);return o>n-5&&(o=n),o===n&&(r=Math.max(o-140,0)),e=e.slice(r,o),r>0&&(e="'{snip} "+e),o<n&&(e+=" {snip}"),e}function c(input,t){if(!Array.isArray(input))return"";for(var output=[],i=0;i<input.length;i++){var e=input[i];try{output.push(String(e))}catch(t){output.push("[value cannot be serialized]")}}return output.join(t)}function f(t,pattern){return!!Object(r.k)(t)&&(Object(r.j)(pattern)?pattern.test(t):"string"==typeof pattern&&-1!==t.indexOf(pattern))}},,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var f=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||f):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},,,,,,,,,,,,,,,,,function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},o=/%[sdj%]/g;e.format=function(t){if(!S(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(f(arguments[i]));return e.join(" ")}i=1;for(var n=arguments,r=n.length,l=String(t).replace(o,(function(t){if("%%"===t)return"%";if(i>=r)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return t}})),c=n[i];i<r;c=n[++i])x(c)||!O(c)?l+=" "+c:l+=" "+f(c);return l},e.deprecate=function(n,r){if(void 0!==t&&!0===t.noDeprecation)return n;if(void 0===t)return function(){return e.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var l,c={};function f(t,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),w(n)?r.showHidden=n:n&&e._extend(r,n),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=h),m(r,t,r.depth)}function h(t,e){var style=f.styles[e];return style?"["+f.colors[style][0]+"m"+t+"["+f.colors[style][1]+"m":t}function d(t,e){return t}function m(t,n,r){if(t.customInspect&&n&&P(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return S(o)||(o=m(t,o,r)),o}var l=function(t,e){if(k(e))return t.stylize("undefined","undefined");if(S(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(E(e))return t.stylize(""+e,"number");if(w(e))return t.stylize(""+e,"boolean");if(x(e))return t.stylize("null","null")}(t,n);if(l)return l;var c=Object.keys(n),f=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(c);if(t.showHidden&&(c=Object.getOwnPropertyNames(n)),C(n)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return v(n);if(0===c.length){if(P(n)){var h=n.name?": "+n.name:"";return t.stylize("[Function"+h+"]","special")}if(A(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return t.stylize(Date.prototype.toString.call(n),"date");if(C(n))return v(n)}var output,base="",d=!1,O=["{","}"];(_(n)&&(d=!0,O=["[","]"]),P(n))&&(base=" [Function"+(n.name?": "+n.name:"")+"]");return A(n)&&(base=" "+RegExp.prototype.toString.call(n)),T(n)&&(base=" "+Date.prototype.toUTCString.call(n)),C(n)&&(base=" "+v(n)),0!==c.length||d&&0!=n.length?r<0?A(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),output=d?function(t,e,n,r,o){for(var output=[],i=0,l=e.length;i<l;++i)F(e,String(i))?output.push(y(t,e,n,r,String(i),!0)):output.push("");return o.forEach((function(o){o.match(/^\d+$/)||output.push(y(t,e,n,r,o,!0))})),output}(t,n,r,f,c):c.map((function(e){return y(t,n,r,f,e,d)})),t.seen.pop(),function(output,base,t){if(output.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return t[0]+(""===base?"":base+"\n ")+" "+output.join(",\n  ")+" "+t[1];return t[0]+base+" "+output.join(", ")+" "+t[1]}(output,base,O)):O[0]+base+O[1]}function v(t){return"["+Error.prototype.toString.call(t)+"]"}function y(t,e,n,r,o,l){var c,f,desc;if((desc=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?f=desc.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):desc.set&&(f=t.stylize("[Setter]","special")),F(r,o)||(c="["+o+"]"),f||(t.seen.indexOf(desc.value)<0?(f=x(n)?m(t,desc.value,null):m(t,desc.value,n-1)).indexOf("\n")>-1&&(f=l?f.split("\n").map((function(line){return"  "+line})).join("\n").substr(2):"\n"+f.split("\n").map((function(line){return"   "+line})).join("\n")):f=t.stylize("[Circular]","special")),k(c)){if(l&&o.match(/^\d+$/))return f;(c=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=t.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=t.stylize(c,"string"))}return c+": "+f}function _(t){return Array.isArray(t)}function w(t){return"boolean"==typeof t}function x(t){return null===t}function E(t){return"number"==typeof t}function S(t){return"string"==typeof t}function k(t){return void 0===t}function A(t){return O(t)&&"[object RegExp]"===I(t)}function O(t){return"object"==typeof t&&null!==t}function T(t){return O(t)&&"[object Date]"===I(t)}function C(t){return O(t)&&("[object Error]"===I(t)||t instanceof Error)}function P(t){return"function"==typeof t}function I(t){return Object.prototype.toString.call(t)}function M(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(k(l)&&(l=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!c[n])if(new RegExp("\\b"+n+"\\b","i").test(l)){var r=t.pid;c[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else c[n]=function(){};return c[n]},e.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=_,e.isBoolean=w,e.isNull=x,e.isNullOrUndefined=function(t){return null==t},e.isNumber=E,e.isString=S,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=k,e.isRegExp=A,e.isObject=O,e.isDate=T,e.isError=C,e.isFunction=P,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(578);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,time=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],time].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",D(),e.format.apply(e,arguments))},e.inherits=n(579),e._extend=function(t,e){if(!e||!O(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(R&&t[R]){var e;if("function"!=typeof(e=t[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,o)}catch(t){n(t)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),R&&Object.defineProperty(e,R,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=R,e.callbackify=function(e){if("function"!=typeof e)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,l=function(){return r.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(l,null,e)}),(function(e){t.nextTick(L,e,l)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this,n(62))},function(t,e,n){"use strict";(function(t,r){var o=n(367),l=n(583),c=n(152),f=n(155),h=n(156),d=n(368),m=n(584),v=n(587),y=n(588),_=n(238),w=n(369),x=n(239),E=n(593),S={subscribe:!0,unsubscribe:!0,psubscribe:!0,punsubscribe:!0};function k(){}function A(t,e,n){return(!1===n||this.message_buffers)&&(t=f.reply_to_strings(t)),"hgetall"===e&&(t=f.reply_to_object(t)),t}function O(t,e){t=f.clone(t),v.call(this);var n={};for(var r in t.tls)n[r]=t.tls[r],"port"!==r&&"host"!==r&&"path"!==r&&"family"!==r||(t[r]=t.tls[r]);for(var l in e?(t.stream=e,this.address='"Private stream"'):t.path?(n.path=t.path,this.address=t.path):(n.port=+t.port||6379,n.host=t.host||"127.0.0.1",n.family=!t.family&&o.isIP(n.host)||("IPv6"===t.family?6:4),this.address=n.host+":"+n.port),this.connection_options=n,this.connection_id=O.connection_id++,this.connected=!1,this.ready=!1,void 0===t.socket_keepalive&&(t.socket_keepalive=!0),void 0===t.socket_initial_delay&&(t.socket_initial_delay=0),t.rename_commands)t.rename_commands[l.toLowerCase()]=t.rename_commands[l];t.return_buffers=!!t.return_buffers,t.detect_buffers=!!t.detect_buffers,t.return_buffers&&t.detect_buffers&&(this.warn("WARNING: You activated return_buffers and detect_buffers at the same time. The return value is always going to be a buffer."),t.detect_buffers=!1),t.detect_buffers&&(this.handle_reply=A),this.should_buffer=!1,this.command_queue=new d,this.offline_queue=new d,this.pipeline_queue=new d,this.connect_timeout=+t.connect_timeout||36e5,this.enable_offline_queue=!1!==t.enable_offline_queue,this.initialize_retry_vars(),this.pub_sub_mode=0,this.subscription_set={},this.monitoring=!1,this.message_buffers=!1,this.closing=!1,this.server_info={},this.auth_pass=t.auth_pass||t.password,this.auth_user=t.auth_user||t.user,this.selected_db=t.db,this.fire_strings=!0,this.pipeline=!1,this.sub_commands_left=0,this.times_connected=0,this.buffers=t.return_buffers||t.detect_buffers,this.options=t,this.reply="ON",this.create_stream(),this.on("newListener",(function(t){"message_buffer"!==t&&"pmessage_buffer"!==t&&"messageBuffer"!==t&&"pmessageBuffer"!==t||this.buffers||this.message_buffers||(this.reply_parser.optionReturnBuffers=!0,this.message_buffers=!0,this.handle_reply=A)}))}e.debug_mode=/\bredis\b/i.test(t.env.NODE_DEBUG),c.inherits(O,v),O.connection_id=0,O.prototype.create_stream=function(){var t=this;if(this.reply_parser=function(t){return new y({returnReply:function(data){t.return_reply(data)},returnError:function(e){t.return_error(e)},returnFatalError:function(e){e.message+=". Please report this.",t.ready=!1,t.flush_and_error({message:"Fatal error encountered. Command aborted.",code:"NR_FATAL"},{error:e,queues:["command_queue"]}),t.emit("error",e),t.create_stream()},returnBuffers:t.buffers||t.message_buffers,stringNumbers:t.options.string_numbers||!1})}(this),this.options.stream){if(this.stream)return;this.stream=this.options.stream}else this.stream&&(this.stream.removeAllListeners(),this.stream.destroy()),this.options.tls?this.stream=l.connect(this.connection_options):this.stream=o.createConnection(this.connection_options);this.options.connect_timeout&&this.stream.setTimeout(this.connect_timeout,(function(){t.retry_totaltime=t.connect_timeout,t.connection_gone("timeout")}));var e=this.options.tls?"secureConnect":"connect";this.stream.once(e,(function(){this.removeAllListeners("timeout"),t.times_connected++,t.on_connect()})),this.stream.on("data",(function(e){x("Net read "+t.address+" id "+t.connection_id),t.reply_parser.execute(e)})),this.stream.on("error",(function(e){t.on_error(e)})),this.stream.once("close",(function(e){t.connection_gone("close")})),this.stream.once("end",(function(){t.connection_gone("end")})),this.stream.on("drain",(function(){t.drain()})),this.stream.setNoDelay(),void 0!==this.auth_pass&&(this.ready=!0,this.auth(this.auth_pass,this.auth_user,(function(e){e&&"UNCERTAIN_STATE"!==e.code&&t.emit("error",e)})),this.ready=!1)},O.prototype.handle_reply=function(t,e){return"hgetall"===e&&(t=f.reply_to_object(t)),t},O.prototype.cork=k,O.prototype.uncork=k,O.prototype.initialize_retry_vars=function(){this.retry_timer=null,this.retry_totaltime=0,this.retry_delay=200,this.retry_backoff=1.7,this.attempts=1},O.prototype.warn=function(e){var n=this;t.nextTick((function(){0!==n.listeners("warning").length?n.emit("warning",e):console.warn("node_redis:",e)}))},O.prototype.flush_and_error=function(t,n){for(var r,o=[],l=(n=n||{}).queues||["command_queue","offline_queue"],i=0;i<l.length;i++){"command_queue"===l[i]?t.message+=" It might have been processed.":t.message=t.message.replace(" It might have been processed.","");for(var c=this[l[i]].shift();c;c=this[l[i]].shift()){var f=new m.AbortError(t);c.error&&(f.stack=f.stack+c.error.stack.replace(/^Error.*?\n/,"\n")),f.command=c.command.toUpperCase(),c.args&&c.args.length&&(f.args=c.args),n.error&&(f.origin=n.error),"function"==typeof c.callback?c.callback(f):o.push(f)}}e.debug_mode&&o.length&&(1===o.length?r=o[0]:(t.message=t.message.replace("It","They").replace(/command/i,"$&s"),(r=new m.AggregateError(t)).errors=o),this.emit("error",r))},O.prototype.on_error=function(t){this.closing||(t.message="Redis connection to "+this.address+" failed - "+t.message,x(t.message),this.connected=!1,this.ready=!1,this.options.retry_strategy||this.emit("error",t),this.connection_gone("error",t))},O.prototype.on_connect=function(){x("Stream connected "+this.address+" id "+this.connection_id),this.connected=!0,this.ready=!1,this.emitted_end=!1,this.stream.setKeepAlive(this.options.socket_keepalive,this.options.socket_initial_delay),this.stream.setTimeout(0),this.emit("connect"),this.initialize_retry_vars(),this.options.no_ready_check?this.on_ready():this.ready_check()},O.prototype.on_ready=function(){var t=this;x("on_ready called "+this.address+" id "+this.connection_id),this.ready=!0,this.cork=function(){t.pipeline=!0,t.stream.cork&&t.stream.cork()},this.uncork=function(){t.fire_strings?t.write_strings():t.write_buffers(),t.pipeline=!1,t.fire_strings=!0,t.stream.uncork&&t.stream.uncork()},void 0!==this.selected_db&&this.internal_send_command(new h("select",[this.selected_db])),this.monitoring&&this.internal_send_command(new h("monitor",[]));var e=Object.keys(this.subscription_set).length;if(this.options.disable_resubscribing||!e)this.send_offline_queue(),this.emit("ready");else{var n=function(){0===--e&&t.emit("ready")};for(var r in x("Sending pub/sub on_ready commands"),this.subscription_set){var o=r.slice(0,r.indexOf("_")),l=this.subscription_set[r];this[o]([l],n)}this.send_offline_queue()}},O.prototype.on_info_cmd=function(t,e){if(t)return"ERR unknown command 'info'"===t.message?void this.on_ready():(t.message="Ready check failed: "+t.message,void this.emit("error",t));if(!e)return x("The info command returned without any data."),void this.on_ready();if(!this.server_info.loading||"0"===this.server_info.loading){if(!this.server_info.master_link_status||"up"===this.server_info.master_link_status)return x("Redis server ready."),void this.on_ready();this.server_info.loading_eta_seconds=.05}var n=1e3*+this.server_info.loading_eta_seconds;n>1e3&&(n=1e3),x("Redis server still loading, trying again in "+n),setTimeout((function(t){t.ready_check()}),n,this)},O.prototype.ready_check=function(){var t=this;x("Checking server ready state..."),this.ready=!0,this.info((function(e,n){t.on_info_cmd(e,n)})),this.ready=!1},O.prototype.send_offline_queue=function(){for(var t=this.offline_queue.shift();t;t=this.offline_queue.shift())x("Sending offline command: "+t.command),this.internal_send_command(t);this.drain()};var T=function(t,e){x("Retrying connection...");var n={delay:t.retry_delay,attempt:t.attempts,error:e};t.options.camel_case?(n.totalRetryTime=t.retry_totaltime,n.timesConnected=t.times_connected):(n.total_retry_time=t.retry_totaltime,n.times_connected=t.times_connected),t.emit("reconnecting",n),t.retry_totaltime+=t.retry_delay,t.attempts+=1,t.retry_delay=Math.round(t.retry_delay*t.retry_backoff),t.create_stream(),t.retry_timer=null};function C(t,e){var n=t.command_queue.shift();"function"==typeof n.callback?("exec"!==n.command&&(e=t.handle_reply(e,n.command,n.buffer_args)),n.callback(null,e)):x("No callback for reply")}function P(t,e){var n=e[0].toString();"message"===n?!t.options.return_buffers||t.message_buffers?(t.emit("message",e[1].toString(),e[2].toString()),t.emit("message_buffer",e[1],e[2]),t.emit("messageBuffer",e[1],e[2])):t.emit("message",e[1],e[2]):"pmessage"===n?!t.options.return_buffers||t.message_buffers?(t.emit("pmessage",e[1].toString(),e[2].toString(),e[3].toString()),t.emit("pmessage_buffer",e[1],e[2],e[3]),t.emit("pmessageBuffer",e[1],e[2],e[3])):t.emit("pmessage",e[1],e[2],e[3]):function(t,e,n){var r=t.command_queue.get(0),o=t.options.return_buffers||t.options.detect_buffers&&r.buffer_args||null===e[1]?e[1]:e[1].toString(),l=+e[2];if(x(n,o),null!==o&&(t.emit(n,o,l),"subscribe"===n||"psubscribe"===n?t.subscription_set[n+"_"+o]=o:(n="unsubscribe"===n?"subscribe":"psubscribe",delete t.subscription_set[n+"_"+o])),1===r.args.length||1===t.sub_commands_left||0===r.args.length&&(0===l||null===o)){if(0===l){var c,i=1;for(t.pub_sub_mode=0;c=t.command_queue.get(i);){if(S[c.command]){t.pub_sub_mode=i;break}i++}}t.command_queue.shift(),"function"==typeof r.callback&&r.callback(null,o),t.sub_commands_left=0}else 0!==t.sub_commands_left?t.sub_commands_left--:t.sub_commands_left=r.args.length?r.args.length-1:l}(t,e,n)}O.prototype.connection_gone=function(t,e){if(!this.retry_timer){if(e=e||null,x("Redis connection is gone from "+t+" event."),this.connected=!1,this.ready=!1,this.cork=k,this.uncork=k,this.pipeline=!1,this.pub_sub_mode=0,this.emitted_end||(this.emit("end"),this.emitted_end=!0),this.closing)return x("Connection ended by quit / end command, not retrying."),void this.flush_and_error({message:"Stream connection ended and command aborted.",code:"NR_CLOSED"},{error:e});if("function"==typeof this.options.retry_strategy){var n={attempt:this.attempts,error:e};if(this.options.camel_case?(n.totalRetryTime=this.retry_totaltime,n.timesConnected=this.times_connected):(n.total_retry_time=this.retry_totaltime,n.times_connected=this.times_connected),this.retry_delay=this.options.retry_strategy(n),"number"!=typeof this.retry_delay){this.retry_delay instanceof Error&&(e=this.retry_delay);var r="Redis connection in broken state: retry aborted.";this.flush_and_error({message:r,code:"CONNECTION_BROKEN"},{error:e});var o=new Error(r);return o.code="CONNECTION_BROKEN",e&&(o.origin=e),this.end(!1),void this.emit("error",o)}}if(this.retry_totaltime>=this.connect_timeout){var l="Redis connection in broken state: connection timeout exceeded.";this.flush_and_error({message:l,code:"CONNECTION_BROKEN"},{error:e});var c=new Error(l);return c.code="CONNECTION_BROKEN",e&&(c.origin=e),this.end(!1),void this.emit("error",c)}this.options.retry_unfulfilled_commands?(this.offline_queue.unshift.apply(this.offline_queue,this.command_queue.toArray()),this.command_queue.clear()):0!==this.command_queue.length&&this.flush_and_error({message:"Redis connection lost and command aborted.",code:"UNCERTAIN_STATE"},{error:e,queues:["command_queue"]}),this.retry_totaltime+this.retry_delay>this.connect_timeout&&(this.retry_delay=this.connect_timeout-this.retry_totaltime),x("Retry connection in "+this.retry_delay+" ms"),this.retry_timer=setTimeout(T,this.retry_delay,this,e)}},O.prototype.return_error=function(t){var e=this.command_queue.shift();e.error&&(t.stack=e.error.stack.replace(/^Error.*?\n/,"ReplyError: "+t.message+"\n")),t.command=e.command.toUpperCase(),e.args&&e.args.length&&(t.args=e.args),this.pub_sub_mode>1&&this.pub_sub_mode--;var n=t.message.match(f.err_code);n&&(t.code=n[1]),f.callback_or_emit(this,e.callback,t)},O.prototype.drain=function(){this.should_buffer=!1},O.prototype.return_reply=function(t){var e;if(this.monitoring&&("string"==typeof(e=this.buffers&&r.isBuffer(t)?t.toString():t)&&f.monitor_regex.test(e))){var n=e.slice(0,e.indexOf(" ")),o=e.slice(e.indexOf('"')+1,-1).split('" "').map((function(t){return t.replace(/\\"/g,'"')}));return void this.emit("monitor",n,o,e)}0===this.pub_sub_mode?C(this,t):1!==this.pub_sub_mode?(this.pub_sub_mode--,C(this,t)):!(t instanceof Array)||t.length<=2?C(this,t):P(this,t)},O.prototype.internal_send_command=function(e){var n,o,i=0,l="",c=e.args,h=e.command,d=c.length,v=!1,y=new Array(d);if(t.domain&&e.callback&&(e.callback=t.domain.bind(e.callback)),!1===this.ready||!1===this.stream.writable)return function(t,e){var n,r,o=e.command;t.closing||!t.enable_offline_queue?(o=o.toUpperCase(),r=t.closing?"The connection is already closed.":t.stream.writable?"The connection is not yet established and the offline queue is deactivated.":"Stream not writeable.",n=new m.AbortError({message:o+" can't be processed. "+r,code:"NR_CLOSED",command:o}),e.args.length&&(n.args=e.args),f.reply_in_order(t,e.callback,n)):(x("Queueing "+o+" for next server connection."),t.offline_queue.push(e)),t.should_buffer=!0}(this,e),!1;for(i=0;i<d;i+=1)if("string"==typeof c[i])c[i].length>3e4?(v=!0,y[i]=r.from(c[i],"utf8")):y[i]=c[i];else if("object"==typeof c[i])if(c[i]instanceof Date)y[i]=c[i].toString();else{if(!r.isBuffer(c[i])){var _=new Error("node_redis: The "+h.toUpperCase()+" command contains a invalid argument type.\nOnly strings, dates and buffers are accepted. Please update your code to use valid argument types.");if(_.command=e.command.toUpperCase(),e.args&&e.args.length&&(_.args=e.args),e.callback)return e.callback(_),!1;throw _}y[i]=c[i],e.buffer_args=!0,v=!0}else{if(void 0===c[i]){var E=new Error("node_redis: The "+h.toUpperCase()+' command contains a invalid argument type of "undefined".\nOnly strings, dates and buffers are accepted. Please update your code to use valid argument types.');return E.command=e.command.toUpperCase(),e.args&&e.args.length&&(E.args=e.args),e.callback(E),!1}y[i]=""+c[i]}if(this.options.prefix)for(i=(o=w.getKeyIndexes(h,y)).pop();void 0!==i;i=o.pop())y[i]=this.options.prefix+y[i];if(this.options.rename_commands&&this.options.rename_commands[h]&&(h=this.options.rename_commands[h]),l="*"+(d+1)+"\r\n$"+h.length+"\r\n"+h+"\r\n",!1===v){for(i=0;i<d;i+=1)n=y[i],l+="$"+r.byteLength(n)+"\r\n"+n+"\r\n";x("Send "+this.address+" id "+this.connection_id+": "+l),this.write(l)}else for(x("Send command ("+l+") has Buffer arguments"),this.fire_strings=!1,this.write(l),i=0;i<d;i+=1)"string"==typeof(n=y[i])?this.write("$"+r.byteLength(n)+"\r\n"+n+"\r\n"):(this.write("$"+n.length+"\r\n"),this.write(n),this.write("\r\n")),x("send_command: buffer send "+n.length+" bytes");return e.call_on_write&&e.call_on_write(),"ON"===this.reply?this.command_queue.push(e):(e.callback&&f.reply_in_order(this,e.callback,null,void 0,this.command_queue),"SKIP"===this.reply?this.reply="SKIP_ONE_MORE":"SKIP_ONE_MORE"===this.reply&&(this.reply="ON")),!this.should_buffer},O.prototype.write_strings=function(){for(var t="",e=this.pipeline_queue.shift();e;e=this.pipeline_queue.shift())t.length+e.length>4194304&&(this.should_buffer=!this.stream.write(t),t=""),t+=e;""!==t&&(this.should_buffer=!this.stream.write(t))},O.prototype.write_buffers=function(){for(var t=this.pipeline_queue.shift();t;t=this.pipeline_queue.shift())this.should_buffer=!this.stream.write(t)},O.prototype.write=function(data){!1!==this.pipeline?this.pipeline_queue.push(data):this.should_buffer=!this.stream.write(data)},Object.defineProperty(e,"debugMode",{get:function(){return this.debug_mode},set:function(t){this.debug_mode=t}}),Object.defineProperty(O.prototype,"command_queue_length",{get:function(){return this.command_queue.length}}),Object.defineProperty(O.prototype,"offline_queue_length",{get:function(){return this.offline_queue.length}}),Object.defineProperty(O.prototype,"retryDelay",{get:function(){return this.retry_delay}}),Object.defineProperty(O.prototype,"retryBackoff",{get:function(){return this.retry_backoff}}),Object.defineProperty(O.prototype,"commandQueueLength",{get:function(){return this.command_queue.length}}),Object.defineProperty(O.prototype,"offlineQueueLength",{get:function(){return this.offline_queue.length}}),Object.defineProperty(O.prototype,"shouldBuffer",{get:function(){return this.should_buffer}}),Object.defineProperty(O.prototype,"connectionId",{get:function(){return this.connection_id}}),Object.defineProperty(O.prototype,"serverInfo",{get:function(){return this.server_info}}),e.createClient=function(){return new O(E.apply(null,arguments))},e.RedisClient=O,e.print=f.print,e.Multi=n(240),e.AbortError=m.AbortError,e.RedisError=_.RedisError,e.ParserError=_.ParserError,e.ReplyError=_.ReplyError,e.AggregateError=m.AggregateError,n(600),n(601),e.addCommand=e.add_command=n(602)}).call(this,n(62),n(154).Buffer)},function(t,e,n){"use strict";(function(t){var r=n(580),o=n(581),l=n(582);function c(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=h.prototype:(null===t&&(t=new h(e)),t.length=e),t}function h(t,e,n){if(!(h.TYPED_ARRAY_SUPPORT||this instanceof h))return new h(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return d(this,t,e,n)}function d(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);h.TYPED_ARRAY_SUPPORT?(t=e).__proto__=h.prototype:t=y(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!h.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(e,n),o=(t=f(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(h.isBuffer(e)){var n=0|_(e.length);return 0===(t=f(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?f(t,0):y(t,e);if("Buffer"===e.type&&l(e.data))return y(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function m(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function v(t,e){if(m(e),t=f(t,e<0?0:0|_(e)),!h.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function y(t,e){var n=e.length<0?0:0|_(e.length);t=f(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function _(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function w(t,e){if(h.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(r)return Y(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return j(this,e,n);case"ascii":return F(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return M(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function E(b,t,e){var i=b[t];b[t]=b[e],b[e]=i}function S(t,e,n,r,o){if(0===t.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:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=h.from(e,r)),h.isBuffer(e))return 0===e.length?-1:k(t,e,n,r,o);if("number"==typeof e)return e&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):k(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function k(t,e,n,r,o){var i,l=1,c=t.length,f=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;l=2,c/=2,f/=2,n/=2}function h(t,i){return 1===l?t[i]:t.readUInt16BE(i*l)}if(o){var d=-1;for(i=n;i<c;i++)if(h(t,i)===h(e,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===f)return d*l}else-1!==d&&(i-=i-d),d=-1}else for(n+f>c&&(n=c-f),i=n;i>=0;i--){for(var m=!0,v=0;v<f;v++)if(h(t,i+v)!==h(e,v)){m=!1;break}if(m)return i}return-1}function A(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var l=e.length;if(l%2!=0)throw new TypeError("Invalid hex string");r>l/2&&(r=l/2);for(var i=0;i<r;++i){var c=parseInt(e.substr(2*i,2),16);if(isNaN(c))return i;t[n+i]=c}return i}function O(t,e,n,r){return X(Y(e,t.length-n),t,n,r)}function T(t,e,n,r){return X(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,n,r)}function C(t,e,n,r){return T(t,e,n,r)}function P(t,e,n,r){return X(K(e),t,n,r)}function I(t,e,n,r){return X(function(t,e){for(var n,r,o,l=[],i=0;i<t.length&&!((e-=2)<0);++i)r=(n=t.charCodeAt(i))>>8,o=n%256,l.push(o),l.push(r);return l}(e,t.length-n),t,n,r)}function M(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function j(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,l,c,f,h=t[i],d=null,m=h>239?4:h>223?3:h>191?2:1;if(i+m<=n)switch(m){case 1:h<128&&(d=h);break;case 2:128==(192&(o=t[i+1]))&&(f=(31&h)<<6|63&o)>127&&(d=f);break;case 3:o=t[i+1],l=t[i+2],128==(192&o)&&128==(192&l)&&(f=(15&h)<<12|(63&o)<<6|63&l)>2047&&(f<55296||f>57343)&&(d=f);break;case 4:o=t[i+1],l=t[i+2],c=t[i+3],128==(192&o)&&128==(192&l)&&128==(192&c)&&(f=(15&h)<<18|(63&o)<<12|(63&l)<<6|63&c)>65535&&f<1114112&&(d=f)}null===d?(d=65533,m=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),i+=m}return function(t){var e=t.length;if(e<=D)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=D));return n}(r)}e.Buffer=h,e.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},e.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=c(),h.poolSize=8192,h._augment=function(t){return t.__proto__=h.prototype,t},h.from=function(t,e,n){return d(null,t,e,n)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0})),h.alloc=function(t,e,n){return function(t,e,n,r){return m(e),e<=0?f(t,e):void 0!==n?"string"==typeof r?f(t,e).fill(n,r):f(t,e).fill(n):f(t,e)}(null,t,e,n)},h.allocUnsafe=function(t){return v(null,t)},h.allocUnsafeSlow=function(t){return v(null,t)},h.isBuffer=function(b){return!(null==b||!b._isBuffer)},h.compare=function(a,b){if(!h.isBuffer(a)||!h.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var t=a.length,e=b.length,i=0,n=Math.min(t,e);i<n;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0},h.isEncoding=function(t){switch(String(t).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}},h.concat=function(t,e){if(!l(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=h.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<t;i+=2)E(this,i,i+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<t;i+=4)E(this,i,i+3),E(this,i+1,i+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<t;i+=8)E(this,i,i+7),E(this,i+1,i+6),E(this,i+2,i+5),E(this,i+3,i+4);return this},h.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?j(this,0,t):x.apply(this,arguments)},h.prototype.equals=function(b){if(!h.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===h.compare(this,b)},h.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},h.prototype.compare=function(t,e,n,r,o){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var l=(o>>>=0)-(r>>>=0),c=(n>>>=0)-(e>>>=0),f=Math.min(l,c),d=this.slice(r,o),m=t.slice(e,n),i=0;i<f;++i)if(d[i]!==m[i]){l=d[i],c=m[i];break}return l<c?-1:c<l?1:0},h.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},h.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},h.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},h.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var l=!1;;)switch(r){case"hex":return A(this,t,e,n);case"utf8":case"utf-8":return O(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return P(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function F(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=Q(t[i]);return o}function N(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function B(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function V(t,e,n,r,o,l){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<l)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function z(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function U(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function $(t,e,n,r,o,l){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(t,e,n,r,l){return l||$(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function H(t,e,n,r,l){return l||$(t,0,n,8),o.write(t,e,n,r,52,8),n+8}h.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),h.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=h.prototype;else{var o=e-t;n=new h(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},h.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},h.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},h.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},h.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||V(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},h.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||V(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},h.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},h.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},h.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},h.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},h.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);V(this,t,e,n,o-1,-o)}var i=0,l=1,sub=0;for(this[e]=255&t;++i<n&&(l*=256);)t<0&&0===sub&&0!==this[e+i-1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+n},h.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);V(this,t,e,n,o-1,-o)}var i=n-1,l=1,sub=0;for(this[e+i]=255&t;--i>=0&&(l*=256);)t<0&&0===sub&&0!==this[e+i+1]&&(sub=1),this[e+i]=(t/l>>0)-sub&255;return e+n},h.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},h.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},h.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},h.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},h.prototype.writeFloatLE=function(t,e,n){return G(this,t,e,!0,n)},h.prototype.writeFloatBE=function(t,e,n){return G(this,t,e,!1,n)},h.prototype.writeDoubleLE=function(t,e,n){return H(this,t,e,!0,n)},h.prototype.writeDoubleBE=function(t,e,n){return H(this,t,e,!1,n)},h.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<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),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},h.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var code=t.charCodeAt(0);code<256&&(t=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=h.isBuffer(t)?t:Y(new h(t,r).toString()),l=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%l]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function Q(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){var n;e=e||1/0;for(var r=t.length,o=null,l=[],i=0;i<r;++i){if((n=t.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&l.push(239,191,189);continue}if(i+1===r){(e-=3)>-1&&l.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&l.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&l.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;l.push(n)}else if(n<2048){if((e-=2)<0)break;l.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;l.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return l}function K(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(36))},function(t,e,n){"use strict";(function(e,n){var r;function o(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var i=0;i<t.length;i++)e[i]=o(t[i]);return e}if("[object Object]"===Object.prototype.toString.call(t)){e={};for(var n,l=Object.keys(t);n=l.pop();)if("tls"!==n){var c=n.replace(/[A-Z][^A-Z]/g,"_$&").toLowerCase();c!==n.toLowerCase()&&(r=!0),e[c]=o(t[n])}else e[n]=t[n];return e}return t}function l(t,e,n,r){e?e(n,r):n&&t.emit("error",n)}t.exports={reply_to_strings:function t(n){if(n instanceof e)return n.toString();if(n instanceof Array){for(var r=new Array(n.length),i=0;i<n.length;i++)r[i]=t(n[i]);return r}return n},reply_to_object:function(t){if(0===t.length||!(t instanceof Array))return null;for(var e={},i=0;i<t.length;i+=2)e[t[i].toString("binary")]=t[i+1];return e},print:function(t,e){t?console.log(t.toString()):console.log("Reply: "+e)},err_code:/^([A-Z]+)\s+(.+)$/,monitor_regex:/^[0-9]{10,11}\.[0-9]+ \[[0-9]+ .+\].*"$/,clone:function(t){return r=!1,t=o(t)||{},r&&(t.camel_case=!0),t},callback_or_emit:l,reply_in_order:function(t,e,r,o,c){var f;if(f=c?c.peekBack():t.offline_queue.peekBack()||t.command_queue.peekBack()){var h=f.callback;f.callback=h?function(n,c){h(n,c),l(t,e,r,o)}:function(n,c){n&&t.emit("error",n),l(t,e,r,o)}}else n.nextTick((function(){l(t,e,r,o)}))}}}).call(this,n(154).Buffer,n(62))},function(t,e,n){"use strict";(function(e){var n=/development/i.test("production")||/\bredis\b/i.test(e.env.NODE_DEBUG);t.exports=function(t,e,r,o){this.command=t,this.args=e,this.buffer_args=!1,this.callback=r,this.call_on_write=o,n&&(this.error=new Error)}}).call(this,n(62))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPropsValues=function(t,e){return Object.keys(e).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})},e.bindProps=function(t,e,n){Object.keys(n).forEach((function(r){var c=n[r],f=c.twoWay,h=c.type,d=c.trackProperties;if(!c.noBind){var m="set".concat(l(r)),v="get".concat(l(r)),y="".concat(r.toLowerCase(),"_changed"),_=t[r];if(void 0===e[m])throw new Error("".concat(m," is not a method of (the Maps object corresponding to) ").concat(t.$options._componentTag));h===Object&&d?(0,o.default)(t,d.map((function(t){return"".concat(r,".").concat(t)})),(function(){e[m](t[r])}),void 0!==t[r]):t.$watch(r,(function(){var n=t[r];e[m](n)}),{immediate:void 0!==_,deep:h===Object}),f&&(t.$gmapOptions.autobindAllEvents||t.$listeners[y])&&e.addListener(y,(function(){t.$emit(y,e[v]())}))}}))};var r,o=(r=n(248))&&r.__esModule?r:{default:r};function l(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(161);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t){return c(t,[])}function c(t,e){switch(o(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return null===t?"null":function(t,e){if(-1!==e.indexOf(t))return"[Circular]";var n=[].concat(e,[t]),o=function(object){var t=object[String(r.a)];if("function"==typeof t)return t;if("function"==typeof object.inspect)return object.inspect}(t);if(void 0!==o){var l=o.call(t);if(l!==t)return"string"==typeof l?l:c(l,n)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";for(var n=Math.min(10,t.length),r=t.length-n,o=[],i=0;i<n;++i)o.push(c(t[i],e));1===r?o.push("... 1 more item"):r>1&&o.push("... ".concat(r," more items"));return"["+o.join(", ")+"]"}(t,n);return function(object,t){var e=Object.keys(object);if(0===e.length)return"{}";if(t.length>2)return"["+function(object){var t=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof object.constructor){var e=object.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(object)+"]";var n=e.map((function(e){return e+": "+c(object[e],t)}));return"{ "+n.join(", ")+" }"}(t,n)}(t,e);default:return String(t)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"print",(function(){return l}));var r=n(68),o=n(198);function l(t){return Object(r.b)(t,{leave:c})}var c={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return h(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var e=t.operation,n=t.name,r=m("(",h(t.variableDefinitions,", "),")"),o=h(t.directives," "),l=t.selectionSet;return n||o||r||"query"!==e?h([e,h([n,r]),o,l]," "):l},VariableDefinition:function(t){var e=t.variable,n=t.type,r=t.defaultValue,o=t.directives;return e+": "+n+m(" = ",r)+m(" ",h(o," "))},SelectionSet:function(t){return d(t.selections)},Field:function(t){var e=t.alias,n=t.name,r=t.arguments,o=t.directives,l=t.selectionSet,c=m("",e,": ")+n,f=c+m("(",h(r,", "),")");return f.length>80&&(f=c+m("(\n",v(h(r,"\n")),"\n)")),h([f,h(o," "),l]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+m(" ",h(t.directives," "))},InlineFragment:function(t){var e=t.typeCondition,n=t.directives,r=t.selectionSet;return h(["...",m("on ",e),h(n," "),r]," ")},FragmentDefinition:function(t){var e=t.name,n=t.typeCondition,r=t.variableDefinitions,o=t.directives,l=t.selectionSet;return"fragment ".concat(e).concat(m("(",h(r,", "),")")," ")+"on ".concat(n," ").concat(m("",h(o," ")," "))+l},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,e){var n=t.value;return t.block?Object(o.b)(n,"description"===e?"":"  "):JSON.stringify(n)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+h(t.values,", ")+"]"},ObjectValue:function(t){return"{"+h(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+m("(",h(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:f((function(t){var e=t.directives,n=t.operationTypes;return h(["schema",h(e," "),d(n)]," ")})),OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:f((function(t){return h(["scalar",t.name,h(t.directives," ")]," ")})),ObjectTypeDefinition:f((function(t){var e=t.name,n=t.interfaces,r=t.directives,o=t.fields;return h(["type",e,m("implements ",h(n," & ")),h(r," "),d(o)]," ")})),FieldDefinition:f((function(t){var e=t.name,n=t.arguments,r=t.type,o=t.directives;return e+(_(n)?m("(\n",v(h(n,"\n")),"\n)"):m("(",h(n,", "),")"))+": "+r+m(" ",h(o," "))})),InputValueDefinition:f((function(t){var e=t.name,n=t.type,r=t.defaultValue,o=t.directives;return h([e+": "+n,m("= ",r),h(o," ")]," ")})),InterfaceTypeDefinition:f((function(t){var e=t.name,n=t.interfaces,r=t.directives,o=t.fields;return h(["interface",e,m("implements ",h(n," & ")),h(r," "),d(o)]," ")})),UnionTypeDefinition:f((function(t){var e=t.name,n=t.directives,r=t.types;return h(["union",e,h(n," "),r&&0!==r.length?"= "+h(r," | "):""]," ")})),EnumTypeDefinition:f((function(t){var e=t.name,n=t.directives,r=t.values;return h(["enum",e,h(n," "),d(r)]," ")})),EnumValueDefinition:f((function(t){return h([t.name,h(t.directives," ")]," ")})),InputObjectTypeDefinition:f((function(t){var e=t.name,n=t.directives,r=t.fields;return h(["input",e,h(n," "),d(r)]," ")})),DirectiveDefinition:f((function(t){var e=t.name,n=t.arguments,r=t.repeatable,o=t.locations;return"directive @"+e+(_(n)?m("(\n",v(h(n,"\n")),"\n)"):m("(",h(n,", "),")"))+(r?" repeatable":"")+" on "+h(o," | ")})),SchemaExtension:function(t){var e=t.directives,n=t.operationTypes;return h(["extend schema",h(e," "),d(n)]," ")},ScalarTypeExtension:function(t){return h(["extend scalar",t.name,h(t.directives," ")]," ")},ObjectTypeExtension:function(t){var e=t.name,n=t.interfaces,r=t.directives,o=t.fields;return h(["extend type",e,m("implements ",h(n," & ")),h(r," "),d(o)]," ")},InterfaceTypeExtension:function(t){var e=t.name,n=t.interfaces,r=t.directives,o=t.fields;return h(["extend interface",e,m("implements ",h(n," & ")),h(r," "),d(o)]," ")},UnionTypeExtension:function(t){var e=t.name,n=t.directives,r=t.types;return h(["extend union",e,h(n," "),r&&0!==r.length?"= "+h(r," | "):""]," ")},EnumTypeExtension:function(t){var e=t.name,n=t.directives,r=t.values;return h(["extend enum",e,h(n," "),d(r)]," ")},InputObjectTypeExtension:function(t){var e=t.name,n=t.directives,r=t.fields;return h(["extend input",e,h(n," "),d(r)]," ")}};function f(t){return function(e){return h([e.description,t(e)],"\n")}}function h(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=null==t?void 0:t.filter((function(t){return t})).join(n))&&void 0!==e?e:""}function d(t){return m("{\n",v(h(t,"\n")),"\n}")}function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=e&&""!==e?t+e+n:""}function v(t){return m("  ",t.replace(/\n/g,"\n  "))}function y(t){return-1!==t.indexOf("\n")}function _(t){return null!=t&&t.some(y)}},,function(t,e,n){"use strict";var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;e.a=r},function(t,e,n){"use strict";(function(t,r){n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return l}));n(37),n(69);function o(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function l(t,e){return t.require(e)}}).call(this,n(62),n(236)(t))},function(t,e,n){"use strict";(function(t){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},r.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,l){function c(t){try{h(r.next(t))}catch(t){l(t)}}function f(t){try{h(r.throw(t))}catch(t){l(t)}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,f)}h((r=r.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,body){var e,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],n=0}finally{e=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},c=this&&this.__spreadArrays||function(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),n=0;for(i=0;i<t;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)e[n]=a[r];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionClient=void 0;var f=void 0!==t?t:"undefined"!=typeof window?window:{},h=f.WebSocket||f.MozWebSocket,d=n(605),m=n(606),v=n(607),y=n(608),_=n(159),w=n(609),x=n(251),E=n(610),S=n(611),k=n(252),A=function(){function t(t,e,n,r){var o=e||{},l=o.connectionCallback,c=void 0===l?void 0:l,f=o.connectionParams,v=void 0===f?{}:f,y=o.minTimeout,_=void 0===y?S.MIN_WS_TIMEOUT:y,w=o.timeout,x=void 0===w?S.WS_TIMEOUT:w,k=o.reconnect,A=void 0!==k&&k,O=o.reconnectionAttempts,T=void 0===O?1/0:O,C=o.lazy,P=void 0!==C&&C,I=o.inactivityTimeout,M=void 0===I?0:I,j=o.wsOptionArguments,D=void 0===j?[]:j;if(this.wsImpl=n||h,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||E.GRAPHQL_WS,this.connectionCallback=c,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=_,this.wsTimeout=x,this.unsentMessagesQueue=[],this.reconnect=A,this.reconnecting=!1,this.reconnectionAttempts=T,this.lazy=!!P,this.inactivityTimeout=M,this.closedByUser=!1,this.backoff=new d({jitter:.5}),this.eventEmitter=new m.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(v),this.wsOptionArguments=D,this.lazy||this.connect()}return Object.defineProperty(t.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),t.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,k.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},t.prototype.request=function(t){var e,n,r=this.getObserver.bind(this),o=this.executeOperation.bind(this),l=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[x.default]=function(){return this},e.subscribe=function(e,c,f){var h=r(e,c,f);return n=o(t,(function(t,e){null===t&&null===e?h.complete&&h.complete():t?h.error&&h.error(t[0]):h.next&&h.next(e)})),{unsubscribe:function(){n&&(l(n),n=null)}}},e},t.prototype.on=function(t,e,n){var r=this.eventEmitter.on(t,e,n);return function(){r.off(t,e,n)}},t.prototype.onConnected=function(t,e){return this.on("connected",t,e)},t.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},t.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},t.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},t.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},t.prototype.onError=function(t,e){return this.on("error",t,e)},t.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach((function(e){t.unsubscribe(e)}))},t.prototype.applyMiddlewares=function(t){var e=this;return new Promise((function(n,r){var o,l,f;o=c(e.middlewares),l=e,(f=function(e){if(e)r(e);else if(o.length>0){var c=o.shift();c&&c.applyMiddleware.apply(l,[t,f])}else n(t)})()}))},t.prototype.use=function(t){var e=this;return t.map((function(t){if("function"!=typeof t.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(t)})),this},t.prototype.getConnectionParams=function(t){return function(){return new Promise((function(e,n){if("function"==typeof t)try{return e(t.call(null))}catch(t){return n(t)}e(t)}))}},t.prototype.executeOperation=function(t,e){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:t,handler:e},this.applyMiddlewares(t).then((function(t){n.checkOperationOptions(t,e),n.operations[r]&&(n.operations[r]={options:t,handler:e},n.sendMessage(r,k.default.GQL_START,t))})).catch((function(t){n.unsubscribe(r),e(n.formatErrors(t))})),r},t.prototype.getObserver=function(t,e,n){return"function"==typeof t?{next:function(e){return t(e)},error:function(t){return e&&e(t)},complete:function(){return n&&n()}}:t},t.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,e=this.wsTimeout;return new d({min:t,max:e,factor:1.2})},t.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},t.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},t.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},t.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},t.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(t.operations).length&&t.close()}),this.inactivityTimeout))},t.prototype.checkOperationOptions=function(t,e){var n=t.query,r=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!v.default(n)&&!w.getOperationAST(n,o)||o&&!v.default(o)||r&&!y.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},t.prototype.buildMessage=function(t,e,n){return{id:t,type:e,payload:n&&n.query?r(r({},n),{query:"string"==typeof n.query?n.query:_.print(n.query)}):n}},t.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},t.prototype.sendMessage=function(t,e,n){this.sendMessageRaw(this.buildMessage(t,e,n))},t.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(e){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},t.prototype.generateOperationId=function(){return String(++this.nextOperationId)},t.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(e){t.unsentMessagesQueue.push(t.buildMessage(e,k.default.GQL_START,t.operations[e].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){t.connect()}),e)}},t.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach((function(e){t.sendMessageRaw(e)})),this.unsentMessagesQueue=[]},t.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},t.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},t.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,c([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return o(e,void 0,void 0,(function(){var t,e;return l(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=n.sent(),this.sendMessage(void 0,k.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return e=n.sent(),this.sendMessage(void 0,k.default.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){var data=t.data;e.processReceivedData(data)}},t.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch(e){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[k.default.GQL_DATA,k.default.GQL_COMPLETE,k.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case k.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case k.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case k.default.GQL_COMPLETE:var o=this.operations[n].handler;delete this.operations[n],o.call(this,null,null);break;case k.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case k.default.GQL_DATA:var l=e.payload.errors?r(r({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,l);break;case k.default.GQL_CONNECTION_KEEP_ALIVE:var c=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,c&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},t.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,k.default.GQL_STOP,void 0))},t}();e.SubscriptionClient=A}).call(this,n(36))},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return e}(t,i)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return Object.entries(t).map((function(t){var e=r(t,2),n=e[0],o=e[1],l={};return"type"in o&&(l.type=o.type),"default"in o&&(l.default=o.default),"required"in o&&(l.required=o.required),[n,l]})).reduce((function(t,e){var n=r(e,2),o=n[0],l=n[1];return t[o]=l,t}),{})}},,function(t,e,n){"use strict";n.r(e);var r=n(190),o=n.n(r);for(var l in r)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(l);e.default=o.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=n(157),l=(r=n(393))&&r.__esModule?r:{default:r};function c(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}var f={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},h={mounted:function(){var t=this,input=this.$refs.input;input.value=this.defaultPlace,this.$watch("defaultPlace",(function(){input.value=t.defaultPlace})),this.$gmapApiPromiseLazy().then((function(){var e=(0,o.getPropsValues)(t,f);if(t.selectFirstOnEnter&&(0,l.default)(t.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");t.autoCompleter=new google.maps.places.Autocomplete(t.$refs.input,e);var n=c(f,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,o.bindProps)(t,t.autoCompleter,n),t.autoCompleter.addListener("place_changed",(function(){t.$emit("place_changed",t.autoCompleter.getPlace())}))}))},created:function(){throw new Error("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:f};e.default=h},,,,,,,,function(t,e,n){"use strict";function r(t){var e=t.split(/\r\n|[\n\r]/g),n=function(t){for(var e,n=!0,r=!0,o=0,l=null,i=0;i<t.length;++i)switch(t.charCodeAt(i)){case 13:10===t.charCodeAt(i+1)&&++i;case 10:n=!1,r=!0,o=0;break;case 9:case 32:++o;break;default:r&&!n&&(null===l||o<l)&&(l=o),r=!1}return null!==(e=l)&&void 0!==e?e:0}(t);if(0!==n)for(var i=1;i<e.length;i++)e[i]=e[i].slice(n);for(var r=0;r<e.length&&o(e[r]);)++r;for(var l=e.length;l>r&&o(e[l-1]);)--l;return e.slice(r,l).join("\n")}function o(t){for(var i=0;i<t.length;++i)if(" "!==t[i]&&"\t"!==t[i])return!1;return!0}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===t.indexOf("\n"),o=" "===t[0]||"\t"===t[0],l='"'===t[t.length-1],c="\\"===t[t.length-1],f=!r||l||c||n,h="";return!f||r&&o||(h+="\n"+e),h+=e?t.replace(/\n/g,"\n"+e):t,f&&(h+="\n"),'"""'+h.replace(/"""/g,'\\"""')+'"""'}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return l}))},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r="<anonymous>";function o(t){try{return t&&"function"==typeof t&&t.name||r}catch(t){return r}}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));function r(t){return t.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l=/[^A-Z0-9]+/gi;function c(input,t){void 0===t&&(t={});for(var e=t.splitRegexp,n=void 0===e?o:e,c=t.stripRegexp,h=void 0===c?l:c,d=t.transform,m=void 0===d?r:d,v=t.delimiter,y=void 0===v?" ":v,_=f(f(input,n,"$1\0$2"),h,"\0"),w=0,x=_.length;"\0"===_.charAt(w);)w++;for(;"\0"===_.charAt(x-1);)x--;return _.slice(w,x).split("\0").map(m).join(y)}function f(input,t,e){return t instanceof RegExp?input.replace(t,e):t.reduce((function(input,t){return input.replace(t,e)}),input)}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));t.env;const r=Object.is("production","development"),{promisify:o}=n(152),l=n(153);class c{constructor(e="redis://127.0.0.1:6379",n=!0,c="r-",f=t&&!1,h){this.isActive=f,this.isActive&&(this.jsonEncode=n,r&&console.log("**create client called**"),this.store=l.createClient({url:e,prefix:c}),h&&this.store.on("error",(t=>{this.onError(t)})),this.client={get:t=>{const e=new Date;return o(this.store.get).bind(this.store)(t).finally(r&&console.log({action:"READ",key:t,start:e}))},set:(t,e)=>{const n=new Date;return o(this.store.set).bind(this.store)(t,e).finally(r&&console.log({action:"WRITE",key:t,start:n}))},setex:(t,e,n)=>{const l=new Date;return o(this.store.setex).bind(this.store)(t,e,n).finally(r&&console.log({action:"WRITE",key:t,start:l,expires:e}))}})}onError(t){console.error("Error connecting to redis",t)}disconnect(){this.isActive?r&&console.log("**disconnect called**"):r&&console.log("disconnect not working********",this.isActive),this.isActive&&this.store.quit()}read(t){return new Promise((async(e,n)=>{this.onError=t=>{n(t)};const r=await this.client.get(t);r||e(null);try{e(this.decode(r))}catch(t){console.error("read from redis json parse error",t),e(null)}}))}encode(t){return this.jsonEncode?JSON.stringify(t):t}decode(t){return this.jsonEncode?JSON.parse(t):t}async write(t,e,n=3600){return new Promise((async(r,o)=>{this.onError=t=>{o(t)},await this.client.setex(t,n,this.encode(e)),r(!0)}))}async fetch(t,e,n,r=!0){if(!this.isActive)return n();let o;try{if(o=await this.read(t),o)return o;o=await n(),o&&await this.write(t,o,e)}catch(t){return n()}finally{r&&this.disconnect()}return o}}}).call(this,n(62))},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(t,e)||g(t,e)||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 v(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||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 g(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}n.d(e,"a",(function(){return ur}));var w={DEBUG:!1,LIB_VERSION:"1.75.3"};Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t});var x="0123456789abcdef",b=function(){function t(e){if(c(this,t),this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}return f(t,[{key:"toString",value:function(){for(var t="",e=0;e<this.bytes.length;e++)t=t+x.charAt(this.bytes[e]>>>4)+x.charAt(15&this.bytes[e]),3!==e&&5!==e&&7!==e&&9!==e||(t+="-");if(36!==t.length)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new t(this.bytes.slice(0))}},{key:"equals",value:function(t){return 0===this.compareTo(t)}},{key:"compareTo",value:function(t){for(var e=0;e<16;e++){var n=this.bytes[e]-t.bytes[e];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(e,n,r,i){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||e<0||n<0||r<0||i<0||e>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=e/Math.pow(2,40),o[1]=e/Math.pow(2,32),o[2]=e/Math.pow(2,24),o[3]=e/Math.pow(2,16),o[4]=e/Math.pow(2,8),o[5]=e,o[6]=112|n>>>8,o[7]=n,o[8]=128|r>>>24,o[9]=r>>>16,o[10]=r>>>8,o[11]=r,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new t(o)}}]),t}(),E=function(){function t(){c(this,t),s(this,"timestamp",0),s(this,"counter",0),s(this,"random",new A)}return f(t,[{key:"generate",value:function(){var t=this.generateOrAbort();if(void 0!==t)return t;this.timestamp=0;var e=this.generateOrAbort();if(void 0===e)throw new Error("Could not generate UUID after timestamp reset");return e}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return b.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),t}(),S=function(t){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;e<t.length;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};"undefined"!=typeof crypto&&crypto.getRandomValues&&(S=function(t){return crypto.getRandomValues(t)});var k,A=function(){function t(){c(this,t),s(this,"buffer",new Uint32Array(8)),s(this,"cursor",1/0)}return f(t,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(S(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),t}(),O=Array.prototype,T=Object.prototype,C=T.toString,P=T.hasOwnProperty,I="undefined"!=typeof window?window:{},M=I.navigator||{userAgent:""},j=I.document||{},D=M.userAgent,F=["localhost","127.0.0.1"],R=O.forEach,L=O.indexOf,N=Array.isArray,B={},V=function(){if(w.DEBUG&&!X(window.console)&&window.console){for(var t=("__rrweb_original__"in window.console.log?window.console.log.__rrweb_original__:window.console.log),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];try{t.apply(window.console,n)}catch(e){G(n,(function(e){t(e)}))}}},z=function(){if(w.DEBUG&&!X(window.console)&&window.console){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=["PostHog error:"].concat(e),i="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{i.apply(window.console,r)}catch(t){G(r,(function(t){i(t)}))}}},U=function(){if(!X(window.console)&&window.console){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=["PostHog error:"].concat(e),i="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{i.apply(window.console,r)}catch(t){G(r,(function(t){i(t)}))}}},$=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function G(t,e,n){if(Array.isArray(t))if(R&&t.forEach===R)t.forEach(e,n);else if("length"in t&&t.length===+t.length)for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r)===B)return}function q(t,e,n){if(null!=t){if(Array.isArray(t))return G(t,e,n);for(var r in t)if(P.call(t,r)&&e.call(n,t[r],r)===B)return}}var H=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return G(n,(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},W=N||function(t){return"[object Array]"===C.call(t)},Q=function(t){try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}};function Y(t,e){return-1!==t.indexOf(e)}var K=function(t){return t===Object(t)&&!W(t)},X=function(t){return void 0===t},J=function(t){return"[object String]"==C.call(t)},Z=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},tt=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}catch(t){U("Implementation error. Please turn on debug and contact support@posthog.com."),U(t)}}},et=function(t){var e={};return q(t,(function(t,n){J(t)&&t.length>0&&(e[n]=t)})),e},nt=["$performance_raw"];function it(t,e){return n=t,r=function(t,n){return n&&nt.indexOf(n)>-1?t:"string"==typeof t&&null!==e?t.slice(0,e):t},i=new Set,function t(e,n){return e!==Object(e)?r?r(e,n):e:i.has(e)?void 0:(i.add(e),W(e)?(o=[],G(e,(function(e){o.push(t(e))}))):(o={},q(e,(function(e,n){i.has(e)||(o[n]=t(e,n))}))),o);var o}(n);var n,r,i}function ot(t){var e,n,r,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,l="",c=[];if(!t)return t;t=at(t);do{e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,c[u++]=s.charAt(e)+s.charAt(n)+s.charAt(r)+s.charAt(i)}while(a<t.length);switch(l=c.join(""),t.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l}var at=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var s=t.charCodeAt(i),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>e&&(o+=t.substring(e,n)),o+=a,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o},st=function(t){var e=function(){var t=(new Date).valueOf(),e=0;if(I.performance&&I.performance.now)e=1e4*I.performance.now();else for(;t==(new Date).valueOf();)e++;return t.toString(16)+Math.floor(e).toString(16)};return function(n){if("og"===n||"og"===t){var r="undefined"!=typeof window?(window.screen.height*window.screen.width).toString(16):"0";return e()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var t,e,n=D,r=0,i=[];function o(t,e){var n,r=0;for(n=0;n<e.length;n++)r|=i[n]<<8*n;return t^r}for(t=0;t<n.length;t++)e=n.charCodeAt(t),i.unshift(255&e),i.length>=4&&(r=o(r,i),i=[]);return i.length>0&&(r=o(r,i)),r.toString(16)}()+"-"+r+"-"+e()}return(k||(k=new E)).generate().toString()}},ut=function(t){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(t)},lt=function(t,e){var n=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(t);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(t){z("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},ct=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},ft=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,n,r,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(n,r,!!o);else{var s="on"+n,a=e[s];e[s]=function(e,n,r){return function(i){if(i=i||t(window.event)){var o,s=!0;Q(r)&&(o=r(i));var a=n.call(e,i);return!1!==o&&!1!==a||(s=!1),s}}}(e,r,a)}else z("No valid element provided to register_event")}}();function ht(t,e){var n=function(){var n=j.createElement("script");n.type="text/javascript",n.src=t,n.onload=function(t){return e(void 0,t)},n.onerror=function(t){return e(t)};var r,i=j.querySelectorAll("body > script");i.length>0?null===(r=i[0].parentNode)||void 0===r||r.insertBefore(n,i[0]):j.body.appendChild(n)};j.body?n():j.addEventListener("DOMContentLoaded",n)}var pt={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(t||[]),n={};return q(e,(function(t){var e=lt(j.URL,t);e.length&&(n[t]=e)})),n},searchEngine:function(){var t=j.referrer;return t?0===t.search("https?://(.*)google.([^/?]*)")?"google":0===t.search("https?://(.*)bing.com")?"bing":0===t.search("https?://(.*)yahoo.com")?"yahoo":0===t.search("https?://(.*)duckduckgo.com")?"duckduckgo":null:null},searchInfo:function(){var t=pt.searchEngine(),e="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var r=lt(j.referrer,e);r.length&&(n.ph_keyword=r)}return n},browser:function(t,e,n){return e=e||"",n||Y(t," OPR/")?Y(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":Y(t,"IEMobile")||Y(t,"WPDesktop")?"Internet Explorer Mobile":Y(t,"SamsungBrowser/")?"Samsung Internet":Y(t,"Edge")||Y(t,"Edg/")?"Microsoft Edge":Y(t,"FBIOS")?"Facebook Mobile":Y(t,"Chrome")?"Chrome":Y(t,"CriOS")?"Chrome iOS":Y(t,"UCWEB")||Y(t,"UCBrowser")?"UC Browser":Y(t,"FxiOS")?"Firefox iOS":Y(e,"Apple")?Y(t,"Mobile")?"Mobile Safari":"Safari":Y(t,"Android")?"Android Mobile":Y(t,"Konqueror")?"Konqueror":Y(t,"Firefox")?"Firefox":Y(t,"MSIE")||Y(t,"Trident/")?"Internet Explorer":Y(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[pt.browser(t,e,n)];if(void 0===r)return null;var i=t.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return M.language||M.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return"iPad"===e||"Android Tablet"===e?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return j.referrer||"$direct"},referringDomain:function(){if(!j.referrer)return"$direct";var t=j.createElement("a");return t.href=j.referrer,t.host},properties:function(){var t=pt.os(D),e=t.os_name,n=t.os_version;return H(et({$os:e,$os_version:n,$browser:pt.browser(D,M.vendor,I.opera),$device:pt.device(D),$device_type:pt.deviceType(D)}),{$current_url:null==I?void 0:I.location.href,$host:null==I?void 0:I.location.host,$pathname:null==I?void 0:I.location.pathname,$browser_version:pt.browserVersion(D,M.vendor,I.opera),$browser_language:pt.browserLanguage(),$screen_height:null==I?void 0:I.screen.height,$screen_width:null==I?void 0:I.screen.width,$viewport_height:null==I?void 0:I.innerHeight,$viewport_width:null==I?void 0:I.innerWidth,$lib:"web",$lib_version:w.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Z()/1e3})},people_properties:function(){var t=pt.os(D),e=t.os_name,n=t.os_version;return H(et({$os:e,$os_version:n,$browser:pt.browser(D,M.vendor,I.opera)}),{$browser_version:pt.browserVersion(D,M.vendor,I.opera)})}};function mt(t){switch(l(t.className)){case"string":return t.className;case"object":return("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";default:return""}}function vt(t){var e="";return xt(t)&&!Et(t)&&t.childNodes&&t.childNodes.length&&q(t.childNodes,(function(t){bt(t)&&t.textContent&&(e+=$(t.textContent).split(/(\s+)/).filter(St).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),$(e)}function yt(t){return!!t&&1===t.nodeType}function gt(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function bt(t){return!!t&&3===t.nodeType}function _t(t){return!!t&&11===t.nodeType}var wt=["a","button","form","input","select","textarea","label"];function xt(t){for(var e=t;e.parentNode&&!gt(e,"body");e=e.parentNode){var n=mt(e).split(" ");if(Y(n,"ph-sensitive")||Y(n,"ph-no-capture"))return!1}if(Y(mt(t).split(" "),"ph-include"))return!0;var r=t.type||"";if("string"==typeof r)switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=t.name||t.id||"";return"string"!=typeof i||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function Et(t){return!!(gt(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||gt(t,"select")||gt(t,"textarea")||"true"===t.getAttribute("contenteditable"))}function St(t){if(null===t||X(t))return!1;if("string"==typeof t){if(t=$(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(t))return!1}return!0}function kt(t){var e=vt(t);return St(e="".concat(e," ").concat(At(t)).trim())?e:""}function At(t){var e="";return t&&t.childNodes&&t.childNodes.length&&q(t.childNodes,(function(t){var n;if(t&&"span"===(null===(n=t.tagName)||void 0===n?void 0:n.toLowerCase()))try{var r=vt(t);e="".concat(e," ").concat(r).trim(),t.childNodes&&t.childNodes.length&&(e="".concat(e," ").concat(At(t)).trim())}catch(t){console.error(t)}})),e}var Ot=function(){function t(e){c(this,t),this.clicks=[],this.enabled=e}return f(t,[{key:"isRageClick",value:function(t,e,n){if(!this.enabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(t-r.x)+Math.abs(e-r.y)<30&&n-r.timestamp<1e3){if(this.clicks.push({x:t,y:e,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:t,y:e,timestamp:n}];return!1}}]),t}(),Tt=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Ct={is_supported:function(){return!0},error:function(t){z("cookieStore error: "+t)},get:function(t){try{for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return decodeURIComponent(i.substring(e.length,i.length))}}catch(t){}return null},parse:function(t){var e;try{e=JSON.parse(Ct.get(t))||{}}catch(t){}return e},set:function(t,e,n,r,i){try{var o="",s="",a="";if(r){var u=document.location.hostname.match(Tt),l=u?u[0]:"";o=l?"; domain=."+l:""}if(n){var c=new Date;c.setTime(c.getTime()+24*n*60*60*1e3),s="; expires="+c.toUTCString()}i&&(a="; secure");var f=t+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+o+a;return document.cookie=f,f}catch(t){return}},remove:function(t,e){try{Ct.set(t,"",-1,e)}catch(t){return}}},Pt=null,It={is_supported:function(){if(null!==Pt)return Pt;var t=!0;if("undefined"!=typeof window)try{var e="__mplssupport__";It.set(e,"xyz"),'"xyz"'!==It.get(e)&&(t=!1),It.remove(e)}catch(e){t=!1}else t=!1;return t||z("localStorage unsupported; falling back to cookie store"),Pt=t,t},error:function(t){z("localStorage error: "+t)},get:function(t){try{return window.localStorage.getItem(t)}catch(t){It.error(t)}return null},parse:function(t){try{return JSON.parse(It.get(t))||{}}catch(t){}return null},set:function(t,e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch(t){It.error(t)}},remove:function(t){try{window.localStorage.removeItem(t)}catch(t){It.error(t)}}},Mt=o(o({},It),{},{parse:function(t){try{var e={};try{(e=Ct.parse(t)||{}).distinct_id&&Ct.set(t,{distinct_id:e.distinct_id})}catch(t){}var n=H(e,JSON.parse(It.get(t)||"{}"));return It.set(t,n),n}catch(t){}return null},set:function(t,e,n,r,i){try{It.set(t,e),e.distinct_id&&Ct.set(t,{distinct_id:e.distinct_id},n,r,i)}catch(t){It.error(t)}},remove:function(t,e){try{window.localStorage.removeItem(t),Ct.remove(t,e)}catch(t){It.error(t)}}}),jt={},Dt={is_supported:function(){return!0},error:function(t){z("memoryStorage error: "+t)},get:function(t){return jt[t]||null},parse:function(t){return jt[t]||null},set:function(t,e){jt[t]=e},remove:function(t){delete jt[t]}},Ft=null,Rt={is_supported:function(){if(null!==Ft)return Ft;if(Ft=!0,"undefined"!=typeof window)try{var t="__support__";Rt.set(t,"xyz"),'"xyz"'!==Rt.get(t)&&(Ft=!1),Rt.remove(t)}catch(t){Ft=!1}else Ft=!1;return Ft},error:function(t){w.DEBUG&&z("sessionStorage error: ",t)},get:function(t){try{return window.sessionStorage.getItem(t)}catch(t){Rt.error(t)}return null},parse:function(t){try{return JSON.parse(Rt.get(t))||null}catch(t){}return null},set:function(t,e){try{window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){Rt.error(t)}},remove:function(t){try{window.sessionStorage.removeItem(t)}catch(t){Rt.error(t)}}},Lt="$people_distinct_id",Nt="__alias",Bt="__timers",Vt="$autocapture_disabled_server_side",zt="$session_recording_enabled_server_side",qt="$console_log_recording_enabled_server_side",Ut="$session_recording_recorder_version_server_side",$t="$sesid",Gt="$enabled_feature_flags",Ht="$early_access_features",Wt="$stored_person_properties",Qt="$stored_group_properties",Yt="$surveys",Kt="$flag_call_reported",Xt="$user_state",Jt="$posthog_quota_limited",Zt=[Lt,Nt,"__cmpns",Bt,zt,$t,Gt,Xt,Jt,Ht,Qt,Wt,Yt,Kt],te=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],ee=function(){function t(e){c(this,t);var n="";e.token&&(n=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+n+"_posthog",-1===te.indexOf(e.persistence.toLowerCase())&&(U("Unknown persistence type "+e.persistence+"; falling back to cookie"),e.persistence="cookie");var i=e.persistence.toLowerCase();"localstorage"===i&&It.is_supported()?this.storage=It:"localstorage+cookie"===i&&Mt.is_supported()?this.storage=Mt:"sessionstorage"===i&&Rt.is_supported()?this.storage=Rt:this.storage="memory"===i?Dt:Ct,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return f(t,[{key:"properties",value:function(){var t={};return q(this.props,(function(e,n){if(n===Gt&&"object"===l(e))for(var i=Object.keys(e),r=0;r<i.length;r++)t["$feature/".concat(i[r])]=e[i[r]];else a=n,u=!1,(null===(s=Zt)?u:L&&s.indexOf===L?-1!=s.indexOf(a):(q(s,(function(t){if(u||(u=t===a))return B})),u))||(t[n]=e);var s,a,u})),t}},{key:"load",value:function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=H({},t))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(t,e,n){var r=this;if(K(t)){void 0===e&&(e="None"),this.expire_days=void 0===n?this.default_expiry:n;var i=!1;if(q(t,(function(t,n){r.props.hasOwnProperty(n)&&r.props[n]!==e||(r.props[n]=t,i=!0)})),i)return this.save(),!0}return!1}},{key:"register",value:function(t,e){var n=this;if(K(t)){this.expire_days=void 0===e?this.default_expiry:e;var r=!1;if(q(t,(function(e,i){t.hasOwnProperty(i)&&n.props[i]!==e&&(n.props[i]=e,r=!0)})),r)return this.save(),!0}return!1}},{key:"unregister",value:function(t){t in this.props&&(delete this.props[t],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(pt.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(pt.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||pt.referrer(),$referring_domain:this.props.$referring_domain||pt.referringDomain()})}},{key:"get_referrer_info",value:function(){return et({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(t){return q(this.props,(function(e,n){n in t||(t[n]=e)})),t}},{key:"update_config",value:function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)}},{key:"set_disabled",value:function(t){this.disabled=t,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(t){t!==this.secure&&(this.secure=t,this.remove(),this.save())}},{key:"set_event_timer",value:function(t,e){var n=this.props[Bt]||{};n[t]=e,this.props[Bt]=n,this.save()}},{key:"remove_event_timer",value:function(t){var e=(this.props[Bt]||{})[t];return X(e)||(delete this.props[Bt][t],this.save()),e}},{key:"get_user_state",value:function(){return this.props[Xt]||"anonymous"}},{key:"set_user_state",value:function(t){this.props[Xt]=t,this.save()}},{key:"get_quota_limits",value:function(){return this.props[Jt]||{}}},{key:"set_quota_limits",value:function(t){this.props[Jt]=t,this.save()}}]),t}(),ne={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e,n=null===this._isDisabledServerSide?!(null===(e=t.persistence)||void 0===e||!e.props[Vt]):this._isDisabledServerSide,r=!!t.get_config("autocapture");this._isAutocaptureEnabled=r&&!n},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do{e=e.previousSibling}while(e&&!yt(e));return e},_getAugmentPropertiesFromElement:function(t){if(!xt(t))return{};var e={};return q(t.attributes,(function(t){if(0===t.name.indexOf("data-ph-capture-attribute")){var n=t.name.replace("data-ph-capture-attribute-",""),r=t.value;n&&r&&St(r)&&(e[n]=r)}})),e},_getPropertiesFromElement:function(t,e,n){var r=t.tagName.toLowerCase(),i={tag_name:r};wt.indexOf(r)>-1&&!n&&("a"===r.toLowerCase()||"button"===r.toLowerCase()?i.$el_text=kt(t):i.$el_text=vt(t));var o=mt(t);o.length>0&&(i.classes=o.split(" ").filter((function(t){return""!==t}))),q(t.attributes,(function(n){var r;Et(t)&&-1===["name","id","class"].indexOf(n.name)||!e&&St(n.value)&&("string"!=typeof(r=n.name)||"_ngcontent"!==r.substring(0,10)&&"_nghost"!==r.substring(0,7))&&(i["attr__"+n.name]=n.value)}));for(var s=1,a=1,u=t;u=this._previousElementSibling(u);)s++,u.tagName===t.tagName&&a++;return i.nth_child=s,i.nth_of_type=a,i},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return q(document.querySelectorAll(t.css_selector),(function(t){var n;["input","select"].indexOf(t.tagName.toLowerCase())>-1?n=t.value:t.textContent&&(n=t.textContent),St(n)&&e.push(n)})),e.join(", ")},_getCustomProperties:function(t){var e=this,n={};return q(this._customProperties,(function(r){q(r.event_selectors,(function(i){q(document.querySelectorAll(i),(function(i){Y(t,i)&&xt(i)&&(n[r.name]=e._extractCustomPropertyValue(r))}))}))})),n},_getEventTarget:function(t){return void 0===t.target?t.srcElement||null:null!==(e=t.target)&&void 0!==e&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$autocapture",o=this._getEventTarget(t);if(bt(o)&&(o=o.parentNode||null),"$autocapture"===i&&"click"===t.type&&t instanceof MouseEvent&&null!==(n=this.rageclicks)&&void 0!==n&&n.isRageClick(t.clientX,t.clientY,(new Date).getTime())&&this._captureEvent(t,e,"$rageclick"),o&&function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!t||gt(t,"html")||!yt(t))return!1;if(null!=n&&n.url_allowlist){var r=window.location.href,i=n.url_allowlist;if(i&&!i.some((function(t){return r.match(t)})))return!1}if(null!=n&&n.dom_event_allowlist){var o=n.dom_event_allowlist;if(o&&!o.some((function(t){return e.type===t})))return!1}if(null!=n&&n.element_allowlist){var s=n.element_allowlist;if(s&&!s.some((function(e){return t.tagName.toLowerCase()===e})))return!1}if(null!=n&&n.css_selector_allowlist){var a=n.css_selector_allowlist;if(a&&!a.some((function(e){return t.matches(e)})))return!1}for(var u=!1,l=[t],c=!0,f=t;f.parentNode&&!gt(f,"body");)if(_t(f.parentNode))l.push(f.parentNode.host),f=f.parentNode.host;else{if(!(c=f.parentNode||!1))break;if(wt.indexOf(c.tagName.toLowerCase())>-1)u=!0;else{var h=window.getComputedStyle(c);h&&"pointer"===h.getPropertyValue("cursor")&&(u=!0)}l.push(c),f=c}var p=window.getComputedStyle(t);if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===e.type)return!0;var d=t.tagName.toLowerCase();switch(d){case"html":return!1;case"form":return"submit"===e.type;case"input":case"select":case"textarea":return"change"===e.type||"click"===e.type;default:return u?"click"===e.type:"click"===e.type&&(wt.indexOf(d)>-1||"true"===t.getAttribute("contenteditable"))}}(o,t,this.config)){for(var s=[o],a=o;a.parentNode&&!gt(a,"body");)_t(a.parentNode)?(s.push(a.parentNode.host),a=a.parentNode.host):(s.push(a.parentNode),a=a.parentNode);var u,l=[],c={},f=!1;if(q(s,(function(t){var n=xt(t);"a"===t.tagName.toLowerCase()&&(u=t.getAttribute("href"),u=n&&St(u)&&u),Y(mt(t).split(" "),"ph-no-capture")&&(f=!0),l.push(r._getPropertiesFromElement(t,e.get_config("mask_all_element_attributes"),e.get_config("mask_all_text")));var i=r._getAugmentPropertiesFromElement(t);H(c,i)})),e.get_config("mask_all_text")||("a"===o.tagName.toLowerCase()||"button"===o.tagName.toLowerCase()?l[0].$el_text=kt(o):l[0].$el_text=vt(o)),u&&(l[0].attr__href=u),f)return!1;var h=H(this._getDefaultProperties(t.type),{$elements:l},this._getCustomProperties(s),c);return e.capture(i,h),!0}},_navigate:function(t){window.location.href=t},_addDomEventHandlers:function(t){var e=this,n=function(n){n=n||window.event,e._captureEvent(n,t)};ft(document,"submit",n,!1,!0),ft(document,"change",n,!1,!0),ft(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;"boolean"!=typeof t.__autocapture&&(this.config=t.__autocapture),null!==(e=this.config)&&void 0!==e&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map((function(t){return new RegExp(t)}))),this.rageclicks=new Ot(t.get_config("rageclick"))},afterDecideResponse:function(t,e){var n=e.get_config("token");this._initializedTokens.indexOf(n)>-1?V('autocapture already initialized for token "'+n+'"'):(e.persistence&&e.persistence.register(s({},Vt,!!t.autocapture_opt_out)),this._isDisabledServerSide=!!t.autocapture_opt_out,this._setIsAutocaptureEnabled(e),this._initializedTokens.push(n),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,n){if(!t)return!0;e=X(e)?10:e,n=X(n)?10:n;for(var r=0,i=0;i<t.length;i++)r+=t.charCodeAt(i);return r%e<n},isBrowserSupported:function(){return Q(document.querySelectorAll)}};!function(t){for(var e in t)"function"==typeof t[e]&&(t[e]=t[e].bind(t))}(ne),function(t){for(var e in t)"function"==typeof t[e]&&(t[e]=tt(t[e]))}(ne);var re,ie="$active_feature_flags",oe="$override_feature_flags",ae="$feature_flag_payloads",se=function(t){var e,n={},r=_(function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}(t||{}));try{for(r.s();!(e=r.n()).done;){var i=p(e.value,2),o=i[0],s=i[1];s&&(n[o]=s)}}catch(t){r.e(t)}finally{r.f()}return n},rt=function(){function t(e){c(this,t),this.instance=e,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return f(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var t=this.instance.get_property(Gt),e=this.instance.get_property(oe);if(!e)return t||{};for(var n=H({},t),r=Object.keys(e),i=0;i<r.length;i++)!1===e[r[i]]?delete n[r[i]]:n[r[i]]=e[r[i]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(ae)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(t){this.$anon_distinct_id=t}},{key:"setReloadingPaused",value:function(t){this.reloadFeatureFlagsInAction=t}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var t=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout((function(){!t.reloadFeatureFlagsInAction&&t.reloadFeatureFlagsQueued&&(t.reloadFeatureFlagsQueued=!1,t._reloadFeatureFlagsRequest())}),5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var t=this;this.setReloadingPaused(!0);var e=this.instance.get_config("token"),n=this.instance.get_property(Wt),r=this.instance.get_property(Qt),i=ot(JSON.stringify({token:e,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:r,disable_flags:this.instance.get_config("advanced_disable_feature_flags")||void 0}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:i},{method:"POST"},this.instance._prepare_callback((function(e){t.$anon_distinct_id=void 0,t.receivedFeatureFlags(e),t.setReloadingPaused(!1),t._startReloadTimer()})))}},{key:"getFeatureFlag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var n=this.getFlagVariants()[t],r="".concat(n),i=this.instance.get_property(Kt)||{};return!e.send_event&&"send_event"in e||t in i&&i[t].includes(r)||(Array.isArray(i[t])?i[t].push(r):i[t]=[r],this.instance.persistence.register(s({},Kt,i)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}console.warn('getFeatureFlag for key "'+t+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,e);console.warn('isFeatureEnabled for key "'+t+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((function(e){return e!==t}))}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var e=this.getFlagVariants(),n=this.getFlagPayloads();!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.featureFlags,a=t.featureFlagPayloads;if(r)if(Array.isArray(r)){var u,l={};if(r)for(var c=0;c<r.length;c++)l[r[c]]=!0;e&&e.register((s(u={},ie,r),s(u,Gt,l),u))}else{var f,h=r,p=a;t.errorsWhileComputingFlags&&(h=o(o({},n),h),p=o(o({},i),p)),e&&e.register((s(f={},ie,Object.keys(se(h))),s(f,Gt,h||{}),s(f,ae,p||{}),f))}}(t,this.instance.persistence,e,n),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(t){if(this._override_warning=!1,!1===t)this.instance.persistence.unregister(oe);else if(Array.isArray(t)){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;this.instance.persistence.register(s({},oe,e))}else this.instance.persistence.register(s({},oe,t))}},{key:"onFeatureFlags",value:function(t){var e=this;if(this.addFeatureFlagsHandler(t),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks(),r=n.flags,i=n.flagVariants;t(r,i)}return function(){return e.removeFeatureFlagsHandler(t)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,e){var n,i=s({},"$feature_enrollment/".concat(t),e);this.instance.capture("$feature_enrollment_update",{$feature_flag:t,$feature_enrollment:e,$set:i}),this.setPersonPropertiesForFlags(i,!1);var r=o(o({},this.getFlagVariants()),{},s({},t,e));this.instance.persistence.register((s(n={},ie,Object.keys(se(r))),s(n,Gt,r),n)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.instance.get_property(Ht);if(r&&!n)return t(r);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},(function(n){var r=n.earlyAccessFeatures;return e.instance.persistence.register(s({},Ht,r)),t(r)}))}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((function(t){return e[t]})),flagVariants:Object.keys(e).filter((function(t){return e[t]})).reduce((function(t,n){return t[n]=e[n],t}),{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),e=t.flags,n=t.flagVariants;this.featureFlagEventHandlers.forEach((function(t){return t(e,n)}))}},{key:"setPersonPropertiesForFlags",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(Wt)||{};this.instance.register(s({},Wt,o(o({},n),t))),e&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(Wt)}},{key:"setGroupPropertiesForFlags",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(Qt)||{};0!==Object.keys(n).length&&Object.keys(n).forEach((function(e){n[e]=o(o({},n[e]),t[e]),delete t[e]})),this.instance.register(s({},Qt,o(o({},n),t))),e&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var e=this.instance.get_property(Qt)||{};this.instance.register(s({},Qt,o(o({},e),{},s({},t,{}))))}else this.instance.unregister(Qt)}}]),t}(),ue=2,le=4,ce=f((function t(e){var n,i,r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),s(this,"bucketSize",100),s(this,"refillRate",10),s(this,"mutationBuckets",{}),s(this,"loggedTracker",{}),s(this,"refillBuckets",(function(){Object.keys(r.mutationBuckets).forEach((function(t){r.mutationBuckets[t]=r.mutationBuckets[t]+r.refillRate,r.mutationBuckets[t]>=r.bucketSize&&delete r.mutationBuckets[t]}))})),s(this,"getNodeOrRelevantParent",(function(t){var e=r.rrweb.mirror.getNode(t);if("svg"!==(null==e?void 0:e.nodeName)&&e instanceof Element){var n=e.closest("svg");if(n)return[r.rrweb.mirror.getId(n),n]}return[t,e]})),s(this,"numberOfChanges",(function(t){var e,n,r,i,o,s,a,u;return(null!==(e=null===(n=t.removes)||void 0===n?void 0:n.length)&&void 0!==e?e:0)+(null!==(r=null===(i=t.attributes)||void 0===i?void 0:i.length)&&void 0!==r?r:0)+(null!==(o=null===(s=t.texts)||void 0===s?void 0:s.length)&&void 0!==o?o:0)+(null!==(a=null===(u=t.adds)||void 0===u?void 0:u.length)&&void 0!==a?a:0)})),s(this,"throttleMutations",(function(t){if(3!==t.type||0!==t.data.source)return t;var e=t.data,n=r.numberOfChanges(e);e.attributes&&(e.attributes=e.attributes.filter((function(t){var e,n,o,i=p(r.getNodeOrRelevantParent(t.id),2),s=i[0],a=i[1];return 0!==r.mutationBuckets[s]&&(r.mutationBuckets[s]=null!==(e=r.mutationBuckets[s])&&void 0!==e?e:r.bucketSize,r.mutationBuckets[s]=Math.max(r.mutationBuckets[s]-1,0),0===r.mutationBuckets[s]&&(r.loggedTracker[s]||(r.loggedTracker[s]=!0,null===(n=(o=r.options).onBlockedNode)||void 0===n||n.call(o,s,a))),t)})));var o=r.numberOfChanges(e);return 0!==o||n===o?t:void 0})),this.rrweb=e,this.options=a,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(i=this.options.bucketSize)&&void 0!==i?i:this.bucketSize,setInterval((function(){r.refillBuckets()}),1e3)})),fe="sessionRecording";!function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"}(re||(re={}));var he=[re.MouseMove,re.MouseInteraction,re.Scroll,re.ViewportResize,re.Input,re.TouchMove,re.MediaInteraction,re.Drag],pe=function(){function t(e){var n=this;c(this,t),s(this,"lastActivityTimestamp",Date.now()),s(this,"isIdle",!1),this.instance=e,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint="/s/",this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",(function(){n._flushBuffer()}))}return f(t,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(zt),e=!this.instance.get_config("disable_session_recording");return t&&e}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(qt),e=this.instance.get_config("enable_recording_console_log");return null!=e?e:t}},{key:"getRecordingVersion",value:function(){var t,e=this.instance.get_property(Ut);return(null===(t=this.instance.get_config("session_recording"))||void 0===t?void 0:t.recorderVersion)||e||"v1"}},{key:"afterDecideResponse",value:function(t){var e,n,r,i,o,a;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((s(o={},zt,!!t.sessionRecording),s(o,qt,null===(r=t.sessionRecording)||void 0===r?void 0:r.consoleLogRecordingEnabled),s(o,Ut,null===(i=t.sessionRecording)||void 0===i?void 0:i.recorderVersion),o)),null!==(e=t.sessionRecording)&&void 0!==e&&e.endpoint&&(this.endpoint=null===(a=t.sessionRecording)||void 0===a?void 0:a.endpoint),null!==(n=t.sessionRecording)&&void 0!==n&&n.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(e=this.instance.sessionRecording)||void 0===e||e.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(t)]}},timestamp:Z()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach((function(e){return t._captureSnapshotBuffered(e)}))),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(void 0!==Object.assign&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var e="v2"===this.getRecordingVersion()?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?ht(this.instance.get_config("api_host")+"/static/".concat(e,"?v=").concat(w.LIB_VERSION),(function(n){if(n)return z("Could not load ".concat(e),n);t._onScriptLoaded()})):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var e;return 3===t.type&&-1!==he.indexOf(null===(e=t.data)||void 0===e?void 0:e.source)}},{key:"_updateWindowAndSessionIds",value:function(t){var e=this._isInteractiveEvent(t);if(e||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),e&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var n=this.instance.sessionManager.checkAndGetSessionAndWindowId(!e,t.timestamp),r=n.windowId,i=n.sessionId;-1!==[ue,le].indexOf(t.type)||this.windowId===r&&this.sessionId===i||this._tryTakeFullSnapshot(),this.windowId=r,this.sessionId=i}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return null===(t=this.rrwebRecord)||void 0===t||t.takeFullSnapshot(),!0}catch(t){return z("Error taking full snapshot.",t),!1}}},{key:"_onScriptLoaded",value:function(){var t,e=this,n={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),r=0,s=Object.entries(i||{});r<s.length;r++){var a=p(s[r],2),u=a[0],l=a[1];u in n&&(n[u]=l)}this.rrwebRecord?(this.mutationRateLimiter=null!==(t=this.mutationRateLimiter)&&void 0!==t?t:new ce(this.rrwebRecord,{onBlockedNode:function(t,n){var r="Too many mutations on node '".concat(t,"'. Rate limiting. This could be due to SVG animations or something similar");V(r,{node:n}),e.log("[PostHog Recorder] "+r,"warn")}}),this.stopRrweb=this.rrwebRecord(o({emit:function(t){e.onRRwebEmit(t)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},n)),this.instance._addCaptureHook((function(t){try{var n;"$pageview"===t&&(null===(n=e.rrwebRecord)||void 0===n||n.addCustomEvent("$pageview",{href:window.location.href}))}catch(t){z("Could not add $pageview to rrweb session",t)}})),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):z("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(t){if(t&&"object"===l(t)){var e=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(t):t;if(e){var n=function(t){var e=JSON.stringify(t);if(e.length>5e6){var n,r=_(e.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(r.s();!(n=r.n()).done;){var i=n.value;e="image/"===i[1].toLocaleLowerCase().slice(0,6)?e.replace(i[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):e.replace(i[0],"")}}catch(t){r.e(t)}finally{r.f()}}return{event:JSON.parse(e),size:e.length}}(function(t){var e=t;if(e&&"object"===l(e)&&6===e.type&&"object"===l(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var n=[],i=0;i<e.data.payload.payload.length;i++)e.data.payload.payload[i]&&e.data.payload.payload[i].length>2e3?n.push(e.data.payload.payload[i].slice(0,2e3)+"...[truncated]"):n.push(e.data.payload.payload[i]);return e.data.payload.payload=n,t}return t}(e)),i=n.event,r=n.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var s={$snapshot_bytes:r,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.emit?this._captureSnapshotBuffered(s):this.snapshots.push(s)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&0!==this.buffer.data.length&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var e,n=this,r=2+((null===(e=this.buffer)||void 0===e?void 0:e.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+r>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout((function(){n._flushBuffer()}),2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:fe,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===ue}})}}]),t}(),de={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},me=["first-input","navigation","paint","resource"],ve=["/s/","/e/"],ye=function(){function t(e){c(this,t),s(this,"_forceAllowLocalhost",!1),this.instance=e}return f(t,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,e,n=this;if(!this.observer)if(void 0!==(null===(t=window)||void 0===t||null===(e=t.PerformanceObserver)||void 0===e?void 0:e.supportedEntryTypes))if(!F.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver((function(t){t.getEntries().forEach((function(t){n._capturePerformanceEvent(t)}))}));var r=PerformanceObserver.supportedEntryTypes.filter((function(t){return me.includes(t)}));r.forEach((function(t){var e;null===(e=n.observer)||void 0===e||e.observe({type:t,buffered:!0})}))}catch(t){console.error("PostHog failed to start performance observer",t),this.stopObserving()}else V("PostHog Peformance observer not started because we are on localhost.");else V("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,e;return null!==(t=null!==(e=this.instance.get_config("capture_performance"))&&void 0!==e?e:this.remoteEnabled)&&void 0!==t&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(0===t.name.indexOf(this.instance.get_config("api_host"))){var e=t.name.replace(this.instance.get_config("api_host"),"");if(ve.find((function(t){return 0===e.indexOf(t)})))return}var n={url:t.name},r=this.instance.get_config("session_recording");if(r.maskNetworkRequestFn&&(n=r.maskNetworkRequestFn(n)),n){var i=t.toJSON();i.name=n.url;var o={},a=Math.floor(Date.now()-performance.now());for(var u in o[de.timeOrigin]=a,o[de.timestamp]=Math.floor(a+t.startTime),de)void 0!==i[u]&&(o[de[u]]=i[u]);if(this.capturePerformanceEvent(o),ge(t)){var l,c=_(t.serverTiming||[]);try{for(c.s();!(l=c.n()).done;){var f,h=l.value;this.capturePerformanceEvent((s(f={},de.timeOrigin,a),s(f,de.timestamp,Math.floor(a+t.startTime)),s(f,de.name,h.name),s(f,de.duration,h.duration),s(f,de.entryType,"serverTiming"),f))}}catch(t){c.e(t)}finally{c.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var e,n=t[de.timestamp];null===(e=this.instance.sessionRecording)||void 0===e||e.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:n})}}]),t}(),ge=function(t){return"navigation"===t.entryType||"resource"===t.entryType},be=function(){function t(e){c(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return f(t,[{key:"call",value:function(){var t=this,e=ot(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Wt),group_properties:this.instance.get_property(Qt),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:e,verbose:!0},{method:"POST"},(function(e){return t.parseDecideResponse(e)}))}},{key:"parseDecideResponse",value:function(t){var e,n,r,i=this;if(0!==(null==t?void 0:t.status)){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((function(){i.parseDecideResponse(t)}),500);if(this.instance.toolbar.afterDecideResponse(t),null===(e=this.instance.sessionRecording)||void 0===e||e.afterDecideResponse(t),ne.afterDecideResponse(t,this.instance),null===(n=this.instance.webPerformance)||void 0===n||n.afterDecideResponse(t),null===(r=this.instance.exceptionAutocapture)||void 0===r||r.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},a=_(t.supportedCompression);try{for(a.s();!(o=a.n()).done;)s[o.value]=!0}catch(t){a.e(t)}finally{a.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var u,l=this.instance.get_config("api_host"),c=_(t.siteApps);try{var f=function(){var t=u.value,e=t.id,n=t.url,r=[l,"/"===l[l.length-1]&&"/"===n[0]?n.substring(1):n].join("");window["__$$ph_site_app_".concat(e)]=i.instance,ht(r,(function(t){t&&console.error("Error while initializing PostHog app with config id ".concat(e),t)}))};for(c.s();!(u=c.n()).done;)f()}catch(t){c.e(t)}finally{c.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),t}(),_e=["https://app.posthog.com","https://eu.posthog.com"],we=["source"],xe=function(){function t(e){c(this,t),this.instance=e}return f(t,[{key:"afterDecideResponse",value:function(t){var e=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&e.toolbarVersion&&0===e.toolbarVersion.indexOf("toolbar")&&this.loadToolbar(o({},e))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.history;try{if(!e){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch(t){return!1}e=window.localStorage}var r,i=ct(t.hash,"__posthog")||ct(t.hash,"state"),o=i?JSON.parse(decodeURIComponent(i)):null;return o&&"ph_authorize"===o.action?((r=o).source="url",r&&Object.keys(r).length>0&&(o.desiredHash?t.hash=o.desiredHash:n?n.replaceState("",document.title,t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.get_config("token")!==r.token||(this.loadToolbar(r),0))}catch(t){return!1}}},{key:"loadToolbar",value:function(t){var e=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var n=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),r="".concat(n).concat(n.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),s=!_e.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),a=o(o({token:this.instance.get_config("token")},t),{},{apiURL:n},s?{instrument:!1}:{});a.source;var u=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(a,we);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),ht(r,(function(t){t?z("Failed to load toolbar",t):(window.ph_load_toolbar||window.ph_load_editor)(a,e.instance)})),ft(window,"turbolinks:load",(function(){window._postHogToolbarLoaded=!1,e.loadToolbar(a)})),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.history;return this.maybeLoadToolbar(t,e,n)}}]),t}();function Ee(t,e){Ie(!0,t,e)}function Se(t,e){Ie(!1,t,e)}function ke(t,e){return"1"===Pe(t,e)}function Ae(t,e){return!!function(t){if(t&&t.respectDnt){var e=t&&t.window||I,n=e.navigator||{},r=!1;return q([n.doNotTrack,n.msDoNotTrack,e.doNotTrack],(function(t){Y([!0,1,"1","yes"],t)&&(r=!0)})),r}return!1}(e)||"0"===Pe(t,e)}function Oe(t,e){Te(e=e||{}).remove(Ce(t,e),!!e.crossSubdomainCookie)}function Te(t){return"localStorage"===(t=t||{}).persistenceType?It:"localStorage+cookie"===t.persistenceType?Mt:Ct}function Ce(t,e){return((e=e||{}).persistencePrefix||"__ph_opt_in_out_")+t}function Pe(t,e){return Te(e).get(Ce(t,e))}function Ie(t,e,n){J(e)&&e.length?(Te(n=n||{}).set(Ce(e,n),t?1:0,function(t){return"[object Number]"==C.call(t)}(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&t&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}var Me=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;c(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return f(t,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return(new Date).getTime()}}]),t}(),je=function(t){a(i,Me);var e=m(i);function i(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;return c(this,i),(n=e.call(this,r)).handlePollRequest=t,n}return f(i,[{key:"enqueue",value:function(t,e,n){this._event_queue.push({url:t,data:e,options:n}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var t=this;clearTimeout(this._poller),this._poller=setTimeout((function(){if(t._event_queue.length>0){var e=t.formatQueue(),n=function(n){var r=e[n],i=r.url,o=r.data,s=r.options;q(o,(function(e,n){o[n].offset=Math.abs(o[n].timestamp-t.getTime()),delete o[n].timestamp})),t.handlePollRequest(i,o,s)};for(var r in e)n(r);t._event_queue.length=0,t._empty_queue_count=0}else t._empty_queue_count++;t._empty_queue_count>4&&(t.isPolling=!1,t._empty_queue_count=0),t.isPolling&&t.poll()}),this._pollInterval)}},{key:"unload",value:function(){var t=this;clearTimeout(this._poller);var e=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var n=Object.values(e);[].concat(v(n.filter((function(t){return 0===t.url.indexOf("/e")}))),v(n.filter((function(t){return 0!==t.url.indexOf("/e")})))).map((function(e){var n=e.url,i=e.data,r=e.options;t.handlePollRequest(n,i,o(o({},r),{},{transport:"sendBeacon"}))}))}},{key:"formatQueue",value:function(){var t={};return q(this._event_queue,(function(e){var n=e.url,r=e.data,i=e.options,o=(i?i._batchKey:null)||n;void 0===t[o]&&(t[o]={data:[],url:n,options:i}),i&&t[o].options&&t[o].options._metrics&&!t[o].options._metrics.rrweb_full_snapshot&&(t[o].options._metrics.rrweb_full_snapshot=i._metrics.rrweb_full_snapshot),t[o].data.push(r)})),t}}]),i}(),De=Uint8Array,Fe=Uint16Array,Re=Uint32Array,Le=new De([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]),Ne=new De([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]),Be=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ve=function(t,e){for(var n=new Fe(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new Re(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},ze=Ve(Le,2),qe=ze[0],Ue=ze[1];qe[28]=258,Ue[258]=28;for(var $e=Ve(Ne,0)[1],Ge=new Fe(32768),He=0;He<32768;++He){var We=(43690&He)>>>1|(21845&He)<<1;We=(61680&(We=(52428&We)>>>2|(13107&We)<<2))>>>4|(3855&We)<<4,Ge[He]=((65280&We)>>>8|(255&We)<<8)>>>1}var Qe=function(t,e,n){for(var r=t.length,i=0,o=new Fe(e);i<r;++i)++o[t[i]-1];var s,a=new Fe(e);for(i=0;i<e;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new Fe(1<<e);var u=15-e;for(i=0;i<r;++i)if(t[i])for(var l=i<<4|t[i],c=e-t[i],f=a[t[i]-1]++<<c,h=f|(1<<c)-1;f<=h;++f)s[Ge[f]>>>u]=l}else for(s=new Fe(r),i=0;i<r;++i)s[i]=Ge[a[t[i]-1]++]>>>15-t[i];return s},Ye=new De(288);for(He=0;He<144;++He)Ye[He]=8;for(He=144;He<256;++He)Ye[He]=9;for(He=256;He<280;++He)Ye[He]=7;for(He=280;He<288;++He)Ye[He]=8;var Ke=new De(32);for(He=0;He<32;++He)Ke[He]=5;var Xe,Je=Qe(Ye,9,0),Ze=Qe(Ke,5,0),tn=function(t){return(t/8>>0)+(7&t&&1)},en=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof Fe?Fe:t instanceof Re?Re:De)(n-e);return r.set(t.subarray(e,n)),r},nn=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},rn=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},on=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,o=n.slice();if(!i)return[new De(0),0];if(1==i){var s=new De(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var a=n[0],u=n[1],l=0,c=1,f=2;for(n[0]={s:-1,f:a.f+u.f,l:a,r:u};c!=i-1;)a=n[n[l].f<n[f].f?l++:f++],u=n[l!=c&&n[l].f<n[f].f?l++:f++],n[c++]={s:-1,f:a.f+u.f,l:a,r:u};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var p=new Fe(h+1),d=an(n[c-1],p,0);if(d>e){r=0;var g=0,m=d-e,v=1<<m;for(o.sort((function(t,e){return p[e.s]-p[t.s]||t.f-e.f}));r<i;++r){var y=o[r].s;if(!(p[y]>e))break;g+=v-(1<<d-p[y]),p[y]=e}for(g>>>=m;g>0;){var _=o[r].s;p[_]<e?g-=1<<e-p[_]++-1:++r}for(;r>=0&&g;--r){var b=o[r].s;p[b]==e&&(--p[b],++g)}d=e}return[new De(p),d]},an=function t(e,n,r){return-1==e.s?Math.max(t(e.l,n,r+1),t(e.r,n,r+1)):n[e.s]=r},sn=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Fe(++e),r=0,i=t[0],o=1,s=function(t){n[r++]=t},a=1;a<=e;++a)if(t[a]==i&&a!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[a]}return[n.subarray(0,r),e]},un=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},ln=function(t,e,n){var r=n.length,i=tn(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=n[o];return 8*(i+4+r)},cn=function(t,e,n,r,i,o,s,a,u,l,c){nn(e,c++,n),++i[256];for(var f=on(i,15),h=f[0],p=f[1],d=on(o,15),g=d[0],m=d[1],v=sn(h),y=v[0],_=v[1],b=sn(g),w=b[0],x=b[1],E=new Fe(19),S=0;S<y.length;++S)E[31&y[S]]++;for(S=0;S<w.length;++S)E[31&w[S]]++;for(var k=on(E,7),A=k[0],O=k[1],T=19;T>4&&!A[Be[T-1]];--T);var C,P,I,M,j=l+5<<3,D=un(i,Ye)+un(o,Ke)+s,F=un(i,h)+un(o,g)+s+14+3*T+un(E,A)+(2*E[16]+3*E[17]+7*E[18]);if(j<=D&&j<=F)return ln(e,c,t.subarray(u,u+l));if(nn(e,c,1+(F<D)),c+=2,F<D){C=Qe(h,p,0),P=h,I=Qe(g,m,0),M=g;var R=Qe(A,O,0);for(nn(e,c,_-257),nn(e,c+5,x-1),nn(e,c+10,T-4),c+=14,S=0;S<T;++S)nn(e,c+3*S,A[Be[S]]);c+=3*T;for(var L=[y,w],N=0;N<2;++N){var B=L[N];for(S=0;S<B.length;++S){var V=31&B[S];nn(e,c,R[V]),c+=A[V],V>15&&(nn(e,c,B[S]>>>5&127),c+=B[S]>>>12)}}}else C=Je,P=Ye,I=Ze,M=Ke;for(S=0;S<a;++S)if(r[S]>255){V=r[S]>>>18&31,rn(e,c,C[V+257]),c+=P[V+257],V>7&&(nn(e,c,r[S]>>>23&31),c+=Le[V]);var z=31&r[S];rn(e,c,I[z]),c+=M[z],z>3&&(rn(e,c,r[S]>>>5&8191),c+=Ne[z])}else rn(e,c,C[r[S]]),c+=P[r[S]];return rn(e,c,C[256]),c+P[256]},fn=new Re([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hn=new De(0),pn=function(){for(var t=new Re(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t}(),dn=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function mn(t,e){void 0===e&&(e={});var n=function(){var t=4294967295;return{p:function(e){for(var n=t,r=0;r<e.length;++r)n=pn[255&n^e[r]]^n>>>8;t=n},d:function(){return 4294967295^t}}}(),r=t.length;n.p(t);var i=function(t,e,n,r,i){return function(t,e,n,r,i,o){var s=t.length,a=new De(r+s+5*(1+Math.floor(s/7e3))+i),u=a.subarray(r,a.length-i),l=0;if(!e||s<8)for(var c=0;c<=s;c+=65535){var f=c+65535;f<s?l=ln(u,l,t.subarray(c,f)):(u[c]=o,l=ln(u,l,t.subarray(c,s)))}else{for(var h=fn[e-1],p=h>>>13,d=8191&h,g=(1<<n)-1,m=new Fe(32768),v=new Fe(g+1),y=Math.ceil(n/3),_=2*y,b=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<_)&g},w=new Re(25e3),x=new Fe(288),E=new Fe(32),S=0,k=0,A=(c=0,0),O=0,T=0;c<s;++c){var C=b(c),P=32767&c,I=v[C];if(m[P]=I,v[C]=P,O<=c){var M=s-c;if((S>7e3||A>24576)&&M>423){l=cn(t,u,0,w,x,E,k,A,T,c-T,l),A=S=k=0,T=c;for(var j=0;j<286;++j)x[j]=0;for(j=0;j<30;++j)E[j]=0}var D=2,F=0,R=d,L=P-I&32767;if(M>2&&C==b(c-L))for(var N=Math.min(p,M)-1,B=Math.min(32767,c),V=Math.min(258,M);L<=B&&--R&&P!=I;){if(t[c+D]==t[c+D-L]){for(var z=0;z<V&&t[c+z]==t[c+z-L];++z);if(z>D){if(D=z,F=L,z>N)break;var q=Math.min(L,z-2),U=0;for(j=0;j<q;++j){var $=c-L+j+32768&32767,G=$-m[$]+32768&32767;G>U&&(U=G,I=$)}}}L+=(P=I)-(I=m[P])+32768&32767}if(F){w[A++]=268435456|Ue[D]<<18|$e[F];var H=31&Ue[D],W=31&$e[F];k+=Le[H]+Ne[W],++x[257+H],++E[W],O=c+D,++S}else w[A++]=t[c],++x[t[c]]}}l=cn(t,u,o,w,x,E,k,A,T,c-T,l),o||(l=ln(u,l,hn))}return en(a,0,r+tn(l)+i)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)}(t,e,function(t){return 10+(t.filename&&t.filename.length+1||0)}(e),8),o=i.length;return function(t,e){var n=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&dn(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),n){t[3]=8;for(var r=0;r<=n.length;++r)t[r+10]=n.charCodeAt(r)}}(i,e),dn(i,o-8,n.d()),dn(i,o-4,r),i}function vn(t,e){var n=t.length;if(!e&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var r=new De(t.length+(t.length>>>1)),i=0,o=function(t){r[i++]=t},s=0;s<n;++s){if(i+5>r.length){var a=new De(i+8+(n-s<<1));a.set(r),r=a}var u=t.charCodeAt(s);u<128||e?o(u):u<2048?(o(192|u>>>6),o(128|63&u)):u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++s))>>>18),o(128|u>>>12&63),o(128|u>>>6&63),o(128|63&u)):(o(224|u>>>12),o(128|u>>>6&63),o(128|63&u))}return en(r,0,i)}!function(t){t.GZipJS="gzip-js",t.Base64="base64"}(Xe||(Xe={}));var yn=function t(e,n){if(n.blob&&e.buffer)return new Blob([e.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=t(e,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}return"POST"!==n.method?null:(i=Array.isArray(e)||(o=e,"[object Uint8Array]"===Object.prototype.toString.call(o))?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(i+="&compression="+e.compression),i);var i,o},gn=function(t){var e=t.url,n=t.data,r=t.headers,i=t.options,o=t.callback,s=t.retriesPerformedSoFar,a=t.retryQueue,u=t.onXHRError,l=t.timeout,c=void 0===l?1e4:l,f=t.onRateLimited,h=new XMLHttpRequest;h.open(i.method||"GET",e,!0);var p=yn(n,i);q(r,(function(t,e){h.setRequestHeader(e,t)})),"POST"!==i.method||i.blob||h.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),h.timeout=c,h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState)if(200===h.status){if(o){var t;try{t=JSON.parse(h.responseText)}catch(t){return void z(t)}o(t)}}else"function"==typeof u&&u(h),[401,403,404,500].indexOf(h.status)<0&&a.enqueue({url:e,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),429===h.status&&(null==f||f(h)),o&&o({status:0})},h.send(p)},bn=function(t){a(i,Me);var e=m(i);function i(t,n){var r;return c(this,i),(r=e.call(this)).isPolling=!1,r.queue=[],r.areWeOnline=!0,r.onXHRError=t,r.rateLimiter=n,"undefined"!=typeof window&&"onLine"in window.navigator&&(r.areWeOnline=window.navigator.onLine,window.addEventListener("online",(function(){r._handleWeAreNowOnline()})),window.addEventListener("offline",(function(){r.areWeOnline=!1}))),r}return f(i,[{key:"enqueue",value:function(t){var e=t.retriesPerformedSoFar||0;if(!(e>=10)){var n=function(t){var e=3e3*Math.pow(2,t),n=e/2,r=Math.min(18e5,e),i=(Math.random()-.5)*(r-n);return Math.ceil(r+i)}(e),r=new Date(Date.now()+n);this.queue.push({retryAt:r,requestData:t}),console.warn("Enqueued failed request for retry in ".concat(n)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var t=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout((function(){t.areWeOnline&&t.queue.length>0&&t.flush(),t.poll()}),this._pollInterval)}},{key:"flush",value:function(){var t=new Date(Date.now()),e=this.queue.filter((function(e){return e.retryAt<t}));if(e.length>0){this.queue=this.queue.filter((function(e){return e.retryAt>=t}));var n,r=_(e);try{for(r.s();!(n=r.n()).done;){var i=n.value.requestData;this._executeXhrRequest(i)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var t,e=_(this.queue);try{for(e.s();!(t=e.n()).done;){var n=t.value.requestData,i=n.url,r=n.data,s=n.options;if(this.rateLimiter.isRateLimited(s._batchKey))w.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(i,yn(r,o(o({},s),{},{sendBeacon:!0})))}catch(t){w.DEBUG&&console.error(t)}}}catch(t){e.e(t)}finally{e.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(t){var e=t.url,n=t.data,r=t.options,i=t.headers,o=t.callback,s=t.retriesPerformedSoFar;this.rateLimiter.isRateLimited(r._batchKey)?w.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):gn({url:e,data:n||{},options:r||{},headers:i||{},retriesPerformedSoFar:s||0,callback:o,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),i}(),_n=1800,wn=864e5,xn=function(){function t(e,n,i){c(this,t),s(this,"_sessionIdChangedHandlers",[]),this.uuidFn=i,this.config=e,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var r=e.persistence_name||e.token,a=e.session_idle_timeout_seconds||_n;if("number"!=typeof a?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=_n):a>_n?console.warn("[PostHog] session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):a<60&&console.warn("[PostHog] session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."),this._sessionTimeoutMs=1e3*Math.min(Math.max(a,60),_n),this._window_id_storage_key="ph_"+r+"_window_id",this._primary_window_exists_storage_key="ph_"+r+"_primary_window_exists",this._canUseSessionStorage()){var u=Rt.parse(this._window_id_storage_key),o=Rt.parse(this._primary_window_exists_storage_key);u&&!o?this._windowId=u:Rt.remove(this._window_id_storage_key),Rt.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return f(t,[{key:"onSessionId",value:function(t){var e=this;return void 0===this._sessionIdChangedHandlers&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(t),this._sessionId&&t(this._sessionId,this._windowId),function(){e._sessionIdChangedHandlers=e._sessionIdChangedHandlers.filter((function(e){return e!==t}))}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&Rt.is_supported()}},{key:"_setWindowId",value:function(t){t!==this._windowId&&(this._windowId=t,this._canUseSessionStorage()&&Rt.set(this._window_id_storage_key,t))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Rt.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(t,e,n){t===this._sessionId&&e===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=e,this._sessionId=t,this.persistence.register(s({},$t,[e,t,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var t=this.persistence.props[$t];return Array.isArray(t)&&2===t.length&&t.push(t[0]),t||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var t=this;window.addEventListener("beforeunload",(function(){t._canUseSessionStorage()&&Rt.remove(t._primary_window_exists_storage_key)}))}},{key:"checkAndGetSessionAndWindowId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=p(this._getSessionId(),3),r=n[0],i=n[1],o=n[2],s=this._getWindowId(),a=o&&o>0&&Math.abs(e-o)>wn,u=!1;!i||!t&&Math.abs(e-r)>this._sessionTimeoutMs||a?(i=this.uuidFn(),s=this.uuidFn(),o=e,u=!0):s||(s=this.uuidFn(),u=!0);var l=0===r||!t||a?e:r,c=0===o?(new Date).getTime():o;return this._setWindowId(s),this._setSessionId(i,l,c),u&&this._sessionIdChangedHandlers.forEach((function(t){return t(i,s)})),{sessionId:i,windowId:s,sessionStartTimestamp:c}}}]),t}(),En=f((function t(e,n,i,r){c(this,t),this.name="posthog-js",this.setupOnce=function(t){t((function(t){var o,s,a,u,l;if("error"!==t.level||!e.__loaded)return t;t.tags||(t.tags={});var c=e.config.ui_host||e.config.api_host;t.tags["PostHog Person URL"]=c+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var f=(null===(o=t.exception)||void 0===o?void 0:o.values)||[],h={$exception_message:null===(s=f[0])||void 0===s?void 0:s.value,$exception_type:null===(a=f[0])||void 0===a?void 0:a.type,$exception_personURL:c+"/person/"+e.get_distinct_id(),$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:null===(u=f[0])||void 0===u?void 0:u.value,$sentry_exception_type:null===(l=f[0])||void 0===l?void 0:l.type,$sentry_tags:t.tags};return n&&i&&(h.$sentry_url=(r||"https://sentry.io/organizations/")+n+"/issues/?project="+i+"&query="+t.event_id),e.capture("$exception",h),t}))}})),Sn=function(){function t(e){c(this,t),s(this,"_seenFirstPageView",!1),this.uuidFn=e}return f(t,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),t}();function kn(t){return"undefined"!=typeof Event&&An(t,Event)}function An(t,e){try{return t instanceof e}catch(t){return!1}}function On(t){return null===t||"object"!==l(t)&&"function"!=typeof t}function Tn(t,e){return Object.prototype.toString.call(t)==="[object ".concat(e,"]")}function Cn(t){return Tn(t,"DOMError")}var Pn=/\(error: (.*)\)/,In=50,Mn="?";function jn(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Dn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fn=/\((\S*)(?::(\d+))(?::(\d+))\)/,Rn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ln=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Nn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Bn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=t.split("\n"),s=e;s<r.length;s++){var a=r[s];if(!(a.length>1024)){var u=Pn.test(a)?a.replace(Pn,"$1"):a;if(!u.match(/\S*Error: /)){var l,c=_(i);try{for(c.s();!(l=c.n()).done;){var f=(0,l.value)(u);if(f){n.push(f);break}}}catch(t){c.e(t)}finally{c.f()}if(n.length>=In)break}}}return function(t){if(!t.length)return[];var e=t.slice(0,In);return e.reverse(),e.map((function(t){return o(o({},t),{},{filename:t.filename||e[e.length-1].filename,function:t.function||"?"})}))}(n)}}.apply(void 0,[[30,function(t){var e=Dn.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=Fn.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=p(Vn(e[1]||Mn,e[2]),2),i=r[0];return jn(r[1],i,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,function(t){var e=Rn.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=Ln.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}var r=e[3],i=e[1]||Mn,o=p(Vn(i,r),2);return i=o[0],jn(r=o[1],i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,function(t){var e=Nn.exec(t);return e?jn(e[2],e[1]||Mn,+e[3],e[4]?+e[4]:void 0):void 0}]]),Vn=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Mn,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]},zn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,tr=/Minified React error #\d+;/i;function qn(t){var e=function(t){var e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tr.test(t.message))return 1}return 0}(t);try{return Bn(e,n)}catch(t){}return[]}(t);return{$exception_type:t.name,$exception_message:t.message,$exception_stack_trace_raw:JSON.stringify(e)}}function Un(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length||i.length<=e?i:"".concat(i.slice(0,e),"...")}return""}function $n(t){var e=p(t,5),n=e[0],i=e[1],r=e[2],s=e[3],a=e[4],u={};if(void 0===a&&"string"==typeof n){var l="Error",c=n,f=n.match(zn);f&&(l=f[1],c=f[2]),u={$exception_type:l,$exception_message:c}}var h=a||n;if(Cn(h)||function(t){return Tn(t,"DOMException")}(h)){var d=h;if(function(t){return"stack"in t}(h))u=qn(h);else{var g=d.name||(Cn(d)?"DOMError":"DOMException"),m=d.message?"".concat(g,": ").concat(d.message):g;u=function(t){return{$exception_type:"Error",$exception_message:t}}(m),u.$exception_type=Cn(d)?"DOMError":"DOMException",u.$exception_message=u.$exception_message||m}"code"in d&&(u.$exception_DOMException_code="".concat(d.code))}else(function(t){return Tn(t,"ErrorEvent")})(h)&&h.error?u=qn(h.error):!function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return An(t,Error)}}(h)?function(t){return Tn(t,"Object")}(h)||kn(h)?(u=function(t){return{$exception_type:kn(t)?t.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",Un(t))}}(h),u.$exception_is_synthetic=!0):(u.$exception_type=u.$exception_type||"Error",u.$exception_message=u.$exception_message||h,u.$exception_is_synthetic=!0):u=qn(h);return o(o(o(o({},u),{},{$exception_type:u.$exception_type||"UnknownErrorType",$exception_message:u.$exception_message||""},i?{$exception_source:i}:{}),r?{$exception_lineno:r}:{}),s?{$exception_colno:s}:{})}var Gn,Hn,Wn=function(){function t(e){c(this,t),s(this,"originalOnErrorHandler",void 0),s(this,"originalOnUnhandledRejectionHandler",void 0),s(this,"errorsToIgnore",[]),this.instance=e}return f(t,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=console).log.apply(t,["PostHog.js [PostHog.ExceptionObserver]"].concat(n))}}},{key:"startCapturing",value:function(){var t;if(this.isEnabled()&&(null===(t=I.onerror)||void 0===t||!t.__POSTHOG_INSTRUMENTED__))try{this.originalOnErrorHandler=I.onerror,I.onerror=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.captureException(e),!!this.originalOnErrorHandler&&this.originalOnErrorHandler.apply(this,e)}.bind(this),I.onerror.__POSTHOG_INSTRUMENTED__=!0,this.originalOnUnhandledRejectionHandler=I.onunhandledrejection,I.onunhandledrejection=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=function(t){var e=p(t,1)[0],n=e;try{"reason"in e?n=e.reason:"detail"in e&&"reason"in e.detail&&(n=e.detail.reason)}catch(t){}var i={};return(i=On(n)?{$exception_message:"Non-Error promise rejection captured with value: ".concat(String(n))}:$n([n])).$exception_handled=!1,o(o({},i),{},{$exception_type:i.$exception_type="UnhandledRejection",$exception_message:i.$exception_message=i.$exception_message||e.reason||String(n)})}(e);return this.sendExceptionEvent(i),!this.originalOnUnhandledRejectionHandler||this.originalOnUnhandledRejectionHandler.apply(I,e)}.bind(this),I.onunhandledrejection.__POSTHOG_INSTRUMENTED__=!0}catch(t){console.error("PostHog failed to start exception autocapture",t),this.stopCapturing()}}},{key:"stopCapturing",value:function(){var t,e;void 0!==this.originalOnErrorHandler&&(I.onerror=this.originalOnErrorHandler,this.originalOnErrorHandler=null),null===(t=I.onerror)||void 0===t||delete t.__POSTHOG_INSTRUMENTED__,void 0!==this.originalOnUnhandledRejectionHandler&&(I.onunhandledrejection=this.originalOnUnhandledRejectionHandler,this.originalOnUnhandledRejectionHandler=null),null===(e=I.onunhandledrejection)||void 0===e||delete e.__POSTHOG_INSTRUMENTED__}},{key:"isCapturing",value:function(){var t;return!(null===(t=I.onerror)||void 0===t||!t.__POSTHOG_INSTRUMENTED__)}},{key:"isEnabled",value:function(){var t;return null!==(t=this.remoteEnabled)&&void 0!==t&&t}},{key:"afterDecideResponse",value:function(t){var e=t.autocaptureExceptions;if(this.remoteEnabled=!!e||!1,!On(e)&&"errors_to_ignore"in e&&Array.isArray(e.errors_to_ignore)){var n=e.errors_to_ignore;this.errorsToIgnore=n.map((function(t){return new RegExp(t)}))}this.isEnabled()?(this.startCapturing(),this.debugLog("Remote config for exception autocapture is enabled, starting",e)):this.debugLog("Remote config for exception autocapture is disabled, not starting",e)}},{key:"captureException",value:function(t,e){var n=$n(t);if(this.errorsToIgnore.some((function(t){return t.test(n.$exception_message||"")})))this.debugLog("Ignoring exception based on remote config",n);else{var i=o(o({},e),n),r=this.instance.get_config("ui_host")||this.instance.get_config("api_host");n.$exception_personURL=r+"/person/"+this.instance.get_distinct_id(),this.sendExceptionEvent(i)}}},{key:"sendExceptionEvent",value:function(t){this.instance.capture("$exception",t,{transport:"XHR",method:"POST",endpoint:"/e/",_noTruncate:!0,_batchKey:"exceptionEvent"})}}]),t}();!function(t){t.Popover="Popover",t.Button="Button",t.Email="Email",t.FullScreen="Fullscreen"}(Gn||(Gn={})),function(t){t.Open="open",t.MultipleChoiceSingle="multiple_single",t.MultipleChoiceMulti="multiple_multi",t.NPS="nps",t.Rating="rating",t.Link="link"}(Hn||(Hn={}));var Qn,Yn,Kn,Xn=function(){function t(e){c(this,t),this.instance=e}return f(t,[{key:"getSurveys",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.instance.get_property(Yt);if(r&&!n)return t(r);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},(function(n){var r=n.surveys;return e.instance.persistence.register(s({},Yt,r)),t(r)}))}},{key:"getActiveMatchingSurveys",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys((function(n){var r=n.filter((function(t){return!(!t.start_date||t.end_date)})).filter((function(t){var e,n;if(!t.conditions)return!0;var r=null===(e=t.conditions)||void 0===e||!e.url||window.location.href.indexOf(t.conditions.url)>-1,i=null===(n=t.conditions)||void 0===n||!n.selector||document.querySelector(t.conditions.selector);return r&&i})).filter((function(t){if(!t.linked_flag_key&&!t.targeting_flag_key)return!0;var n=!t.linked_flag_key||e.instance.featureFlags.isFeatureEnabled(t.linked_flag_key),r=!t.targeting_flag_key||e.instance.featureFlags.isFeatureEnabled(t.targeting_flag_key);return n&&r}));return t(r)}),n)}}]),t}(),Jn={"X-PostHog-Retry-After-Recordings":fe,"X-PostHog-Retry-After-Events":"events"},hr=function(){function t(){c(this,t),s(this,"limits",{})}return f(t,[{key:"isRateLimited",value:function(t){var e=this.limits[t||"events"]||!1;return!1!==e&&(new Date).getTime()<e}},{key:"on429Response",value:function(t){var e=this;429===t.status&&Object.entries(Jn).forEach((function(n){var r=p(n,2),i=r[0],o=r[1],s=t.getResponseHeader(i);if(s){var a=parseInt(s,10);if(isNaN(a)&&(a=60),a){var u=1e3*a;e.limits[o]=(new Date).getTime()+u}}}))}}]),t}();!function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"}(Qn||(Qn={}));var Zn=function(){},er={},nr="posthog",rr=I.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ir=!rr&&-1===D.indexOf("MSIE")&&-1===D.indexOf("Mozilla"),br=function(){var t,e,n;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:-1===(null==j||null===(t=j.location)||void 0===t||null===(e=t.hostname)||void 0===e?void 0:e.indexOf("herokuapp.com")),persistence:"cookie",persistence_name:"",cookie_name:"",loaded:Zn,store_google:!0,custom_campaign_params:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==I||null===(n=I.location)||void 0===n?void 0:n.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(t){var e="Bad HTTP status: "+t.status+" "+t.statusText;console.error(e)},get_device_id:function(t){return t},_onCapture:Zn,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,uuid_version:"v7"}},or=function(t,e,n,r){var i,o=n!==nr&&Kn?n?Kn[n]:void 0:Kn,s={initComplete:!1,syncCode:!1},a=function(t){return function(e){s[t]||(s[t]=!0,s.initComplete&&s.syncCode&&(null==r||r(e)))}};if(o&&Yn===Qn.INIT_MODULE)i=o;else{if(o&&!W(o))return void console.error("You have already initialized "+n);i=new ar}return i._init(t,e,n,a("initComplete")),i.toolbar.maybeLoadToolbar(),i.sessionRecording=new pe(i),i.sessionRecording.startRecordingIfEnabled(),i.webPerformance=new ye(i),i.webPerformance.startObservingIfEnabled(),i.exceptionAutocapture=new Wn(i),i.__autocapture=i.get_config("autocapture"),ne._setIsAutocaptureEnabled(i),ne._isAutocaptureEnabled&&(i.__autocapture=i.get_config("autocapture"),ne.enabledForProject(i.get_config("token"),100,100)?ne.isBrowserSupported()?ne.init(i):(i.__autocapture=!1,V("Disabling Automatic Event Collection because this browser is not supported")):(i.__autocapture=!1,V("Not in active bucket: disabling Automatic Event Collection."))),w.DEBUG=w.DEBUG||i.get_config("debug"),void 0!==o&&W(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),a("syncCode")(i),i},ar=function(){function t(){var e=this;c(this,t),s(this,"uuidFn",st("og")),this.config=br(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=En,this.segmentIntegration=function(){return function(t){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var e=function(e,n){e.event.userId||e.event.anonymousId===t.get_distinct_id()||t.reset(),e.event.userId&&e.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:e.event.userId}),t.reloadFeatureFlags());var r=t._calculate_event_properties(n,e.event.properties);return e.event.properties=Object.assign({},r,e.event.properties),e};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(t){return e(t,t.event.event)},page:function(t){return e(t,"$pageview")},identify:function(t){return e(t,"$identify")},screen:function(t){return e(t,"$screen")}}}(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.featureFlags=new rt(this),this.toolbar=new xe(this),this.pageViewIdManager=new Sn(this.uuidFn),this.surveys=new Xn(this),this.rateLimiter=new hr,this._requestQueue=void 0,this._retryQueue=void 0,this.persistence=void 0,this.sessionPersistence=void 0,this.sessionManager=void 0,this.people={set:function(t,n,r){var i="string"==typeof t?s({},t,n):t;e.setPersonProperties(i),null==r||r({})},set_once:function(t,n,r){var i="string"==typeof t?s({},t,n):t;e.setPersonProperties(void 0,i),null==r||r({})}}}return f(t,[{key:"init",value:function(t,e,n){if(X(n))console.error("You must name your new library: init(token, config, name)");else{if(n!==nr){var r=or(t,e,n,(function(t){Kn[n]=t,t._loaded()}));return Kn[n]=r,r}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(t){var e,n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,l={segmentRegister:!1,syncCode:!1},c=function(t){return function(){l[t]||(l[t]=!0,l.segmentRegister&&l.syncCode&&(null==a||a(i)))}};if(this.set_config(H({},br(),r,{name:s,token:t,callback_fn:(s===nr?s:nr+"."+s)+"._jsc"})),this.uuidFn=st(this.config.uuid_version||"og"),this._jsc=function(){},(null!=I&&null!==(e=I.rrweb)&&void 0!==e&&e.record||null!=I&&I.rrwebRecord)&&(this.__loaded_recorder_version=null==I||null===(u=I.rrweb)||void 0===u?void 0:u.version),this.persistence=new ee(this.config),this._requestQueue=new je(this._handle_queued_event.bind(this)),this._retryQueue=new bn(this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new xn(this.config,this.persistence,this.uuidFn),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new ee(o(o({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),r.segment?(this.config.get_device_id=function(){return r.segment.user().anonymousId()},r.segment.user().id()&&(this.register({distinct_id:r.segment.user().id()}),this.persistence.set_user_state("identified")),r.segment.register(this.segmentIntegration()).then(c("segmentRegister"))):c("segmentRegister")(),void 0!==(null===(n=r.bootstrap)||void 0===n?void 0:n.distinctID)){var f,h,p=this.get_config("get_device_id")(this.uuidFn()),d=null!==(f=r.bootstrap)&&void 0!==f&&f.isIdentifiedID?p:r.bootstrap.distinctID;this.persistence.set_user_state(null!==(h=r.bootstrap)&&void 0!==h&&h.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:r.bootstrap.distinctID,$device_id:d})}if(this._hasBootstrappedFeatureFlags()){var g,m,v=Object.keys((null===(g=r.bootstrap)||void 0===g?void 0:g.featureFlags)||{}).filter((function(t){var e,n;return!(null===(e=r.bootstrap)||void 0===e||null===(n=e.featureFlags)||void 0===n||!n[t])})).reduce((function(t,e){var n,o;return t[e]=(null===(n=r.bootstrap)||void 0===n||null===(o=n.featureFlags)||void 0===o?void 0:o[e])||!1,t}),{}),y=Object.keys((null===(m=r.bootstrap)||void 0===m?void 0:m.featureFlagPayloads)||{}).filter((function(t){return v[t]})).reduce((function(t,e){var n,o,i,s;return null!==(n=r.bootstrap)&&void 0!==n&&null!==(o=n.featureFlagPayloads)&&void 0!==o&&o[e]&&(t[e]=null===(i=r.bootstrap)||void 0===i||null===(s=i.featureFlagPayloads)||void 0===s?void 0:s[e]),t}),{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:y})}if(!this.get_distinct_id()){var _=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:_,$device_id:_},""),this.persistence.set_user_state("anonymous")}I.addEventListener&&I.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),c("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:j.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new be(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||G(this.__request_queue,(function(e){t._send_request.apply(t,v(e))})),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,e){if(X(t))return null;if(rr)return function(n){t(n,e)};var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],t(i,e)},i}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,e,n){var r=JSON.stringify(e);this.__compress_and_send_json_request(t,r,n||er,Zn)}},{key:"__compress_and_send_json_request",value:function(t,e,n,i){var r=function(t,e,n){return t===Xe.GZipJS?[mn(vn(e),{mtime:0}),o(o({},n),{},{blob:!0,urlQueryArgs:{compression:Xe.GZipJS}})]:[{data:ot(e)},n]}(this.compression[Xe.GZipJS]?Xe.GZipJS:Xe.Base64,e,n),s=p(r,2),a=s[0],u=s[1];this._send_request(t,a,u,i)}},{key:"_send_request",value:function(t,e,n,i){if(this.rateLimiter.isRateLimited(n._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(ir)this.__request_queue.push([t,e,n,i]);else{var r={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};n=H(r,n||{}),rr||(n.method="GET");var s="sendBeacon"in I.navigator&&"sendBeacon"===n.transport;if(t=function(t,e,n){var r=e||{};r.ip=n.ip?1:0,r._=(new Date).getTime().toString(),r.ver=w.LIB_VERSION;var i=t.split("?");if(i.length>1){var o,s=_(i[1].split("&"));try{for(s.s();!(o=s.n()).done;){var a=o.value.split("=")[0];r[a]&&delete r[a]}}catch(t){s.e(t)}finally{s.f()}}var u=t.indexOf("?")>-1?"&":"?";return t+u+function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return q(t,(function(t,r){e=encodeURIComponent(t.toString()),n=encodeURIComponent(r),i[i.length]=n+"="+e})),i.join(r)}(r)}(t,n.urlQueryArgs||{},{ip:this.get_config("ip")}),s)try{I.navigator.sendBeacon(t,yn(e,o(o({},n),{},{sendBeacon:!0})))}catch(t){}else if(rr)try{gn({url:t,data:e,headers:this.get_config("xhr_headers"),options:n,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(t){console.error(t)}else{var a,u=j.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var l=j.getElementsByTagName("script")[0];null===(a=l.parentNode)||void 0===a||a.insertBefore(u,l)}}}},{key:"_execute_array",value:function(t){var e,n=this,r=[],i=[],o=[];G(t,(function(t){t&&(e=t[0],W(e)?o.push(t):"function"==typeof t?t.call(n):W(t)&&"alias"===e?r.push(t):W(t)&&-1!==e.indexOf("capture")&&"function"==typeof n[e]?o.push(t):i.push(t))}));var s=function(t,e){G(t,(function(t){if(W(t[0])){var n=e;q(t,(function(t){n=n[t[0]].apply(n,t.slice(1))}))}else this[t[0]].apply(this,t.slice(1))}),e)};s(r,this),s(i,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,e;return(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags)&&Object.keys(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,e){var n;null===(n=this.exceptionAutocapture)||void 0===n||n.captureException([t.name,void 0,void 0,void 0,t],e)}},{key:"capture",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:er;if(this.__loaded&&!function(t,e){var n=!1;try{var r=t.get_config("token"),i=t.get_config("respect_dnt"),o=t.get_config("opt_out_capturing_persistence_type"),s=t.get_config("opt_out_capturing_cookie_prefix")||void 0,a=t.get_config("window");r&&(n=Ae(r,{respectDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(t){console.error("Unexpected error when checking capturing opt-out status: "+t)}return n}(this)){var r=(n=n||er).transport;if(r&&(n.transport=r),X(t)||"string"!=typeof t)console.error("No event name provided to posthog.capture");else if(!ut(D)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var i={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,e||{})};"$identify"===t&&(i.$set=n.$set,i.$set_once=n.$set_once),(i=it(i,n._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=n.timestamp||new Date,this.get_config("debug")&&V("PostHog.js send",i);var o=JSON.stringify(i),s=this.get_config("api_host")+(n.endpoint||"/e/"),a=n!==er;return!this.get_config("request_batching")||a&&!n._batchKey||n.send_instantly?this.__compress_and_send_json_request(s,o,n):this._requestQueue.enqueue(s,i,n),this._invokeCaptureHooks(t,i),i}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,e){this.config._onCapture(t,e),q(this.__captureHooks,(function(e){return e(t)}))}},{key:"_calculate_event_properties",value:function(t,e){var n,i=this.persistence.remove_event_timer(t),r=o({},e);if(r.token=this.get_config("token"),"$snapshot"===t){var s=o(o({},this.persistence.properties()),this.sessionPersistence.properties());return r.distinct_id=s.distinct_id,r}var a=pt.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),l=u.sessionId,c=u.windowId;r.$session_id=l,r.$window_id=c}if(null!==(n=this.webPerformance)&&void 0!==n&&n.isEnabled&&("$pageview"===t&&this.pageViewIdManager.onPageview(),r=H(r,{$pageview_id:this.pageViewIdManager.getPageViewId()})),"$pageview"===t&&(r.title=j.title),"$performance_event"===t){var f=this.persistence.properties();return r.distinct_id=f.distinct_id,r.$current_url=a.$current_url,r}if(void 0!==i){var h=(new Date).getTime()-i;r.$duration=parseFloat((h/1e3).toFixed(3))}r=H({},pt.properties(),this.persistence.properties(),this.sessionPersistence.properties(),r);var p=this.get_config("property_blacklist");W(p)?q(p,(function(t){delete r[t]})):console.error("Invalid value for property_blacklist config: "+p);var d=this.get_config("sanitize_properties");return d&&(r=d(r,t)),r}},{key:"register",value:function(t,e){this.persistence.register(t,e)}},{key:"register_once",value:function(t,e,n){this.persistence.register_once(t,e,n)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,e){this.register(s({},t,e))}},{key:"getFeatureFlag",value:function(t,e){return this.featureFlags.getFeatureFlag(t,e)}},{key:"getFeatureFlagPayload",value:function(t){var e=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(e)}catch(t){return e}}},{key:"isFeatureEnabled",value:function(t,e){return this.featureFlags.isFeatureEnabled(t,e)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,e){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,e)}},{key:"getEarlyAccessFeatures",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,e)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(t,e)}},{key:"getActiveMatchingSurveys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(t,e)}},{key:"identify",value:function(t,e,n){if(t){var r=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var i=r;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}t!==r&&t!==this.get_property(Nt)&&(this.unregister(Nt),this.register({distinct_id:t}));var o="anonymous"===this.persistence.get_user_state();t!==r&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(e||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:r},{$set:e||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(r)):(e||n)&&this.setPersonProperties(e,n),t!==r&&(this.reloadFeatureFlags(),this.unregister(Kt))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,e){(t||e)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:e||{}}))}},{key:"group",value:function(t,e,n){if(t&&e){var i=this.getGroups();i[t]!==e&&this.resetGroupPropertiesForFlags(t),this.register({$groups:o(o({},i),{},s({},t,e))}),n&&(this.capture("$groupidentify",{$group_type:t,$group_key:e,$group_set:n}),this.setGroupPropertiesForFlags(s({},t,n))),i[t]===e||n||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,e)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,e)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var e=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var n=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:n,$device_id:t?n:e},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var e=this.config.ui_host||this.config.api_host,n=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=n.sessionId,i=n.sessionStartTimestamp,o=e+"/replay/"+r;if(null!=t&&t.withTimestamp&&i){var s,a=null!==(s=t.timestampLookBack)&&void 0!==s?s:10;if(!i)return o;var u=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-a,0);o+="?t=".concat(u)}return o}},{key:"alias",value:function(t,e){return t===this.get_property(Lt)?(U("Attempting to create alias for existing People user - aborting."),-2):(X(e)&&(e=this.get_distinct_id()),t!==e?(this._register_single(Nt,t),this.capture("$create_alias",{alias:t,distinct_id:e})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var e=o({},this.config);K(t)&&(H(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),It.is_supported()&&"true"===It.get("ph_debug")&&(this.config.debug=!0),this.get_config("debug")&&(w.DEBUG=!0),this.sessionRecording&&void 0!==t.disable_session_recording&&e.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!(null===(t=this.sessionRecording)||void 0===t||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var e;return null===(e=this.config)||void 0===e?void 0:e[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,e=null!==(t=this.get_config("name"))&&void 0!==t?t:nr;return e!==nr&&(e=nr+"."+e),e}},{key:"_gdpr_init",value:function(){"localStorage"===this.get_config("opt_out_capturing_persistence_type")&&It.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!Ct.get("ph_optout")||(Ct.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var e;if(t&&t.clear_persistence)e=!0;else{if(!t||!t.enable_persistence)return;e=!1}this.get_config("disable_persistence")||this.persistence.disabled===e||this.persistence.set_disabled(e),this.get_config("disable_persistence")||this.sessionPersistence.disabled===e||this.sessionPersistence.set_disabled(e)}},{key:"_gdpr_call_func",value:function(t,e){return e=H({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},e||{}),It.is_supported()||"localStorage"!==e.persistence_type||(e.persistence_type="cookie"),t(this.get_config("token"),{capture:e.capture,captureEventName:e.capture_event_name,captureProperties:e.capture_properties,persistenceType:e.persistence_type,persistencePrefix:e.cookie_prefix,cookieExpiration:e.cookie_expiration,crossSubdomainCookie:e.cross_subdomain_cookie,secureCookie:e.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=H({enable_persistence:!0},t||{}),this._gdpr_call_func(Ee,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var e=H({clear_persistence:!0},t||{});this._gdpr_call_func(Se,e),this._gdpr_update_persistence(e)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(ke,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(Ae,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var e=H({enable_persistence:!0},null!=t?t:{});this._gdpr_call_func(Oe,e),this._gdpr_update_persistence(e)}},{key:"debug",value:function(t){!1===t?(I.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(I.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),t}();!function(t,e){for(var n=0;n<e.length;n++)t.prototype[e[n]]=tt(t.prototype[e[n]])}(ar,["identify"]);var sr={},ur=(Yn=Qn.INIT_MODULE,(Kn=new ar).init=function(t,e,n){if(n)return Kn[n]||(Kn[n]=sr[n]=or(t||"",e||{},n,(function(t){Kn[n]=sr[n]=t,t._loaded()}))),Kn[n];var r=Kn;return sr[nr]?r=sr[nr]:t&&(r=or(t,e||{},nr,(function(t){sr[nr]=t,t._loaded()})),sr[nr]=r),Kn=r,Yn===Qn.INIT_SNIPPET&&(I[nr]=Kn),q(sr,(function(t,e){e!==nr&&(Kn[e]=t)})),r},Kn.init(),function(){function t(){t.done||(t.done=!0,ir=!1,q(sr,(function(t){t._dom_loaded()})))}j.addEventListener&&("complete"===j.readyState?t():j.addEventListener("DOMContentLoaded",t,!1)),ft(I,"load",t,!0)}(),Kn)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return ft})),n.d(e,"b",(function(){return ht}));var r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)};function o(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};function c(t,e,n,r){return new(n||(n=Promise))((function(o,l){function c(t){try{h(r.next(t))}catch(t){l(t)}}function f(t){try{h(r.throw(t))}catch(t){l(t)}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,f)}h((r=r.apply(t,e||[])).next())}))}function f(t,body){var e,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],n=0}finally{e=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var h,d=n(2),m=n(379),v=n(56),y=n(49),_=n(251),w=n(8),x=n(68);function E(t){return t<7}!function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}(h||(h={}));var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype[_.default]=function(){return this},e.prototype["@@observable"]=function(){return this},e}(v.a);function k(t){return Array.isArray(t)&&t.length>0}var A,O=function(t){function e(n){var r,o,l=n.graphQLErrors,c=n.networkError,f=n.errorMessage,h=n.extraInfo,d=t.call(this,f)||this;return d.graphQLErrors=l||[],d.networkError=c||null,d.message=f||(o="",k((r=d).graphQLErrors)&&r.graphQLErrors.forEach((function(t){var e=t?t.message:"Error message not found.";o+="GraphQL error: "+e+"\n"})),r.networkError&&(o+="Network error: "+r.networkError.message+"\n"),o=o.replace(/\n$/,"")),d.extraInfo=h,d.__proto__=e.prototype,d}return o(e,t),e}(Error);!function(t){t[t.normal=1]="normal",t[t.refetch=2]="refetch",t[t.poll=3]="poll"}(A||(A={}));var T=function(t){function e(e){var n=e.queryManager,r=e.options,o=e.shouldSubscribe,l=void 0===o||o,c=t.call(this,(function(t){return c.onSubscribe(t)}))||this;c.observers=new Set,c.subscriptions=new Set,c.isTornDown=!1,c.options=r,c.variables=r.variables||{},c.queryId=n.generateQueryId(),c.shouldSubscribe=l;var f=Object(d.getOperationDefinition)(r.query);return c.queryName=f&&f.name&&f.name.value,c.queryManager=n,c}return o(e,t),e.prototype.result=function(){var t=this;return new Promise((function(e,n){var r={next:function(n){e(n),t.observers.delete(r),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:n},o=t.subscribe(r)}))},e.prototype.currentResult=function(){var t=this.getCurrentResult();return void 0===t.data&&(t.data={}),t},e.prototype.getCurrentResult=function(){if(this.isTornDown){var t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:h.error}}var e,n,r,o=this.queryManager.getCurrentQueryResult(this),data=o.data,c=o.partial,f=this.queryManager.queryStore.get(this.queryId),d=this.options.fetchPolicy,m="network-only"===d||"no-cache"===d;if(f){var v=f.networkStatus;if(n=f,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&k(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:v,error:new O({graphQLErrors:f.graphQLErrors,networkError:f.networkError})};f.variables&&(this.options.variables=l(l({},this.options.variables),f.variables),this.variables=this.options.variables),e={data:data,loading:E(v),networkStatus:v},f.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=f.graphQLErrors)}else{var y=m||c&&"cache-only"!==d;e={data:data,loading:y,networkStatus:y?h.loading:h.ready}}return c||this.updateLastResult(l(l({},e),{stale:!1})),l(l({},e),{partial:c})},e.prototype.isDifferentFromLastResult=function(t){var e=this.lastResultSnapshot;return!(e&&t&&e.networkStatus===t.networkStatus&&e.stale===t.stale&&Object(m.a)(e.data,t.data))},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){var t=this.queryManager.queryStore.get(this.queryId);t&&(t.networkError=null,t.graphQLErrors=[])},e.prototype.refetch=function(t){var e=this.options.fetchPolicy;return"cache-only"===e?Promise.reject(new w.a(1)):("no-cache"!==e&&"cache-and-network"!==e&&(e="network-only"),Object(m.a)(this.variables,t)||(this.variables=l(l({},this.variables),t)),Object(m.a)(this.options.variables,this.variables)||(this.options.variables=l(l({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,l(l({},this.options),{fetchPolicy:e}),A.refetch))},e.prototype.fetchMore=function(t){var e=this;Object(w.b)(t.updateQuery,2);var n=l(l({},t.query?t:l(l(l({},this.options),t),{variables:l(l({},this.variables),t.variables)})),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,A.normal,this.queryId).then((function(o){return e.updateQuery((function(e){return t.updateQuery(e,{fetchMoreResult:o.data,variables:n.variables})})),e.queryManager.stopQuery(r),o}),(function(t){throw e.queryManager.stopQuery(r),t}))},e.prototype.subscribeToMore=function(t){var e=this,n=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables}).subscribe({next:function(n){var r=t.updateQuery;r&&e.updateQuery((function(t,e){var o=e.variables;return r(t,{subscriptionData:n,variables:o})}))},error:function(e){t.onError&&t.onError(e)}});return this.subscriptions.add(n),function(){e.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(t){var e=this.options.fetchPolicy;this.options=l(l({},this.options),t),t.pollInterval?this.startPolling(t.pollInterval):0===t.pollInterval&&this.stopPolling();var n=t.fetchPolicy;return this.setVariables(this.options.variables,e!==n&&("cache-only"===e||"standby"===e||"network-only"===n),t.fetchResults)},e.prototype.setVariables=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!0),this.isTornDown=!1,t=t||this.variables,!e&&Object(m.a)(t,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=t,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,n=e.getQueryWithPreviousResult(this.queryId),r=n.previousResult,o=n.variables,l=n.document,c=Object(d.tryFunctionOrLogError)((function(){return t(r,{variables:o})}));c&&(e.dataStore.markUpdateQueryResult(l,o,c),e.broadcastQueries())},e.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},e.prototype.startPolling=function(t){I(this),this.options.pollInterval=t,this.queryManager.startPollingQuery(this.options,this.queryId)},e.prototype.updateLastResult=function(t){var e=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:Object(d.cloneDeep)(t),e},e.prototype.onSubscribe=function(t){var e=this;try{var n=t._subscription._observer;n&&!n.error&&(n.error=C)}catch(t){}var r=!this.observers.size;return this.observers.add(t),t.next&&this.lastResult&&t.next(this.lastResult),t.error&&this.lastError&&t.error(this.lastError),r&&this.setUpQuery(),function(){e.observers.delete(t)&&!e.observers.size&&e.tearDownQuery()}},e.prototype.setUpQuery=function(){var t=this,e=this.queryManager,n=this.queryId;this.shouldSubscribe&&e.addObservableQuery(n,this),this.options.pollInterval&&(I(this),e.startPollingQuery(this.options,n));var r=function(e){t.updateLastResult(l(l({},t.lastResult),{errors:e.graphQLErrors,networkStatus:h.error,loading:!1})),P(t.observers,"error",t.lastError=e)};e.observeQuery(n,this.options,{next:function(n){if(t.lastError||t.isDifferentFromLastResult(n)){var r=t.updateLastResult(n),o=t.options,l=o.query,c=o.variables,f=o.fetchPolicy;e.transform(l).hasClientExports?e.getLocalState().addExportedVariables(l,c).then((function(o){var c=t.variables;t.variables=t.options.variables=o,!n.loading&&r&&"cache-only"!==f&&e.transform(l).serverQuery&&!Object(m.a)(c,o)?t.refetch():P(t.observers,"next",n)})):P(t.observers,"next",n)}},error:r}).catch(r)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.isTornDown=!0,t.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(sub){return sub.unsubscribe()})),this.subscriptions.clear(),t.removeObservableQuery(this.queryId),t.stopQuery(this.queryId),this.observers.clear()},e}(S);function C(t){}function P(t,e,n){var r=[];t.forEach((function(t){return t[e]&&r.push(t)})),r.forEach((function(t){return t[e](n)}))}function I(t){var e=t.options.fetchPolicy;Object(w.b)("cache-first"!==e&&"cache-only"!==e,3)}var M=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,e,n){this.store[t]={mutation:e,variables:n||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,e){var n=this.store[t];n&&(n.loading=!1,n.error=e)},t.prototype.markMutationResult=function(t){var e=this.store[t];e&&(e.loading=!1,e.error=null)},t.prototype.reset=function(){this.store={}},t}(),j=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initQuery=function(t){var e=this.store[t.queryId];Object(w.b)(!e||e.document===t.document||Object(m.a)(e.document,t.document),19);var n,r=!1,o=null;t.storePreviousVariables&&e&&e.networkStatus!==h.loading&&(Object(m.a)(e.variables,t.variables)||(r=!0,o=e.variables)),n=r?h.setVariables:t.isPoll?h.poll:t.isRefetch?h.refetch:h.loading;var l=[];e&&e.graphQLErrors&&(l=e.graphQLErrors),this.store[t.queryId]={document:t.document,variables:t.variables,previousVariables:o,networkError:null,graphQLErrors:l,networkStatus:n,metadata:t.metadata},"string"==typeof t.fetchMoreForQueryId&&this.store[t.fetchMoreForQueryId]&&(this.store[t.fetchMoreForQueryId].networkStatus=h.fetchMore)},t.prototype.markQueryResult=function(t,e,n){this.store&&this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=k(e.errors)?e.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=h.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=h.ready))},t.prototype.markQueryError=function(t,e,n){this.store&&this.store[t]&&(this.store[t].networkError=e,this.store[t].networkStatus=h.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},t.prototype.markQueryResultClient=function(t,e){var n=this.store&&this.store[t];n&&(n.networkError=null,n.previousVariables=null,e&&(n.networkStatus=h.ready))},t.prototype.stopQuery=function(t){delete this.store[t]},t.prototype.reset=function(t){var e=this;Object.keys(this.store).forEach((function(n){t.indexOf(n)<0?e.stopQuery(n):e.store[n].networkStatus=h.loading}))},t}();var D=function(){function t(t){var e=t.cache,n=t.client,r=t.resolvers,o=t.fragmentMatcher;this.cache=e,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(d.mergeDeep)(e.resolvers,t)})):this.resolvers=Object(d.mergeDeep)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,n=t.remoteResult,r=t.context,o=t.variables,h=t.onlyRunForcedResolvers,d=void 0!==h&&h;return c(this,void 0,void 0,(function(){return f(this,(function(t){return e?[2,this.resolveDocument(e,n.data,r,o,this.fragmentMatcher,d).then((function(t){return l(l({},n),{data:t.result})}))]:[2,n]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(d.hasDirectives)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return this.resolvers?Object(d.removeClientSetsFromDocument)(t):t},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.cache;return l(l({},t),{cache:e,getCacheKey:function(t){if(e.config)return e.config.dataIdFromObject(t);Object(w.b)(!1,6)}})},t.prototype.addExportedVariables=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),c(this,void 0,void 0,(function(){return f(this,(function(r){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(n),e).then((function(data){return l(l({},e),data.exportedVariables)}))]:[2,l({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(x.b)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return x.a}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(d.buildQueryFromSelectionSet)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,n,r,o,h){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===h&&(h=!1),c(this,void 0,void 0,(function(){var c,m,v,y,_,w,x,E,S;return f(this,(function(f){var k;return c=Object(d.getMainDefinition)(t),m=Object(d.getFragmentDefinitions)(t),v=Object(d.createFragmentMap)(m),y=c.operation,_=y?(k=y).charAt(0).toUpperCase()+k.slice(1):"Query",x=(w=this).cache,E=w.client,S={fragmentMap:v,context:l(l({},n),{cache:x,client:E}),variables:r,fragmentMatcher:o,defaultOperationType:_,exportedVariables:{},onlyRunForcedResolvers:h},[2,this.resolveSelectionSet(c.selectionSet,e,S).then((function(t){return{result:t,exportedVariables:S.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,n){return c(this,void 0,void 0,(function(){var r,o,l,h,m,v=this;return f(this,(function(y){return r=n.fragmentMap,o=n.context,l=n.variables,h=[e],m=function(t){return c(v,void 0,void 0,(function(){var c,m;return f(this,(function(f){return Object(d.shouldInclude)(t,l)?Object(d.isField)(t)?[2,this.resolveField(t,e,n).then((function(e){var n;void 0!==e&&h.push(((n={})[Object(d.resultKeyNameFromField)(t)]=e,n))}))]:(Object(d.isInlineFragment)(t)?c=t:(c=r[t.name.value],Object(w.b)(c,7)),c&&c.typeCondition&&(m=c.typeCondition.name.value,n.fragmentMatcher(e,m,o))?[2,this.resolveSelectionSet(c.selectionSet,e,n).then((function(t){h.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(m)).then((function(){return Object(d.mergeDeepArray)(h)}))]}))}))},t.prototype.resolveField=function(t,e,n){return c(this,void 0,void 0,(function(){var r,o,l,c,h,m,v,y,_,w=this;return f(this,(function(f){return r=n.variables,o=t.name.value,l=Object(d.resultKeyNameFromField)(t),c=o!==l,h=e[l]||e[o],m=Promise.resolve(h),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(v=e.__typename||n.defaultOperationType,(y=this.resolvers&&this.resolvers[v])&&(_=y[c?o:l])&&(m=Promise.resolve(_(e,Object(d.argumentsObjectFromField)(t,r),n.context,{field:t,fragmentMap:n.fragmentMap})))),[2,m.then((function(e){return void 0===e&&(e=h),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(n.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?w.resolveSubSelectedArray(t,e,n):t.selectionSet?w.resolveSelectionSet(t.selectionSet,e,n):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,n){var r=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?r.resolveSubSelectedArray(t,e,n):t.selectionSet?r.resolveSelectionSet(t.selectionSet,e,n):void 0})))},t}();function F(t){var e=new Set,sub=null;return new S((function(n){return e.add(n),sub=sub||t.subscribe({next:function(t){e.forEach((function(e){return e.next&&e.next(t)}))},error:function(t){e.forEach((function(e){return e.error&&e.error(t)}))},complete:function(){e.forEach((function(t){return t.complete&&t.complete()}))}}),function(){e.delete(n)&&!e.size&&sub&&(sub.unsubscribe(),sub=null)}}))}var R=Object.prototype.hasOwnProperty,L=function(){function t(t){var link=t.link,e=t.queryDeduplication,n=void 0!==e&&e,r=t.store,o=t.onBroadcast,l=void 0===o?function(){}:o,c=t.ssrMode,f=void 0!==c&&c,h=t.clientAwareness,m=void 0===h?{}:h,v=t.localState,y=t.assumeImmutableResults;this.mutationStore=new M,this.queryStore=new j,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(d.canUseWeakMap?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=link,this.queryDeduplication=n,this.dataStore=r,this.onBroadcast=l,this.clientAwareness=m,this.localState=v||new D({cache:r.getCache()}),this.ssrMode=f,this.assumeImmutableResults=!!y}return t.prototype.stop=function(){var t=this;this.queries.forEach((function(e,n){t.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(t){t(new w.a(8))}))},t.prototype.mutate=function(t){var e=t.mutation,n=t.variables,r=t.optimisticResponse,o=t.updateQueries,h=t.refetchQueries,m=void 0===h?[]:h,v=t.awaitRefetchQueries,y=void 0!==v&&v,_=t.update,x=t.errorPolicy,E=void 0===x?"none":x,S=t.fetchPolicy,A=t.context,T=void 0===A?{}:A;return c(this,void 0,void 0,(function(){var t,c,h,v=this;return f(this,(function(f){switch(f.label){case 0:return Object(w.b)(e,9),Object(w.b)(!S||"no-cache"===S,10),t=this.generateQueryId(),e=this.transform(e).document,this.setQuery(t,(function(){return{document:e}})),n=this.getVariables(e,n),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,n,T)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return c=function(){var t={};return o&&v.queries.forEach((function(e,n){var r=e.observableQuery;if(r){var l=r.queryName;l&&R.call(o,l)&&(t[n]={updater:o[l],query:v.queryStore.get(n)})}})),t},this.mutationStore.initMutation(t,e,n),this.dataStore.markMutationInit({mutationId:t,document:e,variables:n,updateQueries:c(),update:_,optimisticResponse:r}),this.broadcastQueries(),h=this,[2,new Promise((function(o,f){var v,w;h.getObservableFromLink(e,l(l({},T),{optimisticResponse:r}),n,!1).subscribe({next:function(r){Object(d.graphQLResultHasError)(r)&&"none"===E?w=new O({graphQLErrors:r.errors}):(h.mutationStore.markMutationResult(t),"no-cache"!==S&&h.dataStore.markMutationResult({mutationId:t,result:r,document:e,variables:n,updateQueries:c(),update:_}),v=r)},error:function(e){h.mutationStore.markMutationError(t,e),h.dataStore.markMutationComplete({mutationId:t,optimisticResponse:r}),h.broadcastQueries(),h.setQuery(t,(function(){return{document:null}})),f(new O({networkError:e}))},complete:function(){if(w&&h.mutationStore.markMutationError(t,w),h.dataStore.markMutationComplete({mutationId:t,optimisticResponse:r}),h.broadcastQueries(),w)f(w);else{"function"==typeof m&&(m=m(v));var e=[];k(m)&&m.forEach((function(t){if("string"==typeof t)h.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===t&&e.push(r.refetch())}));else{var n={query:t.query,variables:t.variables,fetchPolicy:"network-only"};t.context&&(n.context=t.context),e.push(h.query(n))}})),Promise.all(y?e:[]).then((function(){h.setQuery(t,(function(){return{document:null}})),"ignore"===E&&v&&Object(d.graphQLResultHasError)(v)&&delete v.errors,o(v)}))}}})}))]}}))}))},t.prototype.fetchQuery=function(t,e,n,r){return c(this,void 0,void 0,(function(){var o,c,h,m,v,y,_,w,x,E,S,k,T,C,P,I,M,j,D=this;return f(this,(function(f){switch(f.label){case 0:return o=e.metadata,c=void 0===o?null:o,h=e.fetchPolicy,m=void 0===h?"cache-first":h,v=e.context,y=void 0===v?{}:v,_=this.transform(e.query).document,w=this.getVariables(_,e.variables),this.transform(_).hasClientExports?[4,this.localState.addExportedVariables(_,w,y)]:[3,2];case 1:w=f.sent(),f.label=2;case 2:if(e=l(l({},e),{variables:w}),S=E="network-only"===m||"no-cache"===m,E||(k=this.dataStore.getCache().diff({query:_,variables:w,returnPartialData:!0,optimistic:!1}),T=k.complete,C=k.result,S=!T||"cache-and-network"===m,x=C),P=S&&"cache-only"!==m&&"standby"!==m,Object(d.hasDirectives)(["live"],_)&&(P=!0),I=this.idCounter++,M="no-cache"!==m?this.updateQueryWatch(t,_,e):void 0,this.setQuery(t,(function(){return{document:_,lastRequestId:I,invalidated:!0,cancel:M}})),this.invalidate(r),this.queryStore.initQuery({queryId:t,document:_,storePreviousVariables:P,variables:w,isPoll:n===A.poll,isRefetch:n===A.refetch,metadata:c,fetchMoreForQueryId:r}),this.broadcastQueries(),P){if(j=this.fetchRequest({requestId:I,queryId:t,document:_,options:e,fetchMoreForQueryId:r}).catch((function(e){throw e.hasOwnProperty("graphQLErrors")?e:(I>=D.getQuery(t).lastRequestId&&(D.queryStore.markQueryError(t,e,r),D.invalidate(t),D.invalidate(r),D.broadcastQueries()),new O({networkError:e}))})),"cache-and-network"!==m)return[2,j];j.catch((function(){}))}return this.queryStore.markQueryResultClient(t,!P),this.invalidate(t),this.invalidate(r),this.transform(_).hasForcedResolvers?[2,this.localState.runResolvers({document:_,remoteResult:{data:x},context:y,variables:w,onlyRunForcedResolvers:!0}).then((function(n){return D.markQueryResult(t,n,e,r),D.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:x}])}}))}))},t.prototype.markQueryResult=function(t,e,n,r){var o=n.fetchPolicy,l=n.variables,c=n.errorPolicy;"no-cache"===o?this.setQuery(t,(function(){return{newData:{result:e.data,complete:!0}}})):this.dataStore.markQueryResult(e,this.getQuery(t).document,l,r,"ignore"===c||"all"===c)},t.prototype.queryListenerForObserver=function(t,e,n){var r=this;function o(t,e){if(n[t])try{n[t](e)}catch(t){}}return function(n,l){if(r.invalidate(t,!1),n){var c=r.getQuery(t),f=c.observableQuery,h=c.document,d=f?f.options.fetchPolicy:e.fetchPolicy;if("standby"!==d){var m=E(n.networkStatus),v=f&&f.getLastResult(),y=!(!v||v.networkStatus===n.networkStatus),_=e.returnPartialData||!l&&n.previousVariables||y&&e.notifyOnNetworkStatusChange||"cache-only"===d||"cache-and-network"===d;if(!m||_){var w=k(n.graphQLErrors),x=f&&f.options.errorPolicy||e.errorPolicy||"none";if("none"===x&&w||n.networkError)return o("error",new O({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var data=void 0,S=void 0;if(l)"no-cache"!==d&&"network-only"!==d&&r.setQuery(t,(function(){return{newData:null}})),data=l.result,S=!l.complete;else{var A=f&&f.getLastError(),T="none"!==x&&(A&&A.graphQLErrors)!==n.graphQLErrors;if(v&&v.data&&!T)data=v.data,S=!1;else{var C=r.dataStore.getCache().diff({query:h,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});data=C.result,S=!C.complete}}var P=S&&!(e.returnPartialData||"cache-only"===d),I={data:P?v&&v.data:data,loading:m,networkStatus:n.networkStatus,stale:P};"all"===x&&w&&(I.errors=n.graphQLErrors),o("next",I)}catch(t){o("error",new O({networkError:t}))}}}}}},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var n=this.dataStore.getCache(),r=n.transformDocument(t),o=Object(d.removeConnectionDirectiveFromDocument)(n.transformForLink(r)),l=this.localState.clientQuery(r),c=this.localState.serverQuery(o),f={document:r,hasClientExports:Object(d.hasClientExports)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:l,serverQuery:c,defaultVars:Object(d.getDefaultValues)(Object(d.getOperationDefinition)(r))},h=function(t){t&&!e.has(t)&&e.set(t,f)};h(t),h(r),h(l),h(c)}return e.get(t)},t.prototype.getVariables=function(t,e){return l(l({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t,e){void 0===e&&(e=!0),Object(w.b)("standby"!==t.fetchPolicy,11),t.variables=this.getVariables(t.query,t.variables),void 0===t.notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var n=l({},t);return new T({queryManager:this,options:n,shouldSubscribe:e})},t.prototype.query=function(t){var e=this;return Object(w.b)(t.query,12),Object(w.b)("Document"===t.query.kind,13),Object(w.b)(!t.returnPartialData,14),Object(w.b)(!t.pollInterval,15),new Promise((function(n,r){var o=e.watchQuery(t,!1);e.fetchQueryRejectFns.set("query:"+o.queryId,r),o.result().then(n,r).then((function(){return e.fetchQueryRejectFns.delete("query:"+o.queryId)}))}))},t.prototype.generateQueryId=function(){return String(this.idCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){this.stopPollingQuery(t),this.queryStore.stopQuery(t),this.invalidate(t)},t.prototype.addQueryListener=function(t,e){this.setQuery(t,(function(t){return t.listeners.add(e),{invalidated:!1}}))},t.prototype.updateQueryWatch=function(t,e,n){var r=this,o=this.getQuery(t).cancel;o&&o();return this.dataStore.getCache().watch({query:e,variables:n.variables,optimistic:!0,previousResult:function(){var e=null,n=r.getQuery(t).observableQuery;if(n){var o=n.getLastResult();o&&(e=o.data)}return e},callback:function(e){r.setQuery(t,(function(){return{invalidated:!0,newData:e}}))}})},t.prototype.addObservableQuery=function(t,e){this.setQuery(t,(function(){return{observableQuery:e}}))},t.prototype.removeObservableQuery=function(t){var e=this.getQuery(t).cancel;this.setQuery(t,(function(){return{observableQuery:null}})),e&&e()},t.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(t){t(new w.a(16))}));var t=[];return this.queries.forEach((function(e,n){e.observableQuery&&t.push(n)})),this.queryStore.reset(t),this.mutationStore.reset(),this.dataStore.reset()},t.prototype.resetStore=function(){var t=this;return this.clearStore().then((function(){return t.reFetchObservableQueries()}))},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var n=[];return this.queries.forEach((function(r,o){var l=r.observableQuery;if(l){var c=l.options.fetchPolicy;l.resetLastResults(),"cache-only"===c||!t&&"standby"===c||n.push(l.refetch()),e.setQuery(o,(function(){return{newData:null}})),e.invalidate(o)}})),this.broadcastQueries(),Promise.all(n)},t.prototype.observeQuery=function(t,e,n){return this.addQueryListener(t,this.queryListenerForObserver(t,e,n)),this.fetchQuery(t,e)},t.prototype.startQuery=function(t,e,n){return this.addQueryListener(t,n),this.fetchQuery(t,e).catch((function(){})),t},t.prototype.startGraphQLSubscription=function(t){var e=this,n=t.query,r=t.fetchPolicy,o=t.variables;n=this.transform(n).document,o=this.getVariables(n,o);var l=function(t){return e.getObservableFromLink(n,{},t,!1).map((function(o){if(r&&"no-cache"===r||(e.dataStore.markSubscriptionResult(o,n,t),e.broadcastQueries()),Object(d.graphQLResultHasError)(o))throw new O({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o).then(l);return new S((function(t){var sub=null;return c.then((function(e){return sub=e.subscribe(t)}),t.error),function(){return sub&&sub.unsubscribe()}}))}return l(o)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchQueryRejectFns.delete("query:"+t),this.fetchQueryRejectFns.delete("fetchRequest:"+t),this.getQuery(t).subscriptions.forEach((function(t){return t.unsubscribe()})),this.queries.delete(t)},t.prototype.getCurrentQueryResult=function(t,e){void 0===e&&(e=!0);var n=t.options,r=n.variables,o=n.query,l=n.fetchPolicy,c=n.returnPartialData,f=t.getLastResult(),h=this.getQuery(t.queryId).newData;if(h&&h.complete)return{data:h.result,partial:!1};if("no-cache"===l||"network-only"===l)return{data:void 0,partial:!1};var d=this.dataStore.getCache().diff({query:o,variables:r,previousResult:f?f.data:void 0,returnPartialData:!0,optimistic:e}),m=d.result,v=d.complete;return{data:v||c?m:void 0,partial:!v}},t.prototype.getQueryWithPreviousResult=function(t){var e;if("string"==typeof t){var n=this.getQuery(t).observableQuery;Object(w.b)(n,17),e=n}else e=t;var r=e.options,o=r.variables,l=r.query;return{previousResult:this.getCurrentQueryResult(e,!1).data,variables:o,document:l}},t.prototype.broadcastQueries=function(){var t=this;this.onBroadcast(),this.queries.forEach((function(e,n){e.invalidated&&e.listeners.forEach((function(r){r&&r(t.queryStore.get(n),e.newData)}))}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,n,r){var o,c=this;void 0===r&&(r=this.queryDeduplication);var f=this.transform(t).serverQuery;if(f){var h=this.inFlightLinkObservables,link=this.link,m={query:f,variables:n,operationName:Object(d.getOperationName)(f)||void 0,context:this.prepareContext(l(l({},e),{forceFetch:!r}))};if(e=m.context,r){var v=h.get(f)||new Map;h.set(f,v);var _=JSON.stringify(n);if(!(o=v.get(_))){v.set(_,o=F(Object(y.execute)(link,m)));var w=function(){v.delete(_),v.size||h.delete(f),x.unsubscribe()},x=o.subscribe({next:w,error:w,complete:w})}}else o=F(Object(y.execute)(link,m))}else o=S.of({data:{}}),e=this.prepareContext(e);var E=this.transform(t).clientQuery;return E&&(o=function(t,e){return new S((function(n){var r=n.next,o=n.error,l=n.complete,c=0,f=!1,h={next:function(t){++c,new Promise((function(n){n(e(t))})).then((function(t){--c,r&&r.call(n,t),f&&h.complete()}),(function(t){--c,o&&o.call(n,t)}))},error:function(t){o&&o.call(n,t)},complete:function(){f=!0,c||l&&l.call(n)}},sub=t.subscribe(h);return function(){return sub.unsubscribe()}}))}(o,(function(t){return c.localState.runResolvers({document:E,remoteResult:t,context:e,variables:n})}))),o},t.prototype.fetchRequest=function(t){var e,n,r=this,o=t.requestId,l=t.queryId,c=t.document,f=t.options,d=t.fetchMoreForQueryId,m=f.variables,v=f.errorPolicy,y=void 0===v?"none":v,_=f.fetchPolicy;return new Promise((function(t,v){var w=r.getObservableFromLink(c,f.context,m),x="fetchRequest:"+l;r.fetchQueryRejectFns.set(x,v);var E=function(){r.fetchQueryRejectFns.delete(x),r.setQuery(l,(function(t){t.subscriptions.delete(S)}))},S=w.map((function(t){if(o>=r.getQuery(l).lastRequestId&&(r.markQueryResult(l,t,f,d),r.queryStore.markQueryResult(l,t,d),r.invalidate(l),r.invalidate(d),r.broadcastQueries()),"none"===y&&k(t.errors))return v(new O({graphQLErrors:t.errors}));if("all"===y&&(n=t.errors),d||"no-cache"===_)e=t.data;else{var h=r.dataStore.getCache().diff({variables:m,query:c,optimistic:!1,returnPartialData:!0}),w=h.result;(h.complete||f.returnPartialData)&&(e=w)}})).subscribe({error:function(t){E(),v(t)},complete:function(){E(),t({data:e,errors:n,loading:!1,networkStatus:h.ready,stale:!1})}});r.setQuery(l,(function(t){t.subscriptions.add(S)}))}))},t.prototype.getQuery=function(t){return this.queries.get(t)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},t.prototype.setQuery=function(t,e){var n=this.getQuery(t),r=l(l({},n),e(n));this.queries.set(t,r)},t.prototype.invalidate=function(t,e){void 0===e&&(e=!0),t&&this.setQuery(t,(function(){return{invalidated:e}}))},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return l(l({},e),{clientAwareness:this.clientAwareness})},t.prototype.checkInFlight=function(t){var e=this.queryStore.get(t);return e&&e.networkStatus!==h.ready&&e.networkStatus!==h.error},t.prototype.startPollingQuery=function(t,e,n){var r=this,o=t.pollInterval;if(Object(w.b)(o,18),!this.ssrMode){var c=this.pollingInfoByQueryId.get(e);c||this.pollingInfoByQueryId.set(e,c={}),c.interval=o,c.options=l(l({},t),{fetchPolicy:"network-only"});var f=function(){var t=r.pollingInfoByQueryId.get(e);t&&(r.checkInFlight(e)?h():r.fetchQuery(e,t.options,A.poll).then(h,h))},h=function(){var t=r.pollingInfoByQueryId.get(e);t&&(clearTimeout(t.timeout),t.timeout=setTimeout(f,t.interval))};n&&this.addQueryListener(e,n),h()}return e},t.prototype.stopPollingQuery=function(t){this.pollingInfoByQueryId.delete(t)},t}(),N=function(){function t(t){this.cache=t}return t.prototype.getCache=function(){return this.cache},t.prototype.markQueryResult=function(t,e,n,r,o){void 0===o&&(o=!1);var l=!Object(d.graphQLResultHasError)(t);o&&Object(d.graphQLResultHasError)(t)&&t.data&&(l=!0),!r&&l&&this.cache.write({result:t.data,dataId:"ROOT_QUERY",query:e,variables:n})},t.prototype.markSubscriptionResult=function(t,e,n){Object(d.graphQLResultHasError)(t)||this.cache.write({result:t.data,dataId:"ROOT_SUBSCRIPTION",query:e,variables:n})},t.prototype.markMutationInit=function(t){var e,n=this;t.optimisticResponse&&(e="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var o=n.cache;n.cache=r;try{n.markMutationResult({mutationId:t.mutationId,result:{data:e},document:t.document,variables:t.variables,updateQueries:t.updateQueries,update:t.update})}finally{n.cache=o}}),t.mutationId))},t.prototype.markMutationResult=function(t){var e=this;if(!Object(d.graphQLResultHasError)(t.result)){var n=[{result:t.result.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}],r=t.updateQueries;r&&Object.keys(r).forEach((function(o){var l=r[o],c=l.query,f=l.updater,h=e.cache.diff({query:c.document,variables:c.variables,returnPartialData:!0,optimistic:!1}),m=h.result;if(h.complete){var v=Object(d.tryFunctionOrLogError)((function(){return f(m,{mutationResult:t.result,queryName:Object(d.getOperationName)(c.document)||void 0,queryVariables:c.variables})}));v&&n.push({result:v,dataId:"ROOT_QUERY",query:c.document,variables:c.variables})}})),this.cache.performTransaction((function(e){n.forEach((function(t){return e.write(t)}));var r=t.update;r&&Object(d.tryFunctionOrLogError)((function(){return r(e,t.result)}))}))}},t.prototype.markMutationComplete=function(t){var e=t.mutationId;t.optimisticResponse&&this.cache.removeOptimistic(e)},t.prototype.markUpdateQueryResult=function(t,e,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:e,query:t})},t.prototype.reset=function(){return this.cache.reset()},t}(),B=function(){function t(t){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=t.cache,r=t.ssrMode,o=void 0!==r&&r,l=t.ssrForceFetchDelay,c=void 0===l?0:l,f=t.connectToDevTools,h=t.queryDeduplication,d=void 0===h||h,m=t.defaultOptions,v=t.assumeImmutableResults,_=void 0!==v&&v,x=t.resolvers,E=t.typeDefs,S=t.fragmentMatcher,k=t.name,A=t.version,link=t.link;if(!link&&x&&(link=y.ApolloLink.empty()),!link||!n)throw new w.a(4);this.link=link,this.cache=n,this.store=new N(n),this.disableNetworkFetches=o||c>0,this.queryDeduplication=d,this.defaultOptions=m||{},this.typeDefs=E,c&&setTimeout((function(){return e.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==f&&(f&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new D({cache:n,client:this,resolvers:x,fragmentMatcher:S}),this.queryManager=new L({link:this.link,store:this.store,queryDeduplication:d,ssrMode:o,clientAwareness:{name:k,version:A},localState:this.localState,assumeImmutableResults:_,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=l(l({},this.defaultOptions.watchQuery),t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=l(l({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=l(l({},this.defaultOptions.query),t)),Object(w.b)("cache-and-network"!==t.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=l(l({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=l(l({},this.defaultOptions.mutate),t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){var e=this.cache.writeQuery(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(t){var e=this.cache.writeFragment(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeData=function(t){var e=this.cache.writeData(t);return this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return Object(y.execute)(this.link,t)},t.prototype.initQueryManager=function(){return this.queryManager},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t}(),V=n(408),z=n(118),U=n(163),$=n(252),G=n.n($),H=function(t,b){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},H(t,b)};var W=function(t){function e(e){var n=t.call(this)||this;return e instanceof U.SubscriptionClient?n.subscriptionClient=e:n.subscriptionClient=new U.SubscriptionClient(e.uri,e.options,e.webSocketImpl),n}return function(t,b){function e(){this.constructor=t}H(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}(e,t),e.prototype.request=function(t){return this.subscriptionClient.request(t)},e}(y.ApolloLink),Q=n(159),Y=n(612),K={generateHash:function(t){return Y().update(Object(Q.print)(t)).digest("hex")},disable:function(t){var e=t.graphQLErrors,n=t.operation;if(e&&e.some((function(t){return"PersistedQueryNotSupported"===t.message})))return!0;var r=n.getContext().response;return!(!r||!r.status||400!==r.status&&500!==r.status)},useGETForHashedQueries:!1};function X(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}var J=Object.prototype.hasOwnProperty,Z="__createPersistedQueryLink_hashes",tt="function"==typeof Symbol?Symbol.for(Z):Z,et=0,nt=function(t){void 0===t&&(t={});var e=Object.assign({},K,t),n=e.generateHash,r=e.disable,o=e.useGETForHashedQueries,l=!0,c="forLink"+et++;function f(t){if(!t||"object"!=typeof t)return n(t);J.call(t,tt)||Object.defineProperty(t,tt,{value:Object.create(null),enumerable:!1});var e=t[tt];return J.call(e,c)?e[c]:e[c]=n(t)}return new y.ApolloLink((function(t,e){if(!e)throw new Error("PersistedQueryLink cannot be the last link in the chain.");var n,c=t.query;if(l)try{t.extensions.persistedQuery={version:1,sha256Hash:f(c)}}catch(t){n=t}return new v.a((function(c){if(!n){var f,h,d=!1,m=!1,v=function(n,o){var c=n.response,v=n.networkError;if(!d&&(c&&c.errors||v)&&(d=!0,l=!r({response:c,networkError:v,operation:t,graphQLErrors:c&&c.errors||void 0}),c&&c.errors&&c.errors.some((function(t){return"PersistedQueryNotFound"===t.message}))||!l))return f&&f.unsubscribe(),t.setContext({http:{includeQuery:!0,includeExtensions:l}}),m&&t.setContext({fetchOptions:h}),void(f=e(t).subscribe(y));o()},y={next:function(t){v({response:t},(function(){return c.next(t)}))},error:function(t){v({networkError:t},(function(){return c.error(t)}))},complete:c.complete.bind(c)};return t.setContext({http:{includeQuery:!l,includeExtensions:l}}),o&&l&&function(t){return!t.query.definitions.some(X)}(t)&&(t.setContext((function(t){var e=t.fetchOptions,n=void 0===e?{}:e;return h=n,{fetchOptions:Object.assign({},n,{method:"GET"})}})),m=!0),f=e(t).subscribe(y),function(){f&&f.unsubscribe()}}c.error(n)}))}))};function it(t){return new y.ApolloLink((function(e,n){var r=function(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}(e,[]);return new v.a((function(o){var l;return Promise.resolve(r).then((function(n){return t(n,e.getContext())})).then(e.setContext).then((function(){l=n(e).subscribe({next:o.next.bind(o),error:o.error.bind(o),complete:o.complete.bind(o)})})).catch(o.error.bind(o)),function(){l&&l.unsubscribe()}}))}))}var ot=n(407),at={test:function(t){return"client"===t.name.value},remove:!0},st=new Map;var ut=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])};return function(e,b){function n(){this.constructor=e}t(e,b),e.prototype=null===b?Object.create(b):(n.prototype=b.prototype,new n)}}(),lt=ot.graphql,ct=function(t){void 0===t&&(t={resolvers:{},defaults:{}});var e=t.defaults,n=t.cache,r=t.typeDefs,o=t.fragmentMatcher;return n&&e&&n.writeData({data:e}),new(function(l){function c(){return null!==l&&l.apply(this,arguments)||this}return ut(c,l),c.prototype.writeDefaults=function(){n&&e&&n.writeData({data:e})},c.prototype.request=function(n,l){if(void 0===l&&(l=function(){return v.a.of({data:{}})}),r){var c=function(t){return(Array.isArray(t)?t:[t]).map((function(t){return"string"==typeof t?t:Object(Q.print)(t)})).map((function(t){return t.trim()})).join("\n")}(r);n.setContext((function(t){var e=t.schemas;return{schemas:(void 0===e?[]:e).concat([{definition:c,directives:"directive @client on FIELD"}])}}))}if(!Object(d.hasDirectives)(["client"],n.query))return l(n);var f,h="function"==typeof t.resolvers?t.resolvers():t.resolvers,m=function(t){var e=st.get(t);if(e)return e;Object(d.checkDocument)(t);var n=Object(d.removeDirectivesFromDocument)([at],t);return st.set(t,n),n}(n.query),y=n.query,_=(f=(Object(d.getMainDefinition)(y)||{}).operation).charAt(0).toUpperCase()+f.slice(1)||"Query",w=function(t,n,r,o,l){void 0===n&&(n={});var c=l.resultKey,f=n[c],d=n[t],m=c!==t;if(void 0!==f||void 0!==d)return f||d;var v=h[n.__typename||_];if(v){var y=v[t];if(y)return y(n,r,o,l)}return(m?f:d)||(e||{})[t]};m&&(n.query=m);var x=m&&l?l(n):v.a.of({data:{}});return new v.a((function(t){var e=!1,r=!1;x.subscribe({next:function(l){var data=l.data,c=l.errors,f=t.error.bind(t),h=n.getContext();r=!0,lt(w,y,data,h,n.variables,{fragmentMatcher:o}).then((function(n){t.next({data:n,errors:c}),e&&t.complete(),r=!1})).catch(f)},error:t.error.bind(t),complete:function(){r||t.complete(),e=!0}})}))},c}(y.ApolloLink))};function ft({clientId:t="defaultClient",httpEndpoint:e,wsEndpoint:n=null,tokenName:r="apollo-token",persisting:o=!1,ssr:l=!1,websocketsOnly:c=!1,link:link=null,preAuthLinks:f=[],defaultHttpLink:h=!0,httpLinkOptions:m={},cache:v=null,inMemoryCacheOptions:_={},apollo:w={},clientState:x=null,getAuth:E=pt,typeDefs:S,resolvers:k,onCacheInit:A}){let O,T,C;const P=c&&!l&&n;if(v||(v=new z.a(_)),!P){const t=Object(V.createUploadLink)({uri:e,...m});link?h&&(link=Object(y.from)([link,t])):link=t,T=it((async(t,{headers:e})=>{const n=await E(r);return{headers:{...e,...n?{Authorization:n}:{}}}})),link=T.concat(link),f.length&&(link=Object(y.from)(f).concat(T))}if(!l){if("undefined"!=typeof window){const e=window.__APOLLO_STATE__;e&&e[t]&&v.restore(e[t])}if(!P){let t={};"object"==typeof o&&null!=o&&(t=o,o=!0),!0===o&&(link=nt(t).concat(link))}if(n){O=new U.SubscriptionClient(n,{reconnect:!0,connectionParams:()=>{const t=E(r);return t?{Authorization:t,headers:{Authorization:t}}:{}}});const t=new W(O);link=P?link?link.concat(t):t:Object(y.split)((({query:t})=>{const{kind:e,operation:n}=Object(d.getMainDefinition)(t);return"OperationDefinition"===e&&"subscription"===n}),t,link)}}x&&(console.warn("clientState is deprecated, see https://vue-cli-plugin-apollo.netlify.com/guide/client-state.html"),C=ct({cache:v,...x}),link=Object(y.from)([C,link]));const I=new B({link:link,cache:v,...l?{ssrMode:!0}:{ssrForceFetchDelay:100,connectToDevTools:!1},typeDefs:S,resolvers:k,...w});return C&&I.onResetStore(C.writeDefaults),A&&(A(v),I.onResetStore((()=>A(v)))),{apolloClient:I,wsClient:O,stateLink:C}}function ht(t){const e=Object.assign({},t.operations);t.close(!0),t.connect(),Object.keys(e).forEach((n=>{t.sendMessage(n,G.a.GQL_START,e[n].options)}))}function pt(t){if("undefined"!=typeof window){const e=window.localStorage.getItem(t);return e?`Bearer ${e}`:""}}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";(function(e){var r=n(250);function o(a,b){if(a===b)return 0;for(var t=a.length,e=b.length,i=0,n=Math.min(t,e);i<n;++i)if(a[i]!==b[i]){t=a[i],e=b[i];break}return t<e?-1:e<t?1:0}function l(b){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(b):!(null==b||!b._isBuffer)}var c=n(152),f=Object.prototype.hasOwnProperty,h=Array.prototype.slice,d="foo"===function(){}.name;function m(t){return Object.prototype.toString.call(t)}function v(t){return!l(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var y=t.exports=k,_=/\s*function\s+([^\(\s]*)\s*/;function w(t){if(c.isFunction(t)){if(d)return t.name;var e=t.toString().match(_);return e&&e[1]}}function x(s,t){return"string"==typeof s?s.length<t?s:s.slice(0,t):s}function E(t){if(d||!c.isFunction(t))return c.inspect(t);var e=w(t);return"[Function"+(e?": "+e:"")+"]"}function S(t,e,n,r,o){throw new y.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:o})}function k(t,e){t||S(t,!0,e,"==",y.ok)}function A(t,e,n,r){if(t===e)return!0;if(l(t)&&l(e))return 0===o(t,e);if(c.isDate(t)&&c.isDate(e))return t.getTime()===e.getTime();if(c.isRegExp(t)&&c.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(v(t)&&v(e)&&m(t)===m(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===o(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(l(t)!==l(e))return!1;var f=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==f&&f===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(a,b,t,e){if(null==a||null==b)return!1;if(c.isPrimitive(a)||c.isPrimitive(b))return a===b;if(t&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(b))return!1;var n=O(a),r=O(b);if(n&&!r||!n&&r)return!1;if(n)return A(a=h.call(a),b=h.call(b),t);var o,i,l=P(a),f=P(b);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),i=l.length-1;i>=0;i--)if(l[i]!==f[i])return!1;for(i=l.length-1;i>=0;i--)if(!A(a[o=l[i]],b[o],t,e))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function O(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function T(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function C(t,e,n,r){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!o&&S(o,n,"Missing expected exception"+r);var l="string"==typeof r,f=!t&&o&&!n;if((!t&&c.isError(o)&&l&&T(o,n)||f)&&S(o,n,"Got unwanted exception"+r),t&&o&&n&&!T(o,n)||!t&&o)throw o}y.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return x(E(t.actual),128)+" "+t.operator+" "+x(E(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||S;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,o=w(e),l=r.indexOf("\n"+o);if(l>=0){var c=r.indexOf("\n",l+1);r=r.substring(c+1)}this.stack=r}}},c.inherits(y.AssertionError,Error),y.fail=S,y.ok=k,y.equal=function(t,e,n){t!=e&&S(t,e,n,"==",y.equal)},y.notEqual=function(t,e,n){t==e&&S(t,e,n,"!=",y.notEqual)},y.deepEqual=function(t,e,n){A(t,e,!1)||S(t,e,n,"deepEqual",y.deepEqual)},y.deepStrictEqual=function(t,e,n){A(t,e,!0)||S(t,e,n,"deepStrictEqual",y.deepStrictEqual)},y.notDeepEqual=function(t,e,n){A(t,e,!1)&&S(t,e,n,"notDeepEqual",y.notDeepEqual)},y.notDeepStrictEqual=function t(e,n,r){A(e,n,!0)&&S(e,n,r,"notDeepStrictEqual",t)},y.strictEqual=function(t,e,n){t!==e&&S(t,e,n,"===",y.strictEqual)},y.notStrictEqual=function(t,e,n){t===e&&S(t,e,n,"!==",y.notStrictEqual)},y.throws=function(t,e,n){C(!0,t,e,n)},y.doesNotThrow=function(t,e,n){C(!1,t,e,n)},y.ifError=function(t){if(t)throw t},y.strict=r((function t(e,n){e||S(e,!0,n,"==",t)}),y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStrictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict;var P=Object.keys||function(t){var e=[];for(var n in t)f.call(t,n)&&e.push(n);return e}}).call(this,n(36))},function(t,e,n){"use strict";(function(e){const r=e.version.charCodeAt(1)<55&&46===e.version.charCodeAt(2)?n(585):n(586);t.exports=r}).call(this,n(62))},function(t,e,n){"use strict";var r=n(153);t.exports=function(){if(r.debug_mode){var data=Array.prototype.slice.call(arguments);data.unshift((new Date).toISOString()),console.error.apply(null,data)}}},function(t,e,n){"use strict";var r=n(368),o=n(155),l=n(156);function c(t,e){var n,o;if(this._client=t,this.queue=new r,e)for(var i=0;i<e.length;i++)n=e[i][0],o=e[i].slice(1),Array.isArray(n)?this[n[0]].apply(this,n.slice(1).concat(o)):this[n].apply(this,o)}function f(t,e,n){var r=e.callback;e.callback=function(o,l){o&&-1!==n&&(r&&r(o),o.position=n,t.errors.push(o)),t.wants_buffers[n]=e.buffer_args,e.callback=r},t._client.internal_send_command(e)}function h(t,e,i){return function(n,r){n?(t.results[i]=n,t.results[i].position=i):t.results[i]=r,e(n,r)}}c.prototype.exec_atomic=c.prototype.EXEC_ATOMIC=c.prototype.execAtomic=function(t){return this.queue.length<2?this.exec_batch(t):this.exec(t)},c.prototype.exec_transaction=function(t){if(this.monitoring||this._client.monitoring){var e=new RangeError("Using transaction with a client that is in monitor mode does not work due to faulty return values of Redis.");return e.command="EXEC",e.code="EXECABORT",o.reply_in_order(this._client,t,e)}var n=this,r=n.queue.length;n.errors=[],n.callback=t,n._client.cork(),n.wants_buffers=new Array(r),f(n,new l("multi",[]),-1);for(var c=0;c<r;c++)f(n,n.queue.get(c),c);return n._client.internal_send_command(new l("exec",[],(function(t,e){!function(t,e,n){var r,i=0;if(e)return e.errors=t.errors,void(t.callback?t.callback(e):"CONNECTION_BROKEN"!==e.code&&t._client.emit("error",e));if(n)for(;r=t.queue.shift();){if(n[i]instanceof Error){var l=n[i].message.match(o.err_code);l&&(n[i].code=l[1]),n[i].command=r.command.toUpperCase(),"function"==typeof r.callback&&r.callback(n[i])}else n[i]=t._client.handle_reply(n[i],r.command,t.wants_buffers[i]),"function"==typeof r.callback&&r.callback(null,n[i]);i++}t.callback&&t.callback(null,n)}(n,t,e)}))),n._client.uncork(),!n._client.should_buffer},c.prototype.exec=c.prototype.EXEC=c.prototype.exec_batch=function(t){var e,n=this,r=n.queue.length,l=0;if(0===r)return o.reply_in_order(n._client,t,null,[]),!n._client.should_buffer;if(n._client.cork(),!t){for(;e=n.queue.shift();)n._client.internal_send_command(e);return n._client.uncork(),!n._client.should_buffer}var c=function(t,e){if(t){n.results.push(t);var i=n.results.length-1;n.results[i].position=i}else n.results.push(e)},f=function(e){return function(r,o){e(r,o),t(null,n.results)}};for(n.results=[];e=n.queue.shift();)"function"==typeof e.callback?e.callback=h(n,e.callback,l):e.callback=c,"function"==typeof t&&l===r-1&&(e.callback=f(e.callback)),this._client.internal_send_command(e),l++;return n._client.uncork(),!n._client.should_buffer},t.exports=c},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookies",barDescription:"We use our own cookies and third-party cookies so that we can show you this website and better understand how you use it, with a view to improving the services we offer. If you continue browsing, we consider that you have accepted the cookies.",acceptAll:"Accept all",declineAll:"Delete all",manageCookies:"Manage cookies",unsaved:"You have unsaved settings",close:"Close",save:"Save",necessary:"Necessary cookies",optional:"Optional cookies",functional:"Functional cookies",blockedIframe:"To see this, please enable functional cookies",here:"here"}},function(t,e,n){"use strict";var r=n(243),o=n(613);function l(t,i){return 55296==(64512&t.charCodeAt(i))&&(!(i<0||i+1>=t.length)&&56320==(64512&t.charCodeAt(i+1)))}function c(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function f(t){return 1===t.length?"0"+t:t}function h(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var p=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?n[p++]=r:r<2048?(n[p++]=r>>6|192,n[p++]=63&r|128):l(t,i)?(r=65536+((1023&r)<<10)+(1023&t.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<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=f(t[i].toString(16));return e},e.htonl=c,e.toHex32=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t[i];"little"===e&&(r=c(r)),n+=h(r.toString(16))}return n},e.zero2=f,e.zero8=h,e.join32=function(t,e,n,o){var l=n-e;r(l%4==0);for(var c=new Array(l/4),i=0,f=e;i<c.length;i++,f+=4){var h;h="big"===o?t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]:t[f+3]<<24|t[f+2]<<16|t[f+1]<<8|t[f],c[i]=h>>>0}return c},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,r=0;i<t.length;i++,r+=4){var o=t[i];"big"===e?(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},e.rotr32=function(t,b){return t>>>b|t<<32-b},e.rotl32=function(t,b){return t<<b|t>>>32-b},e.sum32=function(a,b){return a+b>>>0},e.sum32_3=function(a,b,t){return a+b+t>>>0},e.sum32_4=function(a,b,t,e){return a+b+t+e>>>0},e.sum32_5=function(a,b,t,e,n){return a+b+t+e+n>>>0},e.sum64=function(t,e,n,r){var o=t[e],l=r+t[e+1]>>>0,c=(l<r?1:0)+n+o;t[e]=c>>>0,t[e+1]=l},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,l,c,dl){var f=0,h=e;return f+=(h=h+r>>>0)<e?1:0,f+=(h=h+l>>>0)<l?1:0,t+n+o+c+(f+=(h=h+dl>>>0)<dl?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,l,c,dl){return e+r+l+dl>>>0},e.sum64_5_hi=function(t,e,n,r,o,l,c,dl,f,h){var d=0,m=e;return d+=(m=m+r>>>0)<e?1:0,d+=(m=m+l>>>0)<l?1:0,d+=(m=m+dl>>>0)<dl?1:0,t+n+o+c+f+(d+=(m=m+h>>>0)<h?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,l,c,dl,f,h){return e+r+l+dl+h>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){"use strict";t.exports=function(t){var e=t.uri,n=t.name,r=t.type;this.uri=e,this.name=n,this.type=r}},function(t,e,n){"use strict";var r=n(244);t.exports=function(t){return"undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob||t instanceof r}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){n.forEach((function(n){(t.$gmapOptions.autobindAllEvents||t.$listeners[n])&&e.addListener(n,(function(e){t.$emit(n,e)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function l(){o||(o=!0,t.$nextTick((function(){o=!1,n()})))}e.forEach((function(e){t.$watch(e,l,{immediate:r})}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var t=this;this.$nextTick((function(){return t._resizeCallback()}))}},watch:{resizeBus:function(t){this.$data._actualResizeBus=t},"$data._actualResizeBus":function(t,e){e&&e.$off("resize",this._delayedResizeCallback),t&&t.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function c(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,source){for(var e,n,f=c(t),s=1;s<arguments.length;s++){for(var h in e=Object(arguments[s]))o.call(e,h)&&(f[h]=e[h]);if(r){n=r(e);for(var i=0;i<n.length;i++)l.call(e,n[i])&&(f[n[i]]=e[n[i]])}}return f}},function(t,e,n){"use strict";n.r(e),function(t,r){var o,l=n(403);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var c=Object(l.a)(o);e.default=c}.call(this,n(36),n(236)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){throw new Error("Static Class")}return t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_CONNECTION_TERMINATE="connection_terminate",t.GQL_START="start",t.GQL_DATA="data",t.GQL_ERROR="error",t.GQL_COMPLETE="complete",t.GQL_STOP="stop",t.SUBSCRIPTION_START="subscription_start",t.SUBSCRIPTION_DATA="subscription_data",t.SUBSCRIPTION_SUCCESS="subscription_success",t.SUBSCRIPTION_FAIL="subscription_fail",t.SUBSCRIPTION_END="subscription_end",t.INIT="init",t.INIT_SUCCESS="init_success",t.INIT_FAIL="init_fail",t.KEEP_ALIVE="keepalive",t}();e.default=r},,,,,,,function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var f=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||f):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(37);function o(t){try{for(var e=t,n=[],r=0,o=0,c=" > ".length,f=void 0;e&&r++<5&&!("html"===(f=l(e))||r>1&&o+n.length*c+f.length>=80);)n.push(f),o+=f.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function l(t){var e,n,o,l,i,c=t,f=[];if(!c||!c.tagName)return"";if(f.push(c.tagName.toLowerCase()),c.id&&f.push("#"+c.id),(e=c.className)&&Object(r.k)(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)f.push("."+n[i]);var h=["type","name","title","alt"];for(i=0;i<h.length;i++)o=h[i],(l=c.getAttribute(o))&&f.push("["+o+'="'+l+'"]');return f.join("")}},,function(t,e,n){"use strict";(function(t){var r=n(111);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){h(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function _(t,p){return _=Object.setPrototypeOf||function(t,p){return t.__proto__=p,t},_(t,p)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?w(t):e}function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function S(t,e,n){return S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var base=function(object,t){for(;!Object.prototype.hasOwnProperty.call(object,t)&&null!==(object=y(object)););return object}(t,e);if(base){var desc=Object.getOwnPropertyDescriptor(base,e);return desc.get?desc.get.call(n):desc.value}},S(t,e,n||t)}function k(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return e}(t,i)||O(t,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 A(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||O(t)||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 O(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function C(t,e){return t(e={exports:{}},e.exports),e.exports}var P,I=C((function(t,e){!function(t){function e(t,e,n,r){var o,l=!1,c=0;function f(){o&&clearTimeout(o)}function h(){f(),l=!0}function d(){for(var h=arguments.length,d=new Array(h),m=0;m<h;m++)d[m]=arguments[m];var v=this,y=Date.now()-c;function _(){c=Date.now(),n.apply(v,d)}function w(){o=void 0}l||(r&&!o&&_(),f(),void 0===r&&y>t?_():!0!==e&&(o=setTimeout(r?w:_,void 0===r?t-y:t)))}return"boolean"!=typeof e&&(r=n,n=e,e=void 0),d.cancel=h,d}function n(t,n,r){return void 0===r?e(t,n,!1):e(t,r,!1!==n)}t.debounce=n,t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)}));(P=I)&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")&&P.default;var M=C((function(t,e){var n=e.Globals={};function r(t){return function(e,time){return t(time,e)}}e.throttle=r(I.throttle),e.debounce=r(I.debounce),e.getMergedDefinition=function(t){return n.Vue.util.mergeOptions({},t)},e.reapply=function(t,e){for(;"function"==typeof t;)t=t.call(e);return t},e.omit=function(t,e){return Object.entries(t).filter((function(t){var n=k(t,1)[0];return!e.includes(n)})).reduce((function(t,e){var n=k(e,2),r=n[0],o=n[1];return t[r]=o,t}),{})},e.addGqlError=function(t){t.graphQLErrors&&t.graphQLErrors.length&&(t.gqlError=t.graphQLErrors[0])},e.noop=function(){}})),j=M.Globals,D=M.throttle,F=M.debounce,R=(M.getMergedDefinition,M.reapply),L=M.omit,N=M.addGqlError,B=(M.noop,{query:"_skipAllQueries",subscription:"_skipAllSubscriptions"}),V=function(){function t(e,n,r){l(this,t),h(this,"type",null),h(this,"vueApolloSpecialKeys",[]),this.vm=e,this.key=n,this.initialOptions=r,this.options=Object.assign({},r),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null}return f(t,[{key:"autostart",value:function(){var t=this;"function"==typeof this.options.skip?this._skipWatcher=this.vm.$watch((function(){return t.options.skip.call(t.vm,t.vm,t.key)}),this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):this.options.skip||this.allSkip?this._skip=!0:this.start(),"function"==typeof this.options.pollInterval&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(t,e){t!==e&&(this.pollInterval=t,null==t?this.stopPolling():this.startPolling(t))}},{key:"skipChanged",value:function(t,e){t!==e&&(this.skip=t)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(t){this._pollInterval=t}},{key:"skip",get:function(){return this._skip},set:function(t){t||this.allSkip?this.stop():this.start(),this._skip=t}},{key:"allSkip",get:function(){return this.vm.$apollo[B[this.type]]}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var t=this;this.starting=!0;for(var e=function(e,n){var r=n[e];if("function"==typeof t.initialOptions[r]){var o=t.initialOptions[r].bind(t.vm);t.options[r]=o();var l=function(e){t.options[r]=e,t.refresh()};t.vm.$isServer||(l=t.options.throttle?D(l,t.options.throttle):l,l=t.options.debounce?F(l,t.options.debounce):l),t._watchers.push(t.vm.$watch(o,l,{deep:t.options.deep}))}},n=0,r=["query","document","context"];n<r.length;n++)e(n,r);if("function"==typeof this.options.variables){var o=this.executeApollo.bind(this);this.vm.$isServer||(o=this.options.throttle?D(o,this.options.throttle):o,o=this.options.debounce?F(o,this.options.debounce):o),this._watchers.push(this.vm.$watch((function(){return"function"==typeof t.options.variables?t.options.variables.call(t.vm):t.options.variables}),o,{immediate:!0,deep:this.options.deep}))}else this.executeApollo(this.options.variables)}},{key:"stop",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){(0,e[t])()}this.sub&&(this.sub.unsubscribe(),this.sub=null)}},{key:"generateApolloOptions",value:function(t){var e=L(this.options,this.vueApolloSpecialKeys);return e.variables=t,this.lastApolloOptions=e,e}},{key:"executeApollo",value:function(t){this.starting=!1}},{key:"nextResult",value:function(t){var e=t.error;e&&N(e)}},{key:"callHandlers",value:function(t){for(var e=!1,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var l=0;l<t.length;l++){var c=t[l];if(c){e=!0;var f=c.apply(this.vm,r);if(void 0!==f&&!f)break}}return e}},{key:"errorHandler",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.callHandlers.apply(this,[[this.options.error,this.vm.$apollo.error,this.vm.$apollo.provider.errorHandler]].concat(e))}},{key:"catchError",value:function(t){if(N(t),!this.errorHandler(t,this.vm,this.key,this.type,this.lastApolloOptions))if(t.graphQLErrors&&0!==t.graphQLErrors.length){console.error("GraphQL execution errors for ".concat(this.type," '").concat(this.key,"'"));for(var e=0,n=t.graphQLErrors;e<n.length;e++){var r=n[e];console.error(r)}}else if(t.networkError)console.error("Error sending the ".concat(this.type," '").concat(this.key,"'"),t.networkError);else{var o;if(console.error("[vue-apollo] An error has occurred for ".concat(this.type," '").concat(this.key,"'")),Array.isArray(t))(o=console).error.apply(o,A(t));else console.error(t)}}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.stop(),this._skipWatcher&&this._skipWatcher())}}]),t}(),z=["variables","watch","update","result","error","loadingKey","watchLoading","skip","throttle","debounce","subscribeToMore","prefetch","manual"],U=function(t){v(n,t);var e=E(n);function n(t,r,o){var c,f=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return l(this,n),t.$data.$apolloData&&!t.$data.$apolloData.queries[r]&&t.$set(t.$data.$apolloData.queries,r,{loading:!1}),h(w(c=e.call(this,t,r,o)),"type","query"),h(w(c),"vueApolloSpecialKeys",z),h(w(c),"_loading",!1),h(w(c),"_linkedSubscriptions",[]),t.$isServer&&(c.firstRun=new Promise((function(t,e){c._firstRunResolve=t,c._firstRunReject=e}))),c.vm.$isServer&&(c.options.fetchPolicy="network-only"),o.manual||(c.hasDataField=Object.prototype.hasOwnProperty.call(c.vm.$data,r),c.hasDataField?Object.defineProperty(c.vm.$data.$apolloData.data,r,{get:function(){return c.vm.$data[r]},enumerable:!0,configurable:!0}):Object.defineProperty(c.vm.$data,r,{get:function(){return c.vm.$data.$apolloData.data[r]},enumerable:!0,configurable:!0})),f&&c.autostart(),c}return f(n,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(t){this._loading!==t&&(this._loading=t,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=t,this.vm.$data.$apolloData.loading+=t?1:-1))}},{key:"stop",value:function(){S(y(n.prototype),"stop",this).call(this),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(t){var e=S(y(n.prototype),"generateApolloOptions",this).call(this,t);return this.vm.$isServer&&delete e.pollInterval,e}},{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe();for(var r=0,o=this._linkedSubscriptions;r<o.length;r++){o[r].stop()}}if(this.previousVariablesJson=e,this.observer=this.vm.$apollo.watchQuery(this.generateApolloOptions(t)),this.startQuerySubscription(),"no-cache"!==this.options.fetchPolicy||this.options.notifyOnNetworkStatusChange){var l=this.retrieveCurrentResult();(this.options.notifyOnNetworkStatusChange||this.observer.getCurrentResult&&!l.loading)&&this.nextResult(l)}S(y(n.prototype),"executeApollo",this).call(this,t);for(var c=0,f=this._linkedSubscriptions;c<f.length;c++){f[c].start()}}},{key:"startQuerySubscription",value:function(){this.sub&&!this.sub.closed||(this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)}))}},{key:"retrieveCurrentResult",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(t||e.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),e}},{key:"nextResult",value:function(t){S(y(n.prototype),"nextResult",this).call(this,t);var data=t.data,e=t.loading,r=t.error,o=t.errors,l=o&&o.length;if((r||l)&&this.firstRunReject(r),e||this.loadingDone(),l){var c=new Error("GraphQL error: ".concat(o.map((function(t){return t.message})).join(" | ")));Object.assign(c,{graphQLErrors:o,networkError:null}),S(y(n.prototype),"catchError",this).call(this,c)}if("none"!==this.observer.options.errorPolicy||!r&&!l){var f="function"==typeof this.options.result;null==data||(this.options.manual?f||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):"function"==typeof this.options.update?this.setData(this.options.update.call(this.vm,data)):void 0===data[this.key]&&Object.keys(data).length?console.error("Missing ".concat(this.key," attribute on result"),data):this.setData(data[this.key])),f&&this.options.result.call(this.vm,t,this.key)}}},{key:"setData",value:function(t){this.vm.$set(this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data,this.key,t)}},{key:"catchError",value:function(t){S(y(n.prototype),"catchError",this).call(this,t),this.firstRunReject(t),this.loadingDone(t),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var t=this.observer.getLastError(),e=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:t,lastResult:e})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.callHandlers.apply(this,[[this.options.watchLoading,this.vm.$apollo.watchLoading,this.vm.$apollo.provider.watchLoading]].concat(e,[this]))}},{key:"applyLoadingModifier",value:function(t){var e=this.loadingKey;e&&"number"==typeof this.vm[e]&&(this.vm[e]+=t),this.watchLoading(1===t,t)}},{key:"loadingDone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,t||this.firstRunResolve()}},{key:"fetchMore",value:function(){var t,e=this;if(this.observer)return this.retrieveCurrentResult(!0),(t=this.observer).fetchMore.apply(t,arguments).then((function(t){return t.loading||e.loadingDone(),t}))}},{key:"subscribeToMore",value:function(){var t;if(this.observer)return{unsubscribe:(t=this.observer).subscribeToMore.apply(t,arguments)}}},{key:"refetch",value:function(t){var e=this;if(t&&(this.options.variables=t),this.observer){var n=this.observer.refetch(t).then((function(t){return t.loading||e.loadingDone(),t}));return this.retrieveCurrentResult(),n}}},{key:"setVariables",value:function(t,e){if(this.options.variables=t,this.observer){var n=this.observer.setVariables(t,e);return this.retrieveCurrentResult(),n}}},{key:"setOptions",value:function(t){if(Object.assign(this.options,t),this.observer){var e=this.observer.setOptions(t);return this.retrieveCurrentResult(),e}}},{key:"startPolling",value:function(){var t;if(this.observer)return(t=this.observer).startPolling.apply(t,arguments)}},{key:"stopPolling",value:function(){var t;if(this.observer)return(t=this.observer).stopPolling.apply(t,arguments)}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(t){this._firstRunReject&&(this._firstRunReject(t),this._firstRunReject=null)}},{key:"destroy",value:function(){S(y(n.prototype),"destroy",this).call(this),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}]),n}(V),$=function(t){v(n,t);var e=E(n);function n(t,r,o){var c,f=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return l(this,n),h(w(c=e.call(this,t,r,o)),"type","subscription"),h(w(c),"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),f&&c.autostart(),c}return f(n,[{key:"generateApolloOptions",value:function(t){var e=S(y(n.prototype),"generateApolloOptions",this).call(this,t);return e.onError=this.catchError.bind(this),e}},{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=e;var r=this.generateApolloOptions(t);if("function"==typeof r.updateQuery&&(r.updateQuery=r.updateQuery.bind(this.vm)),this.options.linkedQuery){if("function"==typeof this.options.result){var o=this.options.result.bind(this.vm),l=r.updateQuery&&r.updateQuery.bind(this.vm);r.updateQuery=function(){return o.apply(void 0,arguments),l&&l.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(r)}else this.observer=this.vm.$apollo.subscribe(r),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});S(y(n.prototype),"executeApollo",this).call(this,t)}},{key:"nextResult",value:function(data){S(y(n.prototype),"nextResult",this).call(this,data),"function"==typeof this.options.result&&this.options.result.call(this.vm,data,this.key)}},{key:"catchError",value:function(t){S(y(n.prototype),"catchError",this).call(this,t),this.skip||(this.stop(),this.start())}}]),n}(V),G=function(){function t(e){l(this,t),this._apolloSubscriptions=[],this._watchers=[],this.vm=e,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return f(t,[{key:"provider",get:function(){return this.vm.$apolloProvider}},{key:"getClient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t||!t.client){if("object"===o(this.client))return this.client;if(this.client){if(this.provider.clients){var e=this.provider.clients[this.client];if(!e)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return e}throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'")}return this.provider.defaultClient}var n=this.provider.clients[t.client];if(!n)throw new Error("[vue-apollo] Missing client '".concat(t.client,"' in 'apolloProvider'"));return n}},{key:"query",value:function(t){return this.getClient(t).query(t)}},{key:"watchQuery",value:function(t){var e=this,n=this.getClient(t).watchQuery(t),r=n.subscribe.bind(n);return n.subscribe=function(t){var sub=r(t);return e._apolloSubscriptions.push(sub),sub},n}},{key:"mutate",value:function(t){return this.getClient(t).mutate(t)}},{key:"subscribe",value:function(t){var e=this;if(!this.vm.$isServer){var n=this.getClient(t).subscribe(t),r=n.subscribe.bind(n);return n.subscribe=function(t){var sub=r(t);return e._apolloSubscriptions.push(sub),sub},n}}},{key:"loading",get:function(){return 0!==this.vm.$data.$apolloData.loading}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(t,e){var n=this,r=R(e,this.vm);r.query||(r={query:r});var o,l=this.vm.$options.apollo,c=this.provider.defaultOptions;if(c&&c.$query&&(o=c.$query),l&&l.$query&&(o=m(m({},o||{}),l.$query)),o)for(var f in o)void 0===r[f]&&(r[f]=o[f]);var h=this.queries[t]=new U(this.vm,t,r,!1);if(this.vm.$isServer&&!1===r.prefetch||h.autostart(),!this.vm.$isServer){var d=r.subscribeToMore;d&&(Array.isArray(d)?d.forEach((function(sub,e){n.addSmartSubscription("".concat(t).concat(e),m(m({},sub),{},{linkedQuery:h}))})):this.addSmartSubscription(t,m(m({},d),{},{linkedQuery:h})))}return h}},{key:"addSmartSubscription",value:function(t,e){if(!this.vm.$isServer){e=R(e,this.vm);var n=this.subscriptions[t]=new $(this.vm,t,e,!1);return n.autostart(),e.linkedQuery&&e.linkedQuery._linkedSubscriptions.push(n),n}}},{key:"defineReactiveSetter",value:function(t,e,n){var r=this;this._watchers.push(this.vm.$watch(e,(function(e){r[t]=e}),{immediate:!0,deep:n}))}},{key:"skipAllQueries",set:function(t){for(var e in this._skipAllQueries=t,this.queries)this.queries[e].skip=t}},{key:"skipAllSubscriptions",set:function(t){for(var e in this._skipAllSubscriptions=t,this.subscriptions)this.subscriptions[e].skip=t}},{key:"skipAll",set:function(t){this.skipAllQueries=t,this.skipAllSubscriptions=t}},{key:"destroy",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){(0,e[t])()}for(var n in this.queries)this.queries[n].destroy();for(var r in this.subscriptions)this.subscriptions[r].destroy();this._apolloSubscriptions.forEach((function(sub){sub.unsubscribe()}))}}]),t}(),H=function(){function t(e){if(l(this,t),!e)throw new Error("Options argument required");this.clients=e.clients||{},e.defaultClient&&(this.clients.defaultClient=this.defaultClient=e.defaultClient),this.defaultOptions=e.defaultOptions,this.watchLoading=e.watchLoading,this.errorHandler=e.errorHandler,this.prefetch=e.prefetch}return f(t,[{key:"provide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$apolloProvider";return console.warn("<ApolloProvider>.provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly."),h({},t,this)}}]),t}();var W={name:"ApolloQuery",provide:function(){return{getDollarApollo:this.getDollarApollo,getApolloQuery:this.getApolloQuery}},props:{query:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},fetchPolicy:{type:String,default:void 0},pollInterval:{type:Number,default:void 0},notifyOnNetworkStatusChange:{type:Boolean,default:void 0},context:{type:Object,default:void 0},update:{type:Function,default:function(data){return data}},skip:{type:Boolean,default:!1},debounce:{type:Number,default:0},throttle:{type:Number,default:0},clientId:{type:String,default:void 0},deep:{type:Boolean,default:void 0},tag:{type:String,default:"div"},prefetch:{type:Boolean,default:!0},options:{type:Object,default:function(){return{}}}},data:function(){return{result:{data:null,loading:!1,networkStatus:7,error:null},times:0}},watch:{fetchPolicy:function(t){this.$apollo.queries.query.setOptions({fetchPolicy:t})},pollInterval:function(t){this.$apollo.queries.query.setOptions({pollInterval:t})},notifyOnNetworkStatusChange:function(t){this.$apollo.queries.query.setOptions({notifyOnNetworkStatusChange:t})},"$data.$apolloData.loading":function(t){this.$emit("loading",!!t)}},apollo:{$client:function(){return this.clientId},query:function(){return m(m({query:function(){return"function"==typeof this.query?this.query(r.a):this.query},variables:function(){return this.variables},fetchPolicy:this.fetchPolicy,pollInterval:this.pollInterval,debounce:this.debounce,throttle:this.throttle,notifyOnNetworkStatusChange:this.notifyOnNetworkStatusChange,context:function(){return this.context},skip:function(){return this.skip},deep:this.deep,prefetch:this.prefetch},this.options),{},{manual:!0,result:function(t){var e=t,n=e.errors,r=e.loading,o=e.networkStatus,l=t.error;t=Object.assign({},t),n&&n.length&&((l=new Error("Apollo errors occurred (".concat(n.length,")"))).graphQLErrors=n);var data={};r?Object.assign(data,this.$_previousData,t.data):l?Object.assign(data,this.$apollo.queries.query.observer.getLastResult()||{},t.data):(data=t.data,this.$_previousData=t.data);var c=function(data){return data&&Object.keys(data).length>0}(data);this.result={data:c?this.update(data):void 0,fullData:c?data:void 0,loading:r,error:l,networkStatus:o},this.times=++this.$_times,this.$emit("result",this.result)},error:function(t){this.result.loading=!1,this.result.error=t,this.$emit("error",t)}})}},created:function(){this.$_times=0},methods:{getDollarApollo:function(){return this.$apollo},getApolloQuery:function(){return this.$apollo.queries.query}},render:function(t){var e=this.$scopedSlots.default({result:this.result,times:this.times,query:this.$apollo.queries.query,isLoading:this.$apolloData.loading,gqlError:this.result&&this.result.error&&this.result.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots.default):[e].concat(this.$slots.default),this.tag?t(this.tag,e):e[0]}},Q=0,Y={name:"ApolloSubscribeToMore",inject:["getDollarApollo","getApolloQuery"],props:{document:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},updateQuery:{type:Function,default:void 0}},watch:{document:"refresh",variables:"refresh"},created:function(){this.$_key="sub_component_".concat(Q++)},mounted:function(){this.refresh()},beforeDestroy:function(){this.destroy()},methods:{destroy:function(){this.$_sub&&this.$_sub.destroy()},refresh:function(){this.destroy();var t=this.document;"function"==typeof t&&(t=t(r.a)),this.$_sub=this.getDollarApollo().addSmartSubscription(this.$_key,{document:t,variables:this.variables,updateQuery:this.updateQuery,linkedQuery:this.getApolloQuery()})}},render:function(t){return null}},K={props:{mutation:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},optimisticResponse:{type:Object,default:void 0},update:{type:Function,default:void 0},refetchQueries:{type:Function,default:void 0},clientId:{type:String,default:void 0},tag:{type:String,default:"div"},context:{type:Object,default:void 0}},data:function(){return{loading:!1,error:null}},watch:{loading:function(t){this.$emit("loading",t)}},methods:{mutate:function(t){var e=this;this.loading=!0,this.error=null;var n=this.mutation;return"function"==typeof n&&(n=n(r.a)),this.$apollo.mutate(m({mutation:n,client:this.clientId,variables:this.variables,optimisticResponse:this.optimisticResponse,update:this.update,refetchQueries:this.refetchQueries,context:this.context},t)).then((function(t){e.$emit("done",t),e.loading=!1})).catch((function(t){N(t),e.error=t,e.$emit("error",t),e.loading=!1}))}},render:function(t){var e=this.$scopedSlots.default({mutate:this.mutate,loading:this.loading,error:this.error,gqlError:this.error&&this.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots.default):[e].concat(this.$slots.default),this.tag?t(this.tag,e):e[0]}};function X(t,e){return void 0!==t&&Object.prototype.hasOwnProperty.call(t,e)}function J(){var t=this.$options,e=t.apolloProvider;if(e)this.$apolloProvider="function"==typeof e?e():e;else if(t.parent&&t.parent.$apolloProvider)this.$apolloProvider=t.parent.$apolloProvider;else if(t.provide){var n="function"==typeof t.provide?t.provide.call(this):t.provide;n&&n.$apolloProvider&&(this.$apolloProvider=n.$apolloProvider)}}function Z(){var t=this;this.$_apolloInitData={};var e=this.$options.apollo;if(e){var n=function(n){"$"!==n.charAt(0)&&(e[n].manual||X(t.$options.props,n)||X(t.$options.computed,n)||X(t.$options.methods,n)||Object.defineProperty(t,n,{get:function(){return t.$data.$apolloData.data[n]},set:function(e){return t.$_apolloInitData[n]=e},enumerable:!0,configurable:!0}))};for(var r in e)n(r)}}function tt(){var t=this,e=this.$apolloProvider;if(!this._apolloLaunched&&e){this._apolloLaunched=!0;var n=this.$options.apollo;if(n){for(var r in this.$_apolloPromises=[],n.$init||(n.$init=!0,e.defaultOptions&&(n=this.$options.apollo=Object.assign({},e.defaultOptions,n))),et(this.$apollo,"skipAll",n.$skipAll,n.$deep),et(this.$apollo,"skipAllQueries",n.$skipAllQueries,n.$deep),et(this.$apollo,"skipAllSubscriptions",n.$skipAllSubscriptions,n.$deep),et(this.$apollo,"client",n.$client,n.$deep),et(this.$apollo,"loadingKey",n.$loadingKey,n.$deep),et(this.$apollo,"error",n.$error,n.$deep),et(this.$apollo,"watchLoading",n.$watchLoading,n.$deep),Object.defineProperty(this,"$apolloData",{get:function(){return t.$data.$apolloData},enumerable:!0,configurable:!0}),n)if("$"!==r.charAt(0)){var o=n[r],l=this.$apollo.addSmartQuery(r,o);this.$isServer&&(o=R(o,this),!1===e.prefetch||!1===o.prefetch||!1===n.$prefetch||l.skip||this.$_apolloPromises.push(l.firstRun))}if(n.subscribe&&j.Vue.util.warn("vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead."),n.$subscribe)for(var c in n.$subscribe)this.$apollo.addSmartSubscription(c,n.$subscribe[c])}}}function et(t,e,n,r){void 0!==n&&("function"==typeof n?t.defineReactiveSetter(e,n,r):t[e]=n)}function nt(){this.$_apollo&&this.$_apollo.destroy()}function it(t,e){t.mixin(m(m(m({},"1"===e?{init:J}:{}),"2"===e?{data:function(){return{$apolloData:{queries:{},loading:0,data:this.$_apolloInitData}}},beforeCreate:function(){J.call(this),Z.call(this)},serverPrefetch:function(){var t=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then((function(){nt.call(t)})).catch((function(e){return nt.call(t),Promise.reject(e)}))}}:{}),{},{created:tt,destroyed:nt}))}var ot=["$subscribe"];H.install=function t(e,n){if(!t.installed){t.installed=!0,j.Vue=e;var r=e.version.substr(0,e.version.indexOf(".")),o=e.config.optionMergeStrategies.methods;e.config.optionMergeStrategies.apollo=function(t,e,n){if(!t)return e;if(!e)return t;for(var r=Object.assign({},L(t,ot),t.data),l=Object.assign({},L(e,ot),e.data),map={},i=0;i<ot.length;i++){var c=ot[i];map[c]=o(t[c],e[c])}return Object.assign(map,o(r,l))},Object.prototype.hasOwnProperty.call(e,"$apollo")||Object.defineProperty(e.prototype,"$apollo",{get:function(){return this.$_apollo||(this.$_apollo=new G(this)),this.$_apollo}}),it(e,r),"2"===r&&(e.component("ApolloQuery",W),e.component("ApolloQuery",W),e.component("ApolloSubscribeToMore",Y),e.component("ApolloSubscribeToMore",Y),e.component("ApolloMutation",K),e.component("ApolloMutation",K))}},H.version="3.1.0";var at=null;"undefined"!=typeof window?at=window.Vue:void 0!==t&&(at=t.Vue),at&&at.use(H),e.a=H}).call(this,n(36))},,function(t,e,n){"use strict";n.r(e),n.d(e,"Severity",(function(){return h})),n.d(e,"Status",(function(){return d})),n.d(e,"addGlobalEventProcessor",(function(){return P})),n.d(e,"addBreadcrumb",(function(){return tt})),n.d(e,"captureException",(function(){return K})),n.d(e,"captureEvent",(function(){return J})),n.d(e,"captureMessage",(function(){return X})),n.d(e,"configureScope",(function(){return Z})),n.d(e,"getHubFromCarrier",(function(){return W})),n.d(e,"getCurrentHub",(function(){return G})),n.d(e,"Hub",(function(){return z})),n.d(e,"makeMain",(function(){return $})),n.d(e,"Scope",(function(){return T})),n.d(e,"startTransaction",(function(){return lt})),n.d(e,"setContext",(function(){return et})),n.d(e,"setExtra",(function(){return ot})),n.d(e,"setExtras",(function(){return nt})),n.d(e,"setTag",(function(){return at})),n.d(e,"setTags",(function(){return it})),n.d(e,"setUser",(function(){return st})),n.d(e,"withScope",(function(){return ut})),n.d(e,"BrowserClient",(function(){return Ce})),n.d(e,"injectReportDialog",(function(){return ae})),n.d(e,"eventFromException",(function(){return Ut})),n.d(e,"eventFromMessage",(function(){return $t})),n.d(e,"defaultIntegrations",(function(){return Be})),n.d(e,"forceLoad",(function(){return Ue})),n.d(e,"init",(function(){return Ve})),n.d(e,"lastEventId",(function(){return qe})),n.d(e,"onLoad",(function(){return $e})),n.d(e,"showReportDialog",(function(){return ze})),n.d(e,"flush",(function(){return Ge})),n.d(e,"close",(function(){return He})),n.d(e,"wrap",(function(){return We})),n.d(e,"SDK_NAME",(function(){return Oe})),n.d(e,"SDK_VERSION",(function(){return Te})),n.d(e,"Integrations",(function(){return Ke})),n.d(e,"Transports",(function(){return l}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return Pe})),n.d(r,"InboundFilters",(function(){return Me}));var o={};n.r(o),n.d(o,"GlobalHandlers",(function(){return Fe})),n.d(o,"TryCatch",(function(){return De})),n.d(o,"Breadcrumbs",(function(){return Ae})),n.d(o,"LinkedErrors",(function(){return Re})),n.d(o,"UserAgent",(function(){return Ne}));var l={};n.r(l),n.d(l,"BaseTransport",(function(){return Xt})),n.d(l,"FetchTransport",(function(){return Zt})),n.d(l,"XHRTransport",(function(){return te}));var c=function(t,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},c(t,b)};function f(t,b){function e(){this.constructor=t}c(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var h,d,m=function(){return m=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},m.apply(this,arguments)};function v(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function _(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(y(arguments[i]));return t}!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(h||(h={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;default:return t.Log}}}(h||(h={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(d||(d={})),function(t){t.fromHttpCode=function(code){return code>=200&&code<300?t.Success:429===code?t.RateLimit:code>=400&&code<500?t.Invalid:code>=500?t.Failed:t.Unknown}}(d||(d={}));var w=function(){return w=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},w.apply(this,arguments)};function x(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function E(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(x(arguments[i]));return t}var S,k=n(37),time=n(685);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));var A=function(){function t(t){var e=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(S.RESOLVED,t)},this._reject=function(t){e._setResult(S.REJECTED,t)},this._setResult=function(t,n){e._state===S.PENDING&&(Object(k.m)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==S.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===S.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,l=[];e.forEach((function(e,c){t.resolve(e).then((function(t){l[c]=t,0===(o-=1)&&n(l)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var o,l;return n.then((function(t){l=!1,o=t,e&&e()}),(function(t){l=!0,o=t,e&&e()})).then((function(){l?r(o):t(o)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),O=n(63),T=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=E(e._breadcrumbs),n._tags=w({},e._tags),n._extra=w({},e._extra),n._contexts=w({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=E(e._eventProcessors)),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.setTags=function(t){return this._tags=w(w({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=w(w({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=w(w({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=w(w({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=w(w({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(span){return this._span=span,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,span=this.getSpan();return(null===(t=span)||void 0===t?void 0:t.transaction)?null===(e=span)||void 0===e?void 0:e.transaction:(null===(r=null===(n=span)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?span.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=w(w({},this._tags),e._tags),this._extra=w(w({},this._extra),e._extra),this._contexts=w(w({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint)):Object(k.h)(e)&&(e=e,this._tags=w(w({},this._tags),e.tags),this._extra=w(w({},this._extra),e.extra),this._contexts=w(w({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=w({timestamp:Object(time.a)()},t);return this._breadcrumbs=void 0!==e&&e>=0?E(this._breadcrumbs,[n]).slice(-e):E(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=w(w({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=w(w({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=w(w({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=w(w({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=w({trace:this._span.getTraceContext()},t.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(t.tags=w({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=E(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(E(C(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,r){var o=this;return void 0===r&&(r=0),new A((function(l,c){var f=t[r];if(null===e||"function"!=typeof f)l(e);else{var h=f(w({},e),n);Object(k.m)(h)?h.then((function(e){return o._notifyEventProcessors(t,e,n,r+1).then(l)})).then(null,c):o._notifyEventProcessors(t,h,n,r+1).then(l).then(null,c)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function C(){var t=Object(O.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function P(t){C().push(t)}var I=function(){return I=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},I.apply(this,arguments)};function M(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function j(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(M(arguments[i]));return t}var D=Object(O.e)(),F="Sentry Logger ",R=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(O.c)((function(){D.console.log(F+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(O.c)((function(){D.console.warn(F+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(O.c)((function(){D.console.error(F+"[Error]: "+t.join(" "))}))},t}();D.__SENTRY__=D.__SENTRY__||{};var L,N=D.__SENTRY__.logger||(D.__SENTRY__.logger=new R),B=n(162);!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(L||(L={}));var object=n(69),V=function(){function t(t){this.errors=0,this.sid=Object(O.i)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=L.Ok,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(O.i)()),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===L.Ok?this.update({status:L.Exited}):this.update()},t.prototype.toJSON=function(){return Object(object.a)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(object.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),z=function(){function t(t,e,n){void 0===e&&(e=new T),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=T.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=Object(O.i)(),r=e;if(!e){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}r={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,w(w({},r),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=Object(O.i)(),o=n;if(!n){var l=void 0;try{throw new Error(t)}catch(t){l=t}o={originalException:t,syntheticException:l}}return this._invokeClient("captureMessage",t,e,w(w({},o),{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=Object(O.i)();return this._invokeClient("captureEvent",t,w(w({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var l=o.getOptions&&o.getOptions()||{},c=l.beforeBreadcrumb,f=void 0===c?null:c,h=l.maxBreadcrumbs,d=void 0===h?100:h;if(!(d<=0)){var m=Object(time.a)(),v=w({timestamp:m},t),y=f?Object(O.c)((function(){return f(v,e)})):v;null!==y&&r.addBreadcrumb(y,Math.min(d,100))}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},t.prototype.run=function(t){var e=$(this);try{t(this)}finally{$(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return N.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.startSession=function(t){this.endSession();var e=this.getStackTop(),n=e.scope,r=e.client,o=r&&r.getOptions()||{},l=o.release,c=o.environment,f=new V(w(w({release:l,environment:c},n&&{user:n.getUser()}),t));return n&&n.setSession(f),f},t.prototype.endSession=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),e.setSession())}},t.prototype._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),l=o.scope,c=o.client;c&&c[t]&&(e=c)[t].apply(e,E(n,[l]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=U(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[t])return o.extensions[t].apply(this,e);N.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function U(){var t=Object(O.e)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function $(t){var e=U(),n=W(e);return Q(e,t),n}function G(){var t=U();return H(t)&&!W(t).isOlderThan(3)||Q(t,new z),Object(B.b)()?function(t){try{var e=(r=U().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return W(t);if(!H(e)||W(e).isOlderThan(3)){var n=W(t).getStackTop();Q(e,new z(n.client,T.clone(n.scope)))}return W(e)}catch(e){return W(t)}var r}(t):W(t)}function H(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function W(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new z),t.__SENTRY__.hub}function Q(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Y(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=G();if(r&&r[t])return r[t].apply(r,j(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function K(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return Y("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function X(t,e){var n;try{throw new Error(t)}catch(t){n=t}return Y("captureMessage",t,"string"==typeof e?e:void 0,I({originalException:t,syntheticException:n},"string"!=typeof e?{captureContext:e}:void 0))}function J(t){return Y("captureEvent",t)}function Z(t){Y("configureScope",t)}function tt(t){Y("addBreadcrumb",t)}function et(t,e){Y("setContext",t,e)}function nt(t){Y("setExtras",t)}function it(t){Y("setTags",t)}function ot(t,e){Y("setExtra",t,e)}function at(t,e){Y("setTag",t,e)}function st(t){Y("setUser",t)}function ut(t){Y("withScope",t)}function lt(t,e){return Y("startTransaction",I({},t),e)}var ct=function(){return ct=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},ct.apply(this,arguments)};function ft(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function ht(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function pt(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ht(arguments[i]));return t}var mt=n(75),vt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});var yt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,vt(r,n.prototype),r}return Object(mt.b)(e,t),e}(Error),gt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,bt="Invalid Dsn",_t=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,path=e.path,r=e.pass,o=e.port,l=e.projectId;return e.protocol+"://"+e.user+(t&&r?":"+r:"")+"@"+n+(o?":"+o:"")+"/"+(path?path+"/":path)+l},t.prototype._fromString=function(t){var e=gt.exec(t);if(!e)throw new yt(bt);var n=Object(mt.c)(e.slice(1),6),r=n[0],o=n[1],l=n[2],c=void 0===l?"":l,f=n[3],h=n[4],d=void 0===h?"":h,path="",m=n[5],v=m.split("/");if(v.length>1&&(path=v.slice(0,-1).join("/"),m=v.pop()),m){var y=m.match(/^\d+/);y&&(m=y[0])}this._fromComponents({host:f,pass:c,path:path,projectId:m,port:d,protocol:r,user:o})},t.prototype._fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","user","host","projectId"].forEach((function(component){if(!t[component])throw new yt("Invalid Dsn: "+component+" missing")})),!this.projectId.match(/^\d+$/))throw new yt("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new yt("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new yt("Invalid Dsn: Invalid port "+this.port)},t}(),wt=n(119),xt=[];function Et(t){var e={};return function(t){var e=t.defaultIntegrations&&pt(t.defaultIntegrations)||[],n=t.integrations,r=[];if(Array.isArray(n)){var o=n.map((function(i){return i.name})),l=[];e.forEach((function(t){-1===o.indexOf(t.name)&&-1===l.indexOf(t.name)&&(r.push(t),l.push(t.name))})),n.forEach((function(t){-1===l.indexOf(t.name)&&(r.push(t),l.push(t.name))}))}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=pt(e);var c=r.map((function(i){return i.name})),f="Debug";return-1!==c.indexOf(f)&&r.push.apply(r,pt(r.splice(c.indexOf(f),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===xt.indexOf(t.name)&&(t.setupOnce(P,G),xt.push(t.name),N.log("Integration installed: "+t.name))}(t)})),e}var St=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new _t(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){o=t}))),o},t.prototype.captureMessage=function(t,e,n,r){var o=this,l=n&&n.event_id,c=Object(k.i)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(c.then((function(t){return o._captureEvent(t,n,r)})).then((function(t){l=t}))),l},t.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r},t.prototype.captureSession=function(t){t.release?this._sendSession(t):N.warn("Discarded session because of missing release")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(n){return e._getBackend().getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Et(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return N.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,o,l=!1,c=!1,f=e.exception&&e.exception.values;if(f){c=!0;try{for(var h=ft(f),d=h.next();!d.done;d=h.next()){var m=d.value.mechanism;if(m&&!1===m.handled){l=!0;break}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}var v=e.user;if(!t.userAgent){var y=e.request?e.request.headers:{};for(var _ in y)if("user-agent"===_.toLowerCase()){o=y[_];break}}t.update(ct(ct({},l&&{status:L.Crashed}),{user:v,userAgent:o,errors:t.errors+Number(c||l)}))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new A((function(n){var r=0,o=setInterval((function(){0==e._processing?(clearInterval(o),n(!0)):(r+=1,t&&r>=t&&(clearInterval(o),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions().normalizeDepth,l=void 0===o?3:o,c=ct(ct({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(O.i)()),timestamp:t.timestamp||Object(time.a)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var f=e;n&&n.captureContext&&(f=T.clone(f).update(n.captureContext));var h=A.resolve(c);return f&&(h=f.applyToEvent(c,n)),h.then((function(t){return"number"==typeof l&&l>0?r._normalizeEvent(t,l):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=ct(ct(ct(ct(ct({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(b){return ct(ct({},b),b.data&&{data:Object(object.d)(b.data,e)})}))}),t.user&&{user:Object(object.d)(t.user,e)}),t.contexts&&{contexts:Object(object.d)(t.contexts,e)}),t.extra&&{extra:Object(object.d)(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,l=e.maxValueLength,c=void 0===l?250:l;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=Object(wt.d)(t.message,c));var f=t.exception&&t.exception.values&&t.exception.values[0];f&&f.value&&(f.value=Object(wt.d)(f.value,c));var h=t.request;h&&h.url&&(h.url=Object(wt.d)(h.url,c))},t.prototype._applyIntegrationsMetadata=function(t){var e=t.sdk,n=Object.keys(this._integrations);e&&n.length>0&&(e.integrations=n)},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){N.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),l=o.beforeSend,c=o.sampleRate;if(!this._isEnabled())return A.reject(new yt("SDK not enabled, will not send event."));var f="transaction"===t.type;return!f&&"number"==typeof c&&Math.random()>c?A.reject(new yt("Discarding event because it's not included in the random sample (sampling rate = "+c+")")):this._prepareEvent(t,n,e).then((function(t){if(null===t)throw new yt("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||f||!l)return t;var n=l(t,e);if(void 0===n)throw new yt("`beforeSend` method has to return `null` or a valid event.");return Object(k.m)(n)?n.then((function(t){return t}),(function(t){throw new yt("beforeSend rejected with "+t)})):n})).then((function(t){if(null===t)throw new yt("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!f&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t})).then(null,(function(t){if(t instanceof yt)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new yt("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t}(),kt=function(){function t(){}return t.prototype.sendEvent=function(t){return A.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:d.Skipped})},t.prototype.close=function(t){return A.resolve(!0)},t}(),At=function(){function t(t){this._options=t,this._options.dsn||N.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new yt("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new yt("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){N.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){N.error("Error while sending session: "+t)})):N.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new kt},t}();function Ot(){if(!("fetch"in Object(O.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Tt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ct(){if(!Ot())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var Pt="?",It=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Dt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ft=/\((\S*)(?::(\d+))(?::(\d+))\)/,Rt=/Minified React error #\d+;/i;function Lt(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:Rt.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,l=n.split("\n"),c=[],line=0;line<l.length;line+=2){var element=null;(e=r.exec(l[line]))?element={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(l[line]))&&(element={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),element&&(!element.func&&element.line&&(element.func=Pt),c.push(element))}if(!c.length)return null;return{message:Bt(t),name:t.name,stack:c}}(t),e)return Nt(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,element,r=[],o=t.stack.split("\n"),i=0;i<o.length;++i){if(n=It.exec(o[i])){var l=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=Ft.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),element={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||Pt,args:l?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=jt.exec(o[i]))element={url:n[2],func:n[1]||Pt,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=Mt.exec(o[i])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=Dt.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==i||n[5]||void 0===t.columnNumber||(r[0].column=t.columnNumber+1),element={url:n[3],func:n[1]||Pt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!element.func&&element.line&&(element.func=Pt),r.push(element)}if(!r.length)return null;return{message:Bt(t),name:t.name,stack:r}}(t),e)return Nt(e,n)}catch(t){}return{message:Bt(t),name:t&&t.name,stack:[],failed:!0}}function Nt(t,e){try{return m(m({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function Bt(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Vt(t){var e=qt(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function zt(t){return{exception:{values:[Vt(t)]}}}function qt(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function Ut(t,e,n){var r=Gt(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return Object(O.a)(r,{handled:!0,type:"generic"}),r.level=h.Error,n&&n.event_id&&(r.event_id=n.event_id),A.resolve(r)}function $t(t,e,n,r){void 0===n&&(n=h.Info);var o=Ht(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),A.resolve(o)}function Gt(t,e,n){var r;if(void 0===n&&(n={}),Object(k.e)(t)&&t.error)return r=zt(Lt(t=t.error));if(Object(k.a)(t)||Object(k.b)(t)){var o=t,l=o.name||(Object(k.a)(o)?"DOMError":"DOMException"),c=o.message?l+": "+o.message:l;return r=Ht(c,e,n),Object(O.b)(r,c),"code"in o&&(r.tags=m(m({},r.tags),{"DOMException.code":""+o.code})),r}return Object(k.d)(t)?r=zt(Lt(t)):Object(k.h)(t)||Object(k.f)(t)?(r=function(t,e,n){var r={exception:{values:[{type:Object(k.f)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(object.b)(t)}]},extra:{__serialized__:Object(object.e)(t)}};if(e){var o=qt(Lt(e).stack);r.stacktrace={frames:o}}return r}(t,e,n.rejection),Object(O.a)(r,{synthetic:!0}),r):(r=Ht(t,e,n),Object(O.b)(r,""+t,void 0),Object(O.a)(r,{synthetic:!0}),r)}function Ht(input,t,e){void 0===e&&(e={});var n={message:input};if(e.attachStacktrace&&t){var r=qt(Lt(t).stack);n.stacktrace={frames:r}}return n}function Wt(t,e){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function Qt(t,e){var n=t.tags||{},r=n.__sentry_samplingMethod,o=n.__sentry_sampleRate,l=function(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}(n,["__sentry_samplingMethod","__sentry_sampleRate"]);t.tags=l;var c="transaction"===t.type,f={body:JSON.stringify(t),type:t.type||"event",url:c?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(c){var h=JSON.stringify({event_id:t.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:r,rate:o}]})+"\n"+f.body;f.body=h}return f}var Yt=function(){function t(t){this.dsn=t,this._dsnObject=new _t(t)}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this._dsnObject,header=["Sentry sentry_version=7"];return header.push("sentry_client="+t+"/"+e),header.push("sentry_key="+n.user),n.pass&&header.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":header.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+e.toString()),t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));return r.length?n+"?"+r.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this._dsnObject.user,sentry_version:"7"};return Object(object.f)(t)},t}(),Kt=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;return this.isReady()?(-1===this._buffer.indexOf(t)&&this._buffer.push(t),t.then((function(){return e.remove(t)})).then(null,(function(){return e.remove(t).then(null,(function(){}))})),t):A.reject(new yt("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new A((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);A.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),Xt=function(){function t(t){this.options=t,this._buffer=new Kt(30),this._rateLimits={},this._api=new Yt(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new yt("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,l=t.reject,c=d.fromHttpCode(n.status);this._handleRateLimit(r)&&N.warn("Too many requests, backing off until: "+this._disabledUntil(e)),c!==d.Success?l(n):o({status:c})},t.prototype._disabledUntil=function(t){return this._rateLimits[t]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,r,o,l=Date.now(),c=t["x-sentry-rate-limits"],f=t["retry-after"];if(c){try{for(var h=v(c.trim().split(",")),d=h.next();!d.done;d=h.next()){var m=d.value.split(":",2),y=parseInt(m[0],10),_=1e3*(isNaN(y)?60:y);try{for(var w=(r=void 0,v(m[1].split(";"))),x=w.next();!x.done;x=w.next()){var E=x.value;this._rateLimits[E||"all"]=new Date(l+_)}}catch(t){r={error:t}}finally{try{x&&!x.done&&(o=w.return)&&o.call(w)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}return!0}return!!f&&(this._rateLimits.all=new Date(l+Object(O.g)(l,f)),!0)},t}(),Jt=Object(O.e)(),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(Qt(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(Wt(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:Ct()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new A((function(e,o){Jt.fetch(t.url,r).then((function(r){var l={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:l,resolve:e,reject:o})})).catch(o)})))},e}(Xt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(Qt(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(Wt(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add(new A((function(e,r){var o=new XMLHttpRequest;for(var header in o.onreadystatechange=function(){if(4===o.readyState){var l={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:o,headers:l,resolve:e,reject:r})}},o.open("POST",t.url),n.options.headers)n.options.headers.hasOwnProperty(header)&&o.setRequestHeader(header,n.options.headers[header]);o.send(t.body)})))},e}(Xt),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.eventFromException=function(t,e){return Ut(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=h.Info),$t(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=m(m({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(e):Ot()?new Zt(e):new te(e)},e}(At),ne=0;function re(){return ne>0}function ie(){ne+=1,setTimeout((function(){ne-=1}))}function oe(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(t){return oe(t,e)}));return t.handleEvent?t.handleEvent.apply(this,o):t.apply(this,o)}catch(t){throw ie(),ut((function(n){n.addEventProcessor((function(t){var n=m({},t);return e.mechanism&&(Object(O.b)(n,void 0,void 0),Object(O.a)(n,e.mechanism)),n.extra=m(m({},n.extra),{arguments:r}),n})),K(t)})),t}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch(t){}t.prototype=t.prototype||{},r.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch(t){}return r}function ae(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var script=document.createElement("script");script.async=!0,script.src=new Yt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(script.onload=t.onLoad),(document.head||document.body).appendChild(script)}else N.error("Missing dsn option in showReportDialog call");else N.error("Missing eventId option in showReportDialog call")}var se,ue=n(201),le=Object(O.e)(),ce={},fe={};function he(t){if(!fe[t])switch(fe[t]=!0,t){case"console":!function(){if(!("console"in le))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in le.console&&Object(object.c)(le.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];de("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,le.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in le))return;le.document.addEventListener("click",_e("click",de.bind(null,"dom")),!1),le.document.addEventListener("keypress",we(de.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(t){var e=le[t]&&le[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(Object(object.c)(e,"addEventListener",(function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&Object(object.c)(n,"handleEvent",(function(t){return function(e){return _e("click",de.bind(null,"dom"))(e),t.call(this,e)}})),"keypress"===e&&Object(object.c)(n,"handleEvent",(function(t){return function(e){return we(de.bind(null,"dom"))(e),t.call(this,e)}}))):("click"===e&&_e("click",de.bind(null,"dom"),!0)(this),"keypress"===e&&we(de.bind(null,"dom"))(this)),t.call(this,e,n,r)}})),Object(object.c)(e,"removeEventListener",(function(t){return function(e,n,r){try{t.call(this,e,n.__sentry_wrapped__,r)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in le))return;var t=[],e=[],n=XMLHttpRequest.prototype;Object(object.c)(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var l=this,c=r[1];l.__sentry_xhr__={method:Object(k.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(k.k)(c)&&"POST"===l.__sentry_xhr__.method&&c.match(/sentry_key/)&&(l.__sentry_own_request__=!0);var f=function(){if(4===l.readyState){try{l.__sentry_xhr__&&(l.__sentry_xhr__.status_code=l.status)}catch(t){}try{var n=t.indexOf(l);if(-1!==n){t.splice(n);var o=e.splice(n)[0];l.__sentry_xhr__&&void 0!==o[0]&&(l.__sentry_xhr__.body=o[0])}}catch(t){}de("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:l})}};return"onreadystatechange"in l&&"function"==typeof l.onreadystatechange?Object(object.c)(l,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return f(),t.apply(l,e)}})):l.addEventListener("readystatechange",f),n.apply(l,r)}})),Object(object.c)(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.push(this),e.push(r),de("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!function(){if(!Ot())return!1;var t=Object(O.e)();if(Tt(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=Tt(r.contentWindow.fetch)),n.head.removeChild(r)}catch(t){N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}())return;Object(object.c)(le,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:me(e),url:ve(e)},startTimestamp:Date.now()};return de("fetch",Object(mt.a)({},r)),t.apply(le,e).then((function(t){return de("fetch",Object(mt.a)(Object(mt.a)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw de("fetch",Object(mt.a)(Object(mt.a)({},r),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(t=Object(O.e)(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState,n||!r)return;var t,e,n,r;var o=le.onpopstate;function l(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length>2?e[2]:void 0;if(r){var o=se,l=String(r);se=l,de("history",{from:o,to:l})}return t.apply(this,e)}}le.onpopstate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=le.location.href,r=se;if(se=n,de("history",{from:r,to:n}),o)return o.apply(this,t)},Object(object.c)(le.history,"pushState",l),Object(object.c)(le.history,"replaceState",l)}();break;case"error":xe=le.onerror,le.onerror=function(t,e,line,n,r){return de("error",{column:n,error:r,line:line,msg:t,url:e}),!!xe&&xe.apply(this,arguments)};break;case"unhandledrejection":Ee=le.onunhandledrejection,le.onunhandledrejection=function(t){return de("unhandledrejection",t),!Ee||Ee.apply(this,arguments)};break;default:N.warn("unknown instrumentation type:",t)}}function pe(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(ce[t.type]=ce[t.type]||[],ce[t.type].push(t.callback),he(t.type))}function de(t,data){var e,n;if(t&&ce[t])try{for(var r=Object(mt.d)(ce[t]||[]),o=r.next();!o.done;o=r.next()){var l=o.value;try{l(data)}catch(e){N.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(ue.a)(l)+"\nError: "+e)}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}function me(t){return void 0===t&&(t=[]),"Request"in le&&Object(k.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function ve(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in le&&Object(k.g)(t[0],Request)?t[0].url:String(t[0])}var ye,ge,be=0;function _e(t,e,n){return void 0===n&&(n=!1),function(r){ye=void 0,r&&ge!==r&&(ge=r,be&&clearTimeout(be),n?be=setTimeout((function(){e({event:r,name:t})})):e({event:r,name:t}))}}function we(t){return function(e){var n;try{n=e.target}catch(t){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(ye||_e("input",t)(e),clearTimeout(ye),ye=setTimeout((function(){ye=void 0}),1e3))}}var xe=null;var Ee=null;var Se,ke=n(261),Ae=function(){function t(e){this.name=t.id,this._options=m({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&G().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(O.d)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&pe({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._consoleBreadcrumb.apply(t,_(e))},type:"console"}),this._options.dom&&pe({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._domBreadcrumb.apply(t,_(e))},type:"dom"}),this._options.xhr&&pe({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._xhrBreadcrumb.apply(t,_(e))},type:"xhr"}),this._options.fetch&&pe({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._fetchBreadcrumb.apply(t,_(e))},type:"fetch"}),this._options.history&&pe({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._historyBreadcrumb.apply(t,_(e))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:h.fromString(t.level),message:Object(wt.b)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(Object(wt.b)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}G().addBreadcrumb(e,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var e;try{e=t.event.target?Object(ke.a)(t.event.target):Object(ke.a)(t.event)}catch(t){e="<unknown>"}0!==e.length&&G().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,body=e.body;G().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:body})}else;},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?G().addBreadcrumb({category:"fetch",data:t.fetchData,level:h.Error,type:"http"},{data:t.error,input:t.args}):G().addBreadcrumb({category:"fetch",data:m(m({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=Object(O.e)(),n=t.from,r=t.to,o=Object(O.h)(e.location.href),l=Object(O.h)(n),c=Object(O.h)(r);l.path||(l=o),o.protocol===c.protocol&&o.host===c.host&&(r=c.relative),o.protocol===l.protocol&&o.host===l.host&&(n=l.relative),G().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}(),Oe="sentry.javascript.browser",Te="5.30.0",Ce=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ee,e)||this}return f(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(O.e)().document&&(this._isEnabled()?ae(m(m({},t),{dsn:t.dsn||this.getDsn()})):N.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",e.sdk=m(m({},e.sdk),{name:Oe,packages:_(e.sdk&&e.sdk.packages||[],[{name:"npm:@sentry/browser",version:Te}]),version:Te}),t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(Ae);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(St),Pe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Se=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return Se.apply(n,t)}},t.id="FunctionToString",t}(),Ie=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Me=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){P((function(e){var n=G();if(!n)return e;var r=n.getIntegration(t);if(r){var o=n.getClient(),l=o?o.getOptions():{},c=r._mergeOptions(l);if(r._shouldDropEvent(e,c))return null}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(N.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(O.d)(t)),!0):this._isIgnoredError(t,e)?(N.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(O.d)(t)),!0):this._isDeniedUrl(t,e)?(N.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(O.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(N.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(O.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(pattern){return Object(wt.a)(t,pattern)}))}))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(pattern){return Object(wt.a)(n,pattern)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(pattern){return Object(wt.a)(n,pattern)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:pt(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:pt(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:pt(this._options.ignoreErrors||[],t.ignoreErrors||[],Ie),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,o=e.value,l=void 0===o?"":o;return[""+l,r+": "+l]}catch(e){return N.error("Cannot extract message for event "+Object(O.d)(t)),[]}return[]},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(e){return N.error("Cannot extract url for event "+Object(O.d)(t)),null}},t.id="InboundFilters",t}();var je=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],De=function(){function t(e){this.name=t.id,this._options=m({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=Object(O.e)();(this._options.setTimeout&&Object(object.c)(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(object.c)(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(object.c)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Object(object.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:je).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=oe(r,{mechanism:{data:{function:Object(ue.a)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t.call(this,oe(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(ue.a)(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=Object(O.e)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(object.c)(n,"addEventListener",(function(e){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=oe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(ue.a)(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,oe(r,{mechanism:{data:{function:"addEventListener",handler:Object(ue.a)(r),target:t},handled:!0,type:"instrument"}}),o)}})),Object(object.c)(n,"removeEventListener",(function(t){return function(e,n,r){var o,l=n;try{var c=null===(o=l)||void 0===o?void 0:o.__sentry_wrapped__;c&&t.call(this,e,c,r)}catch(t){}return t.call(this,e,l,r)}})))},t.prototype._wrapXHR=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(t){t in r&&"function"==typeof r[t]&&Object(object.c)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:Object(ue.a)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=Object(ue.a)(e.__sentry_original__)),oe(e,n)}))})),t.apply(this,e)}},t.id="TryCatch",t}(),Fe=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=m({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(N.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(N.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(pe({callback:function(data){var n=data.error,r=G(),o=r.getIntegration(t),l=n&&!0===n.__sentry_own_request__;if(o&&!re()&&!l){var c=r.getClient(),f=Object(k.i)(n)?e._eventFromIncompleteOnError(data.msg,data.url,data.line,data.column):e._enhanceEventWithInitialFrame(Gt(n,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!1}),data.url,data.line,data.column);Object(O.a)(f,{handled:!1,type:"onerror"}),r.captureEvent(f,{originalException:n})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(pe({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(t){}var o=G(),l=o.getIntegration(t),c=r&&!0===r.__sentry_own_request__;if(!l||re()||c)return!0;var f=o.getClient(),d=Object(k.i)(r)?e._eventFromRejectionWithPrimitive(r):Gt(r,void 0,{attachStacktrace:f&&f.getOptions().attachStacktrace,rejection:!0});d.level=h.Error,Object(O.a)(d,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(d,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,line,n){var r,o=Object(k.e)(t)?t.message:t;if(Object(k.k)(o)){var l=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);l&&(r=l[1],o=l[2])}var c={exception:{values:[{type:r||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(c,e,line,n)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,line,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(n,10))?void 0:n,o=isNaN(parseInt(line,10))?void 0:line,l=Object(k.k)(e)&&e.length>0?e:Object(O.f)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:r,filename:l,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Re=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){P((function(e,n){var r=G().getIntegration(t);return r?r._handler(e,n):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&Object(k.g)(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=_(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!Object(k.g)(t[e],Error)||n.length+1>=this._limit)return n;var r=Vt(Lt(t[e]));return this._walkErrorTree(t[e],e,_([r],n))},t.id="LinkedErrors",t}(),Le=Object(O.e)(),Ne=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){P((function(e){var n,r,o;if(G().getIntegration(t)){if(!Le.navigator&&!Le.location&&!Le.document)return e;var l=(null===(n=e.request)||void 0===n?void 0:n.url)||(null===(r=Le.location)||void 0===r?void 0:r.href),c=(Le.document||{}).referrer,f=(Le.navigator||{}).userAgent,h=m(m(m({},null===(o=e.request)||void 0===o?void 0:o.headers),c&&{Referer:c}),f&&{"User-Agent":f}),d=m(m({},l&&{url:l}),{headers:h});return m(m({},e),{request:d})}return e}))},t.id="UserAgent",t}(),Be=[new r.InboundFilters,new r.FunctionToString,new De,new Ae,new Fe,new Re,new Ne];function Ve(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Be),void 0===t.release){var e=Object(O.e)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!1),function(t,e){!0===e.debug&&N.enable();var n=G(),r=new t(e);n.bindClient(r)}(Ce,t),t.autoSessionTracking&&function(){var t=Object(O.e)(),e=G(),n="complete"===document.readyState,r=!1,o=function(){r&&n&&e.endSession()},l=function(){n=!0,o(),t.removeEventListener("load",l)};e.startSession(),n||t.addEventListener("load",l);try{var c=new PerformanceObserver((function(t,e){t.getEntries().forEach((function(t){"first-contentful-paint"===t.name&&t.startTime<f&&(e.disconnect(),r=!0,o())}))})),f="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",(function(t){f=Math.min(f,t.timeStamp)}),{once:!0}),c.observe({type:"paint",buffered:!0})}catch(t){r=!0,o()}}()}function ze(t){void 0===t&&(t={}),t.eventId||(t.eventId=G().lastEventId());var e=G().getClient();e&&e.showReportDialog(t)}function qe(){return G().lastEventId()}function Ue(){}function $e(t){t()}function Ge(t){var e=G().getClient();return e?e.flush(t):A.reject(!1)}function He(t){var e=G().getClient();return e?e.close(t):A.reject(!1)}function We(t){return oe(t)()}var Qe={},Ye=Object(O.e)();Ye.Sentry&&Ye.Sentry.Integrations&&(Qe=Ye.Sentry.Integrations);var Ke=m(m(m({},Qe),r),o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",[n("span",{domProps:{textContent:t._s(t.label)}}),t._v(" "),n("input",{ref:"input",class:t.className,attrs:{type:"text",placeholder:t.placeholder}})])},o=[]},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=function(){function a(){}return a.toJson=function(b,t){function e(b){if(a.isObject(b)){var t=0,n=!0;for(var r in b)a.isObject(b[r])&&!(b[r]instanceof Element)&&(b[r]=e(b[r])),parseInt(r)!==t&&(n=!1),t++;if(n){var g=[];for(var o in b)g.push(b[o]);return g}}return b}function g(){return t.arrayify&&(r=e(r)),t.skipEmpty&&(r=n(r)||(t.flatList?[]:{})),r}function n(b,e){var r=a.isArray(b),o=r?[]:{},g=0;for(var i in b){var l=b[i];t.flatList&&!e&&(l=l[1]),(a.isObject(l)||a.isArray(l))&&(l=n(l,(e||0)+1)||""),("object"==typeof l||""!==a.stringify(l))&&(r?o.push(t.flatList&&!e?[b[i][0],l]:l):o[i]=l,g++)}return g?o:null}t=a.merge(a.defaultOptionsToJson,t);var i=a.getFieldTree(b,(function(b){if("function"==typeof t.inputFilter&&!0!==t.inputFilter(b))return!1;if(!t.includeDisabled&&b.disabled)return!1;var e=(b.type||"text").toLowerCase();return!(!t.includeButtonValues&&(b instanceof HTMLButtonElement||-1<a.buttonInputTypes.indexOf(e)))&&(void 0!==t.uncheckedValue||!(-1<a.checkedInputTypes.indexOf(e))||b.checked)})),r=t.flatList?[]:{},o=[];if(function e(a,b){for(var n in a){var r=a[n],l=t.flatList?r.name:n;if("nested"!==r.type){var g=r.input,c=r.inputType;if("file"!==c){var f=null;if("radio"===r.type){for(var p,q=0;q<r.inputs.length;q++)if((p=r.inputs[q]).checked){f=p.value;break}null===f&&(f=t.uncheckedValue)}else if("checkbox"===c)f=g.checked?g.value:t.uncheckedValue;else if(g instanceof HTMLSelectElement){for(var h,d=[],m=0;m<g.options.length;m++)(h=g.options[m]).selected&&d.push((void 0===h.value?h.text:h.value).toString());f=g.multiple?d:d.length?d[0]:null}else f=g.value;t.flatList?b.push([r.name,f]):b[l]=f}else t.filesCallback&&o.push({object:b,key:l,input:g})}else t.flatList?e(r.tree,b):(b[n]={},e(r.tree,b[n]))}}(i,r),o.length){var l=function(){for(var b=0,e=0,n=function(n){var r=o[n],l=r.object;e+=r.input.files.length;for(var i=function(n){var i=r.input.files[n],o=new FileReader;o.onload=function(){r.input.multiple?(!a.isArray(l[r.key])&&(l[r.key]=[]),l[r.key].push(o.result)):l[r.key]=o.result,++b===e&&t.filesCallback(g())},o[t.fileReaderFunction](i)},c=0;c<r.input.files.length;c++)i(c)},r=0;r<o.length;r++)n(r);return{v:null}}();if("object"==typeof l)return l.v}else if(t.filesCallback)return t.filesCallback(g()),null;return g()},a.fromJson=function(b,t,e){if(a.isObject(t)||a.isArray(t)){e=a.merge(a.defaultOptionsFromJson,e);var n=a.getFieldTree(b),g={};e.clearOthers&&a.clear(b),e.resetOthers&&a.reset(b),function t(b,n){if(a.isObject(n)||a.isArray(n))for(var r in b){var o=b[r],l=e.flatList?o.name:r;if("nested"!==o.type)if(e.flatList)for(var c in n){var i=n[c];if(i&&i[0]===o.name&&g[o.name]!==c){g[o.name]=c,a.setInputValue(o,i[1],e.triggerChangeEvent);break}}else void 0!==n[l]&&a.setInputValue(o,n[l]||null,e.triggerChangeEvent);else e.flatList?t(o.tree,n):"object"==typeof n[l]&&t(o.tree,n[l])}}(n,t)}},a.reset=function(b){!function t(b){for(var e in b){var n=b[e];if("nested"!==n.type)if("radio"!==n.type){if(!(n.inputType&&-1<a.buttonInputTypes.indexOf(n.inputType))){var r=n.input;if(-1<a.checkedInputTypes.indexOf(n.inputType))r.checked=r.defaultChecked;else if(r instanceof HTMLSelectElement)for(var o,l=r.querySelectorAll("option"),g=0;g<l.length;g++)(o=l[g]).selected=o.defaultSelected;else r.getAttribute("value")?r.value=r.getAttribute("value"):("string"==typeof r.defaultValue||"number"==typeof r.defaultValue)&&(r.value=r.defaultValue)}}else for(var c,f=0;f<n.inputs.length;f++)(c=n.inputs[f]).checked=c.defaultChecked;else t(n.tree)}}(a.getFieldTree(b))},a.clear=function(b){!function t(b){for(var e in b){var n=b[e];"nested"!==n.type?n.input&&-1<a.buttonInputTypes.indexOf(n.inputType)||a.setInputValue(n,null):t(n.tree)}}(a.getFieldTree(b))},a.setInputValue=function(b,t,e){var n=e?function(a){var b=null;"function"==typeof Event?b=new Event("change",{bubbles:!0}):(b=document.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(b)}:null;if("radio"!==b.type){var r=b.input,o=b.inputType;if("file"!==o){var l=!1;if("checkbox"===o)(t=!0===t||null!==t&&a.stringify(r.value)===a.stringify(t))!==r.checked&&(l=!0),r.checked=t;else if(r instanceof HTMLSelectElement){var q=t;null==q?q=[]:a.isObject(q)?q=Object.values(q):!a.isArray(q)&&(q=[q]);for(var c=0;c<r.options.length;c++){var f=r.options[c],h=(void 0===f.value?f.text:f.value).toString();!1!==f.selected&&(l=!0),f.selected=!1;for(var s=0;s<q.length;s++)if(h===a.stringify(q[s])){!0!==f.selected&&(l=!0),f.selected=!0;break}}}else r.value!==t&&(l=!0),r.value=t;l&&n&&n(r)}}else{for(var d,g=[],m=0;m<b.inputs.length;m++)if((d=b.inputs[m]).checked&&g.push(d),d.checked=!1,null!==t&&a.stringify(d.value)===a.stringify(t)){d.checked||g.push(d),d.checked=!0;break}if(n)for(var p in g)n(g[p])}},a.stringify=function(a){return void 0===a||"object"==typeof a?"":"boolean"==typeof a?a?"1":"0":a+""},a.getFieldTree=function(b,t){if(!(b=a.getElement(b)))return[];for(var e,n=b.querySelectorAll("select, textarea, input, button"),r={},g={},o=0;o<n.length;o++)if((e=n[o]).name&&0!==e.name.length&&(!t||!0===t(e))){var l=(e.type||"text").toLowerCase(),c=e.name,f=e.name.replace(/\]/g,"").split("[");"[]"===c.substr(-2)&&(e instanceof HTMLSelectElement&&e.multiple||"radio"===l)&&f.pop();for(var h=f.length,d=r,p="",q=0;q<h;q++){var m=f[q],s=p?p+"["+m+"]":m;""===m&&(void 0===g[s]&&(g[s]=0),m=g[s].toString(),g[s]++),p=p?p+"["+m+"]":m,h-1==q?"radio"===(e.type||"text").toLowerCase()?(void 0===d[m]&&(d[m]={type:"radio",name:e.name,inputType:l,inputs:[]}),d[m].inputs.push(e)):d[m]={type:"default",name:e.name,inputType:l,input:e}:((void 0===d[m]||void 0===d[m].tree)&&(d[m]={type:"nested",tree:{}}),d=d[m].tree)}}return r},a.isObject=function(a){return a&&"object"==typeof a&&"[object Array]"!==Object.prototype.toString.call(a)},a.isArray=function(a){return Array.isArray(a)},a.getElement=function(a){return"string"==typeof a?document.querySelector(a):a instanceof HTMLElement?a:"undefined"!=typeof jQuery&&a instanceof jQuery||"undefined"!=typeof $&&a instanceof $?a[0]:(console.warn("FormDataJson: Unsupported element passed. Supported is HTMLElement, a string query selector, JQuery or $ object"),null)},a.merge=function(t,a){var b={};for(var e in t)b[e]=t[e];for(var n in a)b[n]=a[n];return b},a}();r.defaultOptionsToJson={includeDisabled:!1,includeButtonValues:!1,uncheckedValue:void 0,inputFilter:null,flatList:!1,skipEmpty:!1,filesCallback:null,fileReaderFunction:"readAsDataURL",arrayify:!0},r.defaultOptionsFromJson={flatList:!1,clearOthers:!1,resetOthers:!1,triggerChangeEvent:!1},r.buttonInputTypes=["button","submit","reset","image"],r.checkedInputTypes=["checkbox","radio"],t.exports&&(t.exports=r)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){(function(t){var e=n(367);for(k in e)t[k]=e[k]}).call(this,n(36))},function(t,e,n){"use strict";function r(t,e){e=e||{};this._head=0,this._tail=0,this._capacity=e.capacity,this._capacityMask=3,this._list=new Array(4),Array.isArray(t)&&this._fromArray(t)}r.prototype.peekAt=function(t){var i=t;if(i===(0|i)){var e=this.size();if(!(i>=e||i<-e))return i<0&&(i+=e),i=this._head+i&this._capacityMask,this._list[i]}},r.prototype.get=function(i){return this.peekAt(i)},r.prototype.peek=function(){if(this._head!==this._tail)return this._list[this._head]},r.prototype.peekFront=function(){return this.peek()},r.prototype.peekBack=function(){return this.peekAt(-1)},Object.defineProperty(r.prototype,"length",{get:function(){return this.size()}}),r.prototype.size=function(){return this._head===this._tail?0:this._head<this._tail?this._tail-this._head:this._capacityMask+1-(this._head-this._tail)},r.prototype.unshift=function(t){if(void 0===t)return this.size();var e=this._list.length;return this._head=this._head-1+e&this._capacityMask,this._list[this._head]=t,this._tail===this._head&&this._growArray(),this._capacity&&this.size()>this._capacity&&this.pop(),this._head<this._tail?this._tail-this._head:this._capacityMask+1-(this._head-this._tail)},r.prototype.shift=function(){var head=this._head;if(head!==this._tail){var t=this._list[head];return this._list[head]=void 0,this._head=head+1&this._capacityMask,head<2&&this._tail>1e4&&this._tail<=this._list.length>>>2&&this._shrinkArray(),t}},r.prototype.push=function(t){if(void 0===t)return this.size();var e=this._tail;return this._list[e]=t,this._tail=e+1&this._capacityMask,this._tail===this._head&&this._growArray(),this._capacity&&this.size()>this._capacity&&this.shift(),this._head<this._tail?this._tail-this._head:this._capacityMask+1-(this._head-this._tail)},r.prototype.pop=function(){var t=this._tail;if(t!==this._head){var e=this._list.length;this._tail=t-1+e&this._capacityMask;var n=this._list[this._tail];return this._list[this._tail]=void 0,this._head<2&&t>1e4&&t<=e>>>2&&this._shrinkArray(),n}},r.prototype.removeOne=function(t){var i=t;if(i===(0|i)&&this._head!==this._tail){var e=this.size(),n=this._list.length;if(!(i>=e||i<-e)){i<0&&(i+=e),i=this._head+i&this._capacityMask;var r,o=this._list[i];if(t<e/2){for(r=t;r>0;r--)this._list[i]=this._list[i=i-1+n&this._capacityMask];this._list[i]=void 0,this._head=this._head+1+n&this._capacityMask}else{for(r=e-1-t;r>0;r--)this._list[i]=this._list[i=i+1+n&this._capacityMask];this._list[i]=void 0,this._tail=this._tail-1+n&this._capacityMask}return o}}},r.prototype.remove=function(t,e){var n,i=t,r=e;if(i===(0|i)&&this._head!==this._tail){var o=this.size(),l=this._list.length;if(!(i>=o||i<-o||e<1)){if(i<0&&(i+=o),1===e||!e)return(n=new Array(1))[0]=this.removeOne(i),n;if(0===i&&i+e>=o)return n=this.toArray(),this.clear(),n;var c;for(i+e>o&&(e=o-i),n=new Array(e),c=0;c<e;c++)n[c]=this._list[this._head+i+c&this._capacityMask];if(i=this._head+i&this._capacityMask,t+e===o){for(this._tail=this._tail-e+l&this._capacityMask,c=e;c>0;c--)this._list[i=i+1+l&this._capacityMask]=void 0;return n}if(0===t){for(this._head=this._head+e+l&this._capacityMask,c=e-1;c>0;c--)this._list[i=i+1+l&this._capacityMask]=void 0;return n}if(i<o/2){for(this._head=this._head+t+e+l&this._capacityMask,c=t;c>0;c--)this.unshift(this._list[i=i-1+l&this._capacityMask]);for(i=this._head-1+l&this._capacityMask;r>0;)this._list[i=i-1+l&this._capacityMask]=void 0,r--;t<0&&(this._tail=i)}else{for(this._tail=i,i=i+e+l&this._capacityMask,c=o-(e+t);c>0;c--)this.push(this._list[i++]);for(i=this._tail;r>0;)this._list[i=i+1+l&this._capacityMask]=void 0,r--}return this._head<2&&this._tail>1e4&&this._tail<=l>>>2&&this._shrinkArray(),n}}},r.prototype.splice=function(t,e){var i=t;if(i===(0|i)){var n=this.size();if(i<0&&(i+=n),!(i>n)){if(arguments.length>2){var r,o,l,c=arguments.length,f=this._list.length,h=2;if(!n||i<n/2){for(o=new Array(i),r=0;r<i;r++)o[r]=this._list[this._head+r&this._capacityMask];for(0===e?(l=[],i>0&&(this._head=this._head+i+f&this._capacityMask)):(l=this.remove(i,e),this._head=this._head+i+f&this._capacityMask);c>h;)this.unshift(arguments[--c]);for(r=i;r>0;r--)this.unshift(o[r-1])}else{var d=(o=new Array(n-(i+e))).length;for(r=0;r<d;r++)o[r]=this._list[this._head+i+e+r&this._capacityMask];for(0===e?(l=[],i!=n&&(this._tail=this._head+i+f&this._capacityMask)):(l=this.remove(i,e),this._tail=this._tail-d+f&this._capacityMask);h<c;)this.push(arguments[h++]);for(r=0;r<d;r++)this.push(o[r])}return l}return this.remove(i,e)}}},r.prototype.clear=function(){this._head=0,this._tail=0},r.prototype.isEmpty=function(){return this._head===this._tail},r.prototype.toArray=function(){return this._copyArray(!1)},r.prototype._fromArray=function(t){for(var i=0;i<t.length;i++)this.push(t[i])},r.prototype._copyArray=function(t){var i,e=[],n=this._list,r=n.length;if(t||this._head>this._tail){for(i=this._head;i<r;i++)e.push(n[i]);for(i=0;i<this._tail;i++)e.push(n[i])}else for(i=this._head;i<this._tail;i++)e.push(n[i]);return e},r.prototype._growArray=function(){this._head&&(this._list=this._copyArray(!0),this._head=0),this._tail=this._list.length,this._list.length<<=1,this._capacityMask=this._capacityMask<<1|1},r.prototype._shrinkArray=function(){this._list.length>>>=1,this._capacityMask>>>=1},t.exports=r},function(t,e,n){"use strict";var r=n(592);e.list=Object.keys(r);var o={};function l(t){"string"!=typeof t&&(t=String(t));var e=t.indexOf("->");return-1===e?t.length:e}e.list.forEach((function(t){o[t]=r[t].flags.reduce((function(t,e){return t[e]=!0,t}),{})})),e.exists=function(t){return Boolean(r[t])},e.hasFlag=function(t,e){if(!o[t])throw new Error("Unknown command "+t);return Boolean(o[t][e])},e.getKeyIndexes=function(t,e,n){var o=r[t];if(!o)throw new Error("Unknown command "+t);if(!Array.isArray(e))throw new Error("Expect args to be an array");var i,c,f,h,d=[];switch(t){case"zunionstore":case"zinterstore":d.push(0);case"eval":case"evalsha":for(f=Number(e[1])+2,i=2;i<f;i++)d.push(i);break;case"sort":for(h=n&&n.parseExternalKey,d.push(0),i=1;i<e.length-1;i++)if("string"==typeof e[i]){var m=e[i].toUpperCase();"GET"===m?"#"!==e[i+=1]&&(h?d.push([i,l(e[i])]):d.push(i)):"BY"===m?(i+=1,h?d.push([i,l(e[i])]):d.push(i)):"STORE"===m&&(i+=1,d.push(i))}break;case"migrate":if(""===e[2]){for(i=5;i<e.length-1;i++)if("KEYS"===e[i].toUpperCase()){for(var v=i+1;v<e.length;v++)d.push(v);break}}else d.push(2);break;case"xreadgroup":case"xread":for(i="xread"===t?0:3;i<e.length-1;i++)if("STREAMS"===String(e[i]).toUpperCase()){for(v=i+1;v<=i+(e.length-1-i)/2;v++)d.push(v);break}break;default:if(o.step>0)for(c=o.keyStart-1,f=o.keyStop>0?o.keyStop:e.length+o.keyStop+1,i=c;i<f;i+=o.step)d.push(i)}return d}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookies",barDescription:"Wir verwenden unsere eigenen Cookies und Cookies von Drittanbietern, damit wir Ihnen diese Website zeigen können und verstehen wie Sie diese verwenden, um die von uns angebotenen Dienstleistungen zu verbessern. Wenn Sie weiter surfen, gehen wir davon aus, dass Sie die Cookies akzeptiert haben.",acceptAll:"Alle akzeptieren",declineAll:"Alle ablehnen",manageCookies:"Cookies verwalten",unsaved:"Sie haben nicht gespeicherte Einstellungen",close:"Schließen",save:"Speichern",necessary:"Notwendige Cookies",optional:"Optionale Cookies",functional:"Funktionale Cookies",blockedIframe:"Um den Inhalt zu sehen, aktivieren Sie bitte funktionale Cookies",here:"hier"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookies",barDescription:"Utilizamos cookies propias y de terceros para poder mostrarle una página web y comprender cómo la utiliza, con el fin de mejorar los servicios que ofrecemos. Si continúa navegando, consideramos que acepta su uso.",acceptAll:"Aceptar todo",declineAll:"Borrar todo",manageCookies:"Administrar cookies",unsaved:"Tienes configuraciones no guardadas",close:"Cerrar",save:"Guardar",necessary:"Cookies obligatorias",optional:"Cookies opcionales",functional:"Cookies funcionales",blockedIframe:"Para ver esto, por favor habilita las cookies funcionales.",here:"aquí"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookies",barDescription:"Nous utilisons des cookies d’origine et des cookies tiers. Ces cookies sont destinés à vous offrir une navigation optimisée sur ce site web et de nous donner un aperçu de son utilisation, en vue de l’amélioration des services que nous offrons. En poursuivant votre navigation, nous considérons que vous acceptez l’usage des cookies.",acceptAll:"Accepter tous",declineAll:"Supprimer tous",manageCookies:"Gérer les cookies",unsaved:"Vous avez des paramètres non-sauvgardées",close:"Fermer",save:"Sauvegarder",necessary:"Les cookies obligatoires",optional:"Les cookies optionnels",functional:"Cookies fonctionnels",blockedIframe:"Pour voir cela, veuillez activer les cookies fonctionnels",here:"ici"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Kolačići",barDescription:"Koristimo vlastite kolačiće i kolačiće treće strane kako bismo Vam mogli prikazati web stranicu i razumijeti kako je koristite, s pogledom na poboljšanje usluga koje nudimo. Ako nastavite s pregledavanjem, smatramo da prihvaćate upotrebu kolačića.",acceptAll:"Dozvoli sve",declineAll:"Obriši sve",manageCookies:"Upravljaj kolačićima",unsaved:"Imate nespremljenih postavki",close:"Zatvori",save:"Spremi",necessary:"Obavezni kolačići",optional:"Neobavezni kolačići",functional:"Funkcionalni kolačići",blockedIframe:"Da bi vidjeli ovo, molimo Vas omogućite funkcionalne kolačiće",here:"ovdje"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Sütik",barDescription:"Saját, illetve harmadik féltől származó sütiket használunk annak érdekében, hogy megmutassuk ezt a weboldalt, és jobban megértsük, hogyan használja azt, azzal a céllal, hogy javítsuk az általunk kínált szolgáltatásokat. Ha folytatod a böngészést, úgy gondoljuk, hogy elfogadtad a sütiket.",acceptAll:"Összes elfogadása",declineAll:"Összes elutasítása",manageCookies:"Sütikk kezelése",unsaved:"Mentés nélküli beállítások vannak",close:"Bezár",save:"Mentés",necessary:"Szükséges sütikk",optional:"Opcionális sütik",functional:"Funkcionális sütik",blockedIframe:"Ennek megtekintéséhez, engedélyezd a funkcionális sütik használatát",here:"itt"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookies",barDescription:"Utilizziamo cookie propri e di terzi per mostrarvi la pagina web e capire come la utilizzate, nonché per migliorare i servizi che offriamo. Se continuate a navigare, consideriamo che accettate il loro utilizzo.",acceptAll:"Accetta tutto",declineAll:"Cancella tutto",manageCookies:"Gestisci i cookie",unsaved:"Ci sono impostazioni non salvate",close:"Chiudi",save:"Salva",necessary:"Cookie necessari",optional:"Cookie opzionali",functional:"Cookie funzionali",blockedIframe:"Per vedere questo, si prega di abilitare i cookie funzionali",here:"qui"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookie",barDescription:"当サイトでは、サービス改善を目的として当サイト及び第三者が提供するCookieを使用することにより、利用者に当サイトを表示させるとともに、利用者がどのようにサイトを利用しているかをより十分に把握することが可能となっています。このまま閲覧を続けると、Cookieの利用について同意したとみなされます。",acceptAll:"全て同意",declineAll:"全て削除",manageCookies:"Cookieを管理",unsaved:"保存されていない設定があります",close:"閉じる",save:"保存",necessary:"不可欠なCookie",optional:"任意のcookies",functional:"機能性Cookie",blockedIframe:"ここを表示するには、機能性Cookieを有効にしてください:",here:"設定"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Informasjonskapsler",barDescription:"Vi bruker våre egne informasjonskapsler og tredjeparts informasjonskapsler, slik at vi kan vise deg dette nettstedet og bedre forstå hvordan du bruker det, med tanke på å forbedre tjenestene vi tilbyr.",acceptAll:"Godta alle",declineAll:"Slett alle",manageCookies:"Administrer informasjonskapsler",unsaved:"Du har ulagrede innstillinger",close:"Lukk",save:"Lagre",necessary:"Nødvendige informasjonskapsler",optional:"Valgfrie informasjonskapsler",functional:"Funksjonelle informasjonskapsler",blockedIframe:"For å se dette, vennligst aktiver funksjonelle informasjonskapsler",here:"her"}},function(t,e,n){"use strict";n.r(e),e.default={barTitle:"Cookies",barDescription:"Nós utilizamos os nossos próprios cookies e de terceiros para que possamos lhe mostrar este site e compreender a forma como o utiliza, de forma a melhorarmos os serviços que oferecemos. Ao continuar a navegar no site, consideramos que aceitou a utilização de cookies.",acceptAll:"Aceitar todos",declineAll:"Apagar todos",manageCookies:"Gerir cookies",unsaved:"Tem alterações não guardadas",close:"Fechar",save:"Gravar",necessary:"Cookies necessários",optional:"Cookies opcionais",functional:"Cookies funcionais",blockedIframe:"Para visualizar isto, por favor, active os cookies funcionais",here:"aqui"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=Object.prototype,o=r.toString,l=r.hasOwnProperty,c=new Map;function f(a,b){try{return h(a,b)}finally{c.clear()}}function h(a,b){if(a===b)return!0;var t=o.call(a);if(t!==o.call(b))return!1;switch(t){case"[object Array]":if(a.length!==b.length)return!1;case"[object Object]":if(d(a,b))return!0;var e=Object.keys(a),n=Object.keys(b),r=e.length;if(r!==n.length)return!1;for(var c=0;c<r;++c)if(!l.call(b,e[c]))return!1;for(c=0;c<r;++c){var f=e[c];if(!h(a[f],b[f]))return!1}return!0;case"[object Error]":return a.name===b.name&&a.message===b.message;case"[object Number]":if(a!=a)return b!=b;case"[object Boolean]":case"[object Date]":return+a==+b;case"[object RegExp]":case"[object String]":return a==""+b;case"[object Map]":case"[object Set]":if(a.size!==b.size)return!1;if(d(a,b))return!0;for(var m=a.entries(),v="[object Map]"===t;;){var y=m.next();if(y.done)break;var _=y.value,w=_[0],x=_[1];if(!b.has(w))return!1;if(v&&!h(x,b.get(w)))return!1}return!0}return!1}function d(a,b){var t=c.get(a);if(t){if(t.has(b))return!0}else c.set(a,t=new Set);return t.add(b),!1}},function(t,e,n){"use strict";var r=n(245);t.exports=function t(e,path,n){var o;void 0===path&&(path=""),void 0===n&&(n=r);var l=new Map;function c(t,e){var n=l.get(e);n?n.push.apply(n,t):l.set(e,t)}if(n(e))o=null,c([path],e);else{var f=path?path+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)o=Array.prototype.map.call(e,(function(t,i){return c([""+f+i],t),null}));else if(Array.isArray(e))o=e.map((function(e,i){var r=t(e,""+f+i,n);return r.files.forEach(c),r.clone}));else if(e&&e.constructor===Object)for(var i in o={},e){var h=t(e[i],""+f+i,n);h.files.forEach(c),o[i]=h.clone}else o=e}return{clone:o,files:l}}},,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var t=this;return this.$mapPromise.then((function(map){t.$map=map})),{}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=0;t((function(){e+=1}),(function(){e=Math.max(0,e-1)}),(function(){return 0===e}))}},function(t,e,n){var content=n(671);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(80).default)("2112dc1f",content,!0,{sourceMap:!1})},function(t,e,n){var content=n(674);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(80).default)("d000bee6",content,!0,{sourceMap:!1})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(input){var t=input.addEventListener?input.addEventListener:input.attachEvent;function e(e,n){if("keydown"===e){var r=n;n=function(t){var e=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!e){var n=document.createEvent("Event");n.keyCode=40,n.which=40,r.apply(input,[n])}r.apply(input,[t])}}t.apply(input,[e,n])}input.addEventListener=e,input.attachEvent=e}},function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},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(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var l in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(l,e.headers[l]);s.send(e.body||null)}))}},,function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function f(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function h(object,t){try{return t in object}catch(t){return!1}}function d(t,source,e){var n={};return e.isMergeableObject(t)&&f(t).forEach((function(r){n[r]=l(t[r],e)})),f(source).forEach((function(r){(function(t,e){return h(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(h(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}(r,e)(t[r],source[r],e):n[r]=l(source[r],e))})),n}function m(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):d(t,source,e):l(source,e)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var v=m;t.exports=v},function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i<r;i+=1)for(var o in n=t[i].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(e.prototype[o]=n[o])}function getDescriptor(object,t){return Object.getOwnPropertyDescriptor(object,t)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(audio){this.audios.push(audio)},pause:function(){var i,t=this.audios.length;for(i=0;i<t;i+=1)this.audios[i].pause()},resume:function(){var i,t=this.audios.length;for(i=0;i<t;i+=1)this.audios[i].resume()},setRate:function(t){var i,e=this.audios.length;for(i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,t=this.audios.length;for(i=0;i<t;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var n,i=0,r=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(i=0;i<e;i+=1)r.push(n);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var i,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length;for(i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var i,e=createSizedArray(t.length),n=t.length;for(i=0;i<n;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(element){element.style.position="absolute",element.style.top=0,element.style.left=0,element.style.display="block",element.style.transformOrigin="0 0",element.style.webkitTransformOrigin="0 0",element.style.backfaceVisibility="visible",element.style.webkitBackfaceVisibility="visible",element.style.transformStyle="preserve-3d",element.style.webkitTransformStyle="preserve-3d",element.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,s,e){var n,g,b,i,r,p,q,o;switch(p=e*(1-s),q=e*(1-(r=6*t-(i=Math.floor(6*t)))*s),o=e*(1-(1-r)*s),i%6){case 0:n=e,g=o,b=p;break;case 1:n=q,g=e,b=p;break;case 2:n=p,g=e,b=o;break;case 3:n=p,g=q,b=e;break;case 4:n=o,g=p,b=e;break;case 5:n=e,g=p,b=q}return[n,g,b]}function RGBtoHSV(t,g,b){var e,n=Math.max(t,g,b),r=Math.min(t,g,b),o=n-r,s=0===n?0:o/n,l=n/255;switch(n){case r:e=0;break;case t:e=g-b+o*(g<b?6:0),e/=6*o;break;case g:e=b-t+2*o,e/=6*o;break;case b:e=t-g+4*o,e/=6*o}return[e,s,l]}function addSaturationToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var i,t,e=[];for(i=0;i<256;i+=1)t=i.toString(16),e[i]=1===t.length?"0"+t:t;return function(t,g,b){return t<0&&(t=0),g<0&&(g=0),b<0&&(b=0),"#"+e[t]+e[g]+e[b]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix=t},getIdPrefix=function(){return idPrefix};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,n=1,r=[],o={onmessage:function(){},postMessage:function(path){t({data:path})}},l={postMessage:function(data){o.onmessage({data:data})}};function c(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,o}((function(t){if(l.dataManager||(l.dataManager=function(){function t(o,l){var c,i,f,h,d,m,y=o.length;for(i=0;i<y;i+=1)if("ks"in(c=o[i])&&!c.completed){if(c.completed=!0,c.tt&&(o[i-1].td=c.tt),c.hasMask){var _=c.masksProperties;for(h=_.length,f=0;f<h;f+=1)if(_[f].pt.k.i)r(_[f].pt.k);else for(m=_[f].pt.k.length,d=0;d<m;d+=1)_[f].pt.k[d].s&&r(_[f].pt.k[d].s[0]),_[f].pt.k[d].e&&r(_[f].pt.k[d].e[0])}0===c.ty?(c.layers=e(c.refId,l),t(c.layers,l)):4===c.ty?n(c.shapes):5===c.ty&&v(c)}}function e(t,e){var n=function(t,e){for(var i=0,n=e.length;i<n;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(t){var i,e,o;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)r(t[i].ks.k);else for(o=t[i].ks.k.length,e=0;e<o;e+=1)t[i].ks.k[e].s&&r(t[i].ks.k[e].s[0]),t[i].ks.k[e].e&&r(t[i].ks.k[e].e[0]);else"gr"===t[i].ty&&n(t[i].it)}function r(path){var i,t=path.i.length;for(i=0;i<t;i+=1)path.i[i][0]+=path.v[i][0],path.i[i][1]+=path.v[i][1],path.o[i][0]+=path.v[i][0],path.o[i][1]+=path.v[i][1]}function o(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var l,c=function(){var t=[4,4,14];function e(t){var i,e,n,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&(n=void 0,n=(e=t[i]).t.d,e.t.d={k:[{s:n,t:0}]})}return function(n){if(o(t,n.v)&&(e(n.layers),n.assets)){var i,r=n.assets.length;for(i=0;i<r;i+=1)n.assets[i].layers&&e(n.assets[i].layers)}}}(),f=(l=[4,7,99],function(t){if(t.chars&&!o(l,t.v)){var i,e=t.chars.length;for(i=0;i<e;i+=1){var r=t.chars[i];r.data&&r.data.shapes&&(n(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[i].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var i,e,n=t.length;for(i=0;i<n;i+=1)5===t[i].ty&&(e=void 0,"number"==typeof(e=t[i].t.p).a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))}return function(n){if(o(t,n.v)&&(e(n.layers),n.assets)){var i,r=n.assets.length;for(i=0;i<r;i+=1)n.assets[i].layers&&e(n.assets[i].layers)}}}(),d=function(){var t=[4,1,9];function e(t){var i,n,r,o=t.length;for(i=0;i<o;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,n=0;n<r;n+=1)t[i].c.k[n].s&&(t[i].c.k[n].s[0]/=255,t[i].c.k[n].s[1]/=255,t[i].c.k[n].s[2]/=255,t[i].c.k[n].s[3]/=255),t[i].c.k[n].e&&(t[i].c.k[n].e[0]/=255,t[i].c.k[n].e[1]/=255,t[i].c.k[n].e[2]/=255,t[i].c.k[n].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function n(t){var i,n=t.length;for(i=0;i<n;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),m=function(){var t=[4,4,18];function e(t){var i,n,r;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n<r;n+=1)t[i].ks.k[n].s&&(t[i].ks.k[n].s[0].c=t[i].closed),t[i].ks.k[n].e&&(t[i].ks.k[n].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function n(t){var n,i,r,o,l,c,f=t.length;for(i=0;i<f;i+=1){if((n=t[i]).hasMask){var h=n.masksProperties;for(o=h.length,r=0;r<o;r+=1)if(h[r].pt.k.i)h[r].pt.k.c=h[r].cl;else for(c=h[r].pt.k.length,l=0;l<c;l+=1)h[r].pt.k[l].s&&(h[r].pt.k[l].s[0].c=h[r].cl),h[r].pt.k[l].e&&(h[r].pt.k[l].e[0].c=h[r].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}();function v(data){0===data.t.a.length&&data.t.p}var y={completeData:function(n){n.__complete||(d(n),c(n),f(n),h(n),m(n),t(n.layers,n.assets),function(n,r){if(n){var i=0,o=n.length;for(i=0;i<o;i+=1)1===n[i].t&&(n[i].data.layers=e(n[i].data.refId,r),t(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return y.checkColors=d,y.checkChars=f,y.checkPathProperties=h,y.checkShapes=m,y.completeLayers=t,y}()),l.assetLoader||(l.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(path,e,n,r){var o,l=new XMLHttpRequest;try{l.responseType="json"}catch(t){}l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status)o=t(l),n(o);else try{o=t(l),n(o)}catch(t){r&&r(t)}};try{l.open("GET",path,!0)}catch(t){l.open("GET",e+"/"+path,!0)}l.send()}}}()),"loadAnimation"===t.data.type)l.assetLoader.load(t.data.path,t.data.fullPath,(function(data){l.dataManager.completeData(data),l.postMessage({id:t.data.id,payload:data,status:"success"})}),(function(){l.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;l.dataManager.completeData(e),l.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&l.assetLoader.load(t.data.path,t.data.fullPath,(function(data){l.postMessage({id:t.data.id,payload:data,status:"success"})}),(function(){l.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var data=t.data,e=data.id,n=r[e];r[e]=null,"success"===data.status?n.onComplete(data.payload):n.onError&&n.onError()})}function f(t,e){var o="processId_"+(n+=1);return r[o]={onComplete:t,onError:e},o}return{loadAnimation:function(path,t,n){c();var r=f(t,n);e.postMessage({type:"loadAnimation",path:path,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(path,t,n){c();var r=f(t,n);e.postMessage({type:"loadData",path:path,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,n,r){c();var o=f(n,r);e.postMessage({type:"complete",animation:t,id:o})}}}(),ImagePreloader=function(){var t=function(){var canvas=createTag("canvas");canvas.width=1,canvas.height=1;var t=canvas.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),canvas}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,n){var path="";if(t.e)path=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),path=e+r}else path=n,path+=t.u?t.u:"",path+=t.p;return path}function o(img){var t=0,e=setInterval(function(){(img.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(e)),t+=1}.bind(this),50)}function l(data){var t={assetData:data},path=r(data,this.assetsPath,this.path);return dataManager.loadData(path,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function c(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return c.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var n=t.length;for(i=0;i<n;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(path){this.assetsPath=path||""},setPath:function(path){this.path=path||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var i=0,e=this.images.length;i<e;){if(this.images[i].assetData===t)return this.images[i].img;i+=1}return null},createImgData:function(e){var path=r(e,this.assetsPath,this.path),img=createTag("img");img.crossOrigin="anonymous",img.addEventListener("load",this._imageLoaded,!1),img.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),img.src=path;var n={img:img,assetData:e};return n},createImageData:function(e){var path=r(e,this.assetsPath,this.path),img=createNS("image");isSafari?this.testImageLoaded(img):img.addEventListener("load",this._imageLoaded,!1),img.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),img.setAttributeNS("http://www.w3.org/1999/xlink","href",path),this._elementHelper.append?this._elementHelper.append(img):this._elementHelper.appendChild(img);var n={img:img,assetData:e};return n},imageLoaded:e,footageLoaded:n,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},c}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],i=0;i<n.length;i+=1)n[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var line,e=t.split("\r\n"),n={},r=0,i=0;i<e.length;i+=1)2===(line=e[i].split(":")).length&&(n[line[0]]=line[1].trim(),r+=1);if(0===r)throw new Error;return n}return function(e){for(var n=[],i=0;i<e.length;i+=1){var r=e[i],o={time:r.tm,duration:r.dr};try{o.payload=JSON.parse(e[i].cm)}catch(n){try{o.payload=t(e[i].cm)}catch(t){o.payload={name:e[i]}}}n.push(o)}return n}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var i=0,e=this.compositions.length;i<e;){if(this.compositions[i].data&&this.compositions[i].data.nm===t)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=getRenderer(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(data){dataManager.completeAnimation(data,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var o=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===o?n.loop=!1:"true"===o?n.loop=!0:""!==o&&(n.loop=parseInt(o,10));var l=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==l,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(data){data.op>this.animationData.op&&(this.animationData.op=data.op,this.totalFrames=Math.floor(data.op-this.animationData.ip));var i,t,e=this.animationData.layers,n=e.length,r=data.layers,o=r.length;for(t=0;t<o;t+=1)for(i=0;i<n;){if(e[i].id===r[t].id){e[i]=r[t];break}i+=1}if((data.chars||data.fonts)&&(this.renderer.globalData.fontManager.addChars(data.chars),this.renderer.globalData.fontManager.addFonts(data.fonts,this.renderer.globalData.defs)),data.assets)for(n=data.assets.length,i=0;i<n;i+=1)this.animationData.assets.push(data.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(data){this.animationData=data;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var marker,i=0;i<this.markers.length;i+=1)if((marker=this.markers[i]).payload&&marker.payload.name.cm===t)return marker;return null},AnimationItem.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var marker=this.getMarkerData(t);marker&&this.goToAndStop(marker.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var marker=this.getMarkerData(t);marker&&(marker.duration?this.playSegments([marker.time,marker.time+marker.duration],!0):this.goToAndStop(marker.time,!0))}else this.goToAndStop(r,e,n);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var path="";if(t.e)path=t.p;else if(this.assetsPath){var e=t.p;-1!==e.indexOf("images/")&&(e=e.split("/")[1]),path=this.assetsPath+e}else path=this.path,path+=t.u?t.u:"",path+=t.p;return path},AnimationItem.prototype.getAssetData=function(t){for(var i=0,e=this.assets.length;i<e;){if(t===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(path,t,e){try{this.renderer.getElementByPath(path).updateDocumentData(t,e)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],n=0,r=0,o=0,l=!0,c=!1;function f(t){for(var i=0,n=t.target;i<r;)e[i].animation===n&&(e.splice(i,1),i-=1,r-=1,n.isPaused||m()),i+=1}function h(element,t){if(!element)return null;for(var i=0;i<r;){if(e[i].elem===element&&null!==e[i].elem)return e[i].animation;i+=1}var n=new AnimationItem;return v(n,element),n.setData(element,t),n}function d(){o+=1,w()}function m(){o-=1}function v(t,element){t.addEventListener("destroy",f),t.addEventListener("_active",d),t.addEventListener("_idle",m),e.push({elem:element,animation:t}),r+=1}function y(t){var i,f=t-n;for(i=0;i<r;i+=1)e[i].animation.advanceTime(f);n=t,o&&!c?window.requestAnimationFrame(y):l=!0}function _(t){n=t,window.requestAnimationFrame(y)}function w(){!c&&o&&l&&(window.requestAnimationFrame(_),l=!1)}return t.registerAnimation=h,t.loadAnimation=function(t){var e=new AnimationItem;return v(e,null),e.setParams(t),e},t.setSpeed=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setSpeed(t,n)},t.setDirection=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setDirection(t,n)},t.play=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,n){var i,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=r.length;for(i=0;i<o;i+=1)n&&r[i].setAttribute("data-bm-type",n),h(r[i],t);if(e&&0===o){n||(n="svg");var body=document.getElementsByTagName("body")[0];body.innerText="";var div=createTag("div");div.style.width="100%",div.style.height="100%",div.setAttribute("data-bm-type",n),body.appendChild(div),h(div,t)}},t.resize=function(){var i;for(i=0;i<r;i+=1)e[i].animation.resize()},t.goToAndStop=function(t,n,o){var i;for(i=0;i<r;i+=1)e[i].animation.goToAndStop(t,n,o)},t.destroy=function(t){var i;for(i=r-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){c=!0},t.unfreeze=function(){c=!1,w()},t.setVolume=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setVolume(t,n)},t.mute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var i,t=e.length,n=[];for(i=0;i<t;i+=1)n.push(e[i].animation);return n},t}(),BezierFactory=function(){var t={getBezierEasing:function(a,b,t,n,r){var o=r||("bez_"+a+"_"+b+"_"+t+"_"+n).replace(/\./g,"p");if(e[o])return e[o];var l=new d([a,b,t,n]);return e[o]=l,l}},e={},n=.1,r="function"==typeof Float32Array;function o(t,e){return 1-3*e+3*t}function l(t,e){return 3*e-6*t}function c(t){return 3*t}function f(t,e,n){return((o(e,n)*t+l(e,n))*t+c(e))*t}function h(t,e,n){return 3*o(e,n)*t*t+2*l(e,n)*t+c(e)}function d(t){this._p=t,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===n&&r===o?t:0===t?0:1===t?1:f(this._getTForX(t),n,o)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<11;++i)this._mSampleValues[i]=f(i*n,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],o=this._mSampleValues,l=0,c=1;10!==c&&o[c]<=t;++c)l+=n;var d=l+(t-o[--c])/(o[c+1]-o[c])*n,m=h(d,e,r);return m>=.001?function(t,e,n,r){for(var i=0;i<4;++i){var o=h(e,n,r);if(0===o)return e;e-=(f(e,n,r)-t)/o}return e}(t,d,e,r):0===m?d:function(t,e,n,r,o){var l,c,i=0;do{(l=f(c=e+(n-e)/2,r,o)-t)>0?n=c:e=c}while(Math.abs(l)>1e-7&&++i<10);return c}(t,l,l+n,e,r)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,n){var r=0,o=t,l=createSizedArray(o);return{newElement:function(){return r?l[r-=1]:e()},release:function(element){r===o&&(l=pooling.double(l),o*=2),n&&n(element),l[r]=element,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(element){var i,t=element.lengths.length;for(i=0;i<t;i+=1)bezierLengthPool.release(element.lengths[i]);element.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,n,r,o,l){var c=t*r+e*o+n*l-o*r-l*t-n*e;return c>-.001&&c<.001}var n=function(t,e,n,r){var o,i,l,c,f,h,d=getDefaultCurveSegments(),m=0,v=[],y=[],_=bezierLengthPool.newElement();for(l=n.length,o=0;o<d;o+=1){for(f=o/(d-1),h=0,i=0;i<l;i+=1)c=bmPow(1-f,3)*t[i]+3*bmPow(1-f,2)*f*n[i]+3*(1-f)*bmPow(f,2)*r[i]+bmPow(f,3)*e[i],v[i]=c,null!==y[i]&&(h+=bmPow(v[i]-y[i],2)),y[i]=v[i];h&&(m+=h=bmSqrt(h)),_.percents[o]=f,_.lengths[o]=m}return _.addedLength=m,_};function r(t){this.segmentLength=0,this.points=new Array(t)}function o(t,e){this.partialLength=t,this.point=e}var l,c=(l={},function(t,n,c,f){var h=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+c[0]+"_"+c[1]+"_"+f[0]+"_"+f[1]).replace(/\./g,"p");if(!l[h]){var d,i,m,v,y,_,w,x=getDefaultCurveSegments(),E=0,S=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+c[0],t[1]+c[1])&&e(t[0],t[1],n[0],n[1],n[0]+f[0],n[1]+f[1])&&(x=2);var k=new r(x);for(m=c.length,d=0;d<x;d+=1){for(w=createSizedArray(m),y=d/(x-1),_=0,i=0;i<m;i+=1)v=bmPow(1-y,3)*t[i]+3*bmPow(1-y,2)*y*(t[i]+c[i])+3*(1-y)*bmPow(y,2)*(n[i]+f[i])+bmPow(y,3)*n[i],w[i]=v,null!==S&&(_+=bmPow(w[i]-S[i],2));E+=_=bmSqrt(_),k.points[d]=new o(_,w),S=w}k.segmentLength=E,l[h]=k}return l[h]});function f(t,e){var n=e.percents,r=e.lengths,o=n.length,l=bmFloor((o-1)*t),c=t*e.addedLength,f=0;if(l===o-1||0===l||c===r[l])return n[l];for(var h=r[l]>c?-1:1,d=!0;d;)if(r[l]<=c&&r[l+1]>c?(f=(c-r[l])/(r[l+1]-r[l]),d=!1):l+=h,l<0||l>=o-1){if(l===o-1)return n[l];d=!1}return n[l]+(n[l+1]-n[l])*f}var h=createTypedArray("float32",8);return{getSegmentsLength:function(t){var i,e=segmentsLengthPool.newElement(),r=t.c,o=t.v,l=t.o,c=t.i,f=t._length,h=e.lengths,d=0;for(i=0;i<f-1;i+=1)h[i]=n(o[i],o[i+1],l[i],c[i+1]),d+=h[i].addedLength;return r&&f&&(h[i]=n(o[i],o[0],l[i],c[0]),d+=h[i].addedLength),e.totalLength=d,e},getNewSegment:function(e,n,r,o,l,c,d){l<0?l=0:l>1&&(l=1);var i,m=f(l,d),v=f(c=c>1?1:c,d),y=e.length,_=1-m,w=1-v,x=_*_*_,E=m*_*_*3,S=m*m*_*3,k=m*m*m,A=_*_*w,O=m*_*w+_*m*w+_*_*v,T=m*m*w+_*m*v+m*_*v,C=m*m*v,P=_*w*w,I=m*w*w+_*v*w+_*w*v,M=m*v*w+_*v*v+m*w*v,j=m*v*v,D=w*w*w,F=v*w*w+w*v*w+w*w*v,R=v*v*w+w*v*v+v*w*v,L=v*v*v;for(i=0;i<y;i+=1)h[4*i]=t.round(1e3*(x*e[i]+E*r[i]+S*o[i]+k*n[i]))/1e3,h[4*i+1]=t.round(1e3*(A*e[i]+O*r[i]+T*o[i]+C*n[i]))/1e3,h[4*i+2]=t.round(1e3*(P*e[i]+I*r[i]+M*o[i]+j*n[i]))/1e3,h[4*i+3]=t.round(1e3*(D*e[i]+F*r[i]+R*o[i]+L*n[i]))/1e3;return h},getPointInSegment:function(e,n,r,o,l,c){var h=f(l,c),d=1-h;return[t.round(1e3*(d*d*d*e[0]+(h*d*d+d*h*d+d*d*h)*r[0]+(h*h*d+d*h*h+h*d*h)*o[0]+h*h*h*n[0]))/1e3,t.round(1e3*(d*d*d*e[1]+(h*d*d+d*h*d+d*d*h)*r[1]+(h*h*d+d*h*h+h*d*h)*o[1]+h*h*h*n[1]))/1e3]},buildBezierData:c,pointOnLine2D:e,pointOnLine3D:function(n,r,o,l,c,f,h,d,m){if(0===o&&0===f&&0===m)return e(n,r,l,c,h,d);var v,y=t.sqrt(t.pow(l-n,2)+t.pow(c-r,2)+t.pow(f-o,2)),_=t.sqrt(t.pow(h-n,2)+t.pow(d-r,2)+t.pow(m-o,2)),w=t.sqrt(t.pow(h-l,2)+t.pow(d-c,2)+t.pow(m-f,2));return(v=y>_?y>w?y-_-w:w-_-y:w>_?w-_-y:_-y-w)>-1e-4&&v<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function n(t,e){var n,o=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var l,c,f,h,d,m,v,y,_,w=e.lastIndex,i=w,x=this.keyframes.length-1,E=!0;E;){if(l=this.keyframes[i],c=this.keyframes[i+1],i===x-1&&t>=c.t-o){l.h&&(l=c),w=0;break}if(c.t-o>t){w=i;break}i<x-1?i+=1:(w=0,E=!1)}f=this.keyframesMetadata[i]||{};var S,k,A,O,T,C,P,I,M,j,D=c.t-o,F=l.t-o;if(l.to){f.bezierData||(f.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var R=f.bezierData;if(t>=D||t<F){var L=t>=D?R.points.length-1:0;for(d=R.points[L].point.length,h=0;h<d;h+=1)n[h]=R.points[L].point[h]}else{f.__fnct?_=f.__fnct:(_=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,f.__fnct=_),m=_((t-F)/(D-F));var N,B=R.segmentLength*m,V=e.lastFrame<t&&e._lastKeyframeIndex===i?e._lastAddedLength:0;for(y=e.lastFrame<t&&e._lastKeyframeIndex===i?e._lastPoint:0,E=!0,v=R.points.length;E;){if(V+=R.points[y].partialLength,0===B||0===m||y===R.points.length-1){for(d=R.points[y].point.length,h=0;h<d;h+=1)n[h]=R.points[y].point[h];break}if(B>=V&&B<V+R.points[y+1].partialLength){for(N=(B-V)/R.points[y+1].partialLength,d=R.points[y].point.length,h=0;h<d;h+=1)n[h]=R.points[y].point[h]+(R.points[y+1].point[h]-R.points[y].point[h])*N;break}y<v-1?y+=1:E=!1}e._lastPoint=y,e._lastAddedLength=V-R.points[y].partialLength,e._lastKeyframeIndex=i}}else{var z,U,$,G,H;if(x=l.s.length,S=c.s||l.e,this.sh&&1!==l.h)if(t>=D)n[0]=S[0],n[1]=S[1],n[2]=S[2];else if(t<=F)n[0]=l.s[0],n[1]=l.s[1],n[2]=l.s[2];else{var W=r(l.s),Q=r(S);k=n,A=function(a,b,t){var e,n,r,o,l,c=[],f=a[0],h=a[1],d=a[2],m=a[3],v=b[0],y=b[1],_=b[2],w=b[3];return(n=f*v+h*y+d*_+m*w)<0&&(n=-n,v=-v,y=-y,_=-_,w=-w),1-n>1e-6?(e=Math.acos(n),r=Math.sin(e),o=Math.sin((1-t)*e)/r,l=Math.sin(t*e)/r):(o=1-t,l=t),c[0]=o*f+l*v,c[1]=o*h+l*y,c[2]=o*d+l*_,c[3]=o*m+l*w,c}(W,Q,(t-F)/(D-F)),O=A[0],T=A[1],C=A[2],P=A[3],I=Math.atan2(2*T*P-2*O*C,1-2*T*T-2*C*C),M=Math.asin(2*O*T+2*C*P),j=Math.atan2(2*O*P-2*T*C,1-2*O*O-2*C*C),k[0]=I/degToRads,k[1]=M/degToRads,k[2]=j/degToRads}else for(i=0;i<x;i+=1)1!==l.h&&(t>=D?m=1:t<F?m=0:(l.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[i]?_=f.__fnct[i]:(z=void 0===l.o.x[i]?l.o.x[0]:l.o.x[i],U=void 0===l.o.y[i]?l.o.y[0]:l.o.y[i],$=void 0===l.i.x[i]?l.i.x[0]:l.i.x[i],G=void 0===l.i.y[i]?l.i.y[0]:l.i.y[i],_=BezierFactory.getBezierEasing(z,U,$,G).get,f.__fnct[i]=_)):f.__fnct?_=f.__fnct:(z=l.o.x,U=l.o.y,$=l.i.x,G=l.i.y,_=BezierFactory.getBezierEasing(z,U,$,G).get,l.keyframeMetadata=_),m=_((t-F)/(D-F)))),S=c.s||l.e,H=1===l.h?l.s[i]:l.s[i]+(S[i]-l.s[i])*m,"multidimensional"===this.propType?n[i]=H:n=H}return e.lastIndex=w,n}function r(t){var e=t[0]*degToRads,n=t[1]*degToRads,r=t[2]*degToRads,o=Math.cos(e/2),l=Math.cos(n/2),c=Math.cos(r/2),f=Math.sin(e/2),h=Math.sin(n/2),d=Math.sin(r/2);return[f*h*c+o*l*d,f*l*c+o*h*d,o*h*c-f*l*d,o*l*c-f*h*d]}function o(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(e,this._caching);this.pv=o}return this._caching.lastFrame=e,this.pv}function l(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)n=t[i]*this.mult,e(this.v[i]-n)>1e-5&&(this.v[i]=n,this._mdf=!0),i+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var i;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function f(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,data,e,n){this.propType="unidimensional",this.mult=e||1,this.data=data,this.v=e?data.k*e:data.k,this.pv=data.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=f}function d(t,data,e,n){var i;this.propType="multidimensional",this.mult=e||1,this.data=data,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=data.k.length;for(this.v=createTypedArray("float32",r),this.pv=createTypedArray("float32",r),this.vel=createTypedArray("float32",r),i=0;i<r;i+=1)this.v[i]=data.k[i]*this.mult,this.pv[i]=data.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=f}function m(e,data,r,h){this.propType="unidimensional",this.keyframes=data.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=data,this.mult=r||1,this.elem=e,this.container=h,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[o.bind(this)],this.addEffect=f}function v(e,data,r,h){var i;this.propType="multidimensional";var s,d,m,v,y=data.k.length;for(i=0;i<y-1;i+=1)data.k[i].to&&data.k[i].s&&data.k[i+1]&&data.k[i+1].s&&(s=data.k[i].s,d=data.k[i+1].s,m=data.k[i].to,v=data.k[i].ti,(2===s.length&&(s[0]!==d[0]||s[1]!==d[1])&&bez.pointOnLine2D(s[0],s[1],d[0],d[1],s[0]+m[0],s[1]+m[1])&&bez.pointOnLine2D(s[0],s[1],d[0],d[1],d[0]+v[0],d[1]+v[1])||3===s.length&&(s[0]!==d[0]||s[1]!==d[1]||s[2]!==d[2])&&bez.pointOnLine3D(s[0],s[1],s[2],d[0],d[1],d[2],s[0]+m[0],s[1]+m[1],s[2]+m[2])&&bez.pointOnLine3D(s[0],s[1],s[2],d[0],d[1],d[2],d[0]+v[0],d[1]+v[1],d[2]+v[2]))&&(data.k[i].to=null,data.k[i].ti=null),s[0]===d[0]&&s[1]===d[1]&&0===m[0]&&0===m[1]&&0===v[0]&&0===v[1]&&(2===s.length||s[2]===d[2]&&0===m[2]&&0===v[2])&&(data.k[i].to=null,data.k[i].ti=null));this.effectsSequence=[o.bind(this)],this.data=data,this.keyframes=data.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=h,this.comp=e.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var _=data.k[0].s.length;for(this.v=createTypedArray("float32",_),this.pv=createTypedArray("float32",_),i=0;i<_;i+=1)this.v[i]=t,this.pv[i]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",_)},this.addEffect=f}return{getProp:function(t,data,e,n,r){var p;if(data.k.length)if("number"==typeof data.k[0])p=new d(t,data,n,r);else switch(e){case 0:p=new m(t,data,n,r);break;case 1:p=new v(t,data,n,r)}else p=new h(t,data,n,r);return p.effectsSequence.length&&r.addDynamicProperty(p),p}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var i;this._mdf=!1;var t=this.dynamicProperties.length;for(i=0;i<t;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,n,r,o){var l;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":l=this.v;break;case"i":l=this.i;break;case"o":l=this.o;break;default:l=[]}(!l[r]||l[r]&&!o)&&(l[r]=pointPool.newElement()),l[r][0]=t,l[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,n,r,o,l,c,f){this.setXYAt(t,e,"v",c,f),this.setXYAt(n,r,"o",c,f),this.setXYAt(o,l,"i",c,f)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),o=1);var i,l=this._length-1,c=this._length;for(i=o;i<c;i+=1)t.setTripleAt(e[l][0],e[l][1],r[l][0],r[l][1],n[l][0],n[l][1],i,!1),l-=1;return t};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var i,e=t._length;for(i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1})),factory.clone=function(t){var i,e=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(e.setLength(n),e.c=t.c,i=0;i<n;i+=1)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var i;for(i=0;i<this._length;i+=1)shapePool.release(this.shapes[i]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var i,e=t._length;for(i=0;i<e;i+=1)shapePool.release(t.shapes[i]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,n){var r,o,l,c,f,h,d,m,v,y=n.lastIndex,_=this.keyframes;if(t<_[0].t-this.offsetTime)r=_[0].s[0],l=!0,y=0;else if(t>=_[_.length-1].t-this.offsetTime)r=_[_.length-1].s?_[_.length-1].s[0]:_[_.length-2].e[0],l=!0;else{for(var w,x,E,i=y,S=_.length-1,k=!0;k&&(w=_[i],!((x=_[i+1]).t-this.offsetTime>t));)i<S-1?i+=1:k=!1;if(E=this.keyframesMetadata[i]||{},y=i,!(l=1===w.h)){if(t>=x.t-this.offsetTime)m=1;else if(t<w.t-this.offsetTime)m=0;else{var A;E.__fnct?A=E.__fnct:(A=BezierFactory.getBezierEasing(w.o.x,w.o.y,w.i.x,w.i.y).get,E.__fnct=A),m=A((t-(w.t-this.offsetTime))/(x.t-this.offsetTime-(w.t-this.offsetTime)))}o=x.s?x.s[0]:w.e[0]}r=w.s[0]}for(h=e._length,d=r.i[0].length,n.lastIndex=y,c=0;c<h;c+=1)for(f=0;f<d;f+=1)v=l?r.i[c][f]:r.i[c][f]+(o.i[c][f]-r.i[c][f])*m,e.i[c][f]=v,v=l?r.o[c][f]:r.o[c][f]+(o.o[c][f]-r.o[c][f])*m,e.o[c][f]=v,v=l?r.v[c][f]:r.v[c][f]+(o.v[c][f]-r.v[c][f])*m,e.v[c][f]=v}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==t&&(o<n&&e<n||o>r&&e>r)||(this._caching.lastIndex=o<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function o(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,n=t._length;for(i=0;i<n;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function l(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,i;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e=this.effectsSequence.length;for(i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function c(t,data,e){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=data,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===e?data.pt.k:data.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function f(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(e,data,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?data.pt.k:data.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var l=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,l),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}c.prototype.interpolateShape=e,c.prototype.getValue=l,c.prototype.setVValue=o,c.prototype.addEffect=f,h.prototype.getValue=l,h.prototype.interpolateShape=e,h.prototype.setVValue=o,h.prototype.addEffect=f;var d=function(){var t=roundCorner;function e(t,data){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=data.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,data.p,1,0,this),this.s=PropertyFactory.getProp(t,data.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,o=this.s.v[1]/2,l=3!==this.d,c=this.v;c.v[0][0]=e,c.v[0][1]=n-o,c.v[1][0]=l?e+r:e-r,c.v[1][1]=n,c.v[2][0]=e,c.v[2][1]=n+o,c.v[3][0]=l?e-r:e+r,c.v[3][1]=n,c.i[0][0]=l?e-r*t:e+r*t,c.i[0][1]=n-o,c.i[1][0]=l?e+r:e-r,c.i[1][1]=n-o*t,c.i[2][0]=l?e+r*t:e-r*t,c.i[2][1]=n+o,c.i[3][0]=l?e-r:e+r,c.i[3][1]=n+o*t,c.o[0][0]=l?e+r*t:e-r*t,c.o[0][1]=n-o,c.o[1][0]=l?e+r:e-r,c.o[1][1]=n+o*t,c.o[2][0]=l?e-r*t:e+r*t,c.o[2][1]=n+o,c.o[3][0]=l?e-r:e+r,c.o[3][1]=n-o*t}},extendPrototype([DynamicPropertyContainer],e),e}(),m=function(){function t(t,data){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=data,this.frameId=-1,this.d=data.d,this.initDynamicPropertyContainer(t),1===data.sy?(this.ir=PropertyFactory.getProp(t,data.ir,0,0,this),this.is=PropertyFactory.getProp(t,data.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,data.pt,0,0,this),this.p=PropertyFactory.getProp(t,data.p,1,0,this),this.r=PropertyFactory.getProp(t,data.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,data.or,0,0,this),this.os=PropertyFactory.getProp(t,data.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var i,t,e,n,r=2*Math.floor(this.pt.v),o=2*Math.PI/r,l=!0,c=this.or.v,f=this.ir.v,h=this.os.v,d=this.is.v,m=2*Math.PI*c/(2*r),v=2*Math.PI*f/(2*r),y=-Math.PI/2;y+=this.r.v;var _=3===this.data.d?-1:1;for(this.v._length=0,i=0;i<r;i+=1){e=l?h:d,n=l?m:v;var w=(t=l?c:f)*Math.cos(y),x=t*Math.sin(y),E=0===w&&0===x?0:x/Math.sqrt(w*w+x*x),S=0===w&&0===x?0:-w/Math.sqrt(w*w+x*x);w+=+this.p.v[0],x+=+this.p.v[1],this.v.setTripleAt(w,x,w-E*n*e*_,x-S*n*e*_,w+E*n*e*_,x+S*n*e*_,i,!0),l=!l,y+=o*_}},convertPolygonToPath:function(){var i,t=Math.floor(this.pt.v),e=2*Math.PI/t,n=this.or.v,r=this.os.v,o=2*Math.PI*n/(4*t),l=.5*-Math.PI,c=3===this.data.d?-1:1;for(l+=this.r.v,this.v._length=0,i=0;i<t;i+=1){var f=n*Math.cos(l),h=n*Math.sin(l),d=0===f&&0===h?0:h/Math.sqrt(f*f+h*h),m=0===f&&0===h?0:-f/Math.sqrt(f*f+h*h);f+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(f,h,f-d*o*r*c,h-m*o*r*c,f+d*o*r*c,h+m*o*r*c,i,!0),l+=e*c}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),v=function(){function t(t,data){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=data.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,data.p,1,0,this),this.s=PropertyFactory.getProp(t,data.s,1,0,this),this.r=PropertyFactory.getProp(t,data.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,o=bmMin(n,r,this.r.v),l=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-r+o,t+n,e-r+o,t+n,e-r+l,0,!0),this.v.setTripleAt(t+n,e+r-o,t+n,e+r-l,t+n,e+r-o,1,!0),0!==o?(this.v.setTripleAt(t+n-o,e+r,t+n-o,e+r,t+n-l,e+r,2,!0),this.v.setTripleAt(t-n+o,e+r,t-n+l,e+r,t-n+o,e+r,3,!0),this.v.setTripleAt(t-n,e+r-o,t-n,e+r-o,t-n,e+r-l,4,!0),this.v.setTripleAt(t-n,e-r+o,t-n,e-r+l,t-n,e-r+o,5,!0),this.v.setTripleAt(t-n+o,e-r,t-n+o,e-r,t-n+l,e-r,6,!0),this.v.setTripleAt(t+n-o,e-r,t+n-l,e-r,t+n-o,e-r,7,!0)):(this.v.setTripleAt(t-n,e+r,t-n+l,e+r,t-n,e+r,2),this.v.setTripleAt(t-n,e-r,t-n,e-r+l,t-n,e-r,3))):(this.v.setTripleAt(t+n,e-r+o,t+n,e-r+l,t+n,e-r+o,0,!0),0!==o?(this.v.setTripleAt(t+n-o,e-r,t+n-o,e-r,t+n-l,e-r,1,!0),this.v.setTripleAt(t-n+o,e-r,t-n+l,e-r,t-n+o,e-r,2,!0),this.v.setTripleAt(t-n,e-r+o,t-n,e-r+o,t-n,e-r+l,3,!0),this.v.setTripleAt(t-n,e+r-o,t-n,e+r-l,t-n,e+r-o,4,!0),this.v.setTripleAt(t-n+o,e+r,t-n+o,e+r,t-n+l,e+r,5,!0),this.v.setTripleAt(t+n-o,e+r,t+n-l,e+r,t+n-o,e+r,6,!0),this.v.setTripleAt(t+n,e+r-o,t+n,e+r-o,t+n,e+r-l,7,!0)):(this.v.setTripleAt(t-n,e-r,t-n+l,e-r,t-n,e-r,1,!0),this.v.setTripleAt(t-n,e+r,t-n,e+r-l,t-n,e+r,2,!0),this.v.setTripleAt(t+n,e+r,t+n-l,e+r,t+n,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}(),y={getShapeProp:function(t,data,e){var n;return 3===e||4===e?n=(3===e?data.pt:data.ks).k.length?new h(t,data,e):new c(t,data,e):5===e?n=new v(t,data):6===e?n=new d(t,data):7===e&&(n=new m(t,data)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return c},getKeyframedConstructorFunction:function(){return h}};return y}(),Matrix=function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function l(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function c(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(1,0,0,0,0,r,-o,0,0,o,r,0,0,0,0,1)}function f(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(r,0,o,0,0,1,0,0,-o,0,r,0,0,0,0,1)}function h(n){if(0===n)return this;var r=t(n),o=e(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function d(t,e){return this._t(1,e,t,1,0,0)}function m(t,e){return this.shear(n(t),n(e))}function v(r,o){var l=t(o),c=e(o);return this._t(l,c,0,0,-c,l,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(l,-c,0,0,c,l,0,0,0,0,1,0,0,0,0,1)}function y(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function _(a,b,t,e,n,r,g,o,i,l,c,f,h,d,m,p){return this.props[0]=a,this.props[1]=b,this.props[2]=t,this.props[3]=e,this.props[4]=n,this.props[5]=r,this.props[6]=g,this.props[7]=o,this.props[8]=i,this.props[9]=l,this.props[10]=c,this.props[11]=f,this.props[12]=h,this.props[13]=d,this.props[14]=m,this.props[15]=p,this}function w(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function x(t,e,n,r,o,l,c,h2,f,h,d,m,v,y,_,w){var x=this.props;if(1===t&&0===e&&0===n&&0===r&&0===o&&1===l&&0===c&&0===h2&&0===f&&0===h&&1===d&&0===m)return x[12]=x[12]*t+x[15]*v,x[13]=x[13]*l+x[15]*y,x[14]=x[14]*d+x[15]*_,x[15]*=w,this._identityCalculated=!1,this;var E=x[0],S=x[1],k=x[2],A=x[3],O=x[4],T=x[5],C=x[6],h1=x[7],P=x[8],I=x[9],M=x[10],j=x[11],D=x[12],F=x[13],R=x[14],L=x[15];return x[0]=E*t+S*o+k*f+A*v,x[1]=E*e+S*l+k*h+A*y,x[2]=E*n+S*c+k*d+A*_,x[3]=E*r+S*h2+k*m+A*w,x[4]=O*t+T*o+C*f+h1*v,x[5]=O*e+T*l+C*h+h1*y,x[6]=O*n+T*c+C*d+h1*_,x[7]=O*r+T*h2+C*m+h1*w,x[8]=P*t+I*o+M*f+j*v,x[9]=P*e+I*l+M*h+j*y,x[10]=P*n+I*c+M*d+j*_,x[11]=P*r+I*h2+M*m+j*w,x[12]=D*t+F*o+R*f+L*v,x[13]=D*e+F*l+R*h+L*y,x[14]=D*n+F*c+R*d+L*_,x[15]=D*r+F*h2+R*m+L*w,this._identityCalculated=!1,this}function E(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function S(t){for(var i=0;i<16;){if(t.props[i]!==this.props[i])return!1;i+=1}return!0}function k(t){var i;for(i=0;i<16;i+=1)t.props[i]=this.props[i];return t}function A(t){var i;for(i=0;i<16;i+=1)this.props[i]=t[i]}function O(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function T(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function C(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function P(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function I(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],a=this.props[5]/t,b=-this.props[1]/t,e=-this.props[4]/t,n=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,l=new Matrix;return l.props[0]=a,l.props[1]=b,l.props[4]=e,l.props[5]=n,l.props[12]=r,l.props[13]=o,l}function M(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function j(t){var i,e=t.length,n=[];for(i=0;i<e;i+=1)n[i]=M(t[i]);return n}function D(t,e,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=n[0],r[5]=n[1];else{var o=this.props[0],l=this.props[1],c=this.props[4],f=this.props[5],h=this.props[12],d=this.props[13];r[0]=t[0]*o+t[1]*c+h,r[1]=t[0]*l+t[1]*f+d,r[2]=e[0]*o+e[1]*c+h,r[3]=e[0]*l+e[1]*f+d,r[4]=n[0]*o+n[1]*c+h,r[5]=n[0]*l+n[1]*f+d}return r}function F(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function R(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function L(){for(var i=0,t=this.props,e="matrix3d(";i<16;)e+=r(1e4*t[i])/1e4,e+=15===i?")":",",i+=1;return e}function N(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function B(){var t=this.props;return"matrix("+N(t[0])+","+N(t[1])+","+N(t[4])+","+N(t[5])+","+N(t[12])+","+N(t[13])+")"}return function(){this.reset=o,this.rotate=l,this.rotateX=c,this.rotateY=f,this.rotateZ=h,this.skew=m,this.skewFromAxis=v,this.shear=d,this.scale=y,this.setTransform=_,this.translate=w,this.transform=x,this.applyToPoint=O,this.applyToX=T,this.applyToY=C,this.applyToZ=P,this.applyToPointArray=F,this.applyToTriplePoints=D,this.applyToPointStringified=R,this.toCSS=L,this.to2dCSS=B,this.clone=k,this.cloneFromProps=A,this.equals=S,this.inversePoints=j,this.inversePoint=M,this.getInverseMatrix=I,this._t=this.transform,this.isIdentity=E,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.3";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"===_typeof$3(exports)&&void 0!==module||__webpack_require__(503)||(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,n){e[t]||(e[t]=n)},t.getModifier=function(t,n,data){return new e[t](n,data)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(data){if(!this.closed){data.sh.container.addDynamicProperty(data.sh);var t={shape:data.sh,data:data,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&data.setAsAnimated()}},ShapeModifier.prototype.init=function(t,data){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,data),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,data){this.s=PropertyFactory.getProp(t,data.s,0,.01,this),this.e=PropertyFactory.getProp(t,data.e,0,.01,this),this.o=PropertyFactory.getProp(t,data.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=data.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(s,t,e,n,r){var o=[];t<=1?o.push({s:s,e:t}):s>=1?o.push({s:s-1,e:t-1}):(o.push({s:s,e:1}),o.push({s:0,e:t-1}));var i,l,c=[],f=o.length;for(i=0;i<f;i+=1){var h,d;(l=o[i]).e*r<n||l.s*r>n+e||(h=l.s*r<=n?0:(l.s*r-n)/e,d=l.e*r>=n+e?1:(l.e*r-n)/e,c.push([h,d]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(t){var i,e=t.length;for(i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var s,e,n,i;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(s=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(e=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var o=s;s=e,e=o}s=1e-4*Math.round(1e4*s),e=1e-4*Math.round(1e4*e),this.sValue=s,this.eValue=e}else s=this.sValue,e=this.eValue;var l,c,f,h,d,m=this.shapes.length,v=0;if(e===s)for(i=0;i<m;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===e&&0===s||0===e&&1===s){if(this._mdf)for(i=0;i<m;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var y,_,w=[];for(i=0;i<m;i+=1)if((y=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(c=(n=y.shape.paths)._length,d=0,!y.shape._mdf&&y.pathsData.length)d=y.totalShapeLength;else{for(f=this.releasePathsData(y.pathsData),l=0;l<c;l+=1)h=bez.getSegmentsLength(n.shapes[l]),f.push(h),d+=h.totalLength;y.totalShapeLength=d,y.pathsData=f}v+=d,y.shape._mdf=!0}else y.shape.paths=y.localShapeCollection;var x,E=s,S=e,k=0;for(i=m-1;i>=0;i-=1)if((y=this.shapes[i]).shape._mdf){for((_=y.localShapeCollection).releaseShapes(),2===this.m&&m>1?(x=this.calculateShapeEdges(s,e,y.totalShapeLength,k,v),k+=y.totalShapeLength):x=[[E,S]],c=x.length,l=0;l<c;l+=1){E=x[l][0],S=x[l][1],w.length=0,S<=1?w.push({s:y.totalShapeLength*E,e:y.totalShapeLength*S}):E>=1?w.push({s:y.totalShapeLength*(E-1),e:y.totalShapeLength*(S-1)}):(w.push({s:y.totalShapeLength*E,e:y.totalShapeLength}),w.push({s:0,e:y.totalShapeLength*(S-1)}));var A=this.addShapes(y,w[0]);if(w[0].s!==w[0].e){if(w.length>1)if(y.shape.paths.shapes[y.shape.paths._length-1].c){var O=A.pop();this.addPaths(A,_),A=this.addShapes(y,w[1],O)}else this.addPaths(A,_),A=this.addShapes(y,w[1]);this.addPaths(A,_)}}y.shape.paths=_}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,n,r,o,l,c){o.setXYAt(e[0],e[1],"o",l),o.setXYAt(n[0],n[1],"i",l+1),c&&o.setXYAt(t[0],t[1],"v",l),o.setXYAt(r[0],r[1],"v",l+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),r&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},TrimModifier.prototype.addShapes=function(t,e,n){var i,r,o,l,c,f,h,d,m=t.pathsData,v=t.shape.paths.shapes,y=t.shape.paths._length,_=0,w=[],x=!0;for(n?(c=n._length,d=n._length):(n=shapePool.newElement(),c=0,d=0),w.push(n),i=0;i<y;i+=1){for(f=m[i].lengths,n.c=v[i].c,o=v[i].c?f.length:f.length+1,r=1;r<o;r+=1)if(_+(l=f[r-1]).addedLength<e.s)_+=l.addedLength,n.c=!1;else{if(_>e.e){n.c=!1;break}e.s<=_&&e.e>=_+l.addedLength?(this.addSegment(v[i].v[r-1],v[i].o[r-1],v[i].i[r],v[i].v[r],n,c,x),x=!1):(h=bez.getNewSegment(v[i].v[r-1],v[i].v[r],v[i].o[r-1],v[i].i[r],(e.s-_)/l.addedLength,(e.e-_)/l.addedLength,f[r-1]),this.addSegmentFromArray(h,n,c,x),x=!1,n.c=!1),_+=l.addedLength,c+=1}if(v[i].c&&f.length){if(l=f[r-1],_<=e.e){var E=f[r-1].addedLength;e.s<=_&&e.e>=_+E?(this.addSegment(v[i].v[r-1],v[i].o[r-1],v[i].i[0],v[i].v[0],n,c,x),x=!1):(h=bez.getNewSegment(v[i].v[r-1],v[i].v[0],v[i].o[r-1],v[i].i[0],(e.s-_)/E,(e.e-_)/E,f[r-1]),this.addSegmentFromArray(h,n,c,x),x=!1,n.c=!1)}else n.c=!1;_+=l.addedLength,c+=1}if(n._length&&(n.setXYAt(n.v[d][0],n.v[d][1],"i",d),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),_>e.e)break;i<y-1&&(n=shapePool.newElement(),x=!0,w.push(n),c=0)}return w},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,data.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(path,t){var e=t/100,n=[0,0],r=path._length,i=0;for(i=0;i<r;i+=1)n[0]+=path.v[i][0],n[1]+=path.v[i][1];n[0]/=r,n[1]/=r;var o,l,c,f,h,d,m=shapePool.newElement();for(m.c=path.c,i=0;i<r;i+=1)o=path.v[i][0]+(n[0]-path.v[i][0])*e,l=path.v[i][1]+(n[1]-path.v[i][1])*e,c=path.o[i][0]+(n[0]-path.o[i][0])*-e,f=path.o[i][1]+(n[1]-path.o[i][1])*-e,h=path.i[i][0]+(n[0]-path.i[i][0])*-e,d=path.i[i][1]+(n[1]-path.i[i][1])*-e,m.setTripleAt(o,l,c,f,h,d,i);return m},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,n,r,o,l,c=this.shapes.length,f=this.amount.v;if(0!==f)for(i=0;i<c;i+=1){if(l=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)l.addShape(this.processPath(e[n],f));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,data,e){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=data,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(e||t),data.p&&data.p.s?(this.px=PropertyFactory.getProp(t,data.p.x,0,0,this),this.py=PropertyFactory.getProp(t,data.p.y,0,0,this),data.p.z&&(this.pz=PropertyFactory.getProp(t,data.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,data.p||{k:[0,0,0]},1,0,this),data.rx){if(this.rx=PropertyFactory.getProp(t,data.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,data.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,data.rz,0,degToRads,this),data.or.k[0].ti){var i,n=data.or.k.length;for(i=0;i<n;i+=1)data.or.k[i].to=null,data.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,data.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,data.r||{k:0},0,degToRads,this);data.sk&&(this.sk=PropertyFactory.getProp(t,data.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,data.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,data.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,data.s||{k:[100,100,100]},1,.01,this),data.o?this.o=PropertyFactory.getProp(t,data.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,o;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],o=[];var l=this.px,c=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(r[0]=l.getValueAtTime((l.keyframes[0].t+.01)/n,0),r[1]=c.getValueAtTime((c.keyframes[0].t+.01)/n,0),o[0]=l.getValueAtTime(l.keyframes[0].t/n,0),o[1]=c.getValueAtTime(c.keyframes[0].t/n,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(r[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/n,0),r[1]=c.getValueAtTime(c.keyframes[c.keyframes.length-1].t/n,0),o[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/n,0),o[1]=c.getValueAtTime((c.keyframes[c.keyframes.length-1].t-.01)/n,0)):(r=[l.pv,c.pv],o[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/n,l.offsetTime),o[1]=c.getValueAtTime((c._caching.lastFrame+c.offsetTime-.01)/n,c.offsetTime))}else r=o=t;this.v.rotate(-Math.atan2(r[1]-o[1],r[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,data,n){return new e(t,data,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",o=e.length,i=0;i<o;i+=1)switch(e[i].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:t.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,data.c,0,null,this),this.o=PropertyFactory.getProp(t,data.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,data.tr,this),this.so=PropertyFactory.getProp(t,data.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,data.tr.eo,0,.01,this),this.data=data,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,n,r,o,l){var c=l?-1:1,f=r.s.v[0]+(1-r.s.v[0])*(1-o),h=r.s.v[1]+(1-r.s.v[1])*(1-o);t.translate(r.p.v[0]*c*o,r.p.v[1]*c*o,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*c*o),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(l?1/f:f,l?1/h:h),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,n,i,r,o,l=!1;if(this._mdf||t){var c,f=Math.ceil(this.c.v);if(this._groups.length<f){for(;this._groups.length<f;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),l=!0}for(o=0,i=0;i<=this._groups.length-1;i+=1){if(c=o<f,this._groups[i]._render=c,this.changeGroupRender(this._groups[i].it,c),!c){var d=this.elemsData[i].it,m=d[d.length-1];0!==m.transform.op.v?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}o+=1}this._currentCopies=f;var v=this.o.v,y=v%1,_=v>0?Math.floor(v):Math.ceil(v),w=this.pMatrix.props,x=this.rMatrix.props,E=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S,k,A=0;if(v>0){for(;A<_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),A+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),A+=y)}else if(v<0){for(;A>_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),A-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),A-=y)}for(i=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,o=this._currentCopies;o;){if(k=(n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==A){for((0!==i&&1===r||i!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),S=0;S<k;S+=1)n[S]=this.matrix.props[S];this.matrix.reset()}else for(this.matrix.reset(),S=0;S<k;S+=1)n[S]=this.matrix.props[S];A+=1,o-=1,i+=r}}else for(o=this._currentCopies,i=0,r=1;o;)n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,i+=r;return l},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,data){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,data.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(path,t){var i,e=shapePool.newElement();e.c=path.c;var n,r,o,l,c,f,h,d,m,v,y,_,w=path._length,x=0;for(i=0;i<w;i+=1)n=path.v[i],o=path.o[i],r=path.i[i],n[0]===o[0]&&n[1]===o[1]&&n[0]===r[0]&&n[1]===r[1]?0!==i&&i!==w-1||path.c?(l=0===i?path.v[w-1]:path.v[i-1],f=(c=Math.sqrt(Math.pow(n[0]-l[0],2)+Math.pow(n[1]-l[1],2)))?Math.min(c/2,t)/c:0,h=y=n[0]+(l[0]-n[0])*f,d=_=n[1]-(n[1]-l[1])*f,m=h-(h-n[0])*roundCorner,v=d-(d-n[1])*roundCorner,e.setTripleAt(h,d,m,v,y,_,x),x+=1,l=i===w-1?path.v[0]:path.v[i+1],f=(c=Math.sqrt(Math.pow(n[0]-l[0],2)+Math.pow(n[1]-l[1],2)))?Math.min(c/2,t)/c:0,h=m=n[0]+(l[0]-n[0])*f,d=v=n[1]+(l[1]-n[1])*f,y=h-(h-n[0])*roundCorner,_=d-(d-n[1])*roundCorner,e.setTripleAt(h,d,m,v,y,_,x),x+=1):(e.setTripleAt(n[0],n[1],o[0],o[1],r[0],r[1],x),x+=1):(e.setTripleAt(path.v[i][0],path.v[i][1],path.o[i][0],path.o[i][1],path.i[i][0],path.i[i][1],x),x+=1);return e},RoundCornersModifier.prototype.processShapes=function(t){var e,i,n,r,o,l,c=this.shapes.length,f=this.rd.v;if(0!==f)for(i=0;i<c;i+=1){if(l=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)l.addShape(this.processPath(e[n],f));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function o(t,e){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var o=r.offsetWidth;return r.style.fontFamily=function(t){var i,e=t.split(","),n=e.length,r=[];for(i=0;i<n;i+=1)"sans-serif"!==e[i]&&"monospace"!==e[i]&&r.push(e[i]);return r.join(",")}(t)+", "+e,{node:r,w:o,parent:n}}function l(t,e){var n,r=document.body&&e?"svg":"canvas",o=getFontProperties(t);if("svg"===r){var l=createNS("text");l.style.fontSize="100px",l.setAttribute("font-family",t.fFamily),l.setAttribute("font-style",o.style),l.setAttribute("font-weight",o.weight),l.textContent="1",t.fClass?(l.style.fontFamily="inherit",l.setAttribute("class",t.fClass)):l.style.fontFamily=t.fFamily,e.appendChild(l),n=l}else{var c=new OffscreenCanvas(500,500).getContext("2d");c.font=o.style+" "+o.weight+" 100px "+t.fFamily,n=c}return{measureText:function(text){return"svg"===r?(n.textContent=text,n.getComputedTextLength()):n.measureText(text).width}}}var c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};c.isModifier=function(t,e){var r=t.toString(16)+e.toString(16);return-1!==n.indexOf(r)},c.isZeroWidthJoiner=function(t,e){return e?t===r[0]&&e===r[1]:t===r[1]},c.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var f={addChars:function(t){if(t){var i;this.chars||(this.chars=[]);var e,n,r=t.length,o=this.chars.length;for(i=0;i<r;i+=1){for(e=0,n=!1;e<o;)this.chars[e].style===t[i].style&&this.chars[e].fFamily===t[i].fFamily&&this.chars[e].ch===t[i].ch&&(n=!0),e+=1;n||(this.chars.push(t[i]),o+=1)}}},addFonts:function(t,defs){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(data){data.helper=l(data),data.cache={}})),void(this.fonts=t.list);var i,e=t.list,n=e.length,r=n;for(i=0;i<n;i+=1){var c,f,h=!0;if(e[i].loaded=!1,e[i].monoCase=o(e[i].fFamily,"monospace"),e[i].sansCase=o(e[i].fFamily,"sans-serif"),e[i].fPath){if("p"===e[i].fOrigin||3===e[i].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+e[i].fFamily+'"], style[f-origin="3"][f-family="'+e[i].fFamily+'"]')).length>0&&(h=!1),h){var s=createTag("style");s.setAttribute("f-forigin",e[i].fOrigin),s.setAttribute("f-origin",e[i].origin),s.setAttribute("f-family",e[i].fFamily),s.type="text/css",s.innerText="@font-face {font-family: "+e[i].fFamily+"; font-style: normal; src: url('"+e[i].fPath+"');}",defs.appendChild(s)}}else if("g"===e[i].fOrigin||1===e[i].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),f=0;f<c.length;f+=1)-1!==c[f].href.indexOf(e[i].fPath)&&(h=!1);if(h){var d=createTag("link");d.setAttribute("f-forigin",e[i].fOrigin),d.setAttribute("f-origin",e[i].origin),d.type="text/css",d.rel="stylesheet",d.href=e[i].fPath,document.body.appendChild(d)}}else if("t"===e[i].fOrigin||2===e[i].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),f=0;f<c.length;f+=1)e[i].fPath===c[f].src&&(h=!1);if(h){var m=createTag("link");m.setAttribute("f-forigin",e[i].fOrigin),m.setAttribute("f-origin",e[i].origin),m.setAttribute("rel","stylesheet"),m.setAttribute("href",e[i].fPath),defs.appendChild(m)}}}else e[i].loaded=!0,r-=1;e[i].helper=l(e[i],defs),e[i].cache={},this.fonts.push(e[i])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,style,n){for(var i=0,r=this.chars.length;i<r;){if(this.chars[i].ch===e&&this.chars[i].style===style&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,style,n)),t},getFontByName:function(t){for(var i=0,e=this.fonts.length;i<e;){if(this.fonts[i].fName===t)return this.fonts[i];i+=1}return this.fonts[0]},measureText:function(t,e,n){var r=this.getFontByName(e),o=t.charCodeAt(0);if(!r.cache[o+1]){var l=r.helper;if(" "===t){var c=l.measureText("|"+t+"|"),f=l.measureText("||");r.cache[o+1]=(c-f)/100}else r.cache[o+1]=l.measureText(t)/100}return r.cache[o+1]*n},checkLoadedFonts:function(){var i,t,e,n=this.fonts.length,r=n;for(i=0;i<n;i+=1)this.fonts[i].loaded?r-=1:"n"===this.fonts[i].fOrigin||0===this.fonts[i].origin?this.fonts[i].loaded=!0:(t=this.fonts[i].monoCase.node,e=this.fonts[i].monoCase.w,t.offsetWidth!==e?(r-=1,this.fonts[i].loaded=!0):(t=this.fonts[i].sansCase.node,e=this.fonts[i].sansCase.w,t.offsetWidth!==e&&(r-=1,this.fonts[i].loaded=!0)),this.fonts[i].loaded&&(this.fonts[i].sansCase.parent.parentNode.removeChild(this.fonts[i].sansCase.parent),this.fonts[i].monoCase.parent.parentNode.removeChild(this.fonts[i].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=f,c}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(component){-1===this.renderableComponents.indexOf(component)&&this.renderableComponents.push(component)},removeRenderableComponent:function(component){-1!==this.renderableComponents.indexOf(component)&&this.renderableComponents.splice(this.renderableComponents.indexOf(component),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,t=this.renderableComponents.length;for(i=0;i<t;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function t(mask,data){this._mask=mask,this._data=data}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,n=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)n[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return n[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function n(t,e,n){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var o="";o="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var l="unidimensional"===n?new Number(o):Object.assign({},o);return l.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,l.value="unidimensional"===n?o[0]:o,l},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(o){return o?"unidimensional"===o.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,o=e.pv*r,l=new Number(o);return l.value=o,n(l,e,"unidimensional"),function(){return e.k&&e.getValue(),o=e.v*r,l.value!==o&&((l=new Number(o)).value=o,n(l,e,"unidimensional")),l}}(o):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,o=t.data&&t.data.l||t.pv.length,l=createTypedArray("float32",o),c=createTypedArray("float32",o);return l.value=c,n(l,t,"multidimensional"),function(){t.k&&t.getValue();for(var i=0;i<o;i+=1)c[i]=t.v[i]*r,l[i]=c[i];return l}}(o):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var n,r,o,l;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?l=ExpressionPropertyInterface(t.p):(n=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(o=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?l():[n(),r(),o?o():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(time){var t=new Matrix;return void 0!==time?this._elem.finalTransform.mProp.getValueAtTime(time).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function e(t,time){var e=this.getMatrix(time);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function n(t,time){var e=this.getMatrix(time);return this.applyPoint(e,t)}function r(t,time){var e=this.getMatrix(time);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function o(t,time){var e=this.getMatrix(time);return this.invertPoint(e,t)}function l(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function c(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function f(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(d){var m;function v(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return v.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return m;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return v.effect;case"ADBE Text Properties":return v.textInterface;default:return null}}v.getMatrix=t,v.invertPoint=c,v.applyPoint=l,v.toWorld=n,v.toWorldVec=e,v.fromWorld=o,v.fromWorldVec=r,v.toComp=n,v.fromComp=f,v.sampleImage=h,v.sourceRectAtTime=d.sourceRectAtTime.bind(d),v._elem=d;var y=getDescriptor(m=TransformExpressionInterface(d.finalTransform.mProp),"anchorPoint");return Object.defineProperties(v,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(m,"rotation"),scale:getDescriptor(m,"scale"),position:getDescriptor(m,"position"),opacity:getDescriptor(m,"opacity"),anchorPoint:y,anchor_point:y,transform:{get:function(){return m}},active:{get:function(){return d.isInRange}}}),v.startTime=d.data.st,v.index=d.data.ind,v.source=d.data.refId,v.height=0===d.data.ty?d.data.h:100,v.width=0===d.data.ty?d.data.w:100,v.inPoint=d.data.ip/d.comp.globalData.frameRate,v.outPoint=d.data.op/d.comp.globalData.frameRate,v._name=d.data.nm,v.registerMaskInterface=function(t){v.mask=new MaskManagerInterface(t,d)},v.registerEffectsInterface=function(t){v.effect=t},v}}(),propertyGroupFactory=function(t,e){return function(n){return(n=void 0===n?1:n)<=0?t:e(n-1)}},PropertyInterface=function(t,e){var n={_name:t};return function(t){return(t=void 0===t?1:t)<=0?n:e(t-1)}},EffectsExpressionInterface=function(){function t(data,n,r,o){function l(t){for(var e=data.ef,i=0,n=e.length;i<n;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?f[i]:f[i]();i+=1}throw new Error}var i,c=propertyGroupFactory(l,r),f=[],h=data.ef.length;for(i=0;i<h;i+=1)5===data.ef[i].ty?f.push(t(data.ef[i],n.effectElements[i],n.effectElements[i].propertyGroup,o)):f.push(e(n.effectElements[i],data.ef[i].ty,o,c));return"ADBE Color Control"===data.mn&&Object.defineProperty(l,"color",{get:function(){return f[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return data.np}},_name:{value:data.nm},propertyGroup:{value:c}}),l.enabled=0!==data.en,l.active=l.enabled,l}function e(element,t,e,n){var r=ExpressionPropertyInterface(element.p);return element.p.setGroupProperty&&element.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?e.comp.compInterface(element.p.v):r()}}return{createEffectsInterface:function(e,n){if(e.effectsManager){var i,r=[],o=e.data.ef,l=e.effectsManager.effectElements.length;for(i=0;i<l;i+=1)r.push(t(o[i],e.effectsManager.effectElements[i],n,e));var c=e.data.ef||[],f=function(t){for(i=0,l=c.length;i<l;){if(t===c[i].nm||t===c[i].mn||t===c[i].ix)return r[i];i+=1}return null};return Object.defineProperty(f,"numProperties",{get:function(){return c.length}}),f}return null}}}(),CompExpressionInterface=function(t){function e(e){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},ShapePathInterface=function(t,view,e){var n=view.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var o=propertyGroupFactory(r,e);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:e}}),r},ShapeExpressionInterface=function(){function t(t,view,c){var i,y=[],_=t?t.length:0;for(i=0;i<_;i+=1)"gr"===t[i].ty?y.push(e(t[i],view[i],c)):"fl"===t[i].ty?y.push(n(t[i],view[i],c)):"st"===t[i].ty?y.push(o(t[i],view[i],c)):"tm"===t[i].ty?y.push(l(t[i],view[i],c)):"tr"===t[i].ty||("el"===t[i].ty?y.push(f(t[i],view[i],c)):"sr"===t[i].ty?y.push(h(t[i],view[i],c)):"sh"===t[i].ty?y.push(ShapePathInterface(t[i],view[i],c)):"rc"===t[i].ty?y.push(d(t[i],view[i],c)):"rd"===t[i].ty?y.push(m(t[i],view[i],c)):"rp"===t[i].ty?y.push(v(t[i],view[i],c)):"gf"===t[i].ty?y.push(r(t[i],view[i],c)):y.push((t[i],view[i],function(){return null})));return y}function e(e,view,n){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,n);var content=function(e,view,n){var r,o=function(t){for(var i=0,e=r.length;i<e;){if(r[i]._name===t||r[i].mn===t||r[i].propertyIndex===t||r[i].ix===t||r[i].ind===t)return r[i];i+=1}return"number"==typeof t?r[t-1]:null};o.propertyGroup=propertyGroupFactory(o,n),r=t(e.it,view.it,o.propertyGroup),o.numProperties=r.length;var l=c(e.it[e.it.length-1],view.it[view.it.length-1],o.propertyGroup);return o.transform=l,o.propertyIndex=e.cix,o._name=e.nm,o}(e,view,r.propertyGroup),o=c(e.it[e.it.length-1],view.it[view.it.length-1],r.propertyGroup);return r.content=content,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return e.nm}}),r.numProperties=e.np,r.propertyIndex=e.ix,r.nm=e.nm,r.mn=e.mn,r}function n(t,view,e){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(view.c)},opacity:{get:ExpressionPropertyInterface(view.o)},_name:{value:t.nm},mn:{value:t.mn}}),view.c.setGroupProperty(PropertyInterface("Color",e)),view.o.setGroupProperty(PropertyInterface("Opacity",e)),n}function r(t,view,e){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(view.s)},endPoint:{get:ExpressionPropertyInterface(view.e)},opacity:{get:ExpressionPropertyInterface(view.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),view.s.setGroupProperty(PropertyInterface("Start Point",e)),view.e.setGroupProperty(PropertyInterface("End Point",e)),view.o.setGroupProperty(PropertyInterface("Opacity",e)),n}function o(t,view,e){var i,n=propertyGroupFactory(f,e),r=propertyGroupFactory(c,n);function o(i){Object.defineProperty(c,t.d[i].nm,{get:ExpressionPropertyInterface(view.d.dataProps[i].p)})}var l=t.d?t.d.length:0,c={};for(i=0;i<l;i+=1)o(i),view.d.dataProps[i].p.setGroupProperty(r);function f(t){return"Color"===t||"color"===t?f.color:"Opacity"===t||"opacity"===t?f.opacity:"Stroke Width"===t||"stroke width"===t?f.strokeWidth:null}return Object.defineProperties(f,{color:{get:ExpressionPropertyInterface(view.c)},opacity:{get:ExpressionPropertyInterface(view.o)},strokeWidth:{get:ExpressionPropertyInterface(view.w)},dash:{get:function(){return c}},_name:{value:t.nm},mn:{value:t.mn}}),view.c.setGroupProperty(PropertyInterface("Color",n)),view.o.setGroupProperty(PropertyInterface("Opacity",n)),view.w.setGroupProperty(PropertyInterface("Stroke Width",n)),f}function l(t,view,e){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var r=propertyGroupFactory(n,e);return n.propertyIndex=t.ix,view.s.setGroupProperty(PropertyInterface("Start",r)),view.e.setGroupProperty(PropertyInterface("End",r)),view.o.setGroupProperty(PropertyInterface("Offset",r)),n.propertyIndex=t.ix,n.propertyGroup=e,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(view.s)},end:{get:ExpressionPropertyInterface(view.e)},offset:{get:ExpressionPropertyInterface(view.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,view,e){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var r=propertyGroupFactory(n,e);return view.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),view.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),view.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),view.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),view.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),view.transform.mProps.sk&&(view.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),view.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),view.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(view.transform.mProps.o)},position:{get:ExpressionPropertyInterface(view.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(view.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(view.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(view.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(view.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(view.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=e,n}function f(t,view,e){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var r=propertyGroupFactory(n,e);n.propertyIndex=t.ix;var o="tm"===view.sh.ty?view.sh.prop:view.sh;return o.s.setGroupProperty(PropertyInterface("Size",r)),o.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function h(t,view,e){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var r=propertyGroupFactory(n,e),o="tm"===view.sh.ty?view.sh.prop:view.sh;return n.propertyIndex=t.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",r)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),o.pt.setGroupProperty(PropertyInterface("Points",r)),o.p.setGroupProperty(PropertyInterface("Position",r)),o.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function d(t,view,e){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var r=propertyGroupFactory(n,e),o="tm"===view.sh.ty?view.sh.prop:view.sh;return n.propertyIndex=t.ix,o.p.setGroupProperty(PropertyInterface("Position",r)),o.s.setGroupProperty(PropertyInterface("Size",r)),o.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function m(t,view,e){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var r=propertyGroupFactory(n,e),o=view;return n.propertyIndex=t.ix,o.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function v(t,view,e){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var r=propertyGroupFactory(n,e),o=view;return n.propertyIndex=t.ix,o.c.setGroupProperty(PropertyInterface("Copies",r)),o.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,view,n){var r;function o(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:r[t-1];for(var i=0,e=r.length;i<e;){if(r[i]._name===t)return r[i];i+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),r=t(e,view,o.propertyGroup),o.numProperties=r.length,o._name="Contents",o}}(),TextExpressionInterface=function(t){var e,n;function r(t){return"ADBE Text Document"===t?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return r!==e&&(t.textProperty.currentData.t=e,(n=new String(r)).value=r||new String(r)),n}}),r},getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function AngleEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function ColorEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,1,0,e)}function PointEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,1,0,e)}function LayerIndexEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function MaskIndexEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function CheckboxEffect(data,t,e){this.p=PropertyFactory.getProp(t,data.v,0,0,e)}function NoValueEffect(){this.p={}}function EffectsManager(data,element){var i,t=data.ef||[];this.effectElements=[];var e,n=t.length;for(i=0;i<n;i+=1)e=new GroupEffect(t[i],element),this.effectElements.push(e)}function GroupEffect(data,element){this.init(data,element)}function BaseElement(){}function FrameElement(){}function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(data,element){var i;this.data=data,this.effectElements=[],this.initDynamicPropertyContainer(element);var t,e=this.data.ef.length,n=this.data.ef;for(i=0;i<e;i+=1){switch(t=null,n[i].ty){case 0:t=new SliderEffect(n[i],element,this);break;case 1:t=new AngleEffect(n[i],element,this);break;case 2:t=new ColorEffect(n[i],element,this);break;case 3:t=new PointEffect(n[i],element,this);break;case 4:case 7:t=new CheckboxEffect(n[i],element,this);break;case 10:t=new LayerIndexEffect(n[i],element,this);break;case 11:t=new MaskIndexEffect(n[i],element,this);break;case 5:t=new EffectsManager(n[i],element,this);break;default:t=new NoValueEffect(n[i],element,this)}t&&this.effectElements.push(t)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,t=this.data.masksProperties.length;i<t;){if("n"!==this.data.masksProperties[i].mode&&!1!==this.data.masksProperties[i].cl)return!0;i+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(data,t,e){this.globalData=t,this.comp=e,this.data=data,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}};var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",n=t.getFootageData();function r(t){if(n[t])return e=t,"object"===_typeof$2(n=n[t])?r:n;var o=t.indexOf(e);if(-1!==o){var l=parseInt(t.substr(o+e.length),10);return"object"===_typeof$2(n=n[l])?r:n}return""}return function(){return e="",n=t.getFootageData(),r}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory;function FootageElement(data,t,e){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(data.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(data,t,e)}function AudioElement(data,t,e){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(data.refId),this.initBaseData(data,t,e),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,data.au&&data.au.lv?data.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(data,element,t){this.data=data,this.element=element,this.globalData=t,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,path,defs=this.globalData.defs,e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(e),this.solidPath="";var n,r,rect,o,l,c,f=this.masksProperties,h=0,d=[],m=createElementID(),v="clipPath",y="clip-path";for(i=0;i<e;i+=1)if(("a"!==f[i].mode&&"n"!==f[i].mode||f[i].inv||100!==f[i].o.k||f[i].o.x)&&(v="mask",y="mask"),"s"!==f[i].mode&&"i"!==f[i].mode||0!==h?rect=null:((rect=createNS("rect")).setAttribute("fill","#ffffff"),rect.setAttribute("width",this.element.comp.data.w||0),rect.setAttribute("height",this.element.comp.data.h||0),d.push(rect)),path=createNS("path"),"n"===f[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,f[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[i],3),elem:path,lastPath:""},defs.appendChild(path);else{var _;if(h+=1,path.setAttribute("fill","s"===f[i].mode?"#000000":"#ffffff"),path.setAttribute("clip-rule","nonzero"),0!==f[i].x.k?(v="mask",y="mask",c=PropertyFactory.getProp(this.element,f[i].x,0,null,this.element),_=createElementID(),(o=createNS("filter")).setAttribute("id",_),(l=createNS("feMorphology")).setAttribute("operator","erode"),l.setAttribute("in","SourceGraphic"),l.setAttribute("radius","0"),o.appendChild(l),defs.appendChild(o),path.setAttribute("stroke","s"===f[i].mode?"#000000":"#ffffff")):(l=null,c=null),this.storedData[i]={elem:path,x:c,expan:l,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===f[i].mode){r=d.length;var g=createNS("g");for(n=0;n<r;n+=1)g.appendChild(d[n]);var mask=createNS("mask");mask.setAttribute("mask-type","alpha"),mask.setAttribute("id",m+"_"+h),mask.appendChild(path),defs.appendChild(mask),g.setAttribute("mask","url("+getLocationHref()+"#"+m+"_"+h+")"),d.length=0,d.push(g)}else d.push(path);f[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:path,lastPath:"",op:PropertyFactory.getProp(this.element,f[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[i],3),invRect:rect},this.viewData[i].prop.k||this.drawPath(f[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(v),e=d.length,i=0;i<e;i+=1)this.maskElement.appendChild(d[i]);h>0&&(this.maskElement.setAttribute("id",m),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+m+")"),defs.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var i,data,e=this.layers.length;for(this.completeLayers=!0,i=e-1;i>=0;i-=1)this.elements[i]||(data=this.layers[i]).ip-data.st<=t-this.layers[i].st&&data.op-data.st>t-this.layers[i].st&&this.buildItem(i),this.completeLayers=!!this.elements[i]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(data){return new AudioElement(data,this.globalData,this)},BaseRenderer.prototype.createFootage=function(data){return new FootageElement(data,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var i,t=this.layers.length;for(i=0;i<t;i+=1)this.buildItem(i);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var i;this.completeLayers=!1;var e,n=t.length,r=this.layers.length;for(i=0;i<n;i+=1)for(e=0;e<r;){if(this.layers[e].id===t[i].id){this.layers[e]=t[i];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(element,t,e){for(var n=this.elements,r=this.layers,i=0,o=r.length;i<o;)r[i].ind==t&&(n[i]&&!0!==n[i]?(e.push(n[i]),n[i].setAsParent(),void 0!==r[i].parent?this.buildElementParenting(element,r[i].parent,e):element.setHierarchy(e)):(this.buildItem(i),this.addPendingElement(element))),i+=1},BaseRenderer.prototype.addPendingElement=function(element){this.pendingElements.push(element)},BaseRenderer.prototype.searchExtraCompositions=function(t){var i,e=t.length;for(i=0;i<e;i+=1)if(t[i].xt){var n=this.createComp(t[i]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementByPath=function(path){var element,t=path.shift();if("number"==typeof t)element=this.elements[t];else{var i,e=this.elements.length;for(i=0;i<e;i+=1)if(this.elements[i].data.nm===t){element=this.elements[i];break}}return 0===path.length?element:element.getElementByPath(path)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<n;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,n=!0,r=this.comp;n;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):n=!1;var o,l=e.length;for(i=0;i<l;i+=1)o=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var i,e=this.element.finalTransform.mat,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),"n"!==this.masksProperties[i].mode&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var r=this.storedData[i].expan;this.storedData[i].x.v<0?("erode"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),r.setAttribute("radius",-this.storedData[i].x.v)):("dilate"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",2*this.storedData[i].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var path="M0,0 ";return path+=" h"+this.globalData.compSize.w,path+=" v"+this.globalData.compSize.h,path+=" h-"+this.globalData.compSize.w,path+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,n){var i,r,o=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,i=1;i<r;i+=1)o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&r>1&&(o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==o){var l="";n.elem&&(e.c&&(l=t.inv?this.solidPath+o:o),n.elem.setAttribute("d",l)),n.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var n=createNS("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}();function SVGTintFilter(filter,t){this.filterManager=t;var e=createNS("feColorMatrix");if(e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),filter.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result","f2"),filter.appendChild(e),this.matrixFilter=e,100!==t.effectElements[2].p.v||t.effectElements[2].p.k){var n,r=createNS("feMerge");filter.appendChild(r),(n=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),r.appendChild(n),(n=createNS("feMergeNode")).setAttribute("in","f2"),r.appendChild(n)}}function SVGFillFilter(filter,t){this.filterManager=t;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),filter.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(filter,t){this.filterManager=t;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),filter.appendChild(e);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),filter.appendChild(n),this.matrixFilter=n;var r=createNS("feFuncR");r.setAttribute("type","table"),n.appendChild(r),this.feFuncR=r;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l}function SVGProLevelsFilter(filter,t){this.filterManager=t;var e=this.filterManager.effectElements,n=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),filter.appendChild(n),n=createNS("feComponentTransfer")),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&(n.setAttribute("color-interpolation-filters","sRGB"),filter.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(filter,t){var e=t.container.globalData.renderConfig.filterSize;filter.setAttribute("x",e.x),filter.setAttribute("y",e.y),filter.setAttribute("width",e.width),filter.setAttribute("height",e.height),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("in","SourceAlpha"),n.setAttribute("result","drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,filter.appendChild(n);var r=createNS("feOffset");r.setAttribute("dx","25"),r.setAttribute("dy","0"),r.setAttribute("in","drop_shadow_1"),r.setAttribute("result","drop_shadow_2"),this.feOffset=r,filter.appendChild(r);var o=createNS("feFlood");o.setAttribute("flood-color","#00ff00"),o.setAttribute("flood-opacity","1"),o.setAttribute("result","drop_shadow_3"),this.feFlood=o,filter.appendChild(o);var l=createNS("feComposite");l.setAttribute("in","drop_shadow_3"),l.setAttribute("in2","drop_shadow_2"),l.setAttribute("operator","in"),l.setAttribute("result","drop_shadow_4"),filter.appendChild(l);var c,f=createNS("feMerge");filter.appendChild(f),c=createNS("feMergeNode"),f.appendChild(c),(c=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=c,this.feMerge=f,this.originalNodeAdded=!1,f.appendChild(c)}SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-e[0]+" 0 0 0 "+e[0]+" "+(n[1]-e[1])+" 0 0 0 "+e[1]+" "+(n[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var path,t,i,e,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(e=this.elem.maskManager.masksProperties.length,i=0):e=1+(i=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);i<e;i+=1)path=createNS("path"),t.appendChild(path),this.paths.push({p:path,m:i});if(3===this.filterManager.effectElements[10].p.v){var mask=createNS("mask"),r=createElementID();mask.setAttribute("id",r),mask.setAttribute("mask-type","alpha"),mask.appendChild(t),this.elem.globalData.defs.appendChild(mask);var g=createNS("g");for(g.setAttribute("mask","url("+getLocationHref()+"#"+r+")");n[0];)g.appendChild(n[0]);this.elem.layerElement.appendChild(g),this.masker=mask,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(t){var i;this.initialized||this.initialize();var mask,path,e=this.paths.length;for(i=0;i<e;i+=1)if(-1!==this.paths[i].m&&(mask=this.elem.maskManager.viewData[this.paths[i].m],path=this.paths[i].p,(t||this.filterManager._mdf||mask.prop._mdf)&&path.setAttribute("d",mask.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||mask.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),r=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=path.getTotalLength();n="0 0 0 "+o*s+" ";var l,c=o*(r-s),f=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,h=Math.floor(c/f);for(l=0;l<h;l+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*o+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;path.setAttribute("stroke-dasharray",n)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,o=r[0]+" "+n[0]+" "+e[0],l=r[1]+" "+n[1]+" "+e[1],c=r[2]+" "+n[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",l),this.feFuncB.setAttribute("tableValues",c)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var n=createNS(t);return n.setAttribute("type","table"),e.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(t,e,n,r,o){for(var l,c,f=0,h=Math.min(t,e),d=Math.max(t,e),table=Array.call(null,{length:256}),m=0,v=o-r,y=e-t;f<=256;)c=(l=f/256)<=h?y<0?o:r:l>=d?y<0?r:o:r+v*Math.pow((l-t)/y,1/n),table[m]=c,m+=1,f+=256/255;return table.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var col=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*col[0]),Math.round(255*col[1]),Math.round(255*col[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=e*Math.cos(n),o=e*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(filter,t){filter.setAttribute("x","-100%"),filter.setAttribute("y","-100%"),filter.setAttribute("width","300%"),filter.setAttribute("height","300%"),this.filterManager=t;var e=createNS("feGaussianBlur");filter.appendChild(e),this.feGaussianBlur=e}SVGMatte3Effect.prototype.findSymbol=function(mask){for(var i=0,t=_svgMatteSymbols.length;i<t;){if(_svgMatteSymbols[i]===mask)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(mask,t){var e=mask.layerElement.parentNode;if(e){for(var n,r=e.children,i=0,o=r.length;i<o&&r[i]!==mask.layerElement;)i+=1;i<=o-2&&(n=r[i+1]);var l=createNS("use");l.setAttribute("href","#"+t),n?e.insertBefore(l,n):e.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,mask){if(!this.findSymbol(mask)){var e=createElementID(),n=createNS("mask");n.setAttribute("id",mask.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(mask);var defs=t.globalData.defs;defs.appendChild(n);var symbol=createNS("symbol");symbol.setAttribute("id",e),this.replaceInParent(mask,e),symbol.appendChild(mask.layerElement),defs.appendChild(symbol);var r=createNS("use");r.setAttribute("href","#"+e),n.appendChild(r),mask.data.hd=!1,mask.show()}t.setMatte(mask.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,n=e.length;i<n;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:e,o=2==n?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+o);var l=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",l)}};var registeredEffects={};function SVGEffects(t){var i,e,n=t.data.ef?t.data.ef.length:0,r=createElementID(),o=filtersFactory.createFilter(r,!0),l=0;for(this.filters=[],i=0;i<n;i+=1){e=null;var c=t.data.ef[i].ty;registeredEffects[c]&&(e=new(0,registeredEffects[c].effect)(o,t.effectsManager.effectElements[i],t),registeredEffects[c].countsAsEffect&&(l+=1)),20===t.data.ef[i].ty?(l+=1,e=new SVGTintFilter(o,t.effectsManager.effectElements[i])):21===t.data.ef[i].ty?(l+=1,e=new SVGFillFilter(o,t.effectsManager.effectElements[i])):22===t.data.ef[i].ty?e=new SVGStrokeEffect(t,t.effectsManager.effectElements[i]):23===t.data.ef[i].ty?(l+=1,e=new SVGTritoneFilter(o,t.effectsManager.effectElements[i])):24===t.data.ef[i].ty?(l+=1,e=new SVGProLevelsFilter(o,t.effectsManager.effectElements[i])):25===t.data.ef[i].ty?(l+=1,e=new SVGDropShadowEffect(o,t.effectsManager.effectElements[i])):28===t.data.ef[i].ty?e=new SVGMatte3Effect(o,t.effectsManager.effectElements[i],t):29===t.data.ef[i].ty&&(l+=1,e=new SVGGaussianBlurEffect(o,t.effectsManager.effectElements[i])),e&&this.filters.push(e)}l&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,n){registeredEffects[t]={effect:e,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(data,t,e){this.assetData=t.getAssetData(data.refId),this.initElement(data,t,e),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(element,t){this.elem=element,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var i,e=this.filters.length;for(i=0;i<e;i+=1)this.filters[i].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,n,r=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var o=createNS("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o),featureSupport.maskType||1!=this.data.td||(o.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(this.layerElement),r=n,o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2==this.data.td){var l=createNS("mask");l.setAttribute("id",this.layerId),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),t=createElementID(),e=filtersFactory.createFilter(t);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),e.appendChild(f);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),f.appendChild(h),this.globalData.defs.appendChild(e);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(d),c.appendChild(this.layerElement),r=c,featureSupport.maskType||(l.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),c.appendChild(d),n.appendChild(this.layerElement),r=n,c.appendChild(n)),this.globalData.defs.appendChild(l)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var m=createNS("clipPath"),v=createNS("path");v.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var y=createElementID();if(m.setAttribute("id",y),m.appendChild(v),this.globalData.defs.appendChild(m),this.checkMasks()){var _=createNS("g");_.setAttribute("clip-path","url("+getLocationHref()+"#"+y+")"),_.appendChild(this.layerElement),this.transformedElement=_,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+y+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initTransform(data,t,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(data){var i,t=this.shapeModifiers.length;for(i=0;i<t;i+=1)this.shapeModifiers[i].addShape(data)},isShapeInAnimatedModifiers:function(data){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(data))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,t=this.shapes.length;for(i=0;i<t;i+=1)this.shapes[i].sh.reset();for(i=(t=this.shapeModifiers.length)-1;i>=0&&!this.shapeModifiers[i].processShapes(this._isFirstFrame);i-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,n=e.length;i<n;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,i=n.length;i;)if(n[i-=1].elem===t)return void(n[i].pos=e);n.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var i=0,r=t.length;i<r;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(data,t){this.data=data,this.type=data.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===data.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,data,e,n){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(data.length),this.renderer=e,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",data.length?data.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var r,o=data.length||0;for(i=0;i<o;i+=1)r=PropertyFactory.getProp(t,data[i].v,0,0,this),this.k=r.k||this.k,this.dataProps[i]={n:data[i].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,data.o,0,.01,this),this.w=PropertyFactory.getProp(t,data.w,0,null,this),this.d=new DashProperty(t,data.d||{},"svg",this),this.c=PropertyFactory.getProp(t,data.c,1,255,this),this.style=e,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,data.o,0,.01,this),this.c=PropertyFactory.getProp(t,data.c,1,255,this),this.style=e}function SVGNoStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=e}function GradientProperty(t,data,e){this.data=data,this.c=createTypedArray("uint8c",4*data.p);var n=data.k.k[0].s?data.k.k[0].s.length-4*data.p:data.k.k.length-4*data.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(e),this.prop=PropertyFactory.getProp(t,data.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,data,e)}function SVGGradientStrokeStyleData(t,data,e){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,data.w,0,null,this),this.d=new DashProperty(t,data.d||{},"svg",this),this.initGradientData(t,data,e),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var i=0,e=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),i=0;i<e;i+=1)"o"!==this.dataProps[i].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2;i<n;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var i=0,t=this.data.k.k.length;i<t;){if(!this.comparePoints(this.data.k.k[i].s,this.data.p))return!1;i+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var i,e,n,r=4*this.data.p;for(i=0;i<r;i+=1)e=i%4==0?100:255,n=Math.round(this.prop.v[i]*e),this.c[i]!==n&&(this.c[i]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,i=4*this.data.p;i<r;i+=1)e=i%2==0?100:1,n=i%2==0?Math.round(100*this.prop.v[i]):this.prop.v[i],this.o[i-4*this.data.p]!==n&&(this.o[i-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,data,e){this.o=PropertyFactory.getProp(t,data.o,0,.01,this),this.s=PropertyFactory.getProp(t,data.s,1,null,this),this.e=PropertyFactory.getProp(t,data.e,1,null,this),this.h=PropertyFactory.getProp(t,data.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,data.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,data.g,this),this.style=e,this.stops=[],this.setGradientData(e.pElem,data),this.setGradientOpacity(data,e),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,data){var e=createElementID(),n=createNS(1===data.t?"linearGradient":"radialGradient");n.setAttribute("id",e),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var r,o,l,c=[];for(l=4*data.g.p,o=0;o<l;o+=4)r=createNS("stop"),n.appendChild(r),c.push(r);t.setAttribute("gf"===data.ty?"fill":"stroke","url("+getLocationHref()+"#"+e+")"),this.gf=n,this.cst=c},SVGGradientFillStyleData.prototype.setGradientOpacity=function(data,t){if(this.g._hasOpacity&&!this.g._collapsable){var e,n,r,mask=createNS("mask"),o=createNS("path");mask.appendChild(o);var l=createElementID(),c=createElementID();mask.setAttribute("id",c);var f=createNS(1===data.t?"linearGradient":"radialGradient");f.setAttribute("id",l),f.setAttribute("spreadMethod","pad"),f.setAttribute("gradientUnits","userSpaceOnUse"),r=data.g.k.k[0].s?data.g.k.k[0].s.length:data.g.k.k.length;var h=this.stops;for(n=4*data.g.p;n<r;n+=2)(e=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),f.appendChild(e),h.push(e);o.setAttribute("gf"===data.ty?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),"gs"===data.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[data.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[data.lj||2]),1===data.lj&&o.setAttribute("stroke-miterlimit",data.ml)),this.of=f,this.ms=mask,this.ost=h,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,n,r){if(0===e)return"";var i,o=t.o,l=t.i,c=t.v,f=" M"+r.applyToPointStringified(c[0][0],c[0][1]);for(i=1;i<e;i+=1)f+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(l[i][0],l[i][1])+" "+r.applyToPointStringified(c[i][0],c[i][1]);return n&&e&&(f+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(l[0][0],l[0][1])+" "+r.applyToPointStringified(c[0][0],c[0][1]),f+="z"),f},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function n(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function o(n,r,o){var l,c,f,h,d,m,v,y,_,w,x,E=r.styles.length,S=r.lvl;for(m=0;m<E;m+=1){if(h=r.sh._mdf||o,r.styles[m].lvl<S){for(y=e.reset(),w=S-r.styles[m].lvl,x=r.transformers.length-1;!h&&w>0;)h=r.transformers[x].mProps._mdf||h,w-=1,x-=1;if(h)for(w=S-r.styles[m].lvl,x=r.transformers.length-1;w>0;)_=r.transformers[x].mProps.v.props,y.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),w-=1,x-=1}else y=t;if(c=(v=r.sh.paths)._length,h){for(f="",l=0;l<c;l+=1)(d=v.shapes[l])&&d._length&&(f+=buildShapeString(d,d._length,d.c,y));r.caches[m]=f}else f=r.caches[m];r.styles[m].d+=!0===n.hd?"":f,r.styles[m]._mdf=h||r.styles[m]._mdf}}function l(t,e,n){var r=e.style;(e.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function c(t,e,n){f(t,e,n),h(0,e,n)}function f(t,e,n){var r,i,o,l,c,f=e.gf,h=e.g._hasOpacity,d=e.s.v,m=e.e.v;if(e.o._mdf||n){var v="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(v,e.o.v)}if(e.s._mdf||n){var y=1===t.t?"x1":"cx",_="x1"===y?"y1":"cy";f.setAttribute(y,d[0]),f.setAttribute(_,d[1]),h&&!e.g._collapsable&&(e.of.setAttribute(y,d[0]),e.of.setAttribute(_,d[1]))}if(e.g._cmdf||n){r=e.cst;var w=e.g.c;for(o=r.length,i=0;i<o;i+=1)(l=r[i]).setAttribute("offset",w[4*i]+"%"),l.setAttribute("stop-color","rgb("+w[4*i+1]+","+w[4*i+2]+","+w[4*i+3]+")")}if(h&&(e.g._omdf||n)){var x=e.g.o;for(o=(r=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)l=r[i],e.g._collapsable||l.setAttribute("offset",x[2*i]+"%"),l.setAttribute("stop-opacity",x[2*i+1])}if(1===t.t)(e.e._mdf||n)&&(f.setAttribute("x2",m[0]),f.setAttribute("y2",m[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",m[0]),e.of.setAttribute("y2",m[1])));else if((e.s._mdf||e.e._mdf||n)&&(c=Math.sqrt(Math.pow(d[0]-m[0],2)+Math.pow(d[1]-m[1],2)),f.setAttribute("r",c),h&&!e.g._collapsable&&e.of.setAttribute("r",c)),e.e._mdf||e.h._mdf||e.a._mdf||n){c||(c=Math.sqrt(Math.pow(d[0]-m[0],2)+Math.pow(d[1]-m[1],2)));var E=Math.atan2(m[1]-d[1],m[0]-d[0]),S=e.h.v;S>=1?S=.99:S<=-1&&(S=-.99);var k=c*S,A=Math.cos(E+e.a.v)*k+d[0],O=Math.sin(E+e.a.v)*k+d[1];f.setAttribute("fx",A),f.setAttribute("fy",O),h&&!e.g._collapsable&&(e.of.setAttribute("fx",A),e.of.setAttribute("fy",O))}}function h(t,e,n){var r=e.style,o=e.d;o&&(o._mdf||n)&&o.dashStr&&(r.pElem.setAttribute("stroke-dasharray",o.dashStr),r.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(data){switch(data.ty){case"fl":return l;case"gf":return f;case"gs":return c;case"st":return h;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(data,t,e){this.shapes=[],this.shapesData=data.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(data,t,e),this.prevViewData=[]}function LetterProps(t,e,n,r,o,p){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=o,this.p=p,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(t,data){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=data,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var i,t,e,style,n=this.shapes.length,r=this.stylesList.length,o=[],l=!1;for(e=0;e<r;e+=1){for(style=this.stylesList[e],l=!1,o.length=0,i=0;i<n;i+=1)-1!==(t=this.shapes[i]).styles.indexOf(style)&&(o.push(t),l=t._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(data,t){var e,n=new SVGStyleData(data,t),r=n.pElem;return"st"===data.ty?e=new SVGStrokeStyleData(this,data,n):"fl"===data.ty?e=new SVGFillStyleData(this,data,n):"gf"===data.ty||"gs"===data.ty?(e=new("gf"===data.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,data,n),this.globalData.defs.appendChild(e.gf),e.maskId&&(this.globalData.defs.appendChild(e.ms),this.globalData.defs.appendChild(e.of),r.setAttribute("mask","url("+getLocationHref()+"#"+e.maskId+")"))):"no"===data.ty&&(e=new SVGNoStyleData(this,data,n)),"st"!==data.ty&&"gs"!==data.ty||(r.setAttribute("stroke-linecap",lineCapEnum[data.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[data.lj||2]),r.setAttribute("fill-opacity","0"),1===data.lj&&r.setAttribute("stroke-miterlimit",data.ml)),2===data.r&&r.setAttribute("fill-rule","evenodd"),data.ln&&r.setAttribute("id",data.ln),data.cl&&r.setAttribute("class",data.cl),data.bm&&(r.style["mix-blend-mode"]=getBlendMode(data.bm)),this.stylesList.push(n),this.addToAnimatedContents(data,e),e},SVGShapeElement.prototype.createGroupElement=function(data){var t=new ShapeGroupData;return data.ln&&t.gr.setAttribute("id",data.ln),data.cl&&t.gr.setAttribute("class",data.cl),data.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(data.bm)),t},SVGShapeElement.prototype.createTransformElement=function(data,t){var e=TransformPropertyFactory.getTransformProperty(this,data,this),n=new SVGTransformData(e,e.o,t);return this.addToAnimatedContents(data,n),n},SVGShapeElement.prototype.createShapeElement=function(data,t,e){var n=4;"rc"===data.ty?n=5:"el"===data.ty?n=6:"sr"===data.ty&&(n=7);var r=new SVGShapeData(t,e,ShapePropertyFactory.getShapeProp(this,data,n,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(data,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(data,element){for(var i=0,t=this.animatedContents.length;i<t;){if(this.animatedContents[i].element===element)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(data),element:element,data:data})},SVGShapeElement.prototype.setElementStyles=function(t){var e,n=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var i;this._isFirstFrame=!0;var t=this.itemsData.length;for(i=0;i<t;i+=1)this.prevViewData[i]=this.itemsData[i];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,i=0;i<t;i+=1)this.dynamicProperties[i].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,n,r,o,l,c){var i,f,h,d,m,v,y=[].concat(l),_=t.length-1,w=[],x=[];for(i=_;i>=0;i-=1){if((v=this.searchProcessedElement(t[i]))?e[i]=n[v-1]:t[i]._render=c,"fl"===t[i].ty||"st"===t[i].ty||"gf"===t[i].ty||"gs"===t[i].ty||"no"===t[i].ty)v?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],o),t[i]._render&&e[i].style.pElem.parentNode!==r&&r.appendChild(e[i].style.pElem),w.push(e[i].style);else if("gr"===t[i].ty){if(v)for(h=e[i].it.length,f=0;f<h;f+=1)e[i].prevViewData[f]=e[i].it[f];else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it,e[i].it,e[i].prevViewData,e[i].gr,o+1,y,c),t[i]._render&&e[i].gr.parentNode!==r&&r.appendChild(e[i].gr)}else"tr"===t[i].ty?(v||(e[i]=this.createTransformElement(t[i],r)),d=e[i].transform,y.push(d)):"sh"===t[i].ty||"rc"===t[i].ty||"el"===t[i].ty||"sr"===t[i].ty?(v||(e[i]=this.createShapeElement(t[i],y,o)),this.setElementStyles(e[i])):"tm"===t[i].ty||"rd"===t[i].ty||"ms"===t[i].ty||"pb"===t[i].ty?(v?(m=e[i]).closed=!1:((m=ShapeModifiers.getModifier(t[i].ty)).init(this,t[i]),e[i]=m,this.shapeModifiers.push(m)),x.push(m)):"rp"===t[i].ty&&(v?(m=e[i]).closed=!0:(m=ShapeModifiers.getModifier(t[i].ty),e[i]=m,m.init(this,t,i,e),this.shapeModifiers.push(m),c=!1),x.push(m));this.addProcessedElement(t[i],i+1)}for(_=w.length,i=0;i<_;i+=1)w[i].closed=!0;for(_=x.length,i=0;i<_;i+=1)x[i].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var i;this.renderModifiers();var t=this.stylesList.length;for(i=0;i<t;i+=1)this.stylesList[i].reset();for(this.renderShape(),i=0;i<t;i+=1)(this.stylesList[i]._mdf||this._isFirstFrame)&&(this.stylesList[i].msElem&&(this.stylesList[i].msElem.setAttribute("d",this.stylesList[i].d),this.stylesList[i].d="M0 0"+this.stylesList[i].d),this.stylesList[i].pElem.setAttribute("d",this.stylesList[i].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var i,t,e=this.animatedContents.length;for(i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,n,r,o,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var l=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,l=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,l=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,l=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,l=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,l=!0),!p.length||this.p[0]===p[0]&&this.p[1]===p[1]&&this.p[4]===p[4]&&this.p[5]===p[5]&&this.p[12]===p[12]&&this.p[13]===p[13]||(this.p=p,this._mdf.p=!0,l=!0),l},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,data){for(var s in data)Object.prototype.hasOwnProperty.call(data,s)&&(t[s]=data[s]);return t},TextProperty.prototype.setCurrentData=function(data){data.__complete||this.completeTextData(data),this.currentData=data,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(i=0;i<r;i+=1)o=n!==this.keysIndex?this.effectsSequence[i](o,o.t):this.effectsSequence[i](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(text){for(var t,e,n=[],i=0,r=text.length,o=!1;i<r;)t=text.charCodeAt(i),FontManager.isCombinedCharacter(t)?n[n.length-1]+=text.charAt(i):t>=55296&&t<=56319?(e=text.charCodeAt(i+1))>=56320&&e<=57343?(o||FontManager.isModifier(t,e)?(n[n.length-1]+=text.substr(i,2),o=!1):n.push(text.substr(i,2)),i+=1):n.push(text.charAt(i)):t>56319?(e=text.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,e)?(o=!0,n[n.length-1]+=text.substr(i,2),i+=1):n.push(text.charAt(i))):FontManager.isZeroWidthJoiner(t)?(n[n.length-1]+=text.charAt(i),o=!0):n.push(text.charAt(i)),i+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var i,e,n,r,o,l,c,f=this.elem.globalData.fontManager,data=this.data,h=[],d=0,m=data.m.g,v=0,y=0,_=0,w=[],x=0,E=0,S=f.getFontByName(t.f),k=0,A=getFontProperties(S);t.fWeight=A.weight,t.fStyle=A.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),e=t.finalText.length,t.finalLineHeight=t.lh;var O,T=t.tr/1e3*t.finalSize;if(t.sz)for(var C,P,I=!0,M=t.sz[0],j=t.sz[1];I;){C=0,x=0,e=(P=this.buildFinalText(t.t)).length,T=t.tr/1e3*t.finalSize;var D=-1;for(i=0;i<e;i+=1)O=P[i].charCodeAt(0),n=!1," "===P[i]?D=i:13!==O&&3!==O||(x=0,n=!0,C+=t.finalLineHeight||1.2*t.finalSize),f.chars?(c=f.getCharData(P[i],S.fStyle,S.fFamily),k=n?0:c.w*t.finalSize/100):k=f.measureText(P[i],t.f,t.finalSize),x+k>M&&" "!==P[i]?(-1===D?e+=1:i=D,C+=t.finalLineHeight||1.2*t.finalSize,P.splice(i,D===i?1:0,"\r"),D=-1,x=0):(x+=k,x+=T);C+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&j<C?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=P,e=t.finalText.length,I=!1)}x=-T,k=0;var F,R=0;for(i=0;i<e;i+=1)if(n=!1,13===(O=(F=t.finalText[i]).charCodeAt(0))||3===O?(R=0,w.push(x),E=x>E?x:E,x=-2*T,r="",n=!0,_+=1):r=F,f.chars?(c=f.getCharData(F,S.fStyle,f.getFontByName(t.f).fFamily),k=n?0:c.w*t.finalSize/100):k=f.measureText(r,t.f,t.finalSize)," "===F?R+=k+T:(x+=k+T+R,R=0),h.push({l:k,an:k,add:v,n:n,anIndexes:[],val:r,line:_,animatorJustifyOffset:0}),2==m){if(v+=k,""===r||" "===r||i===e-1){for(""!==r&&" "!==r||(v-=k);y<=i;)h[y].an=v,h[y].ind=d,h[y].extra=k,y+=1;d+=1,v=0}}else if(3==m){if(v+=k,""===r||i===e-1){for(""===r&&(v-=k);y<=i;)h[y].an=v,h[y].ind=d,h[y].extra=k,y+=1;v=0,d+=1}}else h[d].ind=d,h[d].extra=0,d+=1;if(t.l=h,E=x>E?x:E,w.push(x),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=E,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=w;var L,N,B,V,z=data.a;l=z.length;var U=[];for(o=0;o<l;o+=1){for((L=z[o]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),V=0,B=L.s.b,i=0;i<e;i+=1)(N=h[i]).anIndexes[o]=V,(1==B&&""!==N.val||2==B&&""!==N.val&&" "!==N.val||3==B&&(N.n||" "==N.val||i==e-1)||4==B&&(N.n||i==e-1))&&(1===L.s.rn&&U.push(V),V+=1);data.a[o].s.totalChars=V;var $,G=-1;if(1===L.s.rn)for(i=0;i<e;i+=1)G!=(N=h[i]).anIndexes[o]&&(G=N.anIndexes[o],$=U.splice(Math.floor(Math.random()*U.length),1)[0]),N.anIndexes[o]=$}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=S.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,n=Math.floor;function r(t,data){this._currentTextLength=-1,this.k=!1,this.data=data,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,data.s||{k:0},0,0,this),this.e="e"in data?PropertyFactory.getProp(t,data.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,data.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,data.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,data.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,data.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,data.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,c=1,f=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:f=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(o,l,c,f).get,d=0,s=this.finalS,m=this.finalE,v=this.data.sh;if(2===v)d=h(d=m===s?r>=m?1:0:t(0,e(.5/(m-s)+(r-s)/(m-s),1)));else if(3===v)d=h(d=m===s?r>=m?0:1:1-t(0,e(.5/(m-s)+(r-s)/(m-s),1)));else if(4===v)m===s?d=0:(d=t(0,e(.5/(m-s)+(r-s)/(m-s),1)))<.5?d*=2:d=1-2*(d-.5),d=h(d);else if(5===v){if(m===s)d=0;else{var y=m-s,_=-y/2+(r=e(t(0,r+.5-s),m-s)),a=y/2;d=Math.sqrt(1-_*_/(a*a))}d=h(d)}else 6===v?(m===s?d=0:(r=e(t(0,r+.5-s),m-s),d=(1+Math.cos(Math.PI+2*Math.PI*r/(m-s)))/2),d=h(d)):(r>=n(s)&&(d=t(0,e(r-s<0?e(m,1)-(s-r):m-r,1))),d=h(d));if(100!==this.sm.v){var w=.01*this.sm.v;0===w&&(w=1e-8);var x=.5-.5*w;d<x?d=0:(d=(d-x)/w)>1&&(d=1)}return d*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,s=this.s.v/e+n,r=this.e.v/e+n;if(s>r){var o=s;s=r,r=o}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,data,e){return new r(t,data,e)}}}();function TextAnimatorDataProperty(t,e,n){var r={propType:!1},o=PropertyFactory.getProp,l=e.a;this.a={r:l.r?o(t,l.r,0,degToRads,n):r,rx:l.rx?o(t,l.rx,0,degToRads,n):r,ry:l.ry?o(t,l.ry,0,degToRads,n):r,sk:l.sk?o(t,l.sk,0,degToRads,n):r,sa:l.sa?o(t,l.sa,0,degToRads,n):r,s:l.s?o(t,l.s,1,.01,n):r,a:l.a?o(t,l.a,1,0,n):r,o:l.o?o(t,l.o,0,.01,n):r,p:l.p?o(t,l.p,1,0,n):r,sw:l.sw?o(t,l.sw,0,0,n):r,sc:l.sc?o(t,l.sc,1,0,n):r,fc:l.fc?o(t,l.fc,1,0,n):r,fh:l.fh?o(t,l.fh,0,0,n):r,fs:l.fs?o(t,l.fs,0,.01,n):r,fb:l.fb?o(t,l.fb,0,.01,n):r,t:l.t?o(t,l.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function TextAnimatorProperty(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var i,t,e=this._textData.a.length,n=PropertyFactory.getProp;for(i=0;i<e;i+=1)t=this._textData.a[i],this._animatorsData[i]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,l,c,f,h,d,m,v,y,_,w,x,E,S,k,mask,A=this._moreOptions.alignment.v,O=this._animatorsData,T=this._textData,C=this.mHelper,P=this._renderType,I=this.renderedLetters.length,M=t.l;if(this._hasMaskedPath){if(mask=this._pathData.m,!this._pathData.n||this._pathData._mdf){var j,D=mask.v;for(this._pathData.r.v&&(D=D.reverse()),l={tLength:0,segments:[]},o=D._length-1,E=0,i=0;i<o;i+=1)j=bez.buildBezierData(D.v[i],D.v[i+1],[D.o[i][0]-D.v[i][0],D.o[i][1]-D.v[i][1]],[D.i[i+1][0]-D.v[i+1][0],D.i[i+1][1]-D.v[i+1][1]]),l.tLength+=j.segmentLength,l.segments.push(j),E+=j.segmentLength;i=o,mask.v.c&&(j=bez.buildBezierData(D.v[i],D.v[0],[D.o[i][0]-D.v[i][0],D.o[i][1]-D.v[i][1]],[D.i[0][0]-D.v[0][0],D.i[0][1]-D.v[0][1]]),l.tLength+=j.segmentLength,l.segments.push(j),E+=j.segmentLength),this._pathData.pi=l}if(l=this._pathData.pi,c=this._pathData.f.v,v=0,m=1,h=0,d=!0,w=l.segments,c<0&&mask.v.c)for(l.tLength<Math.abs(c)&&(c=-Math.abs(c)%l.tLength),m=(_=w[v=w.length-1].points).length-1;c<0;)c+=_[m].partialLength,(m-=1)<0&&(m=(_=w[v-=1].points).length-1);y=(_=w[v].points)[m-1],x=(f=_[m]).partialLength}o=M.length,n=0,r=0;var F,R,L,N,B,V=1.2*t.finalSize*.714,z=!0;L=O.length;var U,$,G,H,W,Q,Y,K,X,J,Z,tt,et=-1,nt=c,it=v,ot=m,at=-1,st="",ut=this.defaultPropsArray;if(2===t.j||1===t.j){var lt=0,ct=0,ft=2===t.j?-.5:-1,ht=0,pt=!0;for(i=0;i<o;i+=1)if(M[i].n){for(lt&&(lt+=ct);ht<i;)M[ht].animatorJustifyOffset=lt,ht+=1;lt=0,pt=!0}else{for(R=0;R<L;R+=1)(F=O[R].a).t.propType&&(pt&&2===t.j&&(ct+=F.t.v*ft),(B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars)).length?lt+=F.t.v*B[0]*ft:lt+=F.t.v*B*ft);pt=!1}for(lt&&(lt+=ct);ht<i;)M[ht].animatorJustifyOffset=lt,ht+=1}for(i=0;i<o;i+=1){if(C.reset(),H=1,M[i].n)n=0,r+=t.yOffset,r+=z?1:0,c=nt,z=!1,this._hasMaskedPath&&(m=ot,y=(_=w[v=it].points)[m-1],x=(f=_[m]).partialLength,h=0),st="",Z="",X="",tt="",ut=this.defaultPropsArray;else{if(this._hasMaskedPath){if(at!==M[i].line){switch(t.j){case 1:c+=E-t.lineWidths[M[i].line];break;case 2:c+=(E-t.lineWidths[M[i].line])/2}at=M[i].line}et!==M[i].ind&&(M[et]&&(c+=M[et].extra),c+=M[i].an/2,et=M[i].ind),c+=A[0]*M[i].an*.005;var mt=0;for(R=0;R<L;R+=1)(F=O[R].a).p.propType&&((B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars)).length?mt+=F.p.v[0]*B[0]:mt+=F.p.v[0]*B),F.a.propType&&((B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars)).length?mt+=F.a.v[0]*B[0]:mt+=F.a.v[0]*B);for(d=!0,this._pathData.a.v&&(c=.5*M[0].an+(E-this._pathData.f.v-.5*M[0].an-.5*M[M.length-1].an)*et/(o-1),c+=this._pathData.f.v);d;)h+x>=c+mt||!_?(S=(c+mt-h)/f.partialLength,$=y.point[0]+(f.point[0]-y.point[0])*S,G=y.point[1]+(f.point[1]-y.point[1])*S,C.translate(-A[0]*M[i].an*.005,-A[1]*V*.01),d=!1):_&&(h+=f.partialLength,(m+=1)>=_.length&&(m=0,w[v+=1]?_=w[v].points:mask.v.c?(m=0,_=w[v=0].points):(h-=f.partialLength,_=null)),_&&(y=f,x=(f=_[m]).partialLength));U=M[i].an/2-M[i].add,C.translate(-U,0,0)}else U=M[i].an/2-M[i].add,C.translate(-U,0,0),C.translate(-A[0]*M[i].an*.005,-A[1]*V*.01,0);for(R=0;R<L;R+=1)(F=O[R].a).t.propType&&(B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?B.length?c+=F.t.v*B[0]:c+=F.t.v*B:B.length?n+=F.t.v*B[0]:n+=F.t.v*B));for(t.strokeWidthAnim&&(Q=t.sw||0),t.strokeColorAnim&&(W=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),R=0;R<L;R+=1)(F=O[R].a).a.propType&&((B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars)).length?C.translate(-F.a.v[0]*B[0],-F.a.v[1]*B[1],F.a.v[2]*B[2]):C.translate(-F.a.v[0]*B,-F.a.v[1]*B,F.a.v[2]*B));for(R=0;R<L;R+=1)(F=O[R].a).s.propType&&((B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars)).length?C.scale(1+(F.s.v[0]-1)*B[0],1+(F.s.v[1]-1)*B[1],1):C.scale(1+(F.s.v[0]-1)*B,1+(F.s.v[1]-1)*B,1));for(R=0;R<L;R+=1){if(F=O[R].a,B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars),F.sk.propType&&(B.length?C.skewFromAxis(-F.sk.v*B[0],F.sa.v*B[1]):C.skewFromAxis(-F.sk.v*B,F.sa.v*B)),F.r.propType&&(B.length?C.rotateZ(-F.r.v*B[2]):C.rotateZ(-F.r.v*B)),F.ry.propType&&(B.length?C.rotateY(F.ry.v*B[1]):C.rotateY(F.ry.v*B)),F.rx.propType&&(B.length?C.rotateX(F.rx.v*B[0]):C.rotateX(F.rx.v*B)),F.o.propType&&(B.length?H+=(F.o.v*B[0]-H)*B[0]:H+=(F.o.v*B-H)*B),t.strokeWidthAnim&&F.sw.propType&&(B.length?Q+=F.sw.v*B[0]:Q+=F.sw.v*B),t.strokeColorAnim&&F.sc.propType)for(K=0;K<3;K+=1)B.length?W[K]+=(F.sc.v[K]-W[K])*B[0]:W[K]+=(F.sc.v[K]-W[K])*B;if(t.fillColorAnim&&t.fc){if(F.fc.propType)for(K=0;K<3;K+=1)B.length?Y[K]+=(F.fc.v[K]-Y[K])*B[0]:Y[K]+=(F.fc.v[K]-Y[K])*B;F.fh.propType&&(Y=B.length?addHueToRGB(Y,F.fh.v*B[0]):addHueToRGB(Y,F.fh.v*B)),F.fs.propType&&(Y=B.length?addSaturationToRGB(Y,F.fs.v*B[0]):addSaturationToRGB(Y,F.fs.v*B)),F.fb.propType&&(Y=B.length?addBrightnessToRGB(Y,F.fb.v*B[0]):addBrightnessToRGB(Y,F.fb.v*B))}}for(R=0;R<L;R+=1)(F=O[R].a).p.propType&&(B=O[R].s.getMult(M[i].anIndexes[R],T.a[R].s.totalChars),this._hasMaskedPath?B.length?C.translate(0,F.p.v[1]*B[0],-F.p.v[2]*B[1]):C.translate(0,F.p.v[1]*B,-F.p.v[2]*B):B.length?C.translate(F.p.v[0]*B[0],F.p.v[1]*B[1],-F.p.v[2]*B[2]):C.translate(F.p.v[0]*B,F.p.v[1]*B,-F.p.v[2]*B));if(t.strokeWidthAnim&&(X=Q<0?0:Q),t.strokeColorAnim&&(J="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),t.fillColorAnim&&t.fc&&(Z="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,A[1]*V*.01+r,0),this._pathData.p.v){k=(f.point[1]-y.point[1])/(f.point[0]-y.point[0]);var vt=180*Math.atan(k)/Math.PI;f.point[0]<y.point[0]&&(vt+=180),C.rotate(-vt*Math.PI/180)}C.translate($,G,0),c-=A[0]*M[i].an*.005,M[i+1]&&et!==M[i+1].ind&&(c+=M[i].an/2,c+=.001*t.tr*t.finalSize)}else{switch(C.translate(n,r,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(M[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[M[i].line]),0,0);break;case 2:C.translate(M[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[M[i].line])/2,0,0)}C.translate(0,-t.ls),C.translate(U,0,0),C.translate(A[0]*M[i].an*.005,A[1]*V*.01,0),n+=M[i].l+.001*t.tr*t.finalSize}"html"===P?st=C.toCSS():"svg"===P?st=C.to2dCSS():ut=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],tt=H}I<=i?(N=new LetterProps(tt,X,J,Z,st,ut),this.renderedLetters.push(N),I+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[i],this.lettersChangedFlag=N.update(tt,X,J,Z,st,ut)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(data,t,e){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(data,t,e),this.textProperty=new TextProperty(this,data.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(data.t,this.renderType,this),this.initTransform(data,t,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var n,r,o=e.length,l="";for(n=0;n<o;n+=1)"sh"===e[n].ty&&(r=e[n].ks.k,l+=buildShapeString(r,r.i.length,!0,t));return l},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,n,r,o){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(r,o,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(data,t,e){this.textSpans=[],this.renderType="svg",this.initElement(data,t,e)}function ISolidElement(data,t,e){this.initElement(data,t,e)}function NullElement(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initFrame(),this.initTransform(data,t,e),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(data,t,e){this.layers=data.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(data,t,e),this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(e&&e.title){var r=createNS("title"),o=createElementID();r.setAttribute("id",o),r.textContent=e.title,this.svgElement.appendChild(r),n+=o}if(e&&e.description){var l=createNS("desc"),c=createElementID();l.setAttribute("id",c),l.textContent=e.description,this.svgElement.appendChild(l),n+=" "+c}n&&this.svgElement.setAttribute("aria-labelledby",n);var defs=createNS("defs");this.svgElement.appendChild(defs);var f=createNS("g");this.svgElement.appendChild(f),this.layerElement=f,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height},this.globalData={_mdf:!1,frameNum:-1,defs:defs,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var i;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),i=0;i<15;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(data,element){var i;this.data=data,this.element=element,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var t=this.masksProperties.length,e=!1;for(i=0;i<t;i+=1)"n"!==this.masksProperties[i].mode&&(e=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=e,e&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(element,data,t,e){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,n=4;"rc"===data.ty?n=5:"el"===data.ty?n=6:"sr"===data.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(element,data,n,element);var r,o=t.length;for(i=0;i<o;i+=1)t[i].closed||(r={transforms:e.addTransformSequence(t[i].transforms),trNodes:[]},this.styledShapes.push(r),t[i].elements.push(r))}function CVShapeElement(data,t,e){this.shapes=[],this.shapesData=data.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(data,t,e)}function CVTextElement(data,t,e){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(data,t,e)}function CVImageElement(data,t,e){this.assetData=t.getAssetData(data.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(data,t,e)}function CVSolidElement(data,t,e){this.initElement(data,t,e)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(data,t,e){this.completeLayers=!1,this.layers=data.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(data,t,e),this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(data,t,e){this.initElement(data,t,e)}function HShapeElement(data,t,e){this.shapes=[],this.shapesData=data.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(data,t,e),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(data,t,e){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(data,t,e)}function HCameraElement(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,data.pe,0,0,this),data.ks.p.s?(this.px=n(this,data.ks.p.x,1,0,this),this.py=n(this,data.ks.p.y,1,0,this),this.pz=n(this,data.ks.p.z,1,0,this)):this.p=n(this,data.ks.p,1,0,this),data.ks.a&&(this.a=n(this,data.ks.a,1,0,this)),data.ks.or.k.length&&data.ks.or.k[0].to){var i,r=data.ks.or.k.length;for(i=0;i<r;i+=1)data.ks.or.k[i].to=null,data.ks.or.k[i].ti=null}this.or=n(this,data.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,data.ks.rx,0,degToRads,this),this.ry=n(this,data.ks.ry,0,degToRads,this),this.rz=n(this,data.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(data,t,e){this.assetData=t.getAssetData(data.refId),this.initElement(data,t,e)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(data,t,e){this.layers=data.layers,this.supports3d=!data.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(data,t,e),this.tm=data.tm?PropertyFactory.getProp(this,data.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var i=0,e=t.length,n=[],r="";i<e;)t[i]===String.fromCharCode(13)||t[i]===String.fromCharCode(3)?(n.push(r),r=""):r+=t[i],i+=1;return n.push(r),n},SVGTextLottieElement.prototype.buildNewText=function(){var i,t;this.addDynamicProperty(this);var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),e.fc?this.layerElement.setAttribute("fill",this.buildColor(e.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var n=this.globalData.fontManager.getFontByName(e.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var r=e.fWeight,o=e.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",e.t);var l,c=e.l||[],f=!!this.globalData.fontManager.chars;t=c.length;var h=this.mHelper,d=this.data.singleShape,m=0,v=0,y=!0,_=.001*e.tr*e.finalSize;if(!d||f||e.sz){var w,x=this.textSpans.length;for(i=0;i<t;i+=1){if(this.textSpans[i]||(this.textSpans[i]={span:null,childSpan:null,glyph:null}),!f||!d||0===i){if(l=x>i?this.textSpans[i].span:createNS(f?"g":"text"),x<=i){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[i].span=l,f){var E=createNS("g");l.appendChild(E),this.textSpans[i].childSpan=E}this.textSpans[i].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(h.reset(),h.scale(e.finalSize/100,e.finalSize/100),d&&(c[i].n&&(m=-_,v+=e.yOffset,v+=y?1:0,y=!1),this.applyTextPropertiesToMatrix(e,h,c[i].line,m,v),m+=c[i].l||0,m+=_),f){var S;if(1===(w=this.globalData.fontManager.getCharData(e.finalText[i],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily)).t)S=new SVGCompElement(w.data,this.globalData,this);else{var data=emptyShapeData;w.data&&w.data.shapes&&(data=w.data),S=new SVGShapeElement(data,this.globalData,this)}if(this.textSpans[i].glyph){var glyph=this.textSpans[i].glyph;this.textSpans[i].childSpan.removeChild(glyph.layerElement),glyph.destroy()}this.textSpans[i].glyph=S,S._debug=!0,S.prepareFrame(0),S.renderFrame(),this.textSpans[i].childSpan.appendChild(S.layerElement),this.textSpans[i].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else d&&l.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),l.textContent=c[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&l&&l.setAttribute("d","")}else{var k=this.textContainer,A="start";switch(e.j){case 1:A="end";break;case 2:A="middle";break;default:A="start"}k.setAttribute("text-anchor",A),k.setAttribute("letter-spacing",_);var O=this.buildTextContents(e.finalText);for(t=O.length,v=e.ps?e.ps[1]+e.ascent:0,i=0;i<t;i+=1)(l=this.textSpans[i].span||createNS("tspan")).textContent=O[i],l.setAttribute("x",0),l.setAttribute("y",v),l.style.display="inherit",k.appendChild(l),this.textSpans[i]||(this.textSpans[i]={span:null,glyph:null}),this.textSpans[i].span=l,v+=e.finalLineHeight;this.layerElement.appendChild(k)}for(;i<this.textSpans.length;)this.textSpans[i].span.style.display="none",i+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var i,t,e=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,i=0;i<e;i+=1)(t=this.textSpans[i].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var i,t;this._sizeChanged=!0;var e,n,r,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(t=l.length,i=0;i<t;i+=1)l[i].n||(e=o[i],n=this.textSpans[i].span,(r=this.textSpans[i].glyph)&&r.renderFrame(),e._mdf.m&&n.setAttribute("transform",e.m),e._mdf.o&&n.setAttribute("opacity",e.o),e._mdf.sw&&n.setAttribute("stroke-width",e.sw),e._mdf.sc&&n.setAttribute("stroke",e.sc),e._mdf.fc&&n.setAttribute("fill",e.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var rect=createNS("rect");rect.setAttribute("width",this.data.sw),rect.setAttribute("height",this.data.sh),rect.setAttribute("fill",this.data.sc),this.layerElement.appendChild(rect)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(data){return new NullElement(data,this.globalData,this)},SVGRendererBase.prototype.createShape=function(data){return new SVGShapeElement(data,this.globalData,this)},SVGRendererBase.prototype.createText=function(data){return new SVGTextLottieElement(data,this.globalData,this)},SVGRendererBase.prototype.createImage=function(data){return new IImageElement(data,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(data){return new ISolidElement(data,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var defs=this.globalData.defs;this.setupGlobalData(t,defs),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var e=createNS("clipPath"),rect=createNS("rect");rect.setAttribute("width",t.w),rect.setAttribute("height",t.h),rect.setAttribute("x",0),rect.setAttribute("y",0);var n=createElementID();e.setAttribute("id",n),e.appendChild(rect),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),defs.appendChild(e),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var i;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(i=0;i<t;i+=1)this.elements[i]&&this.elements[i].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var element=this.createItem(this.layers[t]);e[t]=element,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(element),element.initExpressions()),this.appendElementInPos(element,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?element.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(element)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var element=this.pendingElements.pop();if(element.checkParenting(),element.data.tt)for(var i=0,t=this.elements.length;i<t;){if(this.elements[i]===element){element.setMatte(this.elements[i-1].layerId);break}i+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var i;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=e-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<e;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(element,t){var e=element.getBaseElement();if(e){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(data,t,e){this.initFrame(),this.initBaseData(data,t,e),this.initTransform(data,t,e),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var i,t=this.layers.length;for(i=0;i<t;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var i,t=this.layers.length;for(i=0;i<t;i+=1)this.elements[i]&&this.elements[i].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(data){return new SVGCompElement(data,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(data){return new SVGCompElement(data,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var i=0;for(i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var i,e=t.length,n="_";for(i=0;i<e;i+=1)n+=t[i].transform.key+"_";var r=this.sequences[n];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var n,i=0,r=t.transforms.length,o=e;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)n=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);t._mdf=o},processSequences:function(t){var i,e=this.sequenceList.length;for(i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var i,t,e,data,n=this.element.finalTransform.mat,r=this.element.canvasContext,o=this.masksProperties.length;for(r.beginPath(),i=0;i<o;i+=1)if("n"!==this.masksProperties[i].mode){var l;this.masksProperties[i].inv&&(r.moveTo(0,0),r.lineTo(this.element.globalData.compSize.w,0),r.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r.lineTo(0,this.element.globalData.compSize.h),r.lineTo(0,0)),data=this.viewData[i].v,t=n.applyToPointArray(data.v[0][0],data.v[0][1],0),r.moveTo(t[0],t[1]);var c=data._length;for(l=1;l<c;l+=1)e=n.applyToTriplePoints(data.o[l-1],data.i[l],data.v[l]),r.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);e=n.applyToTriplePoints(data.o[l-1],data.i[0],data.v[0]),r.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}this.element.globalData.renderer.save(!0),r.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(data,t){var e={data:data,type:data.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===data.hd},n={};if("fl"===data.ty||"st"===data.ty?(n.c=PropertyFactory.getProp(this,data.c,1,255,this),n.c.k||(e.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==data.ty&&"gs"!==data.ty||(n.s=PropertyFactory.getProp(this,data.s,1,null,this),n.e=PropertyFactory.getProp(this,data.e,1,null,this),n.h=PropertyFactory.getProp(this,data.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,data.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,data.g,this)),n.o=PropertyFactory.getProp(this,data.o,0,.01,this),"st"===data.ty||"gs"===data.ty){if(e.lc=lineCapEnum[data.lc||2],e.lj=lineJoinEnum[data.lj||2],1==data.lj&&(e.ml=data.ml),n.w=PropertyFactory.getProp(this,data.w,0,null,this),n.w.k||(e.wi=n.w.v),data.d){var r=new DashProperty(this,data.d,"canvas",this);n.d=r,n.d.k||(e.da=n.d.dashArray,e.do=n.d.dashoffset[0])}}else e.r=2===data.r?"evenodd":"nonzero";return this.stylesList.push(e),n.style=e,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(data){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,data.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,data,this)}}},CVShapeElement.prototype.createShapeElement=function(data){var t=new CVShapeData(this,data,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var i;this._isFirstFrame=!0;var t=this.itemsData.length;for(i=0;i<t;i+=1)this.prevViewData[i]=this.itemsData[i];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,i=0;i<t;i+=1)this.dynamicProperties[i].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var i,e=this.stylesList.length;for(i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var i,t=this.stylesList.length;for(i=0;i<t;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var i,e=t.length;for(i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,n,r,o){var i,l,c,f,h,d,m=t.length-1,v=[],y=[],_=[].concat(o);for(i=m;i>=0;i-=1){if((f=this.searchProcessedElement(t[i]))?e[i]=n[f-1]:t[i]._shouldRender=r,"fl"===t[i].ty||"st"===t[i].ty||"gf"===t[i].ty||"gs"===t[i].ty)f?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],_),v.push(e[i].style);else if("gr"===t[i].ty){if(f)for(c=e[i].it.length,l=0;l<c;l+=1)e[i].prevViewData[l]=e[i].it[l];else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it,e[i].it,e[i].prevViewData,r,_)}else"tr"===t[i].ty?(f||(d=this.createTransformElement(t[i]),e[i]=d),_.push(e[i]),this.addTransformToStyleList(e[i])):"sh"===t[i].ty||"rc"===t[i].ty||"el"===t[i].ty||"sr"===t[i].ty?f||(e[i]=this.createShapeElement(t[i])):"tm"===t[i].ty||"rd"===t[i].ty||"pb"===t[i].ty?(f?(h=e[i]).closed=!1:((h=ShapeModifiers.getModifier(t[i].ty)).init(this,t[i]),e[i]=h,this.shapeModifiers.push(h)),y.push(h)):"rp"===t[i].ty&&(f?(h=e[i]).closed=!0:(h=ShapeModifiers.getModifier(t[i].ty),e[i]=h,h.init(this,t,i,e),this.shapeModifiers.push(h),r=!1),y.push(h));this.addProcessedElement(t[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(v),m=y.length,i=0;i<m;i+=1)y[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var i,t,e,n,r,o,l,c,f,h=this.stylesList.length,d=this.globalData.renderer,m=this.globalData.canvasContext;for(i=0;i<h;i+=1)if(("st"!==(c=(f=this.stylesList[i]).type)&&"gs"!==c||0!==f.wi)&&f.data._shouldRender&&0!==f.coOp&&0!==this.globalData.currentGlobalAlpha){for(d.save(),o=f.elements,"st"===c||"gs"===c?(m.strokeStyle="st"===c?f.co:f.grd,m.lineWidth=f.wi,m.lineCap=f.lc,m.lineJoin=f.lj,m.miterLimit=f.ml||0):m.fillStyle="fl"===c?f.co:f.grd,d.ctxOpacity(f.coOp),"st"!==c&&"gs"!==c&&m.beginPath(),d.ctxTransform(f.preTransforms.finalTransform.props),e=o.length,t=0;t<e;t+=1){for("st"!==c&&"gs"!==c||(m.beginPath(),f.da&&(m.setLineDash(f.da),m.lineDashOffset=f.do)),r=(l=o[t].trNodes).length,n=0;n<r;n+=1)"m"===l[n].t?m.moveTo(l[n].p[0],l[n].p[1]):"c"===l[n].t?m.bezierCurveTo(l[n].pts[0],l[n].pts[1],l[n].pts[2],l[n].pts[3],l[n].pts[4],l[n].pts[5]):m.closePath();"st"!==c&&"gs"!==c||(m.stroke(),f.da&&m.setLineDash(this.dashResetter))}"st"!==c&&"gs"!==c&&m.fill(f.r),d.restore()}},CVShapeElement.prototype.renderShape=function(t,e,data,n){var i,r;for(r=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(r=data[i].transform,this.renderShapeTransform(t,r)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],data[i]):"fl"===e[i].ty?this.renderFill(e[i],data[i],r):"st"===e[i].ty?this.renderStroke(e[i],data[i],r):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],data[i],r):"gr"===e[i].ty?this.renderShape(r,e[i].it,data[i].it):e[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,o=t.trNodes,l=e.paths,c=l._length;o.length=0;var f=t.transforms.finalTransform;for(r=0;r<c;r+=1){var h=l.shapes[r];if(h&&h.v){for(n=h._length,i=1;i<n;i+=1)1===i&&o.push({t:"m",p:f.applyToPointArray(h.v[0][0],h.v[0][1],0)}),o.push({t:"c",pts:f.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===n&&o.push({t:"m",p:f.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&n&&(o.push({t:"c",pts:f.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,n=e.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,n){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,n){var r,o=e.style;if(!o.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var i,l=this.globalData.canvasContext,c=e.s.v,f=e.e.v;if(1===t.t)r=l.createLinearGradient(c[0],c[1],f[0],f[1]);else{var h=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),d=Math.atan2(f[1]-c[1],f[0]-c[0]),m=e.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var v=h*m,y=Math.cos(d+e.a.v)*v+c[0],_=Math.sin(d+e.a.v)*v+c[1];r=l.createRadialGradient(y,_,0,c[0],c[1],h)}var w=t.g.p,x=e.g.c,E=1;for(i=0;i<w;i+=1)e.g._hasOpacity&&e.g._collapsable&&(E=e.g.o[2*i+1]),r.addColorStop(x[4*i]/100,"rgba("+x[4*i+1]+","+x[4*i+2]+","+x[4*i+3]+","+E+")");o.grd=r}o.coOp=e.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(t,e,n){var r=e.style,o=e.d;o&&(o._mdf||this._isFirstFrame)&&(r.da=o.dashArray,r.do=o.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var n=!1;t.sc&&(n=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,r,o,l,c,f,h,d,m,v,y,_,w=this.globalData.fontManager.getFontByName(t.f),x=t.l,E=this.mHelper;this.stroke=n,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.finalText.length;var S=this.data.singleShape,k=.001*t.tr*t.finalSize,A=0,O=0,T=!0,C=0;for(i=0;i<r;i+=1){l=(o=this.globalData.fontManager.getCharData(t.finalText[i],w.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&o.data||{},E.reset(),S&&x[i].n&&(A=-k,O+=t.yOffset,O+=T?1:0,T=!1),m=(h=l.shapes?l.shapes[0].it:[]).length,E.scale(t.finalSize/100,t.finalSize/100),S&&this.applyTextPropertiesToMatrix(t,E,x[i].line,A,O),y=createSizedArray(m-1);var P=0;for(d=0;d<m;d+=1)if("sh"===h[d].ty){for(f=h[d].ks.k.i.length,v=h[d].ks.k,_=[],c=1;c<f;c+=1)1===c&&_.push(E.applyToX(v.v[0][0],v.v[0][1],0),E.applyToY(v.v[0][0],v.v[0][1],0)),_.push(E.applyToX(v.o[c-1][0],v.o[c-1][1],0),E.applyToY(v.o[c-1][0],v.o[c-1][1],0),E.applyToX(v.i[c][0],v.i[c][1],0),E.applyToY(v.i[c][0],v.i[c][1],0),E.applyToX(v.v[c][0],v.v[c][1],0),E.applyToY(v.v[c][0],v.v[c][1],0));_.push(E.applyToX(v.o[c-1][0],v.o[c-1][1],0),E.applyToY(v.o[c-1][0],v.o[c-1][1],0),E.applyToX(v.i[0][0],v.i[0][1],0),E.applyToY(v.i[0][0],v.i[0][1],0),E.applyToX(v.v[0][0],v.v[0][1],0),E.applyToY(v.v[0][0],v.v[0][1],0)),y[P]=_,P+=1}S&&(A+=x[i].l,A+=k),this.textSpans[C]?this.textSpans[C].elem=y:this.textSpans[C]={elem:y},C+=1}},CVTextElement.prototype.renderInnerContent=function(){var i,t,e,n,r,o,l=this.canvasContext;l.font=this.values.fValue,l.lineCap="butt",l.lineJoin="miter",l.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var c,f=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;t=h.length;var d,m,v=null,y=null,_=null;for(i=0;i<t;i+=1)if(!h[i].n){if((c=f[i])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(c.p),this.globalData.renderer.ctxOpacity(c.o)),this.fill){for(c&&c.fc?v!==c.fc&&(v=c.fc,l.fillStyle=c.fc):v!==this.values.fill&&(v=this.values.fill,l.fillStyle=this.values.fill),n=(d=this.textSpans[i].elem).length,this.globalData.canvasContext.beginPath(),e=0;e<n;e+=1)for(o=(m=d[e]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),r=2;r<o;r+=6)this.globalData.canvasContext.bezierCurveTo(m[r],m[r+1],m[r+2],m[r+3],m[r+4],m[r+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(c&&c.sw?_!==c.sw&&(_=c.sw,l.lineWidth=c.sw):_!==this.values.sWidth&&(_=this.values.sWidth,l.lineWidth=this.values.sWidth),c&&c.sc?y!==c.sc&&(y=c.sc,l.strokeStyle=c.sc):y!==this.values.stroke&&(y=this.values.stroke,l.strokeStyle=this.values.stroke),n=(d=this.textSpans[i].elem).length,this.globalData.canvasContext.beginPath(),e=0;e<n;e+=1)for(o=(m=d[e]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),r=2;r<o;r+=6)this.globalData.canvasContext.bezierCurveTo(m[r],m[r+1],m[r+2],m[r+3],m[r+4],m[r+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}c&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var canvas=createTag("canvas");canvas.width=this.assetData.w,canvas.height=this.assetData.h;var t,e,n=canvas.getContext("2d"),r=this.img.width,o=this.img.height,l=r/o,c=this.assetData.w/this.assetData.h,f=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;l>c&&"xMidYMid slice"===f||l<c&&"xMidYMid slice"!==f?t=(e=o)*c:e=(t=r)/c,n.drawImage(this.img,(r-t)/2,(o-e)/2,t,e,0,0,this.assetData.w,this.assetData.h),this.img=canvas}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(data){return new CVShapeElement(data,this.globalData,this)},CanvasRendererBase.prototype.createText=function(data){return new CVTextElement(data,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(data){return new CVImageElement(data,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(data){return new CVSolidElement(data,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var i,e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var n=this.contextData.saved[this.contextData.cArrPos];for(i=0;i<16;i+=1)n[i]=e[i];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var i,e=this.contextData.saved[this.contextData.cArrPos],n=this.contextData.cTr.props;for(i=0;i<16;i+=1)n[i]=e[i];this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),e=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=e,this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var n="0px 0px 0px";e.transformOrigin=n,e.mozTransformOrigin=n,e.webkitTransformOrigin=n,e["-webkit-transform"]=n,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var t,e,n,r;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),l=o[1]||"meet",c=o[0]||"xMidYMid",f=c.substr(0,4),h=c.substr(4);n=t/e,(r=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===l||r<n&&"slice"===l?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===f&&(r<n&&"meet"===l||r>n&&"slice"===l)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===f&&(r<n&&"meet"===l||r>n&&"slice"===l)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(r>n&&"meet"===l||r<n&&"slice"===l)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(r>n&&"meet"===l||r<n&&"slice"===l)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var i;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),i=(this.layers?this.layers.length:0)-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var element=this.createItem(this.layers[t],this,this.globalData);e[t]=element,element.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var i,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),i=this.layers.length-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var i;for(i=this.layers.length-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(data){return new CVCompElement(data,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(data){return new CVCompElement(data,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var rect;this.data.hasMask?((rect=createNS("rect")).setAttribute("width",this.data.sw),rect.setAttribute("height",this.data.sh),rect.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((rect=createTag("div")).style.width=this.data.sw+"px",rect.style.height=this.data.sh+"px",rect.style.backgroundColor=this.data.sc),this.layerElement.appendChild(rect)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,n,r,o,l,c=t.sh.v,f=t.transformers,h=c._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)n=this.getTransformedPoint(f,c.v[i]),r=this.getTransformedPoint(f,c.o[i]),o=this.getTransformedPoint(f,c.i[i+1]),l=this.getTransformedPoint(f,c.v[i+1]),this.checkBounds(n,r,o,l,e);c.c&&(n=this.getTransformedPoint(f,c.v[i]),r=this.getTransformedPoint(f,c.o[i]),o=this.getTransformedPoint(f,c.i[0]),l=this.getTransformedPoint(f,c.v[0]),this.checkBounds(n,r,o,l,e))}},HShapeElement.prototype.checkBounds=function(t,e,n,r,o){this.getBoundsOfCurve(t,e,n,r);var l=this.shapeBoundingBox;o.x=bmMin(l.left,o.x),o.xMax=bmMax(l.right,o.xMax),o.y=bmMin(l.top,o.y),o.yMax=bmMax(l.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,n,r){for(var a,b,o,l,c,f,h,d=[[t[0],r[0]],[t[1],r[1]]],i=0;i<2;++i)b=6*t[i]-12*e[i]+6*n[i],a=-3*t[i]+9*e[i]-9*n[i]+3*r[i],o=3*e[i]-3*t[i],b|=0,o|=0,0==(a|=0)&&0===b||(0===a?(l=-o/b)>0&&l<1&&d[i].push(this.calculateF(l,t,e,n,r,i)):(c=b*b-4*o*a)>=0&&((f=(-b+bmSqrt(c))/(2*a))>0&&f<1&&d[i].push(this.calculateF(f,t,e,n,r,i)),(h=(-b-bmSqrt(c))/(2*a))>0&&h<1&&d[i].push(this.calculateF(h,t,e,n,r,i))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(t,e,n,r,o,i){return bmPow(1-t,3)*e[i]+3*bmPow(1-t,2)*t*n[i]+3*(1-t)*bmPow(t,2)*r[i]+bmPow(t,3)*o[i]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it&&this.calculateBoundingBox(t[i].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var n=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),n=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),n=!0),n||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=o,r.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var g=createNS("g");this.maskedElement.appendChild(g),this.innerElem=g}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,n=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=n,e.color=n,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,r,o=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{e.fontFamily=o.fFamily;var l=t.fWeight,c=t.fStyle;e.fontStyle=c,e.fontWeight=l}var f,h,d,m=t.l;r=m.length;var v,y=this.mHelper,_="",w=0;for(i=0;i<r;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[w]?f=this.textPaths[w]:((f=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),f.setAttribute("stroke-linejoin",lineJoinEnum[2]),f.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[w]?d=(h=this.textSpans[w]).children[0]:((h=createTag("div")).style.lineHeight=0,(d=createNS("svg")).appendChild(f),styleDiv(h)))):this.isMasked?f=this.textPaths[w]?this.textPaths[w]:createNS("text"):this.textSpans[w]?(h=this.textSpans[w],f=this.textPaths[w]):(styleDiv(h=createTag("span")),styleDiv(f=createTag("span")),h.appendChild(f)),this.globalData.fontManager.chars){var x,E=this.globalData.fontManager.getCharData(t.finalText[i],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(x=E?E.data:null,y.reset(),x&&x.shapes&&x.shapes.length&&(v=x.shapes[0].it,y.scale(t.finalSize/100,t.finalSize/100),_=this.createPathShape(y,v),f.setAttribute("d",_)),this.isMasked)this.innerElem.appendChild(f);else{if(this.innerElem.appendChild(h),x&&x.shapes){document.body.appendChild(d);var S=d.getBBox();d.setAttribute("width",S.width+2),d.setAttribute("height",S.height+2),d.setAttribute("viewBox",S.x-1+" "+(S.y-1)+" "+(S.width+2)+" "+(S.height+2));var k=d.style,A="translate("+(S.x-1)+"px,"+(S.y-1)+"px)";k.transform=A,k.webkitTransform=A,m[i].yOffset=S.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);h.appendChild(d)}}else if(f.textContent=m[i].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(f);else{this.innerElem.appendChild(h);var O=f.style,T="translate3d(0,"+-t.finalSize/1.2+"px,0)";O.transform=T,O.webkitTransform=T}this.isMasked?this.textSpans[w]=f:this.textSpans[w]=h,this.textSpans[w].style.display="block",this.textPaths[w]=f,w+=1}for(;w<this.textSpans.length;)this.textSpans[w].style.display="none",w+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,n,r,o,l,c=0,f=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(n=h.length,i=0;i<n;i+=1)h[i].n?c+=1:(o=this.textSpans[i],l=this.textPaths[i],r=f[c],c+=1,r._mdf.m&&(this.isMasked?o.setAttribute("transform",r.m):(o.style.webkitTransform=r.m,o.style.transform=r.m)),o.style.opacity=r.o,r.sw&&r._mdf.sw&&l.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&l.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(l.setAttribute("fill",r.fc),l.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();if(this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height)),this.currentBBox.w!==d.width+2||this.currentBBox.h!==d.height+2||this.currentBBox.x!==d.x-1||this.currentBBox.y!==d.y-1){this.currentBBox.w=d.width+2,this.currentBBox.h=d.height+2,this.currentBBox.x=d.x-1,this.currentBBox.y=d.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var m="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=m,t.webkitTransform=m}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var i,t,e,n,r=this.comp.threeDElements.length;for(i=0;i<r;i+=1)if("3d"===(t=this.comp.threeDElements[i]).type){e=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",l="0px 0px 0px",c="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";e.perspective=o,e.webkitPerspective=o,n.transformOrigin=l,n.mozTransformOrigin=l,n.webkitTransformOrigin=l,e.transform=c,e.webkitTransform=c}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var i,t,e=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,i=0;i<t;i+=1)e=this.hierarchy[i].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=t=this.hierarchy.length-1;i>=0;i-=1){var n=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),l=[r[0]/o,r[1]/o,r[2]/o],c=Math.sqrt(l[2]*l[2]+l[0]*l[0]),f=Math.atan2(l[1],c),h=Math.atan2(l[0],-l[2]);this.mat.rotateY(h).rotateX(-f)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){var m,v,y;for(t=this.comp.threeDElements.length,i=0;i<t;i+=1)if("3d"===(m=this.comp.threeDElements[i]).type){if(d){var _=this.mat.toCSS();(y=m.container.style).transform=_,y.webkitTransform=_}this.pe._mdf&&((v=m.perspectiveElem.style).perspective=this.pe.v+"px",v.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),img=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(img),img.crossOrigin="anonymous",img.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(element,t){var e=element.getBaseElement();if(e){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(e,t);else if(this.threeDElements)this.addTo3dContainer(e,t);else{for(var r,o,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i],r=(this.layers[i].ddd?this.getThreeDContainerByPos(i):o.getBaseElement())||r),i+=1;r?n.ddd&&this.supports3d||this.layerElement.insertBefore(e,r):n.ddd&&this.supports3d||this.layerElement.appendChild(e)}}},HybridRendererBase.prototype.createShape=function(data){return this.supports3d?new HShapeElement(data,this.globalData,this):new SVGShapeElement(data,this.globalData,this)},HybridRendererBase.prototype.createText=function(data){return this.supports3d?new HTextElement(data,this.globalData,this):new SVGTextLottieElement(data,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(data){return this.camera=new HCameraElement(data,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(data){return this.supports3d?new HImageElement(data,this.globalData,this):new IImageElement(data,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(data){return this.supports3d?new HSolidElement(data,this.globalData,this):new ISolidElement(data,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var i=0,e=this.threeDElements.length;i<e;){if(this.threeDElements[i].startPos<=t&&this.threeDElements[i].endPos>=t)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var style,n,r=createTag("div");styleDiv(r);var o=createTag("div");if(styleDiv(o),"3d"===e){(style=r.style).width=this.globalData.compSize.w+"px",style.height=this.globalData.compSize.h+"px";var l="50% 50%";style.webkitTransformOrigin=l,style.mozTransformOrigin=l,style.transformOrigin=l;var c="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=c,n.webkitTransform=c}r.appendChild(o);var f={container:o,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(f),f},HybridRendererBase.prototype.build3dContainers=function(){var i,t,e=this.layers.length,n="";for(i=0;i<e;i+=1)this.layers[i].ddd&&3!==this.layers[i].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(i,"3d")),t.endPos=Math.max(t.endPos,i)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(i,"2d")),t.endPos=Math.max(t.endPos,i));for(i=(e=this.threeDElements.length)-1;i>=0;i-=1)this.resizerElem.appendChild(this.threeDElements[i].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,n=this.threeDElements.length;i<n;){if(e<=this.threeDElements[i].endPos){for(var r,o=this.threeDElements[i].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(r=this.elements[o].getBaseElement()),o+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),n=this.animationItem.wrapper,style=e.style;style.width=t.w+"px",style.height=t.h+"px",this.resizerElem=e,styleDiv(e),style.transformStyle="flat",style.mozTransformStyle="flat",style.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),n.appendChild(e),style.overflow="hidden";var svg=createNS("svg");svg.setAttribute("width","1"),svg.setAttribute("height","1"),styleDiv(svg),this.resizerElem.appendChild(svg);var defs=createNS("defs");svg.appendChild(defs),this.data=t,this.setupGlobalData(t,svg),this.globalData.defs=defs,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var i;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(i=0;i<t;i+=1)this.elements[i].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,n,r,o=this.animationItem.wrapper.offsetWidth,l=this.animationItem.wrapper.offsetHeight,c=o/l;this.globalData.compSize.w/this.globalData.compSize.h>c?(t=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,n=0,r=(l-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(t=l/this.globalData.compSize.h,e=l/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(l/this.globalData.compSize.h))/2,r=0);var style=this.resizerElem.style;style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+r+",0,1)",style.transform=style.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var i,t=this.globalData.compSize.w,e=this.globalData.compSize.h,n=this.threeDElements.length;for(i=0;i<n;i+=1){var style=this.threeDElements[i].perspectiveElem.style;style.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",style.perspective=style.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var i,e=t.length,n=createTag("div");for(i=0;i<e;i+=1)if(t[i].xt){var r=this.createComp(t[i],n,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var n,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(t,n):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(data){return this.supports3d?new HCompElement(data,this.globalData,this):new SVGCompElement(data,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(data){return this.supports3d?new HCompElement(data,this.globalData,this):new SVGCompElement(data,this.globalData,this)};var Expressions=function(){var t={initExpressions:function(t){var e=0,n=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var i,t=n.length;for(i=0;i<t;i+=1)n[i].release();n.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===n.indexOf(t)&&n.push(t)}}};return t}();function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}function seedRandom(t,e){var n=this,r=256,o=e.pow(r,6),l=e.pow(2,52),c=2*l,mask=255;function f(t){var e,n=t.length,o=this,i=0,l=o.i=o.j=0,s=o.S=[];for(n||(t=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[l=mask&l+t[i%n]+(e=s[i])],s[l]=e;o.g=function(t){for(var e,n=0,i=o.i,l=o.j,s=o.S;t--;)e=s[i=mask&i+1],n=n*r+s[mask&(s[i]=s[l=mask&l+e])+(s[l]=e)];return o.i=i,o.j=l,n}}function h(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function d(t,e){var n,r=[],o=_typeof$1(t);if(e&&"object"==o)for(n in t)try{r.push(d(t[n],e-1))}catch(t){}return r.length?r:"string"==o?t:t+"\0"}function m(t,e){for(var n,r=t+"",o=0;o<r.length;)e[mask&o]=mask&(n^=19*e[mask&o])+r.charCodeAt(o++);return v(e)}function v(a){return String.fromCharCode.apply(0,a)}e.seedrandom=function(y,_,w){var x=[],E=m(d((_=!0===_?{entropy:!0}:_||{}).entropy?[y,v(t)]:null===y?function(){try{var e=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(e),v(e)}catch(e){var o=n.navigator,l=o&&o.plugins;return[+new Date,n,l,n.screen,v(t)]}}():y,3),x),S=new f(x),k=function(){for(var t=S.g(6),e=o,n=0;t<l;)t=(t+n)*r,e*=r,n=S.g(1);for(;t>=c;)t/=2,e/=2,n>>>=1;return(t+n)/e};return k.int32=function(){return 0|S.g(4)},k.quick=function(){return S.g(4)/4294967296},k.double=k,m(v(S.S),t),(_.pass||w||function(t,n,r,o){return o&&(o.S&&h(o,S),t.state=function(){return h(S,{})}),r?(e.random=t,n):t})(k,E,"global"in _?_.global:this==e,_.state)},m(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(a){var t=_typeof(a);if("number"===t||"boolean"===t||a instanceof Number)return-a;if($bm_isInstanceOfArray(a)){var i,e=a.length,n=[];for(i=0;i<e;i+=1)n[i]=-a[i];return n}return a.propType?a.v:-a}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(a,b){var t=_typeof(a),e=_typeof(b);if("string"===t||"string"===e)return a+b;if(isNumerable(t,a)&&isNumerable(e,b))return a+b;if($bm_isInstanceOfArray(a)&&isNumerable(e,b))return(a=a.slice(0))[0]+=b,a;if(isNumerable(t,a)&&$bm_isInstanceOfArray(b))return(b=b.slice(0))[0]=a+b[0],b;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(b)){for(var i=0,n=a.length,r=b.length,o=[];i<n||i<r;)("number"==typeof a[i]||a[i]instanceof Number)&&("number"==typeof b[i]||b[i]instanceof Number)?o[i]=a[i]+b[i]:o[i]=void 0===b[i]?a[i]:a[i]||b[i],i+=1;return o}return 0}var add=sum;function sub(a,b){var t=_typeof(a),e=_typeof(b);if(isNumerable(t,a)&&isNumerable(e,b))return"string"===t&&(a=parseInt(a,10)),"string"===e&&(b=parseInt(b,10)),a-b;if($bm_isInstanceOfArray(a)&&isNumerable(e,b))return(a=a.slice(0))[0]-=b,a;if(isNumerable(t,a)&&$bm_isInstanceOfArray(b))return(b=b.slice(0))[0]=a-b[0],b;if($bm_isInstanceOfArray(a)&&$bm_isInstanceOfArray(b)){for(var i=0,n=a.length,r=b.length,o=[];i<n||i<r;)("number"==typeof a[i]||a[i]instanceof Number)&&("number"==typeof b[i]||b[i]instanceof Number)?o[i]=a[i]-b[i]:o[i]=void 0===b[i]?a[i]:a[i]||b[i],i+=1;return o}return 0}function mul(a,b){var t,i,e,n=_typeof(a),r=_typeof(b);if(isNumerable(n,a)&&isNumerable(r,b))return a*b;if($bm_isInstanceOfArray(a)&&isNumerable(r,b)){for(e=a.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a[i]*b;return t}if(isNumerable(n,a)&&$bm_isInstanceOfArray(b)){for(e=b.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a*b[i];return t}return 0}function div(a,b){var t,i,e,n=_typeof(a),r=_typeof(b);if(isNumerable(n,a)&&isNumerable(r,b))return a/b;if($bm_isInstanceOfArray(a)&&isNumerable(r,b)){for(e=a.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a[i]/b;return t}if(isNumerable(n,a)&&$bm_isInstanceOfArray(b)){for(e=b.length,t=createTypedArray("float32",e),i=0;i<e;i+=1)t[i]=a/b[i];return t}return 0}function mod(a,b){return"string"==typeof a&&(a=parseInt(a,10)),"string"==typeof b&&(b=parseInt(b,10)),a%b}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,n){if(e>n){var r=n;n=e,e=r}return Math.min(Math.max(t,e),n)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),r=0;for(i=0;i<n;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,s,n=t[0],g=t[1],b=t[2],r=Math.max(n,g,b),o=Math.min(n,g,b),l=(r+o)/2;if(r===o)e=0,s=0;else{var c=r-o;switch(s=l>.5?c/(2-r-o):c/(r+o),r){case n:e=(g-b)/c+(g<b?6:0);break;case g:e=(b-n)/c+2;break;case b:e=(n-g)/c+4}e/=6}return[e,s,l,t[3]]}function hue2rgb(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}function hslToRgb(t){var e,g,b,n=t[0],s=t[1],r=t[2];if(0===s)e=r,b=r,g=r;else{var q=r<.5?r*(1+s):r+s-r*s,p=2*r-q;e=hue2rgb(p,q,n+1/3),g=hue2rgb(p,q,n),b=hue2rgb(p,q,n-1/3)}return[e,g,b,t[3]]}function linear(t,e,n,r,o){if(void 0!==r&&void 0!==o||(r=e,o=n,e=0,n=1),n<e){var l=n;n=e,e=l}if(t<=e)return r;if(t>=n)return o;var i,c=n===e?0:(t-e)/(n-e);if(!r.length)return r+(o-r)*c;var f=r.length,h=createTypedArray("float32",f);for(i=0;i<f;i+=1)h[i]=r[i]+(o[i]-r[i])*c;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,n=e.length;t||(t=createTypedArray("float32",n));var r=createTypedArray("float32",n),o=BMMath.random();for(i=0;i<n;i+=1)r[i]=t[i]+o*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,n,r){var i,o=t.length,path=shapePool.newElement();path.setPathData(!!r,o);var l,c,f=[0,0];for(i=0;i<o;i+=1)l=e&&e[i]?e[i]:f,c=n&&n[i]?n[i]:f,path.setTripleAt(t[i][0],t[i][1],c[0]+t[i][0],c[1]+t[i][1],l[0]+t[i][0],l[1]+t[i][1],i,!0);return path}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var n,r,o=this.pv.length?this.pv.length:1,l=createTypedArray("float32",o),c=Math.floor(5*time);for(n=0,r=0;n<c;){for(r=0;r<o;r+=1)l[r]+=-e+2*e*BMMath.random();n+=1}var f=5*time,h=f-Math.floor(f),d=createTypedArray("float32",o);if(o>1){for(r=0;r<o;r+=1)d[r]=this.pv[r]+l[r]+(-e+2*e*BMMath.random())*h;return d}return this.pv+l[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var n=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(t,e,n,r,o){return applyEase(easeOutBez,t,e,n,r,o)}function easeIn(t,e,n,r,o){return applyEase(easeInBez,t,e,n,r,o)}function ease(t,e,n,r,o){return applyEase(easeInOutBez,t,e,n,r,o)}function applyEase(t,e,n,r,o,l){void 0===o?(o=n,l=r):e=(e-n)/(r-n),e>1?e=1:e<0&&(e=0);var c=t(e);if($bm_isInstanceOfArray(o)){var f,h=o.length,d=createTypedArray("float32",h);for(f=0;f<h;f+=1)d[f]=(l[f]-o[f])*c+o[f];return d}return(l-o)*c+o}function nearestKey(time){var t,e,n,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(e=-1,(time*=elem.comp.globalData.frameRate)<data.k[0].t)e=1,n=data.k[0].t;else{for(t=0;t<r-1;t+=1){if(time===data.k[t].t){e=t+1,n=data.k[t].t;break}if(time>data.k[t].t&&time<data.k[t+1].t){time-data.k[t].t>data.k[t+1].t-time?(e=t+2,n=data.k[t+1].t):(e=t+1,n=data.k[t].t);break}}-1===e&&(e=t+1,n=data.k[t].t)}else e=0,n=0;var o={};return o.index=e,o.time=n/elem.comp.globalData.frameRate,o}function key(t){var e,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=o.length,n=0;n<r;n+=1)e[n]=o[n],e.value[n]=o[n];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,data,e){data.x&&(e.k=!0,e.x=!0,e.initiateExpression=ExpressionManager.initiateExpression,e.effectsSequence.push(e.initiateExpression(t,data,e).bind(e)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),n=this.getValueAtTime(t+-.01),r=0;if(e.length){var i;for(i=0;i<e.length;i+=1)r+=Math.pow(n[i]-e[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,n=-.001,r=this.getValueAtTime(t),o=this.getValueAtTime(t+n);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(o[i]-r[i])/n;else e=(o-r)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,n){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,o,i,l,c,f=this.comp.renderedFrame,h=this.keyframes,d=h[h.length-1].t;if(f<=d)return this.pv;if(n?o=d-(r=e?Math.abs(d-this.elem.comp.globalData.frameRate*e):Math.max(0,d-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),r=d-(o=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((f-o)/r)%2!=0)return this.getValueAtTime((r-(f-o)%r+o)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(o/this.comp.globalData.frameRate,0),v=this.getValueAtTime(d/this.comp.globalData.frameRate,0),y=this.getValueAtTime(((f-o)%r+o)/this.comp.globalData.frameRate,0),_=Math.floor((f-o)/r);if(this.pv.length){for(l=(c=new Array(m.length)).length,i=0;i<l;i+=1)c[i]=(v[i]-m[i])*_+y[i];return c}return(v-m)*_+y}if("continue"===t){var w=this.getValueAtTime(d/this.comp.globalData.frameRate,0),x=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(l=(c=new Array(w.length)).length,i=0;i<l;i+=1)c[i]=w[i]+(w[i]-x[i])*((f-d)/this.comp.globalData.frameRate)/5e-4;return c}return w+(f-d)/.001*(w-x)}}return this.getValueAtTime(((f-o)%r+o)/this.comp.globalData.frameRate,0)}function e(t,e,n){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,o,i,l,c,f=this.comp.renderedFrame,h=this.keyframes,d=h[0].t;if(f>=d)return this.pv;if(n?o=d+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-d)):((!e||e>h.length-1)&&(e=h.length-1),r=(o=h[e].t)-d),"pingpong"===t){if(Math.floor((d-f)/r)%2==0)return this.getValueAtTime(((d-f)%r+d)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),v=this.getValueAtTime(o/this.comp.globalData.frameRate,0),y=this.getValueAtTime((r-(d-f)%r+d)/this.comp.globalData.frameRate,0),_=Math.floor((d-f)/r)+1;if(this.pv.length){for(l=(c=new Array(m.length)).length,i=0;i<l;i+=1)c[i]=y[i]-(v[i]-m[i])*_;return c}return y-(v-m)*_}if("continue"===t){var w=this.getValueAtTime(d/this.comp.globalData.frameRate,0),x=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(l=(c=new Array(w.length)).length,i=0;i<l;i+=1)c[i]=w[i]+(w[i]-x[i])*(d-f)/.001;return c}return w+(w-x)*(d-f)/.001}}return this.getValueAtTime((r-((d-f)%r+d))/this.comp.globalData.frameRate,0)}function n(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var n,r,o=this.comp.renderedFrame/this.comp.globalData.frameRate,l=o-t,c=e>1?(o+t-l)/(e-1):1,i=0,f=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;i<e;){if(r=this.getValueAtTime(l+i*c),this.pv.length)for(f=0;f<this.pv.length;f+=1)n[f]+=r[f];else n+=r;i+=1}if(this.pv.length)for(f=0;f<this.pv.length;f+=1)n[f]/=e;else n/=e;return n}function r(time){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var e=this.a.getValueAtTime(time);t.translate(-e[0]*this.a.mult,-e[1]*this.a.mult,e[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(time);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(time),o=this.sa.getValueAtTime(time);t.skewFromAxis(-r*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var l=this.r.getValueAtTime(time);t.rotate(-l*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var c=this.rz.getValueAtTime(time),f=this.ry.getValueAtTime(time),h=this.rx.getValueAtTime(time),d=this.or.getValueAtTime(time);t.rotateZ(-c*this.rz.mult).rotateY(f*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var m=this.px.getValueAtTime(time),v=this.py.getValueAtTime(time);if(this.data.p.z){var y=this.pz.getValueAtTime(time);t.translate(m*this.px.mult,v*this.py.mult,-y*this.pz.mult)}else t.translate(m*this.px.mult,v*this.py.mult,0)}else{var _=this.p.getValueAtTime(time);t.translate(_[0]*this.p.mult,_[1]*this.p.mult,-_[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var l=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,data,e){var n=l(t,data,e);return n.dynamicProperties.length?n.getValueAtTime=r.bind(n):n.getValueAtTime=o.bind(n),n.setGroupProperty=expressionHelpers.setGroupProperty,n};var c=PropertyFactory.getProp;PropertyFactory.getProp=function(r,data,o,l,f){var h=c(r,data,o,l,f);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=n,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===data.a?data.k.length:0,h.propertyIndex=data.ix;var d=0;return 0!==o&&(d=createTypedArray("float32",1===data.a?data.k[0].s.length:data.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(r,data,h),h.k&&f.addDynamicProperty(h),h};var f=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(t,time){this.k&&this.getValue();var i,e=this.v;void 0!==time&&(e=this.getValueAtTime(time,0));var n=e._length,r=e[t],o=e.v,l=createSizedArray(n);for(i=0;i<n;i+=1)l[i]="i"===t||"o"===t?[r[i][0]-o[i][0],r[i][1]-o[i][1]]:[r[i][0],r[i][1]];return l},points:function(time){return this.vertices("v",time)},inTangents:function(time){return this.vertices("i",time)},outTangents:function(time){return this.vertices("o",time)},isClosed:function(){return this.v.c},pointOnPath:function(t,time){var e=this.v;void 0!==time&&(e=this.getValueAtTime(time,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(e));for(var n,r=this._segmentsLength,o=r.lengths,l=r.totalLength*t,i=0,c=o.length,f=0;i<c;){if(f+o[i].addedLength>l){var h=i,d=e.c&&i===c-1?0:i+1,m=(l-f)/o[i].addedLength;n=bez.getPointInSegment(e.v[h],e.v[d],e.o[h],e.i[d],m,o[i]);break}f+=o[i].addedLength,i+=1}return n||(n=e.c?[e.v[0][0],e.v[0][1]]:[e.v[e._length-1][0],e.v[e._length-1][1]]),n},vectorOnPath:function(t,time,e){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,time),r=this.pointOnPath(t+.001,time),o=r[0]-n[0],l=r[1]-n[1],c=Math.sqrt(Math.pow(o,2)+Math.pow(l,2));return 0===c?[0,0]:"tangent"===e?[o/c,l/c]:[-l/c,o/c]},tangentOnPath:function(t,time){return this.vectorOnPath(t,time,"tangent")},normalOnPath:function(t,time){return this.vectorOnPath(t,time,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],f),extendPrototype([d],h),h.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},h.prototype.initiateExpression=ExpressionManager.initiateExpression;var m=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,data,e,n,r){var o=m(t,data,e,n,r);return o.propertyIndex=data.ix,o.lock=!1,3===e?expressionHelpers.searchExpressions(t,data.pt,o):4===e&&expressionHelpers.searchExpressions(t,data.ks,o),o.k&&t.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,text){var e=this.calculateExpression(text);if(t.t!==e){var n={};return this.copyData(n,t),n.t=e.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}return registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())},function(t,e,n){t.exports=function(){"use strict";var t={required:"This field is required",email:"This field requires a valid e-mail address",number:"This field requires a number",integer:"This field requires an integer value",url:"This field requires a valid website URL",tel:"This field requires a valid telephone number",maxlength:"This fields length must be < ${1}",minlength:"This fields length must be > ${1}",min:"Minimum value for this field is ${1}",max:"Maximum value for this field is ${1}",pattern:"Please match the requested format"};function e(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}function n(t){var e=arguments;return this.replace(/\${([^{}]*)}/g,(function(a,b){return e[b]}))}function r(input){return input.pristine.self.form.querySelectorAll('input[name="'+input.getAttribute("name")+'"]:checked').length}function o(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}function l(t){return!!(t&&t.constructor&&t.call&&t.apply)}var c={classTo:"form-group",errorClass:"has-danger",successClass:"has-success",errorTextParent:"form-group",errorTextTag:"div",errorTextClass:"text-help"},f="pristine-error",h="input:not([type^=hidden]):not([type^=submit]), select, textarea",d=["required","min","max","minlength","maxlength","pattern"],m=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,v={},y=function(e,n){n.name=e,n.msg||(n.msg=t[e]),void 0===n.priority&&(n.priority=1),v[e]=n};function _(form,t,r){var m=this;function y(form,t,e){form.setAttribute("novalidate","true"),m.form=form,m.config=o(t||{},c),m.live=!(!1===e),m.fields=Array.from(form.querySelectorAll(h)).map(function(input){var t=[],e={},n={};return[].forEach.call(input.attributes,(function(r){if(/^data-pristine-/.test(r.name)){var o=r.name.substr(14);if(o.endsWith("-message"))return void(n[o.slice(0,o.length-8)]=r.value);"type"===o&&(o=r.value),_(t,e,o,r.value)}else~d.indexOf(r.name)?_(t,e,r.name,r.value):"type"===r.name&&_(t,e,r.value)})),t.sort((function(a,b){return b.priority-a.priority})),m.live&&input.addEventListener(~["radio","checkbox"].indexOf(input.getAttribute("type"))?"change":"input",function(t){m.validate(t.target)}.bind(m)),input.pristine={input:input,validators:t,params:e,messages:n,self:m}}.bind(m))}function _(t,e,n,r){var o=v[n];if(o&&(t.push(o),r)){var l=r.split(",");l.unshift(null),e[n]=l}}function w(t){for(var e=[],r=!0,i=0;t.validators[i];i++){var o=t.validators[i],c=t.params[o.name]?t.params[o.name]:[];if(c[0]=t.input.value,!o.fn.apply(t.input,c)){if(r=!1,l(o.msg))e.push(o.msg(t.input.value,c));else{var f=t.messages[o.name]||o.msg;e.push(n.apply(f,c))}if(!0===o.halt)break}}return t.errors=e,r}function x(t){if(t.errorElements)return t.errorElements;var n=e(t.input,m.config.classTo),r=null,o=null;return(r=m.config.classTo===m.config.errorTextParent?n:n.querySelector("."+m.config.errorTextParent))&&((o=r.querySelector("."+f))||((o=document.createElement(m.config.errorTextTag)).className=f+" "+m.config.errorTextClass,r.appendChild(o),o.pristineDisplay=o.style.display)),t.errorElements=[n,o]}function E(t){var e=x(t),n=e[0],r=e[1];n&&(n.classList.remove(m.config.successClass),n.classList.add(m.config.errorClass)),r&&(r.innerHTML=t.errors.join("<br/>"),r.style.display=r.pristineDisplay||"")}function S(t){var e=x(t),n=e[0],r=e[1];return n&&(n.classList.remove(m.config.errorClass),n.classList.remove(m.config.successClass)),r&&(r.innerHTML="",r.style.display="none"),e}function k(t){var e=S(t)[0];e&&e.classList.add(m.config.successClass)}return y(form,t,r),m.validate=function(input,t){t=input&&!0===t||!0===input;var e=m.fields;!0!==input&&!1!==input&&(input instanceof HTMLElement?e=[input.pristine]:(input instanceof NodeList||input instanceof(window.$||Array)||input instanceof Array)&&(e=Array.from(input).map((function(t){return t.pristine}))));for(var n=!0,i=0;e[i];i++){var r=e[i];w(r)?!t&&k(r):(n=!1,!t&&E(r))}return n},m.getErrors=function(input){if(!input){for(var t=[],i=0;i<m.fields.length;i++){var e=m.fields[i];e.errors.length&&t.push({input:e.input,errors:e.errors})}return t}return input.tagName&&"select"===input.tagName.toLowerCase()?input.pristine.errors:input.length?input[0].pristine.errors:input.pristine.errors},m.addValidator=function(t,e,n,r,o){t instanceof HTMLElement?(t.pristine.validators.push({fn:e,msg:n,priority:r,halt:o}),t.pristine.validators.sort((function(a,b){return b.priority-a.priority}))):console.warn("The parameter elem must be a dom element")},m.addError=function(input,t){(input=input.length?input[0]:input).pristine.errors.push(t),E(input.pristine)},m.reset=function(){for(var i=0;m.fields[i];i++)m.fields[i].errorElements=null;Array.from(m.form.querySelectorAll("."+f)).map((function(t){t.parentNode.removeChild(t)})),Array.from(m.form.querySelectorAll("."+m.config.classTo)).map((function(t){t.classList.remove(m.config.successClass),t.classList.remove(m.config.errorClass)}))},m.destroy=function(){m.reset(),m.fields.forEach((function(t){delete t.input.pristine})),m.fields=[]},m.setGlobalConfig=function(t){c=t},m}return y("text",{fn:function(t){return!0},priority:0}),y("required",{fn:function(t){return"radio"===this.type||"checkbox"===this.type?r(this):void 0!==t&&""!==t},priority:99,halt:!0}),y("email",{fn:function(t){return!t||m.test(t)}}),y("number",{fn:function(t){return!t||!isNaN(parseFloat(t))},priority:2}),y("integer",{fn:function(t){return!t||/^\d+$/.test(t)}}),y("minlength",{fn:function(t,e){return!t||t.length>=parseInt(e)}}),y("maxlength",{fn:function(t,e){return!t||t.length<=parseInt(e)}}),y("min",{fn:function(t,e){return!t||("checkbox"===this.type?r(this)>=parseInt(e):parseFloat(t)>=parseFloat(e))}}),y("max",{fn:function(t,e){return!t||("checkbox"===this.type?r(this)<=parseInt(e):parseFloat(t)<=parseFloat(e))}}),y("pattern",{fn:function(t,pattern){var e=pattern.match(new RegExp("^/(.*?)/([gimy]*)$"));return!t||new RegExp(e[1],e[2]).test(t)}}),_.addValidator=function(t,e,n,r,o){y(t,{fn:e,msg:n,priority:r,halt:o})},_}()},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var i=0;i<this._inner.length;i++){if(this._inner[i]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var i=0;i<this._inner.length;i++)if(this._inner[i]===t){this._inner.splice(i,1);break}},t}()},function(t,e,n){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";n.r(e),n.d(e,"ShareNetwork",(function(){return o}));var i={baidu:"http://cang.baidu.com/do/add?iu=@u&it=@t",buffer:"https://bufferapp.com/add?text=@t&url=@u",email:"mailto:?subject=@t&body=@u%0D%0A@d",evernote:"https://www.evernote.com/clip.action?url=@u&title=@t",facebook:"https://www.facebook.com/sharer/sharer.php?u=@u&title=@t&description=@d&quote=@q&hashtag=@h",flipboard:"https://share.flipboard.com/bookmarklet/popout?v=2&url=@u&title=@t",hackernews:"https://news.ycombinator.com/submitlink?u=@u&t=@t",instapaper:"http://www.instapaper.com/edit?url=@u&title=@t&description=@d",line:"http://line.me/R/msg/text/?@t%0D%0A@u%0D%0A@d",linkedin:"https://www.linkedin.com/shareArticle?url=@u",messenger:"fb-messenger://share/?link=@u",odnoklassniki:"https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=@u&st.comments=@t",pinterest:"https://pinterest.com/pin/create/button/?url=@u&media=@m&description=@t",pocket:"https://getpocket.com/save?url=@u&title=@t",quora:"https://www.quora.com/share?url=@u&title=@t",reddit:"https://www.reddit.com/submit?url=@u&title=@t",skype:"https://web.skype.com/share?url=@t%0D%0A@u%0D%0A@d",sms:"sms:?body=@t%0D%0A@u%0D%0A@d",stumbleupon:"https://www.stumbleupon.com/submit?url=@u&title=@t",telegram:"https://t.me/share/url?url=@u&text=@t%0D%0A@d",tumblr:"https://www.tumblr.com/share/link?url=@u&name=@t&description=@d",twitter:"https://twitter.com/intent/tweet?text=@t&url=@u&hashtags=@h@tu",viber:"viber://forward?text=@t%0D%0A@u%0D%0A@d",vk:"https://vk.com/share.php?url=@u&title=@t&description=@d&image=@m&noparse=true",weibo:"http://service.weibo.com/share/share.php?url=@u&title=@t&pic=@m",whatsapp:"https://api.whatsapp.com/send?text=@t%0D%0A@u%0D%0A@d",wordpress:"https://wordpress.com/press-this.php?u=@u&t=@t&s=@d&i=@m",xing:"https://www.xing.com/social/share/spi?op=share&url=@u&title=@t",yammer:"https://www.yammer.com/messages/new?login=true&status=@t%0D%0A@u%0D%0A@d"},r="undefined"!=typeof window?window:null,o={name:"ShareNetwork",props:{network:{type:String,required:!0},url:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,default:""},quote:{type:String,default:""},hashtags:{type:String,default:""},twitterUser:{type:String,default:""},media:{type:String,default:""},tag:{type:String,default:"a"},popup:{type:Object,default:function(){return{width:626,height:436}}}},data:function(){return{popupTop:0,popupLeft:0,popupWindow:void 0,popupInterval:null}},computed:{networks:function(){return this.$SocialSharing?this.$SocialSharing.options.networks:i},key:function(){return this.network.toLowerCase()},rawLink:function(){var t=navigator.userAgent.toLowerCase();return"sms"===this.key&&(t.indexOf("iphone")>-1||t.indexOf("ipad")>-1)?this.networks[this.key].replace(":?",":&"):this.networks[this.key]},shareLink:function(){var t=this.rawLink;return"twitter"===this.key&&(this.hashtags.length||(t=t.replace("&hashtags=@h","")),this.twitterUser.length||(t=t.replace("@tu",""))),t.replace(/@tu/g,"&via="+encodeURIComponent(this.twitterUser)).replace(/@u/g,encodeURIComponent(this.url)).replace(/@t/g,encodeURIComponent(this.title)).replace(/@d/g,encodeURIComponent(this.description)).replace(/@q/g,encodeURIComponent(this.quote)).replace(/@h/g,this.encodedHashtags).replace(/@m/g,encodeURIComponent(this.media))},encodedHashtags:function(){return"facebook"===this.key&&this.hashtags.length?"%23"+this.hashtags.split(",")[0]:this.hashtags}},render:function(t){var e=this;if(!this.networks.hasOwnProperty(this.key))throw new Error("Network "+this.key+" does not exist");var n={class:"share-network-"+this.key,on:{click:function(){return e["http"===e.rawLink.substring(0,4)?"share":"touch"]()}}};return"a"===this.tag&&(n.attrs={href:"javascript:void(0)"}),t(this.tag,n,this.$slots.default)},methods:{resizePopup:function(){var t=r.innerWidth||document.documentElement.clientWidth||r.screenX,e=r.innerHeight||document.documentElement.clientHeight||r.screenY,n=t/r.screen.availWidth;this.popupLeft=(t-this.popup.width)/2/n+(void 0!==r.screenLeft?r.screenLeft:r.screenX),this.popupTop=(e-this.popup.height)/2/n+(void 0!==r.screenTop?r.screenTop:r.screenY)},share:function(){var t=this;this.resizePopup(),this.popupWindow&&this.popupInterval&&(clearInterval(this.popupInterval),this.popupWindow.close(),this.emit("change")),this.popupWindow=r.open(this.shareLink,"sharer-"+this.key,",height="+this.popup.height+",width="+this.popup.width+",left="+this.popupLeft+",top="+this.popupTop+",screenX="+this.popupLeft+",screenY="+this.popupTop),this.popupWindow&&(this.popupWindow.focus(),this.popupInterval=setInterval((function(){t.popupWindow&&!t.popupWindow.closed||(clearInterval(t.popupInterval),t.popupWindow=null,t.emit("close"))}),500),this.emit("open"))},touch:function(){window.open(this.shareLink,"_blank"),this.emit("open")},emit:function(t){this.$root.$emit("share_network_"+t,this.key,this.url),this.$emit(t,this.key,this.url)}}};e.default={install:function(t,e){t.component(o.name,o),t.prototype.$SocialSharing={options:{networks:e&&e.hasOwnProperty("networks")?Object.assign(i,e.networks):i}}}}}])},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports=n(616).Observable},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)};function o(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}},function(t,e,n){"use strict";t.exports=function(data,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var e,n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(e=t.cmp,function(t){return function(a,b){var n={key:a,value:t[a]},r={key:b,value:t[b]};return e(n,r)}}),o=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var i,l;if(Array.isArray(e)){for(l="[",i=0;i<e.length;i++)i&&(l+=","),l+=t(e[i])||"null";return l+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(e)-1,f=Object.keys(e).sort(r&&r(e));for(l="",i=0;i<f.length;i++){var h=f[i],d=t(e[h]);d&&(l&&(l+=","),l+=JSON.stringify(h)+":"+d)}return o.splice(c,1),"{"+l+"}"}}(data)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(617),o=n(2),l=n(618);function c(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var h,d,m,v,y,_=this;return r.__generator(this,(function(w){switch(w.label){case 0:return h=n.fragmentMap,d=n.contextValue,m=n.variableValues,v={},y=function(t){return r.__awaiter(_,void 0,void 0,(function(){var y,_,w,x,E;return r.__generator(this,(function(r){switch(r.label){case 0:return o.shouldInclude(t,m)?o.isField(t)?[4,f(t,e,n)]:[3,2]:[2];case 1:return y=r.sent(),_=o.resultKeyNameFromField(t),void 0!==y&&(void 0===v[_]?v[_]=y:l.merge(v[_],y)),[2];case 2:if(o.isInlineFragment(t))w=t;else if(!(w=h[t.name.value]))throw new Error("No fragment named "+t.name.value);return x=w.typeCondition.name.value,n.fragmentMatcher(e,x,d)?[4,c(w.selectionSet,e,n)]:[3,4];case 3:E=r.sent(),l.merge(v,E),r.label=4;case 4:return[2]}}))}))},[4,Promise.all(t.selections.map(y))];case 1:return w.sent(),n.resultMapper?[2,n.resultMapper(v,e)]:[2,v]}}))}))}function f(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var l,f,d,m,v,y,_;return r.__generator(this,(function(r){switch(r.label){case 0:return l=n.variableValues,f=n.contextValue,d=n.resolver,m=t.name.value,v=o.argumentsObjectFromField(t,l),y={isLeaf:!t.selectionSet,resultKey:o.resultKeyNameFromField(t),directives:o.getDirectiveInfoFromField(t,l),field:t},[4,d(m,e,v,f,y)];case 1:return _=r.sent(),t.selectionSet?null==_?[2,_]:Array.isArray(_)?[2,h(t,_,n)]:[2,c(t.selectionSet,_,n)]:[2,_]}}))}))}function h(t,e,n){return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?h(t,e,n):c(t.selectionSet,e,n)})))}e.graphql=function(t,e,n,r,l,f){void 0===f&&(f={});var h=o.getMainDefinition(e),d=o.getFragmentDefinitions(e),m={fragmentMap:o.createFragmentMap(d),contextValue:r,variableValues:l,resultMapper:f.resultMapper,resolver:t,fragmentMatcher:f.fragmentMatcher||function(){return!0}};return c(h.selectionSet,n,m)}},function(t,e,n){"use strict";var r=n(619)(n(620)),o=n(49),l=o.ApolloLink,c=o.Observable,f=n(682),h=f.selectURI,d=f.selectHttpOptionsAndBody,m=f.fallbackHttpConfig,v=f.serializeFetchParameter,y=f.createSignalIfSupported,_=f.parseAndCheckHttpResponse,w=n(621),x=w.extractFiles,E=w.isExtractableFile,S=w.ReactNativeFile;function k(t,e,n){t.append(e,n,n.name)}e.ReactNativeFile=S,e.isExtractableFile=E,e.formDataAppendFile=k,e.createUploadLink=function(t){var e=void 0===t?{}:t,n=e.uri,o=void 0===n?"/graphql":n,f=e.isExtractableFile,w=void 0===f?E:f,S=e.FormData,A=e.formDataAppendFile,O=void 0===A?k:A,T=e.fetch,C=e.fetchOptions,P=e.credentials,I=e.headers,M={http:{includeExtensions:e.includeExtensions},options:C,credentials:P,headers:I};return new l((function(t){var e=h(t,o),n=t.getContext(),l=n.clientAwareness,f=(l=void 0===l?{}:l).name,E=l.version,k=n.headers,A={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:(0,r.default)({},f&&{"apollographql-client-name":f},{},E&&{"apollographql-client-version":E},{},k)},C=d(t,m,M,A),P=C.options,body=C.body,I=x(body,"",w),j=I.clone,D=I.files,F=v(j,"Payload");if(D.size){delete P.headers["content-type"];var form=new(S||FormData);form.append("operations",F);var map={},i=0;D.forEach((function(t){map[++i]=t})),form.append("map",JSON.stringify(map)),i=0,D.forEach((function(t,e){O(form,++i,e)})),P.body=form}else P.body=F;return new c((function(n){var r;if(!P.signal){var o=y().controller;o&&(r=o,P.signal=r.signal)}return(T||fetch)(e,P).then((function(e){return t.setContext({response:e}),e})).then(_(t)).then((function(t){n.next(t),n.complete()})).catch((function(t){"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&n.next(t.result),n.error(t))})),function(){r&&r.abort()}}))}))}},,function(t,e,n){"use strict";var r=n(23);n(52),n(6),n(93);function o(t){return null!==t&&"object"===Object(r.a)(t)}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!o(e))return l(t,{},n,r);var c=Object.assign({},e);for(var f in t)if("__proto__"!==f&&"constructor"!==f){var h=t[f];null!==h&&(r&&r(c,f,h,n)||(Array.isArray(h)&&Array.isArray(c[f])?c[f]=c[f].concat(h):o(h)&&o(c[f])?c[f]=l(h,c[f],(n?"".concat(n,"."):"")+f.toString(),r):c[f]=h))}return c}function c(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(p,e){return l(p,e,"",t)}),{})}}var f=c();f.fn=c((function(t,e,n,r){if(void 0!==t[e]&&"function"==typeof n)return t[e]=n(t[e]),!0})),f.arrayFn=c((function(t,e,n,r){if(Array.isArray(t[e])&&"function"==typeof n)return t[e]=n(t[e]),!0})),f.extend=c,e.a=f},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=6)}([function(t,e,n){"use strict";function r(){h=!1}function i(t){if(t){if(t!==f){if(t.length!==m.length)throw new Error("Custom alphabet for shortid must be "+m.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,n){return e!==n.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+m.length+" unique characters. These characters were not unique: "+e.join(", "));f=t,r()}}else f!==m&&(f=m,r())}function o(t){return i(t),f}function a(t){d.seed(t),p!==t&&(r(),p=t)}function s(){f||i(m);for(var t,e=f.split(""),n=[],r=d.nextValue();e.length>0;)r=d.nextValue(),t=Math.floor(r*e.length),n.push(e.splice(t,1)[0]);return n.join("")}function l(){return h||(h=s())}function u(t){return l()[t]}function c(){return f||m}var f,p,h,d=n(19),m="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";t.exports={get:c,characters:o,seed:a,lookup:u,shuffled:l}},function(t,e,n){"use strict";var r=n(5),i=n.n(r);e.a={animateIn:function(t){i()({targets:t,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(t,e){i()({targets:t,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateOutBottom:function(t,e){i()({targets:t,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:e})},animateReset:function(t){i()({targets:t,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(t,e,n){i()({targets:t,duration:10,easing:"easeOutQuad",left:e,opacity:n})},animatePanEnd:function(t,e){i()({targets:t,opacity:0,duration:300,easing:"easeOutExpo",complete:e})},clearAnimation:function(t){var e=i.a.timeline();t.forEach((function(t){e.add({targets:t.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){t.remove()}})}))}}},function(t,e,n){"use strict";t.exports=n(16)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(1),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(2);n(11).polyfill();var s=function t(e){var n=this;return this.id=a.generate(),this.options=e,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,c(this),u(this),this.group=function(e){e||(e={}),e.globalToasts||(e.globalToasts={}),Object.assign(e.globalToasts,n.global);var r=new t(e);return n.groups.push(r),r},this.register=function(t,e,r){return f(n,t,e,r=r||{})},this.show=function(t,e){return l(n,t,e)},this.success=function(t,e){return(e=e||{}).type="success",l(n,t,e)},this.info=function(t,e){return(e=e||{}).type="info",l(n,t,e)},this.error=function(t,e){return(e=e||{}).type="error",l(n,t,e)},this.remove=function(t){n.toasts=n.toasts.filter((function(e){return e.el.hash!==t.hash})),t.parentNode&&t.parentNode.removeChild(t)},this.clear=function(t){return i.a.clearAnimation(n.toasts,(function(){t&&t()})),n.toasts=[],!0},this},l=function(t,e,i){var a=null;if("object"!==(void 0===(i=i||{})?"undefined":o(i)))return console.error("Options should be a type of object. given : "+i),null;t.options.singleton&&t.toasts.length>0&&(t.cached_options=i,t.toasts[t.toasts.length-1].goAway(0));var s=Object.assign({},t.options);return Object.assign(s,i),a=n.i(r.a)(t,e,s),t.toasts.push(a),a},u=function(t){var e=t.options.globalToasts,n=function(e,n){return"string"==typeof n&&t[n]?t[n].apply(t,[e,{}]):l(t,e,n)};e&&(t.global={},Object.keys(e).forEach((function(r){t.global[r]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e[r].apply(null,[t,n])}})))},c=function(t){var e=document.createElement("div");e.id=t.id,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","false"),document.body.appendChild(e),t.container=e},f=function(t,e,n,r){t.options.globalToasts||(t.options.globalToasts={}),t.options.globalToasts[e]=function(t,e){var i=null;return"string"==typeof n&&(i=n),"function"==typeof n&&(i=n(t)),e(i,r)},u(t)}},function(t,e,n){n(22);var r=n(21)(null,null,null,null);t.exports=r.exports},function(t,e,n){(function(n){var r,i,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:void 0!==n&&null!=n?n:t},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(t){return a.SYMBOL_PREFIX+(t||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var t=a.global.Symbol.iterator;t||(t=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&a.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(t){var e=0;return a.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},a.iteratorPrototype=function(t){return a.initSymbolIterator(),(t={next:t})[a.global.Symbol.iterator]=function(){return this},t},a.array=a.array||{},a.iteratorFromArray=function(t,e){a.initSymbolIterator(),t instanceof String&&(t+="");var n=0,r={next:function(){if(n<t.length){var i=n++;return{value:e(i,t[i]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(t,e,n,r){if(e){for(n=a.global,t=t.split("."),r=0;r<t.length-1;r++){var i=t[r];i in n||(n[i]={}),n=n[i]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&a.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},a.polyfill("Array.prototype.keys",(function(t){return t||function(){return a.iteratorFromArray(this,(function(t){return t}))}}),"es6-impl","es3");var s=this;!function(n,a){i=[],void 0!==(o="function"==typeof(r=a)?r.apply(e,i):r)&&(t.exports=o)}(0,(function(){function t(t){if(!N.col(t))try{return document.querySelectorAll(t)}catch(t){}}function e(t,e){for(var n=t.length,r=2<=arguments.length?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in t){var a=t[o];e.call(r,a,o,t)&&i.push(a)}return i}function n(t){return t.reduce((function(t,e){return t.concat(N.arr(e)?n(e):e)}),[])}function r(e){return N.arr(e)?e:(N.str(e)&&(e=t(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function i(t,e){return t.some((function(t){return t===e}))}function o(t){var e,n={};for(e in t)n[e]=t[e];return n}function a(t,e){var n,r=o(t);for(n in t)r[n]=e.hasOwnProperty(n)?e[n]:t[n];return r}function l(t,e){var n,r=o(t);for(n in e)r[n]=N.und(t[n])?e[n]:t[n];return r}function u(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+(t=parseInt(e[1],16))+","+parseInt(e[2],16)+","+(e=parseInt(e[3],16))+",1)"}function c(t){function e(t,e,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:.5>n?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(n[1])/360;var r=parseInt(n[2])/100,i=parseInt(n[3])/100;if(n=n[4]||1,0==r)i=r=t=i;else{var o=.5>i?i*(1+r):i+r-i*r,a=2*i-o;i=e(a,o,t+1/3),r=e(a,o,t),t=e(a,o,t-1/3)}return"rgba("+255*i+","+255*r+","+255*t+","+n+")"}function f(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function p(t){return-1<t.indexOf("translate")||"perspective"===t?"px":-1<t.indexOf("rotate")||-1<t.indexOf("skew")?"deg":void 0}function h(t,e){return N.fnc(t)?t(e.target,e.id,e.total):t}function d(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function m(t,e){return N.dom(t)&&i(L,e)?"transform":N.dom(t)&&(t.getAttribute(e)||N.svg(t)&&t[e])?"attribute":N.dom(t)&&"transform"!==e&&d(t,e)?"css":null!=t[e]?"object":void 0}function v(t,n){var r=p(n);if(r=-1<n.indexOf("scale")?1:0+r,!(t=t.style.transform))return r;for(var i=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;i=s.exec(t);)o.push(i[1]),a.push(i[2]);return(t=e(a,(function(t,e){return o[e]===n}))).length?t[0]:r}function g(t,e){switch(m(t,e)){case"transform":return v(t,e);case"css":return d(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function y(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=f(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(n[0],"")),n[0][0]){case"+":return e+t+r;case"-":return e-t+r;case"*":return e*t+r}}function b(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _(t){t=t.points;for(var e,n=0,r=0;r<t.numberOfItems;r++){var i=t.getItem(r);0<r&&(n+=b(e,i)),e=i}return n}function w(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return b({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return _(t);case"polygon":var e=t.points;return _(t)+b(e.getItem(e.numberOfItems-1),e.getItem(0))}}function x(t,e){function n(n){return n=void 0===n?0:n,t.el.getPointAtLength(1<=e+n?e+n:0)}var r=n(),i=n(-1),o=n(1);switch(t.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI}}function E(t,e){var n,r=/-?\d*\.?\d+/g;if(n=N.pth(t)?t.totalLength:t,N.col(n))if(N.rgb(n)){var i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=i?"rgba("+i[1]+",1)":n}else n=N.hex(n)?u(n):N.hsl(n)?c(n):void 0;else i=(i=f(n))?n.substr(0,n.length-i.length):n,n=e&&!/\s/g.test(n)?i+e:i;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:N.str(t)||e?n.split(r):[]}}function S(t){return e(t=t?n(N.arr(t)?t.map(r):r(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function k(t){var e=S(t);return e.map((function(t,n){return{target:t,id:n,total:e.length}}))}function A(t,e){var n=o(e);if(N.arr(t)){var i=t.length;2!==i||N.obj(t[0])?N.fnc(e.duration)||(n.duration=e.duration/i):t={value:t}}return r(t).map((function(t,n){return n=n?0:e.delay,t=N.obj(t)&&!N.pth(t)?t:{value:t},N.und(t.delay)&&(t.delay=n),t})).map((function(t){return l(t,n)}))}function O(t,e){var n,r={};for(n in t){var i=h(t[n],e);N.arr(i)&&(i=i.map((function(t){return h(t,e)})),1===i.length&&(i=i[0])),r[n]=i}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function T(t){return N.arr(t)?B.apply(this,t):V[t]}function C(t,e){var n;return t.tweens.map((function(r){var i=(r=O(r,e)).value,o=g(e.target,t.name),a=n?n.to.original:o,s=(a=N.arr(i)?i[0]:a,y(N.arr(i)?i[1]:i,a));return o=f(s)||f(a)||f(o),r.from=E(a,o),r.to=E(s,o),r.start=n?n.end:t.offset,r.end=r.start+r.delay+r.duration,r.easing=T(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=N.pth(i),r.isColor=N.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function P(t,r){return e(n(t.map((function(t){return r.map((function(e){var n=m(t.target,e.name);if(n){var r=C(e,t);e={type:n,property:e.name,animatable:t,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else e=void 0;return e}))}))),(function(t){return!N.und(t)}))}function I(t,e,n,r){var i="delay"===t;return e.length?(i?Math.min:Math.max).apply(Math,e.map((function(e){return e[t]}))):i?r.delay:n.offset+r.delay+r.duration}function M(t){var e,n=a(F,t),r=a(R,t),i=k(t.targets),o=[],s=l(n,r);for(e in t)s.hasOwnProperty(e)||"targets"===e||o.push({name:e,offset:s.offset,tweens:A(t[e],r)});return l(n,{children:[],animatables:i,animations:t=P(i,o),duration:I("duration",t,n,r),delay:I("delay",t,n,r)})}function j(t){function n(){return window.Promise&&new Promise((function(t){return f=t}))}function r(t){return h.reversed?h.duration-t:t}function i(t){for(var n=0,r={},i=h.animations,o=i.length;n<o;){var a=i[n],s=a.animatable,l=(c=a.tweens)[u=c.length-1];u&&(l=e(c,(function(e){return t<e.end}))[0]||l);for(var c=Math.min(Math.max(t-l.start-l.delay,0),l.duration)/l.duration,f=isNaN(c)?1:l.easing(c,l.elasticity),p=(c=l.to.strings,l.round),u=[],m=void 0,v=(m=l.to.numbers.length,0);v<m;v++){var g=void 0,y=(g=l.to.numbers[v],l.from.numbers[v]);g=l.isPath?x(l.value,f*g):y+f*(g-y),p&&(l.isColor&&2<v||(g=Math.round(g*p)/p)),u.push(g)}if(l=c.length)for(m=c[0],f=0;f<l;f++)p=c[f+1],v=u[f],isNaN(v)||(m=p?m+(v+p):m+(v+" "));else m=u[0];z[a.type](s.target,a.property,m,r,s.id),a.currentValue=m,n++}if(n=Object.keys(r).length)for(i=0;i<n;i++)D||(D=d(document.body,"transform")?"transform":"-webkit-transform"),h.animatables[i].target.style[D]=r[i].join(" ");h.currentTime=t,h.progress=t/h.duration*100}function o(t){h[t]&&h[t](h)}function a(){h.remaining&&!0!==h.remaining&&h.remaining--}function s(t){var e=h.duration,s=h.offset,d=s+h.delay,m=h.currentTime,v=h.reversed,g=r(t);if(h.children.length){var y=h.children,b=y.length;if(g>=h.currentTime)for(var _=0;_<b;_++)y[_].seek(g);else for(;b--;)y[b].seek(g)}(g>=d||!e)&&(h.began||(h.began=!0,o("begin")),o("run")),g>s&&g<e?i(g):(g<=s&&0!==m&&(i(0),v&&a()),(g>=e&&m!==e||!e)&&(i(e),v||a())),o("update"),t>=e&&(h.remaining?(u=l,"alternate"===h.direction&&(h.reversed=!h.reversed)):(h.pause(),h.completed||(h.completed=!0,o("complete"),"Promise"in window&&(f(),p=n()))),c=0)}t=void 0===t?{}:t;var l,u,c=0,f=null,p=n(),h=M(t);return h.reset=function(){var t=h.direction,e=h.loop;for(h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.completed=!1,h.reversed="reverse"===t,h.remaining="alternate"===t&&1===e?2:e,i(0),t=h.children.length;t--;)h.children[t].reset()},h.tick=function(t){l=t,u||(u=l),s((c+l-u)*j.speed)},h.seek=function(t){s(r(t))},h.pause=function(){var t=U.indexOf(h);-1<t&&U.splice(t,1),h.paused=!0},h.play=function(){h.paused&&(h.paused=!1,u=0,c=r(h.currentTime),U.push(h),q||$())},h.reverse=function(){h.reversed=!h.reversed,u=0,c=r(h.currentTime)},h.restart=function(){h.pause(),h.reset(),h.play()},h.finished=p,h.reset(),h.autoplay&&h.play(),h}var D,F={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},R={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},L="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),N={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return N.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||N.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return N.hex(t)||N.rgb(t)||N.hsl(t)}},B=function(){function t(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}return function(e,n,r,i){if(0<=e&&1>=e&&0<=r&&1>=r){var o=new Float32Array(11);if(e!==n||r!==i)for(var a=0;11>a;++a)o[a]=t(.1*a,e,r);return function(a){if(e===n&&r===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,l=1;10!==l&&o[l]<=a;++l)s+=.1;--l,l=s+(a-o[l])/(o[l+1]-o[l])*.1;var u=3*(1-3*r+3*e)*l*l+2*(3*r-6*e)*l+3*e;if(.001<=u){for(s=0;4>s&&0!=(u=3*(1-3*r+3*e)*l*l+2*(3*r-6*e)*l+3*e);++s){var c=t(l,e,r)-a;l-=c/u}a=l}else if(0===u)a=l;else{l=s,s+=.1;var f=0;do{0<(u=t(c=l+(s-l)/2,e,r)-a)?s=c:l=c}while(1e-7<Math.abs(u)&&10>++f);a=c}return t(a,n,i)}}}}(),V=function(){function t(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var e,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],t],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,n){return 1-t(1-e,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,n){return.5>e?t(2*e,n)/2:1-t(-2*e+2,n)/2}]},i={linear:B(.25,.25,.75,.75)},o={};for(e in r)o.type=e,r[o.type].forEach(function(t){return function(e,r){i["ease"+t.type+n[r]]=N.fnc(e)?e:B.apply(s,e)}}(o)),o={type:o.type};return i}(),z={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,i){r[i]||(r[i]=[]),r[i].push(e+"("+n+")")}},U=[],q=0,$=function(){function t(){q=requestAnimationFrame(e)}function e(e){var n=U.length;if(n){for(var r=0;r<n;)U[r]&&U[r].tick(e),r++;t()}else cancelAnimationFrame(q),q=0}return t}();return j.version="2.2.0",j.speed=1,j.running=U,j.remove=function(t){t=S(t);for(var e=U.length;e--;)for(var n=U[e],r=n.animations,o=r.length;o--;)i(t,r[o].animatable.target)&&(r.splice(o,1),r.length||n.pause())},j.getValue=g,j.path=function(e,n){var r=N.str(e)?t(e)[0]:e,i=n||100;return function(t){return{el:r,property:t,totalLength:w(r)*(i/100)}}},j.setDashoffset=function(t){var e=w(t);return t.setAttribute("stroke-dasharray",e),e},j.bezier=B,j.easings=V,j.timeline=function(t){var e=j(t);return e.pause(),e.duration=0,e.add=function(n){return e.children.forEach((function(t){t.began=!0,t.completed=!0})),r(n).forEach((function(n){var r=l(n,a(R,t||{}));r.targets=r.targets||t.targets,n=e.duration;var i=r.offset;r.autoplay=!1,r.direction=e.direction,r.offset=N.und(i)?n:y(i,n),e.began=!0,e.completed=!0,e.seek(r.offset),(r=j(r)).began=!0,r.completed=!0,r.duration>n&&(e.duration=r.duration),e.children.push(r)})),e.seek(0),e.reset(),e.autoplay&&e.restart(),e},e},j.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},j}))}).call(e,n(25))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(4),o=n.n(i),a={install:function(t,e){e||(e={});var n=new r.a(e);t.component("toasted",o.a),t.toasted=t.prototype.$toasted=n}};"undefined"!=typeof window&&window.Vue&&(window.Toasted=a),e.default=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=this,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(t,e,n){return setTimeout((function(){n.cached_options.position&&n.cached_options.position.includes("bottom")?r.a.animateOutBottom(t,(function(){n.remove(t)})):r.a.animateOut(t,(function(){n.remove(t)}))}),e),!0},s=function(t,e){return("object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":o(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?t.appendChild(e):t.innerHTML=e,i},l=function(t,e){var n=!1;return{el:t,text:function(e){return s(t,e),this},goAway:function(){return n=!0,a(t,arguments.length>0&&void 0!==arguments[0]?arguments[0]:800,e)},remove:function(){e.remove(t)},disposed:function(){return n}}}},function(t,e,n){"use strict";var r=n(12),i=n.n(r),o=n(1),a=n(7),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=n(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}});var u={},c=null,f=function(t){return t.className=t.className||null,t.onComplete=t.onComplete||null,t.position=t.position||"top-right",t.duration=t.duration||null,t.keepOnHover=t.keepOnHover||!1,t.theme=t.theme||"toasted-primary",t.type=t.type||"default",t.containerClass=t.containerClass||null,t.fullWidth=t.fullWidth||!1,t.icon=t.icon||null,t.action=t.action||null,t.fitToScreen=t.fitToScreen||null,t.closeOnSwipe=void 0===t.closeOnSwipe||t.closeOnSwipe,t.iconPack=t.iconPack||"material",t.className&&"string"==typeof t.className&&(t.className=t.className.split(" ")),t.className||(t.className=[]),t.theme&&t.className.push(t.theme.trim()),t.type&&t.className.push(t.type),t.containerClass&&"string"==typeof t.containerClass&&(t.containerClass=t.containerClass.split(" ")),t.containerClass||(t.containerClass=[]),t.position&&t.containerClass.push(t.position.trim()),t.fullWidth&&t.containerClass.push("full-width"),t.fitToScreen&&t.containerClass.push("fit-to-screen"),u=t,t},p=function(t,e){var r=document.createElement("div");if(r.classList.add("toasted"),r.hash=l.generate(),e.className&&e.className.forEach((function(t){r.classList.add(t)})),("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":s(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?r.appendChild(t):r.innerHTML=t,h(e,r),e.closeOnSwipe){var u=new i.a(r,{prevent_default:!1});u.on("pan",(function(t){var e=t.deltaX;r.classList.contains("panning")||r.classList.add("panning");var n=1-Math.abs(e/80);n<0&&(n=0),o.a.animatePanning(r,e,n)})),u.on("panend",(function(t){var n=t.deltaX;Math.abs(n)>80?o.a.animatePanEnd(r,(function(){"function"==typeof e.onComplete&&e.onComplete(),r.parentNode&&c.remove(r)})):(r.classList.remove("panning"),o.a.animateReset(r))}))}if(Array.isArray(e.action))e.action.forEach((function(t){var e=m(t,n.i(a.a)(r,c));e&&r.appendChild(e)}));else if("object"===s(e.action)){var f=m(e.action,n.i(a.a)(r,c));f&&r.appendChild(f)}return r},h=function(t,e){if(t.icon){var n=document.createElement("i");switch(n.setAttribute("aria-hidden","true"),t.iconPack){case"fontawesome":n.classList.add("fa");var r=t.icon.name?t.icon.name:t.icon;r.includes("fa-")?n.classList.add(r.trim()):n.classList.add("fa-"+r.trim());break;case"mdi":n.classList.add("mdi");var i=t.icon.name?t.icon.name:t.icon;i.includes("mdi-")?n.classList.add(i.trim()):n.classList.add("mdi-"+i.trim());break;case"custom-class":var o=t.icon.name?t.icon.name:t.icon;"string"==typeof o?o.split(" ").forEach((function(t){n.classList.add(t)})):Array.isArray(o)&&o.forEach((function(t){n.classList.add(t.trim())}));break;case"callback":var a=t.icon&&t.icon instanceof Function?t.icon:null;a&&(n=a(n));break;default:n.classList.add("material-icons"),n.textContent=t.icon.name?t.icon.name:t.icon}t.icon.after&&n.classList.add("after"),d(t,n,e)}},d=function(t,e,n){t.icon&&(t.icon.after&&t.icon.name?n.appendChild(e):(t.icon.name,n.insertBefore(e,n.firstChild)))},m=function(t,e){if(!t)return null;var n=document.createElement("a");if(n.classList.add("action"),n.classList.add("ripple"),t.text&&(n.text=t.text),t.href&&(n.href=t.href),t.target&&(n.target=t.target),t.icon){n.classList.add("icon");var r=document.createElement("i");switch(u.iconPack){case"fontawesome":r.classList.add("fa"),t.icon.includes("fa-")?r.classList.add(t.icon.trim()):r.classList.add("fa-"+t.icon.trim());break;case"mdi":r.classList.add("mdi"),t.icon.includes("mdi-")?r.classList.add(t.icon.trim()):r.classList.add("mdi-"+t.icon.trim());break;case"custom-class":"string"==typeof t.icon?t.icon.split(" ").forEach((function(t){n.classList.add(t)})):Array.isArray(t.icon)&&t.icon.forEach((function(t){n.classList.add(t.trim())}));break;default:r.classList.add("material-icons"),r.textContent=t.icon}n.appendChild(r)}return t.class&&("string"==typeof t.class?t.class.split(" ").forEach((function(t){n.classList.add(t)})):Array.isArray(t.class)&&t.class.forEach((function(t){n.classList.add(t.trim())}))),t.push&&n.addEventListener("click",(function(n){n.preventDefault(),u.router?(u.router.push(t.push),t.push.dontClose||e.goAway(0)):console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")})),t.onClick&&"function"==typeof t.onClick&&n.addEventListener("click",(function(n){t.onClick&&(n.preventDefault(),t.onClick(n,e))})),n};e.a=function(t,e,r){c=t,r=f(r);var i=c.container;r.containerClass.unshift("toasted-container"),i.className!==r.containerClass.join(" ")&&(i.className="",r.containerClass.forEach((function(t){i.classList.add(t)})));var s=p(e,r);e&&i.appendChild(s),s.style.opacity=0,o.a.animateIn(s);var l=r.duration,u=void 0;if(null!==l){var h=function(){return setInterval((function(){null===s.parentNode&&window.clearInterval(u),s.classList.contains("panning")||(l-=20),l<=0&&(o.a.animateOut(s,(function(){"function"==typeof r.onComplete&&r.onComplete(),s.parentNode&&c.remove(s)})),window.clearInterval(u))}),20)};u=h(),r.keepOnHover&&(s.addEventListener("mouseover",(function(){window.clearInterval(u)})),s.addEventListener("mouseout",(function(){u=h()})))}return n.i(a.a)(s,c)}},function(t,e,n){(t.exports=n(10)()).push([t.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){"use strict";function r(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var l=o[a],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(n[l]=i[l])}}return n}function i(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}t.exports={assign:r,polyfill:i}},function(t,e,n){var r;!function(i,o,a,s){"use strict";function l(t,e,n){return setTimeout(h(t,n),e)}function u(t,e,n){return!!Array.isArray(t)&&(c(t,n[e],n),!0)}function c(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}function p(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&pt(r,n)}function h(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==yt?t.apply(e&&e[0]||s,e):t}function m(t,e){return t===s?e:t}function v(t,e,n){c(_(e),(function(e){t.addEventListener(e,n,!1)}))}function g(t,e,n){c(_(e),(function(e){t.removeEventListener(e,n,!1)}))}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function w(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function E(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];w(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function S(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<mt.length;){if((r=(n=mt[o])?n+i:e)in t)return r;o++}return s}function k(){return Et++}function A(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}function O(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function T(t){return new(t.options.inputClass||(At?U:Ot?G:kt?W:z))(t,C)}function C(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Ct&&r-i==0,a=e&(It|Mt)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,P(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function P(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=j(e)),i>1&&!n.firstMultiple?n.firstMultiple=j(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=D(r);e.timeStamp=_t(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=N(s,l),e.distance=L(s,l),I(n,e),e.offsetDirection=R(e.deltaX,e.deltaY);var u=F(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=bt(u.x)>bt(u.y)?u.x:u.y,e.scale=a?V(a.pointers,r):1,e.rotation=a?B(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,M(n,e);var c=t.element;y(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function I(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Ct&&o.eventType!==It||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function M(t,e){var n,r,i,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=Mt&&(l>Tt||a.velocity===s)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,f=F(l,u,c);r=f.x,i=f.y,n=bt(f.x)>bt(f.y)?f.x:f.y,o=R(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function j(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:gt(t.pointers[n].clientX),clientY:gt(t.pointers[n].clientY)},n++;return{timeStamp:_t(),pointers:e,center:D(e),deltaX:t.deltaX,deltaY:t.deltaY}}function D(t){var e=t.length;if(1===e)return{x:gt(t[0].clientX),y:gt(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:gt(n/e),y:gt(r/e)}}function F(t,e,n){return{x:e/t||0,y:n/t||0}}function R(t,e){return t===e?jt:bt(t)>=bt(e)?t<0?Dt:Ft:e<0?Rt:Lt}function L(t,e,n){n||(n=zt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function N(t,e,n){n||(n=zt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function B(t,e){return N(e[1],e[0],qt)+N(t[1],t[0],qt)}function V(t,e){return L(e[0],e[1],qt)/L(t[0],t[1],qt)}function z(){this.evEl=$t,this.evWin=Gt,this.pressed=!1,O.apply(this,arguments)}function U(){this.evEl=Qt,this.evWin=Yt,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=Xt,this.evWin=Jt,this.started=!1,O.apply(this,arguments)}function $(t,e){var n=x(t.touches),r=x(t.changedTouches);return e&(It|Mt)&&(n=E(n.concat(r),"identifier",!0)),[n,r]}function G(){this.evTarget=te,this.targetIds={},O.apply(this,arguments)}function H(t,e){var n=x(t.touches),r=this.targetIds;if(e&(Ct|Pt)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=x(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return y(t.target,l)})),e===Ct)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(It|Mt)&&delete r[a[i].identifier],i++;return s.length?[E(o.concat(s),"identifier",!0),s]:void 0}function W(){O.apply(this,arguments);var t=h(this.handler,this);this.touch=new G(this.manager,t),this.mouse=new z(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Q(t,e){t&Ct?(this.primaryTouch=e.changedPointers[0].identifier,Y.call(this,e)):t&(It|Mt)&&Y.call(this,e)}function Y(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches,i=function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)};setTimeout(i,ee)}}function K(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=ne&&a<=ne)return!0}return!1}function X(t,e){this.manager=t,this.set(e)}function J(t){if(b(t,se))return se;var e=b(t,ue),n=b(t,le);return e&&n?se:e||n?e?ue:le:b(t,ae)?ae:oe}function Z(t){this.options=pt({},this.defaults,t||{}),this.id=k(),this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=fe,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ve?"cancel":t&de?"end":t&pe?"move":t&he?"start":""}function et(t){return t==Lt?"down":t==Rt?"up":t==Dt?"left":t==Ft?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function rt(){Z.apply(this,arguments)}function it(){rt.apply(this,arguments),this.pX=null,this.pY=null}function ot(){rt.apply(this,arguments)}function at(){Z.apply(this,arguments),this._timer=null,this._input=null}function st(){rt.apply(this,arguments)}function ut(){rt.apply(this,arguments)}function lt(){Z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ct(t,e){return(e=e||{}).recognizers=m(e.recognizers,ct.defaults.preset),new ft(t,e)}function ft(t,e){this.options=pt({},ct.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=T(this),this.touchAction=new X(this,this.options.touchAction),ht(this,!0),c(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ht(t,e){var n,r=t.element;r.style&&(c(t.options.cssProps,(function(i,o){n=S(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function dt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var pt,mt=["","webkit","Moz","MS","ms","o"],vt=o.createElement("div"),yt="function",gt=Math.round,bt=Math.abs,_t=Date.now;pt="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var wt=f((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===s)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),xt=f((function(t,e){return wt(t,e,!0)}),"merge","Use `assign`."),Et=1,St=/mobile|tablet|ip(ad|hone|od)|android/i,kt="ontouchstart"in i,At=S(i,"PointerEvent")!==s,Ot=kt&&St.test(navigator.userAgent),Tt=25,Ct=1,Pt=2,It=4,Mt=8,jt=1,Dt=2,Ft=4,Rt=8,Lt=16,Nt=Dt|Ft,Bt=Rt|Lt,Vt=Nt|Bt,zt=["x","y"],qt=["clientX","clientY"];O.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(A(this.element),this.evWin,this.domHandler)}};var Ut={mousedown:Ct,mousemove:Pt,mouseup:It},$t="mousedown",Gt="mousemove mouseup";p(z,O,{handler:function(t){var e=Ut[t.type];e&Ct&&0===t.button&&(this.pressed=!0),e&Pt&&1!==t.which&&(e=It),this.pressed&&(e&It&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Ht={pointerdown:Ct,pointermove:Pt,pointerup:It,pointercancel:Mt,pointerout:Mt},Wt={2:"touch",3:"pen",4:"mouse",5:"kinect"},Qt="pointerdown",Yt="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(Qt="MSPointerDown",Yt="MSPointerMove MSPointerUp MSPointerCancel"),p(U,O,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Ht[r],o=Wt[t.pointerType]||t.pointerType,a="touch"==o,s=w(e,t.pointerId,"pointerId");i&Ct&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(It|Mt)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Kt={touchstart:Ct,touchmove:Pt,touchend:It,touchcancel:Mt},Xt="touchstart",Jt="touchstart touchmove touchend touchcancel";p(q,O,{handler:function(t){var e=Kt[t.type];if(e===Ct&&(this.started=!0),this.started){var n=$.call(this,t,e);e&(It|Mt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Zt={touchstart:Ct,touchmove:Pt,touchend:It,touchcancel:Mt},te="touchstart touchmove touchend touchcancel";p(G,O,{handler:function(t){var e=Zt[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;p(W,O,{handler:function(t,e,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)Q.call(this,e,n);else if(i&&K.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var re=S(vt.style,"touchAction"),ie=re!==s,oe="auto",ae="manipulation",se="none",ue="pan-x",le="pan-y",ce=function(){if(!ie)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();X.prototype={set:function(t){"compute"==t&&(t=this.compute()),ie&&this.manager.element.style&&ce[t]&&(this.manager.element.style[re]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return c(this.manager.recognizers,(function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),J(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,i=b(r,se)&&!ce[se],o=b(r,le)&&!ce[le],a=b(r,ue)&&!ce[ue];if(i){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(s&&l&&u)return}return a&&o?void 0:i||o&&n&Nt||a&&n&Bt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var fe=1,he=2,pe=4,de=8,me=de,ve=16;Z.prototype={defaults:{},set:function(t){return pt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(u(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=nt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return u(t,"dropRecognizeWith",this)||(t=nt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(u(t,"requireFailure",this))return this;var e=this.requireFail;return-1===w(e,t=nt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(u(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=w(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;r<de&&e(n.options.event+tt(r)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),r>=de&&e(n.options.event+tt(r))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|fe)))return!1;t++}return!0},recognize:function(t){var e=pt({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(me|ve|32)&&(this.state=fe),this.state=this.process(e),this.state&(he|pe|de|ve)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},p(rt,Z,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(he|pe),i=this.attrTest(t);return r&&(n&Mt||!i)?e|ve:r||i?n&It?e|de:e&he?e|pe:he:32}}),p(it,rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Vt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Nt&&e.push(le),t&Bt&&e.push(ue),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(e.direction&Nt?(i=0===o?jt:o<0?Dt:Ft,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?jt:a<0?Rt:Lt,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&he||!(this.state&he)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(ot,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&he)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(at,Z,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(It|Mt)&&!i)this.reset();else if(t.eventType&Ct)this.reset(),this._timer=l((function(){this.state=me,this.tryEmit()}),e.time,this);else if(t.eventType&It)return me;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===me&&(t&&t.eventType&It?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_t(),this.manager.emit(this.options.event,this._input)))}}),p(st,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&he)}}),p(ut,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Bt,pointers:1},getTouchAction:function(){return it.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Nt|Bt)?e=t.overallVelocity:n&Nt?e=t.overallVelocityX:n&Bt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&It},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(lt,Z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ae]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&Ct&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=It)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||L(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=l((function(){this.state=me,this.tryEmit()}),e.interval,this),he):me}return 32},failTimeout:function(){return this._timer=l((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==me&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ct.VERSION="2.0.7",ct.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[st,{enable:!1}],[ot,{enable:!1},["rotate"]],[ut,{direction:Nt}],[it,{direction:Nt},["swipe"]],[lt],[lt,{event:"doubletap",taps:2},["tap"]],[at]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ft.prototype={set:function(t){return pt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&me)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(he|pe|de)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Z)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(u(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(u(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=w(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return c(_(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==s){var n=this.handlers;return c(_(t),(function(t){e?n[t]&&n[t].splice(w(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&dt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},pt(ct,{INPUT_START:Ct,INPUT_MOVE:Pt,INPUT_END:It,INPUT_CANCEL:Mt,STATE_POSSIBLE:fe,STATE_BEGAN:he,STATE_CHANGED:pe,STATE_ENDED:de,STATE_RECOGNIZED:me,STATE_CANCELLED:ve,STATE_FAILED:32,DIRECTION_NONE:jt,DIRECTION_LEFT:Dt,DIRECTION_RIGHT:Ft,DIRECTION_UP:Rt,DIRECTION_DOWN:Lt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Bt,DIRECTION_ALL:Vt,Manager:ft,Input:O,TouchAction:X,TouchInput:G,MouseInput:z,PointerEventInput:U,TouchMouseInput:W,SingleTouchInput:q,Recognizer:Z,AttrRecognizer:rt,Tap:lt,Pan:it,Swipe:ut,Pinch:ot,Rotate:st,Press:at,on:v,off:g,each:c,merge:xt,extend:wt,assign:pt,inherit:p,bindFn:h,prefixed:S}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=ct,(r=function(){return ct}.call(e,n,e,t))!==s&&(t.exports=r)}(window,document)},function(t,e){t.exports=function(t,e,n){for(var r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*n/e.length),o="";;)for(var a=t(i),s=i;s--;)if((o+=e[a[s]&r]||"").length===+n)return o}},function(t,e,n){"use strict";function r(t){var e="",n=Math.floor(.001*(Date.now()-s));return n===o?i++:(i=0,o=n),e+=a(l),e+=a(t),i>0&&(e+=a(i)),e+a(n)}var i,o,a=n(15),s=(n(0),1567752802062),l=7;t.exports=r},function(t,e,n){"use strict";function r(t){for(var e,n=0,r="";!e;)r+=a(o,i.get(),1),e=t<Math.pow(16,n+1),n++;return r}var i=n(0),o=n(18),a=n(13);t.exports=r},function(t,e,n){"use strict";function r(e){return s.seed(e),t.exports}function i(e){return c=e,t.exports}function o(t){return void 0!==t&&s.characters(t),s.shuffled()}function a(){return l(c)}var s=n(0),l=n(14),u=n(17),c=n(20)||0;t.exports=a,t.exports.generate=a,t.exports.seed=r,t.exports.worker=i,t.exports.characters=o,t.exports.isValid=u},function(t,e,n){"use strict";function r(t){return!(!t||"string"!=typeof t||t.length<6||new RegExp("[^"+i.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t))}var i=n(0);t.exports=r},function(t,e,n){"use strict";var r,i="object"==typeof window&&(window.crypto||window.msCrypto);r=i&&i.getRandomValues?function(t){return i.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],n=0;n<t;n++)e.push(Math.floor(256*Math.random()));return e},t.exports=r},function(t,e,n){"use strict";function r(){return(o=(9301*o+49297)%233280)/233280}function i(t){o=t}var o=1;t.exports={nextValue:r,seed:i}},function(t,e,n){"use strict";t.exports=0},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach((function(t){var e=r[t];l[t]=function(){return e}})),s.computed=l}return{esModule:i,exports:o,options:s}}},function(t,e,n){var r=n(9);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),n(23)("df0682cc",r,!0,{})},function(t,e,n){function r(t){for(var e=0;e<t.length;e++){var n=t[e],r=c[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var t=document.createElement("style");return t.type="text/css",f.appendChild(t),t}function o(t){var e,n,r=document.querySelector("style["+g+'~="'+t.id+'"]');if(r){if(d)return m;r.parentNode.removeChild(r)}if(y){var o=h++;r=p||(p=i()),e=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),e=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function a(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),v.ssrId&&t.setAttribute(g,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(24),c={},f=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,h=0,d=!1,m=function(){},v=null,g="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,i){d=n,v=i||{};var o=u(t,e);return r(o),function(e){for(var n=[],i=0;i<o.length;i++){var a=o[i];(s=c[a.id]).refs--,n.push(s)}for(e?r(o=u(t,e)):o=[],i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete c[s.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],l={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=function(){return(r=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)},o=/-(\w)/g,l=/:(.*)/,c=/;(?![^(]*\))/g;function f(t,e){return e?e.toUpperCase():""}function s(t){for(var s,a={},e=0,n=t.split(c);e<n.length;e++){var r=n[e].split(l),i=r[0],h=r[1];(i=i.trim())&&("string"==typeof h&&(h=h.trim()),a[(s=i,s.replace(o,f))]=h)}return a}function a(){for(var t,e,a={},n=arguments.length;n--;)for(var o=0,l=Object.keys(arguments[n]);o<l.length;o++)switch(t=l[o]){case"class":case"style":case"directives":if(Array.isArray(a[t])||(a[t]=[]),"style"===t){var i=void 0;i=Array.isArray(arguments[n].style)?arguments[n].style:[arguments[n].style];for(var c=0;c<i.length;c++){var f=i[c];"string"==typeof f&&(i[c]=s(f))}arguments[n].style=i}a[t]=a[t].concat(arguments[n][t]);break;case"staticClass":if(!arguments[n][t])break;void 0===a[t]&&(a[t]=""),a[t]&&(a[t]+=" "),a[t]+=arguments[n][t].trim();break;case"on":case"nativeOn":a[t]||(a[t]={});for(var p=0,h=Object.keys(arguments[n][t]||{});p<h.length;p++)e=h[p],a[t][e]?a[t][e]=[].concat(a[t][e],arguments[n][t][e]):a[t][e]=arguments[n][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":a[t]||(a[t]={}),a[t]=r({},arguments[n][t],a[t]);break;default:a[t]||(a[t]=arguments[n][t])}return a}},function(t,e,n){(function(e){t.exports=function(){"use strict";var t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,h=u||f||Function("return this")(),d=Object.prototype.toString,m=Math.max,p=Math.min,b=function(){return h.Date.now()};function v(t,e,r){var i,a,o,l,s,u,c=0,f=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function v(e){var n=i,r=a;return i=a=void 0,c=e,l=t.apply(r,n)}function _(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-c>=o}function w(){var t=b();if(_(t))return x(t);s=setTimeout(w,function(t){var n=e-(t-u);return h?p(n,o-(t-c)):n}(t))}function x(t){return s=void 0,d&&i?v(t):(i=a=void 0,l)}function E(){var t=b(),n=_(t);if(i=arguments,a=this,u=t,n){if(void 0===s)return function(t){return c=t,s=setTimeout(w,e),f?v(t):l}(u);if(h)return s=setTimeout(w,e),v(u)}return void 0===s&&(s=setTimeout(w,e)),l}return e=y(e)||0,g(r)&&(f=!!r.leading,o=(h="maxWait"in r)?m(y(r.maxWait)||0,e):o,d="trailing"in r?!!r.trailing:d),E.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=u=a=s=void 0},E.flush=function(){return void 0===s?l:x(b())},E}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==o}(t))return r;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var u=l.test(t);return u||c.test(t)?s(t.slice(2),u?2:8):a.test(t)?r:+t}var _=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError(n);return g(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),v(t,e,{leading:i,maxWait:e,trailing:a})},w="Expected a function",x=NaN,E="[object Symbol]",S=/^\s+|\s+$/g,k=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,O=/^0o[0-7]+$/i,T=parseInt,C="object"==typeof t&&t&&t.Object===Object&&t,P="object"==typeof self&&self&&self.Object===Object&&self,q=C||P||Function("return this")(),I=Object.prototype.toString,M=Math.max,j=Math.min,D=function(){return q.Date.now()};function F(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function R(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&I.call(t)==E}(t))return x;if(F(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=F(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(S,"");var n=A.test(t);return n||O.test(t)?T(t.slice(2),n?2:8):k.test(t)?x:+t}var L=function(t,e,n){var r,i,a,o,l,s,u=0,c=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError(w);function d(e){var n=r,a=i;return r=i=void 0,u=e,o=t.apply(a,n)}function p(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-u>=a}function b(){var t=D();if(p(t))return m(t);l=setTimeout(b,function(t){var n=e-(t-s);return f?j(n,a-(t-u)):n}(t))}function m(t){return l=void 0,h&&r?d(t):(r=i=void 0,o)}function g(){var t=D(),n=p(t);if(r=arguments,i=this,s=t,n){if(void 0===l)return function(t){return u=t,l=setTimeout(b,e),c?d(t):o}(s);if(f)return l=setTimeout(b,e),d(s)}return void 0===l&&(l=setTimeout(b,e)),o}return e=R(e)||0,F(n)&&(c=!!n.leading,a=(f="maxWait"in n)?M(R(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=i=l=void 0},g.flush=function(){return void 0===l?o:m(D())},g},N=function(){};function B(t){t&&t.forEach((function(t){var e=Array.prototype.slice.call(t.addedNodes),n=Array.prototype.slice.call(t.removedNodes);if(function t(e){var n=void 0,r=void 0;for(n=0;n<e.length;n+=1){if((r=e[n]).dataset&&r.dataset.aos)return!0;if(r.children&&t(r.children))return!0}return!1}(e.concat(n)))return N()}))}function V(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}var z={isSupported:function(){return!!V()},ready:function(t,e){var n=window.document,r=new(V())(B);N=e,r.observe(n.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}},U=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},$=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},H=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,W=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,Q=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,Y=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function K(){return navigator.userAgent||navigator.vendor||window.opera||""}var X=new(function(){function t(){U(this,t)}return $(t,[{key:"phone",value:function(){var t=K();return!(!H.test(t)&&!W.test(t.substr(0,4)))}},{key:"mobile",value:function(){var t=K();return!(!Q.test(t)&&!Y.test(t.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}},{key:"ie11",value:function(){return"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style}}]),t}()),J=function(t,e){var n=void 0;return X.ie11()?(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{detail:e}):n=new CustomEvent(t,{detail:e}),document.dispatchEvent(n)},Z=function(t){return t.forEach((function(t,e){return function(t,e){var n=t.options,r=t.position,i=t.node,a=(t.data,function(){t.animated&&(function(t,e){e&&e.forEach((function(e){return t.classList.remove(e)}))}(i,n.animatedClassNames),J("aos:out",i),t.options.id&&J("aos:in:"+t.options.id,i),t.animated=!1)});n.mirror&&e>=r.out&&!n.once?a():e>=r.in?t.animated||(function(t,e){e&&e.forEach((function(e){return t.classList.add(e)}))}(i,n.animatedClassNames),J("aos:in",i),t.options.id&&J("aos:in:"+t.options.id,i),t.animated=!0):t.animated&&!n.once&&a()}(t,window.pageYOffset)}))},tt=function(t){for(var e=0,n=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-("BODY"!=t.tagName?t.scrollLeft:0),n+=t.offsetTop-("BODY"!=t.tagName?t.scrollTop:0),t=t.offsetParent;return{top:n,left:e}},et=function(t,e,n){var r=t.getAttribute("data-aos-"+e);if(void 0!==r){if("true"===r)return!0;if("false"===r)return!1}return r||n},nt=function(t,e){return t.forEach((function(t,n){var r=et(t.node,"mirror",e.mirror),i=et(t.node,"once",e.once),a=et(t.node,"id"),o=e.useClassNames&&t.node.getAttribute("data-aos"),l=[e.animatedClassName].concat(o?o.split(" "):[]).filter((function(t){return"string"==typeof t}));e.initClassName&&t.node.classList.add(e.initClassName),t.position={in:function(t,e,n){var r=window.innerHeight,i=et(t,"anchor"),a=et(t,"anchor-placement"),o=Number(et(t,"offset",a?0:e)),l=a||n,s=t;i&&document.querySelectorAll(i)&&(s=document.querySelectorAll(i)[0]);var u=tt(s).top-r;switch(l){case"top-bottom":break;case"center-bottom":u+=s.offsetHeight/2;break;case"bottom-bottom":u+=s.offsetHeight;break;case"top-center":u+=r/2;break;case"center-center":u+=r/2+s.offsetHeight/2;break;case"bottom-center":u+=r/2+s.offsetHeight;break;case"top-top":u+=r;break;case"bottom-top":u+=r+s.offsetHeight;break;case"center-top":u+=r+s.offsetHeight/2}return u+o}(t.node,e.offset,e.anchorPlacement),out:r&&function(t,e){window.innerHeight;var n=et(t,"anchor"),r=et(t,"offset",e),i=t;return n&&document.querySelectorAll(n)&&(i=document.querySelectorAll(n)[0]),tt(i).top+i.offsetHeight-r}(t.node,e.offset)},t.options={once:i,mirror:r,animatedClassNames:l,id:a}})),t},it=function(){var t=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(t,(function(t){return{node:t}}))},ot=[],at=!1,st={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},ut=function(){return document.all&&!window.atob},lt=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(at=!0),at&&(ot=nt(ot,st),Z(ot),window.addEventListener("scroll",_((function(){Z(ot,st.once)}),st.throttleDelay)))},ct=function(){if(ot=it(),ht(st.disable)||ut())return ft();lt()},ft=function(){ot.forEach((function(t,e){t.node.removeAttribute("data-aos"),t.node.removeAttribute("data-aos-easing"),t.node.removeAttribute("data-aos-duration"),t.node.removeAttribute("data-aos-delay"),st.initClassName&&t.node.classList.remove(st.initClassName),st.animatedClassName&&t.node.classList.remove(st.animatedClassName)}))},ht=function(t){return!0===t||"mobile"===t&&X.mobile()||"phone"===t&&X.phone()||"tablet"===t&&X.tablet()||"function"==typeof t&&!0===t()};return{init:function(t){return st=G(st,t),ot=it(),st.disableMutationObserver||z.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),st.disableMutationObserver=!0),st.disableMutationObserver||z.ready("[data-aos]",ct),ht(st.disable)||ut()?ft():(document.querySelector("body").setAttribute("data-aos-easing",st.easing),document.querySelector("body").setAttribute("data-aos-duration",st.duration),document.querySelector("body").setAttribute("data-aos-delay",st.delay),-1===["DOMContentLoaded","load"].indexOf(st.startEvent)?document.addEventListener(st.startEvent,(function(){lt(!0)})):window.addEventListener("load",(function(){lt(!0)})),"DOMContentLoaded"===st.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1&&lt(!0),window.addEventListener("resize",L(lt,st.debounceDelay,!0)),window.addEventListener("orientationchange",L(lt,st.debounceDelay,!0)),ot)},refresh:lt,refreshHard:ct}}()}).call(this,n(36))},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function l(t){return!0===t||!1===t}function c(t){return"[object Function]"===Object.prototype.toString.call(t)}function f(t){return!(!t||!t.nodeType)}function h(t){return"number"==typeof t}function d(t){if(!t||"object"!==(void 0===t?"undefined":r(t))||t.nodeType||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return!e||e.hasOwnProperty("constructor")&&e.constructor===Object}function m(t){return"string"==typeof t}function v(t){return t&&h(t.length)&&c(t.velocity)}function y(t){return t&&t!==window&&h(t.length)&&!m(t)&&!c(t)&&!f(t)&&(0===t.length||f(t[0]))}function _(t){return Array.prototype.slice.call(t,0)}function w(t,e,n,r){t&&Object.defineProperty(t,e,{configurable:!r,writable:!r,value:n})}function x(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=!0,o=!1,l=void 0;try{for(var c,f=e[Symbol.iterator]();!(r=(c=f.next()).done);r=!0){var h=c.value;if(void 0!==h&&h==h)return h}}catch(t){o=!0,l=t}finally{try{!r&&f.return&&f.return()}finally{if(o)throw l}}}var E=Date.now?Date.now:function(){return(new Date).getTime()};function S(element,t){element instanceof Element&&(element.classList?element.classList.remove(t):element.className=element.className.replace(new RegExp("(^|\\s)"+t+"(\\s|$)","gi")," "))}var k={};function A(t,e){var n=t[0],r=t[1];m(n)?c(r)?k[n]&&!function(t,e){return Object.prototype.propertyIsEnumerable.call(t,e)}(k,n)?console.warn("VelocityJS: Trying to override internal 'registerAction' callback",n):!0===e?w(k,n,r):k[n]=r:console.warn("VelocityJS: Trying to set 'registerAction' callback to an invalid value:",n,r):console.warn("VelocityJS: Trying to set 'registerAction' name to an invalid value:",n)}A(["registerAction",A],!0);var O=400,T={fast:200,normal:400,slow:600},C={};function P(t){var e=t[0],n=t[1];m(e)?c(n)?C[e]?console.warn("VelocityJS: Trying to override 'registerEasing' callback",e):C[e]=n:console.warn("VelocityJS: Trying to set 'registerEasing' callback to an invalid value:",e,n):console.warn("VelocityJS: Trying to set 'registerEasing' name to an invalid value:",e)}function I(t,e,n,r){return e+t*(n-e)}function M(t){return Math.min(Math.max(t,0),1)}function j(t,e){return 1-3*e+3*t}function D(t,e){return 3*e-6*t}function F(t){return 3*t}function R(t,e,n){return((j(e,n)*t+D(e,n))*t+F(e))*t}function L(t,e,n){return 3*j(e,n)*t*t+2*D(e,n)*t+F(e)}function N(){for(var t=4,e=.001,n=1e-7,r=10,o=11,l=1/(o-1),c=("Float32Array"in window),f=arguments.length,h=Array(f),d=0;d<f;d++)h[d]=arguments[d];if(4===h.length){for(var i=0;i<4;++i)if("number"!=typeof h[i]||isNaN(h[i])||!isFinite(h[i]))return;var m=M(h[0]),v=h[1],y=M(h[2]),_=h[3],w=c?new Float32Array(o):new Array(o),x=!1,E="generateBezier("+[m,v,y,_]+")",S=function(t,e,n,r){return x||C(),0===t?e:1===t?n:m===v&&y===_?e+t*(n-e):e+R(T(t),v,_)*(n-e)};return S.getControlPoints=function(){return[{x:m,y:v},{x:y,y:_}]},S.toString=function(){return E},S}function k(e,n){for(var r=0;r<t;++r){var o=L(n,m,y);if(0===o)return n;n-=(R(n,m,y)-e)/o}return n}function A(){for(var t=0;t<o;++t)w[t]=R(t*l,m,y)}function O(t,e,o){var l=void 0,c=void 0,i=0;do{(l=R(c=e+(o-e)/2,m,y)-t)>0?o=c:e=c}while(Math.abs(l)>n&&++i<r);return c}function T(t){for(var n=o-1,r=0,c=1;c!==n&&w[c]<=t;++c)r+=l;--c;var f=r+(t-w[c])/(w[c+1]-w[c])*l,h=L(f,m,y);return h>=e?k(t,f):0===h?f:O(t,r,r+l)}function C(){x=!0,m===v&&y===_||A()}}A(["registerEasing",P],!0),P(["linear",I]),P(["swing",function(t,e,n){return e+(.5-Math.cos(t*Math.PI)/2)*(n-e)}]),P(["spring",function(t,e,n){return e+(1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t))*(n-e)}]);var B=N(.42,0,1,1),V=N(0,0,.58,1),z=N(.42,0,.58,1);function U(t){return-t.tension*t.x-t.friction*t.v}function $(t,dt,e){var n={x:t.x+e.dx*dt,v:t.v+e.dv*dt,tension:t.tension,friction:t.friction};return{dx:n.v,dv:U(n)}}function G(t,dt){var a={dx:t.v,dv:U(t)},b=$(t,.5*dt,a),e=$(t,.5*dt,b),n=$(t,dt,e),r=1/6*(a.dx+2*(b.dx+e.dx)+n.dx),o=1/6*(a.dv+2*(b.dv+e.dv)+n.dv);return t.x=t.x+r*dt,t.v=t.v+o*dt,t}function H(t,e,n){var r={x:-1,v:0,tension:parseFloat(t)||500,friction:parseFloat(e)||20},path=[0],o=1e-4,l=null!=n,c=0,dt=void 0,f=void 0;for(dt=l?(c=H(r.tension,r.friction))/n*.016:.016;f=G(f||r,dt),path.push(1+f.x),c+=16,Math.abs(f.x)>o&&Math.abs(f.v)>o;);return l?function(t,e,n){return 0===t?e:1===t?n:e+path[Math.floor(t*(path.length-1))]*(n-e)}:c}P(["ease",N(.25,.1,.25,1)]),P(["easeIn",B]),P(["ease-in",B]),P(["easeOut",V]),P(["ease-out",V]),P(["easeInOut",z]),P(["ease-in-out",z]),P(["easeInSine",N(.47,0,.745,.715)]),P(["easeOutSine",N(.39,.575,.565,1)]),P(["easeInOutSine",N(.445,.05,.55,.95)]),P(["easeInQuad",N(.55,.085,.68,.53)]),P(["easeOutQuad",N(.25,.46,.45,.94)]),P(["easeInOutQuad",N(.455,.03,.515,.955)]),P(["easeInCubic",N(.55,.055,.675,.19)]),P(["easeOutCubic",N(.215,.61,.355,1)]),P(["easeInOutCubic",N(.645,.045,.355,1)]),P(["easeInQuart",N(.895,.03,.685,.22)]),P(["easeOutQuart",N(.165,.84,.44,1)]),P(["easeInOutQuart",N(.77,0,.175,1)]),P(["easeInQuint",N(.755,.05,.855,.06)]),P(["easeOutQuint",N(.23,1,.32,1)]),P(["easeInOutQuint",N(.86,0,.07,1)]),P(["easeInExpo",N(.95,.05,.795,.035)]),P(["easeOutExpo",N(.19,1,.22,1)]),P(["easeInOutExpo",N(1,0,0,1)]),P(["easeInCirc",N(.6,.04,.98,.335)]),P(["easeOutCirc",N(.075,.82,.165,1)]),P(["easeInOutCirc",N(.785,.135,.15,.86)]);var W={};function Q(t,e){return h(t)?t:m(t)?T[t.toLowerCase()]||parseFloat(t.replace("ms","").replace("s","000")):null==e?void 0:Q(e)}function Y(t){if(l(t))return t;null!=t&&console.warn("VelocityJS: Trying to set 'cache' to an invalid value:",t)}function K(t){if(c(t))return t;null!=t&&console.warn("VelocityJS: Trying to set 'begin' to an invalid value:",t)}function X(t,e){if(c(t))return t;null==t||e||console.warn("VelocityJS: Trying to set 'complete' to an invalid value:",t)}function J(t){var e=Q(t);if(!isNaN(e))return e;null!=t&&console.error("VelocityJS: Trying to set 'delay' to an invalid value:",t)}function Z(t,e){var n=Q(t);if(!isNaN(n)&&n>=0)return n;null==t||e||console.error("VelocityJS: Trying to set 'duration' to an invalid value:",t)}function tt(t,e,n){if(m(t))return C[t];if(c(t))return t;if(Array.isArray(t)){if(1===t.length)return r=t[0],W[r]||(W[r]=function(t,e,n){return 0===t?e:1===t?n:e+Math.round(t*r)*(1/r)*(n-e)});if(2===t.length)return H(t[0],t[1],e);if(4===t.length)return N.apply(null,t)||!1}var r;null==t||n||console.error("VelocityJS: Trying to set 'easing' to an invalid value:",t)}function et(t){if(!1===t)return 0;var e=parseInt(t,10);if(!isNaN(e)&&e>=0)return Math.min(e,60);null!=t&&console.warn("VelocityJS: Trying to set 'fpsLimit' to an invalid value:",t)}function nt(t){switch(t){case!1:return 0;case!0:return!0;default:var e=parseInt(t,10);if(!isNaN(e)&&e>=0)return e}null!=t&&console.warn("VelocityJS: Trying to set 'loop' to an invalid value:",t)}function it(t){if(c(t))return t;null!=t&&console.warn("VelocityJS: Trying to set 'progress' to an invalid value:",t)}function ot(t,e){if(!1===t||m(t))return t;null==t||e||console.warn("VelocityJS: Trying to set 'queue' to an invalid value:",t)}function at(t){switch(t){case!1:return 0;case!0:return!0;default:var e=parseInt(t,10);if(!isNaN(e)&&e>=0)return e}null!=t&&console.warn("VelocityJS: Trying to set 'repeat' to an invalid value:",t)}function st(t){if(h(t))return t;null!=t&&console.error("VelocityJS: Trying to set 'speed' to an invalid value:",t)}function ut(t){if(l(t))return t;null!=t&&console.error("VelocityJS: Trying to set 'sync' to an invalid value:",t)}var lt=void 0,ct=void 0,ft=void 0,ht=void 0,pt=void 0,mt=void 0,vt=void 0,yt=void 0,gt=void 0,bt=void 0,_t=void 0,wt=void 0,xt=void 0,Et=void 0,St=void 0,kt=void 0,At=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return o(t,null,[{key:"reset",value:function(){lt=true,ct=void 0,ft=void 0,ht=0,pt=O,mt=tt("swing",O),vt=60,yt=0,bt=980/60,_t=true,wt=true,xt="",Et=0,St=1,kt=true}},{key:"cache",get:function(){return lt},set:function(t){void 0!==(t=Y(t))&&(lt=t)}},{key:"begin",get:function(){return ct},set:function(t){void 0!==(t=K(t))&&(ct=t)}},{key:"complete",get:function(){return ft},set:function(t){void 0!==(t=X(t))&&(ft=t)}},{key:"delay",get:function(){return ht},set:function(t){void 0!==(t=J(t))&&(ht=t)}},{key:"duration",get:function(){return pt},set:function(t){void 0!==(t=Z(t))&&(pt=t)}},{key:"easing",get:function(){return mt},set:function(t){void 0!==(t=tt(t,pt))&&(mt=t)}},{key:"fpsLimit",get:function(){return vt},set:function(t){void 0!==(t=et(t))&&(vt=t,bt=980/t)}},{key:"loop",get:function(){return yt},set:function(t){void 0!==(t=nt(t))&&(yt=t)}},{key:"mobileHA",get:function(){return gt},set:function(t){l(t)&&(gt=t)}},{key:"minFrameTime",get:function(){return bt}},{key:"promise",get:function(){return _t},set:function(t){void 0!==(t=function(t){if(l(t))return t;null!=t&&console.warn("VelocityJS: Trying to set 'promise' to an invalid value:",t)}(t))&&(_t=t)}},{key:"promiseRejectEmpty",get:function(){return wt},set:function(t){void 0!==(t=function(t){if(l(t))return t;null!=t&&console.warn("VelocityJS: Trying to set 'promiseRejectEmpty' to an invalid value:",t)}(t))&&(wt=t)}},{key:"queue",get:function(){return xt},set:function(t){void 0!==(t=ot(t))&&(xt=t)}},{key:"repeat",get:function(){return Et},set:function(t){void 0!==(t=at(t))&&(Et=t)}},{key:"repeatAgain",get:function(){return Et}},{key:"speed",get:function(){return St},set:function(t){void 0!==(t=st(t))&&(St=t)}},{key:"sync",get:function(){return kt},set:function(t){void 0!==(t=ut(t))&&(kt=t)}}]),t}();Object.freeze(At),At.reset();var Ot=[],Tt={},Ct=new Set,Pt=[],It=new Map,Mt="velocityData";function jt(element){var data=element[Mt];if(data)return data;for(var t=element.ownerDocument.defaultView,e=0,n=0;n<Pt.length;n++){var r=Pt[n];m(r)?element instanceof t[r]&&(e|=1<<n):element instanceof r&&(e|=1<<n)}var o={types:e,count:0,computedStyle:null,cache:{},queueList:{},lastAnimationList:{},lastFinishList:{},window:t};return Object.defineProperty(element,Mt,{value:o}),o}var Dt=window&&window===window.window,Ft=Dt&&void 0!==window.pageYOffset,Rt={isClient:Dt,isMobile:Dt&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isGingerbread:Dt&&/Android 2\.3\.[3-7]/i.test(navigator.userAgent),prefixElement:Dt&&document.createElement("div"),windowScrollAnchor:Ft,scrollAnchor:Ft?window:!Dt||document.documentElement||document.body.parentNode||document.body,scrollPropertyLeft:Ft?"pageXOffset":"scrollLeft",scrollPropertyTop:Ft?"pageYOffset":"scrollTop",className:"velocity-animating",isTicking:!1,first:void 0,last:void 0,firstNew:void 0};function animate(t){var e=Rt.last;t._prev=e,t._next=void 0,e?e._next=t:Rt.first=t,Rt.last=t,Rt.firstNew||(Rt.firstNew=t);var element=t.element;jt(element).count++||function(element,t){element instanceof Element&&(element.classList?element.classList.add(t):(S(element,t),element.className+=(element.className.length?" ":"")+t))}(element,Rt.className)}function Lt(element,t,e){var data=jt(element);if(!1!==e&&(data.lastAnimationList[e]=t),!1===e)animate(t);else{m(e)||(e="");var n=data.queueList[e];if(n){for(;n._next;)n=n._next;n._next=t,t._prev=n}else null===n?data.queueList[e]=t:(data.queueList[e]=null,animate(t))}}function Nt(t){var e=t._next,n=t._prev,r=null==t.queue?t.options.queue:t.queue;(Rt.firstNew===t&&(Rt.firstNew=e),Rt.first===t?Rt.first=e:n&&(n._next=e),Rt.last===t?Rt.last=n:e&&(e._prev=n),r)&&(jt(t.element)&&(t._next=t._prev=void 0))}var Bt={};function Vt(t){var e=t.options,n=x(t.queue,e.queue),r=x(t.loop,e.loop,At.loop),o=x(t.repeat,e.repeat,At.repeat),l=8&t._flags;if(l||!r&&!o){var element=t.element,data=jt(element);if(--data.count||l||S(element,Rt.className),e&&++e._completed===e._total){!l&&e.complete&&(!function(t){var e=t.complete||t.options.complete;if(e)try{var n=t.elements;e.call(n,n,t)}catch(t){setTimeout((function(){throw t}),1)}}(t),e.complete=null);var c=e._resolver;c&&(c(t.elements),delete e._resolver)}!1!==n&&(l||(data.lastFinishList[n]=t.timeStart+x(t.duration,e.duration,At.duration)),function(element,t,e){if(!1!==t){m(t)||(t="");var data=jt(element),n=data.queueList[t];n?(data.queueList[t]=n._next||null,e||animate(n)):null===n&&delete data.queueList[t]}}(element,n)),Nt(t)}else o&&!0!==o?t.repeat=o-1:r&&!0!==r&&(t.loop=r-1,t.repeat=x(t.repeatAgain,e.repeatAgain,At.repeatAgain)),r&&(t._flags^=64),!1!==n&&(jt(t.element).lastFinishList[n]=t.timeStart+x(t.duration,e.duration,At.duration)),t.timeStart=t.ellapsedTime=t.percentComplete=0,t._flags&=-5}function zt(t){var e=t[0],n=t[1],r=t[2];if((!m(e)||window[e]instanceof Object)&&(m(e)||e instanceof Object))if(m(n))if(c(r)){var o=Pt.indexOf(e),l=3;if(o<0&&!m(e))if(It.has(e))o=Pt.indexOf(It.get(e));else for(var f in window)if(window[f]===e){(o=Pt.indexOf(f))<0&&(o=Pt.push(f)-1,Ot[o]={},It.set(e,f));break}if(o<0&&(o=Pt.push(e)-1,Ot[o]={}),Ot[o][n]=r,m(t[l])){var h=t[l++],d=Tt[h];d||(d=Tt[h]=[]),d.push(r)}!1===t[l]&&Ct.add(n)}else console.warn("VelocityJS: Trying to set 'registerNormalization' callback to an invalid value:",n,r);else console.warn("VelocityJS: Trying to set 'registerNormalization' name to an invalid value:",n);else console.warn("VelocityJS: Trying to set 'registerNormalization' constructor to an invalid value:",e)}function qt(t){var e=t[0],n=t[1],r=Pt.indexOf(e);if(r<0&&!m(e))if(It.has(e))r=Pt.indexOf(It.get(e));else for(var o in window)if(window[o]===e){r=Pt.indexOf(o);break}return r>=0&&Ot[r].hasOwnProperty(n)}function Ut(element,t){for(var data=jt(element),e=void 0,n=Pt.length-1,r=data.types;!e&&n>=0;n--)r&1<<n&&(e=Ot[n][t]);return e}function $t(element,t,e,n){var r=Ct.has(t),data=!r&&jt(element);(r||data&&data.cache[t]!==e)&&(r||(data.cache[t]=e||void 0),(n=n||Ut(element,t))&&n(element,e),un.debug>=2&&console.info('Set "'+t+'": "'+e+'"',element))}function Gt(t){if(t.indexOf("calc(")>=0){for(var e=t.split(/([\(\)])/),n=0,i=0;i<e.length;i++){var r=e[i];switch(r){case"(":n++;break;case")":n--;break;default:n&&"0"===r[0]&&(e[i]=r.replace(/^0[a-z%]+ \+ /,""))}}return e.join("").replace(/(?:calc)?\(([0-9\.]+[a-z%]+)\)/g,"$1")}return t}A(["registerNormalization",zt]),A(["hasNormalization",qt]);var Ht={};function Wt(t){var e=Ht[t];return e||(Ht[t]=t.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})))}var Qt=/#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})/gi,Yt=/#([a-f\d])([a-f\d])([a-f\d])/gi,Kt=/(rgba?\(\s*)?(\b[a-z]+\b)/g,Xt=/rgb(a?)\(([^\)]+)\)/gi,Jt=/\s+/g,Zt={};function te(t,e,g,b){return"rgba("+parseInt(e,16)+","+parseInt(g,16)+","+parseInt(b,16)+",1)"}function ee(t){return t.replace(Qt,te).replace(Yt,(function(t,e,g,b){return te(0,e+e,g+g,b+b)})).replace(Kt,(function(t,e,n){return Zt[n]?(e||"rgba(")+Zt[n]+(e?"":",1)"):t})).replace(Xt,(function(t,e,n){return"rgba("+n.replace(Jt,"")+(e?"":",1")+")"}))}function ne(element,t,e){if("border-box"===oe(element,"boxSizing").toString().toLowerCase()===e){var n="width"===t?["Left","Right"]:["Top","Bottom"],r=["padding"+n[0],"padding"+n[1],"border"+n[0]+"Width","border"+n[1]+"Width"],o=0,l=!0,c=!1,f=void 0;try{for(var h,d=r[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var m=h.value,v=parseFloat(oe(element,m));isNaN(v)||(o+=v)}}catch(t){c=!0,f=t}finally{try{!l&&d.return&&d.return()}finally{if(c)throw f}}return e?-o:o}return 0}function re(element,t){return element.getBoundingClientRect()[t]+ne(element,t,!0)+"px"}function ie(element,t){var data=jt(element),e=data.computedStyle?data.computedStyle:data.window.getComputedStyle(element,null),n=0;if(data.computedStyle||(data.computedStyle=e),"none"===e.display)switch(t){case"width":case"height":return $t(element,"display","auto"),n=re(element,t),$t(element,"display","none"),String(n)}if((n=e[t])||(n=element.style[t]),"auto"===n)switch(t){case"width":case"height":n=re(element,t);break;case"top":case"left":case"right":case"bottom":var r=oe(element,"position");if("fixed"===r||"absolute"===r){n=element.getBoundingClientRect[t]+"px";break}default:n="0px"}return n?String(n):""}function oe(element,t,e,n){var data=jt(element),r=void 0;return Ct.has(t)&&(n=!0),!n&&data&&null!=data.cache[t]?r=data.cache[t]:(e=e||Ut(element,t))&&(r=e(element),data&&(data.cache[t]=r)),un.debug>=2&&console.info('Get "'+t+'": "'+r+'"',element),r}var ae=/^#([A-f\d]{3}){1,2}$/i,se={function:function(t,element,e,n,r,o){return t.call(element,n,e.length,r)},number:function(t,element,e,n,r,o){return String(t)+function(t){for(var e in Tt)if(Tt[e].includes(t))return e;return""}(o.fn)},string:function(t,element,e,n,r,o){return ee(t)},undefined:function(t,element,e,n,r,o){return ee(oe(element,r,o.fn)||"")}};function ue(t,e){var n=t.tweens=Object.create(null),o=t.elements,element=t.element,l=o.indexOf(element),data=jt(element),f=x(t.queue,t.options.queue),d=x(t.options.duration,At.duration);for(var v in e)if(e.hasOwnProperty(v)){var y=Wt(v),_=Ut(element,y),w=e[v];if(!_&&"tween"!==y){un.debug&&console.log('Skipping "'+v+'" due to a lack of browser support.');continue}if(null==w){un.debug&&console.log('Skipping "'+v+'" due to no value supplied.');continue}var E=n[y]={},S=void 0,k=void 0;if(E.fn=_,c(w)&&(w=w.call(element,l,o.length,o)),Array.isArray(w)){var A=w[1],O=w[2];S=w[0],m(A)&&(/^[\d-]/.test(A)||ae.test(A))||c(A)||h(A)?k=A:m(A)&&C[A]||Array.isArray(A)?(E.easing=tt(A,d),k=O):k=A||O}else S=w;E.end=se[void 0===S?"undefined":r(S)](S,element,o,l,y,E),null==k&&!1!==f&&void 0!==data.queueList[f]||(E.start=se[void 0===k?"undefined":r(k)](k,element,o,l,y,E),he(y,E,d))}}var le=/((?:[+\-*/]=)?(?:[+-]?\d*\.\d+|[+-]?\d+)[a-z%]*|(?:.(?!$|[+-]?\d|[+\-*/]=[+-]?\d))+.|.)/g,ce=/^([+\-*/]=)?([+-]?\d*\.\d+|[+-]?\d+)(.*)$/;function fe(t,e){for(var n=t.length,r=[],o=[],l=void 0,c=0;c<n;c++){if(!m(t[c]))return;""===t[c]?r[c]=[""]:r[c]=_(t[c].match(le)),o[c]=0,l=l||r[c].length>1}for(var f=[],pattern=f.pattern=[],h=function(text){if(m(pattern[pattern.length-1]))pattern[pattern.length-1]+=text;else if(text){pattern.push(text);for(var t=0;t<n;t++)f[t].push(null)}},d=function(){if(!(l||pattern.length>1)){for(var r="display"===e,o="visibility"===e,c=0;c<n;c++){var h=t[c];f[c][0]=h,f[c].easing=tt(r&&"none"===h||o&&"hidden"===h||!r&&!o?"at-end":"at-start",400)}return pattern[0]=!1,f}},v=!0,y=0;y<n;y++)f[y]=[];for(;v;){for(var w=[],x=[],text=void 0,E=!1,S=!1,k=0;k<n;k++){var A=o[k]++,O=r[k][A];if(!O){if(k)return;for(;k<n;k++){var T=o[k]++;if(r[k][T])return d()}v=!1;break}var C=O.match(ce);if(C){if(text)return d();var P=parseFloat(C[2]),I=C[3],M=C[1]?C[1][0]+I:void 0,j=M||I;P&&!x.includes(j)&&x.push(j),I||(P?S=!0:E=!0),w[k]=M?[P,j,!0]:[P,j]}else{if(w.length)return d();if(text){if(text!==O)return d()}else text=O}}if(text)h(text);else if(x.length)if(2===x.length&&E&&!S&&x.splice(x[0]?1:0,1),1===x.length){var D=x[0];switch(D[0]){case"+":case"-":case"*":case"/":return void(e&&console.error('Velocity: The first property must not contain a relative function "'+e+'":',t))}pattern.push(!1);for(var F=0;F<n;F++)f[F].push(w[F][0]);h(D)}else{h("calc(");for(var R=pattern.length-1,i=0;i<x.length;i++){var L=x[i],N=L[0],B="*"===N||"/"===N,V=B||"+"===N||"-"===N;B&&(pattern[R]+="(",h(")")),i&&h(" "+(V?N:"+")+" "),pattern.push(!1);for(var z=0;z<n;z++){var U=w[z],$=U[1]===L?U[0]:3===U.length?f[z-1][f[z-1].length-1]:B?1:0;f[z].push($)}h(V?L.substring(1):L)}h(")")}}for(var G=0,H=0;G<pattern.length;G++){var W=pattern[G];m(W)?H&&W.indexOf(",")>=0?H++:W.indexOf("rgb")>=0&&(H=1):H&&(H<4?pattern[G]=!0:H=0)}return f}function he(t,e,n,r){var o=e.start,l=e.end;if(m(l)&&m(o)){var c=fe([o,l],t);if(!c&&r){var f=o.match(/\d\.?\d*/g)||["0"],h=f.length,d=0;c=fe([l.replace(/\d+\.?\d*/g,(function(){return f[d++%h]})),l],t)}if(c)switch(un.debug&&console.log("Velocity: Sequence found:",c),c[0].percent=0,c[1].percent=1,e.sequence=c,e.easing){case C["at-start"]:case C.during:case C["at-end"]:c[0].easing=c[1].easing=e.easing}}}function pe(t){if(Rt.firstNew===t&&(Rt.firstNew=t._next),!(1&t._flags)){var element=t.element,e=t.tweens;x(t.options.duration,At.duration);for(var n in e){var r=e[n];if(null==r.start){var o=oe(t.element,n);m(o)?(r.start=ee(o),he(n,r,0,!0)):Array.isArray(o)||console.warn("bad type",r,n,o)}un.debug&&console.log('tweensContainer "'+n+'": '+JSON.stringify(r),element)}t._flags|=1}}function de(t){var e=t.begin||t.options.begin;if(e)try{var n=t.elements;e.call(n,n,t)}catch(t){setTimeout((function(){throw t}),1)}}function me(t){var e=t.progress||t.options.progress;if(e)try{var n=t.elements,r=t.percentComplete,o=t.options,l=t.tween;e.call(n,n,r,Math.max(0,t.timeStart+(null!=t.duration?t.duration:null!=o.duration?o.duration:At.duration)-ke),void 0!==l?l:String(100*r),t)}catch(t){setTimeout((function(){throw t}),1)}}function ve(){var t=!0,e=!1,n=void 0;try{for(var r,o=be[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){me(r.value)}}catch(t){e=!0,n=t}finally{try{!t&&o.return&&o.return()}finally{if(e)throw n}}be.clear();var l=!0,c=!1,f=void 0;try{for(var h,d=ge[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){Vt(h.value)}}catch(t){c=!0,f=t}finally{try{!l&&d.return&&d.return()}finally{if(c)throw f}}ge.clear()}var ye=1e3/60,ge=new Set,be=new Set,_e=function(){var t=window.performance||{};if("function"!=typeof t.now){var e=t.timing&&t.timing.navigationStart?t.timing.navigationStart:E();t.now=function(){return E()-e}}return t}(),we=function(t){return setTimeout(t,Math.max(0,ye-(_e.now()-ke)))},xe=window.requestAnimationFrame||we,Ee=void 0,Se=void 0,ke=0;try{(Se=new Worker(URL.createObjectURL(new Blob(["("+function(){var t=this,e=void 0;this.onmessage=function(n){switch(n.data){case!0:e||(e=setInterval((function(){t.postMessage(!0)}),1e3/30));break;case!1:e&&(clearInterval(e),e=0);break;default:t.postMessage(n.data)}}}+")()"])))).onmessage=function(t){!0===t.data?Ae():ve()},Rt.isMobile||void 0===document.hidden||document.addEventListener("visibilitychange",(function(){Se.postMessage(Rt.isTicking&&document.hidden)}))}catch(t){}function Ae(t){if(!Ee){if(Ee=!0,!1!==t){var e=_e.now(),n=ke?e-ke:ye,r=At.speed,o=At.easing,l=At.duration,c=void 0,f=void 0;if(n>=At.minFrameTime||!ke){for(ke=e;Rt.firstNew;)pe(Rt.firstNew);for(c=Rt.first;c&&c!==Rt.firstNew;c=c._next){var element=c.element,data=jt(element);if(element.parentNode&&data){var h=c.options,d=c._flags,m=c.timeStart;if(!m){var v=null!=c.queue?c.queue:h.queue;m=e-n,!1!==v&&(m=Math.max(m,data.lastFinishList[v]||0)),c.timeStart=m}16&d?c.timeStart+=n:2&d||(c._flags|=2,h._ready++)}else Nt(c)}for(c=Rt.first;c&&c!==Rt.firstNew;c=f){var y=c._flags;if(f=c._next,2&y&&!(16&y)){var _=c.options;if(32&y&&_._ready<_._total)c.timeStart+=n;else{var w=null!=c.speed?c.speed:null!=_.speed?_.speed:r,x=c.timeStart;if(!(4&y)){var E=null!=c.delay?c.delay:_.delay;if(E){if(x+E/w>e)continue;c.timeStart=x+=E/(E>0?w:1)}c._flags|=4,0==_._started++&&(_._first=c,_.begin&&(de(c),_.begin=void 0))}1!==w&&(c.timeStart=x+=Math.min(n,e-x)*(1-w));var S=null!=c.easing?c.easing:null!=_.easing?_.easing:o,k=c.ellapsedTime=e-x,A=null!=c.duration?c.duration:null!=_.duration?_.duration:l,O=c.percentComplete=un.mock?1:Math.min(k/A,1),T=c.tweens,C=64&y;for(var P in(c.progress||_._first===c&&_.progress)&&be.add(c),1===O&&ge.add(c),T){var M=T[P],j=M.sequence,pattern=j.pattern,D="",i=0;if(pattern){for(var F=(M.easing||S)(O,0,1,P),R=0,L=0;L<j.length-1;L++)j[L].percent<F&&(R=L);for(var N=j[R],B=j[R+1]||N,V=(O-N.percent)/(B.percent-N.percent),z=C?1-V:V,U=B.easing||S||I;i<pattern.length;i++){var $=N[i];if(null==$)D+=pattern[i];else{var G=B[i];if($===G)D+=$;else{var H=U(z,$,G,P);D+=!0!==pattern[i]?H:Math.round(H)}}}"tween"!==P?(1===O&&(D=Gt(D)),$t(c.element,P,D,M.fn)):c.tween=D}else console.warn("VelocityJS: Missing pattern:",P,JSON.stringify(M[P])),delete T[P]}}}}(be.size||ge.size)&&(document.hidden?Se?Se.postMessage(""):setTimeout(ve,1):ve())}}Rt.first?(Rt.isTicking=!0,document.hidden?Se?!1===t&&Se.postMessage(!0):we(Ae):xe(Ae)):(Rt.isTicking=!1,ke=0,document.hidden&&Se&&Se.postMessage(!1)),Ee=!1}}function Oe(t,e,n){if(pe(t),void 0===e||e===x(t.queue,t.options.queue,n)){if(!(4&t._flags)){var r=t.options;0==r._started++&&(r._first=t,r.begin&&(de(t),r.begin=void 0)),t._flags|=4}for(var o in t.tweens){var l=t.tweens[o],c=l.sequence,pattern=c.pattern,f="",i=0;if(pattern)for(var h=c[c.length-1];i<pattern.length;i++){var d=h[i];f+=null==d?pattern[i]:d}$t(t.element,o,f,l.fn)}Vt(t)}}A(["finish",function(t,e,n){var r=ot(t[0],!0),o=At.queue,l=!0===t[void 0===r?0:1];if(v(e)&&e.velocity.animations){var c=!0,f=!1,h=void 0;try{for(var d,m=e.velocity.animations[Symbol.iterator]();!(c=(d=m.next()).done);c=!0){Oe(d.value,r,o)}}catch(t){f=!0,h=t}finally{try{!c&&m.return&&m.return()}finally{if(f)throw h}}}else{for(;Rt.firstNew;)pe(Rt.firstNew);for(var y,_=Rt.first;_&&(l||_!==Rt.firstNew);_=y||Rt.firstNew)y=_._next,e&&!e.includes(_.element)||Oe(_,r,o)}n&&(v(e)&&e.velocity.animations&&e.then?e.then(n._resolver):n._resolver(e))}],!0);var Te={isExpanded:1,isReady:2,isStarted:4,isStopped:8,isPaused:16,isSync:32,isReverse:64};function Ce(t,e,n,r){void 0!==e&&e!==x(t.queue,t.options.queue,n)||(r?t._flags|=16:t._flags&=-17)}function Pe(t,e,n,r){var o=0===r.indexOf("pause"),l="false"!==(r.indexOf(".")>=0?r.replace(/^.*\./,""):void 0)&&ot(t[0]),c=At.queue;if(v(e)&&e.velocity.animations){var f=!0,h=!1,d=void 0;try{for(var m,y=e.velocity.animations[Symbol.iterator]();!(f=(m=y.next()).done);f=!0){Ce(m.value,l,c,o)}}catch(t){h=!0,d=t}finally{try{!f&&y.return&&y.return()}finally{if(h)throw d}}}else for(var _=Rt.first;_;)e&&!e.includes(_.element)||Ce(_,l,c,o),_=_._next;n&&(v(e)&&e.velocity.animations&&e.then?e.then(n._resolver):n._resolver(e))}function Ie(t,e,n,o){var l=t[0],c=t[1];if(!l)return console.warn("VelocityJS: Cannot access a non-existant property!"),null;if(void 0===c&&!d(l)){if(Array.isArray(l)){if(1===e.length){var f={},y=!0,_=!1,w=void 0;try{for(var x,E=l[Symbol.iterator]();!(y=(x=E.next()).done);y=!0){var S=x.value;f[S]=ee(oe(e[0],S))}}catch(t){_=!0,w=t}finally{try{!y&&E.return&&E.return()}finally{if(_)throw w}}return f}var k=[],A=!0,O=!1,T=void 0;try{for(var C,P=e[Symbol.iterator]();!(A=(C=P.next()).done);A=!0){var element=C.value,I={},M=!0,j=!1,D=void 0;try{for(var F,R=l[Symbol.iterator]();!(M=(F=R.next()).done);M=!0){var L=F.value;I[L]=ee(oe(element,L))}}catch(t){j=!0,D=t}finally{try{!M&&R.return&&R.return()}finally{if(j)throw D}}k.push(I)}}catch(t){O=!0,T=t}finally{try{!A&&P.return&&P.return()}finally{if(O)throw T}}return k}if(1===e.length)return ee(oe(e[0],l));var N=[],B=!0,V=!1,z=void 0;try{for(var U,$=e[Symbol.iterator]();!(B=(U=$.next()).done);B=!0){var G=U.value;N.push(ee(oe(G,l)))}}catch(t){V=!0,z=t}finally{try{!B&&$.return&&$.return()}finally{if(V)throw z}}return N}var H=[];if(d(l)){for(var W in l)if(l.hasOwnProperty(W)){var Q=!0,Y=!1,K=void 0;try{for(var X,J=e[Symbol.iterator]();!(Q=(X=J.next()).done);Q=!0){var Z=X.value,tt=l[W];m(tt)||h(tt)?$t(Z,W,l[W]):(H.push('Cannot set a property "'+W+'" to an unknown type: '+(void 0===tt?"undefined":r(tt))),console.warn('VelocityJS: Cannot set a property "'+W+'" to an unknown type:',tt))}}catch(t){Y=!0,K=t}finally{try{!Q&&J.return&&J.return()}finally{if(Y)throw K}}}}else if(m(c)||h(c)){var et=!0,nt=!1,it=void 0;try{for(var ot,at=e[Symbol.iterator]();!(et=(ot=at.next()).done);et=!0){$t(ot.value,l,String(c))}}catch(t){nt=!0,it=t}finally{try{!et&&at.return&&at.return()}finally{if(nt)throw it}}}else H.push('Cannot set a property "'+l+'" to an unknown type: '+(void 0===c?"undefined":r(c))),console.warn('VelocityJS: Cannot set a property "'+l+'" to an unknown type:',c);n&&(H.length?n._rejecter(H.join(", ")):v(e)&&e.velocity.animations&&e.then?e.then(n._resolver):n._resolver(e))}function Me(t,e,n){pe(t),void 0!==e&&e!==x(t.queue,t.options.queue,n)||(t._flags|=8,Vt(t))}A(["option",function(t,e,n,r){var o=t[0],l=r.indexOf(".")>=0?r.replace(/^.*\./,""):void 0,c="false"!==l&&ot(l,!0),f=void 0,h=t[1];if(!o)return console.warn("VelocityJS: Cannot access a non-existant key!"),null;if(v(e)&&e.velocity.animations)f=e.velocity.animations;else{f=[];for(var d=Rt.first;d;d=d._next)e.indexOf(d.element)>=0&&x(d.queue,d.options.queue)===c&&f.push(d);if(e.length>1&&f.length>1){for(var i=1,m=f[0].options;i<f.length;)if(f[i++].options!==m){m=null;break}m&&(f=[f[0]])}}if(void 0===h){var y=[],_=Te[o],w=!0,E=!1,S=void 0;try{for(var k,A=f[Symbol.iterator]();!(w=(k=A.next()).done);w=!0){var O=k.value;void 0===_?y.push(x(O[o],O.options[o])):y.push(0==(O._flags&_))}}catch(t){E=!0,S=t}finally{try{!w&&A.return&&A.return()}finally{if(E)throw S}}return 1===e.length&&1===f.length?y[0]:y}var T=void 0;switch(o){case"cache":h=Y(h);break;case"begin":h=K(h);break;case"complete":h=X(h);break;case"delay":h=J(h);break;case"duration":h=Z(h);break;case"fpsLimit":h=et(h);break;case"loop":h=nt(h);break;case"percentComplete":T=!0,h=parseFloat(h);break;case"repeat":case"repeatAgain":h=at(h);break;default:if("_"!==o[0]){var C=parseFloat(h);h===String(C)&&(h=C);break}case"queue":case"promise":case"promiseRejectEmpty":case"easing":case"started":return void console.warn("VelocityJS: Trying to set a read-only key:",o)}if(void 0===h||h!=h)return console.warn("VelocityJS: Trying to set an invalid value:"+o+"="+h+" ("+t[1]+")"),null;var P=!0,I=!1,M=void 0;try{for(var j,D=f[Symbol.iterator]();!(P=(j=D.next()).done);P=!0){var F=j.value;T?F.timeStart=ke-x(F.duration,F.options.duration,At.duration)*h:F[o]=h}}catch(t){I=!0,M=t}finally{try{!P&&D.return&&D.return()}finally{if(I)throw M}}n&&(v(e)&&e.velocity.animations&&e.then?e.then(n._resolver):n._resolver(e))}],!0),A(["pause",Pe],!0),A(["resume",Pe],!0),A(["property",Ie],!0),A(["reverse",function(t,e,n,r){throw new SyntaxError("VelocityJS: The 'reverse' action is built in and private.")}],!0),A(["stop",function(t,e,n,r){var o=ot(t[0],!0),l=At.queue,c=!0===t[void 0===o?0:1];if(v(e)&&e.velocity.animations){var f=!0,h=!1,d=void 0;try{for(var m,y=e.velocity.animations[Symbol.iterator]();!(f=(m=y.next()).done);f=!0){Me(m.value,o,l)}}catch(t){h=!0,d=t}finally{try{!f&&y.return&&y.return()}finally{if(h)throw d}}}else{for(;Rt.firstNew;)pe(Rt.firstNew);for(var _,w=Rt.first;w&&(c||w!==Rt.firstNew);w=_||Rt.firstNew)_=w._next,e&&!e.includes(w.element)||Me(w,o,l)}n&&(v(e)&&e.velocity.animations&&e.then?e.then(n._resolver):n._resolver(e))}],!0),A(["style",Ie],!0),A(["tween",function(t,e,n,r){var o=void 0;if(e){if(1!==e.length)throw new Error("VelocityJS: Cannot tween more than one element!")}else{if(!t.length)return console.info('Velocity(<element>, "tween", percentComplete, property, end | [end, <easing>, <start>], <easing>) => value\nVelocity(<element>, "tween", percentComplete, {property: end | [end, <easing>, <start>], ...}, <easing>) => {property: value, ...}'),null;e=[document.body],o=!0}var l=t[0],c={elements:e,element:e[0],queue:!1,options:{duration:1e3},tweens:null},f={},v=t[1],y=void 0,_=void 0,w=t[2],E=0;if(m(t[1])?Bt&&Bt[t[1]]?(_=Bt[t[1]],v={},w=t[2]):(y=!0,v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t[1],t[2]),w=t[3]):Array.isArray(t[1])&&(y=!0,v={tween:t[1]},w=t[2]),!h(l)||l<0||l>1)throw new Error("VelocityJS: Must tween a percentage from 0 to 1!");if(!d(v))throw new Error("VelocityJS: Cannot tween an invalid property!");if(o)for(var S in v)if(v.hasOwnProperty(S)&&(!Array.isArray(v[S])||v[S].length<2))throw new Error("VelocityJS: When not supplying an element you must force-feed values: "+S);var k=tt(x(w,At.easing),O);for(var A in _?dn(c,_):ue(c,v),c.tweens){var T=c.tweens[A],C=T.sequence,pattern=C.pattern,P="",i=0;if(E++,pattern){for(var M=(T.easing||k)(l,0,1,A),j=0,D=0;D<C.length-1;D++)C[D].percent<M&&(j=D);for(var F=C[j],R=C[j+1]||F,L=(l-F.percent)/(R.percent-F.percent),N=R.easing||I;i<pattern.length;i++){var B=F[i];if(null==B)P+=pattern[i];else{var V=R[i];if(B===V)P+=B;else{var z=N(L,B,V,A);P+=!0===pattern[i]?Math.round(z):z}}}f[A]=P}}if(y&&1===E)for(var U in f)if(f.hasOwnProperty(U))return f[U];return f}],!0);var je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};for(var De in je)if(je.hasOwnProperty(De)){var Fe=je[De];Zt[De]=Math.floor(Fe/65536)+","+Math.floor(Fe/256%256)+","+Fe%256}function Re(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Le(t){return 1-Re(1-t)}!function(t,e){P([t,function(t,n,r){return 0===t?n:1===t?r:Math.pow(t,2)*((e+1)*t-e)*(r-n)}])}("easeInBack",1.7),function(t,e){P([t,function(t,n,r){return 0===t?n:1===t?r:(Math.pow(--t,2)*((e+1)*t+e)+1)*(r-n)}])}("easeOutBack",1.7),function(t,e){e*=1.525,P([t,function(t,n,r){return 0===t?n:1===t?r:.5*((t*=2)<1?Math.pow(t,2)*((e+1)*t-e):Math.pow(t-2,2)*((e+1)*(t-2)+e)+2)*(r-n)}])}("easeInOutBack",1.7),P(["easeInBounce",function(t,e,n){return 0===t?e:1===t?n:Le(t)*(n-e)}]),P(["easeOutBounce",function(t,e,n){return 0===t?e:1===t?n:Re(t)*(n-e)}]),P(["easeInOutBounce",function(t,e,n){return 0===t?e:1===t?n:(t<.5?.5*Le(2*t):.5*Re(2*t-1)+.5)*(n-e)}]);var Ne=2*Math.PI;function Be(t,e){return function(element,n){if(void 0===n)return ne(element,t,e)+"px";$t(element,t,parseFloat(n)-ne(element,t,e)+"px")}}!function(t,e,n){P([t,function(t,r,o){return 0===t?r:1===t?o:-e*Math.pow(2,10*(t-=1))*Math.sin((t-n/Ne*Math.asin(1/e))*Ne/n)*(o-r)}])}("easeInElastic",1,.3),function(t,e,n){P([t,function(t,r,o){return 0===t?r:1===t?o:(e*Math.pow(2,-10*t)*Math.sin((t-n/Ne*Math.asin(1/e))*Ne/n)+1)*(o-r)}])}("easeOutElastic",1,.3),function(t,e,n){P([t,function(t,r,o){if(0===t)return r;if(1===t)return o;var s=n/Ne*Math.asin(1/e);return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((t-s)*Ne/n)*-.5:e*Math.pow(2,-10*t)*Math.sin((t-s)*Ne/n)*.5+1)*(o-r)}])}("easeInOutElastic",1,.3*1.5),P(["at-start",function(t,e,n){return 0===t?e:n}]),P(["during",function(t,e,n){return 0===t||1===t?e:n}]),P(["at-end",function(t,e,n){return 1===t?n:e}]),zt(["Element","innerWidth",Be("width",!0)]),zt(["Element","innerHeight",Be("height",!0)]),zt(["Element","outerWidth",Be("width",!1)]),zt(["Element","outerHeight",Be("height",!1)]);var Ve=/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|let|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i,ze=/^(li)$/i,qe=/^(tr)$/i,Ue=/^(table)$/i,$e=/^(tbody)$/i;function Ge(t,e){return function(element,n){if(null==n)return oe(element,"client"+t,null,!0),oe(element,"scroll"+t,null,!0),element["scroll"+e]+"px";var r=parseFloat(n);switch(n.replace(String(r),"")){case"":case"px":element["scroll"+e]=r;break;case"%":var o=parseFloat(oe(element,"client"+t)),l=parseFloat(oe(element,"scroll"+t));element["scroll"+e]=Math.max(0,l-o)*r/100}}}zt(["Element","display",function(element,t){var style=element.style;if(void 0===t)return ie(element,"display");if("auto"===t){var e=element&&element.nodeName,data=jt(element);t=Ve.test(e)?"inline":ze.test(e)?"list-item":qe.test(e)?"table-row":Ue.test(e)?"table":$e.test(e)?"table-row-group":"block",data.cache.display=t}style.display=t}]),zt(["HTMLElement","scroll",Ge("Height","Top"),!1]),zt(["HTMLElement","scrollTop",Ge("Height","Top"),!1]),zt(["HTMLElement","scrollLeft",Ge("Width","Left"),!1]),zt(["HTMLElement","scrollWidth",function(element,t){if(null==t)return element.scrollWidth+"px"}]),zt(["HTMLElement","clientWidth",function(element,t){if(null==t)return element.clientWidth+"px"}]),zt(["HTMLElement","scrollHeight",function(element,t){if(null==t)return element.scrollHeight+"px"}]),zt(["HTMLElement","clientHeight",function(element,t){if(null==t)return element.clientHeight+"px"}]);var He=/^(b(lockSize|o(rder(Bottom(LeftRadius|RightRadius|Width)|Image(Outset|Width)|LeftWidth|R(adius|ightWidth)|Spacing|Top(LeftRadius|RightRadius|Width)|Width)|ttom))|column(Gap|RuleWidth|Width)|f(lexBasis|ontSize)|grid(ColumnGap|Gap|RowGap)|height|inlineSize|le(ft|tterSpacing)|m(a(rgin(Bottom|Left|Right|Top)|x(BlockSize|Height|InlineSize|Width))|in(BlockSize|Height|InlineSize|Width))|o(bjectPosition|utline(Offset|Width))|p(adding(Bottom|Left|Right|Top)|erspective)|right|s(hapeMargin|troke(Dashoffset|Width))|t(extIndent|op|ransformOrigin)|w(idth|ordSpacing))$/;function We(t,e){return function(element,n){if(void 0===n)return ie(element,t)||ie(element,e);element.style[t]=element.style[e]=n}}function Qe(t){return function(element,e){if(void 0===e)return ie(element,t);element.style[t]=e}}var Ye=/^(webkit|moz|ms|o)[A-Z]/,Ke=Rt.prefixElement;if(Ke)for(var Xe in Ke.style)if(Ye.test(Xe)){var Je=Xe.replace(/^[a-z]+([A-Z])/,(function(t,e){return e.toLowerCase()})),Ze=He.test(Je)?"px":void 0;zt(["Element",Je,We(Xe,Je),Ze])}else if(!qt(["Element",Xe])){var tn=He.test(Xe)?"px":void 0;zt(["Element",Xe,Qe(Xe),tn])}function en(t){return function(element,e){if(void 0===e)return element.getAttribute(t);element.setAttribute(t,e)}}var base=document.createElement("div"),nn=/^SVG(.*)Element$/,rn=/Element$/;function on(t){return function(element,e){if(void 0===e)try{return element.getBBox()[t]+"px"}catch(t){return"0px"}element.setAttribute(t,e)}}Object.getOwnPropertyNames(window).forEach((function(t){var e=nn.exec(t);if(e&&"SVG"!==e[1])try{var element=e[1]?document.createElementNS("http://www.w3.org/2000/svg",(e[1]||"svg").toLowerCase()):document.createElement("svg");for(var n in element){var r=element[n];!m(n)||"o"===n[0]&&"n"===n[1]||n===n.toUpperCase()||rn.test(n)||n in base||c(r)||zt([t,n,en(n)])}}catch(e){console.error("VelocityJS: Error when trying to identify SVG attributes on "+t+".",e)}})),zt(["SVGElement","width",on("width")]),zt(["SVGElement","height",on("height")]),zt(["Element","tween",function(element,t){if(void 0===t)return""}]);var an,sn="2.0.6",un=gn;if(function(t){t.Actions=k,t.Easings=C,t.Sequences=Bt,t.State=Rt,t.defaults=At,t.patch=_n,t.debug=!1,t.mock=!1,t.version=sn,t.Velocity=gn}(an||(an={})),function(){if(document.documentMode)return document.documentMode;for(var i=7;i>4;i--){var div=document.createElement("div");if(div.innerHTML="\x3c!--[if IE "+i+"]><span></span><![endif]--\x3e",div.getElementsByTagName("span").length)return div=null,i}}()<=8)throw new Error("VelocityJS cannot run on Internet Explorer 8 or earlier");if(window){var ln=window.jQuery,cn=window.Zepto;_n(window,!0),_n(Element&&Element.prototype),_n(NodeList&&NodeList.prototype),_n(HTMLCollection&&HTMLCollection.prototype),_n(ln,!0),_n(ln&&ln.fn),_n(cn,!0),_n(cn&&cn.fn)}var fn=function(t){if(an.hasOwnProperty(t))switch(void 0===t?"undefined":r(t)){case"number":case"boolean":w(un,t,{get:function(){return an[t]},set:function(e){an[t]=e}},!0);break;default:w(un,t,an[t],!0)}};for(var hn in an)fn(hn);Object.freeze(un);var pn=/(\d*\.\d+|\d+\.?|from|to)/g;function dn(t,e){var n=t.tweens=Object.create(null),element=t.element;for(var r in e.tweens)if(e.tweens.hasOwnProperty(r)){var o=Ut(element,r);if(!o&&"tween"!==r){un.debug&&console.log("Skipping ["+r+"] due to a lack of browser support.");continue}n[r]={fn:o,sequence:e.tweens[r]}}}A(["registerSequence",function t(e){if(d(e[0]))for(var n in e[0])e[0].hasOwnProperty(n)&&t([n,e[0][n]]);else if(m(e[0])){var r=e[0],o=e[1];if(m(r))if(d(o)){Bt[r]&&console.warn("VelocityJS: Replacing named sequence:",r);var l={},c=new Array(100),f=[],v=Bt[r]={},y=Z(o.duration);for(var _ in v.tweens={},h(y)&&(v.duration=y),o)if(o.hasOwnProperty(_)){var w=String(_).match(pn);if(w){var x=!0,E=!1,S=void 0;try{for(var k,A=w[Symbol.iterator]();!(x=(k=A.next()).done);x=!0){var T=k.value,C="from"===T?0:"to"===T?100:parseFloat(T);if(C<0||C>100)console.warn("VelocityJS: Trying to use an invalid value as a percentage (0 <= n <= 100):",r,C);else if(isNaN(C))console.warn("VelocityJS: Trying to use an invalid number as a percentage:",r,_,T);else for(var P in l[String(C)]||(l[String(C)]=[]),l[String(C)].push(_),o[_])f.includes(P)||f.push(P)}}catch(t){E=!0,S=t}finally{try{!x&&A.return&&A.return()}finally{if(E)throw S}}}}var I=Object.keys(l).sort((function(a,b){var t=parseFloat(a),e=parseFloat(b);return t>e?1:t<e?-1:0}));I.forEach((function(t){c.push.apply(l[t])}));var M=!0,j=!1,D=void 0;try{for(var F,R=f[Symbol.iterator]();!(M=(F=R.next()).done);M=!0){var L=F.value,N=[],B=Wt(L),V=!0,z=!1,U=void 0;try{for(var $,G=I[Symbol.iterator]();!(V=($=G.next()).done);V=!0){var H=$.value,W=!0,Q=!1,Y=void 0;try{for(var K,X=l[H][Symbol.iterator]();!(W=(K=X.next()).done);W=!0){var J=o[K.value];J[B]&&N.push(m(J[B])?J[B]:J[B][0])}}catch(t){Q=!0,Y=t}finally{try{!W&&X.return&&X.return()}finally{if(Q)throw Y}}}}catch(t){z=!0,U=t}finally{try{!V&&G.return&&G.return()}finally{if(z)throw U}}if(N.length){var et=fe(N,B),nt=0;if(et){var it=!0,ot=!1,at=void 0;try{for(var st,ut=I[Symbol.iterator]();!(it=(st=ut.next()).done);it=!0){var lt=st.value,ct=!0,ft=!1,ht=void 0;try{for(var pt,mt=l[lt][Symbol.iterator]();!(ct=(pt=mt.next()).done);ct=!0){var vt=o[pt.value][B];vt&&(Array.isArray(vt)&&vt.length>1&&(m(vt[1])||Array.isArray(vt[1]))&&(et[nt].easing=tt(vt[1],v.duration||O)),et[nt++].percent=parseFloat(lt)/100)}}catch(t){ft=!0,ht=t}finally{try{!ct&&mt.return&&mt.return()}finally{if(ft)throw ht}}}}catch(t){ot=!0,at=t}finally{try{!it&&ut.return&&ut.return()}finally{if(ot)throw at}}v.tweens[B]=et}}}}catch(t){j=!0,D=t}finally{try{!M&&R.return&&R.return()}finally{if(j)throw D}}}else console.warn("VelocityJS: Trying to set 'registerSequence' sequence to an invalid value:",r,o);else console.warn("VelocityJS: Trying to set 'registerSequence' name to an invalid value:",r)}}],!0);var mn=void 0;try{mn=Promise}catch(t){}var vn=", if that is deliberate then pass `promiseRejectEmpty:false` as an option";function yn(t,e){w(e,"promise",t),w(e,"then",t.then.bind(t)),w(e,"catch",t.catch.bind(t)),t.finally&&w(e,"finally",t.finally.bind(t))}function gn(){var t,e=At,n=arguments.length<=0?void 0:arguments[0],r=d(n)&&(n.p||d(n.properties)&&!n.properties.names||m(n.properties)),o=0,E=void 0,S=void 0,A=void 0,O=void 0,T=void 0,C=void 0,P=void 0;(f(this)?E=[this]:y(this)?(E=_(this),v(this)&&(O=this.velocity.animations)):r?(E=_(n.elements||n.e),o++):f(n)?(E=_([n]),o++):y(n)&&(E=_(n),o++),E&&(w(E,"velocity",gn.bind(E)),O&&w(E.velocity,"animations",O)),r)?S=x(n.properties,n.p):(t=o++,S=arguments.length<=t?void 0:arguments[t]);var I="reverse"===S,M=!I&&m(S),j=M&&Bt[S],D=r?x(n.options,n.o):arguments.length<=o?void 0:arguments[o];if(d(D)&&(A=D),mn&&x(A&&A.promise,e.promise)&&(T=new mn((function(t,e){P=e,C=function(e){v(e)&&e.promise?(delete e.then,delete e.catch,delete e.finally,t(e),yn(e.promise,e)):t(e)}})),E&&yn(T,E)),T){var F=A&&A.promiseRejectEmpty,R=x(F,e.promiseRejectEmpty);E||M?S||(R?P("Velocity: No properties supplied"+(l(F)?"":vn)+". Aborting."):C()):R?P("Velocity: No elements supplied"+(l(F)?"":vn)+". Aborting."):C()}if(!E&&!M||!S)return T;if(M){for(var L=[],N=T&&{_promise:T,_resolver:C,_rejecter:P};o<arguments.length;){var B;L.push((B=o++,arguments.length<=B?void 0:arguments[B]))}var V=S.replace(/\..*$/,""),z=k[V];if(z){var U=z(L,E,N,S);return void 0!==U?U:E||T}if(!j)return void console.error("VelocityJS: First argument ("+S+") was not a property map, a known action, or a registered redirect. Aborting.")}var $=void 0;if(d(S)||I||j){var G={},H=e.sync;if(T&&(w(G,"_promise",T),w(G,"_rejecter",P),w(G,"_resolver",C)),w(G,"_ready",0),w(G,"_started",0),w(G,"_completed",0),w(G,"_total",0),d(A)){var W=Z(A.duration);$=void 0!==W,G.duration=x(W,e.duration),G.delay=x(J(A.delay),e.delay),G.easing=tt(x(A.easing,e.easing),G.duration)||tt(e.easing,G.duration),G.loop=x(nt(A.loop),e.loop),G.repeat=G.repeatAgain=x(at(A.repeat),e.repeat),null!=A.speed&&(G.speed=x(st(A.speed),1)),l(A.promise)&&(G.promise=A.promise),G.queue=x(ot(A.queue),e.queue),A.mobileHA&&!Rt.isGingerbread&&(G.mobileHA=!0),!0===A.drag&&(G.drag=!0),(h(A.stagger)||c(A.stagger))&&(G.stagger=A.stagger),I||(null!=A.display&&(S.display=A.display,console.error('Deprecated "options.display" used, this is now a property:',A.display)),null!=A.visibility&&(S.visibility=A.visibility,console.error('Deprecated "options.visibility" used, this is now a property:',A.visibility)));var Q=K(A.begin),Y=X(A.complete),et=it(A.progress),lt=ut(A.sync);null!=Q&&(G.begin=Q),null!=Y&&(G.complete=Y),null!=et&&(G.progress=et),null!=lt&&(H=lt)}else if(!r){var ct=0;if(G.duration=Z(arguments.length<=o?void 0:arguments[o],!0),void 0===G.duration?G.duration=e.duration:($=!0,ct++),!c(arguments.length<=o+ct?void 0:arguments[o+ct])){var ft=tt(arguments.length<=o+ct?void 0:arguments[o+ct],x(G&&Z(G.duration),e.duration),!0);void 0!==ft&&(ct++,G.easing=ft)}var ht=X(arguments.length<=o+ct?void 0:arguments[o+ct],!0);void 0!==ht&&(G.complete=ht),G.delay=e.delay,G.loop=e.loop,G.repeat=G.repeatAgain=e.repeat}if(I&&!1===G.queue)throw new Error("VelocityJS: Cannot reverse a queue:false animation.");!$&&j&&j.duration&&(G.duration=j.duration);var pt={options:G,elements:E,_prev:void 0,_next:void 0,_flags:H?32:0,percentComplete:0,ellapsedTime:0,timeStart:0};O=[];for(var mt=0;mt<E.length;mt++){var element=E[mt],vt=0;if(f(element)){if(I){var yt=jt(element).lastAnimationList[G.queue];if(!(S=yt&&yt.tweens)){console.error("VelocityJS: Attempting to reverse an animation on an element with no previous animation:",element);continue}vt|=64&~(64&yt._flags)}var gt=Object.assign({},pt,{element:element,_flags:pt._flags|vt});if(G._total++,O.push(gt),G.stagger)if(c(G.stagger)){var bt=bn(G.stagger,element,mt,E.length,E,"stagger");h(bt)&&(gt.delay=G.delay+bt)}else gt.delay=G.delay+G.stagger*mt;G.drag&&(gt.duration=G.duration-G.duration*Math.max(1-(mt+1)/E.length,.75)),j?dn(gt,j):I?gt.tweens=S:(gt.tweens=Object.create(null),ue(gt,S)),Lt(element,gt,G.queue)}}!1===Rt.isTicking&&Ae(!1),O&&w(E.velocity,"animations",O)}return E||T}function bn(t,element,e,n,r,option){try{return t.call(element,e,n,r,option)}catch(t){console.error("VelocityJS: Exception when calling '"+option+"' callback:",t)}}function _n(t,e){try{w(t,(e?"V":"v")+"elocity",gn)}catch(t){console.warn("VelocityJS: Error when trying to add prototype.",t)}}var wn,xn=gn;if(function(t){t.Actions=k,t.Easings=C,t.Sequences=Bt,t.State=Rt,t.defaults=At,t.patch=_n,t.debug=!1,t.mock=!1,t.version=sn,t.Velocity=gn}(wn||(wn={})),function(){if(document.documentMode)return document.documentMode;for(var i=7;i>4;i--){var div=document.createElement("div");if(div.innerHTML="\x3c!--[if IE "+i+"]><span></span><![endif]--\x3e",div.getElementsByTagName("span").length)return div=null,i}}()<=8)throw new Error("VelocityJS cannot run on Internet Explorer 8 or earlier");if(window){var En=window.jQuery,Sn=window.Zepto;_n(window,!0),_n(Element&&Element.prototype),_n(NodeList&&NodeList.prototype),_n(HTMLCollection&&HTMLCollection.prototype),_n(En,!0),_n(En&&En.fn),_n(Sn,!0),_n(Sn&&Sn.fn)}var kn=function(t){if(wn.hasOwnProperty(t))switch(void 0===t?"undefined":r(t)){case"number":case"boolean":w(xn,t,{get:function(){return wn[t]},set:function(e){wn[t]=e}},!0);break;default:w(xn,t,wn[t],!0)}};for(var An in wn)kn(An);Object.freeze(xn),e.a=xn},function(t,e,n){var r;window,r=function(){return function(){var t={282:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearChoices=e.activateChoices=e.filterChoices=e.addChoice=void 0;var r=n(883);e.addChoice=function(t){var e=t.value,label=t.label,n=t.id,o=t.groupId,l=t.disabled,c=t.elementId,f=t.customProperties,h=t.placeholder,d=t.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:e,label:label,id:n,groupId:o,disabled:l,elementId:c,customProperties:f,placeholder:h,keyCode:d}},e.filterChoices=function(t){return{type:r.ACTION_TYPES.FILTER_CHOICES,results:t}},e.activateChoices=function(t){return void 0===t&&(t=!0),{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},e.clearChoices=function(){return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addGroup=void 0;var r=n(883);e.addGroup=function(t){var e=t.value,n=t.id,o=t.active,l=t.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value:e,id:n,active:o,disabled:l}}},464:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.highlightItem=e.removeItem=e.addItem=void 0;var r=n(883);e.addItem=function(t){var e=t.value,label=t.label,n=t.id,o=t.choiceId,l=t.groupId,c=t.customProperties,f=t.placeholder,h=t.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:e,label:label,id:n,choiceId:o,groupId:l,customProperties:c,placeholder:f,keyCode:h}},e.removeItem=function(t,e){return{type:r.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:e}},e.highlightItem=function(t,e){return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:e}}},137:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setIsLoading=e.resetTo=e.clearAll=void 0;var r=n(883);e.clearAll=function(){return{type:r.ACTION_TYPES.CLEAR_ALL}},e.resetTo=function(t){return{type:r.ACTION_TYPES.RESET_TO,state:t}},e.setIsLoading=function(t){return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=o(n(996)),c=o(n(70)),f=n(282),h=n(783),d=n(464),m=n(137),v=n(520),y=n(883),_=n(789),w=n(799),x=n(655),E=o(n(744)),S=o(n(686)),k="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,A={},O=function(){function t(element,e){var n=this;void 0===element&&(element="[data-choice]"),void 0===e&&(e={}),this.config=l.default.all([_.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,e){return r([],e,!0)}});var o=(0,w.diff)(this.config,_.DEFAULT_CONFIG);o.length&&console.warn("Unknown config option(s) passed",o.join(", "));var c="string"==typeof element?document.querySelector(element):element;if(!(c instanceof HTMLInputElement||c instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=c.type===y.TEXT_TYPE,this._isSelectOneElement=c.type===y.SELECT_ONE_TYPE,this._isSelectMultipleElement=c.type===y.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),e.addItemFilter&&"function"!=typeof e.addItemFilter){var f=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.addItemFilter);this.config.addItemFilter=f.test.bind(f)}if(this._isTextElement?this.passedElement=new v.WrappedInput({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new v.WrappedSelect({element:c,classNames:this.config.classNames,template:function(data){return n._templates.option(data)}}),this.initialised=!1,this._store=new E.default,this._initialState=x.defaultState,this._currentState=x.defaultState,this._prevState=x.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,w.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var h=window.getComputedStyle(this.passedElement.element).direction;h!==window.getComputedStyle(document.documentElement).direction&&(this._direction=h)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var d=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(d)}if(this.passedElement.options&&this.passedElement.options.forEach((function(option){n._presetChoices.push({value:option.value,label:option.innerHTML,selected:!!option.selected,disabled:option.disabled||option.parentNode.disabled,placeholder:""===option.value||option.hasAttribute("placeholder"),customProperties:option.dataset["custom-properties"]})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:element}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return A},get templates(){return S.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=S.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,e){if(void 0===e&&(e=!0),!t||!t.id)return this;var n=t.id,r=t.groupId,o=void 0===r?-1:r,l=t.value,c=void 0===l?"":l,f=t.label,label=void 0===f?"":f,h=o>=0?this._store.getGroupById(o):null;return this._store.dispatch((0,d.highlightItem)(n,!0)),e&&this.passedElement.triggerEvent(y.EVENTS.highlightItem,{id:n,value:c,label:label,groupValue:h&&h.value?h.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var e=t.id,n=t.groupId,r=void 0===n?-1:n,o=t.value,l=void 0===o?"":o,c=t.label,label=void 0===c?"":c,f=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,d.highlightItem)(e,!1)),this.passedElement.triggerEvent(y.EVENTS.highlightItem,{id:e,value:l,label:label,groupValue:f&&f.value?f.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(e){return t.highlightItem(e)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(e){return t.unhighlightItem(e)})),this},t.prototype.removeActiveItemsByValue=function(t){var e=this;return this._store.activeItems.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var e=this;return this._store.activeItems.filter((function(e){return e.id!==t})).forEach((function(t){return e._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var e=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(n){e._removeItem(n),t&&e._triggerChange(n.value)})),this},t.prototype.showDropdown=function(t){var e=this;return this.dropdown.isActive||requestAnimationFrame((function(){e.dropdown.show(),e.containerOuter.open(e.dropdown.distanceFromTopWindow),!t&&e._canSearch&&e.input.focus(),e.passedElement.triggerEvent(y.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var e=this;return this.dropdown.isActive?(requestAnimationFrame((function(){e.dropdown.hide(),e.containerOuter.close(),!t&&e._canSearch&&(e.input.removeActiveDescendant(),e.input.blur()),e.passedElement.triggerEvent(y.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var e=this._store.activeItems.reduce((function(e,n){var r=t?n.value:n;return e.push(r),e}),[]);return this._isSelectOneElement?e[0]:e},t.prototype.setValue=function(t){var e=this;return this.initialised?(t.forEach((function(t){return e._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var e=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return e._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,e,label,n){var r=this;if(void 0===t&&(t=[]),void 0===e&&(e="value"),void 0===label&&(label="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof e||!e)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof t){var o=t(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return o})).then((function(data){return r.setChoices(data,e,label,n)})).catch((function(t){r.config.silent||console.error(t)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,e,label,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)r._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:e,labelKey:label});else{var n=t;r._addChoice({value:n[e],label:n[label],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,f.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,m.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,f.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,e=this._isSelectElement,n=this._currentState.items!==this._prevState.items;t&&(e&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,e=this._store,n=e.activeGroups,r=e.activeChoices,o=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var l=r.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));l.length>=1&&(o=this._createChoicesFragment(l,o)),o=this._createGroupsFragment(n,r,o)}else r.length>=1&&(o=this._createChoicesFragment(r,o));if(o.childNodes&&o.childNodes.length>0){var c=this._store.activeItems,f=this._canAddItem(c,this.input.value);if(f.response)this.choiceList.append(o),this._highlightChoice();else{var h=this._getTemplate("notice",f.notice);this.choiceList.append(h)}}else{var d=void 0;h=void 0,this._isSearching?(h="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,d=this._getTemplate("notice",h,"no-results")):(h="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,d=this._getTemplate("notice",h,"no-choices")),this.choiceList.append(d)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var e=this._createItemsFragment(t);e.childNodes&&this.itemList.append(e)},t.prototype._createGroupsFragment=function(t,e,n){var r=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var o=function(t){return e.filter((function(e){return r._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&("always"===r.config.renderSelectedChoices||!e.selected)}))}(t);if(o.length>=1){var l=r._getTemplate("choiceGroup",t);n.appendChild(l),r._createChoicesFragment(o,n,!0)}})),n},t.prototype._createChoicesFragment=function(t,e,n){var o=this;void 0===e&&(e=document.createDocumentFragment()),void 0===n&&(n=!1);var l=this.config,c=l.renderSelectedChoices,f=l.searchResultLimit,h=l.renderChoiceLimit,filter=this._isSearching?w.sortByScore:this.config.sorter,d=function(t){if("auto"!==c||o._isSelectOneElement||!t.selected){var n=o._getTemplate("choice",t,o.config.itemSelectText);e.appendChild(n)}},m=t;"auto"!==c||this._isSelectOneElement||(m=t.filter((function(t){return!t.selected})));var v=m.reduce((function(t,e){return e.placeholder?t.placeholderChoices.push(e):t.normalChoices.push(e),t}),{placeholderChoices:[],normalChoices:[]}),y=v.placeholderChoices,_=v.normalChoices;(this.config.shouldSort||this._isSearching)&&_.sort(filter);var x=m.length,E=this._isSelectOneElement?r(r([],y,!0),_,!0):_;this._isSearching?x=f:h&&h>0&&!n&&(x=h);for(var i=0;i<x;i+=1)E[i]&&d(E[i]);return e},t.prototype._createItemsFragment=function(t,e){var n=this;void 0===e&&(e=document.createDocumentFragment());var r=this.config,o=r.shouldSortItems,l=r.sorter,c=r.removeItemButton;return o&&!this._isSelectOneElement&&t.sort(l),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var r=n._getTemplate("item",t,c);e.appendChild(r)})),e},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(y.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,element){if(t&&element&&this.config.removeItems&&this.config.removeItemButton){var e=element.parentNode&&element.parentNode.dataset.id,n=e&&t.find((function(t){return t.id===parseInt(e,10)}));n&&(this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,element,e){var n=this;if(void 0===e&&(e=!1),t&&element&&this.config.removeItems&&!this._isSelectOneElement){var r=element.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(r),10)||t.highlighted?!e&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,element){if(t&&element){var e=element.dataset.id,n=e&&this._store.getChoiceById(e);if(n){var r=t[0]&&t[0].keyCode?t[0].keyCode:void 0,o=this.dropdown.isActive;n.keyCode=r,this.passedElement.triggerEvent(y.EVENTS.choice,{choice:n}),n.selected||n.disabled||this._canAddItem(t,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var e=t[t.length-1],n=t.some((function(t){return t.highlighted}));this.config.editItems&&!n&&e?(this.input.value=e.value,this.input.setWidth(),this._removeItem(e),this._triggerChange(e.value)):(n||this.highlightItem(e,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,m.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,m.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var e=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?e?e.innerHTML=this.config.loadingText:(e=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(e):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?e&&(e.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(t&&this.input.isFocussed){var e=this._store.choices,n=this.config,r=n.searchFloor,o=n.searchChoices,l=e.some((function(option){return!option.active}));if(t&&t.length>=r){var c=o?this._searchChoices(t):0;this.passedElement.triggerEvent(y.EVENTS.search,{value:t,resultCount:c})}else l&&(this._isSearching=!1,this._store.dispatch((0,f.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,e){var n=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(e):this.config.addItemText;if(!this._isSelectOneElement){var o=(0,w.existsInArray)(t,e);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(n=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&o&&n&&(n=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(e):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(e)&&(n=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(e):this.config.customAddItemText)}return{response:n,notice:r}},t.prototype._searchChoices=function(t){var e="string"==typeof t?t.trim():t,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(e.length<1&&e==="".concat(n," "))return 0;var o=this._store.searchableChoices,l=e,h=r([],this.config.searchFields,!0),d=Object.assign(this.config.fuseOptions,{keys:h,includeMatches:!0}),m=new c.default(o,d).search(l);return this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,f.filterChoices)(m)),m.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var e=t.keyCode,n=this._store.activeItems,r=this.input.isFocussed,o=this.dropdown.isActive,l=this.itemList.hasChildren(),c=String.fromCharCode(e),f=/[a-zA-Z0-9-_ ]/.test(c),h=y.KEY_CODES.BACK_KEY,d=y.KEY_CODES.DELETE_KEY,m=y.KEY_CODES.ENTER_KEY,v=y.KEY_CODES.A_KEY,_=y.KEY_CODES.ESC_KEY,w=y.KEY_CODES.UP_KEY,x=y.KEY_CODES.DOWN_KEY,E=y.KEY_CODES.PAGE_UP_KEY,S=y.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||o||!f||(this.showDropdown(),this.input.isFocussed||(this.input.value+=c.toLowerCase())),e){case v:return this._onSelectKey(t,l);case m:return this._onEnterKey(t,n,o);case _:return this._onEscapeKey(o);case w:case E:case x:case S:return this._onDirectionKey(t,o);case d:case h:return this._onDeleteKey(t,n,r)}},t.prototype._onKeyUp=function(t){var e=t.target,n=t.keyCode,r=this.input.value,o=this._store.activeItems,l=this._canAddItem(o,r),c=y.KEY_CODES.BACK_KEY,h=y.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(l.notice&&r){var d=this._getTemplate("notice",l.notice);this.dropdown.element.innerHTML=d.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var m=(n===c||n===h)&&e&&!e.value,v=!this._isTextElement&&this._isSearching,_=this._canSearch&&l.response;m&&v?(this._isSearching=!1,this._store.dispatch((0,f.activateChoices)(!0))):_&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,e){var n=t.ctrlKey,r=t.metaKey;(n||r)&&e&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,e,n){var r=t.target,o=y.KEY_CODES.ENTER_KEY,l=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var c=this.input.value;this._canAddItem(e,c).response&&(this.hideDropdown(!0),this._addItem({value:c}),this._triggerChange(c),this.clearInput())}if(l&&(this._handleButtonAction(e,r),t.preventDefault()),n){var f=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));f&&(e[0]&&(e[0].keyCode=o),this._handleChoiceAction(e,f)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,e){var n=t.keyCode,r=t.metaKey,o=y.KEY_CODES.DOWN_KEY,l=y.KEY_CODES.PAGE_UP_KEY,c=y.KEY_CODES.PAGE_DOWN_KEY;if(e||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var f=n===o||n===c?1:-1,h="[data-choice-selectable]",d=void 0;if(r||n===c||n===l)d=f>0?this.dropdown.element.querySelector("".concat(h,":last-of-type")):this.dropdown.element.querySelector(h);else{var m=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));d=m?(0,w.getAdjacentEl)(m,h,f):this.dropdown.element.querySelector(h)}d&&((0,w.isScrolledIntoView)(d,this.choiceList.element,f)||this.choiceList.scrollToChildElement(d,f),this._highlightChoice(d)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,e,n){var r=t.target;this._isSelectOneElement||r.value||!n||(this._handleBackspace(e),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var e=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(e)&&((e===this.containerOuter.element||e===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var e=t.target;if(e instanceof HTMLElement){if(k&&this.choiceList.element.contains(e)){var n=this.choiceList.element.firstElementChild,r="ltr"===this._direction?t.offsetX>=n.offsetWidth:t.offsetX<n.offsetLeft;this._isScrollingOnIe=r}if(e!==this.input.element){var o=e.closest("[data-button],[data-item],[data-choice]");if(o instanceof HTMLElement){var l=t.shiftKey,c=this._store.activeItems,f=o.dataset;"button"in f?this._handleButtonAction(c,o):"item"in f?this._handleItemAction(c,o,l):"choice"in f&&this._handleChoiceAction(c,o)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var e=t.target;e instanceof HTMLElement&&"choice"in e.dataset&&this._highlightChoice(e)},t.prototype._onClick=function(t){var e=t.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var e,n=this,r=t.target;r&&this.containerOuter.element.contains(r)&&((e={})[y.TEXT_TYPE]=function(){r===n.input.element&&n.containerOuter.addFocusState()},e[y.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),r===n.input.element&&n.showDropdown(!0)},e[y.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},e)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var e,n=this,r=t.target;if(r&&this.containerOuter.element.contains(r)&&!this._isScrollingOnIe){var o=this._store.activeItems.some((function(t){return t.highlighted}));((e={})[y.TEXT_TYPE]=function(){r===n.input.element&&(n.containerOuter.removeFocusState(),o&&n.unhighlightAll(),n.hideDropdown(!0))},e[y.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(r===n.input.element||r===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},e[y.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),o&&n.unhighlightAll())},e)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,m.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var e=this;void 0===t&&(t=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var r=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(e.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),r?this._highlightPosition=n.indexOf(r):(r=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(r=n[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(y.EVENTS.highlightChoice,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},t.prototype._addItem=function(t){var e=t.value,n=t.label,label=void 0===n?null:n,r=t.choiceId,o=void 0===r?-1:r,l=t.groupId,c=void 0===l?-1:l,f=t.customProperties,h=void 0===f?{}:f,m=t.placeholder,v=void 0!==m&&m,_=t.keyCode,w=void 0===_?-1:_,x="string"==typeof e?e.trim():e,E=this._store.items,S=label||x,k=o||-1,A=c>=0?this._store.getGroupById(c):null,O=E?E.length+1:1;this.config.prependValue&&(x=this.config.prependValue+x.toString()),this.config.appendValue&&(x+=this.config.appendValue.toString()),this._store.dispatch((0,d.addItem)({value:x,label:S,id:O,choiceId:k,groupId:c,customProperties:h,placeholder:v,keyCode:w})),this._isSelectOneElement&&this.removeActiveItems(O),this.passedElement.triggerEvent(y.EVENTS.addItem,{id:O,value:x,label:S,customProperties:h,groupValue:A&&A.value?A.value:null,keyCode:w})},t.prototype._removeItem=function(t){var e=t.id,n=t.value,label=t.label,r=t.customProperties,o=t.choiceId,l=t.groupId,c=l&&l>=0?this._store.getGroupById(l):null;e&&o&&(this._store.dispatch((0,d.removeItem)(e,o)),this.passedElement.triggerEvent(y.EVENTS.removeItem,{id:e,value:n,label:label,customProperties:r,groupValue:c&&c.value?c.value:null}))},t.prototype._addChoice=function(t){var e=t.value,n=t.label,label=void 0===n?null:n,r=t.isSelected,o=void 0!==r&&r,l=t.isDisabled,c=void 0!==l&&l,h=t.groupId,d=void 0===h?-1:h,m=t.customProperties,v=void 0===m?{}:m,y=t.placeholder,_=void 0!==y&&y,w=t.keyCode,x=void 0===w?-1:w;if(null!=e){var E=this._store.choices,S=label||e,k=E?E.length+1:1,A="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(k);this._store.dispatch((0,f.addChoice)({id:k,groupId:d,elementId:A,value:e,label:S,disabled:c,customProperties:v,placeholder:_,keyCode:x})),o&&this._addItem({value:e,label:S,choiceId:k,customProperties:v,placeholder:_,keyCode:x})}},t.prototype._addGroup=function(t){var e=this,n=t.group,r=t.id,o=t.valueKey,l=void 0===o?"value":o,c=t.labelKey,f=void 0===c?"label":c,d=(0,w.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),m=r||Math.floor((new Date).valueOf()*Math.random()),v=!!n.disabled&&n.disabled;d?(this._store.dispatch((0,h.addGroup)({value:n.label,id:m,active:!0,disabled:v})),d.forEach((function(t){var n=t.disabled||t.parentNode&&t.parentNode.disabled;e._addChoice({value:t[l],label:(0,w.isType)("Object",t)?t[f]:t.innerHTML,isSelected:t.selected,isDisabled:n,groupId:m,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,h.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},t.prototype._getTemplate=function(template){for(var t,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=this.config.classNames;return(t=this._templates[template]).call.apply(t,r([this,o],e,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,e={};t&&"function"==typeof t&&(e=t.call(this,w.strToEl)),this._templates=(0,l.default)(S.default,e)},t.prototype._createElements=function(){this.containerOuter=new v.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new v.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new v.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new v.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new v.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new v.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var e=this,n=this.passedElement.placeholderOption;n&&n.parentNode&&"SELECT"===n.parentNode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected,isDisabled:n.disabled,placeholder:!0}),t.forEach((function(t){return e._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var e=this;this.config.shouldSort&&t.sort(this.config.sorter);var n=t.some((function(t){return t.selected})),r=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,o){var l=t.value,c=void 0===l?"":l,label=t.label,f=t.customProperties,h=t.placeholder;if(e._isSelectElement)if(t.choices)e._addGroup({group:t,id:t.id||null});else{var d=!(!e._isSelectOneElement||n||o!==r)||t.selected,m=t.disabled;e._addChoice({value:c,label:label,isSelected:!!d,isDisabled:!!m,placeholder:!!h,customProperties:f})}else e._addChoice({value:c,label:label,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:f})}))},t.prototype._addPredefinedItems=function(t){var e=this;t.forEach((function(t){"object"==typeof t&&t.value&&e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&e._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var e=this;({object:function(){t.value&&(e._isTextElement?e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):e._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){e._isTextElement?e._addItem({value:t}):e._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,w.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var e=this,n=this._store.choices.find((function(n){return e.config.valueComparer(n.value,t)}));n&&!n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var e=this.config,n=e.placeholder,r=e.placeholderValue,o=this.passedElement.element.dataset;if(n){if(r)return r;if(o.placeholder)return o.placeholder}return null},t}();e.default=O},613:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(799),o=n(883),l=function(){function t(t){var element=t.element,e=t.type,n=t.classNames,r=t.position;this.element=element,this.classNames=n,this.type=e,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var e=!1;return"auto"===this.position?e=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(e=!0),e},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===o.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===o.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(element){(0,r.wrap)(element,this.element)},t.prototype.unwrap=function(element){this.element.parentNode&&(this.element.parentNode.insertBefore(element,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();e.default=l},217:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var element=t.element,e=t.type,n=t.classNames;this.element=element,this.classNames=n,this.type=e,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();e.default=n},520:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WrappedSelect=e.WrappedInput=e.List=e.Input=e.Container=e.Dropdown=void 0;var o=r(n(217));e.Dropdown=o.default;var l=r(n(613));e.Container=l.default;var c=r(n(11));e.Input=c.default;var f=r(n(624));e.List=f.default;var h=r(n(541));e.WrappedInput=h.default;var d=r(n(982));e.WrappedSelect=d.default},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(799),o=n(883),l=function(){function t(t){var element=t.element,e=t.type,n=t.classNames,r=t.preventPaste;this.element=element,this.type=e,this.classNames=n,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=element.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,r.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,style=t.style,e=t.value,n=t.placeholder;style.minWidth="".concat(n.length+1,"ch"),style.width="".concat(e.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==o.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();e.default=l},624:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(883),o=function(){function t(t){var element=t.element;this.element=element,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(element,t){var e=this;if(element){var n=this.element.offsetHeight,r=this.element.scrollTop+n,o=element.offsetHeight,l=element.offsetTop+o,c=t>0?this.element.scrollTop+l-r:element.offsetTop;requestAnimationFrame((function(){e._animateScroll(c,t)}))}},t.prototype._scrollDown=function(t,e,n){var r=(n-t)/e,o=r>1?r:1;this.element.scrollTop=t+o},t.prototype._scrollUp=function(t,e,n){var r=(t-n)/e,o=r>1?r:1;this.element.scrollTop=t-o},t.prototype._animateScroll=function(t,e){var n=this,o=r.SCROLLING_SPEED,l=this.element.scrollTop,c=!1;e>0?(this._scrollDown(l,o,t),l<t&&(c=!0)):(this._scrollUp(l,o,t),l>t&&(c=!0)),c&&requestAnimationFrame((function(){n._animateScroll(t,e)}))},t}();e.default=o},730:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(799),o=function(){function t(t){var element=t.element,e=t.classNames;if(this.element=element,this.classNames=e,!(element instanceof HTMLInputElement||element instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,data){(0,r.dispatchEvent)(this.element,t,data)},t}();e.default=o},541:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},r(t,b)},function(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}),l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(e){var element=e.element,n=e.classNames,r=e.delimiter,o=t.call(this,{element:element,classNames:n})||this;return o.delimiter=r,o}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),e}(l(n(730)).default);e.default=c},982:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(t[p]=b[p])},r(t,b)},function(t,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}),l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(e){var element=e.element,n=e.classNames,template=e.template,r=t.call(this,{element:element,classNames:n})||this;return r.template=template,r}return o(e,t),Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var e=this,n=document.createDocumentFragment();t.forEach((function(t){return data=t,option=e.template(data),void n.appendChild(option);var data,option})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),e.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},e}(l(n(730)).default);e.default=c},883:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SCROLLING_SPEED=e.SELECT_MULTIPLE_TYPE=e.SELECT_ONE_TYPE=e.TEXT_TYPE=e.KEY_CODES=e.ACTION_TYPES=e.EVENTS=void 0,e.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},e.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},e.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},e.TEXT_TYPE="text",e.SELECT_ONE_TYPE="select-one",e.SELECT_MULTIPLE_TYPE="select-multiple",e.SCROLLING_SPEED=4},789:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_CONFIG=e.DEFAULT_CLASSNAMES=void 0;var r=n(799);e.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},e.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:r.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,r.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,e){return t===e},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:e.DEFAULT_CLASSNAMES}},799:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.diff=e.cloneObject=e.existsInArray=e.dispatchEvent=e.sortByScore=e.sortByAlpha=e.strToEl=e.sanitise=e.isScrolledIntoView=e.getAdjacentEl=e.wrap=e.isType=e.getType=e.generateId=e.generateChars=e.getRandomNumber=void 0,e.getRandomNumber=function(t,e){return Math.floor(Math.random()*(e-t)+t)},e.generateChars=function(t){return Array.from({length:t},(function(){return(0,e.getRandomNumber)(0,36).toString(36)})).join("")},e.generateId=function(element,t){var n=element.id||element.name&&"".concat(element.name,"-").concat((0,e.generateChars)(2))||(0,e.generateChars)(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),n="".concat(t,"-").concat(n)},e.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},e.isType=function(t,n){return null!=n&&(0,e.getType)(n)===t},e.wrap=function(element,t){return void 0===t&&(t=document.createElement("div")),element.parentNode&&(element.nextSibling?element.parentNode.insertBefore(t,element.nextSibling):element.parentNode.appendChild(t)),t.appendChild(element)},e.getAdjacentEl=function(t,e,n){void 0===n&&(n=1);for(var r="".concat(n>0?"next":"previous","ElementSibling"),o=t[r];o;){if(o.matches(e))return o;o=o[r]}return o},e.isScrolledIntoView=function(element,t,e){return void 0===e&&(e=1),!!element&&(e>0?t.scrollTop+t.offsetHeight>=element.offsetTop+element.offsetHeight:element.offsetTop>=t.scrollTop)},e.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},e.strToEl=(n=document.createElement("div"),function(t){var e=t.trim();n.innerHTML=e;for(var r=n.children[0];n.firstChild;)n.removeChild(n.firstChild);return r}),e.sortByAlpha=function(t,e){var n=t.value,r=t.label,label=void 0===r?n:r,o=e.value,l=e.label,c=void 0===l?o:l;return label.localeCompare(c,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},e.sortByScore=function(a,b){var t=a.score,e=void 0===t?0:t,n=b.score;return e-(void 0===n?0:n)},e.dispatchEvent=function(element,t,e){void 0===e&&(e=null);var n=new CustomEvent(t,{detail:e,bubbles:!0,cancelable:!0});return element.dispatchEvent(n)},e.existsInArray=function(t,e,n){return void 0===n&&(n="value"),t.some((function(t){return"string"==typeof e?t[n]===e.trim():t[n]===e}))},e.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},e.diff=function(a,b){var t=Object.keys(a).sort(),e=Object.keys(b).sort();return t.filter((function(i){return e.indexOf(i)<0}))}},273:function(t,e){"use strict";var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=[],e.default=function(t,r){switch(void 0===t&&(t=e.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var o=r,l={id:o.id,elementId:o.elementId,groupId:o.groupId,value:o.value,label:o.label||o.value,disabled:o.disabled||!1,selected:!1,active:!0,score:9999,customProperties:o.customProperties,placeholder:o.placeholder||!1};return n(n([],t,!0),[l],!1);case"ADD_ITEM":var c=r;return c.choiceId>-1?t.map((function(t){var e=t;return e.id===parseInt("".concat(c.choiceId),10)&&(e.selected=!0),e})):t;case"REMOVE_ITEM":var f=r;return f.choiceId&&f.choiceId>-1?t.map((function(t){var e=t;return e.id===parseInt("".concat(f.choiceId),10)&&(e.selected=!1),e})):t;case"FILTER_CHOICES":var h=r;return t.map((function(t){var e=t;return e.active=h.results.some((function(t){var n=t.item,r=t.score;return n.id===e.id&&(e.score=r,!0)})),e}));case"ACTIVATE_CHOICES":var d=r;return t.map((function(t){var e=t;return e.active=d.active,e}));case"CLEAR_CHOICES":return e.defaultState;default:return t}}},871:function(t,e){"use strict";var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=[],e.default=function(t,r){switch(void 0===t&&(t=e.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var o=r;return n(n([],t,!0),[{id:o.id,value:o.value,active:o.active,disabled:o.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0;var o=n(857),l=r(n(52)),c=r(n(871)),f=r(n(273)),h=r(n(502)),d=n(799);e.defaultState={groups:[],items:[],choices:[],loading:!1};var m=(0,o.combineReducers)({items:l.default,groups:c.default,choices:f.default,loading:h.default});e.default=function(t,n){var r=t;if("CLEAR_ALL"===n.type)r=e.defaultState;else if("RESET_TO"===n.type)return(0,d.cloneObject)(n.state);return m(r,n)}},52:function(t,e){"use strict";var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=[],e.default=function(t,r){switch(void 0===t&&(t=e.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var o=r;return n(n([],t,!0),[{id:o.id,choiceId:o.choiceId,groupId:o.groupId,value:o.value,label:o.label,active:!0,highlighted:!1,customProperties:o.customProperties,placeholder:o.placeholder||!1,keyCode:null}],!1).map((function(t){var e=t;return e.highlighted=!1,e}));case"REMOVE_ITEM":return t.map((function(t){var e=t;return e.id===r.id&&(e.active=!1),e}));case"HIGHLIGHT_ITEM":var l=r;return t.map((function(t){var e=t;return e.id===l.id&&(e.highlighted=l.highlighted),e}));default:return t}}},502:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultState=void 0,e.defaultState=!1,e.default=function(t,n){return void 0===t&&(t=e.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:t}},744:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=n(857),c=o(n(655)),f=function(){function t(){this._store=(0,l.createStore)(c.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return r([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,e=this.choices;return t.filter((function(t){var n=!0===t.active&&!1===t.disabled,r=e.some((function(t){return!0===t.active&&!1===t.disabled}));return n&&r}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(e){return e.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(e){return e.id===t}))},t}();e.default=f},686:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={containerOuter:function(t,e,n,r,o,l){var c=t.containerOuter,div=Object.assign(document.createElement("div"),{className:c});return div.dataset.type=l,e&&(div.dir=e),r&&(div.tabIndex=0),n&&(div.setAttribute("role",o?"combobox":"listbox"),o&&div.setAttribute("aria-autocomplete","list")),div.setAttribute("aria-haspopup","true"),div.setAttribute("aria-expanded","false"),div},containerInner:function(t){var e=t.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(t,e){var n=t.list,r=t.listSingle,o=t.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(e?r:o)})},placeholder:function(t,e){var n=t.placeholder;return Object.assign(document.createElement("div"),{className:n,innerHTML:e})},item:function(t,e,n){var r=t.item,button=t.button,o=t.highlightedState,l=t.itemSelectable,c=t.placeholder,f=e.id,h=e.value,label=e.label,d=e.customProperties,m=e.active,v=e.disabled,y=e.highlighted,_=e.placeholder,div=Object.assign(document.createElement("div"),{className:r,innerHTML:label});if(Object.assign(div.dataset,{item:"",id:f,value:h,customProperties:d}),m&&div.setAttribute("aria-selected","true"),v&&div.setAttribute("aria-disabled","true"),_&&div.classList.add(c),div.classList.add(y?o:l),n){v&&div.classList.remove(l),div.dataset.deletable="";var w="Remove item",x=Object.assign(document.createElement("button"),{type:"button",className:button,innerHTML:w});x.setAttribute("aria-label","".concat(w,": '").concat(h,"'")),x.dataset.button="",div.appendChild(x)}return div},choiceList:function(t,e){var n=t.list,div=Object.assign(document.createElement("div"),{className:n});return e||div.setAttribute("aria-multiselectable","true"),div.setAttribute("role","listbox"),div},choiceGroup:function(t,e){var n=t.group,r=t.groupHeading,o=t.itemDisabled,l=e.id,c=e.value,f=e.disabled,div=Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(f?o:"")});return div.setAttribute("role","group"),Object.assign(div.dataset,{group:"",id:l,value:c}),f&&div.setAttribute("aria-disabled","true"),div.appendChild(Object.assign(document.createElement("div"),{className:r,innerHTML:c})),div},choice:function(t,e,n){var r=t.item,o=t.itemChoice,l=t.itemSelectable,c=t.selectedState,f=t.itemDisabled,h=t.placeholder,d=e.id,m=e.value,label=e.label,v=e.groupId,y=e.elementId,_=e.disabled,w=e.selected,x=e.placeholder,div=Object.assign(document.createElement("div"),{id:y,innerHTML:label,className:"".concat(r," ").concat(o)});return w&&div.classList.add(c),x&&div.classList.add(h),div.setAttribute("role",v&&v>0?"treeitem":"option"),Object.assign(div.dataset,{choice:"",id:d,value:m,selectText:n}),_?(div.classList.add(f),div.dataset.choiceDisabled="",div.setAttribute("aria-disabled","true")):(div.classList.add(l),div.dataset.choiceSelectable=""),div},input:function(t,e){var input=t.input,n=t.inputCloned,r=Object.assign(document.createElement("input"),{type:"text",className:"".concat(input," ").concat(n),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return r.setAttribute("role","textbox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-label",e),r},dropdown:function(t){var e=t.list,n=t.listDropdown,div=document.createElement("div");return div.classList.add(e,n),div.setAttribute("aria-expanded","false"),div},notice:function(t,e,n){var r=t.item,o=t.itemChoice,l=t.noResults,c=t.noChoices;void 0===n&&(n="");var f=[r,o];return"no-choices"===n?f.push(c):"no-results"===n&&f.push(l),Object.assign(document.createElement("div"),{innerHTML:e,className:f.join(" ")})},option:function(t){var label=t.label,e=t.value,n=t.customProperties,r=t.active,o=t.disabled,l=new Option(label,e,!1,r);return n&&(l.dataset.customProperties="".concat(n)),l.disabled=!!o,l}};e.default=n},996:function(t){"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?h((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function o(t,source,e){return t.concat(source).map((function(element){return r(element,e)}))}function l(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function c(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var n={};return e.isMergeableObject(t)&&l(t).forEach((function(o){n[o]=r(t[o],e)})),l(source).forEach((function(o){(function(t,e){return c(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(c(t,o)&&e.isMergeableObject(source[o])?n[o]=function(t,e){if(!e.customMerge)return h;var n=e.customMerge(t);return"function"==typeof n?n:h}(o,e)(t[o],source[o],e):n[o]=r(source[o],e))})),n}function h(t,source,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||e,n.cloneUnlessOtherwiseSpecified=r;var l=Array.isArray(source);return l===Array.isArray(t)?l?n.arrayMerge(t,source,n):f(t,source,n):r(source,n)}h.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return h(t,n,e)}),{})};var d=h;t.exports=d},70:function(t){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(2),a=n(8),s=n(0),l=function(){function t(e,n){var r=n.location,o=void 0===r?0:r,i=n.distance,s=void 0===i?100:i,l=n.threshold,c=void 0===l?.6:l,f=n.maxPatternLength,u=void 0===f?32:f,h=n.caseSensitive,d=void 0!==h&&h,m=n.tokenSeparator,p=void 0===m?/ +/g:m,g=n.findAllMatches,v=void 0!==g&&g,y=n.minMatchCharLength,_=void 0===y?1:y,w=n.id,x=void 0===w?null:w,b=n.keys,E=void 0===b?[]:b,S=n.shouldSort,k=void 0===S||S,A=n.getFn,O=void 0===A?a:A,T=n.sortFn,C=void 0===T?function(t,e){return t.score-e.score}:T,P=n.tokenize,I=void 0!==P&&P,M=n.matchAllTokens,j=void 0!==M&&M,D=n.includeMatches,F=void 0!==D&&D,R=n.includeScore,L=void 0!==R&&R,N=n.verbose,B=void 0!==N&&N;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={location:o,distance:s,threshold:c,maxPatternLength:u,isCaseSensitive:d,tokenSeparator:p,findAllMatches:v,minMatchCharLength:_,id:x,keys:E,includeMatches:F,includeScore:L,shouldSort:k,getFn:O,sortFn:C,verbose:B,tokenize:I,matchAllTokens:j},this.setCollection(e)}var e,n,l;return e=t,(n=[{key:"setCollection",value:function(t){return this.list=t,t}},{key:"search",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(t,'"'));var n=this._prepareSearchers(t),r=n.tokenSearchers,o=n.fullSearcher,i=this._search(r,o),a=i.weights,s=i.results;return this._computeScore(a,s),this.options.shouldSort&&this._sort(s),e.limit&&"number"==typeof e.limit&&(s=s.slice(0,e.limit)),this._format(s)}},{key:"_prepareSearchers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=[];if(this.options.tokenize)for(var n=t.split(this.options.tokenSeparator),r=0,o=n.length;r<o;r+=1)e.push(new i(n[r],this.options));return{tokenSearchers:e,fullSearcher:new i(t,this.options)}}},{key:"_search",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=this.list,r={},o=[];if("string"==typeof n[0]){for(var i=0,a=n.length;i<a;i+=1)this._analyze({key:"",value:n[i],record:i,index:i},{resultMap:r,results:o,tokenSearchers:t,fullSearcher:e});return{weights:null,results:o}}for(var s={},l=0,c=n.length;l<c;l+=1)for(var f=n[l],u=0,h=this.options.keys.length;u<h;u+=1){var d=this.options.keys[u];if("string"!=typeof d){if(s[d.name]={weight:1-d.weight||1},d.weight<=0||d.weight>1)throw new Error("Key weight has to be > 0 and <= 1");d=d.name}else s[d]={weight:1};this._analyze({key:d,value:this.options.getFn(f,d),record:f,index:l},{resultMap:r,results:o,tokenSearchers:t,fullSearcher:e})}return{weights:s,results:o}}},{key:"_analyze",value:function(t,e){var n=t.key,r=t.arrayIndex,o=void 0===r?-1:r,i=t.value,a=t.record,l=t.index,c=e.tokenSearchers,f=void 0===c?[]:c,u=e.fullSearcher,h=void 0===u?[]:u,d=e.resultMap,m=void 0===d?{}:d,p=e.results,g=void 0===p?[]:p;if(null!=i){var v=!1,y=-1,_=0;if("string"==typeof i){this._log("\nKey: ".concat(""===n?"-":n));var w=h.search(i);if(this._log('Full text: "'.concat(i,'", score: ').concat(w.score)),this.options.tokenize){for(var x=i.split(this.options.tokenSeparator),b=[],E=0;E<f.length;E+=1){var S=f[E];this._log('\nPattern: "'.concat(S.pattern,'"'));for(var k=!1,A=0;A<x.length;A+=1){var O=x[A],T=S.search(O),C={};T.isMatch?(C[O]=T.score,v=!0,k=!0,b.push(T.score)):(C[O]=1,this.options.matchAllTokens||b.push(1)),this._log('Token: "'.concat(O,'", score: ').concat(C[O]))}k&&(_+=1)}y=b[0];for(var P=b.length,I=1;I<P;I+=1)y+=b[I];y/=P,this._log("Token score average:",y)}var M=w.score;y>-1&&(M=(M+y)/2),this._log("Score average:",M);var j=!this.options.tokenize||!this.options.matchAllTokens||_>=f.length;if(this._log("\nCheck Matches: ".concat(j)),(v||w.isMatch)&&j){var D=m[l];D?D.output.push({key:n,arrayIndex:o,value:i,score:M,matchedIndices:w.matchedIndices}):(m[l]={item:a,output:[{key:n,arrayIndex:o,value:i,score:M,matchedIndices:w.matchedIndices}]},g.push(m[l]))}}else if(s(i))for(var F=0,R=i.length;F<R;F+=1)this._analyze({key:n,arrayIndex:F,value:i[F],record:a,index:l},{resultMap:m,results:g,tokenSearchers:f,fullSearcher:h})}}},{key:"_computeScore",value:function(t,e){this._log("\n\nComputing score:\n");for(var n=0,r=e.length;n<r;n+=1){for(var o=e[n].output,i=o.length,a=1,s=1,l=0;l<i;l+=1){var c=t?t[o[l].key].weight:1,f=(1===c?o[l].score:o[l].score||.001)*c;1!==c?s=Math.min(s,f):(o[l].nScore=f,a*=f)}e[n].score=1===s?a:s,this._log(e[n])}}},{key:"_sort",value:function(t){this._log("\n\nSorting...."),t.sort(this.options.sortFn)}},{key:"_format",value:function(t){var e=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(t,(function(t,e){if("object"===r(e)&&null!==e){if(-1!==n.indexOf(e))return;n.push(e)}return e}))),n=null}var o=[];this.options.includeMatches&&o.push((function(t,e){var n=t.output;e.matches=[];for(var r=0,o=n.length;r<o;r+=1){var i=n[r];if(0!==i.matchedIndices.length){var a={indices:i.matchedIndices,value:i.value};i.key&&(a.key=i.key),i.hasOwnProperty("arrayIndex")&&i.arrayIndex>-1&&(a.arrayIndex=i.arrayIndex),e.matches.push(a)}}})),this.options.includeScore&&o.push((function(t,e){e.score=t.score}));for(var i=0,a=t.length;i<a;i+=1){var s=t[i];if(this.options.id&&(s.item=this.options.getFn(s.item,this.options.id)[0]),o.length){for(var l={item:s.item},c=0,f=o.length;c<f;c+=1)o[c](s,l);e.push(l)}else e.push(s.item)}return e}},{key:"_log",value:function(){var t;this.options.verbose&&(t=console).log.apply(t,arguments)}}])&&o(e.prototype,n),l&&o(e,l),t}();t.exports=l},function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(3),i=n(4),a=n(7),s=function(){function t(e,n){var r=n.location,o=void 0===r?0:r,i=n.distance,s=void 0===i?100:i,l=n.threshold,c=void 0===l?.6:l,f=n.maxPatternLength,u=void 0===f?32:f,h=n.isCaseSensitive,d=void 0!==h&&h,m=n.tokenSeparator,p=void 0===m?/ +/g:m,g=n.findAllMatches,v=void 0!==g&&g,y=n.minMatchCharLength,_=void 0===y?1:y;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={location:o,distance:s,threshold:c,maxPatternLength:u,isCaseSensitive:d,tokenSeparator:p,findAllMatches:v,minMatchCharLength:_},this.pattern=this.options.isCaseSensitive?e:e.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=a(this.pattern))}var e,n,s;return e=t,(n=[{key:"search",value:function(t){if(this.options.isCaseSensitive||(t=t.toLowerCase()),this.pattern===t)return{isMatch:!0,score:0,matchedIndices:[[0,t.length-1]]};var e=this.options,n=e.maxPatternLength,r=e.tokenSeparator;if(this.pattern.length>n)return o(t,this.pattern,r);var a=this.options,s=a.location,l=a.distance,c=a.threshold,f=a.findAllMatches,u=a.minMatchCharLength;return i(t,this.pattern,this.patternAlphabet,{location:s,distance:l,threshold:c,findAllMatches:f,minMatchCharLength:u})}}])&&r(e.prototype,n),s&&r(e,s),t}();t.exports=s},function(t,e){var n=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,o=new RegExp(e.replace(n,"\\$&").replace(r,"|")),i=t.match(o),a=!!i,s=[];if(a)for(var l=0,c=i.length;l<c;l+=1){var f=i[l];s.push([t.indexOf(f),f.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:s}}},function(t,e,n){var r=n(5),o=n(6);t.exports=function(t,e,n,i){for(var a=i.location,s=void 0===a?0:a,l=i.distance,c=void 0===l?100:l,f=i.threshold,u=void 0===f?.6:f,h=i.findAllMatches,d=void 0!==h&&h,m=i.minMatchCharLength,p=void 0===m?1:m,g=s,v=t.length,y=u,_=t.indexOf(e,g),w=e.length,x=[],b=0;b<v;b+=1)x[b]=0;if(-1!==_){var E=r(e,{errors:0,currentLocation:_,expectedLocation:g,distance:c});if(y=Math.min(E,y),-1!==(_=t.lastIndexOf(e,g+w))){var S=r(e,{errors:0,currentLocation:_,expectedLocation:g,distance:c});y=Math.min(S,y)}}_=-1;for(var k=[],A=1,O=w+v,T=1<<(w<=31?w-1:30),C=0;C<w;C+=1){for(var P=0,I=O;P<I;)r(e,{errors:C,currentLocation:g+I,expectedLocation:g,distance:c})<=y?P=I:O=I,I=Math.floor((O-P)/2+P);O=I;var M=Math.max(1,g-I+1),j=d?v:Math.min(g+I,v)+w,D=Array(j+2);D[j+1]=(1<<C)-1;for(var F=j;F>=M;F-=1){var R=F-1,L=n[t.charAt(R)];if(L&&(x[R]=1),D[F]=(D[F+1]<<1|1)&L,0!==C&&(D[F]|=(k[F+1]|k[F])<<1|1|k[F+1]),D[F]&T&&(A=r(e,{errors:C,currentLocation:R,expectedLocation:g,distance:c}))<=y){if(y=A,(_=R)<=g)break;M=Math.max(1,2*g-_)}}if(r(e,{errors:C+1,currentLocation:g,expectedLocation:g,distance:c})>y)break;k=D}return{isMatch:_>=0,score:0===A?.001:A,matchedIndices:o(x,p)}}},function(t,e){t.exports=function(t,e){var n=e.errors,r=void 0===n?0:n,o=e.currentLocation,i=void 0===o?0:o,a=e.expectedLocation,s=void 0===a?0:a,l=e.distance,c=void 0===l?100:l,f=r/t.length,u=Math.abs(s-i);return c?f+u/c:u?1:f}},function(t,e){t.exports=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,o=-1,i=0,a=t.length;i<a;i+=1){var s=t[i];s&&-1===r?r=i:s||-1===r||((o=i-1)-r+1>=e&&n.push([r,o]),r=-1)}return t[i-1]&&i-r>=e&&n.push([r,i-1]),n}},function(t,e){t.exports=function(t){for(var e={},n=t.length,r=0;r<n;r+=1)e[t.charAt(r)]=0;for(var o=0;o<n;o+=1)e[t.charAt(o)]|=1<<n-o-1;return e}},function(t,e,n){var r=n(0);t.exports=function(t,e){return function t(e,n,o){if(n){var i=n.indexOf("."),a=n,s=null;-1!==i&&(a=n.slice(0,i),s=n.slice(i+1));var l=e[a];if(null!=l)if(s||"string"!=typeof l&&"number"!=typeof l)if(r(l))for(var c=0,f=l.length;c<f;c+=1)t(l[c],s,o);else s&&t(l,s,o);else o.push(l.toString())}else o.push(e);return o}(t,e,[])}}])},857:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(e){r(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function c(code){return"Minified Redux error #"+code+"; visit https://redux.js.org/Errors?code="+code+" for the full message or use the non-minified dev environment for full errors. "}n.r(e),n.d(e,{__DO_NOT_USE__ActionTypes:function(){return d},applyMiddleware:function(){return E},bindActionCreators:function(){return w},combineReducers:function(){return y},compose:function(){return x},createStore:function(){return v}});var f="function"==typeof Symbol&&Symbol.observable||"@@observable",h=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+h(),REPLACE:"@@redux/REPLACE"+h(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h()}};function m(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function v(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(c(1));return n(v)(t,e)}if("function"!=typeof t)throw new Error(c(2));var o=t,l=e,h=[],y=h,_=!1;function w(){y===h&&(y=h.slice())}function x(){if(_)throw new Error(c(3));return l}function E(t){if("function"!=typeof t)throw new Error(c(4));if(_)throw new Error(c(5));var e=!0;return w(),y.push(t),function(){if(e){if(_)throw new Error(c(6));e=!1,w();var n=y.indexOf(t);y.splice(n,1),h=null}}}function S(t){if(!m(t))throw new Error(c(7));if(void 0===t.type)throw new Error(c(8));if(_)throw new Error(c(9));try{_=!0,l=o(l,t)}finally{_=!1}for(var e=h=y,i=0;i<e.length;i++)(0,e[i])();return t}function k(t){if("function"!=typeof t)throw new Error(c(10));o=t,S({type:d.REPLACE})}function A(){var t,e=E;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(c(11));function n(){t.next&&t.next(x())}return n(),{unsubscribe:e(n)}}})[f]=function(){return this},t}return S({type:d.INIT}),(r={dispatch:S,subscribe:E,getState:x,replaceReducer:k})[f]=A,r}function y(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(n[r]=t[r])}var o,l=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:d.INIT}))throw new Error(c(12));if(void 0===n(void 0,{type:d.PROBE_UNKNOWN_ACTION()}))throw new Error(c(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,f={},h=0;h<l.length;h++){var d=l[h],m=n[d],v=t[d],y=m(v,e);if(void 0===y)throw e&&e.type,new Error(c(14));f[d]=y,r=r||y!==v}return(r=r||l.length!==Object.keys(t).length)?f:t}}function _(t,e){return function(){return e(t.apply(this,arguments))}}function w(t,e){if("function"==typeof t)return _(t,e);if("object"!=typeof t||null===t)throw new Error(c(16));var n={};for(var r in t){var o=t[r];"function"==typeof o&&(n[r]=_(o,e))}return n}function x(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(a,b){return function(){return a(b.apply(void 0,arguments))}}))}function E(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(c(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},f=e.map((function(t){return t(o)}));return r=x.apply(void 0,f)(n.dispatch),l(l({},n),{},{dispatch:r})}}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var l=e[r]={exports:{}};return t[r].call(l.exports,l,l.exports,n),l.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r=n(373);return r=r.default}()},t.exports=r()},,function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r,o=Symbol(),l=Symbol(),c=Symbol(),f=Symbol(),h=function(t){return"frag"in t};function d(t,e){l in t||(t[l]=e,Object.defineProperty(t,"parentNode",{get:function(){return this[l]||this.parentElement}}))}function m(t){c in t||(t[c]=!0,Object.defineProperty(t,"nextSibling",{get:function(){var t=this.parentNode.childNodes,e=t.indexOf(this);return e>-1&&t[e+1]||null}}))}function v(t){if(!r){var e=Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");r=e.get}var n=r.apply(t),o=Array.from(n).map((function(e){return function(t,e){for(;t.parentNode!==e;){var n=t.parentNode;n&&(t=n)}return t}(e,t)}));return o.filter((function(t,e){return t!==o[e-1]}))}function y(t){f in t||(t[f]=!0,Object.defineProperties(t,{childNodes:{get:function(){return this.frag||v(this)}},firstChild:{get:function(){return this.childNodes[0]||null}}}),t.hasChildNodes=function(){return this.childNodes.length>0})}function _(){var t;(t=this.frag[0]).before.apply(t,arguments)}function w(){var t=this.frag;t.splice(0,t.length).forEach((function(t){t.remove()}))}var x=function t(e){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return h(e)?t(e.frag):e})))};function E(t){if(h(this)){var e=this.frag.indexOf(t);if(e>-1){var n=this.frag.splice(e,1)[0];0===this.frag.length&&function(t,e){var n=t[o];e.before(n),d(n,t),t.frag.unshift(n)}(this,n),t.remove()}}else{v(this).indexOf(t)>-1&&t.remove()}return t}function S(t,e){var n=this,r=t.frag||[t];if(h(this)){var o=this.frag;if(e){var l=o.indexOf(e);l>-1&&(o.splice.apply(o,[l,0].concat(r)),e.before.apply(e,r))}else{var c=o[o.length-1];o.push.apply(o,r),c.after.apply(c,r)}A(this)}else e?this.childNodes.includes(e)&&e.before.apply(e,r):this.append.apply(this,r);return r.forEach((function(t){d(t,n)})),m(r[r.length-1]),t}function k(t){var e=this.frag;return e[e.length-1].after(t),d(t,this),A(this),e.push(t),t}function A(t){var e=t[o];t.frag[0]===e&&(t.frag.shift(),e.remove())}var O={inserted:function(element){var t=element.parentNode,e=element.nextSibling,n=element.previousSibling,r=Array.from(element.childNodes),l=document.createComment("");0===r.length&&r.push(l),element.frag=r,element[o]=l;var c=document.createDocumentFragment();c.append.apply(c,x(r)),element.replaceWith(c),r.forEach((function(t){d(t,element),m(t)})),y(element),Object.assign(element,{remove:w,appendChild:k,insertBefore:S,removeChild:E,before:_}),Object.defineProperty(element,"innerHTML",{set:function(t){var e=this,n=document.createElement("div");n.innerHTML=t;var r=this.frag.length;Array.from(n.childNodes).forEach((function(t){e.appendChild(t)})),n.append.apply(n,this.frag.splice(0,r))},get:function(){return""}}),t&&(Object.assign(t,{removeChild:E,insertBefore:S}),d(element,t),y(t)),e&&m(element),n&&m(n)},unbind:function(element){element.remove()}}},function(t,e,n){(function(e){"undefined"!=typeof self&&self,t.exports=(()=>{var t={4647:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},9372:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},639:(t,e,n)=>{var r=n(7276),o=n(7321);function i(e,n,a){return o()?(t.exports=i=Reflect.construct,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&r(i,n.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(null,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},5816:t=>{function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},5526:t=>{t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},8620:t=>{function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4422:(t,e,n)=>{var r=n(7276);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},7914:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},1021:t=>{t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports},7321:t=>{t.exports=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(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},7066:(t,e,n)=>{var r=n(1873).default,o=n(4647);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7276:t=>{function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1873:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4885:(t,e,n)=>{var r=n(8620),o=n(7276),i=n(1021),a=n(639);function u(e){var n="function"==typeof Map?new Map:void 0;return t.exports=u=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,u(e)}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports},1298:function(t,e,n){var r,o,i;n(9709),n(9785),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,n(3938),n(8010),n(3238),n(266),n(5613),n(5849),n(2077),n(911),n(7471),n(9372),n(5816),n(5526),n(9109),n(6065)],r=function(t,e,r,o,i,a,u,l,s,c,f,p,h,d,m){"use strict";var v=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,f=v(f),p=v(p),h=v(h),d=v(d);var y=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"vcard";(0,f.default)(this,t),(0,h.default)(this,"charset","utf-8"),(0,h.default)(this,"contentType","text/x-vcard"),(0,h.default)(this,"filename","vcard"),(0,h.default)(this,"fileExtension","vcf"),(0,h.default)(this,"properties",[]),(0,h.default)(this,"definedElements",{}),(0,h.default)(this,"multiplePropertiesForElementAllowed",["email","address","phoneNumber","url"]),(0,h.default)(this,"useVCalendar",!1),"vcalendar"===e&&this.setFormat(e)}return(0,p.default)(t,[{key:"setFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"vcard";"vcalendar"===t?(this.contentType="text/x-vcalendar",this.useVCalendar=!0):"vcard"===t&&(this.contentType="text/x-vcard",this.useVCalendar=!1)}},{key:"addAddress",value:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"WORK;POSTAL",u="".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",";").concat(t,";").concat(e,";").concat(n,";").concat(r,";").concat(o,";").concat(i);return this.setProperty("address","ADR".concat(""!==a?";".concat(a):"").concat(this.getCharsetString()),u),this}},{key:"addBirthday",value:function(t){return this.setProperty("birthday","BDAY",t),this}},{key:"addCompany",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.setProperty("company","ORG".concat(this.getCharsetString()),t+(""!==e?";".concat(e):"")),this}},{key:"addEmail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.setProperty("email","EMAIL;INTERNET".concat(""!==e?";".concat(e):""),t),this}},{key:"addJobtitle",value:function(t){return this.setProperty("jobtitle","TITLE".concat(this.getCharsetString()),t),this}},{key:"addRole",value:function(t){return this.setProperty("role","ROLE".concat(this.getCharsetString()),t),this}},{key:"addMediaURL",value:function(t,e,n){return this.setProperty(n,"".concat(t,";VALUE=uri"),e),this}},{key:"addMediaContent",value:function(t,e,n,r){if(!(0,m.isValidMimeType)(n))throw new d.default("The MIME Media Type is invalid (".concat(n,")"));return this.setProperty(r,"".concat(t,";ENCODING=b;TYPE=").concat(n.toUpperCase()),e),this}},{key:"addName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=[r,e,n,t,o].filter((function(t){return!!t})),a="".concat(t,";").concat(e,";").concat(n,";").concat(r,";").concat(o);return this.setProperty("name","N".concat(this.getCharsetString()),a),this.hasProperty("FN")||this.setProperty("fullname","FN".concat(this.getCharsetString()),i.join(" ").trim()),this}},{key:"addNote",value:function(t){return this.setProperty("note","NOTE".concat(this.getCharsetString()),t),this}},{key:"addCategories",value:function(t){return this.setProperty("categories","CATEGORIES".concat(this.getCharsetString()),t.join(",").trim()),this}},{key:"addPhoneNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.setProperty("phoneNumber","TEL".concat(""!==e?";".concat(e):""),"".concat(t)),this}},{key:"addLogoURL",value:function(t){return this.addMediaURL("LOGO",t,"logo"),this}},{key:"addLogo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"JPEG";return this.addMediaContent("LOGO",t,e,"logo"),this}},{key:"addPhotoURL",value:function(t){return this.addMediaURL("PHOTO",t,"photo"),this}},{key:"addPhoto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"JPEG";return this.addMediaContent("PHOTO",t,e,"photo"),this}},{key:"addURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.setProperty("url","URL".concat(""!==e?";".concat(e):""),t),this}},{key:"buildVCard",value:function(){var t=new Date,e="";return e+="BEGIN:VCARD\r\n",e+="VERSION:3.0\r\n",e+="REV:".concat(t.toISOString(),"\r\n"),this.getProperties().forEach((function(t){e+=(0,m.fold)("".concat(t.key,":").concat((0,m.escape)(t.value),"\r\n"))})),e+="END:VCARD\r\n"}},{key:"buildVCalendar",value:function(){var t=(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").substring(0,13),e="".concat(t,"00"),n="".concat(t,"01"),r=(0,m.b64encode)(this.buildVCard()),o=(0,m.chunkSplit)(r,74,"\n").replace(/(.+)/g," $1");return"BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nDTSTART;TZID=Europe/London:".concat(e,"\nDTEND;TZID=Europe/London:").concat(n,"\nSUMMARY:Click the attachment to save to your contacts\nDTSTAMP:").concat(e,"Z\nATTACH;VALUE=BINARY;ENCODING=BASE64;FMTTYPE=text/directory;\n X-APPLE-FILENAME=").concat(this.getFilename(),".").concat(this.getFileExtension(),":\n").concat(o,"END:VEVENT\nEND:VCALENDAR\n")}},{key:"toString",value:function(){return this.getOutput()}},{key:"getCharset",value:function(){return this.charset}},{key:"getCharsetString",value:function(){var t="";return"utf-8"===this.charset&&(t=";CHARSET=".concat(this.charset)),t}},{key:"getContentType",value:function(){return this.contentType}},{key:"getFilename",value:function(){return this.filename}},{key:"getFileExtension",value:function(){return this.fileExtension}},{key:"getOutput",value:function(){return this.useVCalendar?this.buildVCalendar():this.buildVCard()}},{key:"getProperties",value:function(){return this.properties}},{key:"hasProperty",value:function(t){return this.getProperties().forEach((function(e){if(e.key===t&&""!==e.value)return!0})),!1}},{key:"setCharset",value:function(t){this.charset=t}},{key:"setFilename",value:function(t){t&&(this.filename=t)}},{key:"setProperty",value:function(t,e,n){if(this.multiplePropertiesForElementAllowed.indexOf(t)<0&&this.definedElements[t])throw new d.default("This element already exists (".concat(t,")"));this.definedElements[t]=!0,this.properties.push({key:e,value:n})}}]),t}();t.default=y},void 0===(i=r.apply(e,o))||(t.exports=i)},9109:function(t,e,n){var r,o,i;n(9709),n(9785),n(3214),n(3238),n(1544),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,n(3352),n(5816),n(9372),n(4647),n(4422),n(7066),n(8620),n(4885)],r=function(t,e,r,o,i,a,u,l,s){"use strict";var c=n(7914);function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,l.default)(t);if(e){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r=c(r),o=c(o),i=c(i),a=c(a),u=c(u),l=c(l);var p=function(t){(0,a.default)(n,t);var e=f(n);function n(t){var r;return(0,o.default)(this,n),r=e.call(this,t),Error.captureStackTrace&&Error.captureStackTrace((0,i.default)(r),n),r.name="VCardException",r}return(0,r.default)(n)}((0,(s=c(s)).default)(Error));t.default=p},void 0===(i=r.apply(e,o))||(t.exports=i)},6698:function(t,e,n){var r,o,i;n(9709),n(9785),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,n(1298)],void 0===(i="function"==typeof(r=function(t,e){"use strict";var r=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(e=r(e)).default;t.default=o})?r.apply(e,o):r)||(t.exports=i)},6065:function(t,n,r){var o,l,i;r(9709),r(9785),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,l=[n,r(3238),r(895),r(2077),r(1203),r(2759),r(8237),r(4992),r(5613),r(911),r(266),r(5623),r(1514),r(625)],o=function(t,n,o,l,i,a,u,c,s,f,h,p,d,m){"use strict";var v=r(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.b64encode=function(t){try{return btoa(t)}catch(n){return e.from(t).toString("base64")}},t.chunkSplit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:76,n=e||76,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\r\n")||"\r\n";return e<1?"":t.match(new RegExp(".{0,".concat(n,"}"),"g")).join(r)},t.escape=function(t){return"".concat(t).replace(/\r\n/g,"\\n").replace(/\n/g,"\\n")},t.fold=function(t){if(t.length<=75)return t;var e=t.match(/.{1,73}/g).join("\r\n ").trim();return"".concat(e,"\r\n")},t.isValidMimeType=function(t){return!(!t||!m.default.includes(t.toLowerCase()))},m=v(m)},void 0===(i=o.apply(n,l))||(t.exports=i)},5089:(t,e,n)=>{var r=n(2086),o=n(930),i=n(9268),a=r.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a function")}},1449:(t,e,n)=>{var r=n(2086),o=n(1956),i=n(9268),a=r.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a constructor")}},1378:(t,e,n)=>{var r=n(2086),o=n(930),i=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},8669:(t,e,n)=>{var r=n(211),o=n(4710),i=n(7826),a=r("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},9966:(t,e,n)=>{"use strict";var r=n(3448).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},6112:(t,e,n)=>{var r=n(2086),o=n(8759),i=r.String,a=r.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not an object")}},1984:(t,e,n)=>{"use strict";var r=n(8062).forEach,o=n(2802)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},6198:(t,e,n)=>{var r=n(4088),o=n(7740),i=n(2871),a=function(t){return function(e,n,a){var u,l=r(e),s=i(l),c=o(a,s);if(t&&n!=n){for(;s>c;)if((u=l[c++])!=u)return!0}else for(;s>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},8062:(t,e,n)=>{var r=n(8516),o=n(8240),i=n(5974),a=n(3060),u=n(2871),l=n(5574),s=o([].push),c=function(t){var e=1==t,n=2==t,o=3==t,c=4==t,f=6==t,p=7==t,h=5==t||f;return function(d,m,v,y){for(var g,b,_=a(d),w=i(_),x=r(m,v),E=u(w),S=0,k=y||l,A=e?k(d,E):n||p?k(d,0):void 0;E>S;S++)if((h||S in w)&&(b=x(g=w[S],S,_),t))if(e)A[S]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:s(A,g)}else switch(t){case 4:return!1;case 7:s(A,g)}return f?-1:o||c?c:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},9955:(t,e,n)=>{var r=n(3677),o=n(211),i=n(1448),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2802:(t,e,n)=>{"use strict";var r=n(3677);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},745:(t,e,n)=>{var r=n(8240);t.exports=r([].slice)},8789:(t,e,n)=>{var r=n(2086),o=n(6526),i=n(1956),a=n(8759),u=n(211)("species"),l=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===l||o(e.prototype))||a(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?l:e}},5574:(t,e,n)=>{var r=n(8789);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},2306:(t,e,n)=>{var r=n(8240),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},375:(t,e,n)=>{var r=n(2086),o=n(2371),i=n(930),a=n(2306),u=n(211)("toStringTag"),l=r.Object,s="Arguments"==a(function(){return arguments}());t.exports=o?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=l(t),u))?n:s?a(e):"Object"==(r=a(e))&&i(e.callee)?"Arguments":r}},8474:(t,e,n)=>{var r=n(9606),o=n(6095),i=n(4399),a=n(7826);t.exports=function(t,e,n){for(var u=o(e),l=a.f,s=i.f,c=0;c<u.length;c++){var f=u[c];r(t,f)||n&&r(n,f)||l(t,f,s(e,f))}}},5469:(t,e,n)=>{var r=n(211)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},2585:(t,e,n)=>{var r=n(5283),o=n(7826),i=n(5736);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},5736:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9720:(t,e,n)=>{"use strict";var r=n(2258),o=n(7826),i=n(5736);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},5283:(t,e,n)=>{var r=n(3677);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},821:(t,e,n)=>{var r=n(2086),o=n(8759),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},933:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3526:(t,e,n)=>{var r=n(821)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},4999:(t,e,n)=>{var r=n(563);t.exports=r("navigator","userAgent")||""},1448:(t,e,n)=>{var r,o,i=n(2086),a=n(4999),u=i.process,l=i.Deno,s=u&&u.versions||l&&l.version,c=s&&s.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8684:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1695:(t,e,n)=>{var r=n(2086),o=n(4399).f,i=n(2585),a=n(1007),u=n(3648),l=n(8474),s=n(7189);t.exports=function(t,e){var n,c,f,p,h,d=t.target,m=t.global,v=t.stat;if(n=m?r:v?r[d]||u(d,{}):(r[d]||{}).prototype)for(c in e){if(p=e[c],f=t.noTargetGet?(h=o(n,c))&&h.value:n[c],!s(m?c:d+(v?".":"#")+c,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,c,p,t)}}},3677:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},2331:(t,e,n)=>{"use strict";n(2077);var r=n(8240),o=n(1007),i=n(4861),a=n(3677),u=n(211),l=n(2585),s=u("species"),c=RegExp.prototype;t.exports=function(t,e,n,f){var p=u(t),h=!a((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),d=h&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!h||!d||n){var m=r(/./[p]),v=e(p,""[t],(function(t,e,n,o,a){var u=r(t),l=e.exec;return l===i||l===c.exec?h&&!a?{done:!0,value:m(e,n,o)}:{done:!0,value:u(n,e,o)}:{done:!1}}));o(String.prototype,t,v[0]),o(c,p,v[1])}f&&l(c[p],"sham",!0)}},7258:t=>{var e=Function.prototype,n=e.apply,r=e.bind,o=e.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},8516:(t,e,n)=>{var r=n(8240),o=n(5089),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},2395:(t,e,n)=>{"use strict";var r=n(2086),o=n(8240),i=n(5089),a=n(8759),u=n(9606),l=n(745),s=r.Function,c=o([].concat),f=o([].join),p={},h=function(t,e,n){if(!u(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=s("C,a","return new C("+f(r,",")+")")}return p[e](t,n)};t.exports=s.bind||function(t){var e=i(this),n=e.prototype,r=l(arguments,1),o=function(){var n=c(r,l(arguments));return this instanceof o?h(e,n.length,n):e.apply(t,n)};return a(n)&&(o.prototype=n),o}},9413:t=>{var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},4398:(t,e,n)=>{var r=n(5283),o=n(9606),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),l=u&&"something"===function(){}.name,s=u&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:l,CONFIGURABLE:s}},8240:t=>{var e=Function.prototype,n=e.bind,r=e.call,o=n&&n.bind(r,r);t.exports=n?function(t){return t&&o(t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},563:(t,e,n)=>{var r=n(2086),o=n(930),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},2964:(t,e,n)=>{var r=n(5089);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},8509:(t,e,n)=>{var r=n(8240),o=n(3060),i=Math.floor,a=r("".charAt),u=r("".replace),l=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,p){var h=n+t.length,d=r.length,m=c;return void 0!==f&&(f=o(f),m=s),u(p,m,(function(o,u){var s;switch(a(u,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,h);case"<":s=f[l(u,1,-1)];break;default:var c=+u;if(0===c)return o;if(c>d){var p=i(c/10);return 0===p?o:p<=d?void 0===r[p-1]?a(u,1):r[p-1]+a(u,1):o}s=r[c-1]}return void 0===s?"":s}))}},2086:(t,e,n)=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},9606:(t,e,n)=>{var r=n(8240),o=n(3060),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},7153:t=>{t.exports={}},5963:(t,e,n)=>{var r=n(563);t.exports=r("document","documentElement")},6761:(t,e,n)=>{var r=n(5283),o=n(3677),i=n(821);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5974:(t,e,n)=>{var r=n(2086),o=n(8240),i=n(3677),a=n(2306),u=r.Object,l=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?l(t,""):u(t)}:u},5070:(t,e,n)=>{var r=n(930),o=n(8759),i=n(7530);t.exports=function(t,e,n){var a,u;return i&&r(a=e.constructor)&&a!==n&&o(u=a.prototype)&&u!==n.prototype&&i(t,u),t}},9277:(t,e,n)=>{var r=n(8240),o=n(930),i=n(4489),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3278:(t,e,n)=>{var r,o,i,a=n(9316),u=n(2086),l=n(8240),s=n(8759),c=n(2585),f=n(9606),p=n(4489),h=n(8944),d=n(7153),m="Object already initialized",v=u.TypeError,y=u.WeakMap;if(a||p.state){var g=p.state||(p.state=new y),b=l(g.get),_=l(g.has),w=l(g.set);r=function(t,e){if(_(g,t))throw new v(m);return e.facade=t,w(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return _(g,t)}}else{var x=h("state");d[x]=!0,r=function(t,e){if(f(t,x))throw new v(m);return e.facade=t,c(t,x,e),e},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},6526:(t,e,n)=>{var r=n(2306);t.exports=Array.isArray||function(t){return"Array"==r(t)}},930:t=>{t.exports=function(t){return"function"==typeof t}},1956:(t,e,n)=>{var r=n(8240),o=n(3677),i=n(930),a=n(375),u=n(563),l=n(9277),s=function(){},c=[],f=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=r(p.exec),d=!p.exec(s),m=function(t){if(!i(t))return!1;try{return f(s,c,t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(p,l(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?v:m},7189:(t,e,n)=>{var r=n(3677),o=n(930),i=/#|\.prototype\./,a=function(t,e){var n=l[u(t)];return n==c||n!=s&&(o(e)?r(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=a.data={},s=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},8759:(t,e,n)=>{var r=n(930);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},3296:t=>{t.exports=!1},7994:(t,e,n)=>{var r=n(8759),o=n(2306),i=n(211)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},2071:(t,e,n)=>{var r=n(2086),o=n(563),i=n(930),a=n(5516),u=n(1876),l=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&a(e.prototype,l(t))}},2871:(t,e,n)=>{var r=n(4005);t.exports=function(t){return r(t.length)}},3193:(t,e,n)=>{var r=n(1448),o=n(3677);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9316:(t,e,n)=>{var r=n(2086),o=n(930),i=n(9277),a=r.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},7725:(t,e,n)=>{var r=n(2086),o=n(7994),i=r.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},4710:(t,e,n)=>{var r,o=n(6112),i=n(7711),a=n(8684),u=n(7153),l=n(5963),s=n(821),c=n(8944)("IE_PROTO"),f=function(){},p=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&r?h(r):((e=s("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):h(r);for(var n=a.length;n--;)delete d.prototype[a[n]];return d()};u[c]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=o(t),n=new f,f.prototype=null,n[c]=t):n=d(),void 0===e?n:i.f(n,e)}},7711:(t,e,n)=>{var r=n(5283),o=n(8202),i=n(7826),a=n(6112),u=n(4088),l=n(8779);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=u(e),o=l(e),s=o.length,c=0;s>c;)i.f(t,n=o[c++],r[n]);return t}},7826:(t,e,n)=>{var r=n(2086),o=n(5283),i=n(6761),a=n(8202),u=n(6112),l=n(2258),s=r.TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor;e.f=o?a?function(t,e,n){if(u(t),e=l(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=f(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(u(t),e=l(e),u(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},4399:(t,e,n)=>{var r=n(5283),o=n(9413),i=n(7446),a=n(5736),u=n(4088),l=n(2258),s=n(9606),c=n(6761),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=l(e),c)try{return f(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},62:(t,e,n)=>{var r=n(1352),o=n(8684).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},6952:(t,e)=>{e.f=Object.getOwnPropertySymbols},5516:(t,e,n)=>{var r=n(8240);t.exports=r({}.isPrototypeOf)},1352:(t,e,n)=>{var r=n(8240),o=n(9606),i=n(4088),a=n(6198).indexOf,u=n(7153),l=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,c=[];for(n in r)!o(u,n)&&o(r,n)&&l(c,n);for(;e.length>s;)o(r,n=e[s++])&&(~a(c,n)||l(c,n));return c}},8779:(t,e,n)=>{var r=n(1352),o=n(8684);t.exports=Object.keys||function(t){return r(t,o)}},7446:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7530:(t,e,n)=>{var r=n(8240),o=n(6112),i=n(1378);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},999:(t,e,n)=>{"use strict";var r=n(2371),o=n(375);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},7999:(t,e,n)=>{var r=n(2086),o=n(9413),i=n(930),a=n(8759),u=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!a(r=o(n,t)))return r;if(i(n=t.valueOf)&&!a(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!a(r=o(n,t)))return r;throw u("Can't convert object to primitive value")}},6095:(t,e,n)=>{var r=n(563),o=n(8240),i=n(62),a=n(6952),u=n(6112),l=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=a.f;return n?l(e,n(t)):e}},1007:(t,e,n)=>{var r=n(2086),o=n(930),i=n(9606),a=n(2585),u=n(3648),l=n(9277),s=n(3278),c=n(4398).CONFIGURABLE,f=s.get,p=s.enforce,h=String(String).split("String");(t.exports=function(t,e,n,l){var s,f=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,m=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:e;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||c&&n.name!==v)&&a(n,"name",v),(s=p(n)).source||(s.source=h.join("string"==typeof v?v:""))),t!==r?(f?!m&&t[e]&&(d=!0):delete t[e],d?t[e]=n:a(t,e,n)):d?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||l(this)}))},1189:(t,e,n)=>{var r=n(2086),o=n(9413),i=n(6112),a=n(930),u=n(2306),l=n(4861),s=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=o(n,t,e);return null!==r&&i(r),r}if("RegExp"===u(t))return o(l,t,e);throw s("RegExp#exec called on incompatible receiver")}},4861:(t,e,n)=>{"use strict";var r,o,i=n(9413),a=n(8240),u=n(4059),l=n(4276),s=n(4930),c=n(9197),f=n(4710),p=n(3278).get,h=n(2582),d=n(2910),m=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,g=a("".charAt),b=a("".indexOf),_=a("".replace),w=a("".slice),x=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),E=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(x||S||E||h||d)&&(y=function(t){var e,n,r,o,a,s,c,h=this,d=p(h),k=u(t),A=d.raw;if(A)return A.lastIndex=h.lastIndex,e=i(y,A,k),h.lastIndex=A.lastIndex,e;var O=d.groups,T=E&&h.sticky,C=i(l,h),P=h.source,I=0,M=k;if(T&&(C=_(C,"y",""),-1===b(C,"g")&&(C+="g"),M=w(k,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==g(k,h.lastIndex-1))&&(P="(?: "+P+")",M=" "+M,I++),n=new RegExp("^(?:"+P+")",C)),S&&(n=new RegExp("^"+P+"$(?!\\s)",C)),x&&(r=h.lastIndex),o=i(v,T?n:h,M),T?o?(o.input=w(o.input,I),o[0]=w(o[0],I),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:x&&o&&(h.lastIndex=h.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(m,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&O)for(o.groups=s=f(null),a=0;a<O.length;a++)s[(c=O[a])[0]]=o[c[1]];return o}),t.exports=y},4276:(t,e,n)=>{"use strict";var r=n(6112);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},4930:(t,e,n)=>{var r=n(3677),o=n(2086).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),u=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2582:(t,e,n)=>{var r=n(3677),o=n(2086).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},2910:(t,e,n)=>{var r=n(3677),o=n(2086).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},9586:(t,e,n)=>{var r=n(2086).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},3648:(t,e,n)=>{var r=n(2086),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7420:(t,e,n)=>{"use strict";var r=n(563),o=n(7826),i=n(211),a=n(5283),u=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[u]&&n(e,u,{configurable:!0,get:function(){return this}})}},914:(t,e,n)=>{var r=n(7826).f,o=n(9606),i=n(211)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},8944:(t,e,n)=>{var r=n(9197),o=n(5422),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},4489:(t,e,n)=>{var r=n(2086),o=n(3648),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},9197:(t,e,n)=>{var r=n(3296),o=n(4489);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.2",mode:r?"pure":"global",copyright:"© 2022 Denis Pushkarev (zloirock.ru)"})},3448:(t,e,n)=>{var r=n(8240),o=n(9502),i=n(4059),a=n(9586),u=r("".charAt),l=r("".charCodeAt),s=r("".slice),c=function(t){return function(e,n){var r,c,f=i(a(e)),p=o(n),h=f.length;return p<0||p>=h?t?"":void 0:(r=l(f,p))<55296||r>56319||p+1===h||(c=l(f,p+1))<56320||c>57343?t?u(f,p):r:t?s(f,p,p+2):c-56320+(r-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},4274:(t,e,n)=>{var r=n(4398).PROPER,o=n(3677),i=n(9439);t.exports=function(t){return o((function(){return!!i[t]()||"​᠎"!=="​᠎"[t]()||r&&i[t].name!==t}))}},4080:(t,e,n)=>{var r=n(8240),o=n(9586),i=n(4059),a=n(9439),u=r("".replace),l="["+a+"]",s=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),f=function(t){return function(e){var n=i(o(e));return 1&t&&(n=u(n,s,"")),2&t&&(n=u(n,c,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},7740:(t,e,n)=>{var r=n(9502),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},4088:(t,e,n)=>{var r=n(5974),o=n(9586);t.exports=function(t){return r(o(t))}},9502:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},4005:(t,e,n)=>{var r=n(9502),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},3060:(t,e,n)=>{var r=n(2086),o=n(9586),i=r.Object;t.exports=function(t){return i(o(t))}},1288:(t,e,n)=>{var r=n(2086),o=n(9413),i=n(8759),a=n(2071),u=n(2964),l=n(7999),s=n(211),c=r.TypeError,f=s("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var n,r=u(t,f);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},2258:(t,e,n)=>{var r=n(1288),o=n(2071);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},2371:(t,e,n)=>{var r={};r[n(211)("toStringTag")]="z",t.exports="[object z]"===String(r)},4059:(t,e,n)=>{var r=n(2086),o=n(375),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},9268:(t,e,n)=>{var r=n(2086).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},5422:(t,e,n)=>{var r=n(8240),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},1876:(t,e,n)=>{var r=n(3193);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8202:(t,e,n)=>{var r=n(5283),o=n(3677);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},211:(t,e,n)=>{var r=n(2086),o=n(9197),i=n(9606),a=n(5422),u=n(3193),l=n(1876),s=o("wks"),c=r.Symbol,f=c&&c.for,p=l?c:c&&c.withoutSetter||a;t.exports=function(t){if(!i(s,t)||!u&&"string"!=typeof s[t]){var e="Symbol."+t;u&&i(c,t)?s[t]=c[t]:s[t]=l&&f?f(e):p(e)}return s[t]}},9439:t=>{t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},3938:(t,e,n)=>{"use strict";var r=n(1695),o=n(2086),i=n(3677),a=n(6526),u=n(8759),l=n(3060),s=n(2871),c=n(9720),f=n(5574),p=n(9955),h=n(211),d=n(1448),m=h("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",g=o.TypeError,b=d>=51||!i((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),_=p("concat"),w=function(t){if(!u(t))return!1;var e=t[m];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,forced:!b||!_},{concat:function(t){var e,n,r,o,i,a=l(this),u=f(a,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(w(i=-1===e?a:arguments[e])){if(p+(o=s(i))>v)throw g(y);for(n=0;n<o;n++,p++)n in i&&c(u,p,i[n])}else{if(p>=v)throw g(y);c(u,p++,i)}return u.length=p,u}})},8010:(t,e,n)=>{"use strict";var r=n(1695),o=n(8062).filter;r({target:"Array",proto:!0,forced:!n(9955)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5623:(t,e,n)=>{"use strict";var r=n(1695),o=n(6198).includes,i=n(8669);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},7471:(t,e,n)=>{"use strict";var r=n(1695),o=n(8240),i=n(6198).indexOf,a=n(2802),u=o([].indexOf),l=!!u&&1/u([1],1,-0)<0,s=a("indexOf");r({target:"Array",proto:!0,forced:l||!s},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?u(this,t,e)||0:i(this,t,e)}})},5613:(t,e,n)=>{"use strict";var r=n(1695),o=n(8240),i=n(5974),a=n(4088),u=n(2802),l=o([].join),s=i!=Object,c=u("join",",");r({target:"Array",proto:!0,forced:s||!c},{join:function(t){return l(a(this),void 0===t?",":t)}})},3352:(t,e,n)=>{var r=n(5283),o=n(4398).EXISTS,i=n(8240),a=n(7826).f,u=Function.prototype,l=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(s.exec);r&&!o&&a(u,"name",{configurable:!0,get:function(){try{return c(s,l(this))[1]}catch(t){return""}}})},9709:(t,e,n)=>{n(1695)({global:!0},{globalThis:n(2086)})},9785:(t,e,n)=>{var r=n(1695),o=n(5283),i=n(7826).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},3238:(t,e,n)=>{var r=n(2371),o=n(1007),i=n(999);r||o(Object.prototype,"toString",i,{unsafe:!0})},3214:(t,e,n)=>{var r=n(1695),o=n(563),i=n(7258),a=n(2395),u=n(1449),l=n(6112),s=n(8759),c=n(4710),f=n(3677),p=o("Reflect","construct"),h=Object.prototype,d=[].push,m=f((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!f((function(){p((function(){}))})),y=m||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){u(t),l(e);var n=arguments.length<3?t:u(arguments[2]);if(v&&!m)return p(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(d,r,e),new(i(a,t,r))}var o=n.prototype,f=c(s(o)?o:h),y=i(t,f,e);return s(y)?y:f}})},1544:(t,e,n)=>{var r=n(1695),o=n(2086),i=n(914);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},2759:(t,e,n)=>{var r=n(5283),o=n(2086),i=n(8240),a=n(7189),u=n(5070),l=n(2585),s=n(7826).f,c=n(62).f,f=n(5516),p=n(7994),h=n(4059),d=n(4276),m=n(4930),v=n(1007),y=n(3677),g=n(9606),b=n(3278).enforce,_=n(7420),w=n(211),x=n(2582),E=n(2910),S=w("match"),k=o.RegExp,A=k.prototype,O=o.SyntaxError,T=i(d),C=i(A.exec),P=i("".charAt),I=i("".replace),M=i("".indexOf),j=i("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F=/a/g,R=/a/g,L=new k(F)!==F,N=m.MISSED_STICKY,B=m.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||N||x||E||y((function(){return R[S]=!1,k(F)!=F||k(R)==R||"/a/i"!=k(F,"i")}))))){for(var V=function(t,e){var n,r,o,i,a,s,c=f(A,this),d=p(t),m=void 0===e,v=[],y=t;if(!c&&d&&m&&t.constructor===V)return t;if((d||f(A,t))&&(t=t.source,m&&(e="flags"in y?y.flags:T(y))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),y=t,x&&"dotAll"in F&&(r=!!e&&M(e,"s")>-1)&&(e=I(e,/s/g,"")),n=e,N&&"sticky"in F&&(o=!!e&&M(e,"y")>-1)&&B&&(e=I(e,/y/g,"")),E&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},u=!1,l=!1,s=0,c="";r<=n;r++){if("\\"===(e=P(t,r)))e+=P(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:C(D,j(t,r+1))&&(r+=2,l=!0),o+=e,s++;continue;case">"===e&&l:if(""===c||g(a,c))throw new O("Invalid capture group name");a[c]=!0,i[i.length]=[c,s],l=!1,c="";continue}l?c+=e:o+=e}return[o,i]}(t),t=i[0],v=i[1]),a=u(k(t,e),c?this:A,V),(r||o||v.length)&&(s=b(a),r&&(s.dotAll=!0,s.raw=V(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=P(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+P(t,++r);return o}(t),n)),o&&(s.sticky=!0),v.length&&(s.groups=v)),t!==y)try{l(a,"source",""===y?"(?:)":y)}catch(t){}return a},z=function(t){t in V||s(V,t,{configurable:!0,get:function(){return k[t]},set:function(e){k[t]=e}})},U=c(k),$=0;U.length>$;)z(U[$++]);A.constructor=V,V.prototype=A,v(o,"RegExp",V)}_("RegExp")},8237:(t,e,n)=>{var r=n(2086),o=n(5283),i=n(2582),a=n(2306),u=n(7826).f,l=n(3278).get,s=RegExp.prototype,c=r.TypeError;o&&i&&u(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===a(this))return!!l(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},2077:(t,e,n)=>{"use strict";var r=n(1695),o=n(4861);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},4992:(t,e,n)=>{var r=n(2086),o=n(5283),i=n(4930).MISSED_STICKY,a=n(2306),u=n(7826).f,l=n(3278).get,s=RegExp.prototype,c=r.TypeError;o&&i&&u(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===a(this))return!!l(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},895:(t,e,n)=>{"use strict";var r=n(8240),o=n(4398).PROPER,i=n(1007),a=n(6112),u=n(5516),l=n(4059),s=n(3677),c=n(4276),f="toString",p=RegExp.prototype,h=p.toString,d=r(c),m=s((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),v=o&&h.name!=f;(m||v)&&i(RegExp.prototype,f,(function(){var t=a(this),e=l(t.source),n=t.flags;return"/"+e+"/"+l(void 0===n&&u(p,t)&&!("flags"in p)?d(t):n)}),{unsafe:!0})},1514:(t,e,n)=>{"use strict";var r=n(1695),o=n(8240),i=n(7725),a=n(9586),u=n(4059),l=n(5469),s=o("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~s(u(a(this)),u(i(t)),arguments.length>1?arguments[1]:void 0)}})},1203:(t,e,n)=>{"use strict";var r=n(9413),o=n(2331),i=n(6112),a=n(4005),u=n(4059),l=n(9586),s=n(2964),c=n(9966),f=n(1189);o("match",(function(t,e,n){return[function(e){var n=l(this),o=null==e?void 0:s(e,t);return o?r(o,e,n):new RegExp(e)[t](u(n))},function(t){var r=i(this),o=u(t),l=n(e,r,o);if(l.done)return l.value;if(!r.global)return f(r,o);var s=r.unicode;r.lastIndex=0;for(var p,h=[],d=0;null!==(p=f(r,o));){var m=u(p[0]);h[d]=m,""===m&&(r.lastIndex=c(o,a(r.lastIndex),s)),d++}return 0===d?null:h}]}))},911:(t,e,n)=>{"use strict";var r=n(7258),o=n(9413),i=n(8240),a=n(2331),u=n(3677),l=n(6112),s=n(930),c=n(9502),f=n(4005),p=n(4059),h=n(9586),d=n(9966),m=n(2964),v=n(8509),y=n(1189),g=n(211)("replace"),b=Math.max,_=Math.min,w=i([].concat),x=i([].push),E=i("".indexOf),S=i("".slice),k="$0"==="a".replace(/./,"$0"),A=!!/./[g]&&""===/./[g]("a","$0");a("replace",(function(t,e,n){var i=A?"$":"$0";return[function(t,n){var r=h(this),i=null==t?void 0:m(t,g);return i?o(i,t,r,n):o(e,p(r),t,n)},function(t,o){var a=l(this),u=p(t);if("string"==typeof o&&-1===E(o,i)&&-1===E(o,"$<")){var h=n(e,a,u,o);if(h.done)return h.value}var m=s(o);m||(o=p(o));var g=a.global;if(g){var k=a.unicode;a.lastIndex=0}for(var A=[];;){var O=y(a,u);if(null===O)break;if(x(A,O),!g)break;""===p(O[0])&&(a.lastIndex=d(u,f(a.lastIndex),k))}for(var T,C="",P=0,I=0;I<A.length;I++){for(var M=p((O=A[I])[0]),j=b(_(c(O.index),u.length),0),D=[],F=1;F<O.length;F++)x(D,void 0===(T=O[F])?T:String(T));var R=O.groups;if(m){var L=w([M],D,j,u);void 0!==R&&x(L,R);var N=p(r(o,void 0,L))}else N=v(M,u,j,D,R,o);j>=P&&(C+=S(u,P,j)+N,P=j+M.length)}return C+S(u,P)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!k||A)},266:(t,e,n)=>{"use strict";var r=n(1695),o=n(4080).trim;r({target:"String",proto:!0,forced:n(4274)("trim")},{trim:function(){return o(this)}})},5849:(t,e,n)=>{var r=n(2086),o=n(933),i=n(3526),a=n(1984),u=n(2585),l=function(t){if(t&&t.forEach!==a)try{u(t,"forEach",a)}catch(e){t.forEach=a}};for(var s in o)o[s]&&l(r[s]&&r[s].prototype);l(i)},625:t=>{"use strict";t.exports=JSON.parse('["aces","avci","avcs","avif","bmp","cgm","dicom-rle","emf","example","fits","g3fax","gif","heic","heic-sequence","heif","heif-sequence","hej2k","hsj2","ief","jls","jp2","jpeg","jph","jphc","jpm","jpx","jxr","jxrA","jxrS","jxs","jxsc","jxsi","jxss","ktx","ktx2","naplps","png","prs.btif","prs.pti","pwg-raster","svg+xml","t38","tiff","tiff-fx","vnd.adobe.photoshop","vnd.airzip.accelerator.azv","vnd.cns.inf2","vnd.dece.graphic","vnd.djvu","vnd.dwg","vnd.dxf","vnd.dvb.subtitle","vnd.fastbidsheet","vnd.fpx","vnd.fst","vnd.fujixerox.edmics-mmr","vnd.fujixerox.edmics-rlc","vnd.globalgraphics.pgb","vnd.microsoft.icon","vnd.mix","vnd.ms-modi","vnd.mozilla.apng","vnd.net-fpx","vnd.pco.b16","vnd.radiance","vnd.sealed.png","vnd.sealedmedia.softseal.gif","vnd.sealedmedia.softseal.jpg","vnd.svf","vnd.tencent.tap","vnd.valve.source.texture","vnd.wap.wbmp","vnd.xiff","vnd.zbrush.pcx","wmf","x-emf","x-wmf"]')}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(6698)})()}).call(this,n(154).Buffer)},,,function(t,e,n){var r;!function(){var o={y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return 1===t?"χιλιοστό του δευτερολέπτου":"χιλιοστά του δευτερολέπτου"},decimal:","},l=["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"],c={af:{y:"jaar",mo:function(t){return"maand"+(1===t?"":"e")},w:function(t){return 1===t?"week":"weke"},d:function(t){return 1===t?"dag":"dae"},h:function(t){return 1===t?"uur":"ure"},m:function(t){return 1===t?"minuut":"minute"},s:function(t){return"sekonde"+(1===t?"":"s")},ms:function(t){return"millisekonde"+(1===t?"":"s")},decimal:","},ar:{y:function(t){return["سنة","سنتان","سنوات"][v(t)]},mo:function(t){return["شهر","شهران","أشهر"][v(t)]},w:function(t){return["أسبوع","أسبوعين","أسابيع"][v(t)]},d:function(t){return["يوم","يومين","أيام"][v(t)]},h:function(t){return["ساعة","ساعتين","ساعات"][v(t)]},m:function(t){return["دقيقة","دقيقتان","دقائق"][v(t)]},s:function(t){return["ثانية","ثانيتان","ثواني"][v(t)]},ms:function(t){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][v(t)]},decimal:",",delimiter:" و ",_formatCount:function(t,e){for(var n=m(l,{".":e}),r=t.toString().split(""),i=0;i<r.length;i++){var o=r[i];k(n,o)&&(r[i]=n[o])}return r.join("")}},bg:{y:function(t){return["години","година","години"][_(t)]},mo:function(t){return["месеца","месец","месеца"][_(t)]},w:function(t){return["седмици","седмица","седмици"][_(t)]},d:function(t){return["дни","ден","дни"][_(t)]},h:function(t){return["часа","час","часа"][_(t)]},m:function(t){return["минути","минута","минути"][_(t)]},s:function(t){return["секунди","секунда","секунди"][_(t)]},ms:function(t){return["милисекунди","милисекунда","милисекунди"][_(t)]},decimal:","},bn:{y:"বছর",mo:"মাস",w:"সপ্তাহ",d:"দিন",h:"ঘন্টা",m:"মিনিট",s:"সেকেন্ড",ms:"মিলিসেকেন্ড"},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(t){return["rok","roku","roky","let"][w(t)]},mo:function(t){return["měsíc","měsíce","měsíce","měsíců"][w(t)]},w:function(t){return["týden","týdne","týdny","týdnů"][w(t)]},d:function(t){return["den","dne","dny","dní"][w(t)]},h:function(t){return["hodina","hodiny","hodiny","hodin"][w(t)]},m:function(t){return["minuta","minuty","minuty","minut"][w(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekund"][w(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][w(t)]},decimal:","},cy:{y:"flwyddyn",mo:"mis",w:"wythnos",d:"diwrnod",h:"awr",m:"munud",s:"eiliad",ms:"milieiliad"},da:{y:"år",mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},el:o,en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},eo:{y:function(t){return"jaro"+(1===t?"":"j")},mo:function(t){return"monato"+(1===t?"":"j")},w:function(t){return"semajno"+(1===t?"":"j")},d:function(t){return"tago"+(1===t?"":"j")},h:function(t){return"horo"+(1===t?"":"j")},m:function(t){return"minuto"+(1===t?"":"j")},s:function(t){return"sekundo"+(1===t?"":"j")},ms:function(t){return"milisekundo"+(1===t?"":"j")},decimal:","},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},et:{y:function(t){return"aasta"+(1===t?"":"t")},mo:function(t){return"kuu"+(1===t?"":"d")},w:function(t){return"nädal"+(1===t?"":"at")},d:function(t){return"päev"+(1===t?"":"a")},h:function(t){return"tund"+(1===t?"":"i")},m:function(t){return"minut"+(1===t?"":"it")},s:function(t){return"sekund"+(1===t?"":"it")},ms:function(t){return"millisekund"+(1===t?"":"it")},decimal:","},eu:{y:"urte",mo:"hilabete",w:"aste",d:"egun",h:"ordu",m:"minutu",s:"segundo",ms:"milisegundo",decimal:","},fa:{y:"سال",mo:"ماه",w:"هفته",d:"روز",h:"ساعت",m:"دقیقه",s:"ثانیه",ms:"میلی ثانیه",decimal:"."},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fo:{y:"ár",mo:function(t){return 1===t?"mánaður":"mánaðir"},w:function(t){return 1===t?"vika":"vikur"},d:function(t){return 1===t?"dagur":"dagar"},h:function(t){return 1===t?"tími":"tímar"},m:function(t){return 1===t?"minuttur":"minuttir"},s:"sekund",ms:"millisekund",decimal:","},fr:{y:function(t){return"an"+(t>=2?"s":"")},mo:"mois",w:function(t){return"semaine"+(t>=2?"s":"")},d:function(t){return"jour"+(t>=2?"s":"")},h:function(t){return"heure"+(t>=2?"s":"")},m:function(t){return"minute"+(t>=2?"s":"")},s:function(t){return"seconde"+(t>=2?"s":"")},ms:function(t){return"milliseconde"+(t>=2?"s":"")},decimal:","},gr:o,he:{y:function(t){return 1===t?"שנה":"שנים"},mo:function(t){return 1===t?"חודש":"חודשים"},w:function(t){return 1===t?"שבוע":"שבועות"},d:function(t){return 1===t?"יום":"ימים"},h:function(t){return 1===t?"שעה":"שעות"},m:function(t){return 1===t?"דקה":"דקות"},s:function(t){return 1===t?"שניה":"שניות"},ms:function(t){return 1===t?"מילישנייה":"מילישניות"},decimal:"."},hr:{y:function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},mo:function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},w:function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},d:function(t){return 1===t?"dan":"dana"},h:function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},m:function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},s:function(t){var e=t%10;return 5===e||Math.floor(t)===t&&t>=10&&t<=19?"sekundi":1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi"},ms:function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},decimal:","},hi:{y:"साल",mo:function(t){return 1===t?"महीना":"महीने"},w:function(t){return 1===t?"हफ़्ता":"हफ्ते"},d:"दिन",h:function(t){return 1===t?"घंटा":"घंटे"},m:"मिनट",s:"सेकंड",ms:"मिलीसेकंड",decimal:"."},hu:{y:"év",mo:"hónap",w:"hét",d:"nap",h:"óra",m:"perc",s:"másodperc",ms:"ezredmásodperc",decimal:","},id:{y:"tahun",mo:"bulan",w:"minggu",d:"hari",h:"jam",m:"menit",s:"detik",ms:"milidetik",decimal:"."},is:{y:"ár",mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:"年",mo:"ヶ月",w:"週",d:"日",h:"時間",m:"分",s:"秒",ms:"ミリ秒",decimal:"."},km:{y:"ឆ្នាំ",mo:"ខែ",w:"សប្តាហ៍",d:"ថ្ងៃ",h:"ម៉ោង",m:"នាទី",s:"វិនាទី",ms:"មិល្លីវិនាទី"},kn:{y:function(t){return 1===t?"ವರ್ಷ":"ವರ್ಷಗಳು"},mo:function(t){return 1===t?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"},w:function(t){return 1===t?"ವಾರ":"ವಾರಗಳು"},d:function(t){return 1===t?"ದಿನ":"ದಿನಗಳು"},h:function(t){return 1===t?"ಗಂಟೆ":"ಗಂಟೆಗಳು"},m:function(t){return 1===t?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"},s:function(t){return 1===t?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"},ms:function(t){return 1===t?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"}},ko:{y:"년",mo:"개월",w:"주일",d:"일",h:"시간",m:"분",s:"초",ms:"밀리 초",decimal:"."},ku:{y:"sal",mo:"meh",w:"hefte",d:"roj",h:"seet",m:"deqe",s:"saniye",ms:"mîlîçirk",decimal:","},lo:{y:"ປີ",mo:"ເດືອນ",w:"ອາທິດ",d:"ມື້",h:"ຊົ່ວໂມງ",m:"ນາທີ",s:"ວິນາທີ",ms:"ມິນລິວິນາທີ",decimal:","},lt:{y:function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},mo:function(t){return["mėnuo","mėnesiai","mėnesių"][x(t)]},w:function(t){return["savaitė","savaitės","savaičių"][x(t)]},d:function(t){return["diena","dienos","dienų"][x(t)]},h:function(t){return["valanda","valandos","valandų"][x(t)]},m:function(t){return["minutė","minutės","minučių"][x(t)]},s:function(t){return["sekundė","sekundės","sekundžių"][x(t)]},ms:function(t){return["milisekundė","milisekundės","milisekundžių"][x(t)]},decimal:","},lv:{y:function(t){return E(t)?"gads":"gadi"},mo:function(t){return E(t)?"mēnesis":"mēneši"},w:function(t){return E(t)?"nedēļa":"nedēļas"},d:function(t){return E(t)?"diena":"dienas"},h:function(t){return E(t)?"stunda":"stundas"},m:function(t){return E(t)?"minūte":"minūtes"},s:function(t){return E(t)?"sekunde":"sekundes"},ms:function(t){return E(t)?"milisekunde":"milisekundes"},decimal:","},mk:{y:function(t){return 1===t?"година":"години"},mo:function(t){return 1===t?"месец":"месеци"},w:function(t){return 1===t?"недела":"недели"},d:function(t){return 1===t?"ден":"дена"},h:function(t){return 1===t?"час":"часа"},m:function(t){return 1===t?"минута":"минути"},s:function(t){return 1===t?"секунда":"секунди"},ms:function(t){return 1===t?"милисекунда":"милисекунди"},decimal:","},mr:{y:function(t){return 1===t?"वर्ष":"वर्षे"},mo:function(t){return 1===t?"महिना":"महिने"},w:function(t){return 1===t?"आठवडा":"आठवडे"},d:"दिवस",h:"तास",m:function(t){return 1===t?"मिनिट":"मिनिटे"},s:"सेकंद",ms:"मिलिसेकंद"},ms:{y:"tahun",mo:"bulan",w:"minggu",d:"hari",h:"jam",m:"minit",s:"saat",ms:"milisaat",decimal:"."},nl:{y:"jaar",mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:"uur",m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:"år",mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(t){return["rok","roku","lata","lat"][y(t)]},mo:function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][y(t)]},w:function(t){return["tydzień","tygodnia","tygodnie","tygodni"][y(t)]},d:function(t){return["dzień","dnia","dni","dni"][y(t)]},h:function(t){return["godzina","godziny","godziny","godzin"][y(t)]},m:function(t){return["minuta","minuty","minuty","minut"][y(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekund"][y(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][y(t)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1===t?"mês":"meses"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ro:{y:function(t){return 1===t?"an":"ani"},mo:function(t){return 1===t?"lună":"luni"},w:function(t){return 1===t?"săptămână":"săptămâni"},d:function(t){return 1===t?"zi":"zile"},h:function(t){return 1===t?"oră":"ore"},m:function(t){return 1===t?"minut":"minute"},s:function(t){return 1===t?"secundă":"secunde"},ms:function(t){return 1===t?"milisecundă":"milisecunde"},decimal:","},ru:{y:function(t){return["лет","год","года"][_(t)]},mo:function(t){return["месяцев","месяц","месяца"][_(t)]},w:function(t){return["недель","неделя","недели"][_(t)]},d:function(t){return["дней","день","дня"][_(t)]},h:function(t){return["часов","час","часа"][_(t)]},m:function(t){return["минут","минута","минуты"][_(t)]},s:function(t){return["секунд","секунда","секунды"][_(t)]},ms:function(t){return["миллисекунд","миллисекунда","миллисекунды"][_(t)]},decimal:","},sq:{y:function(t){return 1===t?"vit":"vjet"},mo:"muaj",w:"javë",d:"ditë",h:"orë",m:function(t){return"minut"+(1===t?"ë":"a")},s:function(t){return"sekond"+(1===t?"ë":"a")},ms:function(t){return"milisekond"+(1===t?"ë":"a")},decimal:","},sr:{y:function(t){return["години","година","године"][_(t)]},mo:function(t){return["месеци","месец","месеца"][_(t)]},w:function(t){return["недељи","недеља","недеље"][_(t)]},d:function(t){return["дани","дан","дана"][_(t)]},h:function(t){return["сати","сат","сата"][_(t)]},m:function(t){return["минута","минут","минута"][_(t)]},s:function(t){return["секунди","секунда","секунде"][_(t)]},ms:function(t){return["милисекунди","милисекунда","милисекунде"][_(t)]},decimal:","},ta:{y:function(t){return 1===t?"வருடம்":"ஆண்டுகள்"},mo:function(t){return 1===t?"மாதம்":"மாதங்கள்"},w:function(t){return 1===t?"வாரம்":"வாரங்கள்"},d:function(t){return 1===t?"நாள்":"நாட்கள்"},h:function(t){return 1===t?"மணி":"மணிநேரம்"},m:function(t){return"நிமிட"+(1===t?"ம்":"ங்கள்")},s:function(t){return"வினாடி"+(1===t?"":"கள்")},ms:function(t){return"மில்லி விநாடி"+(1===t?"":"கள்")}},te:{y:function(t){return"సంవత్స"+(1===t?"రం":"రాల")},mo:function(t){return"నెల"+(1===t?"":"ల")},w:function(t){return 1===t?"వారం":"వారాలు"},d:function(t){return"రోజు"+(1===t?"":"లు")},h:function(t){return"గంట"+(1===t?"":"లు")},m:function(t){return 1===t?"నిమిషం":"నిమిషాలు"},s:function(t){return 1===t?"సెకను":"సెకన్లు"},ms:function(t){return 1===t?"మిల్లీసెకన్":"మిల్లీసెకన్లు"}},uk:{y:function(t){return["років","рік","роки"][_(t)]},mo:function(t){return["місяців","місяць","місяці"][_(t)]},w:function(t){return["тижнів","тиждень","тижні"][_(t)]},d:function(t){return["днів","день","дні"][_(t)]},h:function(t){return["годин","година","години"][_(t)]},m:function(t){return["хвилин","хвилина","хвилини"][_(t)]},s:function(t){return["секунд","секунда","секунди"][_(t)]},ms:function(t){return["мілісекунд","мілісекунда","мілісекунди"][_(t)]},decimal:","},ur:{y:"سال",mo:function(t){return 1===t?"مہینہ":"مہینے"},w:function(t){return 1===t?"ہفتہ":"ہفتے"},d:"دن",h:function(t){return 1===t?"گھنٹہ":"گھنٹے"},m:"منٹ",s:"سیکنڈ",ms:"ملی سیکنڈ",decimal:"."},sk:{y:function(t){return["rok","roky","roky","rokov"][w(t)]},mo:function(t){return["mesiac","mesiace","mesiace","mesiacov"][w(t)]},w:function(t){return["týždeň","týždne","týždne","týždňov"][w(t)]},d:function(t){return["deň","dni","dni","dní"][w(t)]},h:function(t){return["hodina","hodiny","hodiny","hodín"][w(t)]},m:function(t){return["minúta","minúty","minúty","minút"][w(t)]},s:function(t){return["sekunda","sekundy","sekundy","sekúnd"][w(t)]},ms:function(t){return["milisekunda","milisekundy","milisekundy","milisekúnd"][w(t)]},decimal:","},sl:{y:function(t){return t%10==1?"leto":t%100==2?"leti":t%100==3||t%100==4||Math.floor(t)!==t&&t%100<=5?"leta":"let"},mo:function(t){return t%10==1?"mesec":t%100==2||Math.floor(t)!==t&&t%100<=5?"meseca":t%10==3||t%10==4?"mesece":"mesecev"},w:function(t){return t%10==1?"teden":t%10==2||Math.floor(t)!==t&&t%100<=4?"tedna":t%10==3||t%10==4?"tedne":"tednov"},d:function(t){return t%100==1?"dan":"dni"},h:function(t){return t%10==1?"ura":t%100==2?"uri":t%10==3||t%10==4||Math.floor(t)!==t?"ure":"ur"},m:function(t){return t%10==1?"minuta":t%10==2?"minuti":t%10==3||t%10==4||Math.floor(t)!==t&&t%100<=4?"minute":"minut"},s:function(t){return t%10==1?"sekunda":t%100==2?"sekundi":t%100==3||t%100==4||Math.floor(t)!==t?"sekunde":"sekund"},ms:function(t){return t%10==1?"milisekunda":t%100==2?"milisekundi":t%100==3||t%100==4||Math.floor(t)!==t?"milisekunde":"milisekund"},decimal:","},sv:{y:"år",mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},sw:{y:function(t){return 1===t?"mwaka":"miaka"},mo:function(t){return 1===t?"mwezi":"miezi"},w:"wiki",d:function(t){return 1===t?"siku":"masiku"},h:function(t){return 1===t?"saa":"masaa"},m:"dakika",s:"sekunde",ms:"milisekunde",decimal:"."},tr:{y:"yıl",mo:"ay",w:"hafta",d:"gün",h:"saat",m:"dakika",s:"saniye",ms:"milisaniye",decimal:","},th:{y:"ปี",mo:"เดือน",w:"สัปดาห์",d:"วัน",h:"ชั่วโมง",m:"นาที",s:"วินาที",ms:"มิลลิวินาที",decimal:"."},vi:{y:"năm",mo:"tháng",w:"tuần",d:"ngày",h:"giờ",m:"phút",s:"giây",ms:"mili giây",decimal:","},zh_CN:{y:"年",mo:"个月",w:"周",d:"天",h:"小时",m:"分钟",s:"秒",ms:"毫秒",decimal:"."},zh_TW:{y:"年",mo:"個月",w:"周",d:"天",h:"小時",m:"分鐘",s:"秒",ms:"毫秒",decimal:"."}};function f(t){var e=function(t,n){return function(t,e){var i,n,r;t=Math.abs(t);var o,l,f,h=function(t){var e=[t.language];if(k(t,"fallbacks")){if(!S(t.fallbacks)||!t.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");e=e.concat(t.fallbacks)}for(var i=0;i<e.length;i++){var n=e[i];if(k(t.languages,n))return t.languages[n];if(k(c,n))return c[n]}throw new Error("No language found.")}(e),m=[];for(i=0,n=e.units.length;i<n;i++){if(o=e.units[i],l=e.unitMeasures[o],i+1===n)if(k(e,"maxDecimalPoints")){var v=Math.pow(10,e.maxDecimalPoints),y=t/l;f=parseFloat((Math.floor(v*y)/v).toFixed(e.maxDecimalPoints))}else f=t/l;else f=Math.floor(t/l);m.push({unitCount:f,unitName:o}),t-=f*l}var _,w,x=0;for(i=0;i<m.length;i++)if(m[i].unitCount){x=i;break}if(e.round)for(i=m.length-1;i>=0&&((r=m[i]).unitCount=Math.round(r.unitCount),0!==i);i--)w=m[i-1],_=e.unitMeasures[w.unitName]/e.unitMeasures[r.unitName],(r.unitCount%_==0||e.largest&&e.largest-1<i-x)&&(w.unitCount+=r.unitCount/_,r.unitCount=0);var E=[];for(i=0,m.length;i<n&&((r=m[i]).unitCount&&E.push(d(r.unitCount,r.unitName,h,e)),E.length!==e.largest);i++);if(!E.length)return d(0,e.units[e.units.length-1],h,e);var A;if(A=k(e,"delimiter")?e.delimiter:k(h,"delimiter")?h.delimiter:", ",!e.conjunction||1===E.length)return E.join(A);if(2===E.length)return E.join(e.conjunction);if(E.length>2)return E.slice(0,-1).join(A)+(e.serialComma?",":"")+e.conjunction+E.slice(-1)}(t,m({},e,n||{}))};return m(e,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var h=f({});function d(t,e,n,r){var o,l;o=k(r,"decimal")?r.decimal:k(n,"decimal")?n.decimal:".",l="function"==typeof n._formatCount?n._formatCount(t,o):t.toString().replace(".",o);var c,f=n[e];return c="function"==typeof f?f(t):f,l+r.spacer+c}function m(t){for(var source,i=1;i<arguments.length;i++)for(var e in source=arguments[i])k(source,e)&&(t[e]=source[e]);return t}function v(t){return 1===t?0:2===t?1:t>2&&t<11?2:0}function y(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3}function _(t){return Math.floor(t)!==t?2:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10==0?0:t%10==1?1:t>1?2:0}function w(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3}function x(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2}function E(t){return t%10==1&&t%100!=11}var S=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}h.getSupportedLanguages=function(){var t=[];for(var e in c)k(c,e)&&"gr"!==e&&t.push(e);return t},h.humanizer=f,void 0===(r=function(){return h}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){var r,o;o=this,void 0===(r=function(){return o.svg4everybody=function(){function embed(t,svg,e){if(e){var n=document.createDocumentFragment(),r=!svg.hasAttribute("viewBox")&&e.getAttribute("viewBox");r&&svg.setAttribute("viewBox",r);for(var o=e.cloneNode(!0);o.childNodes.length;)n.appendChild(o.firstChild);t.appendChild(n)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var e=t._cachedDocument;e||((e=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map((function(n){var r=t._cachedTarget[n.id];r||(r=t._cachedTarget[n.id]=e.getElementById(n.id)),embed(n.parent,n.svg,r)}))}},t.onreadystatechange()}function e(e){function r(){for(var e=0;e<_.length;){var use=_[e],c=use.parentNode,svg=n(c),f=use.getAttribute("xlink:href")||use.getAttribute("href");if(!f&&l.attributeName&&(f=use.getAttribute(l.attributeName)),svg&&f){if(o)if(!l.validate||l.validate(f,svg,use)){c.removeChild(use);var h=f.split("#"),d=h.shift(),m=h.join("#");if(d.length){var x=v[d];x||((x=v[d]=new XMLHttpRequest).open("GET",d),x.send(),x._embeds=[]),x._embeds.push({parent:c,svg:svg,id:m}),t(x)}else embed(c,svg,document.getElementById(m))}else++e,++w}else++e}(!_.length||_.length-w>0)&&y(r,67)}var o,l=Object(e),c=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,f=/\bAppleWebKit\/(\d+)\b/,h=/\bEdge\/12\.(\d+)\b/,d=/\bEdge\/.(\d+)\b/,m=window.top!==window.self;o="polyfill"in l?l.polyfill:c.test(navigator.userAgent)||(navigator.userAgent.match(h)||[])[1]<10547||(navigator.userAgent.match(f)||[])[1]<537||d.test(navigator.userAgent)&&m;var v={},y=window.requestAnimationFrame||setTimeout,_=document.getElementsByTagName("use"),w=0;o&&r()}function n(t){for(var svg=t;"svg"!==svg.nodeName.toLowerCase()&&(svg=svg.parentNode););return svg}return e}()}.apply(e,[]))||(t.exports=r)},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||f,scrollIntoView:r.prototype.scrollIntoView},l=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,c=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==h(arguments[0])?w.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(h(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):w.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==h(arguments[0])){var t=arguments[0].left,e=arguments[0].top;w.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==h(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==h(arguments[0])){var n=y(this),r=n.getBoundingClientRect(),l=this.getBoundingClientRect();n!==e.body?(w.call(this,n,n.scrollLeft+l.left-r.left,n.scrollTop+l.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:l.left,top:l.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function f(t,e){this.scrollLeft=t,this.scrollTop=e}function h(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(t,e){return"Y"===e?t.clientHeight+c<t.scrollHeight:"X"===e?t.clientWidth+c<t.scrollWidth:void 0}function m(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function v(t){var e=d(t,"Y")&&m(t,"Y"),n=d(t,"X")&&m(t,"X");return e||n}function y(t){for(;t!==e.body&&!1===v(t);)t=t.parentNode||t.host;return t}function _(e){var n,r,o,c=(l()-e.startTime)/468;n=function(t){return.5*(1-Math.cos(Math.PI*t))}(c=c>1?1:c),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(_.bind(t,e))}function w(n,r,c){var h,d,m,v,y=l();n===e.body?(h=t,d=t.scrollX||t.pageXOffset,m=t.scrollY||t.pageYOffset,v=o.scroll):(h=n,d=n.scrollLeft,m=n.scrollTop,v=f),_({scrollable:h,method:v,startTime:y,startX:d,startY:m,x:r,y:c})}}}}()},function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],f="undefined"!=typeof MutationObserver,h=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function c(){n&&(n=!1,t()),r&&h()}function f(){l(c)}function h(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(f,e);o=t}return h}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},m=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},v=S(0,0,0,0);function y(t){return parseFloat(t)||0}function _(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+y(t["border-"+n+"-width"])}),0)}function w(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return v;var r=m(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],l=t["padding-"+o];e[o]=y(l)}return e}(r),l=o.left+o.right,c=o.top+o.bottom,f=y(r.width),h=y(r.height);if("border-box"===r.boxSizing&&(Math.round(f+l)!==e&&(f-=_(r,"left","right")+l),Math.round(h+c)!==n&&(h-=_(r,"top","bottom")+c)),!function(t){return t===m(t).document.documentElement}(t)){var d=Math.round(f+l)-e,w=Math.round(h+c)-n;1!==Math.abs(d)&&(f-=d),1!==Math.abs(w)&&(h-=w)}return S(o.left,o.top,f,h)}var x="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof m(t).SVGGraphicsElement}:function(t){return t instanceof m(t).SVGElement&&"function"==typeof t.getBBox};function E(t){return r?x(t)?function(t){var e=t.getBBox();return S(0,0,e.width,e.height)}(t):w(t):v}function S(t,e,n,r){return{x:t,y:e,width:n,height:r}}var k=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var rect=E(this.target);return this.contentRect_=rect,rect.width!==this.broadcastWidth||rect.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var rect=this.contentRect_;return this.broadcastWidth=rect.width,this.broadcastHeight=rect.height,rect},t}(),A=function(t,e){var n,r,o,l,c,f,rect,h=(r=(n=e).x,o=n.y,l=n.width,c=n.height,f="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,rect=Object.create(f.prototype),d(rect,{x:r,y:o,width:l,height:c,top:o,right:r+l,bottom:c+o,left:r}),rect);d(this,{target:t,contentRect:h})},O=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof m(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new k(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof m(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new A(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),T="undefined"!=typeof WeakMap?new WeakMap:new n,C=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new O(e,n,this);T.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){var e;return(e=T.get(this))[t].apply(e,arguments)}}));var P=void 0!==o.ResizeObserver?o.ResizeObserver:C;e.a=P}).call(this,n(36))},function(t,e,n){"use strict";(function(t){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t,e){if(t===e)return!0;if("object"===n(t)){for(var r in t)if(!l(t[r],e[r]))return!1;return!0}return!1}var c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(n,r)}var e,n,l;return e=t,n=[{key:"createObserver",value:function(t,e){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){var r;if(this.options="function"==typeof(r=t)?{callback:r}:r,this.callback=function(t,e){n.options.callback(t,e),t&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var l=(this.options.throttleOptions||{}).leading;this.callback=function(t,e){var n,r,l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=function(f){for(var h=arguments.length,d=new Array(h>1?h-1:0),m=1;m<h;m++)d[m-1]=arguments[m];if(l=d,!n||f!==r){var v=c.leading;"function"==typeof v&&(v=v(f,r)),n&&f===r||!v||t.apply(void 0,[f].concat(o(l))),r=f,clearTimeout(n),n=setTimeout((function(){t.apply(void 0,[f].concat(o(l))),n=0}),e)}};return f._clear=function(){clearTimeout(n),n=null},f}(this.callback,this.options.throttle,{leading:function(t){return"both"===l||"visible"===l&&t||"hidden"===l&&!t}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(t){var e=t[0];if(t.length>1){var r=t.find((function(t){return t.isIntersecting}));r&&(e=r)}if(n.callback){var o=e.isIntersecting&&e.intersectionRatio>=n.threshold;if(o===n.oldResult)return;n.oldResult=o,n.callback(o,e)}}),this.options.intersection),e.context.$nextTick((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}],n&&r(e.prototype,n),l&&r(e,l),t}();function f(t,e,n){var r=e.value;if(r)if("undefined"==typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new c(t,r,n);t._vue_visibilityState=o}}function h(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var d={bind:f,update:function(t,e,n){var r=e.value;if(!l(r,e.oldValue)){var o=t._vue_visibilityState;r?o?o.createObserver(r,n):f(t,{value:r},n):h(t)}},unbind:h};var m={version:"0.4.6",install:function(t){t.directive("observe-visibility",d)}},v=null;"undefined"!=typeof window?v=window.Vue:void 0!==t&&(v=t.Vue),v&&v.use(m),e.a=m}).call(this,n(36))},function(t,e,n){"use strict";var r=n(427),o=n(250),l=n.n(o),c=0;function f(t){var e=this;this.player.on(t,(function(i){e.$emit(t,i,e.player)}))}var h=["play","playing","pause","ended","timeupdate","progress","seeking","seeked","texttrackchange","chapterchange","cuechange","cuepoint","volumechange","playbackratechange","bufferstart","bufferend","error","loaded","durationchange","fullscreenchange","qualitychange","camerachange","resize"],d={props:{playerHeight:{default:320},playerWidth:{default:640},options:{type:Object,default:function(){return{}}},videoId:{type:String,default:""},videoUrl:{type:String,default:""},loop:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0}},data:function(){return{elementId:"vimeo-player-"+(c+=1),player:null}},computed:{getOptions:function(){var t={width:this.playerWidth,height:this.playerHeight,loop:this.loop,autoplay:this.autoplay,controls:this.controls};return this.videoUrl&&(t.url=this.videoUrl),this.videoId&&(t.id=this.videoId),l()(t,this.options)}},watch:{videoId:"update",videoUrl:"update",controls:"update"},mounted:function(){this.videoUrl||this.videoId||console.warn("[VueVimeoPlayer]: You must provide at least a videoUrl or videoId"),this.player=new r.a(this.elementId,this.getOptions),this.setEvents()},beforeDestroy:function(){this.player.unload()},methods:{update:function(){return this.player.loadVideo(this.getOptions)},play:function(){return this.player.play()},pause:function(){return this.player.pause()},mute:function(){return this.player.setVolume(0)},unmute:function(t){return void 0===t&&(t=.5),this.player.setVolume(t)},setEvents:function(){var t=this;this.player.ready().then((function(){t.$emit("ready",t.player)})).catch((function(e){t.$emit("error",e,t.player)})),h.forEach((function(e){return f.call(t,e)}))}},render:function(t){return t("div",{attrs:{id:this.elementId}})}};function m(t,e){t.component("vimeo-player",d)}m.version="0.1.2","undefined"!=typeof window&&window.Vue&&window.Vue.use(m),e.a=m},function(t,e,n){"use strict";(function(t,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var l=void 0!==t&&"[object global]"==={}.toString.call(t);function c(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function f(element){return Boolean(element&&1===element.nodeType&&"nodeName"in element&&element.ownerDocument&&element.ownerDocument.defaultView)}function h(t){return!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t}function d(t){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(t)}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.url,r=e||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(h(r))return"https://vimeo.com/".concat(r);if(d(r))return r.replace("http:","https:");if(e)throw new TypeError("“".concat(e,"” is not a valid video id."));throw new TypeError("“".concat(r,"” is not a vimeo.com url."))}var v=void 0!==Array.prototype.indexOf,y="undefined"!=typeof window&&void 0!==window.postMessage;if(!(l||v&&y))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(t){}}(),r=function(object,t,e){n?Object.defineProperty(object,t,{configurable:!0,writable:!0,value:e}):object[t]=e};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",l("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(t,n){if(!o(t)||!e.call(t,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof t)}function l(t){return t+"_"+c()+"."+c()}function c(){return Math.random().toString().substring(2)}return r(t.prototype,"delete",(function(t){if(n(this,"delete"),!o(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)&&(delete t[this._id],!0)})),r(t.prototype,"get",(function(t){if(n(this,"get"),o(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),r(t.prototype,"has",(function(t){if(n(this,"has"),!o(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),r(t.prototype,"set",(function(t,e){if(n(this,"set"),!o(t))throw new TypeError("Invalid value used as weak map key");var l=t[this._id];return l&&l[0]===t?(l[1]=e,this):(r(t,this._id,[t,e]),this)})),r(t,"_polyfill",!0),t}()}function o(t){return Object(t)===t}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:_);var w=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var e,r,o;o=function(){var t,e,r,o=Object.prototype.toString,l=void 0!==n?function(t){return n(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,r){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(t,e,n){return t[e]=n,t}}function c(t,n){r.add(t,n),e||(e=l(r.drain))}function f(t){var e,n=typeof t;return null==t||"object"!=n&&"function"!=n||(e=t.then),"function"==typeof e&&e}function h(){for(var i=0;i<this.chain.length;i++)d(this,1===this.state?this.chain[i].success:this.chain[i].failure,this.chain[i]);this.chain.length=0}function d(t,e,n){var r,o;try{!1===e?n.reject(t.msg):(r=!0===e?t.msg:e.call(void 0,t.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=f(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(t){n.reject(t)}}function m(t){var e,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(e=f(t))?c((function(){var r=new _(n);try{e.call(t,(function(){m.apply(r,arguments)}),(function(){v.apply(r,arguments)}))}catch(t){v.call(r,t)}})):(n.msg=t,n.state=1,n.chain.length>0&&c(h,n))}catch(t){v.call(new _(n),t)}}}function v(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&c(h,e))}function y(t,e,n,r){for(var o=0;o<e.length;o++)!function(o){t.resolve(e[o]).then((function(t){n(o,t)}),r)}(o)}function _(t){this.def=t,this.triggered=!1}function w(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function x(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new w(this);this.then=function(t,n){var r={success:"function"!=typeof t||t,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");r.resolve=t,r.reject=e})),e.chain.push(r),0!==e.state&&c(h,e),r.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){m.call(e,t)}),(function(t){v.call(e,t)}))}catch(t){v.call(e,t)}}r=function(){var t,n,r;function o(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,l){r=new o(e,l),n?n.next=r:t=r,n=r,r=void 0},drain:function(){var r=t;for(t=n=e=void 0;r;)r.fn.call(r.self),r=r.next}}}();var E=t({},"constructor",x,!1);return x.prototype=E,t(E,"__NPO__",0,!1),t(x,"resolve",(function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this((function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");e(t)}))})),t(x,"reject",(function(t){return new this((function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");n(t)}))})),t(x,"all",(function(t){var e=this;return"[object Array]"!=o.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=t.length,l=Array(o),c=0;y(e,t,(function(t,e){l[t]=e,++c===o&&n(l)}),r)}))})),t(x,"race",(function(t){var e=this;return"[object Array]"!=o.call(t)?e.reject(TypeError("Not an array")):new e((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");y(e,t,(function(t,e){n(e)}),r)}))})),x},(r=_)[e="Promise"]=r[e]||o(),t.exports&&(t.exports=r[e])})),x=new WeakMap;function E(t,e,n){var r=x.get(t.element)||{};e in r||(r[e]=[]),r[e].push(n),x.set(t.element,r)}function S(t,e){return(x.get(t.element)||{})[e]||[]}function k(t,e,n){var r=x.get(t.element)||{};if(!r[e])return!0;if(!n)return r[e]=[],x.set(t.element,r),!0;var o=r[e].indexOf(n);return-1!==o&&r[e].splice(o,1),x.set(t.element,r),r[e]&&0===r[e].length}function A(t,e){var n=x.get(t);x.set(e,n),x.delete(t)}var O=["autopause","autoplay","background","byline","color","controls","dnt","height","id","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function T(element){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O.reduce((function(t,param){var e=element.getAttribute("data-vimeo-".concat(param));return(e||""===e)&&(t[param]=""===e?1:e),t}),t)}function C(t,element){var html=t.html;if(!element)throw new TypeError("An element must be provided");if(null!==element.getAttribute("data-vimeo-initialized"))return element.querySelector("iframe");var div=document.createElement("div");return div.innerHTML=html,element.appendChild(div.firstChild),element.setAttribute("data-vimeo-initialized","true"),element.querySelector("iframe")}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},element=arguments.length>2?arguments[2]:void 0;return new Promise((function(n,r){if(!d(t))throw new TypeError("“".concat(t,"” is not a vimeo.com url."));var o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var param in e)e.hasOwnProperty(param)&&(o+="&".concat(param,"=").concat(encodeURIComponent(e[param])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",o,!0),l.onload=function(){if(404!==l.status)if(403!==l.status)try{var e=JSON.parse(l.responseText);if(403===e.domain_status_code)return C(e,element),void r(new Error("“".concat(t,"” is not embeddable.")));n(e)}catch(t){r(t)}else r(new Error("“".concat(t,"” is not embeddable.")));else r(new Error("“".concat(t,"” was not found.")))},l.onerror=function(){var t=l.status?" (".concat(l.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},l.send()}))}function I(data){if("string"==typeof data)try{data=JSON.parse(data)}catch(t){return console.warn(t),{}}return data}function M(t,e,n){if(t.element.contentWindow&&t.element.contentWindow.postMessage){var r={method:e};void 0!==n&&(r.value=n);var o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),t.element.contentWindow.postMessage(r,t.origin)}}function j(t,data){var param,e=[];if((data=I(data)).event){if("error"===data.event)S(t,data.data.method).forEach((function(e){var n=new Error(data.data.message);n.name=data.data.name,e.reject(n),k(t,data.data.method,e)}));e=S(t,"event:".concat(data.event)),param=data.data}else if(data.method){var n=function(t,e){var n=S(t,e);if(n.length<1)return!1;var r=n.shift();return k(t,e,r),r}(t,data.method);n&&(e.push(n),param=data.value)}e.forEach((function(e){try{if("function"==typeof e)return void e.call(t,param);e.resolve(param)}catch(t){}}))}var D=new WeakMap,F=new WeakMap,R={},L=function(){function t(element){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,t),window.jQuery&&element instanceof jQuery&&(element.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),element=element[0]),"undefined"!=typeof document&&"string"==typeof element&&(element=document.getElementById(element)),!f(element))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==element.nodeName){var iframe=element.querySelector("iframe");iframe&&(element=iframe)}if("IFRAME"===element.nodeName&&!d(element.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(D.has(element))return D.get(element);this._window=element.ownerDocument.defaultView,this.element=element,this.origin="*";var o=new w((function(t,r){if(e._onMessage=function(n){if(d(n.origin)&&e.element.contentWindow===n.source){"*"===e.origin&&(e.origin=n.origin);var data=I(n.data);if(data&&"error"===data.event&&data.data&&"ready"===data.data.method){var o=new Error(data.data.message);return o.name=data.data.name,void r(o)}var l=data&&"ready"===data.event,c=data&&"ping"===data.method;if(l||c)return e.element.setAttribute("data-ready","true"),void t();j(e,data)}},e._window.addEventListener("message",e._onMessage),"IFRAME"!==e.element.nodeName){var o=T(element,n);P(m(o),o,element).then((function(data){var iframe=C(data,element);return e.element=iframe,e._originalElement=element,A(element,iframe),D.set(e.element,e),data})).catch(r)}}));if(F.set(this,o),D.set(this.element,this),"IFRAME"===this.element.nodeName&&M(this,"ping"),R.isEnabled){var l=function(){return R.exit()};this.fullscreenchangeHandler=function(){R.isFullscreen?E(e,"event:exitFullscreen",l):k(e,"event:exitFullscreen",l),e.ready().then((function(){M(e,"fullscreenchange",R.isFullscreen)}))},R.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var e,n,l;return e=t,n=[{key:"callMethod",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new w((function(r,o){return e.ready().then((function(){E(e,t,{resolve:r,reject:o}),M(e,t,n)})).catch(o)}))}},{key:"get",value:function(t){var e=this;return new w((function(n,r){return t=c(t,"get"),e.ready().then((function(){E(e,t,{resolve:n,reject:r}),M(e,t)})).catch(r)}))}},{key:"set",value:function(t,e){var n=this;return new w((function(r,o){if(t=c(t,"set"),null==e)throw new TypeError("There must be a value to set.");return n.ready().then((function(){E(n,t,{resolve:r,reject:o}),M(n,t,e)})).catch(o)}))}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===S(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),E(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");k(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch((function(t){}))}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=F.get(this)||new w((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return w.resolve(t)}},{key:"addCuePoint",value:function(time){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:time,data:data})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return R.isEnabled?R.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return R.isEnabled?R.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return R.isEnabled?w.resolve(R.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new w((function(e){if(F.delete(t),D.delete(t.element),t._originalElement&&(D.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&"DIV"===t.element.nodeName&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var iframe=t.element.querySelector("iframe");iframe&&iframe.parentNode&&(iframe.parentNode.parentNode&&t._originalElement&&t._originalElement!==iframe.parentNode?iframe.parentNode.parentNode.removeChild(iframe.parentNode):iframe.parentNode.removeChild(iframe))}t._window.removeEventListener("message",t._onMessage),R.isEnabled&&R.off("fullscreenchange",t.fullscreenchangeHandler),e()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}}],n&&o(e.prototype,n),l&&o(e,l),t}();l||(R=function(){var t=function(){for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,n=e.length,r={};i<n;i++)if((t=e[i])&&t[1]in document){for(i=0;i<t.length;i++)r[e[0][i]]=t[i];return r}return!1}(),e={fullscreenchange:t.fullscreenchange,fullscreenerror:t.fullscreenerror},n={request:function(element){return new Promise((function(e,r){var o=function t(){n.off("fullscreenchange",t),e()};n.on("fullscreenchange",o);var l=(element=element||document.documentElement)[t.requestFullscreen]();l instanceof Promise&&l.then(o).catch(r)}))},exit:function(){return new Promise((function(e,r){if(n.isFullscreen){var o=function t(){n.off("fullscreenchange",t),e()};n.on("fullscreenchange",o);var l=document[t.exitFullscreen]();l instanceof Promise&&l.then(o).catch(r)}else e()}))},on:function(t,n){var r=e[t];r&&document.addEventListener(r,n)},off:function(t,n){var r=e[t];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[t.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[t.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[t.fullscreenEnabled])}}}),n}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach((function(element){try{if(null!==element.getAttribute("data-vimeo-defer"))return;var t=T(element);P(m(t),t,element).then((function(data){return C(data,element)})).catch(n)}catch(t){n(t)}}))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(e){if(d(e.origin)&&e.data&&"spacechange"===e.data.event)for(var n=t.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===e.source){n[i].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}};window.addEventListener("message",e)}}()),e.a=L}).call(this,n(36),n(296).setImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(n(656)),o=l(n(84));function l(t){return t&&t.__esModule?t:{default:t}}function c(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}var f={maxZoom:{type:Number,twoWay:!1},batchSizeIE:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},enableRetinaIcons:{type:Boolean,twoWay:!1},gridSize:{type:Number,twoWay:!1},averageCenter:{type:Boolean,twoWay:!1},ignoreHidden:{type:Boolean,twoWay:!1},imageExtension:{type:String,twoWay:!1},imagePath:{type:String,twoWay:!1},imageSizes:{type:Array,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},clusterClass:{type:String,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}},h=(0,o.default)({mappedProps:f,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===r.default)throw new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");return r.default},ctrArgs:function(t){return[t.map,[],c(t,["map"])]},render:function(t){return t("div",this.$slots.default)},afterCreate:function(t){var e=this,n=function(){var e=t.getMarkers();t.clearMarkers(),t.addMarkers(e)};Object.keys(f).forEach((function(t){f[t].twoWay&&e.$on("".concat(t.toLowerCase(),"_changed"),n)}))},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var t=this;this.$children.forEach((function(marker){marker.$clusterObject===t.$clusterObject&&(marker.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});e.default=h},function(t,e,n){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r=n(6),o=n(7),i=n(8),a=n(9);t.exports=function(t){return r(t)||o(t)||i(t)||a()}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(2),a=n.n(i),u=n(3),l=n.n(u),s=n(4),c=n.n(s);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(){function t(){l()(this,t)}return c()(t,[{key:"_convertMeasurements",value:function(t){var e="";switch((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"km").toLowerCase()){case"mi":e=(.62137*t).toFixed(1);break;case"km":default:e=t.toFixed(1);break;case"m":e=(1e3*t).toFixed()}return parseFloat(e)}},{key:"_haversine",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.map((function(t){return t/180*Math.PI})),o=r[0],i=r[1],a=r[2],l=6372.8,s=a-o,c=r[3]-i,f=Math.sin(s/2)*Math.sin(s/2)+Math.sin(c/2)*Math.sin(c/2)*Math.cos(o)*Math.cos(a);return l*(2*Math.asin(Math.sqrt(f)))}},{key:"isGeolocationAvailable",value:function(){return new Promise((function(t,e){"geolocation"in navigator?navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){switch(t.code){case t.PERMISSION_DENIED:e(new Error("Error: Permission denied"));break;case t.POSITION_UNAVAILABLE:e(new Error("Error: Position unavailable"));break;case t.TIMEOUT:e(new Error("Error: Timeout"))}})):e(new Error("Error: Geolocation disabled in your browser"))}))}},{key:"getDistanceBetween",value:function(t,e,n){if(t.hasOwnProperty("latitude")&&t.hasOwnProperty("longitude")&&e.hasOwnProperty("latitude")&&e.hasOwnProperty("longitude")){var r=this._haversine(t.latitude,t.longitude,e.latitude,e.longitude);return this._convertMeasurements(r,n)}throw new Error("Error: Position latitude or longitude is not correct")}},{key:"getClosestPosition",value:function(t,e,n){var r=this,o=e.map((function(e){return r.getDistanceBetween(t,e,n)})),i=o.indexOf(Math.min.apply(Math,a()(o)));return console.log("getClosestPosition: closestPosition: ",p(p({},e[i]),{},{haversine:{distance:o[i],measurement:n,accuracy:t.accuracy}})),p(p({},e[i]),{},{haversine:{distance:o[i],measurement:n,accuracy:t.accuracy}})}}]),t}();e.default=new h},function(t,e,n){var r=n(0);t.exports=function(t){if(Array.isArray(t))return r(t)}},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e,n){var r=n(0);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.install=function(t,e){e=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?C(Object(source),!0).forEach((function(e){P(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):C(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({installComponents:!0,autobindAllEvents:!1},e),I=new t({data:{gmapApi:null}});var n=new t,k=(0,o.default)(r.default,I)(e);t.mixin({created:function(){this.$gmapDefaultResizeBus=n,this.$gmapOptions=e,this.$gmapApiPromiseLazy=k}}),t.$gmapDefaultResizeBus=n,t.$gmapApiPromiseLazy=k,e.installComponents&&(t.component("GmapMap",w.default),t.component("GmapMarker",f.default),t.component("GmapInfoWindow",_.default),t.component("GmapHeatmapLayer",c.default),t.component("GmapKmlLayer",l.default),t.component("GmapPolyline",h.default),t.component("GmapPolygon",d.default),t.component("GmapCircle",m.default),t.component("GmapRectangle",v.default),t.component("GmapDrawingManager",y.default),t.component("GmapAutocomplete",S.default),t.component("GmapPlaceInput",E.default),t.component("GmapStreetViewPanorama",x.default))},e.gmapApi=function(){return I.gmapApi&&window.google},Object.defineProperty(e,"loadGmapApi",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"KmlLayer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"HeatmapLayer",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"Rectangle",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"DrawingManager",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"InfoWindow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"Map",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"StreetViewPanorama",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"PlaceInput",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"Autocomplete",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"MapElementMixin",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"MapElementFactory",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"MountableMixin",{enumerable:!0,get:function(){return O.default}}),e.Cluster=void 0;var r=T(n(657)),o=T(n(658)),l=T(n(660)),c=T(n(661)),f=T(n(662)),h=T(n(663)),d=T(n(664)),m=T(n(665)),v=T(n(666)),y=T(n(677)),_=T(n(678)),w=T(n(679)),x=T(n(680)),E=T(n(675)),S=T(n(681)),k=T(n(389)),A=T(n(84)),O=T(n(249));function T(t){return t&&t.__esModule?t:{default:t}}function C(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.Cluster=undefined;var I=null},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function r(t,e,n){return n={path:e,exports:{},require:function(path,base){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==base&&n.path)}},t(n,n.exports),n.exports}var o=function(t){return t&&t.Math==Math&&t},l=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n&&n)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,m=d&&!h.call({1:2},1)?function(t){var e=d(this,t);return!!e&&e.enumerable}:h,v={f:m},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_={}.toString,w=function(t){return _.call(t).slice(8,-1)},x="".split,E=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==w(t)?x.call(t,""):Object(t)}:Object,S=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},k=function(t){return E(S(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},O=function(input,t){if(!A(input))return input;var e,n;if(t&&"function"==typeof(e=input.toString)&&!A(n=e.call(input)))return n;if("function"==typeof(e=input.valueOf)&&!A(n=e.call(input)))return n;if(!t&&"function"==typeof(e=input.toString)&&!A(n=e.call(input)))return n;throw TypeError("Can't convert object to primitive value")},T=function(t){return Object(S(t))},C={}.hasOwnProperty,P=function(t,e){return C.call(T(t),e)},I=l.document,M=A(I)&&A(I.createElement),j=function(t){return M?I.createElement(t):{}},D=!f&&!c((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),F=Object.getOwnPropertyDescriptor,R={f:f?F:function(t,e){if(t=k(t),e=O(e,!0),D)try{return F(t,e)}catch(t){}if(P(t,e))return y(!v.f.call(t,e),t[e])}},L=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},N=Object.defineProperty,B={f:f?N:function(t,e,n){if(L(t),e=O(e,!0),L(n),D)try{return N(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},V=f?function(object,t,e){return B.f(object,t,y(1,e))}:function(object,t,e){return object[t]=e,object},z=function(t,e){try{V(l,t,e)}catch(n){l[t]=e}return e},U="__core-js_shared__",$=l[U]||z(U,{}),G=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(t){return G.call(t)});var H,W,Q,Y=$.inspectSource,K=l.WeakMap,X="function"==typeof K&&/native code/.test(Y(K)),J=r((function(t){(t.exports=function(t,e){return $[t]||($[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Z=0,tt=Math.random(),et=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Z+tt).toString(36)},nt=J("keys"),it=function(t){return nt[t]||(nt[t]=et(t))},ot={},at="Object already initialized",st=l.WeakMap;if(X){var ut=$.state||($.state=new st),lt=ut.get,ct=ut.has,ft=ut.set;H=function(t,e){if(ct.call(ut,t))throw new TypeError(at);return e.facade=t,ft.call(ut,t,e),e},W=function(t){return lt.call(ut,t)||{}},Q=function(t){return ct.call(ut,t)}}else{var ht=it("state");ot[ht]=!0,H=function(t,e){if(P(t,ht))throw new TypeError(at);return e.facade=t,V(t,ht,e),e},W=function(t){return P(t,ht)?t[ht]:{}},Q=function(t){return P(t,ht)}}var pt={set:H,get:W,has:Q,enforce:function(t){return Q(t)?W(t):H(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},mt=r((function(t){var e=pt.get,n=pt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,c){var f,h=!!c&&!!c.unsafe,d=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet;"function"==typeof o&&("string"!=typeof e||P(o,"name")||V(o,"name",e),(f=n(o)).source||(f.source=r.join("string"==typeof e?e:""))),t!==l?(h?!m&&t[e]&&(d=!0):delete t[e],d?t[e]=o:V(t,e,o)):d?t[e]=o:z(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Y(this)}))})),path=l,vt=function(t){return"function"==typeof t?t:void 0},yt=function(t,e){return arguments.length<2?vt(path[t])||vt(l[t]):path[t]&&path[t][e]||l[t]&&l[t][e]},gt=Math.ceil,bt=Math.floor,_t=function(t){return isNaN(t=+t)?0:(t>0?bt:gt)(t)},wt=Math.min,xt=function(t){return t>0?wt(_t(t),9007199254740991):0},Et=Math.max,St=Math.min,kt=function(t,e){var n=_t(t);return n<0?Et(n+e,0):St(n,e)},At=function(t){return function(e,n,r){var o,l=k(e),c=xt(l.length),f=kt(r,c);if(t&&n!=n){for(;c>f;)if((o=l[f++])!=o)return!0}else for(;c>f;f++)if((t||f in l)&&l[f]===n)return t||f||0;return!t&&-1}},Ot={includes:At(!0),indexOf:At(!1)},Tt=Ot.indexOf,Ct=function(object,t){var e,n=k(object),i=0,r=[];for(e in n)!P(ot,e)&&P(n,e)&&r.push(e);for(;t.length>i;)P(n,e=t[i++])&&(~Tt(r,e)||r.push(e));return r},Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],It=Pt.concat("length","prototype"),Mt={f:Object.getOwnPropertyNames||function(t){return Ct(t,It)}},jt={f:Object.getOwnPropertySymbols},Dt=yt("Reflect","ownKeys")||function(t){var e=Mt.f(L(t)),n=jt.f;return n?e.concat(n(t)):e},Ft=function(t,source){for(var e=Dt(source),n=B.f,r=R.f,i=0;i<e.length;i++){var o=e[i];P(t,o)||n(t,o,r(source,o))}},Rt=/#|\.prototype\./,Lt=function(t,e){var n=data[Nt(t)];return n==Vt||n!=Bt&&("function"==typeof e?c(e):!!e)},Nt=Lt.normalize=function(t){return String(t).replace(Rt,".").toLowerCase()},data=Lt.data={},Bt=Lt.NATIVE="N",Vt=Lt.POLYFILL="P",zt=Lt,qt=R.f,Ut=function(t,source){var e,n,r,o,c,f=t.target,h=t.global,d=t.stat;if(e=h?l:d?l[f]||z(f,{}):(l[f]||{}).prototype)for(n in source){if(o=source[n],r=t.noTargetGet?(c=qt(e,n))&&c.value:e[n],!zt(h?n:f+(d?".":"#")+n,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Ft(o,r)}(t.sham||r&&r.sham)&&V(o,"sham",!0),mt(e,n,o,t)}},$t=Object.keys||function(t){return Ct(t,Pt)},Gt=c((function(){$t(1)}));Ut({target:"Object",stat:!0,forced:Gt},{keys:function(t){return $t(T(t))}});var Ht,Wt,Qt="process"==w(l.process),Yt=yt("navigator","userAgent")||"",Kt=l.process,Xt=Kt&&Kt.versions,Jt=Xt&&Xt.v8;Jt?Wt=(Ht=Jt.split("."))[0]+Ht[1]:Yt&&(!(Ht=Yt.match(/Edge\/(\d+)/))||Ht[1]>=74)&&(Ht=Yt.match(/Chrome\/(\d+)/))&&(Wt=Ht[1]);var Zt,te=Wt&&+Wt,ee=!!Object.getOwnPropertySymbols&&!c((function(){return!Symbol.sham&&(Qt?38===te:te>37&&te<41)})),ne=ee&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,re=Array.isArray||function(t){return"Array"==w(t)},ie=f?Object.defineProperties:function(t,e){L(t);for(var n,r=$t(e),o=r.length,l=0;o>l;)B.f(t,n=r[l++],e[n]);return t},html=yt("document","documentElement"),oe=it("IE_PROTO"),ae=function(){},se=function(content){return"<script>"+content+"</"+"script>"},ue=function(){try{Zt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,iframe;ue=Zt?function(t){t.write(se("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Zt):((iframe=j("iframe")).style.display="none",html.appendChild(iframe),iframe.src=String("javascript:"),(t=iframe.contentWindow.document).open(),t.write(se("document.F=Object")),t.close(),t.F);for(var e=Pt.length;e--;)delete ue.prototype[Pt[e]];return ue()};ot[oe]=!0;var le=Object.create||function(t,e){var n;return null!==t?(ae.prototype=L(t),n=new ae,ae.prototype=null,n[oe]=t):n=ue(),void 0===e?n:ie(n,e)},ce=Mt.f,fe={}.toString,he="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pe={f:function(t){return he&&"[object Window]"==fe.call(t)?function(t){try{return ce(t)}catch(t){return he.slice()}}(t):ce(k(t))}},de=J("wks"),me=l.Symbol,ve=ne?me:me&&me.withoutSetter||et,ye=function(t){return P(de,t)&&(ee||"string"==typeof de[t])||(ee&&P(me,t)?de[t]=me[t]:de[t]=ve("Symbol."+t)),de[t]},ge={f:ye},be=B.f,_e=function(t){var e=path.Symbol||(path.Symbol={});P(e,t)||be(e,t,{value:ge.f(t)})},we=B.f,xe=ye("toStringTag"),Ee=function(t,e,n){t&&!P(t=n?t:t.prototype,xe)&&we(t,xe,{configurable:!0,value:e})},Se=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ke=function(t,e,n){if(Se(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(a){return t.call(e,a)};case 2:return function(a,b){return t.call(e,a,b)};case 3:return function(a,b,n){return t.call(e,a,b,n)}}return function(){return t.apply(e,arguments)}},Ae=ye("species"),Oe=function(t,e){var n;return re(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!re(n.prototype)?A(n)&&null===(n=n[Ae])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Te=[].push,Ce=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,l=6==t,c=7==t,f=5==t||l;return function(h,d,m,v){for(var y,_,w=T(h),x=E(w),S=ke(d,m,3),k=xt(x.length),A=0,O=v||Oe,C=e?O(h,k):n||c?O(h,0):void 0;k>A;A++)if((f||A in x)&&(_=S(y=x[A],A,w),t))if(e)C[A]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:Te.call(C,y)}else switch(t){case 4:return!1;case 7:Te.call(C,y)}return l?-1:r||o?o:C}},Pe={forEach:Ce(0),map:Ce(1),filter:Ce(2),some:Ce(3),every:Ce(4),find:Ce(5),findIndex:Ce(6),filterOut:Ce(7)},Ie=Pe.forEach,Me=it("hidden"),je="Symbol",De=ye("toPrimitive"),Fe=pt.set,Re=pt.getterFor(je),Le=Object.prototype,Ne=l.Symbol,Be=yt("JSON","stringify"),Ve=R.f,ze=B.f,qe=pe.f,Ue=v.f,$e=J("symbols"),Ge=J("op-symbols"),He=J("string-to-symbol-registry"),We=J("symbol-to-string-registry"),Qe=J("wks"),Ye=l.QObject,Ke=!Ye||!Ye.prototype||!Ye.prototype.findChild,Xe=f&&c((function(){return 7!=le(ze({},"a",{get:function(){return ze(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ve(Le,e);r&&delete Le[e],ze(t,e,n),r&&t!==Le&&ze(Le,e,r)}:ze,Je=function(t,e){var symbol=$e[t]=le(Ne.prototype);return Fe(symbol,{type:je,tag:t,description:e}),f||(symbol.description=e),symbol},Ze=ne?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ne},tn=function(t,e,n){t===Le&&tn(Ge,e,n),L(t);var r=O(e,!0);return L(n),P($e,r)?(n.enumerable?(P(t,Me)&&t[Me][r]&&(t[Me][r]=!1),n=le(n,{enumerable:y(0,!1)})):(P(t,Me)||ze(t,Me,y(1,{})),t[Me][r]=!0),Xe(t,r,n)):ze(t,r,n)},en=function(t,e){L(t);var n=k(e),r=$t(n).concat(an(n));return Ie(r,(function(e){f&&!nn.call(n,e)||tn(t,e,n[e])})),t},nn=function(t){var e=O(t,!0),n=Ue.call(this,e);return!(this===Le&&P($e,e)&&!P(Ge,e))&&(!(n||!P(this,e)||!P($e,e)||P(this,Me)&&this[Me][e])||n)},rn=function(t,e){var n=k(t),r=O(e,!0);if(n!==Le||!P($e,r)||P(Ge,r)){var o=Ve(n,r);return!o||!P($e,r)||P(n,Me)&&n[Me][r]||(o.enumerable=!0),o}},on=function(t){var e=qe(k(t)),n=[];return Ie(e,(function(t){P($e,t)||P(ot,t)||n.push(t)})),n},an=function(t){var e=t===Le,n=qe(e?Ge:k(t)),r=[];return Ie(n,(function(t){!P($e,t)||e&&!P(Le,t)||r.push($e[t])})),r};if(ee||(Ne=function(){if(this instanceof Ne)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=et(t),n=function(t){this===Le&&n.call(Ge,t),P(this,Me)&&P(this[Me],e)&&(this[Me][e]=!1),Xe(this,e,y(1,t))};return f&&Ke&&Xe(Le,e,{configurable:!0,set:n}),Je(e,t)},mt(Ne.prototype,"toString",(function(){return Re(this).tag})),mt(Ne,"withoutSetter",(function(t){return Je(et(t),t)})),v.f=nn,B.f=tn,R.f=rn,Mt.f=pe.f=on,jt.f=an,ge.f=function(t){return Je(ye(t),t)},f&&(ze(Ne.prototype,"description",{configurable:!0,get:function(){return Re(this).description}}),mt(Le,"propertyIsEnumerable",nn,{unsafe:!0}))),Ut({global:!0,wrap:!0,forced:!ee,sham:!ee},{Symbol:Ne}),Ie($t(Qe),(function(t){_e(t)})),Ut({target:je,stat:!0,forced:!ee},{for:function(t){var e=String(t);if(P(He,e))return He[e];var symbol=Ne(e);return He[e]=symbol,We[symbol]=e,symbol},keyFor:function(t){if(!Ze(t))throw TypeError(t+" is not a symbol");if(P(We,t))return We[t]},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),Ut({target:"Object",stat:!0,forced:!ee,sham:!f},{create:function(t,e){return void 0===e?le(t):en(le(t),e)},defineProperty:tn,defineProperties:en,getOwnPropertyDescriptor:rn}),Ut({target:"Object",stat:!0,forced:!ee},{getOwnPropertyNames:on,getOwnPropertySymbols:an}),Ut({target:"Object",stat:!0,forced:c((function(){jt.f(1)}))},{getOwnPropertySymbols:function(t){return jt.f(T(t))}}),Be){var sn=!ee||c((function(){var symbol=Ne();return"[null]"!=Be([symbol])||"{}"!=Be({a:symbol})||"{}"!=Be(Object(symbol))}));Ut({target:"JSON",stat:!0,forced:sn},{stringify:function(t,e,n){for(var r,o=[t],l=1;arguments.length>l;)o.push(arguments[l++]);if(r=e,(A(e)||void 0!==t)&&!Ze(t))return re(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Ze(e))return e}),o[1]=e,Be.apply(null,o)}})}Ne.prototype[De]||V(Ne.prototype,De,Ne.prototype.valueOf),Ee(Ne,je),ot[Me]=!0;var un=ye("species"),ln=function(t){return te>=51||!c((function(){var e=[];return(e.constructor={})[un]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},cn=Pe.filter,fn=ln("filter");Ut({target:"Array",proto:!0,forced:!fn},{filter:function(t){return cn(this,t,arguments.length>1?arguments[1]:void 0)}});var hn=R.f,pn=c((function(){hn(1)}));Ut({target:"Object",stat:!0,forced:!f||pn,sham:!f},{getOwnPropertyDescriptor:function(t,e){return hn(k(t),e)}});var dn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mn=function(t,e){var n=[][t];return!!n&&c((function(){n.call(null,e||function(){throw 1},1)}))},vn=Pe.forEach,yn=mn("forEach")?[].forEach:function(t){return vn(this,t,arguments.length>1?arguments[1]:void 0)};for(var gn in dn){var bn=l[gn],_n=bn&&bn.prototype;if(_n&&_n.forEach!==yn)try{V(_n,"forEach",yn)}catch(t){_n.forEach=yn}}var wn=function(object,t,e){var n=O(t);n in object?B.f(object,n,y(0,e)):object[n]=e};function xn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function En(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Sn(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?En(Object(source),!0).forEach((function(e){xn(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):En(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}Ut({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(object){for(var t,e,n=k(object),r=R.f,o=Dt(n),l={},c=0;o.length>c;)void 0!==(e=r(n,t=o[c++]))&&wn(l,t,e);return l}});var kn=B.f,An=Function.prototype,On=An.toString,Tn=/^\s*function ([^ (]*)/,Cn="name";function Pn(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}function In(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}f&&!(Cn in An)&&kn(An,Cn,{configurable:!0,get:function(){try{return On.call(this).match(Tn)[1]}catch(t){return""}}});var Mn=B.f,jn=l.Symbol;if(f&&"function"==typeof jn&&(!("description"in jn.prototype)||void 0!==jn().description)){var Dn={},Fn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Fn?new jn(t):void 0===t?jn():jn(t);return""===t&&(Dn[e]=!0),e};Ft(Fn,jn);var Rn=Fn.prototype=jn.prototype;Rn.constructor=Fn;var Ln=Rn.toString,Nn="Symbol(test)"==String(jn("test")),Bn=/^Symbol\((.*)\)[^)]+$/;Mn(Rn,"description",{configurable:!0,get:function(){var symbol=A(this)?this.valueOf():this,t=Ln.call(symbol);if(P(Dn,symbol))return"";var desc=Nn?t.slice(7,-1):t.replace(Bn,"$1");return""===desc?void 0:desc}}),Ut({global:!0,forced:!0},{Symbol:Fn})}var Vn={};Vn[ye("toStringTag")]="z";var zn="[object z]"===String(Vn),qn=ye("toStringTag"),Un="Arguments"==w(function(){return arguments}()),$n=zn?w:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),qn))?n:Un?w(e):"Object"==(r=w(e))&&"function"==typeof e.callee?"Arguments":r},Gn=zn?{}.toString:function(){return"[object "+$n(this)+"]"};zn||mt(Object.prototype,"toString",Gn,{unsafe:!0}),_e("iterator");var Hn,Wn,Qn,Yn=function(t){return function(e,n){var r,o,l=String(S(e)),c=_t(n),f=l.length;return c<0||c>=f?t?"":void 0:(r=l.charCodeAt(c))<55296||r>56319||c+1===f||(o=l.charCodeAt(c+1))<56320||o>57343?t?l.charAt(c):r:t?l.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Kn={codeAt:Yn(!1),charAt:Yn(!0)},Xn=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Jn=it("IE_PROTO"),Zn=Object.prototype,er=Xn?Object.getPrototypeOf:function(t){return t=T(t),P(t,Jn)?t[Jn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Zn:null},nr=ye("iterator"),rr=!1;[].keys&&("next"in(Qn=[].keys())?(Wn=er(er(Qn)))!==Object.prototype&&(Hn=Wn):rr=!0);var ir=null==Hn||c((function(){var t={};return Hn[nr].call(t)!==t}));ir&&(Hn={}),P(Hn,nr)||V(Hn,nr,(function(){return this}));var or={IteratorPrototype:Hn,BUGGY_SAFARI_ITERATORS:rr},ar={},sr=or.IteratorPrototype,ur=function(){return this},lr=function(t,e,n){var r=e+" Iterator";return t.prototype=le(sr,{next:y(1,n)}),Ee(t,r,!1),ar[r]=ur,t},cr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return L(n),function(t){if(!A(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),fr=or.IteratorPrototype,pr=or.BUGGY_SAFARI_ITERATORS,dr=ye("iterator"),mr="keys",vr="values",yr="entries",gr=function(){return this},_r=function(t,e,n,r,o,l,c){lr(n,e,r);var f,h,d,m=function(t){if(t===o&&x)return x;if(!pr&&t in _)return _[t];switch(t){case mr:case vr:case yr:return function(){return new n(this,t)}}return function(){return new n(this)}},v=e+" Iterator",y=!1,_=t.prototype,w=_[dr]||_["@@iterator"]||o&&_[o],x=!pr&&w||m(o),E="Array"==e&&_.entries||w;if(E&&(f=er(E.call(new t)),fr!==Object.prototype&&f.next&&(er(f)!==fr&&(cr?cr(f,fr):"function"!=typeof f[dr]&&V(f,dr,gr)),Ee(f,v,!0))),o==vr&&w&&w.name!==vr&&(y=!0,x=function(){return w.call(this)}),_[dr]!==x&&V(_,dr,x),ar[e]=x,o)if(h={values:m(vr),keys:l?x:m(mr),entries:m(yr)},c)for(d in h)(pr||y||!(d in _))&&mt(_,d,h[d]);else Ut({target:e,proto:!0,forced:pr||y},h);return h},wr=Kn.charAt,xr="String Iterator",Er=pt.set,Sr=pt.getterFor(xr);_r(String,"String",(function(t){Er(this,{type:xr,string:String(t),index:0})}),(function(){var t,e=Sr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=wr(n,r),e.index+=t.length,{value:t,done:!1})}));var kr=ye("unscopables"),Ar=Array.prototype;null==Ar[kr]&&B.f(Ar,kr,{configurable:!0,value:le(null)});var Or=function(t){Ar[kr][t]=!0},Tr="Array Iterator",Cr=pt.set,Pr=pt.getterFor(Tr),Ir=_r(Array,"Array",(function(t,e){Cr(this,{type:Tr,target:k(t),index:0,kind:e})}),(function(){var t=Pr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");ar.Arguments=ar.Array,Or("keys"),Or("values"),Or("entries");var Mr=ye("iterator"),jr=ye("toStringTag"),Dr=Ir.values;for(var Fr in dn){var Rr=l[Fr],Lr=Rr&&Rr.prototype;if(Lr){if(Lr[Mr]!==Dr)try{V(Lr,Mr,Dr)}catch(t){Lr[Mr]=Dr}if(Lr[jr]||V(Lr,jr,Fr),dn[Fr])for(var Nr in Ir)if(Lr[Nr]!==Ir[Nr])try{V(Lr,Nr,Ir[Nr])}catch(t){Lr[Nr]=Ir[Nr]}}}var Br=function(t){var e=t.return;if(void 0!==e)return L(e.call(t)).value},Vr=function(t,e,n,r){try{return r?e(L(n)[0],n[1]):e(n)}catch(e){throw Br(t),e}},zr=ye("iterator"),qr=Array.prototype,Ur=function(t){return void 0!==t&&(ar.Array===t||qr[zr]===t)},$r=ye("iterator"),Gr=function(t){if(null!=t)return t[$r]||t["@@iterator"]||ar[$n(t)]},Hr=function(t){var e,n,r,o,l,c,f=T(t),h="function"==typeof this?this:Array,d=arguments.length,m=d>1?arguments[1]:void 0,v=void 0!==m,y=Gr(f),_=0;if(v&&(m=ke(m,d>2?arguments[2]:void 0,2)),null==y||h==Array&&Ur(y))for(n=new h(e=xt(f.length));e>_;_++)c=v?m(f[_],_):f[_],wn(n,_,c);else for(l=(o=y.call(f)).next,n=new h;!(r=l.call(o)).done;_++)c=v?Vr(o,m,[r.value,_],!0):r.value,wn(n,_,c);return n.length=_,n},Wr=ye("iterator"),Qr=!1;try{var Yr=0,Kr={next:function(){return{done:!!Yr++}},return:function(){Qr=!0}};Kr[Wr]=function(){return this},Array.from(Kr,(function(){throw 2}))}catch(t){}var Xr=function(t,e){if(!e&&!Qr)return!1;var n=!1;try{var object={};object[Wr]=function(){return{next:function(){return{done:n=!0}}}},t(object)}catch(t){}return n},Jr=!Xr((function(t){Array.from(t)}));Ut({target:"Array",stat:!0,forced:Jr},{from:Hr});var Zr=ln("slice"),ti=ye("species"),ei=[].slice,ni=Math.max;function ri(t,e){if(t){if("string"==typeof t)return In(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,e):void 0}}function ii(t){return function(t){if(Array.isArray(t))return In(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ri(t)||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 oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function si(t,e,n){return e&&ai(t.prototype,e),n&&ai(t,n),t}function ui(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var e=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=e){var n,r,o=[],l=!0,c=!1;try{for(e=e.call(t);!(l=(n=e.next()).done)&&(o.push(n.value),!i||o.length!==i);l=!0);}catch(t){c=!0,r=t}finally{try{l||null==e.return||e.return()}finally{if(c)throw r}}return o}}(t,i)||ri(t,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 ci(t){return ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(t)}Ut({target:"Array",proto:!0,forced:!Zr},{slice:function(t,e){var n,r,o,l=k(this),c=xt(l.length),f=kt(t,c),h=kt(void 0===e?c:e,c);if(re(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!re(n.prototype)?A(n)&&null===(n=n[ti])&&(n=void 0):n=void 0,n===Array||void 0===n))return ei.call(l,f,h);for(r=new(void 0===n?Array:n)(ni(h-f,0)),o=0;f<h;f++,o++)f in l&&wn(r,o,l[f]);return r.length=o,r}});var fi=Ot.includes;Ut({target:"Array",proto:!0},{includes:function(t){return fi(this,t,arguments.length>1?arguments[1]:void 0)}}),Or("includes");var hi=ye("match"),pi=function(t){var e;return A(t)&&(void 0!==(e=t[hi])?!!e:"RegExp"==w(t))},di=function(t){if(pi(t))throw TypeError("The method doesn't accept regular expressions");return t},mi=ye("match"),vi=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[mi]=!1,"/./"[t](e)}catch(t){}}return!1};Ut({target:"String",proto:!0,forced:!vi("includes")},{includes:function(t){return!!~String(S(this)).indexOf(di(t),arguments.length>1?arguments[1]:void 0)}});var yi=function(t,e,n){var r,o;return cr&&"function"==typeof(r=e.constructor)&&r!==n&&A(o=r.prototype)&&o!==n.prototype&&cr(t,o),t},gi="\t\n\v\f\r                　\u2028\u2029\ufeff",bi="["+gi+"]",_i=RegExp("^"+bi+bi+"*"),wi=RegExp(bi+bi+"*$"),xi=function(t){return function(e){var n=String(S(e));return 1&t&&(n=n.replace(_i,"")),2&t&&(n=n.replace(wi,"")),n}},Ei={start:xi(1),end:xi(2),trim:xi(3)},Si=Mt.f,ki=R.f,Ai=B.f,Oi=Ei.trim,Ti="Number",Ci=l.Number,Pi=Ci.prototype,Ii=w(le(Pi))==Ti,Mi=function(t){var e,n,r,o,l,c,f,code,h=O(t,!1);if("string"==typeof h&&h.length>2)if(43===(e=(h=Oi(h)).charCodeAt(0))||45===e){if(88===(n=h.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(h.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+h}for(c=(l=h.slice(2)).length,f=0;f<c;f++)if((code=l.charCodeAt(f))<48||code>o)return NaN;return parseInt(l,r)}return+h};if(zt(Ti,!Ci(" 0o1")||!Ci("0b1")||Ci("+0x1"))){for(var ji,Di=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Di&&(Ii?c((function(){Pi.valueOf.call(n)})):w(n)!=Ti)?yi(new Ci(Mi(e)),n,Di):Mi(e)},Fi=f?Si(Ci):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Ri=0;Fi.length>Ri;Ri++)P(Ci,ji=Fi[Ri])&&!P(Di,ji)&&Ai(Di,ji,ki(Ci,ji));Di.prototype=Pi,Pi.constructor=Di,mt(l,Ti,Di)}Ut({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Li=function(){var t=L(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Ni(s,t){return RegExp(s,t)}var Bi={UNSUPPORTED_Y:c((function(){var t=Ni("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:c((function(){var t=Ni("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Vi=RegExp.prototype.exec,zi=J("native-string-replace",String.prototype.replace),qi=Vi,Ui=function(){var t=/a/,e=/b*/g;return Vi.call(t,"a"),Vi.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),$i=Bi.UNSUPPORTED_Y||Bi.BROKEN_CARET,Gi=void 0!==/()??/.exec("")[1];(Ui||Gi||$i)&&(qi=function(t){var e,n,r,i,o=this,l=$i&&o.sticky,c=Li.call(o),source=o.source,f=0,h=t;return l&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),h=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(source="(?: "+source+")",h=" "+h,f++),n=new RegExp("^(?:"+source+")",c)),Gi&&(n=new RegExp("^"+source+"$(?!\\s)",c)),Ui&&(e=o.lastIndex),r=Vi.call(l?n:o,h),l?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Ui&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),Gi&&r&&r.length>1&&zi.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var Hi=qi;Ut({target:"RegExp",proto:!0,forced:/./.exec!==Hi},{exec:Hi});var Wi=ye("species"),Qi=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Yi="$0"==="a".replace(/./,"$0"),Ki=ye("replace"),Xi=!!/./[Ki]&&""===/./[Ki]("a","$0"),Ji=!c((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Zi=function(t,e,n,r){var o=ye(t),l=!c((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),f=l&&!c((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Wi]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!l||!f||"replace"===t&&(!Qi||!Yi||Xi)||"split"===t&&!Ji){var h=/./[o],d=n(o,""[t],(function(t,e,n,r,o){return e.exec===RegExp.prototype.exec?l&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Yi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xi}),m=d[0],v=d[1];mt(String.prototype,t,m),mt(RegExp.prototype,o,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)})}r&&V(RegExp.prototype[o],"sham",!0)},to=Kn.charAt,eo=function(t,e,n){return e+(n?to(t,e).length:1)},no=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==w(t))throw TypeError("RegExp#exec called on incompatible receiver");return Hi.call(t,e)};Zi("match",1,(function(t,e,n){return[function(e){var n=S(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=L(t),l=String(this);if(!o.global)return no(o,l);var c=o.unicode;o.lastIndex=0;for(var f,h=[],d=0;null!==(f=no(o,l));){var m=String(f[0]);h[d]=m,""===m&&(o.lastIndex=eo(l,xt(o.lastIndex),c)),d++}return 0===d?null:h}]}));var ro=function(t){var e=String(S(this)),n="",r=_t(t);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},io=1..toFixed,oo=Math.floor,ao=function(t,e,n){return 0===e?n:e%2==1?ao(t,e-1,n*t):ao(t*t,e/2,n)},so=function(data,t,e){for(var n=-1,r=e;++n<6;)r+=t*data[n],data[n]=r%1e7,r=oo(r/1e7)},uo=function(data,t){for(var e=6,n=0;--e>=0;)n+=data[e],data[e]=oo(n/t),n=n%t*1e7},lo=function(data){for(var t=6,s="";--t>=0;)if(""!==s||0===t||0!==data[t]){var e=String(data[t]);s=""===s?e:s+ro.call("0",7-e.length)+e}return s},co=io&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){io.call({})}));Ut({target:"Number",proto:!0,forced:co},{toFixed:function(t){var e,n,r,o,l=function(t){if("number"!=typeof t&&"Number"!=w(t))throw TypeError("Incorrect invocation");return+t}(this),c=_t(t),data=[0,0,0,0,0,0],f="",h="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(f="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*ao(2,69,1))-69)<0?l*ao(2,-e,1):l/ao(2,e,1),n*=4503599627370496,(e=52-e)>0){for(so(data,0,n),r=c;r>=7;)so(data,1e7,0),r-=7;for(so(data,ao(10,r,1),0),r=e-1;r>=23;)uo(data,1<<23),r-=23;uo(data,1<<r),so(data,1,1),uo(data,2),h=lo(data)}else so(data,0,n),so(data,1<<-e,0),h=lo(data)+ro.call("0",c);return h=c>0?f+((o=h.length)<=c?"0."+ro.call("0",c-o)+h:h.slice(0,o-c)+"."+h.slice(o-c)):f+h}});var fo=Pe.map,ho=ln("map");Ut({target:"Array",proto:!0,forced:!ho},{map:function(t){return fo(this,t,arguments.length>1?arguments[1]:void 0)}});var po=function(t,e,n){for(var r in e)mt(t,r,e[r],n);return t},mo=!c((function(){return Object.isExtensible(Object.preventExtensions({}))})),vo=r((function(t){var e=B.f,n=et("meta"),r=0,o=Object.isExtensible||function(){return!0},l=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},meta=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!A(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!P(t,n)){if(!o(t))return"F";if(!e)return"E";l(t)}return t[n].objectID},getWeakData:function(t,e){if(!P(t,n)){if(!o(t))return!0;if(!e)return!1;l(t)}return t[n].weakData},onFreeze:function(t){return mo&&meta.REQUIRED&&o(t)&&!P(t,n)&&l(t),t}};ot[n]=!0})),yo=function(t,e){this.stopped=t,this.result=e},go=function(t,e,n){var r,o,l,c,f,h,d,m=n&&n.that,v=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=ke(e,m,1+v+_),x=function(t){return r&&Br(r),new yo(!0,t)},E=function(t){return v?(L(t),_?w(t[0],t[1],x):w(t[0],t[1])):_?w(t,x):w(t)};if(y)r=t;else{if("function"!=typeof(o=Gr(t)))throw TypeError("Target is not iterable");if(Ur(o)){for(l=0,c=xt(t.length);c>l;l++)if((f=E(t[l]))&&f instanceof yo)return f;return new yo(!1)}r=o.call(t)}for(h=r.next;!(d=h.call(r)).done;){try{f=E(d.value)}catch(t){throw Br(r),t}if("object"==typeof f&&f&&f instanceof yo)return f}return new yo(!1)},bo=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},_o=vo.getWeakData,wo=pt.set,xo=pt.getterFor,Eo=Pe.find,So=Pe.findIndex,ko=0,Ao=function(t){return t.frozen||(t.frozen=new Oo)},Oo=function(){this.entries=[]},To=function(t,e){return Eo(t.entries,(function(t){return t[0]===e}))};Oo.prototype={get:function(t){var e=To(this,t);if(e)return e[1]},has:function(t){return!!To(this,t)},set:function(t,e){var n=To(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=So(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}};var Co={getConstructor:function(t,e,n,r){var o=t((function(t,l){bo(t,o,e),wo(t,{type:e,id:ko++,frozen:void 0}),null!=l&&go(l,t[r],{that:t,AS_ENTRIES:n})})),l=xo(e),c=function(t,e,n){var r=l(t),data=_o(L(e),!0);return!0===data?Ao(r).set(e,n):data[r.id]=n,t};return po(o.prototype,{delete:function(t){var e=l(this);if(!A(t))return!1;var data=_o(t);return!0===data?Ao(e).delete(t):data&&P(data,e.id)&&delete data[e.id]},has:function(t){var e=l(this);if(!A(t))return!1;var data=_o(t);return!0===data?Ao(e).has(t):data&&P(data,e.id)}}),po(o.prototype,n?{get:function(t){var e=l(this);if(A(t)){var data=_o(t);return!0===data?Ao(e).get(t):data?data[e.id]:void 0}},set:function(t,e){return c(this,t,e)}}:{add:function(t){return c(this,t,!0)}}),o}};r((function(t){var e,n=pt.enforce,r=!l.ActiveXObject&&"ActiveXObject"in l,o=Object.isExtensible,f=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},h=t.exports=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),f=r?"set":"add",h=l[t],d=h&&h.prototype,m=h,v={},y=function(t){var e=d[t];mt(d,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!A(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(zt(t,"function"!=typeof h||!(o||d.forEach&&!c((function(){(new h).entries().next()})))))m=n.getConstructor(e,t,r,f),vo.REQUIRED=!0;else if(zt(t,!0)){var _=new m,w=_[f](o?{}:-0,1)!=_,x=c((function(){_.has(1)})),E=Xr((function(t){new h(t)})),S=!o&&c((function(){for(var t=new h,e=5;e--;)t[f](e,e);return!t.has(-0)}));E||((m=e((function(e,n){bo(e,m,t);var o=yi(new h,e,m);return null!=n&&go(n,o[f],{that:o,AS_ENTRIES:r}),o}))).prototype=d,d.constructor=m),(x||S)&&(y("delete"),y("has"),r&&y("get")),(S||w)&&y(f),o&&d.clear&&delete d.clear}return v[t]=m,Ut({global:!0,forced:m!=h},v),Ee(m,t),o||n.setStrong(m,t,r),m}("WeakMap",f,Co);if(X&&r){e=Co.getConstructor(f,"WeakMap",!0),vo.REQUIRED=!0;var d=h.prototype,m=d.delete,v=d.has,y=d.get,_=d.set;po(d,{delete:function(t){if(A(t)&&!o(t)){var r=n(this);return r.frozen||(r.frozen=new e),m.call(this,t)||r.frozen.delete(t)}return m.call(this,t)},has:function(t){if(A(t)&&!o(t)){var r=n(this);return r.frozen||(r.frozen=new e),v.call(this,t)||r.frozen.has(t)}return v.call(this,t)},get:function(t){if(A(t)&&!o(t)){var r=n(this);return r.frozen||(r.frozen=new e),v.call(this,t)?y.call(this,t):r.frozen.get(t)}return y.call(this,t)},set:function(t,r){if(A(t)&&!o(t)){var l=n(this);l.frozen||(l.frozen=new e),v.call(this,t)?_.call(this,t,r):l.frozen.set(t,r)}else _.call(this,t,r);return this}})}}));var Po=ye("iterator"),Io=!c((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Po]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),Mo=Object.assign,jo=Object.defineProperty,Do=!Mo||c((function(){if(f&&1!==Mo({b:1},Mo(jo({},"a",{enumerable:!0,get:function(){jo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},symbol=Symbol(),n="abcdefghijklmnopqrst";return t[symbol]=7,n.split("").forEach((function(t){e[t]=t})),7!=Mo({},t)[symbol]||$t(Mo({},e)).join("")!=n}))?function(t,source){for(var e=T(t),n=arguments.length,r=1,o=jt.f,l=v.f;n>r;)for(var c,h=E(arguments[r++]),d=o?$t(h).concat(o(h)):$t(h),m=d.length,y=0;m>y;)c=d[y++],f&&!l.call(h,c)||(e[c]=h[c]);return e}:Mo,Fo=2147483647,Ro=/[^\0-\u007E]/,Lo=/[.\u3002\uFF0E\uFF61]/g,No="Overflow: input needs wider integers to process",Bo=Math.floor,Vo=String.fromCharCode,zo=function(t){return t+22+75*(t<26)},qo=function(t,e,n){var r=0;for(t=n?Bo(t/700):t>>1,t+=Bo(t/e);t>455;r+=36)t=Bo(t/35);return Bo(r+36*t/(t+38))},Uo=function(input){var output=[];input=function(t){for(var output=[],e=0,n=t.length;e<n;){var r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<n){var o=t.charCodeAt(e++);56320==(64512&o)?output.push(((1023&r)<<10)+(1023&o)+65536):(output.push(r),e--)}else output.push(r)}return output}(input);var i,t,e=input.length,n=128,r=0,o=72;for(i=0;i<input.length;i++)(t=input[i])<128&&output.push(Vo(t));var l=output.length,c=l;for(l&&output.push("-");c<e;){var f=Fo;for(i=0;i<input.length;i++)(t=input[i])>=n&&t<f&&(f=t);var h=c+1;if(f-n>Bo((Fo-r)/h))throw RangeError(No);for(r+=(f-n)*h,n=f,i=0;i<input.length;i++){if((t=input[i])<n&&++r>Fo)throw RangeError(No);if(t==n){for(var q=r,d=36;;d+=36){var m=d<=o?1:d>=o+26?26:d-o;if(q<m)break;var v=q-m,y=36-m;output.push(Vo(zo(m+v%y))),q=Bo(v/y)}output.push(Vo(zo(q))),o=qo(r,h,c==l),r=0,++c}}++r,++n}return output.join("")},$o=function(t){var e=Gr(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return L(e.call(t))},Go=yt("fetch"),Ho=yt("Headers"),Wo=ye("iterator"),Qo="URLSearchParams",Yo="URLSearchParamsIterator",Ko=pt.set,Xo=pt.getterFor(Qo),Jo=pt.getterFor(Yo),Zo=/\+/g,ta=Array(4),ea=function(t){return ta[t-1]||(ta[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},na=function(t){try{return decodeURIComponent(t)}catch(e){return t}},ra=function(t){var e=t.replace(Zo," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(ea(n--),na);return e}},ia=/[!'()~]|%20/g,oa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},aa=function(t){return oa[t]},sa=function(t){return encodeURIComponent(t).replace(ia,aa)},ua=function(t,e){if(e)for(var n,r,o=e.split("&"),l=0;l<o.length;)(n=o[l++]).length&&(r=n.split("="),t.push({key:ra(r.shift()),value:ra(r.join("="))}))},la=function(t){this.entries.length=0,ua(this.entries,t)},ca=function(t,e){if(t<e)throw TypeError("Not enough arguments")},fa=lr((function(t,e){Ko(this,{type:Yo,iterator:$o(Xo(t).entries),kind:e})}),"Iterator",(function(){var t=Jo(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),ha=function(){bo(this,ha,Qo);var t,e,n,r,o,l,c,f,h,d=arguments.length>0?arguments[0]:void 0,m=this,v=[];if(Ko(m,{type:Qo,entries:v,updateURL:function(){},updateSearchParams:la}),void 0!==d)if(A(d))if("function"==typeof(t=Gr(d)))for(n=(e=t.call(d)).next;!(r=n.call(e)).done;){if((c=(l=(o=$o(L(r.value))).next).call(o)).done||(f=l.call(o)).done||!l.call(o).done)throw TypeError("Expected sequence with length 2");v.push({key:c.value+"",value:f.value+""})}else for(h in d)P(d,h)&&v.push({key:h,value:d[h]+""});else ua(v,"string"==typeof d?"?"===d.charAt(0)?d.slice(1):d:d+"")},pa=ha.prototype;po(pa,{append:function(t,e){ca(arguments.length,2);var n=Xo(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){ca(arguments.length,1);for(var e=Xo(this),n=e.entries,r=t+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;e.updateURL()},get:function(t){ca(arguments.length,1);for(var e=Xo(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){ca(arguments.length,1);for(var e=Xo(this).entries,n=t+"",r=[],o=0;o<e.length;o++)e[o].key===n&&r.push(e[o].value);return r},has:function(t){ca(arguments.length,1);for(var e=Xo(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){ca(arguments.length,1);for(var n,r=Xo(this),o=r.entries,l=!1,c=t+"",f=e+"",h=0;h<o.length;h++)(n=o[h]).key===c&&(l?o.splice(h--,1):(l=!0,n.value=f));l||o.push({key:c,value:f}),r.updateURL()},sort:function(){var t,e,n,r=Xo(this),o=r.entries,l=o.slice();for(o.length=0,n=0;n<l.length;n++){for(t=l[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}r.updateURL()},forEach:function(t){for(var e,n=Xo(this).entries,r=ke(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new fa(this,"keys")},values:function(){return new fa(this,"values")},entries:function(){return new fa(this,"entries")}},{enumerable:!0}),mt(pa,Wo,pa.entries),mt(pa,"toString",(function(){for(var t,e=Xo(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(sa(t.key)+"="+sa(t.value));return n.join("&")}),{enumerable:!0}),Ee(ha,Qo),Ut({global:!0,forced:!Io},{URLSearchParams:ha}),Io||"function"!=typeof Go||"function"!=typeof Ho||Ut({global:!0,enumerable:!0,forced:!0},{fetch:function(input){var t,body,e,n=[input];return arguments.length>1&&(A(t=arguments[1])&&(body=t.body,$n(body)===Qo&&((e=t.headers?new Ho(t.headers):new Ho).has("content-type")||e.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=le(t,{body:y(0,String(body)),headers:y(0,e)}))),n.push(t)),Go.apply(this,n)}});var da,ma={URLSearchParams:ha,getState:Xo},va=Kn.codeAt,ya=l.URL,ga=ma.URLSearchParams,ba=ma.getState,_a=pt.set,wa=pt.getterFor("URL"),xa=Math.floor,Ea=Math.pow,Sa="Invalid scheme",ka="Invalid host",Aa="Invalid port",Oa=/[A-Za-z]/,Ta=/[\d+-.A-Za-z]/,Ca=/\d/,Pa=/^(0x|0X)/,Ia=/^[0-7]+$/,Ma=/^\d+$/,ja=/^[\dA-Fa-f]+$/,Da=/[\0\t\n\r #%/:?@[\\]]/,Fa=/[\0\t\n\r #/:?@[\\]]/,Ra=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,La=/[\t\n\r]/g,Na=function(t,input){var e,n,r;if("["==input.charAt(0)){if("]"!=input.charAt(input.length-1))return ka;if(!(e=Va(input.slice(1,-1))))return ka;t.host=e}else if(Qa(t)){if(input=function(input){var i,label,t=[],e=input.toLowerCase().replace(Lo,".").split(".");for(i=0;i<e.length;i++)label=e[i],t.push(Ro.test(label)?"xn--"+Uo(label):label);return t.join(".")}(input),Da.test(input))return ka;if(null===(e=Ba(input)))return ka;t.host=e}else{if(Fa.test(input))return ka;for(e="",n=Hr(input),r=0;r<n.length;r++)e+=Ha(n[r],qa);t.host=e}},Ba=function(input){var t,e,n,r,o,l,c,f=input.split(".");if(f.length&&""==f[f.length-1]&&f.pop(),(t=f.length)>4)return input;for(e=[],n=0;n<t;n++){if(""==(r=f[n]))return input;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=Pa.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)l=0;else{if(!(10==o?Ma:8==o?Ia:ja).test(r))return input;l=parseInt(r,o)}e.push(l)}for(n=0;n<t;n++)if(l=e[n],n==t-1){if(l>=Ea(256,5-t))return null}else if(l>255)return null;for(c=e.pop(),n=0;n<e.length;n++)c+=e[n]*Ea(256,3-n);return c},Va=function(input){var t,e,n,r,o,l,c,address=[0,0,0,0,0,0,0,0],f=0,h=null,d=0,m=function(){return input.charAt(d)};if(":"==m()){if(":"!=input.charAt(1))return;d+=2,h=++f}for(;m();){if(8==f)return;if(":"!=m()){for(t=e=0;e<4&&ja.test(m());)t=16*t+parseInt(m(),16),d++,e++;if("."==m()){if(0==e)return;if(d-=e,f>6)return;for(n=0;m();){if(r=null,n>0){if(!("."==m()&&n<4))return;d++}if(!Ca.test(m()))return;for(;Ca.test(m());){if(o=parseInt(m(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;d++}address[f]=256*address[f]+r,2!=++n&&4!=n||f++}if(4!=n)return;break}if(":"==m()){if(d++,!m())return}else if(m())return;address[f++]=t}else{if(null!==h)return;d++,h=++f}}if(null!==h)for(l=f-h,f=7;0!=f&&l>0;)c=address[f],address[f--]=address[h+l-1],address[h+--l]=c;else if(8!=f)return;return address},za=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=xa(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,l=0;l<8;l++)0!==t[l]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=l),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},qa={},Ua=Do({},qa,{" ":1,'"':1,"<":1,">":1,"`":1}),$a=Do({},Ua,{"#":1,"?":1,"{":1,"}":1}),Ga=Do({},$a,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ha=function(t,e){var code=va(t,0);return code>32&&code<127&&!P(e,t)?t:encodeURIComponent(t)},Wa={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Qa=function(t){return P(Wa,t.scheme)},Ya=function(t){return""!=t.username||""!=t.password},Ka=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Xa=function(t,e){var n;return 2==t.length&&Oa.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},Ja=function(t){var e;return t.length>1&&Xa(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Za=function(t){var path=t.path,e=path.length;!e||"file"==t.scheme&&1==e&&Xa(path[0],!0)||path.pop()},ts=function(t){return"."===t||"%2e"===t.toLowerCase()},es={},ns={},rs={},is={},os={},as={},ss={},us={},ls={},cs={},fs={},hs={},ps={},ds={},ms={},vs={},ys={},gs={},bs={},_s={},ws={},xs=function(t,input,e,base){var n,r,o,l,c,f=e||es,h=0,d="",m=!1,v=!1,y=!1;for(e||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,input=input.replace(Ra,"")),input=input.replace(La,""),n=Hr(input);h<=n.length;){switch(r=n[h],f){case es:if(!r||!Oa.test(r)){if(e)return Sa;f=rs;continue}d+=r.toLowerCase(),f=ns;break;case ns:if(r&&(Ta.test(r)||"+"==r||"-"==r||"."==r))d+=r.toLowerCase();else{if(":"!=r){if(e)return Sa;d="",f=rs,h=0;continue}if(e&&(Qa(t)!=P(Wa,d)||"file"==d&&(Ya(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=d,e)return void(Qa(t)&&Wa[t.scheme]==t.port&&(t.port=null));d="","file"==t.scheme?f=ds:Qa(t)&&base&&base.scheme==t.scheme?f=is:Qa(t)?f=us:"/"==n[h+1]?(f=os,h++):(t.cannotBeABaseURL=!0,t.path.push(""),f=bs)}break;case rs:if(!base||base.cannotBeABaseURL&&"#"!=r)return Sa;if(base.cannotBeABaseURL&&"#"==r){t.scheme=base.scheme,t.path=base.path.slice(),t.query=base.query,t.fragment="",t.cannotBeABaseURL=!0,f=ws;break}f="file"==base.scheme?ds:as;continue;case is:if("/"!=r||"/"!=n[h+1]){f=as;continue}f=ls,h++;break;case os:if("/"==r){f=cs;break}f=gs;continue;case as:if(t.scheme=base.scheme,r==da)t.username=base.username,t.password=base.password,t.host=base.host,t.port=base.port,t.path=base.path.slice(),t.query=base.query;else if("/"==r||"\\"==r&&Qa(t))f=ss;else if("?"==r)t.username=base.username,t.password=base.password,t.host=base.host,t.port=base.port,t.path=base.path.slice(),t.query="",f=_s;else{if("#"!=r){t.username=base.username,t.password=base.password,t.host=base.host,t.port=base.port,t.path=base.path.slice(),t.path.pop(),f=gs;continue}t.username=base.username,t.password=base.password,t.host=base.host,t.port=base.port,t.path=base.path.slice(),t.query=base.query,t.fragment="",f=ws}break;case ss:if(!Qa(t)||"/"!=r&&"\\"!=r){if("/"!=r){t.username=base.username,t.password=base.password,t.host=base.host,t.port=base.port,f=gs;continue}f=cs}else f=ls;break;case us:if(f=ls,"/"!=r||"/"!=d.charAt(h+1))continue;h++;break;case ls:if("/"!=r&&"\\"!=r){f=cs;continue}break;case cs:if("@"==r){m&&(d="%40"+d),m=!0,o=Hr(d);for(var i=0;i<o.length;i++){var _=o[i];if(":"!=_||y){var w=Ha(_,Ga);y?t.password+=w:t.username+=w}else y=!0}d=""}else if(r==da||"/"==r||"?"==r||"#"==r||"\\"==r&&Qa(t)){if(m&&""==d)return"Invalid authority";h-=Hr(d).length+1,d="",f=fs}else d+=r;break;case fs:case hs:if(e&&"file"==t.scheme){f=vs;continue}if(":"!=r||v){if(r==da||"/"==r||"?"==r||"#"==r||"\\"==r&&Qa(t)){if(Qa(t)&&""==d)return ka;if(e&&""==d&&(Ya(t)||null!==t.port))return;if(l=Na(t,d))return l;if(d="",f=ys,e)return;continue}"["==r?v=!0:"]"==r&&(v=!1),d+=r}else{if(""==d)return ka;if(l=Na(t,d))return l;if(d="",f=ps,e==hs)return}break;case ps:if(!Ca.test(r)){if(r==da||"/"==r||"?"==r||"#"==r||"\\"==r&&Qa(t)||e){if(""!=d){var x=parseInt(d,10);if(x>65535)return Aa;t.port=Qa(t)&&x===Wa[t.scheme]?null:x,d=""}if(e)return;f=ys;continue}return Aa}d+=r;break;case ds:if(t.scheme="file","/"==r||"\\"==r)f=ms;else{if(!base||"file"!=base.scheme){f=gs;continue}if(r==da)t.host=base.host,t.path=base.path.slice(),t.query=base.query;else if("?"==r)t.host=base.host,t.path=base.path.slice(),t.query="",f=_s;else{if("#"!=r){Ja(n.slice(h).join(""))||(t.host=base.host,t.path=base.path.slice(),Za(t)),f=gs;continue}t.host=base.host,t.path=base.path.slice(),t.query=base.query,t.fragment="",f=ws}}break;case ms:if("/"==r||"\\"==r){f=vs;break}base&&"file"==base.scheme&&!Ja(n.slice(h).join(""))&&(Xa(base.path[0],!0)?t.path.push(base.path[0]):t.host=base.host),f=gs;continue;case vs:if(r==da||"/"==r||"\\"==r||"?"==r||"#"==r){if(!e&&Xa(d))f=gs;else if(""==d){if(t.host="",e)return;f=ys}else{if(l=Na(t,d))return l;if("localhost"==t.host&&(t.host=""),e)return;d="",f=ys}continue}d+=r;break;case ys:if(Qa(t)){if(f=gs,"/"!=r&&"\\"!=r)continue}else if(e||"?"!=r)if(e||"#"!=r){if(r!=da&&(f=gs,"/"!=r))continue}else t.fragment="",f=ws;else t.query="",f=_s;break;case gs:if(r==da||"/"==r||"\\"==r&&Qa(t)||!e&&("?"==r||"#"==r)){if(".."===(c=(c=d).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Za(t),"/"==r||"\\"==r&&Qa(t)||t.path.push("")):ts(d)?"/"==r||"\\"==r&&Qa(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Xa(d)&&(t.host&&(t.host=""),d=d.charAt(0)+":"),t.path.push(d)),d="","file"==t.scheme&&(r==da||"?"==r||"#"==r))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==r?(t.query="",f=_s):"#"==r&&(t.fragment="",f=ws)}else d+=Ha(r,$a);break;case bs:"?"==r?(t.query="",f=_s):"#"==r?(t.fragment="",f=ws):r!=da&&(t.path[0]+=Ha(r,qa));break;case _s:e||"#"!=r?r!=da&&("'"==r&&Qa(t)?t.query+="%27":t.query+="#"==r?"%23":Ha(r,qa)):(t.fragment="",f=ws);break;case ws:r!=da&&(t.fragment+=Ha(r,Ua))}h++}},Es=function(t){var e,n,r=bo(this,Es,"URL"),base=arguments.length>1?arguments[1]:void 0,o=String(t),l=_a(r,{type:"URL"});if(void 0!==base)if(base instanceof Es)e=wa(base);else if(n=xs(e={},String(base)))throw TypeError(n);if(n=xs(l,o,null,e))throw TypeError(n);var c=l.searchParams=new ga,h=ba(c);h.updateSearchParams(l.query),h.updateURL=function(){l.query=String(c)||null},f||(r.href=ks.call(r),r.origin=As.call(r),r.protocol=Os.call(r),r.username=Ts.call(r),r.password=Cs.call(r),r.host=Ps.call(r),r.hostname=Is.call(r),r.port=Ms.call(r),r.pathname=js.call(r),r.search=Ds.call(r),r.searchParams=Fs.call(r),r.hash=Rs.call(r))},Ss=Es.prototype,ks=function(){var t=wa(this),e=t.scheme,n=t.username,r=t.password,o=t.host,l=t.port,path=t.path,c=t.query,f=t.fragment,output=e+":";return null!==o?(output+="//",Ya(t)&&(output+=n+(r?":"+r:"")+"@"),output+=za(o),null!==l&&(output+=":"+l)):"file"==e&&(output+="//"),output+=t.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"",null!==c&&(output+="?"+c),null!==f&&(output+="#"+f),output},As=function(){var t=wa(this),e=t.scheme,n=t.port;if("blob"==e)try{return new Es(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Qa(t)?e+"://"+za(t.host)+(null!==n?":"+n:""):"null"},Os=function(){return wa(this).scheme+":"},Ts=function(){return wa(this).username},Cs=function(){return wa(this).password},Ps=function(){var t=wa(this),e=t.host,n=t.port;return null===e?"":null===n?za(e):za(e)+":"+n},Is=function(){var t=wa(this).host;return null===t?"":za(t)},Ms=function(){var t=wa(this).port;return null===t?"":String(t)},js=function(){var t=wa(this),path=t.path;return t.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):""},Ds=function(){var t=wa(this).query;return t?"?"+t:""},Fs=function(){return wa(this).searchParams},Rs=function(){var t=wa(this).fragment;return t?"#"+t:""},Ls=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(f&&ie(Ss,{href:Ls(ks,(function(t){var e=wa(this),n=String(t),r=xs(e,n);if(r)throw TypeError(r);ba(e.searchParams).updateSearchParams(e.query)})),origin:Ls(As),protocol:Ls(Os,(function(t){var e=wa(this);xs(e,String(t)+":",es)})),username:Ls(Ts,(function(t){var e=wa(this),n=Hr(String(t));if(!Ka(e)){e.username="";for(var i=0;i<n.length;i++)e.username+=Ha(n[i],Ga)}})),password:Ls(Cs,(function(t){var e=wa(this),n=Hr(String(t));if(!Ka(e)){e.password="";for(var i=0;i<n.length;i++)e.password+=Ha(n[i],Ga)}})),host:Ls(Ps,(function(t){var e=wa(this);e.cannotBeABaseURL||xs(e,String(t),fs)})),hostname:Ls(Is,(function(t){var e=wa(this);e.cannotBeABaseURL||xs(e,String(t),hs)})),port:Ls(Ms,(function(t){var e=wa(this);Ka(e)||(""==(t=String(t))?e.port=null:xs(e,t,ps))})),pathname:Ls(js,(function(t){var e=wa(this);e.cannotBeABaseURL||(e.path=[],xs(e,t+"",ys))})),search:Ls(Ds,(function(t){var e=wa(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xs(e,t,_s)),ba(e.searchParams).updateSearchParams(e.query)})),searchParams:Ls(Fs),hash:Ls(Rs,(function(t){var e=wa(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xs(e,t,ws)):e.fragment=null}))}),mt(Ss,"toJSON",(function(){return ks.call(this)}),{enumerable:!0}),mt(Ss,"toString",(function(){return ks.call(this)}),{enumerable:!0}),ya){var Ns=ya.createObjectURL,Bs=ya.revokeObjectURL;Ns&&mt(Es,"createObjectURL",(function(t){return Ns.apply(ya,arguments)})),Bs&&mt(Es,"revokeObjectURL",(function(t){return Bs.apply(ya,arguments)}))}Ee(Es,"URL"),Ut({global:!0,forced:!Io,sham:!f},{URL:Es});var Vs,zs=R.f,qs="".startsWith,Us=Math.min,$s=vi("startsWith"),Gs=!($s||(Vs=zs(String.prototype,"startsWith"),!Vs||Vs.writable));Ut({target:"String",proto:!0,forced:!Gs&&!$s},{startsWith:function(t){var e=String(S(this));di(t);var n=xt(Us(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return qs?qs.call(e,r,n):e.slice(n,n+r.length)===r}});var Hs=Pe.find,Ws="find",Qs=!0;Ws in[]&&Array(1).find((function(){Qs=!1})),Ut({target:"Array",proto:!0,forced:Qs},{find:function(t){return Hs(this,t,arguments.length>1?arguments[1]:void 0)}}),Or(Ws);var Ys=ye("species"),Ks=Bi.UNSUPPORTED_Y,Xs=[].push,Js=Math.min,Zs=4294967295;Zi("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(S(this)),o=void 0===n?Zs:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!pi(t))return e.call(r,t,o);for(var l,c,f,output=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,m=new RegExp(t.source,h+"g");(l=Hi.call(m,r))&&!((c=m.lastIndex)>d&&(output.push(r.slice(d,l.index)),l.length>1&&l.index<r.length&&Xs.apply(output,l.slice(1)),f=l[0].length,d=c,output.length>=o));)m.lastIndex===l.index&&m.lastIndex++;return d===r.length?!f&&m.test("")||output.push(""):output.push(r.slice(d)),output.length>o?output.slice(0,o):output}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=S(this),l=null==e?void 0:e[t];return void 0!==l?l.call(e,o,n):r.call(String(o),e,n)},function(t,o){var l=n(r,t,this,o,r!==e);if(l.done)return l.value;var c=L(t),f=String(this),h=function(t,e){var n,r=L(t).constructor;return void 0===r||null==(n=L(r)[Ys])?e:Se(n)}(c,RegExp),d=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(Ks?"g":"y"),v=new h(Ks?"^(?:"+c.source+")":c,m),y=void 0===o?Zs:o>>>0;if(0===y)return[];if(0===f.length)return null===no(v,f)?[f]:[];for(var p=0,q=0,_=[];q<f.length;){v.lastIndex=Ks?0:q;var w,x=no(v,Ks?f.slice(q):f);if(null===x||(w=Js(xt(v.lastIndex+(Ks?q:0)),f.length))===p)q=eo(f,q,d);else{if(_.push(f.slice(p,q)),_.length===y)return _;for(var i=1;i<=x.length-1;i++)if(_.push(x[i]),_.length===y)return _;q=p=w}}return _.push(f.slice(p)),_}]}),Ks);var tu=ye("isConcatSpreadable"),eu=9007199254740991,nu="Maximum allowed index exceeded",ru=te>=51||!c((function(){var t=[];return t[tu]=!1,t.concat()[0]!==t})),iu=ln("concat"),ou=function(t){if(!A(t))return!1;var e=t[tu];return void 0!==e?!!e:re(t)};Ut({target:"Array",proto:!0,forced:!ru||!iu},{concat:function(t){var i,e,n,r,o,l=T(this),c=Oe(l,0),f=0;for(i=-1,n=arguments.length;i<n;i++)if(ou(o=-1===i?l:arguments[i])){if(f+(r=xt(o.length))>eu)throw TypeError(nu);for(e=0;e<r;e++,f++)e in o&&wn(c,f,o[e])}else{if(f>=eu)throw TypeError(nu);wn(c,f++,o)}return c.length=f,c}});var au=v.f,su=function(t){return function(e){for(var n,r=k(e),o=$t(r),l=o.length,i=0,c=[];l>i;)n=o[i++],f&&!au.call(r,n)||c.push(t?[n,r[n]]:r[n]);return c}},uu={entries:su(!0),values:su(!1)},lu=uu.entries;Ut({target:"Object",stat:!0},{entries:function(t){return lu(t)}});var cu=Ei.trim;Ut({target:"String",proto:!0,forced:function(t){return c((function(){return!!gi[t]()||"​᠎"!="​᠎"[t]()||gi[t].name!==t}))}("trim")},{trim:function(){return cu(this)}});var fu=Math.floor,hu="".replace,pu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,du=/\$([$&'`]|\d{1,2})/g,mu=function(t,e,n,r,o,l){var c=n+t.length,f=r.length,h=du;return void 0!==o&&(o=T(o),h=pu),hu.call(l,h,(function(l,h){var d;switch(h.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":d=o[h.slice(1,-1)];break;default:var m=+h;if(0===m)return l;if(m>f){var v=fu(m/10);return 0===v?l:v<=f?void 0===r[v-1]?h.charAt(1):r[v-1]+h.charAt(1):l}d=r[m-1]}return void 0===d?"":d}))},vu=Math.max,yu=Math.min;Zi("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,l=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=S(this),l=null==n?void 0:n[t];return void 0!==l?l.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&l||"string"==typeof r&&-1===r.indexOf(c)){var f=n(e,t,this,r);if(f.done)return f.value}var h=L(t),d=String(this),m="function"==typeof r;m||(r=String(r));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}for(var _=[];;){var w=no(h,d);if(null===w)break;if(_.push(w),!v)break;""===String(w[0])&&(h.lastIndex=eo(d,xt(h.lastIndex),y))}for(var x,E="",S=0,i=0;i<_.length;i++){w=_[i];for(var k=String(w[0]),A=vu(yu(_t(w.index),d.length),0),O=[],T=1;T<w.length;T++)O.push(void 0===(x=w[T])?x:String(x));var C=w.groups;if(m){var P=[k].concat(O,A,d);void 0!==C&&P.push(C);var I=String(r.apply(void 0,P))}else I=mu(k,d,A,O,C,r);A>=S&&(E+=d.slice(S,A)+I,S=A+k.length)}return E+d.slice(S)}]}));var gu="toString",bu=RegExp.prototype,_u=bu.toString,wu=c((function(){return"/a/b"!=_u.call({source:"a",flags:"b"})})),xu=_u.name!=gu;(wu||xu)&&mt(RegExp.prototype,gu,(function(){var t=L(this),p=String(t.source),e=t.flags;return"/"+p+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in bu)?Li.call(t):e)}),{unsafe:!0});var Eu=ye("species"),Su=B.f,ku=Mt.f,Au=pt.enforce,Ou=ye("match"),Tu=l.RegExp,Cu=Tu.prototype,Pu=/a/g,Iu=/a/g,Mu=new Tu(Pu)!==Pu,ju=Bi.UNSUPPORTED_Y;if(f&&zt("RegExp",!Mu||ju||c((function(){return Iu[Ou]=!1,Tu(Pu)!=Pu||Tu(Iu)==Iu||"/a/i"!=Tu(Pu,"i")})))){for(var Du=function(pattern,t){var e,n=this instanceof Du,r=pi(pattern),o=void 0===t;if(!n&&r&&pattern.constructor===Du&&o)return pattern;Mu?r&&!o&&(pattern=pattern.source):pattern instanceof Du&&(o&&(t=Li.call(pattern)),pattern=pattern.source),ju&&(e=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var l=yi(Mu?new Tu(pattern,t):Tu(pattern,t),n?this:Cu,Du);ju&&e&&(Au(l).sticky=!0);return l},Fu=function(t){t in Du||Su(Du,t,{configurable:!0,get:function(){return Tu[t]},set:function(e){Tu[t]=e}})},Ru=ku(Tu),Lu=0;Ru.length>Lu;)Fu(Ru[Lu++]);Cu.constructor=Du,Du.prototype=Cu,mt(l,"RegExp",Du)}!function(t){var e=yt(t),n=B.f;f&&e&&!e[Eu]&&n(e,Eu,{configurable:!0,get:function(){return this}})}("RegExp");var Nu=Math.ceil,Bu=Math.floor;Ut({target:"Math",stat:!0},{trunc:function(t){return(t>0?Bu:Nu)(t)}});var Vu=[].join,zu=E!=Object,qu=mn("join",",");Ut({target:"Array",proto:!0,forced:zu||!qu},{join:function(t){return Vu.call(k(this),void 0===t?",":t)}});var Uu=uu.values;Ut({target:"Object",stat:!0},{values:function(t){return Uu(t)}});var $u=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1};Ut({target:"Math",stat:!0},{sign:$u}),Ut({global:!0},{globalThis:l});var Gu=ln("splice"),Hu=Math.max,Wu=Math.min,Qu=9007199254740991,Yu="Maximum allowed length exceeded";Ut({target:"Array",proto:!0,forced:!Gu},{splice:function(t,e){var n,r,o,l,c,f,h=T(this),d=xt(h.length),m=kt(t,d),v=arguments.length;if(0===v?n=r=0:1===v?(n=0,r=d-m):(n=v-2,r=Wu(Hu(_t(e),0),d-m)),d+n-r>Qu)throw TypeError(Yu);for(o=Oe(h,r),l=0;l<r;l++)(c=m+l)in h&&wn(o,l,h[c]);if(o.length=r,n<r){for(l=m;l<d-r;l++)f=l+n,(c=l+r)in h?h[f]=h[c]:delete h[f];for(l=d;l>d-r+n;l--)delete h[l-1]}else if(n>r)for(l=d-r;l>m;l--)f=l+n-1,(c=l+r-1)in h?h[f]=h[c]:delete h[f];for(l=0;l<n;l++)h[l+m]=arguments[l+2];return h.length=d-r+n,o}});var Ku=Pe.findIndex,Xu="findIndex",Ju=!0;Xu in[]&&Array(1).findIndex((function(){Ju=!1})),Ut({target:"Array",proto:!0,forced:Ju},{findIndex:function(t){return Ku(this,t,arguments.length>1?arguments[1]:void 0)}}),Or(Xu);var Zu=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};function tl(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function el(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function nl(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function rl(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function il(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?rl(Object(i),!0).forEach((function(e){nl(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):rl(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}Zi("search",1,(function(t,e,n){return[function(e){var n=S(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=L(t),l=String(this),c=o.lastIndex;Zu(c,0)||(o.lastIndex=0);var f=no(o,l);return Zu(o.lastIndex,c)||(o.lastIndex=c),null===f?-1:f.index}]}));var al={addCSS:!0,thumbWidth:15,watch:!0};function sl(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}var ll=function(t){return null!=t?t.constructor:null},cl=function(t,e){return!!(t&&e&&t instanceof e)},fl=function(t){return null==t},hl=function(t){return ll(t)===Object},pl=function(t){return ll(t)===String},ml=function(t){return Array.isArray(t)},vl=function(t){return cl(t,NodeList)},yl=pl,gl=ml,bl=vl,_l=function(t){return cl(t,Element)},wl=function(t){return cl(t,Event)},xl=function(t){return fl(t)||(pl(t)||ml(t)||vl(t))&&!t.length||hl(t)&&!Object.keys(t).length};function El(t,e){if(1>e){var i=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(i))}return Math.round(t/e)*e}var Sl,kl,i,Al=function(){function t(e,i){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),_l(e)?this.element=e:yl(e)&&(this.element=document.querySelector(e)),_l(this.element)&&xl(this.element.rangeTouch)&&(this.config=il({},al,{},i),this.init())}return function(t,e,i){e&&el(t.prototype,e),i&&el(t,i)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var e=this,i=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[i](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!wl(e))return null;var i,s=e.target,n=e.changedTouches[0],r=parseFloat(s.getAttribute("min"))||0,a=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,l=s.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(n.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),r+El(i/100*(a-r),o)}},{key:"set",value:function(e){t.enabled&&wl(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var i=new Event(e,{bubbles:!0});t.dispatchEvent(i)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=null;if(xl(e)||yl(e)?s=Array.from(document.querySelectorAll(yl(e)?e:'input[type="range"]')):_l(e)?s=[e]:bl(e)?s=Array.from(e):gl(e)&&(s=e.filter(_l)),xl(s))return null;var n=il({},al,{},i);if(yl(e)&&n.watch){var r=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){_l(i)&&sl(i,e)&&new t(i,n)}))}))}));r.observe(document.body,{childList:!0,subtree:!0})}return s.map((function(e){return new t(e,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),Ol=function(t){return null!=t?t.constructor:null},Tl=function(t,e){return Boolean(t&&e&&t instanceof e)},Cl=function(t){return null==t},Pl=function(t){return Ol(t)===Object},Il=function(t){return Ol(t)===String},Ml=function(t){return Ol(t)===Function},jl=function(t){return Array.isArray(t)},Dl=function(t){return Tl(t,NodeList)},Fl=function(t){return Cl(t)||(Il(t)||jl(t)||Dl(t))&&!t.length||Pl(t)&&!Object.keys(t).length},Rl=Cl,Ll=Pl,Nl=function(t){return Ol(t)===Number&&!Number.isNaN(t)},Bl=Il,Vl=function(t){return Ol(t)===Boolean},zl=Ml,ql=jl,Ul=Dl,$l=function(t){return null!==t&&"object"==ci(t)&&1===t.nodeType&&"object"==ci(t.style)&&"object"==ci(t.ownerDocument)},Gl=function(t){return Tl(t,Event)},Hl=function(t){return Tl(t,KeyboardEvent)},Wl=function(t){return Tl(t,TextTrack)||!Cl(t)&&Il(t.kind)},Ql=function(t){return Tl(t,Promise)&&Ml(t.then)},Yl=function(t){if(Tl(t,window.URL))return!0;if(!Il(t))return!1;var e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://".concat(t));try{return!Fl(new URL(e).hostname)}catch(t){return!1}},Kl=Fl,Xl=(Sl=document.createElement("span"),kl={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(kl).find((function(t){return void 0!==Sl.style[t]})),!!Bl(i)&&kl[i]);function Jl(t,e){setTimeout((function(){try{t.hidden=!0,t.offsetHeight,t.hidden=!1}catch(t){}}),e)}var Zl={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function tc(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}function ec(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)return t;var i=n.shift();return Ll(i)?(Object.keys(i).forEach((function(e){Ll(i[e])?(Object.keys(t).includes(e)||Object.assign(t,xn({},e,{})),ec(t[e],i[e])):Object.assign(t,xn({},e,i[e]))})),ec.apply(void 0,[t].concat(n))):t}function nc(t,e){var i=t.length?t:[t];Array.from(i).reverse().forEach((function(t,i){var s=i>0?e.cloneNode(!0):e,n=t.parentNode,r=t.nextSibling;s.appendChild(t),r?n.insertBefore(s,r):n.appendChild(s)}))}function rc(t,e){$l(t)&&!Kl(e)&&Object.entries(e).filter((function(t){var e=ui(t,2)[1];return!Rl(e)})).forEach((function(e){var n=ui(e,2),r=n[0],i=n[1];return t.setAttribute(r,i)}))}function ic(t,e,i){var s=document.createElement(t);return Ll(e)&&rc(s,e),Bl(i)&&(s.innerText=i),s}function oc(t,e,i,s){$l(e)&&e.appendChild(ic(t,i,s))}function ac(t){Ul(t)||ql(t)?Array.from(t).forEach(ac):$l(t)&&$l(t.parentNode)&&t.parentNode.removeChild(t)}function sc(t){if($l(t))for(var e=t.childNodes.length;e>0;)t.removeChild(t.lastChild),e-=1}function uc(t,e){return $l(e)&&$l(e.parentNode)&&$l(t)?(e.parentNode.replaceChild(t,e),t):null}function lc(t,e){if(!Bl(t)||Kl(t))return{};var i={},s=ec({},e);return t.split(",").forEach((function(t){var e=t.trim(),n=e.replace(".",""),r=e.replace(/[[\]]/g,"").split("="),a=ui(r,1)[0],o=r.length>1?r[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":Bl(s.class)?i.class="".concat(s.class," ").concat(n):i.class=n;break;case"#":i.id=e.replace("#","");break;case"[":i[a]=o}})),ec(s,i)}function cc(t,e){if($l(t)){var i=e;Vl(i)||(i=!t.hidden),t.hidden=i}}function fc(t,e,i){if(Ul(t))return Array.from(t).map((function(t){return fc(t,e,i)}));if($l(t)){var s="toggle";return void 0!==i&&(s=i?"add":"remove"),t.classList[s](e),t.classList.contains(e)}return!1}function hc(t,e){return $l(t)&&t.classList.contains(e)}function pc(t,e){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function dc(t){return this.elements.container.querySelectorAll(t)}function mc(t){return this.elements.container.querySelector(t)}function vc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];$l(t)&&(t.focus({preventScroll:!0}),e&&fc(t,this.config.classNames.tabFocus))}var yc={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},gc={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,e,i){var s=Zl.isIPhone&&i&&gc.playsinline,n=gc[t]||"html5"!==e;return{api:n,ui:n&&gc.rangeInput&&("video"!==t||!Zl.isIPhone||s)}},pip:!(Zl.isIPhone||!zl(ic("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ic("video").disablePictureInPicture)),airplay:zl(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(Kl(t))return!1;var e=ui(t.split("/"),1)[0],i=t;if(!this.isHTML5||e!==this.type)return!1;Object.keys(yc).includes(i)&&(i+='; codecs="'.concat(yc[t],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var t=document.createElement("input");return t.type="range","range"===t.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Xl,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},bc=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function _c(t,e,i){var n=this,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!Kl(e)&&zl(i)){var a=e.split(" "),l=o;bc&&(l={passive:r,capture:o}),a.forEach((function(e){n&&n.eventListeners&&s&&n.eventListeners.push({element:t,type:e,callback:i,options:l}),t[s?"addEventListener":"removeEventListener"](e,i,l)}))}}function wc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_c.call(this,t,e,i,!0,s,n)}function xc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_c.call(this,t,e,i,!1,s,n)}function Ec(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function o(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];xc(t,n,o,s,r),i.apply(e,a)};_c.call(this,t,n,o,!0,s,r)}function Sc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if($l(t)&&!Kl(e)){var n=new CustomEvent(e,{bubbles:i,detail:Sn(Sn({},s),{},{plyr:this})});t.dispatchEvent(n)}}function kc(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){var e=t.element,i=t.type,s=t.callback,n=t.options;e.removeEventListener(i,s,n)})),this.eventListeners=[])}function Ac(){var t=this;return new Promise((function(e){return t.ready?setTimeout(e,0):wc.call(t,t.elements.container,"ready",e)})).then((function(){}))}function Oc(t){Ql(t)&&t.then(null,(function(){}))}function Tc(t){return ql(t)?t.filter((function(e,i){return t.indexOf(e)===i})):t}function Cc(t,e){return ql(t)&&t.length?t.reduce((function(t,i){return Math.abs(i-e)<Math.abs(t-e)?i:t})):null}var Pc=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(t,e){var n=ui(e,2),r=n[0],i=n[1];return Sn(Sn({},t),{},xn({},r/i,[r,i]))}),{});function Ic(t){return!!(ql(t)||Bl(t)&&t.includes(":"))&&(ql(t)?t:t.split(":")).map(Number).every(Nl)}function Mc(t){if(!ql(t)||!t.every(Nl))return null;var e=ui(t,2),n=e[0],i=e[1],r=function s(t,e){return 0===e?t:s(e,t%e)}(n,i);return[n/r,i/r]}function jc(t){var e=function(t){return Ic(t)?t.split(":").map(Number):null},i=e(t);if(null===i&&(i=e(this.config.ratio)),null===i&&!Kl(this.embed)&&ql(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var n=this.media;i=Mc([n.videoWidth,n.videoHeight])}return i}function Dc(t){if(!this.isVideo)return{};var e=this.elements.wrapper,i=jc.call(this,t);if(!ql(i))return{};var n=ui(i,2),s=n[0],r=n[1],o=100/s*r;if(window.CSS&&window.CSS.supports("aspect-ratio: ".concat(s,"/").concat(r))?e.style.aspectRatio="".concat(s,"/").concat(r):e.style.paddingBottom="".concat(o,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var l=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),c=(l-o)/(l/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(c,"%)")}else this.isHTML5&&e.classList.toggle(this.config.classNames.videoFixedRatio,null!==i);return{padding:o,ratio:i}}function Fc(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,s=t/e,n=Cc(Object.keys(Pc),s);return Math.abs(n-s)<=i?Pc[n]:[t,e]}var Rc={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(e){var n=e.getAttribute("type");return!!Kl(n)||gc.mime.call(t,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Rc.getSources.call(this).map((function(t){return Number(t.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var t=this;t.options.speed=t.config.speed.options,Kl(this.config.ratio)||Dc.call(t),Object.defineProperty(t.media,"quality",{get:function(){var e=Rc.getSources.call(t).find((function(e){return e.getAttribute("src")===t.source}));return e&&Number(e.getAttribute("size"))},set:function(e){if(t.quality!==e){if(t.config.quality.forced&&zl(t.config.quality.onChange))t.config.quality.onChange(e);else{var i=Rc.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===e}));if(!i)return;var n=t.media,s=n.currentTime,r=n.paused,o=n.preload,a=n.readyState,l=n.playbackRate;t.media.src=i.getAttribute("src"),("none"!==o||a)&&(t.once("loadedmetadata",(function(){t.speed=l,t.currentTime=s,r||Oc(t.play())})),t.media.load())}Sc.call(t,t.media,"qualitychange",!1,{quality:e})}}})}},cancelRequests:function(){this.isHTML5&&(ac(Rc.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Lc(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function Nc(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Kl(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,i){return n[i].toString()}))}var Bc=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())},Vc=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))};function zc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.toString();return e=Bc(e,"-"," "),e=Bc(e,"_"," "),e=Vc(e),Bc(e," ","")}function qc(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}var Uc={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},$c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kl(t)||Kl(e))return"";var i=tc(e.i18n,t);if(Kl(i))return Object.keys(Uc).includes(t)?Uc[t]:"";var s={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(s).forEach((function(t){var e=ui(t,2),n=e[0],r=e[1];i=Bc(i,n,r)})),i},Gc=function(){function t(e){var n=this;oi(this,t),tl(this,"get",(function(e){if(!t.supported||!n.enabled)return null;var r=window.localStorage.getItem(n.key);if(Kl(r))return null;var i=JSON.parse(r);return Bl(e)&&e.length?i[e]:i})),tl(this,"set",(function(e){if(t.supported&&n.enabled&&Ll(e)){var r=n.get();Kl(r)&&(r={}),ec(r,e),window.localStorage.setItem(n.key,JSON.stringify(r))}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return si(t,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}]),t}();function Hc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(i,s){try{var n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",(function(){if("text"===e)try{i(JSON.parse(n.responseText))}catch(t){i(n.responseText)}else i(n.response)})),n.addEventListener("error",(function(){throw new Error(n.status)})),n.open("GET",t,!0),n.responseType=e,n.send()}catch(t){s(t)}}))}function Wc(t,e){if(Bl(t)){var i=Bl(e),n=function(){return null!==document.getElementById(e)},r=function(t,e){t.innerHTML=e,i&&n()||document.body.insertAdjacentElement("afterbegin",t)};if(!i||!n()){var o=Gc.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),i&&a.setAttribute("id",e),o){var l=window.localStorage.getItem("cache-".concat(e));if(null!==l){var c=JSON.parse(l);r(a,c.content)}}Hc(t).then((function(t){Kl(t)||(o&&window.localStorage.setItem("cache-".concat(e),JSON.stringify({content:t})),r(a,t))})).catch((function(){}))}}}var Qc=function(t){return Math.trunc(t/60/60%60,10)},Yc=function(t){return Math.trunc(t%60,10)};function Kc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Nl(t))return Kc(void 0,e,i);var a,s=function(t){return"0".concat(t).slice(-2)},n=Qc(t),r=(a=t,Math.trunc(a/60%60,10)),o=Yc(t);return n=e||n>0?"".concat(n,":"):"","".concat(i&&t>0?"-":"").concat(n).concat(s(r),":").concat(s(o))}var Xc={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location).host!==window.location.host||Zl.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements:function(){try{return this.elements.controls=mc.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:dc.call(this,this.config.selectors.buttons.play),pause:mc.call(this,this.config.selectors.buttons.pause),restart:mc.call(this,this.config.selectors.buttons.restart),rewind:mc.call(this,this.config.selectors.buttons.rewind),fastForward:mc.call(this,this.config.selectors.buttons.fastForward),mute:mc.call(this,this.config.selectors.buttons.mute),pip:mc.call(this,this.config.selectors.buttons.pip),airplay:mc.call(this,this.config.selectors.buttons.airplay),settings:mc.call(this,this.config.selectors.buttons.settings),captions:mc.call(this,this.config.selectors.buttons.captions),fullscreen:mc.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=mc.call(this,this.config.selectors.progress),this.elements.inputs={seek:mc.call(this,this.config.selectors.inputs.seek),volume:mc.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:mc.call(this,this.config.selectors.display.buffer),currentTime:mc.call(this,this.config.selectors.display.currentTime),duration:mc.call(this,this.config.selectors.display.duration)},$l(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(t,e){var i="http://www.w3.org/2000/svg",s=Xc.getIconUrl.call(this),n="".concat(s.cors?"":s.url,"#").concat(this.config.iconPrefix),r=document.createElementNS(i,"svg");rc(r,ec(e,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(i,"use"),o="".concat(n,"-").concat(t);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",o),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),r.appendChild(a),r},createLabel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=$c(t,this.config);return ic("span",Sn(Sn({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(t){if(Kl(t))return null;var e=ic("span",{class:this.config.classNames.menu.value});return e.appendChild(ic("span",{class:this.config.classNames.menu.badge},t)),e},createButton:function(t,e){var n=this,i=ec({},e),s=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=zc(t)).charAt(0).toLowerCase()+t.slice(1)}(t),r={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(i).includes(t)&&(r[t]=i[t],delete i[t])})),"button"!==r.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(t){return t===n.config.classNames.control}))||ec(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,t){case"play":r.toggle=!0,r.label="play",r.labelPressed="pause",r.icon="play",r.iconPressed="pause";break;case"mute":r.toggle=!0,r.label="mute",r.labelPressed="unmute",r.icon="volume",r.iconPressed="muted";break;case"captions":r.toggle=!0,r.label="enableCaptions",r.labelPressed="disableCaptions",r.icon="captions-off",r.iconPressed="captions-on";break;case"fullscreen":r.toggle=!0,r.label="enterFullscreen",r.labelPressed="exitFullscreen",r.icon="enter-fullscreen",r.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),s="play",r.label="play",r.icon="play";break;default:Kl(r.label)&&(r.label=s),Kl(r.icon)&&(r.icon=t)}var o=ic(r.element);return r.toggle?(o.appendChild(Xc.createIcon.call(this,r.iconPressed,{class:"icon--pressed"})),o.appendChild(Xc.createIcon.call(this,r.icon,{class:"icon--not-pressed"})),o.appendChild(Xc.createLabel.call(this,r.labelPressed,{class:"label--pressed"})),o.appendChild(Xc.createLabel.call(this,r.label,{class:"label--not-pressed"}))):(o.appendChild(Xc.createIcon.call(this,r.icon)),o.appendChild(Xc.createLabel.call(this,r.label))),ec(i,lc(this.config.selectors.buttons[s],i)),rc(o,i),"play"===s?(ql(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(o)):this.elements.buttons[s]=o,o},createRange:function(t,e){var i=ic("input",ec(lc(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":$c(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=i,Xc.updateRangeFill.call(this,i),Al.setup(i),i},createProgress:function(t,e){var i=ic("progress",ec(lc(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){i.appendChild(ic("span",null,"0"));var n={played:"played",buffer:"buffered"}[t],s=n?$c(n,this.config):"";i.innerText="% ".concat(s.toLowerCase())}return this.elements.display[t]=i,i},createTime:function(t,e){var i=lc(this.config.selectors.display[t],e),s=ic("div",ec(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":$c(t,this.config)}),"00:00");return this.elements.display[t]=s,s},bindMenuItemShortcuts:function(t,e){var n=this;wc.call(this,t,"keydown keyup",(function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var r,s=pc(t,'[role="menuitemradio"]');if(!s&&[32,39].includes(i.which))Xc.showMenuPanel.call(n,e,!0);else 32!==i.which&&(40===i.which||s&&39===i.which?(r=t.nextElementSibling,$l(r)||(r=t.parentNode.firstElementChild)):(r=t.previousElementSibling,$l(r)||(r=t.parentNode.lastElementChild)),vc.call(n,r,!0))}}),!1),wc.call(this,t,"keyup",(function(t){13===t.which&&Xc.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(t){var e=this,n=t.value,r=t.list,i=t.type,s=t.title,o=t.badge,l=void 0===o?null:o,c=t.checked,f=void 0!==c&&c,a=lc(this.config.selectors.inputs[i]),h=ic("button",ec(a,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(a.class?a.class:"").trim(),"aria-checked":f,value:n})),d=ic("span");d.innerHTML=s,$l(l)&&d.appendChild(l),h.appendChild(d),Object.defineProperty(h,"checked",{enumerable:!0,get:function(){return"true"===h.getAttribute("aria-checked")},set:function(t){t&&Array.from(h.parentNode.children).filter((function(t){return pc(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),h.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(h,"click keyup",(function(t){if(!Hl(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),h.checked=!0,i){case"language":e.currentTrack=Number(n);break;case"quality":e.quality=n;break;case"speed":e.speed=parseFloat(n)}Xc.showMenuPanel.call(e,"home",Hl(t))}}),i,!1),Xc.bindMenuItemShortcuts.call(this,h,i),r.appendChild(h)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Nl(t)?Kc(t,Qc(this.duration)>0,e):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];$l(t)&&Nl(e)&&(t.innerText=Xc.formatTime(e,i))},updateVolume:function(){this.supported.ui&&($l(this.elements.inputs.volume)&&Xc.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),$l(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;$l(t)&&(t.value=e,Xc.updateRangeFill.call(this,t))},updateProgress:function(t){var e=this;if(this.supported.ui&&Gl(t)){var n=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":n=function(t,e){return 0===t||0===e||Number.isNaN(t)||Number.isNaN(e)?0:(t/e*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&Xc.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(t,n){var i=Nl(n)?n:0,s=$l(t)?t:e.elements.display.buffer;if($l(s)){s.value=i;var r=s.getElementsByTagName("span")[0];$l(r)&&(r.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var e=Gl(t)?t.target:t;if($l(e)&&"range"===e.getAttribute("type")){if(pc(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);var n=Xc.formatTime(this.currentTime),i=Xc.formatTime(this.duration),s=$c("seekLabel",this.config);e.setAttribute("aria-valuetext",s.replace("{currentTime}",n).replace("{duration}",i))}else if(pc(e,this.config.selectors.inputs.volume)){var r=100*e.value;e.setAttribute("aria-valuenow",r),e.setAttribute("aria-valuetext","".concat(r.toFixed(1),"%"))}else e.setAttribute("aria-valuenow",e.value);Zl.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip:function(t){var e=this;if(this.config.tooltips.seek&&$l(this.elements.inputs.seek)&&$l(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return fc(e.elements.display.seekTooltip,n,t)};if(this.touch)i(!1);else{var s=0,r=this.elements.progress.getBoundingClientRect();if(Gl(t))s=100/r.width*(t.pageX-r.left);else{if(!hc(this.elements.display.seekTooltip,n))return;s=parseFloat(this.elements.display.seekTooltip.style.left,10)}s<0?s=0:s>100&&(s=100),Xc.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*s),this.elements.display.seekTooltip.style.left="".concat(s,"%"),Gl(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var e=!$l(this.elements.display.duration)&&this.config.invertTime;Xc.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||Xc.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return cc(this.elements.display.currentTime,!0),void cc(this.elements.progress,!0);$l(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=$l(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Xc.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Xc.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Xc.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,e){cc(this.elements.settings.buttons[t],!e)},updateSetting:function(t,e,i){var s=this.elements.settings.panels[t],n=null,r=e;if("captions"===t)n=this.currentTrack;else{if(n=Kl(i)?this[t]:i,Kl(n)&&(n=this.config[t].default),!Kl(this.options[t])&&!this.options[t].includes(n))return void this.debug.warn("Unsupported value of '".concat(n,"' for ").concat(t));if(!this.config[t].options.includes(n))return void this.debug.warn("Disabled value of '".concat(n,"' for ").concat(t))}if($l(r)||(r=s&&s.querySelector('[role="menu"]')),$l(r)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Xc.getLabel.call(this,t,n);var a=r&&r.querySelector('[value="'.concat(n,'"]'));$l(a)&&(a.checked=!0)}},getLabel:function(t,e){switch(t){case"speed":return 1===e?$c("normal",this.config):"".concat(e,"&times;");case"quality":if(Nl(e)){var n=$c("qualityLabel.".concat(e),this.config);return n.length?n:"".concat(e,"p")}return Vc(e);case"captions":return tf.getLabel.call(this);default:return null}},setQualityMenu:function(t){var e=this;if($l(this.elements.settings.panels.quality)){var n="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');ql(t)&&(this.options.quality=Tc(t).filter((function(t){return e.config.quality.options.includes(t)})));var s=!Kl(this.options.quality)&&this.options.quality.length>1;if(Xc.toggleMenuButton.call(this,n,s),sc(i),Xc.checkMenu.call(this),s){var r=function(t){var n=$c("qualityBadge.".concat(t),e.config);return n.length?Xc.createBadge.call(e,n):null};this.options.quality.sort((function(t,n){var i=e.config.quality.options;return i.indexOf(t)>i.indexOf(n)?1:-1})).forEach((function(t){Xc.createMenuItem.call(e,{value:t,list:i,type:n,title:Xc.getLabel.call(e,"quality",t),badge:r(t)})})),Xc.updateSetting.call(this,n,i)}}},setCaptionsMenu:function(){var t=this;if($l(this.elements.settings.panels.captions)){var e="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=tf.getTracks.call(this),s=Boolean(i.length);if(Xc.toggleMenuButton.call(this,e,s),sc(n),Xc.checkMenu.call(this),s){var r=i.map((function(e,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:tf.getLabel.call(t,e),badge:e.language&&Xc.createBadge.call(t,e.language.toUpperCase()),list:n,type:"language"}}));r.unshift({value:-1,checked:!this.captions.toggled,title:$c("disabled",this.config),list:n,type:"language"}),r.forEach(Xc.createMenuItem.bind(this)),Xc.updateSetting.call(this,e,n)}}},setSpeedMenu:function(){var t=this;if($l(this.elements.settings.panels.speed)){var e="speed",n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed}));var i=!Kl(this.options.speed)&&this.options.speed.length>1;Xc.toggleMenuButton.call(this,e,i),sc(n),Xc.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){Xc.createMenuItem.call(t,{value:i,list:n,type:e,title:Xc.getLabel.call(t,"speed",i)})})),Xc.updateSetting.call(this,e,n))}},checkMenu:function(){var t=this.elements.settings.buttons,e=!Kl(t)&&Object.values(t).some((function(t){return!t.hidden}));cc(this.elements.settings.menu,!e)},focusFirstMenuItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var i=t;$l(i)||(i=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var s=i.querySelector('[role^="menuitem"]');vc.call(this,s,e)}},toggleMenu:function(t){var e=this.elements.settings.popup,i=this.elements.buttons.settings;if($l(e)&&$l(i)){var s=e.hidden,n=s;if(Vl(t))n=t;else if(Hl(t)&&27===t.which)n=!1;else if(Gl(t)){var r=zl(t.composedPath)?t.composedPath()[0]:t.target,o=e.contains(r);if(o||!o&&t.target!==i&&n)return}i.setAttribute("aria-expanded",n),cc(e,!n),fc(this.elements.container,this.config.classNames.menu.open,n),n&&Hl(t)?Xc.focusFirstMenuItem.call(this,null,!0):n||s||vc.call(this,i,Hl(t))}},getMenuSize:function(t){var e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);var i=e.scrollWidth,s=e.scrollHeight;return ac(e),{width:i,height:s}},showMenuPanel:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e));if($l(i)){var s=i.parentNode,r=Array.from(s.children).find((function(t){return!t.hidden}));if(gc.transitions&&!gc.reducedMotion){s.style.width="".concat(r.scrollWidth,"px"),s.style.height="".concat(r.scrollHeight,"px");var o=Xc.getMenuSize.call(this,i),l=function e(n){n.target===s&&["width","height"].includes(n.propertyName)&&(s.style.width="",s.style.height="",xc.call(t,s,Xl,e))};wc.call(this,s,Xl,l),s.style.width="".concat(o.width,"px"),s.style.height="".concat(o.height,"px")}cc(r,!0),cc(i,!1),Xc.focusFirstMenuItem.call(this,i,n)}},setDownloadUrl:function(){var t=this.elements.buttons.download;$l(t)&&t.setAttribute("href",this.download)},create:function(t){var e=this,n=Xc.bindMenuItemShortcuts,i=Xc.createButton,s=Xc.createProgress,r=Xc.createRange,o=Xc.createTime,a=Xc.setQualityMenu,l=Xc.setSpeedMenu,c=Xc.showMenuPanel;this.elements.controls=null,ql(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var f=ic("div",lc(this.config.selectors.controls.wrapper));this.elements.controls=f;var u={class:"plyr__controls__item"};return Tc(ql(this.config.controls)?this.config.controls:[]).forEach((function(a){if("restart"===a&&f.appendChild(i.call(e,"restart",u)),"rewind"===a&&f.appendChild(i.call(e,"rewind",u)),"play"===a&&f.appendChild(i.call(e,"play",u)),"fast-forward"===a&&f.appendChild(i.call(e,"fast-forward",u)),"progress"===a){var l=ic("div",{class:"".concat(u.class," plyr__progress__container")}),h=ic("div",lc(e.config.selectors.progress));if(h.appendChild(r.call(e,"seek",{id:"plyr-seek-".concat(t.id)})),h.appendChild(s.call(e,"buffer")),e.config.tooltips.seek){var d=ic("span",{class:e.config.classNames.tooltip},"00:00");h.appendChild(d),e.elements.display.seekTooltip=d}e.elements.progress=h,l.appendChild(e.elements.progress),f.appendChild(l)}if("current-time"===a&&f.appendChild(o.call(e,"currentTime",u)),"duration"===a&&f.appendChild(o.call(e,"duration",u)),"mute"===a||"volume"===a){var m=e.elements.volume;if($l(m)&&f.contains(m)||(m=ic("div",ec({},u,{class:"".concat(u.class," plyr__volume").trim()})),e.elements.volume=m,f.appendChild(m)),"mute"===a&&m.appendChild(i.call(e,"mute")),"volume"===a&&!Zl.isIos){var v={max:1,step:.05,value:e.config.volume};m.appendChild(r.call(e,"volume",ec(v,{id:"plyr-volume-".concat(t.id)})))}}if("captions"===a&&f.appendChild(i.call(e,"captions",u)),"settings"===a&&!Kl(e.config.settings)){var y=ic("div",ec({},u,{class:"".concat(u.class," plyr__menu").trim(),hidden:""}));y.appendChild(i.call(e,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var _=ic("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),w=ic("div"),x=ic("div",{id:"plyr-settings-".concat(t.id,"-home")}),E=ic("div",{role:"menu"});x.appendChild(E),w.appendChild(x),e.elements.settings.panels.home=x,e.config.settings.forEach((function(i){var s=ic("button",ec(lc(e.config.selectors.buttons.settings),{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(e,s,i),wc.call(e,s,"click",(function(){c.call(e,i,!1)}));var r=ic("span",null,$c(i,e.config)),a=ic("span",{class:e.config.classNames.menu.value});a.innerHTML=t[i],r.appendChild(a),s.appendChild(r),E.appendChild(s);var o=ic("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),u=ic("button",{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--back")});u.appendChild(ic("span",{"aria-hidden":!0},$c(i,e.config))),u.appendChild(ic("span",{class:e.config.classNames.hidden},$c("menuBack",e.config))),wc.call(e,o,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),c.call(e,"home",!0))}),!1),wc.call(e,u,"click",(function(){c.call(e,"home",!1)})),o.appendChild(u),o.appendChild(ic("div",{role:"menu"})),w.appendChild(o),e.elements.settings.buttons[i]=s,e.elements.settings.panels[i]=o})),_.appendChild(w),y.appendChild(_),f.appendChild(y),e.elements.settings.popup=_,e.elements.settings.menu=y}if("pip"===a&&gc.pip&&f.appendChild(i.call(e,"pip",u)),"airplay"===a&&gc.airplay&&f.appendChild(i.call(e,"airplay",u)),"download"===a){var S=ec({},u,{element:"a",href:e.download,target:"_blank"});e.isHTML5&&(S.download="");var k=e.config.urls.download;!Yl(k)&&e.isEmbed&&ec(S,{icon:"logo-".concat(e.provider),label:e.provider}),f.appendChild(i.call(e,"download",S))}"fullscreen"===a&&f.appendChild(i.call(e,"fullscreen",u))})),this.isHTML5&&a.call(this,Rc.getQualityOptions.call(this)),l.call(this),f},inject:function(){var t=this;if(this.config.loadSprite){var e=Xc.getIconUrl.call(this);e.cors&&Wc(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var s,r={id:this.id,seektime:this.config.seekTime,title:this.config.title},i=!0;if(zl(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),$l(this.config.controls)||Bl(this.config.controls)?n=this.config.controls:(n=Xc.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:tf.getLabel.call(this)}),i=!1),i&&Bl(this.config.controls)&&(n=function(t){var i=t;return Object.entries(r).forEach((function(t){var e=ui(t,2),n=e[0],r=e[1];i=Bc(i,"{".concat(n,"}"),r)})),i}(n)),Bl(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),$l(s)||(s=this.elements.container),s[$l(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),$l(this.elements.controls)||Xc.findElements.call(this),!Kl(this.elements.buttons)){var o=function(e){var n=t.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return hc(e,n)},set:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];fc(e,n,i)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){ql(t)||Ul(t)?Array.from(t).filter(Boolean).forEach(o):o(t)}))}if(Zl.isEdge&&Jl(s),this.config.tooltips.controls){var l=this.config,c=l.classNames,f=l.selectors,h="".concat(f.controls.wrapper," ").concat(f.labels," .").concat(c.hidden),d=dc.call(this,h);Array.from(d).forEach((function(e){fc(e,t.config.classNames.hidden,!1),fc(e,t.config.classNames.tooltip,!0)}))}}};function Jc(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t;if(e){var n=document.createElement("a");n.href=i,i=n.href}try{return new URL(i)}catch(t){return null}}function Zc(t){var e=new URLSearchParams;return Ll(t)&&Object.entries(t).forEach((function(t){var n=ui(t,2),r=n[0],i=n[1];e.set(r,i)})),e}var tf={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!gc.textTracks)ql(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Xc.setCaptionsMenu.call(this);else{if($l(this.elements.captions)||(this.elements.captions=ic("div",lc(this.config.selectors.captions)),function(t,e){$l(t)&&$l(e)&&e.parentNode.insertBefore(t,e.nextSibling)}(this.elements.captions,this.elements.wrapper)),Zl.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var e=t.getAttribute("src"),i=Jc(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&Hc(e,"blob").then((function(e){t.setAttribute("src",window.URL.createObjectURL(e))})).catch((function(){ac(t)}))}))}var e=Tc((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===n&&(n=ui(e,1)[0]);var i=this.storage.get("captions");if(Vl(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:n,languages:e}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";wc.call(this,this.media.textTracks,r,tf.update.bind(this))}setTimeout(tf.update.bind(this),0)}},update:function(){var t=this,e=tf.getTracks.call(this,!0),n=this.captions,r=n.active,i=n.language,s=n.meta,o=n.currentTrackNode,l=Boolean(e.find((function(t){return t.language===i})));this.isHTML5&&this.isVideo&&e.filter((function(t){return!s.get(t)})).forEach((function(e){t.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),wc.call(t,e,"cuechange",(function(){return tf.updateCues.call(t)}))})),(l&&this.language!==i||!e.includes(o))&&(tf.setLanguage.call(this,i),tf.toggle.call(this,r&&l)),fc(this.elements.container,this.config.classNames.captions.enabled,!Kl(e)),ql(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Xc.setCaptionsMenu.call(this)},toggle:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,s=this.config.classNames.captions.active,r=Rl(t)?!i:t;if(r!==i){if(n||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!n){var o=tf.getTracks.call(this),l=tf.findTrack.call(this,[this.captions.language].concat(ii(this.captions.languages)),!0);return this.captions.language=l.language,void tf.set.call(this,o.indexOf(l))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r),fc(this.elements.container,s,r),this.captions.toggled=r,Xc.updateSetting.call(this,"captions"),Sc.call(this,this.media,r?"captionsenabled":"captionsdisabled")}setTimeout((function(){r&&e.captions.toggled&&(e.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=tf.getTracks.call(this);if(-1!==t)if(Nl(t))if(t in i){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var s=i[t],n=s||{},r=n.language;this.captions.currentTrackNode=s,Xc.updateSetting.call(this,"captions"),e||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),Sc.call(this,this.media,"languagechange")}tf.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&tf.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else tf.toggle.call(this,!1,e)},setLanguage:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Bl(t)){var i=t.toLowerCase();this.captions.language=i;var s=tf.getTracks.call(this),n=tf.findTrack.call(this,[i]);tf.set.call(this,s.indexOf(n),e)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(n){return!t.isHTML5||e||t.captions.meta.has(n)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var e,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=tf.getTracks.call(this),s=function(t){return Number((n.captions.meta.get(t)||{}).default)},o=Array.from(i).sort((function(t,e){return s(e)-s(t)}));return t.every((function(t){return e=o.find((function(e){return e.language===t})),!e})),e||(r?o[0]:void 0)},getCurrentTrack:function(){return tf.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var e=t;return!Wl(e)&&gc.textTracks&&this.captions.toggled&&(e=tf.getCurrentTrack.call(this)),Wl(e)?Kl(e.label)?Kl(e.language)?$c("enabled",this.config):t.language.toUpperCase():e.label:$c("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if($l(this.elements.captions))if(Rl(t)||Array.isArray(t)){var e=t;if(!e){var n=tf.getCurrentTrack.call(this);e=Array.from((n||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(qc)}var i=e.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){sc(this.elements.captions);var r=ic("span",lc(this.config.selectors.caption));r.innerHTML=i,this.elements.captions.appendChild(r),Sc.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},ef={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.7/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},nf="picture-in-picture",rf="inline",of={html5:"html5",youtube:"youtube",vimeo:"vimeo"},af="audio",sf="video";var uf=function(){},lf=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oi(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return si(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):uf}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):uf}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):uf}}]),t}(),cf=function(){function t(e){var n=this;oi(this,t),tl(this,"onChange",(function(){if(n.enabled){var t=n.player.elements.buttons.fullscreen;$l(t)&&(t.pressed=n.active);var e=n.target===n.player.media?n.target:n.player.elements.container;Sc.call(n.player,e,n.active?"enterfullscreen":"exitfullscreen",!0)}})),tl(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?n.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(n.scrollPosition.x,n.scrollPosition.y),document.body.style.overflow=t?"hidden":"",fc(n.target,n.player.config.classNames.fullscreen.fallback,t),Zl.isIos){var e=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";e||(e=document.createElement("meta")).setAttribute("name","viewport");var s=Bl(e.content)&&e.content.includes(i);t?(n.cleanupViewport=!s,s||(e.content+=",".concat(i))):n.cleanupViewport&&(e.content=e.content.split(",").filter((function(t){return t.trim()!==i})).join(","))}n.onChange()})),tl(this,"trapFocus",(function(t){if(!Zl.isIos&&n.active&&"Tab"===t.key&&9===t.keyCode){var e=document.activeElement,i=dc.call(n.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),s=ui(i,1)[0],r=i[i.length-1];e!==r||t.shiftKey?e===s&&t.shiftKey&&(r.focus(),t.preventDefault()):(s.focus(),t.preventDefault())}})),tl(this,"update",(function(){var e;n.enabled?(e=n.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback",n.player.debug.log("".concat(e," fullscreen enabled"))):n.player.debug.log("Fullscreen not supported and fallback disabled");fc(n.player.elements.container,n.player.config.classNames.fullscreen.enabled,n.enabled)})),tl(this,"enter",(function(){n.enabled&&(Zl.isIos&&n.player.config.fullscreen.iosNative?n.player.isVimeo?n.player.embed.requestFullscreen():n.target.webkitEnterFullscreen():!t.native||n.forceFallback?n.toggleFallback(!0):n.prefix?Kl(n.prefix)||n.target["".concat(n.prefix,"Request").concat(n.property)]():n.target.requestFullscreen({navigationUI:"hide"}))})),tl(this,"exit",(function(){if(n.enabled)if(Zl.isIos&&n.player.config.fullscreen.iosNative)n.target.webkitExitFullscreen(),Oc(n.player.play());else if(!t.native||n.forceFallback)n.toggleFallback(!1);else if(n.prefix){if(!Kl(n.prefix)){var e="moz"===n.prefix?"Cancel":"Exit";document["".concat(n.prefix).concat(e).concat(n.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),tl(this,"toggle",(function(){n.active?n.exit():n.enter()})),this.player=e,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){return(Element.prototype.closest||function(){var t=this;do{if(pc.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),wc.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),wc.call(this.player,this.player.elements.container,"dblclick",(function(t){$l(n.player.elements.controls)&&n.player.elements.controls.contains(t.target)||n.player.listeners.proxy(t,n.toggle,"fullscreen")})),wc.call(this,this.player.elements.container,"keydown",(function(t){return n.trapFocus(t)})),this.update()}return si(t,[{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!t.native||this.forceFallback)return hc(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}},{key:"target",get:function(){return Zl.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(zl(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(e){return!(!zl(document["".concat(e,"ExitFullscreen")])&&!zl(document["".concat(e,"CancelFullScreen")])||(t=e,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function ff(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,s){var n=new Image,r=function(){delete n.onload,delete n.onerror,(n.naturalWidth>=e?i:s)(n)};Object.assign(n,{onload:r,onerror:r,src:t})}))}var hf={addStyleHook:function(){fc(this.elements.container,this.config.selectors.container.replace(".",""),!0),fc(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void hf.toggleNativeControls.call(this,!0);$l(this.elements.controls)||(Xc.inject.call(this),this.listeners.controls()),hf.toggleNativeControls.call(this),this.isHTML5&&tf.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Xc.updateVolume.call(this),Xc.timeUpdate.call(this),hf.checkPlaying.call(this),fc(this.elements.container,this.config.classNames.pip.supported,gc.pip&&this.isHTML5&&this.isVideo),fc(this.elements.container,this.config.classNames.airplay.supported,gc.airplay&&this.isHTML5),fc(this.elements.container,this.config.classNames.isIos,Zl.isIos),fc(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Sc.call(t,t.media,"ready")}),0),hf.setTitle.call(this),this.poster&&hf.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Xc.durationUpdate.call(this)},setTitle:function(){var t=$c("play",this.config);if(Bl(this.config.title)&&!Kl(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(e){e.setAttribute("aria-label",t)})),this.isEmbed){var e=mc.call(this,"iframe");if(!$l(e))return;var n=Kl(this.config.title)?"video":this.config.title,i=$c("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",n))}},togglePoster:function(t){fc(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Ac.call(this).then((function(){return ff(t)})).catch((function(n){throw t===e.poster&&hf.togglePoster.call(e,!1),n})).then((function(){if(t!==e.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(e.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),hf.togglePoster.call(e,!0),t})))},checkPlaying:function(t){var e=this;fc(this.elements.container,this.config.classNames.playing,this.playing),fc(this.elements.container,this.config.classNames.paused,this.paused),fc(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:e.playing}),t.setAttribute("aria-label",$c(e.playing?"pause":"play",e.config))})),Gl(t)&&"timeupdate"===t.type||hf.toggleControls.call(this)},checkLoading:function(t){var e=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){fc(e.elements.container,e.config.classNames.loading,e.loading),hf.toggleControls.call(e)}),this.loading?250:0)},toggleControls:function(t){var e=this.elements.controls;if(e&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||i))}},migrateStyles:function(){var t=this;Object.values(Sn({},this.media.style)).filter((function(t){return!Kl(t)&&Bl(t)&&t.startsWith("--plyr")})).forEach((function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)})),Kl(this.media.style)&&this.media.removeAttribute("style")}},pf=function(){function t(e){var n=this;oi(this,t),tl(this,"firstTouch",(function(){var t=n.player,e=t.elements;t.touch=!0,fc(e.container,t.config.classNames.isTouch,!0)})),tl(this,"setTabFocus",(function(t){var e=n.player,i=e.elements;if(clearTimeout(n.focusTimer),"keydown"!==t.type||9===t.which){"keydown"===t.type&&(n.lastKeyDown=t.timeStamp);var s=t.timeStamp-n.lastKeyDown<=20;("focus"!==t.type||s)&&(function(){var t=e.config.classNames.tabFocus;fc(dc.call(e,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(n.focusTimer=setTimeout((function(){var t=document.activeElement;i.container.contains(t)&&fc(document.activeElement,e.config.classNames.tabFocus,!0)}),10)))}})),tl(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=n.player;e.config.keyboard.global&&_c.call(e,window,"keydown keyup",n.handleKey,t,!1),_c.call(e,document.body,"click",n.toggleMenu,t),Ec.call(e,document.body,"touchstart",n.firstTouch),_c.call(e,document.body,"keydown focus blur focusout",n.setTabFocus,t,!1,!0)})),tl(this,"container",(function(){var t=n.player,e=t.config,i=t.elements,s=t.timers;!e.keyboard.global&&e.keyboard.focused&&wc.call(t,i.container,"keydown keyup",n.handleKey,!1),wc.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(e){var n=i.controls;n&&"enterfullscreen"===e.type&&(n.pressed=!1,n.hover=!1);var r=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(hf.toggleControls.call(t,!0),r=t.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout((function(){return hf.toggleControls.call(t,!1)}),r)}));var r=function(e){if(!e)return Dc.call(t);var s=i.container.getBoundingClientRect(),n=s.width,r=s.height;return Dc.call(t,"".concat(n,":").concat(r))},o=function(){clearTimeout(s.resized),s.resized=setTimeout(r,50)};wc.call(t,i.container,"enterfullscreen exitfullscreen",(function(e){var n=t.fullscreen,s=n.target,a=n.usingNative;if(s===i.container&&(t.isEmbed||!Kl(t.config.ratio))){var l="enterfullscreen"===e.type,c=r(l);c.padding,function(e,i,s){if(t.isVimeo&&!t.config.vimeo.premium){var n=t.elements.wrapper.firstChild,r=ui(e,2)[1],o=ui(jc.call(t),2),a=o[0],l=o[1];n.style.maxWidth=s?r/l*a+"px":null,n.style.margin=s?"0 auto":null}}(c.ratio,0,l),l&&setTimeout((function(){return Jl(i.container)}),100),a||(l?wc.call(t,window,"resize",o):xc.call(t,window,"resize",o))}}))})),tl(this,"media",(function(){var t=n.player,e=t.elements;if(wc.call(t,t.media,"timeupdate seeking seeked",(function(e){return Xc.timeUpdate.call(t,e)})),wc.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return Xc.durationUpdate.call(t,e)})),wc.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),wc.call(t,t.media,"progress playing seeking seeked",(function(e){return Xc.updateProgress.call(t,e)})),wc.call(t,t.media,"volumechange",(function(e){return Xc.updateVolume.call(t,e)})),wc.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return hf.checkPlaying.call(t,e)})),wc.call(t,t.media,"waiting canplay seeked playing",(function(e){return hf.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=mc.call(t,".".concat(t.config.classNames.video));if(!$l(r))return;wc.call(t,e.container,"click",(function(s){([e.container,r].includes(s.target)||r.contains(s.target))&&(t.touch&&t.config.hideControls||(t.ended?(n.proxy(s,t.restart,"restart"),n.proxy(s,(function(){Oc(t.play())}),"play")):n.proxy(s,(function(){Oc(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&wc.call(t,e.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),wc.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),wc.call(t,t.media,"ratechange",(function(){Xc.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),wc.call(t,t.media,"qualitychange",(function(e){Xc.updateSetting.call(t,"quality",null,e.detail.quality)})),wc.call(t,t.media,"ready qualitychange",(function(){Xc.setDownloadUrl.call(t)}));var i=t.config.events.concat(["keyup","keydown"]).join(" ");wc.call(t,t.media,i,(function(i){var n=i.detail,s=void 0===n?{}:n;"error"===i.type&&(s=t.media.error),Sc.call(t,e.container,i.type,!0,s)}))})),tl(this,"proxy",(function(t,e,i){var s=n.player,r=s.config.listeners[i],o=!0;zl(r)&&(o=r.call(s,t)),!1!==o&&zl(e)&&e.call(s,t)})),tl(this,"bind",(function(t,e,i,s){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=n.player,a=o.config.listeners[s],l=zl(a);wc.call(o,t,e,(function(t){return n.proxy(t,i,s)}),r&&!l)})),tl(this,"controls",(function(){var t=n.player,e=t.elements,i=Zl.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(e){n.bind(e,"click",(function(){Oc(t.togglePlay())}),"play")})),n.bind(e.buttons.restart,"click",t.restart,"restart"),n.bind(e.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),n.bind(e.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),n.bind(e.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),n.bind(e.buttons.captions,"click",(function(){return t.toggleCaptions()})),n.bind(e.buttons.download,"click",(function(){Sc.call(t,t.media,"download")}),"download"),n.bind(e.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),n.bind(e.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),n.bind(e.buttons.airplay,"click",t.airplay,"airplay"),n.bind(e.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),Xc.toggleMenu.call(t,e)}),null,!1),n.bind(e.buttons.settings,"keyup",(function(e){var i=e.which;[13,32].includes(i)&&(13!==i?(e.preventDefault(),e.stopPropagation(),Xc.toggleMenu.call(t,e)):Xc.focusFirstMenuItem.call(t,null,!0))}),null,!1),n.bind(e.settings.menu,"keydown",(function(e){27===e.which&&Xc.toggleMenu.call(t,e)})),n.bind(e.inputs.seek,"mousedown mousemove",(function(t){var i=e.progress.getBoundingClientRect(),s=100/i.width*(t.pageX-i.left);t.currentTarget.setAttribute("seek-value",s)})),n.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var i=e.currentTarget,s=e.keyCode?e.keyCode:e.which,n="play-on-seeked";if(!Hl(e)||39===s||37===s){t.lastSeekTime=Date.now();var r=i.hasAttribute(n),a=["mouseup","touchend","keyup"].includes(e.type);r&&a?(i.removeAttribute(n),Oc(t.play())):!a&&t.playing&&(i.setAttribute(n,""),t.pause())}})),Zl.isIos){var r=dc.call(t,'input[type="range"]');Array.from(r).forEach((function(t){return n.bind(t,i,(function(t){return Jl(t.target)}))}))}n.bind(e.inputs.seek,i,(function(e){var i=e.currentTarget,s=i.getAttribute("seek-value");Kl(s)&&(s=i.value),i.removeAttribute("seek-value"),t.currentTime=s/i.max*t.duration}),"seek"),n.bind(e.progress,"mouseenter mouseleave mousemove",(function(e){return Xc.updateSeekTooltip.call(t,e)})),n.bind(e.progress,"mousemove touchmove",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startMove(e)})),n.bind(e.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),n.bind(e.progress,"mousedown touchstart",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.startScrubbing(e)})),n.bind(e.progress,"mouseup touchend",(function(e){var i=t.previewThumbnails;i&&i.loaded&&i.endScrubbing(e)})),Zl.isWebkit&&Array.from(dc.call(t,'input[type="range"]')).forEach((function(e){n.bind(e,"input",(function(e){return Xc.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!$l(e.display.duration)&&n.bind(e.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Xc.timeUpdate.call(t))})),n.bind(e.inputs.volume,i,(function(e){t.volume=e.target.value}),"volume"),n.bind(e.controls,"mouseenter mouseleave",(function(i){e.controls.hover=!t.touch&&"mouseenter"===i.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(i){n.bind(i,"mouseenter mouseleave",(function(i){e.controls.hover=!t.touch&&"mouseenter"===i.type}))})),n.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),n.bind(e.controls,"focusin",(function(){var i=t.config,s=t.timers;fc(e.controls,i.classNames.noTransition,!0),hf.toggleControls.call(t,!0),setTimeout((function(){fc(e.controls,i.classNames.noTransition,!1)}),0);var r=n.touch?3e3:4e3;clearTimeout(s.controls),s.controls=setTimeout((function(){return hf.toggleControls.call(t,!1)}),r)})),n.bind(e.inputs.volume,"wheel",(function(e){var i=e.webkitDirectionInvertedFromDevice,n=[e.deltaX,-e.deltaY].map((function(t){return i?-t:t})),r=ui(n,2),s=r[0],o=r[1],l=Math.sign(Math.abs(s)>Math.abs(o)?s:o);t.increaseVolume(l/50);var a=t.media.volume;(1===l&&a<1||-1===l&&a>0)&&e.preventDefault()}),"volume",!1)})),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return si(t,[{key:"handleKey",value:function(t){var e=this.player,i=e.elements,s=t.keyCode?t.keyCode:t.which,n="keydown"===t.type,r=n&&s===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&Nl(s))if(n){var o=document.activeElement;if($l(o)){var l=e.config.selectors.editable;if(o!==i.inputs.seek&&pc(o,l))return;if(32===t.which&&pc(o,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(s)&&(t.preventDefault(),t.stopPropagation()),s){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r||(e.currentTime=e.duration/10*(s-48));break;case 32:case 75:r||Oc(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:r||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:r||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===s&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null}},{key:"toggleMenu",value:function(t){Xc.toggleMenu.call(this.player,t)}}]),t}();var df=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports=function(){var t=function(){},e={},i={},s={};function n(t,e){if(t){var n=s[t];if(i[t]=e,n)for(;n.length;)n[0](t,e),n.splice(0,1)}}function a(e,i){e.call&&(e={success:e}),i.length?(e.error||t)(i):(e.success||t)(e)}function r(e,i,s,n){var o,a,l=document,c=s.async,u=(s.numRetries||0)+1,f=s.before||t,h=e.replace(/[\?|#].*$/,""),d=e.replace(/^(css|img)!/,"");n=n||0,/(^css!|\.css$)/.test(h)?((a=l.createElement("link")).rel="stylesheet",a.href=d,(o="hideFocus"in a)&&a.relList&&(o=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(a=l.createElement("img")).src=d:((a=l.createElement("script")).src=e,a.async=void 0===c||c),a.onload=a.onerror=a.onbeforeload=function(t){var l=t.type[0];if(o)try{a.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((n+=1)<u)return r(e,i,s,n)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";i(e,l,t.defaultPrevented)},!1!==f(e,a)&&l.head.appendChild(a)}function o(t,e,i){var s,n,o=(t=t.push?t:[t]).length,a=o,l=[];for(s=function(t,i,n){if("e"==i&&l.push(t),"b"==i){if(!n)return;l.push(t)}--o||e(l)},n=0;n<a;n++)r(t[n],s,i)}function l(t,i,s){var r,l;if(i&&i.trim&&(r=i),l=(r?s:i)||{},r){if(r in e)throw"LoadJS";e[r]=!0}function c(e,i){o(t,(function(t){a(l,t),e&&a({success:e,error:i},t),n(r,t)}),l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(t,e){return function(t,e){t=t.push?t:[t];var n,r,a,o=[],l=t.length,c=l;for(n=function(t,i){i.length&&o.push(t),--c||e(o)};l--;)r=t[l],(a=i[r])?n(r,a):(s[r]=s[r]||[]).push(n)}(t,(function(t){a(e,t)})),l},l.done=function(t){n(t,[])},l.reset=function(){e={},i={},s={}},l.isDefined=function(t){return t in e},l}()}));function mf(t){return new Promise((function(e,i){df(t,{success:e,error:i})}))}function vf(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Sc.call(this,this.media,t?"play":"pause"))}var yf={setup:function(){var t=this;fc(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,Dc.call(t),Ll(window.Vimeo)?yf.ready.call(t):mf(t.config.urls.vimeo.sdk).then((function(){yf.ready.call(t)})).catch((function(e){t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready:function(){var t=this,e=this,n=e.config.vimeo,i=n.premium,s=n.referrerPolicy,r=Pn(n,["premium","referrerPolicy"]);i&&Object.assign(r,{controls:!1,sidedock:!1});var o=Zc(Sn({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},r)),a=e.media.getAttribute("src");Kl(a)&&(a=e.media.getAttribute(e.config.attributes.embed.id));var l=function(t){return Kl(t)?null:Nl(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(a),c=ic("iframe"),f=Nc(e.config.urls.vimeo.iframe,l,o);if(c.setAttribute("src",f),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),Kl(s)||c.setAttribute("referrerPolicy",s),i||!n.customControls)c.setAttribute("data-poster",e.poster),e.media=uc(c,e.media);else{var h=ic("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});h.appendChild(c),e.media=uc(h,e.media)}n.customControls||Hc(Nc(e.config.urls.vimeo.api,f)).then((function(t){!Kl(t)&&t.thumbnail_url&&hf.setPoster.call(e,t.thumbnail_url).catch((function(){}))})),e.embed=new window.Vimeo.Player(c,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=function(){return vf.call(e,!0),e.embed.play()},e.media.pause=function(){return vf.call(e,!1),e.embed.pause()},e.media.stop=function(){e.pause(),e.currentTime=0};var u=e.media.currentTime;Object.defineProperty(e.media,"currentTime",{get:function(){return u},set:function(t){var i=e.embed,s=e.media,n=e.paused,r=e.volume,a=n&&!i.hasPlayed;s.seeking=!0,Sc.call(e,s,"seeking"),Promise.resolve(a&&i.setVolume(0)).then((function(){return i.setCurrentTime(t)})).then((function(){return a&&i.pause()})).then((function(){return a&&i.setVolume(r)})).catch((function(){}))}});var d=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:function(){return d},set:function(t){e.embed.setPlaybackRate(t).then((function(){d=t,Sc.call(e,e.media,"ratechange")})).catch((function(){e.options.speed=[1]}))}});var m=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return m},set:function(t){e.embed.setVolume(t).then((function(){m=t,Sc.call(e,e.media,"volumechange")}))}});var v=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return v},set:function(t){var i=!!Vl(t)&&t;e.embed.setVolume(i?0:e.config.volume).then((function(){v=i,Sc.call(e,e.media,"volumechange")}))}});var p,g=e.config.loop;Object.defineProperty(e.media,"loop",{get:function(){return g},set:function(t){var i=Vl(t)?t:e.config.loop.active;e.embed.setLoop(i).then((function(){g=i}))}}),e.embed.getVideoUrl().then((function(t){p=t,Xc.setDownloadUrl.call(e)})).catch((function(e){t.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:function(){return p}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((function(n){var r=ui(n,2),i=r[0],s=r[1];e.embed.ratio=Fc(i,s),Dc.call(t)})),e.embed.setAutopause(e.config.autopause).then((function(t){e.config.autopause=t})),e.embed.getVideoTitle().then((function(n){e.config.title=n,hf.setTitle.call(t)})),e.embed.getCurrentTime().then((function(t){u=t,Sc.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((function(t){e.media.duration=t,Sc.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((function(t){e.media.textTracks=t,tf.setup.call(e)})),e.embed.on("cuechange",(function(t){var n=t.cues,i=(void 0===n?[]:n).map((function(t){return function(t){var e=document.createDocumentFragment(),i=document.createElement("div");return e.appendChild(i),i.innerHTML=t,e.firstChild.innerText}(t.text)}));tf.updateCues.call(e,i)})),e.embed.on("loaded",(function(){e.embed.getPaused().then((function(t){vf.call(e,!t),t||Sc.call(e,e.media,"playing")})),$l(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(function(){Sc.call(e,e.media,"waiting")})),e.embed.on("bufferend",(function(){Sc.call(e,e.media,"playing")})),e.embed.on("play",(function(){vf.call(e,!0),Sc.call(e,e.media,"playing")})),e.embed.on("pause",(function(){vf.call(e,!1)})),e.embed.on("timeupdate",(function(t){e.media.seeking=!1,u=t.seconds,Sc.call(e,e.media,"timeupdate")})),e.embed.on("progress",(function(t){e.media.buffered=t.percent,Sc.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&Sc.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((function(t){t!==e.media.duration&&(e.media.duration=t,Sc.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(function(){e.media.seeking=!1,Sc.call(e,e.media,"seeked")})),e.embed.on("ended",(function(){e.media.paused=!0,Sc.call(e,e.media,"ended")})),e.embed.on("error",(function(t){e.media.error=t,Sc.call(e,e.media,"error")})),n.customControls&&setTimeout((function(){return hf.build.call(e)}),0)}};function gf(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Sc.call(this,this.media,t?"play":"pause"))}function bf(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var _f={setup:function(){var t=this;if(fc(this.elements.wrapper,this.config.classNames.embed,!0),Ll(window.YT)&&zl(window.YT.Player))_f.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){zl(e)&&e(),_f.ready.call(t)},mf(this.config.urls.youtube.sdk).catch((function(e){t.debug.warn("YouTube API failed to load",e)}))}},getTitle:function(t){var e=this;Hc(Nc(this.config.urls.youtube.api,t)).then((function(t){if(Ll(t)){var n=t.title,i=t.height,s=t.width;e.config.title=n,hf.setTitle.call(e),e.embed.ratio=Fc(s,i)}Dc.call(e)})).catch((function(){Dc.call(e)}))},ready:function(){var t=this,e=t.config.youtube,i=t.media&&t.media.getAttribute("id");if(Kl(i)||!i.startsWith("youtube-")){var s=t.media.getAttribute("src");Kl(s)&&(s=t.media.getAttribute(this.config.attributes.embed.id));var n=function(t){return Kl(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(s),r=ic("div",{id:Lc(t.provider),"data-poster":e.customControls?t.poster:void 0});if(t.media=uc(r,t.media),e.customControls){var o=function(t){return"https://i.ytimg.com/vi/".concat(n,"/").concat(t,"default.jpg")};ff(o("maxres"),121).catch((function(){return ff(o("sd"),121)})).catch((function(){return ff(o("hq"))})).then((function(e){return hf.setPoster.call(t,e.src)})).then((function(e){e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:n,host:bf(e),playerVars:ec({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},e),events:{onError:function(e){if(!t.media.error){var n=e.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";t.media.error={code:n,message:r},Sc.call(t,t.media,"error")}},onPlaybackRateChange:function(e){var i=e.target;t.media.playbackRate=i.getPlaybackRate(),Sc.call(t,t.media,"ratechange")},onReady:function(i){if(!zl(t.media.play)){var s=i.target;_f.getTitle.call(t,n),t.media.play=function(){gf.call(t,!0),s.playVideo()},t.media.pause=function(){gf.call(t,!1),s.pauseVideo()},t.media.stop=function(){s.stopVideo()},t.media.duration=s.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(s.getCurrentTime())},set:function(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Sc.call(t,t.media,"seeking"),s.seekTo(e)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return s.getPlaybackRate()},set:function(t){s.setPlaybackRate(t)}});var r=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return r},set:function(e){r=e,s.setVolume(100*r),Sc.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(e){var i=Vl(e)?e:a;a=i,s[i?"mute":"unMute"](),s.setVolume(100*r),Sc.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return s.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var o=s.getAvailablePlaybackRates();t.options.speed=o.filter((function(e){return t.config.speed.options.includes(e)})),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),Sc.call(t,t.media,"timeupdate"),Sc.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=s.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&Sc.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Sc.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((function(){return hf.build.call(t)}),50)}},onStateChange:function(i){var s=i.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(i.data)&&(t.media.seeking=!1,Sc.call(t,t.media,"seeked")),i.data){case-1:Sc.call(t,t.media,"timeupdate"),t.media.buffered=s.getVideoLoadedFraction(),Sc.call(t,t.media,"progress");break;case 0:gf.call(t,!1),t.media.loop?(s.stopVideo(),s.playVideo()):Sc.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(gf.call(t,!0),Sc.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Sc.call(t,t.media,"timeupdate")}),50),t.media.duration!==s.getDuration()&&(t.media.duration=s.getDuration(),Sc.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),gf.call(t,!1);break;case 3:Sc.call(t,t.media,"waiting")}Sc.call(t,t.elements.container,"statechange",!1,{code:i.data})}}})}}},wf={setup:function(){this.media?(fc(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),fc(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&fc(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ic("div",{class:this.config.classNames.video}),nc(this.media,this.elements.wrapper),this.elements.poster=ic("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Rc.setup.call(this):this.isYouTube?_f.setup.call(this):this.isVimeo&&yf.setup.call(this)):this.debug.warn("No media element found!")}},xf=function(){function t(e){var n=this;oi(this,t),tl(this,"load",(function(){n.enabled&&(Ll(window.google)&&Ll(window.google.ima)?n.ready():mf(n.player.config.urls.googleIMA.sdk).then((function(){n.ready()})).catch((function(){n.trigger("error",new Error("Google IMA SDK failed to load"))})))})),tl(this,"ready",(function(){var t;n.enabled||((t=n).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),n.startSafetyTimer(12e3,"ready()"),n.managerPromise.then((function(){n.clearSafetyTimer("onAdsManagerLoaded()")})),n.listeners(),n.setupIMA()})),tl(this,"setupIMA",(function(){n.elements.container=ic("div",{class:n.player.config.classNames.ads}),n.player.elements.container.appendChild(n.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(n.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(n.player.config.playsinline),n.elements.displayContainer=new google.ima.AdDisplayContainer(n.elements.container,n.player.media),n.loader=new google.ima.AdsLoader(n.elements.displayContainer),n.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return n.onAdsManagerLoaded(t)}),!1),n.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return n.onAdError(t)}),!1),n.requestAds()})),tl(this,"requestAds",(function(){var t=n.player.elements.container;try{var e=new google.ima.AdsRequest;e.adTagUrl=n.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!n.player.muted),n.loader.requestAds(e)}catch(t){n.onAdError(t)}})),tl(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(n.countdownTimer),void n.elements.container.removeAttribute("data-badge-text");n.countdownTimer=setInterval((function(){var t=Kc(Math.max(n.manager.getRemainingTime(),0)),e="".concat($c("advertisement",n.player.config)," - ").concat(t);n.elements.container.setAttribute("data-badge-text",e)}),100)})),tl(this,"onAdsManagerLoaded",(function(t){if(n.enabled){var e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,n.manager=t.getAdsManager(n.player,e),n.cuePoints=n.manager.getCuePoints(),n.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return n.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){n.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return n.onAdEvent(t)}))})),n.trigger("loaded")}})),tl(this,"addCuePoints",(function(){Kl(n.cuePoints)||n.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<n.player.duration){var e=n.player.elements.progress;if($l(e)){var i=100/n.player.duration*t,s=ic("span",{class:n.player.config.classNames.cues});s.style.left="".concat(i.toString(),"%"),e.appendChild(s)}}}))})),tl(this,"onAdEvent",(function(t){var e=n.player.elements.container,i=t.getAd(),s=t.getAdData();switch(function(t){Sc.call(n.player,n.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:n.trigger("loaded"),n.pollCountdown(!0),i.isLinear()||(i.width=e.offsetWidth,i.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:n.manager.setVolume(n.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:n.player.ended?n.loadAds():n.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:n.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:n.pollCountdown(),n.resumeContent();break;case google.ima.AdEvent.Type.LOG:s.adError&&n.player.debug.warn("Non-fatal ad error: ".concat(s.adError.getMessage()))}})),tl(this,"onAdError",(function(t){n.cancel(),n.player.debug.warn("Ads error",t)})),tl(this,"listeners",(function(){var t,e=n.player.elements.container;n.player.on("canplay",(function(){n.addCuePoints()})),n.player.on("ended",(function(){n.loader.contentComplete()})),n.player.on("timeupdate",(function(){t=n.player.currentTime})),n.player.on("seeked",(function(){var e=n.player.currentTime;Kl(n.cuePoints)||n.cuePoints.forEach((function(i,s){t<i&&i<e&&(n.manager.discardAdBreak(),n.cuePoints.splice(s,1))}))})),window.addEventListener("resize",(function(){n.manager&&n.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),tl(this,"play",(function(){var t=n.player.elements.container;n.managerPromise||n.resumeContent(),n.managerPromise.then((function(){n.manager.setVolume(n.player.volume),n.elements.displayContainer.initialize();try{n.initialized||(n.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),n.manager.start()),n.initialized=!0}catch(t){n.onAdError(t)}})).catch((function(){}))})),tl(this,"resumeContent",(function(){n.elements.container.style.zIndex="",n.playing=!1,Oc(n.player.media.play())})),tl(this,"pauseContent",(function(){n.elements.container.style.zIndex=3,n.playing=!0,n.player.media.pause()})),tl(this,"cancel",(function(){n.initialized&&n.resumeContent(),n.trigger("error"),n.loadAds()})),tl(this,"loadAds",(function(){n.managerPromise.then((function(){n.manager&&n.manager.destroy(),n.managerPromise=new Promise((function(t){n.on("loaded",t),n.player.debug.log(n.manager)})),n.initialized=!1,n.requestAds()})).catch((function(){}))})),tl(this,"trigger",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i=n.events[t];ql(i)&&i.forEach((function(t){zl(t)&&t.apply(n,r)}))})),tl(this,"on",(function(t,e){return ql(n.events[t])||(n.events[t]=[]),n.events[t].push(e),n})),tl(this,"startSafetyTimer",(function(t,e){n.player.debug.log("Safety timer invoked from: ".concat(e)),n.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),t)})),tl(this,"clearSafetyTimer",(function(t){Rl(n.safetyTimer)||(n.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(n.safetyTimer),n.safetyTimer=null)})),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(t,e){n.on("loaded",t),n.on("error",e)})),this.load()}return si(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!Kl(t.publisherId)||Yl(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return Yl(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Zc({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId}))}}]),t}(),Ef=function(t){var e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var i={};t.split(/\r\n|\n|\r/).forEach((function(t){if(Nl(i.startTime)){if(!Kl(t.trim())&&Kl(i.text)){var e,n,r=t.trim().split("#xywh=");e=ui(r,1),i.text=e[0],r[1]&&(n=ui(r[1].split(","),4),i.x=n[0],i.y=n[1],i.w=n[2],i.h=n[3])}}else{var o=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(i.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),i.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),i.text&&e.push(i)})),e},Sf=function(t,e){var i={};return t>e.width/e.height?(i.width=e.width,i.height=1/t*e.width):(i.height=e.height,i.width=t*e.height),i},kf=function(){function t(e){var n=this;oi(this,t),tl(this,"load",(function(){n.player.elements.display.seekTooltip&&(n.player.elements.display.seekTooltip.hidden=n.enabled),n.enabled&&n.getThumbnails().then((function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.loaded=!0)}))})),tl(this,"getThumbnails",(function(){return new Promise((function(t){var e=n.player.config.previewThumbnails.src;if(Kl(e))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){n.thumbnails.sort((function(t,e){return t.height-e.height})),n.player.debug.log("Preview thumbnails",n.thumbnails),t()};if(zl(e))e((function(t){n.thumbnails=t,i()}));else{var r=(Bl(e)?[e]:e).map((function(t){return n.getThumbnail(t)}));Promise.all(r).then(i)}}))})),tl(this,"getThumbnail",(function(t){return new Promise((function(e){Hc(t).then((function(i){var s={frames:Ef(i),height:null,urlPrefix:""};s.frames[0].text.startsWith("/")||s.frames[0].text.startsWith("http://")||s.frames[0].text.startsWith("https://")||(s.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var r=new Image;r.onload=function(){s.height=r.naturalHeight,s.width=r.naturalWidth,n.thumbnails.push(s),e()},r.src=s.urlPrefix+s.frames[0].text}))}))})),tl(this,"startMove",(function(t){if(n.loaded&&Gl(t)&&["touchmove","mousemove"].includes(t.type)&&n.player.media.duration){if("touchmove"===t.type)n.seekTime=n.player.media.duration*(n.player.elements.inputs.seek.value/100);else{var e=n.player.elements.progress.getBoundingClientRect(),i=100/e.width*(t.pageX-e.left);n.seekTime=n.player.media.duration*(i/100),n.seekTime<0&&(n.seekTime=0),n.seekTime>n.player.media.duration-1&&(n.seekTime=n.player.media.duration-1),n.mousePosX=t.pageX,n.elements.thumb.time.innerText=Kc(n.seekTime)}n.showImageAtCurrentTime()}})),tl(this,"endMove",(function(){n.toggleThumbContainer(!1,!0)})),tl(this,"startScrubbing",(function(t){(Rl(t.button)||!1===t.button||0===t.button)&&(n.mouseDown=!0,n.player.media.duration&&(n.toggleScrubbingContainer(!0),n.toggleThumbContainer(!1,!0),n.showImageAtCurrentTime()))})),tl(this,"endScrubbing",(function(){n.mouseDown=!1,Math.ceil(n.lastTime)===Math.ceil(n.player.media.currentTime)?n.toggleScrubbingContainer(!1):Ec.call(n.player,n.player.media,"timeupdate",(function(){n.mouseDown||n.toggleScrubbingContainer(!1)}))})),tl(this,"listeners",(function(){n.player.on("play",(function(){n.toggleThumbContainer(!1,!0)})),n.player.on("seeked",(function(){n.toggleThumbContainer(!1)})),n.player.on("timeupdate",(function(){n.lastTime=n.player.media.currentTime}))})),tl(this,"render",(function(){n.elements.thumb.container=ic("div",{class:n.player.config.classNames.previewThumbnails.thumbContainer}),n.elements.thumb.imageContainer=ic("div",{class:n.player.config.classNames.previewThumbnails.imageContainer}),n.elements.thumb.container.appendChild(n.elements.thumb.imageContainer);var t=ic("div",{class:n.player.config.classNames.previewThumbnails.timeContainer});n.elements.thumb.time=ic("span",{},"00:00"),t.appendChild(n.elements.thumb.time),n.elements.thumb.container.appendChild(t),$l(n.player.elements.progress)&&n.player.elements.progress.appendChild(n.elements.thumb.container),n.elements.scrubbing.container=ic("div",{class:n.player.config.classNames.previewThumbnails.scrubbingContainer}),n.player.elements.wrapper.appendChild(n.elements.scrubbing.container)})),tl(this,"destroy",(function(){n.elements.thumb.container&&n.elements.thumb.container.remove(),n.elements.scrubbing.container&&n.elements.scrubbing.container.remove()})),tl(this,"showImageAtCurrentTime",(function(){n.mouseDown?n.setScrubbingContainerSize():n.setThumbContainerSizeAndPos();var t=n.thumbnails[0].frames.findIndex((function(t){return n.seekTime>=t.startTime&&n.seekTime<=t.endTime})),e=t>=0,i=0;n.mouseDown||n.toggleThumbContainer(e),e&&(n.thumbnails.forEach((function(e,s){n.loadedImages.includes(e.frames[t].text)&&(i=s)})),t!==n.showingThumb&&(n.showingThumb=t,n.loadImage(i)))})),tl(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=n.showingThumb,i=n.thumbnails[t],s=i.urlPrefix,r=i.frames[e],o=i.frames[e].text,a=s+o;if(n.currentImageElement&&n.currentImageElement.dataset.filename===o)n.showImage(n.currentImageElement,r,t,e,o,!1),n.currentImageElement.dataset.index=e,n.removeOldImages(n.currentImageElement);else{n.loadingImage&&n.usingSprites&&(n.loadingImage.onload=null);var l=new Image;l.src=a,l.dataset.index=e,l.dataset.filename=o,n.showingThumbFilename=o,n.player.debug.log("Loading image: ".concat(a)),l.onload=function(){return n.showImage(l,r,t,e,o,!0)},n.loadingImage=l,n.removeOldImages(l)}})),tl(this,"showImage",(function(t,e,i,s,r){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];n.player.debug.log("Showing thumb: ".concat(r,". num: ").concat(s,". qual: ").concat(i,". newimg: ").concat(o)),n.setImageSizeAndOffset(t,e),o&&(n.currentImageContainer.appendChild(t),n.currentImageElement=t,n.loadedImages.includes(r)||n.loadedImages.push(r)),n.preloadNearby(s,!0).then(n.preloadNearby(s,!1)).then(n.getHigherQuality(i,t,e,r))})),tl(this,"removeOldImages",(function(t){Array.from(n.currentImageContainer.children).forEach((function(e){if("img"===e.tagName.toLowerCase()){var i=n.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;var r=n.currentImageContainer;setTimeout((function(){r.removeChild(e),n.player.debug.log("Removing thumb: ".concat(e.dataset.filename))}),i)}}}))})),tl(this,"preloadNearby",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var s=n.thumbnails[0].frames[t].text;if(n.showingThumbFilename===s){var r;r=e?n.thumbnails[0].frames.slice(t):n.thumbnails[0].frames.slice(0,t).reverse();var o=!1;r.forEach((function(t){var e=t.text;if(e!==s&&!n.loadedImages.includes(e)){o=!0,n.player.debug.log("Preloading thumb filename: ".concat(e));var r=n.thumbnails[0].urlPrefix+e,l=new Image;l.src=r,l.onload=function(){n.player.debug.log("Preloaded thumb filename: ".concat(e)),n.loadedImages.includes(e)||n.loadedImages.push(e),i()}}})),o||i()}}),300)}))})),tl(this,"getHigherQuality",(function(t,e,i,s){if(t<n.thumbnails.length-1){var r=e.naturalHeight;n.usingSprites&&(r=i.h),r<n.thumbContainerHeight&&setTimeout((function(){n.showingThumbFilename===s&&(n.player.debug.log("Showing higher quality thumb for: ".concat(s)),n.loadImage(t+1))}),300)}})),tl(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.player.config.classNames.previewThumbnails.thumbContainerShown;n.elements.thumb.container.classList.toggle(i,t),!t&&e&&(n.showingThumb=null,n.showingThumbFilename=null)})),tl(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=n.player.config.classNames.previewThumbnails.scrubbingContainerShown;n.elements.scrubbing.container.classList.toggle(e,t),t||(n.showingThumb=null,n.showingThumbFilename=null)})),tl(this,"determineContainerAutoSizing",(function(){(n.elements.thumb.imageContainer.clientHeight>20||n.elements.thumb.imageContainer.clientWidth>20)&&(n.sizeSpecifiedInCSS=!0)})),tl(this,"setThumbContainerSizeAndPos",(function(){if(n.sizeSpecifiedInCSS){if(n.elements.thumb.imageContainer.clientHeight>20&&n.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(n.elements.thumb.imageContainer.clientHeight*n.thumbAspectRatio);n.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(n.elements.thumb.imageContainer.clientHeight<20&&n.elements.thumb.imageContainer.clientWidth>20){var e=Math.floor(n.elements.thumb.imageContainer.clientWidth/n.thumbAspectRatio);n.elements.thumb.imageContainer.style.height="".concat(e,"px")}}else{var r=Math.floor(n.thumbContainerHeight*n.thumbAspectRatio);n.elements.thumb.imageContainer.style.height="".concat(n.thumbContainerHeight,"px"),n.elements.thumb.imageContainer.style.width="".concat(r,"px")}n.setThumbContainerPos()})),tl(this,"setThumbContainerPos",(function(){var t=n.player.elements.progress.getBoundingClientRect(),e=n.player.elements.container.getBoundingClientRect(),i=n.elements.thumb.container,s=e.left-t.left+10,r=e.right-t.left-i.clientWidth-10,o=n.mousePosX-t.left-i.clientWidth/2;o<s&&(o=s),o>r&&(o=r),i.style.left="".concat(o,"px")})),tl(this,"setScrubbingContainerSize",(function(){var t=Sf(n.thumbAspectRatio,{width:n.player.media.clientWidth,height:n.player.media.clientHeight}),e=t.width,r=t.height;n.elements.scrubbing.container.style.width="".concat(e,"px"),n.elements.scrubbing.container.style.height="".concat(r,"px")})),tl(this,"setImageSizeAndOffset",(function(t,e){if(n.usingSprites){var i=n.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(e.x*i,"px"),t.style.top="-".concat(e.y*i,"px")}})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return si(t,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Sf(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]),t}(),source={insertElements:function(t,e){var n=this;Bl(e)?oc(t,this.media,{src:e}):ql(e)&&e.forEach((function(e){oc(t,n.media,e)}))},change:function(t){var e=this;tc(t,"sources.length")?(Rc.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],ac(e.media),e.media=null,$l(e.elements.container)&&e.elements.container.removeAttribute("class");var n=t.sources,i=t.type,r=ui(n,1)[0],o=r.provider,s=void 0===o?of.html5:o,l=r.src,c="html5"===s?i:"div",a="html5"===s?{}:{src:l};Object.assign(e,{provider:s,type:i,supported:gc.check(i,s,e.config.playsinline),media:ic(c,a)}),e.elements.container.appendChild(e.media),Vl(t.autoplay)&&(e.config.autoplay=t.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),Kl(t.poster)||(e.poster=t.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),hf.addStyleHook.call(e),e.isHTML5&&source.insertElements.call(e,"source",n),e.config.title=t.title,wf.setup.call(e),e.isHTML5&&Object.keys(t).includes("tracks")&&source.insertElements.call(e,"track",t.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&hf.build.call(e),e.isHTML5&&e.media.load(),Kl(t.previewThumbnails)||(Object.assign(e.config.previewThumbnails,t.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new kf(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var Af=function(){function t(e,n){var r=this;if(oi(this,t),tl(this,"play",(function(){return zl(r.media.play)?(r.ads&&r.ads.enabled&&r.ads.managerPromise.then((function(){return r.ads.play()})).catch((function(){return Oc(r.media.play())})),r.media.play()):null})),tl(this,"pause",(function(){return r.playing&&zl(r.media.pause)?r.media.pause():null})),tl(this,"togglePlay",(function(t){return(Vl(t)?t:!r.playing)?r.play():r.pause()})),tl(this,"stop",(function(){r.isHTML5?(r.pause(),r.restart()):zl(r.media.stop)&&r.media.stop()})),tl(this,"restart",(function(){r.currentTime=0})),tl(this,"rewind",(function(t){r.currentTime-=Nl(t)?t:r.config.seekTime})),tl(this,"forward",(function(t){r.currentTime+=Nl(t)?t:r.config.seekTime})),tl(this,"increaseVolume",(function(t){var e=r.media.muted?0:r.volume;r.volume=e+(Nl(t)?t:0)})),tl(this,"decreaseVolume",(function(t){r.increaseVolume(-t)})),tl(this,"airplay",(function(){gc.airplay&&r.media.webkitShowPlaybackTargetPicker()})),tl(this,"toggleControls",(function(t){if(r.supported.ui&&!r.isAudio){var e=hc(r.elements.container,r.config.classNames.hideControls),n=void 0===t?void 0:!t,o=fc(r.elements.container,r.config.classNames.hideControls,n);if(o&&ql(r.config.controls)&&r.config.controls.includes("settings")&&!Kl(r.config.settings)&&Xc.toggleMenu.call(r,!1),o!==e){var l=o?"controlshidden":"controlsshown";Sc.call(r,r.media,l)}return!o}return!1})),tl(this,"on",(function(t,e){wc.call(r,r.elements.container,t,e)})),tl(this,"once",(function(t,e){Ec.call(r,r.elements.container,t,e)})),tl(this,"off",(function(t,e){xc(r.elements.container,t,e)})),tl(this,"destroy",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r.ready){var i=function(){document.body.style.overflow="",r.embed=null,e?(Object.keys(r.elements).length&&(ac(r.elements.buttons.play),ac(r.elements.captions),ac(r.elements.controls),ac(r.elements.wrapper),r.elements.buttons.play=null,r.elements.captions=null,r.elements.controls=null,r.elements.wrapper=null),zl(t)&&t()):(kc.call(r),Rc.cancelRequests.call(r),uc(r.elements.original,r.elements.container),Sc.call(r,r.elements.original,"destroyed",!0),zl(t)&&t.call(r.elements.original),r.ready=!1,setTimeout((function(){r.elements=null,r.media=null}),200))};r.stop(),clearTimeout(r.timers.loading),clearTimeout(r.timers.controls),clearTimeout(r.timers.resized),r.isHTML5?(hf.toggleNativeControls.call(r,!0),i()):r.isYouTube?(clearInterval(r.timers.buffering),clearInterval(r.timers.playing),null!==r.embed&&zl(r.embed.destroy)&&r.embed.destroy(),i()):r.isVimeo&&(null!==r.embed&&r.embed.unload().then(i),setTimeout(i,200))}})),tl(this,"supports",(function(t){return gc.mime.call(r,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=gc.touch,this.media=e,Bl(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Ul(this.media)||ql(this.media))&&(this.media=this.media[0]),this.config=ec({},ef,t.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(t){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new lf(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",gc),!Rl(this.media)&&$l(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(gc.check().api){var i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;var s=this.media.tagName.toLowerCase(),o=null,l=null;switch(s){case"div":if(o=this.media.querySelector("iframe"),$l(o)){if(l=Jc(o.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?of.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?of.vimeo:null}(l.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",l.search.length){var c=["1","true"];c.includes(l.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(l.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.includes(l.searchParams.get("playsinline")),this.config.youtube.hl=l.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Kl(this.provider)||!Object.values(of).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=sf;break;case"video":case"audio":this.type=s,this.provider=of.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=gc.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new pf(this),this.storage=new Gc(this),this.media.plyr=this,$l(this.elements.container)||(this.elements.container=ic("div",{tabindex:0}),nc(this.media,this.elements.container)),hf.migrateStyles.call(this),hf.addStyleHook.call(this),wf.setup.call(this),this.config.debug&&wc.call(this,this.elements.container,this.config.events.join(" "),(function(t){r.debug.log("event: ".concat(t.type))})),this.fullscreen=new cf(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&hf.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new xf(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Oc(r.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new kf(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return si(t,[{key:"isHTML5",get:function(){return this.provider===of.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===of.youtube}},{key:"isVimeo",get:function(){return this.provider===of.vimeo}},{key:"isVideo",get:function(){return this.type===sf}},{key:"isAudio",get:function(){return this.type===af}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(t){if(this.duration){var e=Nl(t)&&t>0;this.media.currentTime=e?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var t=this.media.buffered;return Nl(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var t=parseFloat(this.config.duration),e=(this.media||{}).duration,i=Nl(e)&&e!==1/0?e:0;return t||i}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var e=t;Bl(e)&&(e=Number(e)),Nl(e)||(e=this.storage.get("volume")),Nl(e)||(e=this.config.volume),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!Kl(t)&&this.muted&&e>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var e=t;Vl(e)||(e=this.storage.get("muted")),Vl(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(t){var e=this,n=null;Nl(t)&&(n=t),Nl(n)||(n=this.storage.get("speed")),Nl(n)||(n=this.config.speed.selected);var i=this.minimumSpeed,s=this.maximumSpeed;n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(t,e),i)}(n,i,s),this.config.speed.selected=n,setTimeout((function(){e.media.playbackRate=n}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,ii(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,ii(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var e=this.config.quality,i=this.options.quality;if(i.length){var s=[!Kl(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(Nl),n=!0;if(!i.includes(s)){var r=Cc(i,s);this.debug.warn("Unsupported quality option: ".concat(s,", using ").concat(r," instead")),s=r,n=!1}e.selected=s,this.media.quality=s,n&&this.storage.set({quality:s})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var e=Vl(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){source.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return Yl(t)?t:this.source},set:function(t){Yl(t)&&(this.config.urls.download=t,Xc.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(t){this.isVideo?hf.setPoster.call(this,t,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=Mc(jc.call(this));return ql(t)?t.join(":"):t},set:function(t){this.isVideo?Bl(t)&&Ic(t)?(this.config.ratio=Mc(t),Dc.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(t){var e=Vl(t)?t:this.config.autoplay;this.config.autoplay=e}},{key:"toggleCaptions",value:function(t){tf.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions,e=t.toggled,n=t.currentTrack;return e?n:-1},set:function(t){tf.set.call(this,t,!1)}},{key:"language",get:function(){return(tf.getCurrentTrack.call(this)||{}).language},set:function(t){tf.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return gc.pip?Kl(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===nf:null},set:function(t){if(gc.pip){var e=Vl(t)?t:!this.pip;zl(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?nf:rf),zl(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,e,i){return gc.check(t,e,i)}},{key:"loadSprite",value:function(t,e){return Wc(t,e)}},{key:"setup",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return Bl(e)?i=Array.from(document.querySelectorAll(e)):Ul(e)?i=Array.from(e):ql(e)&&(i=e.filter($l)),Kl(i)?null:i.map((function(e){return new t(e,n)}))}}]),t}();Af.defaults=function(t){return JSON.parse(JSON.stringify(t))}(ef);var script={name:"VuePlyr",props:{options:{type:Object,required:!1,default:()=>({})}},data:()=>({player:{}}),computed:{opts(){const t=this.options;return Object.prototype.hasOwnProperty.call(this.options,"hideYouTubeDOMError")||(t.hideYouTubeDOMError=!0),t}},mounted(){this.player=new Af(this.$el,this.opts)},beforeUnmount(){try{this.player.destroy()}catch(t){this.opts.hideYouTubeDOMError&&"The YouTube player is not attached to the DOM."===t.message||console.error(t)}},render(){const t=this.$slots.default;return"function"==typeof t?t()[0]:t},install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.plyr&&(script.props.options.default=function(){return Sn({},e.plyr)}),t.component(script.name,script)}};e.default=script}).call(this,n(36))},,function(t,e,n){"use strict";var r=n(3),o=n(13),l=(n(24),n(33),n(61),n(73),n(126),n(26),n(70),n(52),n(22),n(21),n(50),n(6),n(15),{name:"CookieControl",props:{locale:{default:"en"}},data:function(){return{saved:!0,colorsSet:!1,cookies:this.$cookies,variables:{}}},computed:{expirationDate:function(){var t=new Date;return t.setFullYear(t.getFullYear()+1),t.toUTCString()},optionalCookies:function(){return this.cookies.optional}},methods:{toogleCookie:function(t){var e=t.identifier||this.cookies.slugify(this.getCookieFirstName(t.name));this.saved&&(this.saved=!1),this.cookies.enabledList.includes(e)?this.cookies.enabledList.splice(this.cookies.enabledList.indexOf(e),1):this.cookies.enabledList.push(e)},setConsent:function(t){var e=this,n=t.type,r=t.consent,l=void 0===r||r,c=t.reload,f=void 0===c||c;this.cookies.set({name:"cookie_control_consent",value:l,expires:this.expirationDate});var h="partial"===n&&l?this.cookies.enabledList:Object(o.a)(this.optionalCookies.map((function(t){return t.identifier||e.cookies.slugify(e.getCookieFirstName(t.name))})));this.cookies.set({name:"cookie_control_enabled_cookies",value:l?h.join(","):"",expires:this.expirationDate}),f?window.location.reload(!0):(this.cookies.setConsent(),this.$cookies.modal=!1)},getDescription:function(t){return"string"==typeof t?" ".concat(!1!==this.cookies.dashInDescription?"-":""," ").concat(t):t[this.locale]?" ".concat(!1!==this.cookies.dashInDescription?"-":""," ").concat(t[this.locale]):""},getName:function(t){return"functional"===t?this.cookies.text.functional:"string"==typeof t?t:t[this.locale]?t[this.locale]:t[Object.keys(t)[0]]},getCookieFirstName:function(t){return"string"==typeof t?t:t[Object.keys(t)[0]]},setTexts:function(){var t=arguments,e=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,text,l,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=t.length>0&&void 0!==t[0]&&t[0],text=null;try{l=n(603)("./".concat(e.locale)),text=l.default}catch(t){c=n(241),text=c.default,console.error("There are no texts for your locale: ".concat(e.locale,". Using English version"))}e.cookies.text&&Object.keys(e.cookies.text).length>0&&(e.cookies.text.locale&&Object.assign(text,e.cookies.text.locale[e.locale]),o||Object.assign(text,e.cookies.text)),e.$set(e.$cookies,"text",text);case 5:case"end":return r.stop()}}),r)})))()}},beforeMount:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setTexts();case 2:if(t.cookies.colors){for(n in n=null,r={},t.cookies.colors)o=n.toLowerCase().includes("unactive")?n.replace(/Unactive/g,"Inactive"):n,r["--cookie-control-".concat(o)]="".concat(t.cookies.colors[n]);t.variables=r}t.cookies.get("cookie_control_consent")&&0===t.cookies.get("cookie_control_consent").length&&t.optionalCookies.forEach((function(e){!0===e.initialState&&t.cookies.enabledList.push(e.identifier||t.cookies.slugify(t.getCookieFirstName(e.name)))})),t.colorsSet=!0;case 5:case"end":return e.stop()}}),e)})))()},watch:{locale:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setTexts(!0);case 2:case"end":return e.stop()}}),e)})))()}}}),c=l,f=n(0),component=Object(f.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("client-only",[t.cookies.text?n("section",{staticClass:"cookieControl",style:t.variables},[n("transition",{attrs:{name:"cookieControl__Bar--"+t.cookies.barPosition}},[t.colorsSet&&!t.cookies.consent?n("div",{class:"cookieControl__Bar cookieControl__Bar--"+t.cookies.barPosition},[n("div",{staticClass:"cookieControl__BarContainer"},[n("div",[t._t("bar",(function(){return[n("h3",{domProps:{textContent:t._s(t.cookies.text.barTitle)}}),t._v(" "),n("p",{domProps:{textContent:t._s(t.cookies.text.barDescription)}})]}))],2),t._v(" "),n("div",{staticClass:"cookieControl__BarButtons"},[n("button",{domProps:{textContent:t._s(t.cookies.text.manageCookies)},on:{click:function(e){t.cookies.modal=!0}}}),t._v(" "),n("button",{domProps:{textContent:t._s(t.cookies.text.acceptAll)},on:{click:function(e){return t.setConsent({reload:!1})}}})])])]):t._e()]),t._v(" "),t.cookies.controlButton&&t.colorsSet&&t.cookies.consent?n("button",{staticClass:"cookieControl__ControlButton",attrs:{"aria-label":"Cookie control"},on:{click:function(e){t.cookies.modal=!0}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 00-57.79 57.81l-35.1 68.88a132.645 132.645 0 00-12.82 80.95l12.08 76.27a132.521 132.521 0 0037.16 72.96l54.77 54.76a132.036 132.036 0 0072.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0057.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"}})])]):t._e(),t._v(" "),n("transition",{attrs:{name:"cookieControl__Modal"}},[t.cookies.modal?n("div",{staticClass:"cookieControl__Modal"},[t.saved?t._e():n("p",{staticClass:"cookieControl__ModalUnsaved",domProps:{textContent:t._s(t.cookies.text.unsaved)}}),t._v(" "),n("div",{staticClass:"cookieControl__ModalContent"},[n("div",[t._t("modal"),t._v(" "),n("button",{staticClass:"cookieControl__ModalClose",domProps:{textContent:t._s(t.cookies.text.close)},on:{click:function(e){t.cookies.modal=!1}}}),t._v(" "),t._l(["necessary","optional"],(function(e){return[n("h3",{key:e.id,domProps:{textContent:t._s(t.cookies.text[e])}}),t._v(" "),n("ul",{key:e.id},t._l(t.cookies[e],(function(r){return n("li",{key:r.id},[n("div",{staticClass:"cookieControl__ModalInputWrapper"},["necessary"===e&&"functional"!==r.name?n("input",{attrs:{id:t.getCookieFirstName(r.name),type:"checkbox",disabled:"",checked:""}}):n("input",{attrs:{id:t.getCookieFirstName(r.name),type:"checkbox"},domProps:{checked:t.cookies.enabledList.includes(r.identifier||t.cookies.slugify(t.getCookieFirstName(r.name)))||0===t.cookies.get("cookie_control_consent").length&&!0===r.initialState},on:{change:function(e){return t.toogleCookie(r)}}}),t._v(" "),n("label",{attrs:{for:t.getCookieFirstName(r.name)},domProps:{innerHTML:t._s(t.getName(r.name))}}),t._v(" "),n("span",{staticClass:"cookieControl__ModalCookieName"},[t._v("\n                      "+t._s(t.getName(r.name))+"\n                      "),r.description?n("span",{domProps:{innerHTML:t._s(t.getDescription(r.description))}}):t._e()])]),t._v(" "),r.cookies?[t._t("cookie",(function(){return[n("ul",t._l(r.cookies,(function(e){return n("li",{key:e.id,domProps:{innerHTML:t._s(e)}})})),0)]}),null,{config:r})]:t._e()],2)})),0)]})),t._v(" "),n("div",{staticClass:"cookieControl__ModalButtons"},[n("button",{domProps:{textContent:t._s(t.cookies.text.save)},on:{click:function(e){return t.setConsent({type:"partial"})}}}),t._v(" "),t.cookies.enabledList.length<t.optionalCookies.length?n("button",{domProps:{textContent:t._s(t.cookies.text.acceptAll)},on:{click:t.setConsent}}):t._e(),t._v(" "),t.cookies.enabledList.length>=t.optionalCookies.length?n("button",{domProps:{textContent:t._s(t.cookies.text.declineAll)},on:{click:function(e){return t.setConsent({consent:!1})}}}):t._e()])],2)])]):t._e()])],1):t._e()])}),[],!1,null,null,null);e.a=component.exports},function(t,e,n){"use strict";n(19),n(6),n(33);var r={name:"CookieIframe",data:function(){return{cookies:this.$cookies}},computed:{iframeEnabled:function(){return this.cookies.enabled.filter((function(t){return"functional"===t.name})).length>0},iframeText:function(){return this.cookies&&this.cookies.text?this.cookies.text.blockedIframe:""}}},o=n(0),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("client-only",[t.iframeEnabled?n("iframe"):n("div",{staticClass:"cookieControl__BlockedIframe"},[n("p",[t._v("\n      "+t._s(t.iframeText)+"\n      "),t.cookies&&t.cookies.text?n("a",{attrs:{href:"#"},domProps:{textContent:t._s(t.cookies.text.here)},on:{click:function(e){e.preventDefault(),t.cookies.modal=!0}}}):t._e()])])])}),[],!1,null,null,null);e.a=component.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(66);var r=n(397),o=n.n(r),l={props:{options:{type:Object,required:!0},height:Number,width:Number},data:function(){return{style:{width:this.width?"".concat(this.width,"px"):"100%",height:this.height?"".concat(this.height,"px"):"100%",overflow:"hidden",margin:"0 auto"}}},mounted:function(){this.anim=o.a.loadAnimation({container:this.$refs.lavContainer,renderer:"svg",loop:!1!==this.options.loop,autoplay:!1!==this.options.autoplay,animationData:this.options.animationData,rendererSettings:this.options.rendererSettings}),this.$emit("animCreated",this.anim)}},c=n(0),component=Object(c.a)(l,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"lavContainer",style:t.style})}),[],!1,null,null,null);e.a=component.exports},function(t,e,n){"use strict";var r=n(134);function o(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)},c=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?r.parse(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,t))},t.prototype._emitChange=function(t){for(var i=0;i<this.changeListeners.length;++i)this.changeListeners[i](t)},t.prototype.get=function(t,e,n){return void 0===e&&(e={}),this._updateBrowserValues(n),o(this.cookies[t],e)},t.prototype.getAll=function(t,e){void 0===t&&(t={}),this._updateBrowserValues(e);var n={};for(var r in this.cookies)n[r]=o(this.cookies[r],t);return n},t.prototype.set=function(t,e,n){var o;"object"==typeof e&&(e=JSON.stringify(e)),this.cookies=l(l({},this.cookies),((o={})[t]=e,o)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(t,e,n)),this._emitChange({name:t,value:e,options:n})},t.prototype.remove=function(t,e){var n=e=l(l({},e),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=l({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:e})},t.prototype.addChangeListener=function(t){this.changeListeners.push(t)},t.prototype.removeChangeListener=function(t){var e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1)},t}();e.a=c},function(t,e,n){"use strict";function r(t){return!0==(null!=(e=t)&&"object"==typeof e&&!1===Array.isArray(e))&&"[object Object]"===Object.prototype.toString.call(t);var e}var o=function(t){var e,n;return!1!==r(t)&&("function"==typeof(e=t.constructor)&&(!1!==r(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))};function l(t){return"string"==typeof t?t[0].toUpperCase()+t.substr(1):t}var c={accepted:function(t){return"Please accept the "+t.name+"."},after:function(t){var e=t.name,a=t.args;return Array.isArray(a)&&a.length?l(e)+" must be after "+a[0]+".":l(e)+" must be a later date."},alpha:function(t){return l(t.name)+" can only contain alphabetical characters."},alphanumeric:function(t){return l(t.name)+" can only contain letters and numbers."},before:function(t){var e=t.name,a=t.args;return Array.isArray(a)&&a.length?l(e)+" must be before "+a[0]+".":l(e)+" must be an earlier date."},between:function(t){var e=t.name,a=t.value,n=t.args,i=!(!Array.isArray(n)||!n[2])&&n[2];return!isNaN(a)&&"length"!==i||"value"===i?l(e)+" must be between "+n[0]+" and "+n[1]+".":l(e)+" must be between "+n[0]+" and "+n[1]+" characters long."},confirm:function(t){var e=t.name;return t.args,l(e)+" does not match."},date:function(t){var e=t.name,a=t.args;return Array.isArray(a)&&a.length?l(e)+" is not a valid date, please use the format "+a[0]:l(e)+" is not a valid date."},default:function(t){return t.name,"This field isn’t valid."},email:function(t){t.name;var e=t.value;return e?"“"+e+"” is not a valid email address.":"Please enter a valid email address."},endsWith:function(t){t.name;var e=t.value;return e?"“"+e+"” doesn’t end with a valid value.":"This field doesn’t end with a valid value."},in:function(t){var e=t.name,a=t.value;return"string"==typeof a&&a?"“"+l(a)+"” is not an allowed "+e+".":"This is not an allowed "+e+"."},matches:function(t){return l(t.name)+" is not an allowed value."},max:function(t){var e=t.name,a=t.value,n=t.args;if(Array.isArray(a))return"You may only select "+n[0]+" "+e+".";var i=!(!Array.isArray(n)||!n[1])&&n[1];return!isNaN(a)&&"length"!==i||"value"===i?l(e)+" must be less than or equal to "+n[0]+".":l(e)+" must be less than or equal to "+n[0]+" characters long."},mime:function(t){var e=t.name,a=t.args;return l(e)+" must be of the type: "+(a[0]||"No file formats allowed.")},min:function(t){var e=t.name,a=t.value,n=t.args;if(Array.isArray(a))return"You need at least "+n[0]+" "+e+".";var i=!(!Array.isArray(n)||!n[1])&&n[1];return!isNaN(a)&&"length"!==i||"value"===i?l(e)+" must be at least "+n[0]+".":l(e)+" must be at least "+n[0]+" characters long."},not:function(t){var e=t.name;return"“"+t.value+"” is not an allowed "+e+"."},number:function(t){return l(t.name)+" must be a number."},required:function(t){return l(t.name)+" is required."},startsWith:function(t){t.name;var e=t.value;return e?"“"+e+"” doesn’t start with a valid value.":"This field doesn’t start with a valid value."},url:function(t){return t.name,"Please include a valid url."}};function f(t){var e;t.extend({locales:(e={},e.en=c,e)})}var h=function(t,e){return{classification:t,component:"FormulateInput"+(e||t[0].toUpperCase()+t.substr(1))}},d=Object.assign({},["text","email","number","color","date","hidden","month","password","search","tel","time","url","week","datetime-local"].reduce((function(t,e){var n;return Object.assign({},t,((n={})[e]=h("text"),n))}),{}),{range:h("slider"),textarea:h("textarea","TextArea"),checkbox:h("box"),radio:h("box"),submit:h("button"),button:h("button"),select:h("select"),file:h("file"),image:h("file"),group:h("group")});function m(t,e){var n={};for(var r in t)n[r]=e(r,t[r]);return n}function v(t,e,n){if(void 0===n&&(n=!1),t===e)return!0;if(!t||!e)return!1;if("object"!=typeof t&&"object"!=typeof e)return t===e;var r=Object.keys(t),i=Object.keys(e),s=r.length;if(i.length!==s)return!1;for(var a=0;a<s;a++){var o=r[a];if(!n&&t[o]!==e[o]||n&&!v(t[o],e[o],n))return!1}return!0}function y(t){return"string"==typeof t?t.replace(/([_-][a-z0-9])/gi,(function(e){return 0===t.indexOf(e)||/[_-]/.test(t[t.indexOf(e)-1])?e:e.toUpperCase().replace(/[_-]/,"")})):t}function _(t){return"string"==typeof t?t[0].toUpperCase()+t.substr(1):t}function w(t){return t?"string"==typeof t?[t]:Array.isArray(t)?t:"object"==typeof t?Object.values(t):[]:[]}function x(t,e){return"string"==typeof t?x(t.split("|"),e):Array.isArray(t)?t.map((function(t){return function(t,e){if("function"==typeof t)return[t,[]];if(Array.isArray(t)&&t.length){var n=E((t=t.map((function(t){return t}))).shift()),r=n[0],i=n[1];if("string"==typeof r&&e.hasOwnProperty(r))return[e[r],t,r,i];if("function"==typeof r)return[r,t,r,i]}if("string"==typeof t&&t){var o=t.split(":"),s=E(o.shift()),a=s[0],l=s[1];if(e.hasOwnProperty(a))return[e[a],o.length?o.join(":").split(","):[],a,l];throw new Error("Unknown validation rule "+t)}return!1}(t,e)})).filter((function(t){return!!t})):[]}function E(t){return/^[\^]/.test(t.charAt(0))?[y(t.substr(1)),t.charAt(0)]:[y(t),null]}function S(t){switch(typeof t){case"symbol":case"number":case"string":case"boolean":case"undefined":return!0;default:return null===t}}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function A(t,e){return!k(t,"__id")||e?Object.defineProperty(t,"__id",Object.assign(Object.create(null),{value:e||C(9)})):t}function O(t){return"number"!=typeof t&&(void 0===t||""===t||null===t||!1===t||Array.isArray(t)&&!t.some((function(t){return!O(t)}))||t&&!Array.isArray(t)&&"object"==typeof t&&O(Object.values(t)))}function T(t,e){return Object.keys(t).reduce((function(n,r){var i=y(r);return e.includes(i)&&(n[i]=t[r]),n}),{})}function C(t){return void 0===t&&(t=13),Math.random().toString(36).substring(2,t+2)}var P=/^(?:\w+:)?\/\/(\S+)$/,I=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,M=/^[^\s.]+\.\S{2,}$/,j=function(t,e,n){void 0===n&&(n={}),this.input=t,this.fileList=t.files,this.files=[],this.options=Object.assign({},{mimes:{}},n),this.results=!1,this.context=e,this.dataTransferCheck(),e&&e.uploadUrl&&(this.options.uploadUrl=e.uploadUrl),this.uploadPromise=null,Array.isArray(this.fileList)?this.rehydrateFileList(this.fileList):this.addFileList(this.fileList)};j.prototype.rehydrateFileList=function(t){var e=this,n=t.reduce((function(t,n){var r=n[e.options?e.options.fileUrlKey:"url"],i=!(!r||-1===r.lastIndexOf("."))&&r.substr(r.lastIndexOf(".")+1),o=e.options.mimes[i]||!1;return t.push(Object.assign({},n,r?{name:n.name||r.substr(r.lastIndexOf("/")+1||0),type:n.type?n.type:o,previewData:r}:{})),t}),[]);this.addFileList(n),this.results=this.mapUUID(t)},j.prototype.addFileList=function(t){for(var e=this,n=function(n){var r=t[n],i=C();e.files.push({progress:!1,error:!1,complete:!1,justFinished:!1,name:r.name||"file-upload",file:r,uuid:i,path:!1,removeFile:function(){this.removeFile(i)}.bind(e),previewData:r.previewData||!1})},r=0;r<t.length;r++)n(r)},j.prototype.hasUploader=function(){return!!this.context.uploader},j.prototype.uploaderIsAxios=function(){return!(!this.hasUploader()||"function"!=typeof this.context.uploader.request||"function"!=typeof this.context.uploader.get||"function"!=typeof this.context.uploader.delete||"function"!=typeof this.context.uploader.post)},j.prototype.getUploader=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];if(this.uploaderIsAxios()){var r=new FormData;if(r.append(this.context.name||"file",e[0]),!1===this.context.uploadUrl)throw new Error("No uploadURL specified: https://vueformulate.com/guide/inputs/file/#props");return this.context.uploader.post(this.context.uploadUrl,r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){e[1](Math.round(100*t.loaded/t.total))}}).then((function(t){return t.data})).catch((function(t){return e[2](t)}))}return(t=this.context).uploader.apply(t,e)},j.prototype.upload=function(){var t=this;return this.uploadPromise=this.uploadPromise?this.uploadPromise.then((function(){return t.__performUpload()})):this.__performUpload(),this.uploadPromise},j.prototype.__performUpload=function(){var t=this;return new Promise((function(e,n){if(!t.hasUploader())return n(new Error("No uploader has been defined"));Promise.all(t.files.map((function(e){return e.error=!1,e.complete=!!e.path,e.path?Promise.resolve(e.path):t.getUploader(e.file,(function(n){e.progress=n,t.context.rootEmit("file-upload-progress",n),n>=100&&(e.complete||(e.justFinished=!0,setTimeout((function(){e.justFinished=!1}),t.options.uploadJustCompleteDuration)),e.complete=!0,t.context.rootEmit("file-upload-complete",e))}),(function(r){e.progress=0,e.error=r,e.complete=!0,t.context.rootEmit("file-upload-error",r),n(r)}),t.options)}))).then((function(n){t.results=t.mapUUID(n),e(n)})).catch((function(t){throw new Error(t)}))}))},j.prototype.removeFile=function(t){var e=this.files.length;if(this.files=this.files.filter((function(e){return e&&e.uuid!==t})),Array.isArray(this.results)&&(this.results=this.results.filter((function(e){return e&&e.__id!==t}))),this.context.performValidation(),window&&this.fileList instanceof FileList&&this.supportsDataTransfers){var n=new DataTransfer;this.files.forEach((function(t){return n.items.add(t.file)})),this.fileList=n.files,this.input.files=this.fileList}else this.fileList=this.fileList.filter((function(e){return e&&e.__id!==t}));e>this.files.length&&this.context.rootEmit("file-removed",this.files)},j.prototype.mergeFileList=function(t){if(this.addFileList(t.files),this.supportsDataTransfers){var e=new DataTransfer;this.files.forEach((function(t){t.file instanceof File&&e.items.add(t.file)})),this.fileList=e.files,this.input.files=this.fileList,t.files=(new DataTransfer).files}this.context.performValidation(),this.loadPreviews(),"delayed"!==this.context.uploadBehavior&&this.upload()},j.prototype.loadPreviews=function(){this.files.map((function(t){if(!t.previewData&&window&&window.FileReader&&/^image\//.test(t.file.type)){var e=new FileReader;e.onload=function(e){return Object.assign(t,{previewData:e.target.result})},e.readAsDataURL(t.file)}}))},j.prototype.dataTransferCheck=function(){try{new DataTransfer,this.supportsDataTransfers=!0}catch(t){this.supportsDataTransfers=!1}},j.prototype.getFiles=function(){return this.files},j.prototype.mapUUID=function(t){var e=this;return t.map((function(t,n){return e.files[n].path=void 0!==t&&t,t&&A(t,e.files[n].uuid)}))},j.prototype.toString=function(){var t=this.files.length?this.files.length+" files":"empty";return this.results?JSON.stringify(this.results,null,"  "):"FileUpload("+t+")"};var D,F={accepted:function(t){var e=t.value;return Promise.resolve(["yes","on","1",1,!0,"true"].includes(e))},after:function(t,e){var n=t.value;void 0===e&&(e=!1);var r=Date.parse(e||new Date),i=Date.parse(n);return Promise.resolve(!isNaN(i)&&i>r)},alpha:function(t,e){var n=t.value;void 0===e&&(e="default");var r={default:/^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćĘęŁłŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z]+$/},i=r.hasOwnProperty(e)?e:"default";return Promise.resolve(r[i].test(n))},alphanumeric:function(t,e){var n=t.value;void 0===e&&(e="default");var r={default:/^[a-zA-Z0-9À-ÖØ-öø-ÿĄąĆćĘęŁłŃńŚśŹźŻż]+$/,latin:/^[a-zA-Z0-9]+$/},i=r.hasOwnProperty(e)?e:"default";return Promise.resolve(r[i].test(n))},before:function(t,e){var n=t.value;void 0===e&&(e=!1);var r=Date.parse(e||new Date),i=Date.parse(n);return Promise.resolve(!isNaN(i)&&i<r)},between:function(t,e,n,r){var i=t.value;return void 0===e&&(e=0),void 0===n&&(n=10),Promise.resolve(null!==e&&null!==n&&!isNaN(e)&&!isNaN(n)&&(!isNaN(i)&&"length"!==r||"value"===r?(i=Number(i),e=Number(e),n=Number(n),i>e&&i<n):("string"==typeof i||"length"===r)&&(i=isNaN(i)?i:i.toString()).length>e&&i.length<n))},confirm:function(t,e){var n,r,i=t.value,o=t.getGroupValues,s=t.name;return Promise.resolve((n=o(),(r=e)||(r=/_confirm$/.test(s)?s.substr(0,s.length-8):s+"_confirm"),n[r]===i))},date:function(t,e){var n=t.value;return void 0===e&&(e=!1),Promise.resolve(e&&"string"==typeof e?function(t){var e="^"+t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"$",n={MM:"(0[1-9]|1[012])",M:"([1-9]|1[012])",DD:"([012][0-9]|3[01])",D:"([012]?[0-9]|3[01])",YYYY:"\\d{4}",YY:"\\d{2}"};return new RegExp(Object.keys(n).reduce((function(t,e){return t.replace(e,n[e])}),e))}(e).test(n):!isNaN(Date.parse(n)))},email:function(t){var e=t.value;return Promise.resolve(/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(e))},endsWith:function(t){for(var e=t.value,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return Promise.resolve("string"==typeof e&&n.length?void 0!==n.find((function(t){return e.endsWith(t)})):"string"==typeof e&&0===n.length)},in:function(t){for(var e=t.value,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return Promise.resolve(void 0!==n.find((function(t){return"object"==typeof t?v(t,e):t===e})))},matches:function(t){for(var e=t.value,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return Promise.resolve(!!n.find((function(t){return"string"==typeof t&&"/"===t.substr(0,1)&&"/"===t.substr(-1)&&(t=new RegExp(t.substr(1,t.length-2))),t instanceof RegExp?t.test(e):t===e})))},mime:function(t){for(var e=t.value,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return Promise.resolve(function(){if(e instanceof j)for(var t=e.getFiles(),r=0;r<t.length;r++){var i=t[r].file;if(!n.includes(i.type))return!1}return!0}())},min:function(t,e,n){var r=t.value;return void 0===e&&(e=1),Promise.resolve(Array.isArray(r)?(e=isNaN(e)?e:Number(e),r.length>=e):!isNaN(r)&&"length"!==n||"value"===n?(r=isNaN(r)?r:Number(r))>=e:("string"==typeof r||"length"===n)&&(r=isNaN(r)?r:r.toString()).length>=e)},max:function(t,e,n){var r=t.value;return void 0===e&&(e=10),Promise.resolve(Array.isArray(r)?(e=isNaN(e)?e:Number(e),r.length<=e):!isNaN(r)&&"length"!==n||"value"===n?(r=isNaN(r)?r:Number(r))<=e:("string"==typeof r||"length"===n)&&(r=isNaN(r)?r:r.toString()).length<=e)},not:function(t){for(var e=t.value,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return Promise.resolve(void 0===n.find((function(t){return"object"==typeof t?v(t,e):t===e})))},number:function(t){var e=t.value;return Promise.resolve(!isNaN(e))},required:function(t,e){var n=t.value;return void 0===e&&(e="pre"),Promise.resolve(Array.isArray(n)?!!n.length:n instanceof j?n.getFiles().length>0:"string"==typeof n?"trim"===e?!!n.trim():!!n:"object"!=typeof n||!!n&&!!Object.keys(n).length)},startsWith:function(t){for(var e=t.value,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return Promise.resolve("string"==typeof e&&n.length?void 0!==n.find((function(t){return e.startsWith(t)})):"string"==typeof e&&0===n.length)},url:function(t){var e=t.value;return Promise.resolve(function(t){if("string"!=typeof t)return!1;var e=t.match(P);if(!e)return!1;var n=e[1];return!(!n||!I.test(n)&&!M.test(n))}(e))},bail:function(){return Promise.resolve(!0)},optional:function(t){var e=t.value;return Promise.resolve(!O(e))}},R={csv:"text/csv",gif:"image/gif",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",pdf:"application/pdf",svg:"image/svg+xml"},L=["outer","wrapper","label","element","input","help","errors","error","decorator","rangeValue","uploadArea","uploadAreaMask","files","file","fileName","fileAdd","fileAddInput","fileRemove","fileProgress","fileUploadError","fileImagePreview","fileImagePreviewImage","fileProgressInner","grouping","groupRepeatable","groupRepeatableRemove","groupAddMore","form","formErrors","formError"],N={hasErrors:function(t){return t.hasErrors},hasValue:function(t){return t.hasValue},isValid:function(t){return t.isValid}},B=(D=[""].concat(Object.keys(N).map((function(t){return _(t)}))),L.reduce((function(t,e){return t.concat(D.reduce((function(t,n){return t.push(""+e+n+"Class"),t}),[]))}),[]));function V(t,e,n){switch(typeof e){case"string":return e;case"function":return e(n,w(t));case"object":if(Array.isArray(e))return w(t).concat(e);default:return t}}function z(t){return L.reduce((function(e,n){var r;return Object.assign(e,((r={})[n]=function(t,e){var n=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),r="formulate"+(["form","file"].includes(n.substr(0,4))?"":"-input")+(["decorator","range-value"].includes(n)?"-element":"")+("outer"!==n?"-"+n:"");return"input"===n?[]:[r].concat(function(t,e,n){var r=[];switch(e){case"label":r.push(t+"--"+n.labelPosition);break;case"element":var i="group"===n.classification?"group":n.type;r.push(t+"--"+i),"group"===i&&r.push("formulate-input-group");break;case"help":r.push(t+"--"+n.helpPosition);break;case"form":n.name&&r.push(t+"--"+n.name)}return r}(r,t,e))}(n,t),r))}),{})}function U(t,e,n,r){return new Promise((function(n,i){var o=(r.fauxUploaderDuration||1500)*(.5+Math.random()),s=performance.now(),a=function(){return setTimeout((function(){var r=performance.now()-s,i=Math.min(100,Math.round(r/o*100));if(e(i),i>=100)return n({url:"http://via.placeholder.com/350x150.png",name:t.name});a()}),20)};a()}))}function $(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}var G={inheritAttrs:!1,functional:!0,render:function(t,e){for(var n=e.props,r=e.data,i=e.parent,o=e.children,s=i,a=(n.name,n.forceWrap),l=n.context,u=$(n,["name","forceWrap","context"]);s&&"FormulateInput"!==s.$options.name;)s=s.$parent;if(!s)return null;if(s.$scopedSlots&&s.$scopedSlots[n.name])return s.$scopedSlots[n.name](Object.assign({},l,u));if(Array.isArray(o)&&(o.length>1||a&&o.length>0)){var c=r.attrs,f=(c.name,c.context,$(c,["name","context"]));return t("div",Object.assign({},r,{attrs:f}),o)}return Array.isArray(o)&&1===o.length?o[0]:null}};var H={functional:!0,render:function(t,e){var n=e.props,r=e.listeners;return function t(e,n,r){return Array.isArray(n)?n.map((function(n,i){var o=function(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n={}),t&&"object"==typeof t&&!Array.isArray(t)){var r=t.children;void 0===r&&(r=null);var i=t.component;void 0===i&&(i="FormulateInput");var o=t.depth;void 0===o&&(o=1);var s=t.key;void 0===s&&(s=null);var a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}(t,["children","component","depth","key"]),l=a.class||{};delete a.class;var u={},c=Object.keys(a).reduce((function(t,e){var n;return/^@/.test(e)?Object.assign(t,((n={})[e.substr(1)]=a[e],n)):t}),{});Object.keys(c).forEach((function(t){delete a["@"+t],u[t]=function(t,e,n){return function(){for(var r,i,o=[],s=arguments.length;s--;)o[s]=arguments[s];return"function"==typeof e?e.call.apply(e,[this].concat(o)):"string"==typeof e&&k(n,e)?(r=n[e]).call.apply(r,[this].concat(o)):k(n,t)?(i=n[t]).call.apply(i,[this].concat(o)):void 0}}(t,c[t],n)}));var f="FormulateInput"===i?a.type||"text":i,h=a.name||f||"el";s||(s=a.id?a.id:"FormulateInput"!==i&&"string"==typeof r?f+"-"+function(t,e){void 0===e&&(e=0);for(var n=3735928559^e,r=1103547991^e,i=0,o=void 0;i<t.length;i++)o=t.charCodeAt(i),n=Math.imul(n^o,2654435761),r=Math.imul(r^o,1597334677);return n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&(r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909)))+(n>>>0)}(r):f+"-"+h+"-"+o+(a.name?"":"-"+e));var d=Array.isArray(r)?r.map((function(t){return Object.assign(t,{depth:o+1})})):r;return Object.assign({key:s,depth:o,attrs:a,component:i,class:l,on:u},d?{children:d}:{})}return null}(n,i,r);return e(o.component,{attrs:o.attrs,class:o.class,key:o.key,on:o.on},o.children?t(e,o.children,r):null)})):n}(t,n.schema,r)}};function W(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}var Q=function(t){this.registry=new Map,this.errors={},this.ctx=t};function Y(t){return new Q(t).dataProps()}function K(t){return{hasInitialValue:function(){return this.formulateValue&&"object"==typeof this.formulateValue||this.values&&"object"==typeof this.values||this.isGrouping&&"object"==typeof this.context.model[this.index]},isVmodeled:function(){return!!(this.$options.propsData.hasOwnProperty("formulateValue")&&this._events&&Array.isArray(this._events.input)&&this._events.input.length)},initialValues:function(){return k(this.$options.propsData,"formulateValue")&&"object"==typeof this.formulateValue?Object.assign({},this.formulateValue):k(this.$options.propsData,"values")&&"object"==typeof this.values?Object.assign({},this.values):this.isGrouping&&"object"==typeof this.context.model[this.index]?this.context.model[this.index]:{}},mergedGroupErrors:function(){var t=this,e=/^([^.\d+].*?)\.(\d+\..+)$/;return Object.keys(this.mergedFieldErrors).filter((function(t){return e.test(t)})).reduce((function(n,r){var i,o=r.match(e),s=o[1],a=o[2];return n[s]||(n[s]={}),Object.assign(n[s],((i={})[a]=t.mergedFieldErrors[r],i)),n}),{})}}}function X(t){void 0===t&&(t=[]);var e={applyInitialValues:function(){this.hasInitialValue&&(this.proxy=Object.assign({},this.initialValues))},setFieldValue:function(t,e){var n;if(void 0===e){var r=this.proxy,i=(r[t],W(r,[String(t)]));this.proxy=i}else Object.assign(this.proxy,((n={})[t]=e,n));this.$emit("input",Object.assign({},this.proxy))},valueDeps:function(t){var e=this;return Object.keys(this.proxy).reduce((function(n,r){return Object.defineProperty(n,r,{enumerable:!0,get:function(){var n=e.registry.get(r);return e.deps.set(t,e.deps.get(t)||new Set),n&&(e.deps.set(n,e.deps.get(n)||new Set),e.deps.get(n).add(t.name)),e.deps.get(t).add(r),e.proxy[r]}})}),Object.create(null))},validateDeps:function(t){var e=this;this.deps.has(t)&&this.deps.get(t).forEach((function(t){return e.registry.has(t)&&e.registry.get(t).performValidation()}))},hasValidationErrors:function(){return Promise.all(this.registry.reduce((function(t,e,n){return t.push(e.performValidation()&&e.getValidationErrors()),t}),[])).then((function(t){return t.some((function(t){return t.hasErrors}))}))},showErrors:function(){this.childrenShouldShowErrors=!0,this.registry.map((function(t){t.formShouldShowErrors=!0}))},hideErrors:function(){this.childrenShouldShowErrors=!1,this.registry.map((function(t){t.formShouldShowErrors=!1,t.behavioralErrorVisibility=!1}))},setValues:function(t){var e=this;Array.from(new Set(Object.keys(t||{}).concat(Object.keys(this.proxy)))).forEach((function(n){var r=e.registry.has(n)&&e.registry.get(n),i=t?t[n]:void 0;r&&!v(r.proxy,i,!0)&&(r.context.model=i),v(i,e.proxy[n],!0)||e.setFieldValue(n,i)}))},updateValidation:function(t){k(this.registry.errors,t.name)&&(this.registry.errors[t.name]=t.hasErrors),this.$emit("validation",t)},addErrorObserver:function(t){this.errorObservers.find((function(e){return t.callback===e.callback}))||(this.errorObservers.push(t),"form"===t.type?t.callback(this.mergedFormErrors):"group"===t.type&&k(this.mergedGroupErrors,t.field)?t.callback(this.mergedGroupErrors[t.field]):k(this.mergedFieldErrors,t.field)&&t.callback(this.mergedFieldErrors[t.field]))},removeErrorObserver:function(t){this.errorObservers=this.errorObservers.filter((function(e){return e.callback!==t}))}};return Object.keys(e).reduce((function(n,r){var i;return t.includes(r)?n:Object.assign({},n,((i={})[r]=e[r],i))}),{})}function J(t,e){void 0===e&&(e=[]);var n={formulateSetter:t.setFieldValue,formulateRegister:t.register,formulateDeregister:t.deregister,formulateFieldValidation:t.updateValidation,getFormValues:t.valueDeps,getGroupValues:t.valueDeps,validateDependents:t.validateDeps,observeErrors:t.addErrorObserver,removeErrorObserver:t.removeErrorObserver};return Object.keys(n).filter((function(t){return!e.includes(t)})).reduce((function(t,e){var r;return Object.assign(t,((r={})[e]=n[e],r))}),{})}Q.prototype.add=function(t,e){var n;return this.registry.set(t,e),this.errors=Object.assign({},this.errors,((n={})[t]=e.getErrorObject().hasErrors,n)),this},Q.prototype.remove=function(t){this.ctx.deps.delete(this.registry.get(t)),this.ctx.deps.forEach((function(e){return e.delete(t)}));var e=this.ctx.keepModelData;!e&&this.registry.has(t)&&"inherit"!==this.registry.get(t).keepModelData&&(e=this.registry.get(t).keepModelData),this.ctx.preventCleanup&&(e=!0),this.registry.delete(t);var n=this.errors,r=(n[t],W(n,[String(t)]));if(this.errors=r,!e){var i=this.ctx.proxy,o=(i[t],W(i,[String(t)]));this.ctx.uuid&&A(o,this.ctx.uuid),this.ctx.proxy=o,this.ctx.$emit("input",this.ctx.proxy)}return this},Q.prototype.has=function(t){return this.registry.has(t)},Q.prototype.get=function(t){return this.registry.get(t)},Q.prototype.map=function(t){var e={};return this.registry.forEach((function(n,r){var i;return Object.assign(e,((i={})[r]=t(n,r),i))})),e},Q.prototype.keys=function(){return Array.from(this.registry.keys())},Q.prototype.register=function(t,e){var n=this;if(k(e.$options.propsData,"ignored"))return!1;if(this.registry.has(t))return this.ctx.$nextTick((function(){return!n.registry.has(t)&&n.register(t,e)})),!1;this.add(t,e);var r=k(e.$options.propsData,"formulateValue"),i=k(e.$options.propsData,"value"),s=this.ctx.debounce||this.ctx.debounceDelay||this.ctx.context&&this.ctx.context.debounceDelay;s&&!k(e.$options.propsData,"debounce")&&(e.debounceDelay=s),r||!this.ctx.hasInitialValue||O(this.ctx.initialValues[t])?!r&&!i||v(e.proxy,this.ctx.initialValues[t],!0)||this.ctx.setFieldValue(t,e.proxy):e.context.model=this.ctx.initialValues[t],this.childrenShouldShowErrors&&(e.formShouldShowErrors=!0)},Q.prototype.reduce=function(t,e){return this.registry.forEach((function(n,r){e=t(e,n,r)})),e},Q.prototype.dataProps=function(){var t=this;return{proxy:{},registry:this,register:this.register.bind(this),deregister:function(e){return t.remove(e)},childrenShouldShowErrors:!1,errorObservers:[],deps:new Map,preventCleanup:!1}};var Z=function(t){this.form=t};function tt(t,e,n,r,i,o,s,a,l,u){"boolean"!=typeof s&&(l=a,a=s,s=!1);var c,f="function"==typeof n?n.options:n;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),r&&(f._scopeId=r),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=c):e&&(c=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),c)if(f.functional){var p=f.render;f.render=function(t,e){return c.call(e),p(t,e)}}else{var h=f.beforeCreate;f.beforeCreate=h?[].concat(h,c):[c]}return n}Z.prototype.hasValidationErrors=function(){return this.form.hasValidationErrors()},Z.prototype.values=function(){var t=this;return new Promise((function(e,n){var r=[],i=function t(e){if("object"!=typeof e)return e;var n=Array.isArray(e)?[]:{};for(var r in e)e[r]instanceof j||S(e[r])?n[r]=e[r]:n[r]=t(e[r]);return n}(t.form.proxy),o=function(e){"object"==typeof t.form.proxy[e]&&t.form.proxy[e]instanceof j&&r.push(t.form.proxy[e].upload().then((function(t){var n;return Object.assign(i,((n={})[e]=t,n))})))};for(var s in i)o(s);Promise.all(r).then((function(){return e(i)})).catch((function(t){return n(t)}))}))};var et={name:"FormulateForm",inheritAttrs:!1,provide:function(){return Object.assign({},J(this,["getGroupValues"]),{observeContext:this.addContextObserver,removeContextObserver:this.removeContextObserver})},model:{prop:"formulateValue",event:"input"},props:{name:{type:[String,Boolean],default:!1},formulateValue:{type:Object,default:function(){return{}}},values:{type:[Object,Boolean],default:!1},errors:{type:[Object,Boolean],default:!1},formErrors:{type:Array,default:function(){return[]}},schema:{type:[Array,Boolean],default:!1},keepModelData:{type:[Boolean,String],default:!1},invalidMessage:{type:[Boolean,Function,String],default:!1},debounce:{type:[Boolean,Number],default:!1}},data:function(){return Object.assign({},Y(this),{formShouldShowErrors:!1,contextObservers:[],namedErrors:[],namedFieldErrors:{},isLoading:!1,hasFailedSubmit:!1})},computed:Object.assign({},K(),{schemaListeners:function(){var t=this.$listeners;return t.submit,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}(t,["submit"])},pseudoProps:function(){return T(this.$attrs,B.filter((function(t){return/^form/.test(t)})))},attributes:function(){var t=this,e=Object.keys(this.$attrs).filter((function(e){return!k(t.pseudoProps,y(e))})).reduce((function(e,n){var r;return Object.assign({},e,((r={})[n]=t.$attrs[n],r))}),{});return"string"==typeof this.name&&Object.assign(e,{name:this.name}),e},hasErrors:function(){return Object.values(this.registry.errors).some((function(t){return t}))},isValid:function(){return!this.hasErrors},formContext:function(){return{errors:this.mergedFormErrors,pseudoProps:this.pseudoProps,hasErrors:this.hasErrors,value:this.proxy,hasValue:!O(this.proxy),isValid:this.isValid,isLoading:this.isLoading,classes:this.classes}},classes:function(){return this.$formulate.classes(Object.assign({},this.$props,this.pseudoProps,{value:this.proxy,errors:this.mergedFormErrors,hasErrors:this.hasErrors,hasValue:!O(this.proxy),isValid:this.isValid,isLoading:this.isLoading,type:"form",classification:"form",attrs:this.$attrs}))},invalidErrors:function(){if(this.hasFailedSubmit&&this.hasErrors)switch(typeof this.invalidMessage){case"string":return[this.invalidMessage];case"object":return Array.isArray(this.invalidMessage)?this.invalidMessage:[];case"function":var t=this.invalidMessage(this.failingFields);return Array.isArray(t)?t:[t]}return[]},mergedFormErrors:function(){return this.formErrors.concat(this.namedErrors).concat(this.invalidErrors)},mergedFieldErrors:function(){var t={};if(this.errors)for(var e in this.errors)t[e]=w(this.errors[e]);for(var n in this.namedFieldErrors)t[n]=w(this.namedFieldErrors[n]);return t},hasFormErrorObservers:function(){return!!this.errorObservers.filter((function(t){return"form"===t.type})).length},failingFields:function(){var t=this;return Object.keys(this.registry.errors).reduce((function(e,n){var r;return Object.assign({},e,t.registry.errors[n]?((r={})[n]=t.registry.get(n),r):{})}),{})}}),watch:Object.assign({},{mergedFieldErrors:{handler:function(t){this.errorObservers.filter((function(t){return"input"===t.type})).forEach((function(e){return e.callback(t[e.field]||[])}))},immediate:!0},mergedGroupErrors:{handler:function(t){this.errorObservers.filter((function(t){return"group"===t.type})).forEach((function(e){return e.callback(t[e.field]||{})}))},immediate:!0}},{formulateValue:{handler:function(t){this.isVmodeled&&t&&"object"==typeof t&&this.setValues(t)},deep:!0},mergedFormErrors:function(t){this.errorObservers.filter((function(t){return"form"===t.type})).forEach((function(e){return e.callback(t)}))}}),created:function(){this.$formulate.register(this),this.applyInitialValues(),this.$emit("created",this)},destroyed:function(){this.$formulate.deregister(this)},methods:Object.assign({},X(),{applyErrors:function(t){var e=t.formErrors,n=t.inputErrors;this.namedErrors=e,this.namedFieldErrors=n},addContextObserver:function(t){this.contextObservers.find((function(e){return e===t}))||(this.contextObservers.push(t),t(this.formContext))},removeContextObserver:function(t){this.contextObservers.filter((function(e){return e!==t}))},registerErrorComponent:function(t){this.errorComponents.includes(t)||this.errorComponents.push(t)},formSubmitted:function(){var t=this;if(!this.isLoading){this.isLoading=!0,this.showErrors();var e=new Z(this),n=this.$listeners["submit-raw"]||this.$listeners.submitRaw,r="function"==typeof n?n(e):Promise.resolve(e);return(r instanceof Promise?r:Promise.resolve(r)).then((function(t){var n=t instanceof Z?t:e;return n.hasValidationErrors().then((function(t){return[n,t]}))})).then((function(e){var n=e[0];return e[1]||"function"!=typeof t.$listeners.submit?t.onFailedValidation():n.values().then((function(e){t.hasFailedSubmit=!1;var n=t.$listeners.submit(e);return(n instanceof Promise?n:Promise.resolve()).then((function(){return e}))}))})).finally((function(){t.isLoading=!1}))}},onFailedValidation:function(){return this.hasFailedSubmit=!0,this.$emit("failed-validation",Object.assign({},this.failingFields)),this.$formulate.failedValidation(this)}})},nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",t._b({class:t.classes.form,on:{submit:function(e){return e.preventDefault(),t.formSubmitted(e)}}},"form",t.attributes,!1),[t.schema?n("FormulateSchema",t._g({attrs:{schema:t.schema}},t.schemaListeners)):t._e(),t._v(" "),t.hasFormErrorObservers?t._e():n("FormulateErrors",{attrs:{context:t.formContext}}),t._v(" "),t._t("default",null,null,t.formContext)],2)};nt._withStripped=!0;var it=tt({render:nt,staticRenderFns:[]},void 0,et,void 0,!1,void 0,!1,void 0,void 0,void 0),ot={context:function(){return lt.call(this,Object.assign({},{addLabel:this.logicalAddLabel,removeLabel:this.logicalRemoveLabel,attributes:this.elementAttributes,blurHandler:ut.bind(this),classification:this.classification,component:this.component,debounceDelay:this.debounceDelay,disableErrors:this.disableErrors,errors:this.explicitErrors,formShouldShowErrors:this.formShouldShowErrors,getValidationErrors:this.getValidationErrors.bind(this),groupErrors:this.mergedGroupErrors,hasGivenName:this.hasGivenName,hasValue:this.hasValue,hasLabel:this.label&&"button"!==this.classification,hasValidationErrors:this.hasValidationErrors.bind(this),help:this.help,helpPosition:this.logicalHelpPosition,id:this.id||this.defaultId,ignored:k(this.$options.propsData,"ignored"),isValid:this.isValid,imageBehavior:this.imageBehavior,label:this.label,labelPosition:this.logicalLabelPosition,limit:this.limit===1/0?this.limit:parseInt(this.limit,10),name:this.nameOrFallback,minimum:parseInt(this.minimum,10),performValidation:this.performValidation.bind(this),pseudoProps:this.pseudoProps,preventWindowDrops:this.preventWindowDrops,removePosition:this.mergedRemovePosition,repeatable:this.repeatable,rootEmit:this.$emit.bind(this),rules:this.ruleDetails,setErrors:this.setErrors.bind(this),showValidationErrors:this.showValidationErrors,slotComponents:this.slotComponents,slotProps:this.slotProps,type:this.type,uploadBehavior:this.uploadBehavior,uploadUrl:this.mergedUploadUrl,uploader:this.uploader||this.$formulate.getUploader(),validationErrors:this.validationErrors,value:this.value,visibleValidationErrors:this.visibleValidationErrors,isSubField:this.isSubField,classes:this.classes},this.typeContext))},nameOrFallback:function(){if(!0===this.name&&"button"!==this.classification){var t=this.id||this.elementAttributes.id.replace(/[^0-9]/g,"");return this.type+"_"+t}return!1!==this.name&&("button"!==this.classification||!0!==this.name)&&this.name},hasGivenName:function(){return"boolean"!=typeof this.name},typeContext:function(){var t=this;switch(this.classification){case"select":return{options:at.call(this,this.options),optionGroups:!!this.optionGroups&&m(this.optionGroups,(function(e,n){return at.call(t,n)})),placeholder:this.$attrs.placeholder||!1};case"slider":return{showValue:!!this.showValue};default:return this.options?{options:at.call(this,this.options)}:{}}},elementAttributes:function(){var t=Object.assign({},this.filteredAttributes);return this.id?t.id=this.id:t.id=this.defaultId,this.hasGivenName&&(t.name=this.name),this.help&&!k(t,"aria-describedby")&&(t["aria-describedby"]=t.id+"-help"),!this.classes.input||Array.isArray(this.classes.input)&&!this.classes.input.length||(t.class=this.classes.input),t},logicalLabelPosition:function(){return this.labelPosition?this.labelPosition:"box"===this.classification?"after":"before"},logicalHelpPosition:function(){return this.helpPosition?this.helpPosition:"group"===this.classification?"before":"after"},mergedRemovePosition:function(){return"group"===this.type&&(this.removePosition||"before")},mergedUploadUrl:function(){return this.uploadUrl||this.$formulate.getUploadUrl()},mergedGroupErrors:function(){var t=this,e=Object.keys(this.groupErrors).concat(Object.keys(this.localGroupErrors)),n=/^(\d+)\.(.*)$/;return Array.from(new Set(e)).filter((function(t){return n.test(t)})).reduce((function(e,r){var i,o=r.match(n),s=o[1],a=o[2];k(e,s)||(e[s]={});var u=Array.from(new Set(w(t.groupErrors[r]).concat(w(t.localGroupErrors[r]))));return e[s]=Object.assign(e[s],((i={})[a]=u,i)),e}),{})},hasValue:function(){var t=this,e=this.proxy;return"box"===this.classification&&this.isGrouped||"select"===this.classification&&k(this.filteredAttributes,"multiple")?Array.isArray(e)?e.some((function(e){return e===t.value})):this.value===e:!O(e)},visibleValidationErrors:function(){return this.showValidationErrors&&this.validationErrors.length?this.validationErrors:[]},slotComponents:function(){var t=this.$formulate.slotComponent.bind(this.$formulate);return{addMore:t(this.type,"addMore"),buttonContent:t(this.type,"buttonContent"),errors:t(this.type,"errors"),file:t(this.type,"file"),help:t(this.type,"help"),label:t(this.type,"label"),prefix:t(this.type,"prefix"),remove:t(this.type,"remove"),repeatable:t(this.type,"repeatable"),suffix:t(this.type,"suffix"),uploadAreaMask:t(this.type,"uploadAreaMask")}},logicalAddLabel:function(){if("file"===this.classification)return!0===this.addLabel?"+ Add "+_(this.type):this.addLabel;if("boolean"==typeof this.addLabel){var t=this.label||this.name;return"+ "+("string"==typeof t?t+" ":"")+" Add"}return this.addLabel},logicalRemoveLabel:function(){return"boolean"==typeof this.removeLabel?"Remove":this.removeLabel},classes:function(){return this.$formulate.classes(Object.assign({},this.$props,this.pseudoProps,{attrs:this.filteredAttributes,classification:this.classification,hasErrors:this.hasVisibleErrors,hasValue:this.hasValue,helpPosition:this.logicalHelpPosition,isValid:this.isValid,labelPosition:this.logicalLabelPosition,type:this.type,value:this.proxy}))},showValidationErrors:function(){return!(!this.showErrors&&!this.formShouldShowErrors)||(!("file"!==this.classification||"live"!==this.uploadBehavior||!ct.call(this))||this.behavioralErrorVisibility)},slotProps:function(){var t=this.$formulate.slotProps.bind(this.$formulate);return{label:t(this.type,"label",this.typeProps),help:t(this.type,"help",this.typeProps),errors:t(this.type,"errors",this.typeProps),repeatable:t(this.type,"repeatable",this.typeProps),addMore:t(this.type,"addMore",this.typeProps),remove:t(this.type,"remove",this.typeProps),component:t(this.type,"component",this.typeProps)}},pseudoProps:function(){return T(this.localAttributes,B)},isValid:function(){return!this.hasErrors},ruleDetails:function(){return this.parsedValidation.map((function(t){var e=t[1];return{ruleName:t[2],args:e}}))},isVmodeled:function(){return!!(this.$options.propsData.hasOwnProperty("formulateValue")&&this._events&&Array.isArray(this._events.input)&&this._events.input.length)},mergedValidationName:function(){var t=this,e=this.$formulate.options.validationNameStrategy||["validationName","name","label","type"];return Array.isArray(e)?this[e.find((function(e){return"string"==typeof t[e]}))]:"function"==typeof e?e.call(this,this):this.type},explicitErrors:function(){return w(this.errors).concat(this.localErrors).concat(w(this.error))},allErrors:function(){return this.explicitErrors.concat(w(this.validationErrors))},hasVisibleErrors:function(){return Array.isArray(this.validationErrors)&&this.validationErrors.length&&this.showValidationErrors||!!this.explicitErrors.length},hasErrors:function(){return!!this.allErrors.length},filteredAttributes:function(){var t=this,e=Object.keys(this.pseudoProps).concat(Object.keys(this.typeProps));return Object.keys(this.localAttributes).reduce((function(n,r){return e.includes(y(r))||(n[r]=t.localAttributes[r]),n}),{})},typeProps:function(){return T(this.localAttributes,this.$formulate.typeProps(this.type))},listeners:function(){var t=this.$listeners;return t.input,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}(t,["input"])}};function at(t){return t?(Array.isArray(t)?t:Object.keys(t).map((function(e){return{label:t[e],value:e}}))).map(st.bind(this)):[]}function st(t){return"number"==typeof t&&(t=String(t)),"string"==typeof t?{label:t,value:t,id:this.elementAttributes.id+"_"+t}:("number"==typeof t.value&&(t.value=String(t.value)),Object.assign({value:"",label:"",id:this.elementAttributes.id+"_"+(t.value||t.label)},t))}function ut(){var t=this;"blur"!==this.errorBehavior&&"value"!==this.errorBehavior||(this.behavioralErrorVisibility=!0),this.$nextTick((function(){return t.$emit("blur-context",t.context)}))}function lt(t){var e=this;return Object.defineProperty(t,"model",{get:ct.bind(this),set:function(t){if(!e.mntd||!e.debounceDelay)return ft.call(e,t);e.dSet(ft,[t],e.debounceDelay)},enumerable:!0})}function ct(){var t=this.isVmodeled?"formulateValue":"proxy";return"checkbox"===this.type&&!Array.isArray(this[t])&&this.options?[]:this[t]||0===this[t]?this[t]:""}function ft(t){var e=!1;v(t,this.proxy,"group"===this.type)||(this.proxy=t,e=!0),!this.context.ignored&&this.context.name&&"function"==typeof this.formulateSetter&&this.formulateSetter(this.context.name,t),e&&this.$emit("input",t)}var ht={name:"FormulateInput",inheritAttrs:!1,provide:function(){return{formulateRegisterRule:this.registerRule,formulateRemoveRule:this.removeRule}},inject:{formulateSetter:{default:void 0},formulateFieldValidation:{default:function(){return function(){return{}}}},formulateRegister:{default:void 0},formulateDeregister:{default:void 0},getFormValues:{default:function(){return function(){return{}}}},getGroupValues:{default:void 0},validateDependents:{default:function(){return function(){}}},observeErrors:{default:void 0},removeErrorObserver:{default:void 0},isSubField:{default:function(){return function(){return!1}}}},model:{prop:"formulateValue",event:"input"},props:{type:{type:String,default:"text"},name:{type:[String,Boolean],default:!0},formulateValue:{default:""},value:{default:!1},options:{type:[Object,Array,Boolean],default:!1},optionGroups:{type:[Object,Boolean],default:!1},id:{type:[String,Boolean,Number],default:!1},label:{type:[String,Boolean],default:!1},labelPosition:{type:[String,Boolean],default:!1},limit:{type:[String,Number],default:1/0,validator:function(t){return 1/0}},minimum:{type:[String,Number],default:0,validator:function(t){return parseInt(t,10)==t}},help:{type:[String,Boolean],default:!1},helpPosition:{type:[String,Boolean],default:!1},isGrouped:{type:Boolean,default:!1},errors:{type:[String,Array,Boolean],default:!1},removePosition:{type:[String,Boolean],default:!1},repeatable:{type:Boolean,default:!1},validation:{type:[String,Boolean,Array],default:!1},validationName:{type:[String,Boolean],default:!1},error:{type:[String,Boolean],default:!1},errorBehavior:{type:String,default:"blur",validator:function(t){return["blur","live","submit","value"].includes(t)}},showErrors:{type:Boolean,default:!1},groupErrors:{type:Object,default:function(){return{}},validator:function(t){var e=/^\d+\./;return!Object.keys(t).some((function(t){return!e.test(t)}))}},imageBehavior:{type:String,default:"preview"},uploadUrl:{type:[String,Boolean],default:!1},uploader:{type:[Function,Object,Boolean],default:!1},uploadBehavior:{type:String,default:"live"},preventWindowDrops:{type:Boolean,default:!0},showValue:{type:[String,Boolean],default:!1},validationMessages:{type:Object,default:function(){return{}}},validationRules:{type:Object,default:function(){return{}}},checked:{type:[String,Boolean],default:!1},disableErrors:{type:Boolean,default:!1},addLabel:{type:[Boolean,String],default:!0},removeLabel:{type:[Boolean,String],default:!1},keepModelData:{type:[Boolean,String],default:"inherit"},ignored:{type:[Boolean,String],default:!1},debounce:{type:[Boolean,Number],default:!1},preventDeregister:{type:Boolean,default:!1}},data:function(){return{defaultId:this.$formulate.nextId(this),localAttributes:{},localErrors:[],localGroupErrors:{},proxy:this.getInitialValue(),behavioralErrorVisibility:"live"===this.errorBehavior,formShouldShowErrors:!1,validationErrors:[],pendingValidation:Promise.resolve(),ruleRegistry:[],messageRegistry:{},touched:!1,debounceDelay:this.debounce,dSet:function(e,n,r){var i=this;t&&clearTimeout(t),t=setTimeout((function(){return e.call.apply(e,[i].concat(n))}),r)},mntd:!1};var t},computed:Object.assign({},ot,{classification:function(){var t=this.$formulate.classify(this.type);return"box"===t&&this.options?"group":t},component:function(){return"group"===this.classification?"FormulateInputGroup":this.$formulate.component(this.type)},parsedValidationRules:function(){var t=this,e={};return Object.keys(this.validationRules).forEach((function(n){e[y(n)]=t.validationRules[n]})),e},parsedValidation:function(){return x(this.validation,this.$formulate.rules(this.parsedValidationRules))},messages:function(){var t=this,e={};return Object.keys(this.validationMessages).forEach((function(n){e[y(n)]=t.validationMessages[n]})),Object.keys(this.messageRegistry).forEach((function(n){e[y(n)]=t.messageRegistry[n]})),e}}),watch:{$attrs:{handler:function(t){this.updateLocalAttributes(t)},deep:!0},proxy:{handler:function(t,e){this.performValidation(),this.isVmodeled||v(t,e,"group"===this.type)||(this.context.model=t),this.validateDependents(this),!this.touched&&t&&(this.touched=!0)},deep:!0},formulateValue:{handler:function(t,e){this.isVmodeled&&!v(t,e,"group"===this.type)&&(this.context.model=t)},deep:!0},showValidationErrors:{handler:function(t){this.$emit("error-visibility",t)},immediate:!0},validation:{handler:function(){this.performValidation()},deep:!0},touched:function(t){"value"===this.errorBehavior&&t&&(this.behavioralErrorVisibility=t)},debounce:function(t){this.debounceDelay=t}},created:function(){this.applyInitialValue(),this.formulateRegister&&"function"==typeof this.formulateRegister&&this.formulateRegister(this.nameOrFallback,this),this.applyDefaultValue(),this.disableErrors||"function"!=typeof this.observeErrors||(this.observeErrors({callback:this.setErrors,type:"input",field:this.nameOrFallback}),"group"===this.type&&this.observeErrors({callback:this.setGroupErrors,type:"group",field:this.nameOrFallback})),this.updateLocalAttributes(this.$attrs),this.performValidation(),this.hasValue&&(this.touched=!0)},mounted:function(){this.mntd=!0},beforeDestroy:function(){this.disableErrors||"function"!=typeof this.removeErrorObserver||(this.removeErrorObserver(this.setErrors),"group"===this.type&&this.removeErrorObserver(this.setGroupErrors)),"function"!=typeof this.formulateDeregister||this.preventDeregister||this.formulateDeregister(this.nameOrFallback)},methods:{getInitialValue:function(){var t=this.$formulate.classify(this.type);return"box"===(t="box"===t&&this.options?"group":t)&&this.checked?this.value||!0:k(this.$options.propsData,"value")&&"box"!==t?this.value:k(this.$options.propsData,"formulateValue")?this.formulateValue:"group"===t?Object.defineProperty("group"===this.type?[{}]:[],"__init",{value:!0}):""},applyInitialValue:function(){v(this.context.model,this.proxy)||"box"===this.classification&&!k(this.$options.propsData,"options")||(this.context.model=this.proxy,this.$emit("input",this.proxy))},applyDefaultValue:function(){"select"===this.type&&!this.context.placeholder&&O(this.proxy)&&!this.isVmodeled&&!1===this.value&&this.context.options.length&&(k(this.$attrs,"multiple")?this.context.model=[]:this.context.model=this.context.options[0].value)},updateLocalAttributes:function(t){v(t,this.localAttributes)||(this.localAttributes=t)},performValidation:function(){var t=this,e=x(this.validation,this.$formulate.rules(this.parsedValidationRules));return e=this.ruleRegistry.length?this.ruleRegistry.concat(e):e,this.pendingValidation=this.runRules(e).then((function(e){return t.didValidate(e)})),this.pendingValidation},runRules:function(t){var e=this,n=function(t){var n=t[0],r=t[1],i=t[2],o=(t[3],n.apply(void 0,[{value:e.context.model,getFormValues:function(){for(var t,n=[],r=arguments.length;r--;)n[r]=arguments[r];return(t=e).getFormValues.apply(t,[e].concat(n))},getGroupValues:function(){for(var t,n=[],r=arguments.length;r--;)n[r]=arguments[r];return(t=e)["get"+(e.getGroupValues?"Group":"Form")+"Values"].apply(t,[e].concat(n))},name:e.context.name}].concat(r)));return(o=o instanceof Promise?o:Promise.resolve(o)).then((function(t){return!t&&e.getMessage(i,r)}))};return new Promise((function(e){var r=function(t,i){void 0===i&&(i=[]);var o=t.shift();Array.isArray(o)&&o.length?Promise.all(o.map(n)).then((function(t){return t.filter((function(t){return!!t}))})).then((function(n){return(n=Array.isArray(n)?n:[]).length&&o.bail||!t.length?e(i.concat(n).filter((function(t){return!O(t)}))):r(t,i.concat(n))})):e([])};r(function(t){var e=[],n=t.findIndex((function(t){return"bail"===t[2].toLowerCase()})),r=t.findIndex((function(t){return"optional"===t[2].toLowerCase()}));if(r>=0){var i=t.splice(r,1);e.push(Object.defineProperty(i,"bail",{value:!0}))}if(n>=0){var o=t.splice(0,n+1).slice(0,-1);o.length&&e.push(o),t.map((function(t){return e.push(Object.defineProperty([t],"bail",{value:!0}))}))}else e.push(t);return e.reduce((function(t,e){var n=function(t,e){if(void 0===e&&(e=!1),t.length<2)return Object.defineProperty([t],"bail",{value:e});var r=[],i=t.findIndex((function(t){return"^"===t[3]}));if(i>=0){var o=t.splice(0,i);o.length&&r.push.apply(r,n(o,e)),r.push(Object.defineProperty([t.shift()],"bail",{value:!0})),t.length&&r.push.apply(r,n(t,e))}else r.push(t);return r};return t.concat(n(e))}),[])}(t))}))},didValidate:function(t){var e=!v(t,this.validationErrors);if(this.validationErrors=t,e){var n=this.getErrorObject();this.$emit("validation",n),this.formulateFieldValidation&&"function"==typeof this.formulateFieldValidation&&this.formulateFieldValidation(n)}},getMessage:function(t,e){var n=this;return this.getMessageFunc(t)({args:e,name:this.mergedValidationName,value:this.context.model,vm:this,formValues:this.getFormValues(this),getFormValues:function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(t=n).getFormValues.apply(t,[n].concat(e))},getGroupValues:function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(t=n)["get"+(n.getGroupValues?"Group":"Form")+"Values"].apply(t,[n].concat(e))}})},getMessageFunc:function(t){var e=this;if("optional"===(t=y(t)))return function(){return[]};if(this.messages&&void 0!==this.messages[t])switch(typeof this.messages[t]){case"function":return this.messages[t];case"string":case"boolean":return function(){return e.messages[t]}}return function(n){return e.$formulate.validationMessage(t,n,e)}},hasValidationErrors:function(){var t=this;return new Promise((function(e){t.$nextTick((function(){t.pendingValidation.then((function(){return e(!!t.validationErrors.length)}))}))}))},getValidationErrors:function(){var t=this;return new Promise((function(e){t.$nextTick((function(){return t.pendingValidation.then((function(){return e(t.getErrorObject())}))}))}))},getErrorObject:function(){return{name:this.context.nameOrFallback||this.context.name,errors:this.validationErrors.filter((function(t){return"string"==typeof t})),hasErrors:!!this.validationErrors.length}},setErrors:function(t){this.localErrors=w(t)},setGroupErrors:function(t){this.localGroupErrors=t},registerRule:function(t,e,n,r){void 0===r&&(r=null),this.ruleRegistry.some((function(t){return t[2]===n}))||(this.ruleRegistry.push([t,e,n]),null!==r&&(this.messageRegistry[n]=r))},removeRule:function(t){var e=this.ruleRegistry.findIndex((function(e){return e[2]===t}));e>=0&&(this.ruleRegistry.splice(e,1),delete this.messageRegistry[t])}}},pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.outer,attrs:{"data-classification":t.classification,"data-has-errors":t.hasErrors,"data-is-showing-errors":t.hasVisibleErrors,"data-has-value":t.hasValue,"data-type":t.type}},[n("div",{class:t.context.classes.wrapper},["before"===t.context.labelPosition?t._t("label",[t.context.hasLabel?n(t.context.slotComponents.label,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.label,!1)):t._e()],null,t.context):t._e(),t._v(" "),"before"===t.context.helpPosition?t._t("help",[t.context.help?n(t.context.slotComponents.help,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.help,!1)):t._e()],null,t.context):t._e(),t._v(" "),t._t("element",[n(t.context.component,t._g(t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.component,!1),t.listeners),[t._t("default",null,null,t.context)],2)],null,t.context),t._v(" "),"after"===t.context.labelPosition?t._t("label",[t.context.hasLabel?n(t.context.slotComponents.label,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.label,!1)):t._e()],null,t.context):t._e()],2),t._v(" "),"after"===t.context.helpPosition?t._t("help",[t.context.help?n(t.context.slotComponents.help,t._b({tag:"component",attrs:{context:t.context}},"component",t.context.slotProps.help,!1)):t._e()],null,t.context):t._e(),t._v(" "),t._t("errors",[t.context.disableErrors?t._e():n(t.context.slotComponents.errors,t._b({tag:"component",attrs:{type:"FormulateErrors"===t.context.slotComponents.errors&&"input",context:t.context}},"component",t.context.slotProps.errors,!1))],null,t.context)],2)};pt._withStripped=!0;var rt=tt({render:pt,staticRenderFns:[]},void 0,ht,void 0,!1,void 0,!1,void 0,void 0,void 0),mt={inject:{observeErrors:{default:!1},removeErrorObserver:{default:!1},observeContext:{default:!1},removeContextObserver:{default:!1}},props:{context:{type:Object,default:function(){return{}}},type:{type:String,default:"form"}},data:function(){return{boundSetErrors:this.setErrors.bind(this),boundSetFormContext:this.setFormContext.bind(this),localErrors:[],formContext:{classes:{formErrors:"formulate-form-errors",formError:"formulate-form-error"}}}},computed:{visibleValidationErrors:function(){return Array.isArray(this.context.visibleValidationErrors)?this.context.visibleValidationErrors:[]},errors:function(){return Array.isArray(this.context.errors)?this.context.errors:[]},mergedErrors:function(){return this.errors.concat(this.localErrors)},visibleErrors:function(){return Array.from(new Set(this.mergedErrors.concat(this.visibleValidationErrors))).filter((function(t){return"string"==typeof t}))},outerClass:function(){return"input"===this.type&&this.context.classes?this.context.classes.errors:this.formContext.classes.formErrors},itemClass:function(){return"input"===this.type&&this.context.classes?this.context.classes.error:this.formContext.classes.formError},role:function(){return"form"===this.type?"alert":"status"},ariaLive:function(){return"form"===this.type?"assertive":"polite"},slotComponent:function(){return this.$formulate.slotComponent(null,"errorList")}},created:function(){"form"===this.type&&"function"==typeof this.observeErrors&&(Array.isArray(this.context.errors)||this.observeErrors({callback:this.boundSetErrors,type:"form"}),this.observeContext(this.boundSetFormContext))},destroyed:function(){"form"===this.type&&"function"==typeof this.removeErrorObserver&&(Array.isArray(this.context.errors)||this.removeErrorObserver(this.boundSetErrors),this.removeContextObserver(this.boundSetFormContext))},methods:{setErrors:function(t){this.localErrors=w(t)},setFormContext:function(t){this.formContext=t}}},vt=function(){var t=this.$createElement;return(this._self._c||t)(this.slotComponent,{tag:"component",attrs:{"visible-errors":this.visibleErrors,"item-class":this.itemClass,"outer-class":this.outerClass,role:this.role,"aria-live":this.ariaLive,type:this.type}})};vt._withStripped=!0;var yt=tt({render:vt,staticRenderFns:[]},void 0,mt,void 0,!1,void 0,!1,void 0,void 0,void 0),gt={props:{context:{type:Object,required:!0}}},bt=function(){var t=this.$createElement,e=this._self._c||t;return this.context.help?e("div",{class:this.context.classes.help,attrs:{id:this.context.id+"-help"},domProps:{textContent:this._s(this.context.help)}}):this._e()};bt._withStripped=!0;var _t=tt({render:bt,staticRenderFns:[]},void 0,gt,void 0,!1,void 0,!1,void 0,void 0,void 0),wt={props:{file:{type:Object,required:!0},imagePreview:{type:Boolean,default:!1},context:{type:Object,required:!0}}},xt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.file},[t.imagePreview&&t.file.previewData?n("div",{class:t.context.classes.fileImagePreview},[n("img",{class:t.context.classes.fileImagePreviewImage,attrs:{src:t.file.previewData}})]):t._e(),t._v(" "),n("div",{class:t.context.classes.fileName,attrs:{title:t.file.name},domProps:{textContent:t._s(t.file.name)}}),t._v(" "),!1!==t.file.progress?n("div",{class:t.context.classes.fileProgress,attrs:{"data-just-finished":t.file.justFinished,"data-is-finished":!t.file.justFinished&&t.file.complete}},[n("div",{class:t.context.classes.fileProgressInner,style:{width:t.file.progress+"%"}})]):t._e(),t._v(" "),t.file.complete&&!t.file.justFinished||!1===t.file.progress?n("div",{class:t.context.classes.fileRemove,on:{click:t.file.removeFile}}):t._e()])};xt._withStripped=!0;var dt=tt({render:xt,staticRenderFns:[]},void 0,wt,void 0,!1,void 0,!1,void 0,void 0,void 0),Et={name:"FormulateGrouping",props:{context:{type:Object,required:!0}},provide:function(){return{isSubField:function(){return!0},registerProvider:this.registerProvider,deregisterProvider:this.deregisterProvider}},data:function(){return{providers:[],keys:[]}},inject:["formulateRegisterRule","formulateRemoveRule"],computed:{items:function(){var t=this;return Array.isArray(this.context.model)?this.context.repeatable||0!==this.context.model.length?this.context.model.length<this.context.minimum?new Array(this.context.minimum||1).fill("").map((function(e,n){return t.setId(t.context.model[n]||{},n)})):this.context.model.map((function(e,n){return t.setId(e,n)})):[this.setId({},0)]:new Array(this.context.minimum||1).fill("").map((function(e,n){return t.setId({},n)}))},formShouldShowErrors:function(){return this.context.formShouldShowErrors},groupErrors:function(){var t=this;return this.items.map((function(e,n){return k(t.context.groupErrors,n)?t.context.groupErrors[n]:{}}))}},watch:{providers:function(){this.formShouldShowErrors&&this.showErrors()},formShouldShowErrors:function(t){t&&this.showErrors()},items:{handler:function(t,e){v(t,e,!0)||(this.keys=t.map((function(t){return t.__id})))},immediate:!0}},created:function(){this.formulateRegisterRule(this.validateGroup.bind(this),[],"formulateGrouping",!0)},destroyed:function(){this.formulateRemoveRule("formulateGrouping")},methods:{validateGroup:function(){return Promise.all(this.providers.reduce((function(t,e){return e&&"function"==typeof e.hasValidationErrors&&t.push(e.hasValidationErrors()),t}),[])).then((function(t){return!t.some((function(t){return!!t}))}))},showErrors:function(){this.providers.forEach((function(t){return t&&"function"==typeof t.showErrors&&t.showErrors()}))},setItem:function(t,e){var n=this;Array.isArray(this.context.model)&&this.context.model.length>=this.context.minimum&&!this.context.model.__init?this.context.model.splice(t,1,this.setId(e,t)):this.context.model=this.items.map((function(r,i){return i===t?n.setId(e,t):r}))},removeItem:function(t){var e=this;Array.isArray(this.context.model)&&this.context.model.length>this.context.minimum?(this.context.model=this.context.model.filter((function(e,n){return n!==t&&e})),this.context.rootEmit("repeatableRemoved",this.context.model)):!Array.isArray(this.context.model)&&this.items.length>this.context.minimum&&(this.context.model=new Array(this.items.length-1).fill("").map((function(t,n){return e.setId({},n)})),this.context.rootEmit("repeatableRemoved",this.context.model))},registerProvider:function(t){this.providers.some((function(e){return e===t}))||this.providers.push(t)},deregisterProvider:function(t){this.providers=this.providers.filter((function(e){return e!==t}))},setId:function(t,e){return t.__id?t:A(t,this.keys[e])}}},St=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("FormulateSlot",{class:t.context.classes.grouping,attrs:{name:"grouping",context:t.context,"force-wrap":t.context.repeatable}},t._l(t.items,(function(e,r){return n("FormulateRepeatableProvider",{key:e.__id,attrs:{index:r,context:t.context,uuid:e.__id,errors:t.groupErrors[r]},on:{remove:t.removeItem,input:function(e){return t.setItem(r,e)}}},[t._t("default")],2)})),1)};St._withStripped=!0;var kt=tt({render:St,staticRenderFns:[]},void 0,Et,void 0,!1,void 0,!1,void 0,void 0,void 0),At={props:{context:{type:Object,required:!0}}},Ot=function(){var t=this.$createElement;return(this._self._c||t)("label",{class:this.context.classes.label,attrs:{id:this.context.id+"_label",for:this.context.id},domProps:{textContent:this._s(this.context.label)}})};Ot._withStripped=!0;var Tt=tt({render:Ot,staticRenderFns:[]},void 0,At,void 0,!1,void 0,!1,void 0,void 0,void 0),Ct={props:{context:{type:Object,required:!0},addMore:{type:Function,required:!0}}},Pt=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.context.classes.groupAddMore},[e("FormulateInput",{attrs:{type:"button",label:this.context.addLabel,"data-minor":"","data-ghost":""},on:{click:this.addMore}})],1)};Pt._withStripped=!0;var It=tt({render:Pt,staticRenderFns:[]},void 0,Ct,void 0,!1,void 0,!1,void 0,void 0,void 0),Mt={props:{context:{type:Object,required:!0}},computed:{type:function(){return this.context.type},attributes:function(){return this.context.attributes||{}},hasValue:function(){return this.context.hasValue}}},jt={name:"FormulateInputBox",mixins:[Mt],computed:{usesDecorator:function(){return this.$formulate.options.useInputDecorators}}},Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),"radio"===t.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{value:t.context.value,checked:t._q(t.context.model,t.context.value)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",t.context.value)}}},"input",t.attributes,!1),t.$listeners)):n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{value:t.context.value,checked:Array.isArray(t.context.model)?t._i(t.context.model,t.context.value)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var n=t.context.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.context.value,s=t._i(n,o);r.checked?s<0&&t.$set(t.context,"model",n.concat([o])):s>-1&&t.$set(t.context,"model",n.slice(0,s).concat(n.slice(s+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)),t._v(" "),t.usesDecorator?n("label",{tag:"component",class:t.context.classes.decorator,attrs:{for:t.attributes.id}}):t._e(),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};Dt._withStripped=!0;var Ft=tt({render:Dt,staticRenderFns:[]},void 0,jt,void 0,!1,void 0,!1,void 0,void 0,void 0),Rt={props:{visibleErrors:{type:Array,required:!0},itemClass:{type:[String,Array,Object,Boolean],default:!1},outerClass:{type:[String,Array,Object,Boolean],default:!1},role:{type:[String],default:"status"},ariaLive:{type:[String,Boolean],default:"polite"},type:{type:String,required:!0}}},Lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visibleErrors.length?n("ul",{class:t.outerClass},t._l(t.visibleErrors,(function(e){return n("li",{key:e,class:t.itemClass,attrs:{role:t.role,"aria-live":t.ariaLive},domProps:{textContent:t._s(e)}})})),0):t._e()};Lt._withStripped=!0;var Nt=tt({render:Lt,staticRenderFns:[]},void 0,Rt,void 0,!1,void 0,!1,void 0,void 0,void 0),Bt={name:"FormulateInputText",mixins:[Mt]},Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),"checkbox"===t.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.context.model)?t._i(t.context.model,null)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var n=t.context.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.context,"model",n.concat([null])):o>-1&&t.$set(t.context,"model",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)):"radio"===t.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{checked:t._q(t.context.model,null)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",null)}}},"input",t.attributes,!1),t.$listeners)):n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:t.type},domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"input",t.attributes,!1),t.$listeners)),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};Vt._withStripped=!0;var zt=tt({render:Vt,staticRenderFns:[]},void 0,Bt,void 0,!1,void 0,!1,void 0,void 0,void 0),qt={name:"FormulateFiles",props:{files:{type:j,required:!0},imagePreview:{type:Boolean,default:!1},context:{type:Object,required:!0}},computed:{fileUploads:function(){return this.files.files||[]},isMultiple:function(){return k(this.context.attributes,"multiple")}},watch:{files:function(){this.imagePreview&&this.files.loadPreviews()}},mounted:function(){this.imagePreview&&this.files.loadPreviews()},methods:{appendFiles:function(){var t=this.$refs.addFiles;t.files.length&&this.files.mergeFileList(t)}}},Ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.fileUploads.length?n("ul",{class:t.context.classes.files},[t._l(t.fileUploads,(function(e){return n("li",{key:e.uuid,attrs:{"data-has-error":!!e.error,"data-has-preview":!(!t.imagePreview||!e.previewData)}},[n("FormulateSlot",{attrs:{name:"file",context:t.context,file:e,"image-preview":t.imagePreview}},[n(t.context.slotComponents.file,{tag:"component",attrs:{context:t.context,file:e,"image-preview":t.imagePreview}})],1),t._v(" "),e.error?n("div",{class:t.context.classes.fileUploadError,domProps:{textContent:t._s(e.error)}}):t._e()],1)})),t._v(" "),t.isMultiple&&t.context.addLabel?n("div",{class:t.context.classes.fileAdd,attrs:{role:"button"}},[t._v("\n    "+t._s(t.context.addLabel)+"\n    "),n("input",{ref:"addFiles",class:t.context.classes.fileAddInput,attrs:{type:"file",multiple:""},on:{change:t.appendFiles}})]):t._e()],2):t._e()};Ut._withStripped=!0;var $t={name:"FormulateInputFile",components:{FormulateFiles:tt({render:Ut,staticRenderFns:[]},void 0,qt,void 0,!1,void 0,!1,void 0,void 0,void 0)},mixins:[Mt],data:function(){return{isOver:!1}},computed:{hasFiles:function(){return!!(this.context.model instanceof j&&this.context.model.files.length)}},created:function(){Array.isArray(this.context.model)&&"string"==typeof this.context.model[0][this.$formulate.getFileUrlKey()]&&(this.context.model=this.$formulate.createUpload({files:this.context.model},this.context))},mounted:function(){window&&this.context.preventWindowDrops&&(window.addEventListener("dragover",this.preventDefault),window.addEventListener("drop",this.preventDefault))},destroyed:function(){window&&this.context.preventWindowDrops&&(window.removeEventListener("dragover",this.preventDefault),window.removeEventListener("drop",this.preventDefault))},methods:{preventDefault:function(t){"INPUT"!==t.target.tagName&&"file"!==t.target.getAttribute("type")&&(t=t||event).preventDefault()},handleFile:function(){var t=this;this.isOver=!1;var e=this.$refs.file;e.files.length&&(this.context.model=this.$formulate.createUpload(e,this.context),this.$nextTick((function(){return t.attemptImmediateUpload()})))},attemptImmediateUpload:function(){var t=this;"live"===this.context.uploadBehavior&&this.context.model instanceof j&&this.context.hasValidationErrors().then((function(e){e||t.context.model.upload()}))},handleDragOver:function(t){t.preventDefault(),this.isOver=!0},handleDragLeave:function(t){t.preventDefault(),this.isOver=!1}}},Gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type,"data-has-files":t.hasFiles}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),n("div",{class:t.context.classes.uploadArea,attrs:{"data-has-files":t.hasFiles}},[n("input",t._g(t._b({ref:"file",attrs:{"data-is-drag-hover":t.isOver,type:"file"},on:{blur:t.context.blurHandler,change:t.handleFile,dragover:t.handleDragOver,dragleave:t.handleDragLeave}},"input",t.attributes,!1),t.$listeners)),t._v(" "),n("FormulateSlot",{attrs:{name:"uploadAreaMask",context:t.context,"has-files":t.hasFiles}},[n(t.context.slotComponents.uploadAreaMask,{directives:[{name:"show",rawName:"v-show",value:!t.hasFiles,expression:"!hasFiles"}],tag:"component",class:t.context.classes.uploadAreaMask,attrs:{"has-files":"div"!==t.context.slotComponents.uploadAreaMask&&t.hasFiles,"data-has-files":"div"===t.context.slotComponents.uploadAreaMask&&t.hasFiles}})],1),t._v(" "),t.hasFiles?n("FormulateFiles",{attrs:{files:t.context.model,"image-preview":"image"===t.context.type&&"preview"===t.context.imageBehavior,context:t.context}}):t._e()],1),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};Gt._withStripped=!0;var Ht=tt({render:Gt,staticRenderFns:[]},void 0,$t,void 0,!1,void 0,!1,void 0,void 0,void 0),Wt={props:{context:{type:Object,required:!0},removeItem:{type:Function,required:!0},index:{type:Number,required:!0}}},Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.groupRepeatable},["after"===t.context.removePosition?t._t("default"):t._e(),t._v(" "),n("FormulateSlot",{attrs:{name:"remove",context:t.context,index:t.index,"remove-item":t.removeItem}},[n(t.context.slotComponents.remove,t._b({tag:"component",attrs:{context:t.context,index:t.index,"remove-item":t.removeItem}},"component",t.context.slotProps.remove,!1))],1),t._v(" "),"before"===t.context.removePosition?t._t("default"):t._e()],2)};Qt._withStripped=!0;var Yt=tt({render:Qt,staticRenderFns:[]},void 0,Wt,void 0,!1,void 0,!1,void 0,void 0,void 0);function Kt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===e.indexOf(r)&&(n[r]=t[r]);return n}var Xt={name:"FormulateInputGroup",props:{context:{type:Object,required:!0}},computed:{options:function(){return this.context.options||[]},subType:function(){return"group"===this.context.type?"grouping":"inputs"},optionsWithContext:function(){var t=this,e=this.context,n=e.attributes,r=(n.id,Kt(n,["id"])),i=(e.blurHandler,e.classification,e.component,e.getValidationErrors,e.hasLabel,e.hasValidationErrors,e.isSubField,e.isValid,e.labelPosition,e.options,e.performValidation,e.setErrors,e.slotComponents,e.slotProps,e.validationErrors,e.visibleValidationErrors,e.classes,e.showValidationErrors,e.rootEmit,e.help,e.pseudoProps,e.rules,e.model,Kt(e,["attributes","blurHandler","classification","component","getValidationErrors","hasLabel","hasValidationErrors","isSubField","isValid","labelPosition","options","performValidation","setErrors","slotComponents","slotProps","validationErrors","visibleValidationErrors","classes","showValidationErrors","rootEmit","help","pseudoProps","rules","model"]));return this.options.map((function(e){return t.groupItemContext(i,e,r)}))},totalItems:function(){return Array.isArray(this.context.model)&&this.context.model.length>this.context.minimum?this.context.model.length:this.context.minimum||1},canAddMore:function(){return this.context.repeatable&&this.totalItems<this.context.limit},labelledBy:function(){return this.context.label&&this.context.id+"_label"}},methods:{addItem:function(){if(Array.isArray(this.context.model))for(var t=this.context.minimum-this.context.model.length+1,e=Math.max(t,1),n=0;n<e;n++)this.context.model.push(A({}));else this.context.model=new Array(this.totalItems+1).fill("").map((function(){return A({})}));this.context.rootEmit("repeatableAdded",this.context.model)},groupItemContext:function(t,e,n){return Object.assign({},t,e,n,{isGrouped:!0},t.hasGivenName?{}:{name:!0})}}},Jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-is-repeatable":t.context.repeatable,role:"group","aria-labelledby":t.labelledBy}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),"grouping"!==t.subType?t._l(t.optionsWithContext,(function(e){return n("FormulateInput",t._b({key:e.id,staticClass:"formulate-input-group-item",attrs:{"disable-errors":!0,"prevent-deregister":!0},on:{blur:t.context.blurHandler},model:{value:t.context.model,callback:function(e){t.$set(t.context,"model",e)},expression:"context.model"}},"FormulateInput",e,!1))})):[n("FormulateGrouping",{attrs:{context:t.context}},[t._t("default")],2),t._v(" "),t.canAddMore?n("FormulateSlot",{attrs:{name:"addmore",context:t.context,"add-more":t.addItem}},[n(t.context.slotComponents.addMore,t._b({tag:"component",attrs:{context:t.context,"add-more":t.addItem},on:{add:t.addItem}},"component",t.context.slotProps.addMore,!1))],1):t._e()],t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],2)};Jt._withStripped=!0;var Zt=tt({render:Jt,staticRenderFns:[]},void 0,Xt,void 0,!1,void 0,!1,void 0,void 0,void 0),te={name:"FormulateInputButton",mixins:[Mt]},ee=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),n("button",t._g(t._b({attrs:{type:t.type}},"button",t.attributes,!1),t.$listeners),[t._t("default",[n(t.context.slotComponents.buttonContent,{tag:"component",attrs:{context:t.context}})],{context:t.context})],2),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};ee._withStripped=!0;var ne=tt({render:ee,staticRenderFns:[]},void 0,te,void 0,!1,void 0,!1,void 0,void 0,void 0),re={name:"FormulateInputSelect",mixins:[Mt],computed:{options:function(){return this.context.options||{}},optionGroups:function(){return this.context.optionGroups||!1},placeholderSelected:function(){return!(this.hasValue||!this.context.attributes||!this.context.attributes.placeholder)}}},ie=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type,"data-multiple":t.attributes&&void 0!==t.attributes.multiple}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),n("select",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{"data-placeholder-selected":t.placeholderSelected},on:{blur:t.context.blurHandler,change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.context,"model",e.target.multiple?n:n[0])}}},"select",t.attributes,!1),t.$listeners),[t.context.placeholder?n("option",{attrs:{value:"",hidden:"hidden",disabled:""},domProps:{selected:!t.hasValue}},[t._v("\n      "+t._s(t.context.placeholder)+"\n    ")]):t._e(),t._v(" "),t.optionGroups?t._l(t.optionGroups,(function(e,r){return n("optgroup",{key:r,attrs:{label:r}},t._l(e,(function(e){return n("option",t._b({key:e.id,attrs:{disabled:!!e.disabled},domProps:{value:e.value,textContent:t._s(e.label)}},"option",e.attributes||e.attrs||{},!1))})),0)})):t._l(t.options,(function(e){return n("option",t._b({key:e.id,attrs:{disabled:!!e.disabled},domProps:{value:e.value,textContent:t._s(e.label)}},"option",e.attributes||e.attrs||{},!1))}))],2),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};ie._withStripped=!0;var oe=tt({render:ie,staticRenderFns:[]},void 0,re,void 0,!1,void 0,!1,void 0,void 0,void 0),ae={name:"FormulateInputSlider",mixins:[Mt]},se=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":t.context.type}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),"checkbox"===t.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.context.model)?t._i(t.context.model,null)>-1:t.context.model},on:{blur:t.context.blurHandler,change:function(e){var n=t.context.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&t.$set(t.context,"model",n.concat([null])):o>-1&&t.$set(t.context,"model",n.slice(0,o).concat(n.slice(o+1)))}else t.$set(t.context,"model",i)}}},"input",t.attributes,!1),t.$listeners)):"radio"===t.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:"radio"},domProps:{checked:t._q(t.context.model,null)},on:{blur:t.context.blurHandler,change:function(e){return t.$set(t.context,"model",null)}}},"input",t.attributes,!1),t.$listeners)):n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],attrs:{type:t.type},domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"input",t.attributes,!1),t.$listeners)),t._v(" "),t.context.showValue?n("div",{class:t.context.classes.rangeValue,domProps:{textContent:t._s(t.context.model)}}):t._e(),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};se._withStripped=!0;var ue=tt({render:se,staticRenderFns:[]},void 0,ae,void 0,!1,void 0,!1,void 0,void 0,void 0),le={props:{context:{type:Object,required:!0}}},ce=function(){var t=this.$createElement;return(this._self._c||t)("span",{class:"formulate-input-element--"+this.context.type+"--label",domProps:{textContent:this._s(this.context.value||this.context.label||this.context.name||"Submit")}})};ce._withStripped=!0;var fe=tt({render:ce,staticRenderFns:[]},void 0,le,void 0,!1,void 0,!1,void 0,void 0,void 0),he={name:"FormulateInputTextArea",mixins:[Mt]},pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.context.classes.element,attrs:{"data-type":"textarea"}},[n("FormulateSlot",{attrs:{name:"prefix",context:t.context}},[t.context.slotComponents.prefix?n(t.context.slotComponents.prefix,{tag:"component",attrs:{context:t.context}}):t._e()],1),t._v(" "),n("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.context.model,expression:"context.model"}],domProps:{value:t.context.model},on:{blur:t.context.blurHandler,input:function(e){e.target.composing||t.$set(t.context,"model",e.target.value)}}},"textarea",t.attributes,!1),t.$listeners)),t._v(" "),n("FormulateSlot",{attrs:{name:"suffix",context:t.context}},[t.context.slotComponents.suffix?n(t.context.slotComponents.suffix,{tag:"component",attrs:{context:t.context}}):t._e()],1)],1)};pe._withStripped=!0;var de=tt({render:pe,staticRenderFns:[]},void 0,he,void 0,!1,void 0,!1,void 0,void 0,void 0),me={provide:function(){var t=this;return Object.assign({},J(this,["getFormValues"]),{formulateSetter:function(e,n){return t.setGroupValue(e,n)}})},inject:{registerProvider:"registerProvider",deregisterProvider:"deregisterProvider"},props:{index:{type:Number,required:!0},context:{type:Object,required:!0},uuid:{type:String,required:!0},errors:{type:Object,required:!0}},data:function(){return Object.assign({},Y(this),{isGrouping:!0})},computed:Object.assign({},K(),{mergedFieldErrors:function(){return this.errors}}),watch:Object.assign({},{mergedFieldErrors:{handler:function(t){this.errorObservers.filter((function(t){return"input"===t.type})).forEach((function(e){return e.callback(t[e.field]||[])}))},immediate:!0},mergedGroupErrors:{handler:function(t){this.errorObservers.filter((function(t){return"group"===t.type})).forEach((function(e){return e.callback(t[e.field]||{})}))},immediate:!0}},{"context.model":{handler:function(t){v(t[this.index],this.proxy,!0)||this.setValues(t[this.index])},deep:!0}}),created:function(){this.applyInitialValues(),this.registerProvider(this)},beforeDestroy:function(){this.preventCleanup=!0,this.deregisterProvider(this)},methods:Object.assign({},X(),{setGroupValue:function(t,e){v(this.proxy[t],e,!0)||this.setFieldValue(t,e)},removeItem:function(){this.$emit("remove",this.index)}})},ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("FormulateSlot",{attrs:{name:"repeatable",context:t.context,index:t.index,"remove-item":t.removeItem}},[n(t.context.slotComponents.repeatable,t._b({tag:"component",attrs:{context:t.context,index:t.index,"remove-item":t.removeItem}},"component",t.context.slotProps.repeatable,!1),[n("FormulateSlot",{attrs:{context:t.context,index:t.index,name:"default"}})],1)],1)};ve._withStripped=!0;var ye=tt({render:ve,staticRenderFns:[]},void 0,me,void 0,!1,void 0,!1,void 0,void 0,void 0),ge={props:{index:{type:Number,default:null},context:{type:Object,required:!0},removeItem:{type:Function,required:!0}}},be=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.context.repeatable?n("a",{class:t.context.classes.groupRepeatableRemove,attrs:{"data-disabled":t.context.model.length<=t.context.minimum,role:"button"},domProps:{textContent:t._s(t.context.removeLabel)},on:{click:function(e){return e.preventDefault(),t.removeItem(e)},keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.removeItem(e)}}}):t._e()};be._withStripped=!0;var _e=tt({render:be,staticRenderFns:[]},void 0,ge,void 0,!1,void 0,!1,void 0,void 0,void 0),we=function(){this.options={},this.defaults={components:{FormulateSlot:G,FormulateForm:it,FormulateFile:dt,FormulateHelp:_t,FormulateLabel:Tt,FormulateInput:rt,FormulateErrors:yt,FormulateSchema:H,FormulateAddMore:It,FormulateGrouping:kt,FormulateInputBox:Ft,FormulateInputText:zt,FormulateInputFile:Ht,FormulateErrorList:Nt,FormulateRepeatable:Yt,FormulateInputGroup:Zt,FormulateInputButton:ne,FormulateInputSelect:oe,FormulateInputSlider:ue,FormulateButtonContent:fe,FormulateInputTextArea:de,FormulateRepeatableRemove:_e,FormulateRepeatableProvider:ye},slotComponents:{addMore:"FormulateAddMore",buttonContent:"FormulateButtonContent",errorList:"FormulateErrorList",errors:"FormulateErrors",file:"FormulateFile",help:"FormulateHelp",label:"FormulateLabel",prefix:!1,remove:"FormulateRepeatableRemove",repeatable:"FormulateRepeatable",suffix:!1,uploadAreaMask:"div"},slotProps:{},library:d,rules:F,mimes:R,locale:!1,uploader:U,uploadUrl:!1,fileUrlKey:"url",uploadJustCompleteDuration:1e3,errorHandler:function(t){return t},plugins:[f],locales:{},failedValidation:function(){return!1},idPrefix:"formulate-",baseClasses:function(t){return t},coreClasses:z,classes:{},useInputDecorators:!0,validationNameStrategy:!1},this.registry=new Map,this.idRegistry={}};we.prototype.install=function(t,e){var n=this;t.prototype.$formulate=this,this.options=this.defaults;var r=this.defaults.plugins;for(var i in e&&Array.isArray(e.plugins)&&e.plugins.length&&(r=r.concat(e.plugins)),r.forEach((function(t){return"function"==typeof t?t(n):null})),this.extend(e||{}),this.options.components)t.component(i,this.options.components[i])},we.prototype.nextId=function(t){var e=t.$route&&t.$route.path&&t.$route.path?t.$route.path.replace(/[/\\.\s]/g,"-"):"global";return Object.prototype.hasOwnProperty.call(this.idRegistry,e)||(this.idRegistry[e]=0),""+this.options.idPrefix+e+"-"+ ++this.idRegistry[e]},we.prototype.extend=function(t){if("object"==typeof t)return this.options=this.merge(this.options,t),this;throw new Error("Formulate.extend expects an object, was "+typeof t)},we.prototype.merge=function(t,e,n){void 0===n&&(n=!0);var i={};for(var r in t)e.hasOwnProperty(r)?o(e[r])&&o(t[r])?i[r]=this.merge(t[r],e[r],n):n&&Array.isArray(t[r])&&Array.isArray(e[r])?i[r]=t[r].concat(e[r]):i[r]=e[r]:i[r]=t[r];for(var s in e)i.hasOwnProperty(s)||(i[s]=e[s]);return i},we.prototype.classify=function(t){return this.options.library.hasOwnProperty(t)?this.options.library[t].classification:"unknown"},we.prototype.classes=function(t){var e=this,n=this.options.coreClasses(t),r=this.options.baseClasses(n,t);return Object.keys(r).reduce((function(n,i){var o,s=V(r[i],e.options.classes[i],t);return s=function(t,e,n,r){return Object.keys(N).reduce((function(e,i){if(N[i](r)){var o=""+t+_(i),s=o+"Class";n[o]&&(e=V(e,"string"==typeof n[o]?w(n[o]):n[o],r)),r[s]&&(e=V(e,"string"==typeof r[s]?w(r[s]):r[o+"Class"],r))}return e}),e)}(i,s=V(s,t[i+"Class"],t),e.options.classes,t),Object.assign(n,((o={})[i]=s,o))}),{})},we.prototype.typeProps=function(t){var e=function(t){return Object.keys(t).reduce((function(e,n){return Array.isArray(t[n])?e.concat(t[n]):e}),[])},n=e(this.options.slotProps);return this.options.library[t]?n.concat(e(this.options.library[t].slotProps||{})):n},we.prototype.slotProps=function(t,e,n){var r=Array.isArray(this.options.slotProps[e])?this.options.slotProps[e]:[],i=this.options.library[t];return i&&i.slotProps&&Array.isArray(i.slotProps[e])&&(r=r.concat(i.slotProps[e])),r.reduce((function(t,e){var r;return Object.assign(t,((r={})[e]=n[e],r))}),{})},we.prototype.component=function(t){return!!this.options.library.hasOwnProperty(t)&&this.options.library[t].component},we.prototype.slotComponent=function(t,e){var n=this.options.library[t];return n&&n.slotComponents&&n.slotComponents[e]?n.slotComponents[e]:this.options.slotComponents[e]},we.prototype.rules=function(t){return void 0===t&&(t={}),Object.assign({},this.options.rules,t)},we.prototype.i18n=function(t){if(t.$i18n)switch(typeof t.$i18n.locale){case"string":return t.$i18n.locale;case"function":return t.$i18n.locale()}return!1},we.prototype.getLocale=function(t){var e=this;return this.selectedLocale||(this.selectedLocale=[this.options.locale,this.i18n(t),"en"].reduce((function(t,n){if(t)return t;if(n){var r=function(t){return t.split("-").reduce((function(t,e){return t.length&&t.unshift(t[0]+"-"+e),t.length?t:[e]}),[])}(n).find((function(t){return k(e.options.locales,t)}));r&&(t=r)}return t}),!1)),this.selectedLocale},we.prototype.setLocale=function(t){k(this.options.locales,t)&&(this.options.locale=t,this.selectedLocale=t,this.registry.forEach((function(t,e){t.hasValidationErrors()})))},we.prototype.validationMessage=function(t,e,n){var r=this.options.locales[this.getLocale(n)];return r.hasOwnProperty(t)?r[t](e):r.hasOwnProperty("default")?r.default(e):"Invalid field value"},we.prototype.register=function(t){"FormulateForm"===t.$options.name&&t.name&&this.registry.set(t.name,t)},we.prototype.deregister=function(t){"FormulateForm"===t.$options.name&&t.name&&this.registry.has(t.name)&&this.registry.delete(t.name)},we.prototype.handle=function(t,e,n){void 0===n&&(n=!1);var r=n?t:this.options.errorHandler(t,e);return e&&this.registry.has(e)&&this.registry.get(e).applyErrors({formErrors:w(r.formErrors),inputErrors:r.inputErrors||{}}),r},we.prototype.reset=function(t,e){void 0===e&&(e={}),this.resetValidation(t),this.setValues(t,e)},we.prototype.submit=function(t){this.registry.get(t).formSubmitted()},we.prototype.resetValidation=function(t){var e=this.registry.get(t);e.hideErrors(t),e.namedErrors=[],e.namedFieldErrors={}},we.prototype.setValues=function(t,e){e&&!Array.isArray(e)&&"object"==typeof e&&this.registry.get(t).setValues(Object.assign({},e))},we.prototype.getUploader=function(){return this.options.uploader||!1},we.prototype.getUploadUrl=function(){return this.options.uploadUrl||!1},we.prototype.getFileUrlKey=function(){return this.options.fileUrlKey||"url"},we.prototype.createUpload=function(t,e){return new j(t,e,this.options)},we.prototype.failedValidation=function(t){return this.options.failedValidation(this)};var xe=new we;e.a=xe},,,,function(t,e,n){(function(t){t.installComponents=function(component,t){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||{},t)n.components[i]=n.components[i]||t[i];n.functional&&function(component,t){if(component.exports[e])return;component.exports[e]=!0;var n=component.exports.render;component.exports.render=function(e,r){return n(e,Object.assign({},r,{_c:function(e,a,b){return r._c(t[e]||e,a,b)}}))}}(component,n.components)};var e="_functionalComponents"}).call(this,n(36))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var content=n(546);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(80).default)("4f857918",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(79)(!1);r.push([t.i,"/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}",""]),t.exports=r},function(t,e,n){var content=n(548);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(80).default)("0667d9c0",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(79)(!1);r.push([t.i,'[data-aos][data-aos][data-aos-duration="50"],body[data-aos-duration="50"] [data-aos]{transition-duration:50ms}[data-aos][data-aos][data-aos-delay="50"],body[data-aos-delay="50"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="50"].aos-animate,body[data-aos-delay="50"] [data-aos].aos-animate{transition-delay:50ms}[data-aos][data-aos][data-aos-duration="100"],body[data-aos-duration="100"] [data-aos]{transition-duration:.1s}[data-aos][data-aos][data-aos-delay="100"],body[data-aos-delay="100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="100"].aos-animate,body[data-aos-delay="100"] [data-aos].aos-animate{transition-delay:.1s}[data-aos][data-aos][data-aos-duration="150"],body[data-aos-duration="150"] [data-aos]{transition-duration:.15s}[data-aos][data-aos][data-aos-delay="150"],body[data-aos-delay="150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="150"].aos-animate,body[data-aos-delay="150"] [data-aos].aos-animate{transition-delay:.15s}[data-aos][data-aos][data-aos-duration="200"],body[data-aos-duration="200"] [data-aos]{transition-duration:.2s}[data-aos][data-aos][data-aos-delay="200"],body[data-aos-delay="200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="200"].aos-animate,body[data-aos-delay="200"] [data-aos].aos-animate{transition-delay:.2s}[data-aos][data-aos][data-aos-duration="250"],body[data-aos-duration="250"] [data-aos]{transition-duration:.25s}[data-aos][data-aos][data-aos-delay="250"],body[data-aos-delay="250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="250"].aos-animate,body[data-aos-delay="250"] [data-aos].aos-animate{transition-delay:.25s}[data-aos][data-aos][data-aos-duration="300"],body[data-aos-duration="300"] [data-aos]{transition-duration:.3s}[data-aos][data-aos][data-aos-delay="300"],body[data-aos-delay="300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="300"].aos-animate,body[data-aos-delay="300"] [data-aos].aos-animate{transition-delay:.3s}[data-aos][data-aos][data-aos-duration="350"],body[data-aos-duration="350"] [data-aos]{transition-duration:.35s}[data-aos][data-aos][data-aos-delay="350"],body[data-aos-delay="350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="350"].aos-animate,body[data-aos-delay="350"] [data-aos].aos-animate{transition-delay:.35s}[data-aos][data-aos][data-aos-duration="400"],body[data-aos-duration="400"] [data-aos]{transition-duration:.4s}[data-aos][data-aos][data-aos-delay="400"],body[data-aos-delay="400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="400"].aos-animate,body[data-aos-delay="400"] [data-aos].aos-animate{transition-delay:.4s}[data-aos][data-aos][data-aos-duration="450"],body[data-aos-duration="450"] [data-aos]{transition-duration:.45s}[data-aos][data-aos][data-aos-delay="450"],body[data-aos-delay="450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="450"].aos-animate,body[data-aos-delay="450"] [data-aos].aos-animate{transition-delay:.45s}[data-aos][data-aos][data-aos-duration="500"],body[data-aos-duration="500"] [data-aos]{transition-duration:.5s}[data-aos][data-aos][data-aos-delay="500"],body[data-aos-delay="500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="500"].aos-animate,body[data-aos-delay="500"] [data-aos].aos-animate{transition-delay:.5s}[data-aos][data-aos][data-aos-duration="550"],body[data-aos-duration="550"] [data-aos]{transition-duration:.55s}[data-aos][data-aos][data-aos-delay="550"],body[data-aos-delay="550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="550"].aos-animate,body[data-aos-delay="550"] [data-aos].aos-animate{transition-delay:.55s}[data-aos][data-aos][data-aos-duration="600"],body[data-aos-duration="600"] [data-aos]{transition-duration:.6s}[data-aos][data-aos][data-aos-delay="600"],body[data-aos-delay="600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="600"].aos-animate,body[data-aos-delay="600"] [data-aos].aos-animate{transition-delay:.6s}[data-aos][data-aos][data-aos-duration="650"],body[data-aos-duration="650"] [data-aos]{transition-duration:.65s}[data-aos][data-aos][data-aos-delay="650"],body[data-aos-delay="650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="650"].aos-animate,body[data-aos-delay="650"] [data-aos].aos-animate{transition-delay:.65s}[data-aos][data-aos][data-aos-duration="700"],body[data-aos-duration="700"] [data-aos]{transition-duration:.7s}[data-aos][data-aos][data-aos-delay="700"],body[data-aos-delay="700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="700"].aos-animate,body[data-aos-delay="700"] [data-aos].aos-animate{transition-delay:.7s}[data-aos][data-aos][data-aos-duration="750"],body[data-aos-duration="750"] [data-aos]{transition-duration:.75s}[data-aos][data-aos][data-aos-delay="750"],body[data-aos-delay="750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="750"].aos-animate,body[data-aos-delay="750"] [data-aos].aos-animate{transition-delay:.75s}[data-aos][data-aos][data-aos-duration="800"],body[data-aos-duration="800"] [data-aos]{transition-duration:.8s}[data-aos][data-aos][data-aos-delay="800"],body[data-aos-delay="800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="800"].aos-animate,body[data-aos-delay="800"] [data-aos].aos-animate{transition-delay:.8s}[data-aos][data-aos][data-aos-duration="850"],body[data-aos-duration="850"] [data-aos]{transition-duration:.85s}[data-aos][data-aos][data-aos-delay="850"],body[data-aos-delay="850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="850"].aos-animate,body[data-aos-delay="850"] [data-aos].aos-animate{transition-delay:.85s}[data-aos][data-aos][data-aos-duration="900"],body[data-aos-duration="900"] [data-aos]{transition-duration:.9s}[data-aos][data-aos][data-aos-delay="900"],body[data-aos-delay="900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="900"].aos-animate,body[data-aos-delay="900"] [data-aos].aos-animate{transition-delay:.9s}[data-aos][data-aos][data-aos-duration="950"],body[data-aos-duration="950"] [data-aos]{transition-duration:.95s}[data-aos][data-aos][data-aos-delay="950"],body[data-aos-delay="950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="950"].aos-animate,body[data-aos-delay="950"] [data-aos].aos-animate{transition-delay:.95s}[data-aos][data-aos][data-aos-duration="1000"],body[data-aos-duration="1000"] [data-aos]{transition-duration:1s}[data-aos][data-aos][data-aos-delay="1000"],body[data-aos-delay="1000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1000"].aos-animate,body[data-aos-delay="1000"] [data-aos].aos-animate{transition-delay:1s}[data-aos][data-aos][data-aos-duration="1050"],body[data-aos-duration="1050"] [data-aos]{transition-duration:1.05s}[data-aos][data-aos][data-aos-delay="1050"],body[data-aos-delay="1050"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1050"].aos-animate,body[data-aos-delay="1050"] [data-aos].aos-animate{transition-delay:1.05s}[data-aos][data-aos][data-aos-duration="1100"],body[data-aos-duration="1100"] [data-aos]{transition-duration:1.1s}[data-aos][data-aos][data-aos-delay="1100"],body[data-aos-delay="1100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1100"].aos-animate,body[data-aos-delay="1100"] [data-aos].aos-animate{transition-delay:1.1s}[data-aos][data-aos][data-aos-duration="1150"],body[data-aos-duration="1150"] [data-aos]{transition-duration:1.15s}[data-aos][data-aos][data-aos-delay="1150"],body[data-aos-delay="1150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1150"].aos-animate,body[data-aos-delay="1150"] [data-aos].aos-animate{transition-delay:1.15s}[data-aos][data-aos][data-aos-duration="1200"],body[data-aos-duration="1200"] [data-aos]{transition-duration:1.2s}[data-aos][data-aos][data-aos-delay="1200"],body[data-aos-delay="1200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1200"].aos-animate,body[data-aos-delay="1200"] [data-aos].aos-animate{transition-delay:1.2s}[data-aos][data-aos][data-aos-duration="1250"],body[data-aos-duration="1250"] [data-aos]{transition-duration:1.25s}[data-aos][data-aos][data-aos-delay="1250"],body[data-aos-delay="1250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1250"].aos-animate,body[data-aos-delay="1250"] [data-aos].aos-animate{transition-delay:1.25s}[data-aos][data-aos][data-aos-duration="1300"],body[data-aos-duration="1300"] [data-aos]{transition-duration:1.3s}[data-aos][data-aos][data-aos-delay="1300"],body[data-aos-delay="1300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1300"].aos-animate,body[data-aos-delay="1300"] [data-aos].aos-animate{transition-delay:1.3s}[data-aos][data-aos][data-aos-duration="1350"],body[data-aos-duration="1350"] [data-aos]{transition-duration:1.35s}[data-aos][data-aos][data-aos-delay="1350"],body[data-aos-delay="1350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1350"].aos-animate,body[data-aos-delay="1350"] [data-aos].aos-animate{transition-delay:1.35s}[data-aos][data-aos][data-aos-duration="1400"],body[data-aos-duration="1400"] [data-aos]{transition-duration:1.4s}[data-aos][data-aos][data-aos-delay="1400"],body[data-aos-delay="1400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1400"].aos-animate,body[data-aos-delay="1400"] [data-aos].aos-animate{transition-delay:1.4s}[data-aos][data-aos][data-aos-duration="1450"],body[data-aos-duration="1450"] [data-aos]{transition-duration:1.45s}[data-aos][data-aos][data-aos-delay="1450"],body[data-aos-delay="1450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1450"].aos-animate,body[data-aos-delay="1450"] [data-aos].aos-animate{transition-delay:1.45s}[data-aos][data-aos][data-aos-duration="1500"],body[data-aos-duration="1500"] [data-aos]{transition-duration:1.5s}[data-aos][data-aos][data-aos-delay="1500"],body[data-aos-delay="1500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1500"].aos-animate,body[data-aos-delay="1500"] [data-aos].aos-animate{transition-delay:1.5s}[data-aos][data-aos][data-aos-duration="1550"],body[data-aos-duration="1550"] [data-aos]{transition-duration:1.55s}[data-aos][data-aos][data-aos-delay="1550"],body[data-aos-delay="1550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1550"].aos-animate,body[data-aos-delay="1550"] [data-aos].aos-animate{transition-delay:1.55s}[data-aos][data-aos][data-aos-duration="1600"],body[data-aos-duration="1600"] [data-aos]{transition-duration:1.6s}[data-aos][data-aos][data-aos-delay="1600"],body[data-aos-delay="1600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1600"].aos-animate,body[data-aos-delay="1600"] [data-aos].aos-animate{transition-delay:1.6s}[data-aos][data-aos][data-aos-duration="1650"],body[data-aos-duration="1650"] [data-aos]{transition-duration:1.65s}[data-aos][data-aos][data-aos-delay="1650"],body[data-aos-delay="1650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1650"].aos-animate,body[data-aos-delay="1650"] [data-aos].aos-animate{transition-delay:1.65s}[data-aos][data-aos][data-aos-duration="1700"],body[data-aos-duration="1700"] [data-aos]{transition-duration:1.7s}[data-aos][data-aos][data-aos-delay="1700"],body[data-aos-delay="1700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1700"].aos-animate,body[data-aos-delay="1700"] [data-aos].aos-animate{transition-delay:1.7s}[data-aos][data-aos][data-aos-duration="1750"],body[data-aos-duration="1750"] [data-aos]{transition-duration:1.75s}[data-aos][data-aos][data-aos-delay="1750"],body[data-aos-delay="1750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1750"].aos-animate,body[data-aos-delay="1750"] [data-aos].aos-animate{transition-delay:1.75s}[data-aos][data-aos][data-aos-duration="1800"],body[data-aos-duration="1800"] [data-aos]{transition-duration:1.8s}[data-aos][data-aos][data-aos-delay="1800"],body[data-aos-delay="1800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1800"].aos-animate,body[data-aos-delay="1800"] [data-aos].aos-animate{transition-delay:1.8s}[data-aos][data-aos][data-aos-duration="1850"],body[data-aos-duration="1850"] [data-aos]{transition-duration:1.85s}[data-aos][data-aos][data-aos-delay="1850"],body[data-aos-delay="1850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1850"].aos-animate,body[data-aos-delay="1850"] [data-aos].aos-animate{transition-delay:1.85s}[data-aos][data-aos][data-aos-duration="1900"],body[data-aos-duration="1900"] [data-aos]{transition-duration:1.9s}[data-aos][data-aos][data-aos-delay="1900"],body[data-aos-delay="1900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1900"].aos-animate,body[data-aos-delay="1900"] [data-aos].aos-animate{transition-delay:1.9s}[data-aos][data-aos][data-aos-duration="1950"],body[data-aos-duration="1950"] [data-aos]{transition-duration:1.95s}[data-aos][data-aos][data-aos-delay="1950"],body[data-aos-delay="1950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1950"].aos-animate,body[data-aos-delay="1950"] [data-aos].aos-animate{transition-delay:1.95s}[data-aos][data-aos][data-aos-duration="2000"],body[data-aos-duration="2000"] [data-aos]{transition-duration:2s}[data-aos][data-aos][data-aos-delay="2000"],body[data-aos-delay="2000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2000"].aos-animate,body[data-aos-delay="2000"] [data-aos].aos-animate{transition-delay:2s}[data-aos][data-aos][data-aos-duration="2050"],body[data-aos-duration="2050"] [data-aos]{transition-duration:2.05s}[data-aos][data-aos][data-aos-delay="2050"],body[data-aos-delay="2050"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2050"].aos-animate,body[data-aos-delay="2050"] [data-aos].aos-animate{transition-delay:2.05s}[data-aos][data-aos][data-aos-duration="2100"],body[data-aos-duration="2100"] [data-aos]{transition-duration:2.1s}[data-aos][data-aos][data-aos-delay="2100"],body[data-aos-delay="2100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2100"].aos-animate,body[data-aos-delay="2100"] [data-aos].aos-animate{transition-delay:2.1s}[data-aos][data-aos][data-aos-duration="2150"],body[data-aos-duration="2150"] [data-aos]{transition-duration:2.15s}[data-aos][data-aos][data-aos-delay="2150"],body[data-aos-delay="2150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2150"].aos-animate,body[data-aos-delay="2150"] [data-aos].aos-animate{transition-delay:2.15s}[data-aos][data-aos][data-aos-duration="2200"],body[data-aos-duration="2200"] [data-aos]{transition-duration:2.2s}[data-aos][data-aos][data-aos-delay="2200"],body[data-aos-delay="2200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2200"].aos-animate,body[data-aos-delay="2200"] [data-aos].aos-animate{transition-delay:2.2s}[data-aos][data-aos][data-aos-duration="2250"],body[data-aos-duration="2250"] [data-aos]{transition-duration:2.25s}[data-aos][data-aos][data-aos-delay="2250"],body[data-aos-delay="2250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2250"].aos-animate,body[data-aos-delay="2250"] [data-aos].aos-animate{transition-delay:2.25s}[data-aos][data-aos][data-aos-duration="2300"],body[data-aos-duration="2300"] [data-aos]{transition-duration:2.3s}[data-aos][data-aos][data-aos-delay="2300"],body[data-aos-delay="2300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2300"].aos-animate,body[data-aos-delay="2300"] [data-aos].aos-animate{transition-delay:2.3s}[data-aos][data-aos][data-aos-duration="2350"],body[data-aos-duration="2350"] [data-aos]{transition-duration:2.35s}[data-aos][data-aos][data-aos-delay="2350"],body[data-aos-delay="2350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2350"].aos-animate,body[data-aos-delay="2350"] [data-aos].aos-animate{transition-delay:2.35s}[data-aos][data-aos][data-aos-duration="2400"],body[data-aos-duration="2400"] [data-aos]{transition-duration:2.4s}[data-aos][data-aos][data-aos-delay="2400"],body[data-aos-delay="2400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2400"].aos-animate,body[data-aos-delay="2400"] [data-aos].aos-animate{transition-delay:2.4s}[data-aos][data-aos][data-aos-duration="2450"],body[data-aos-duration="2450"] [data-aos]{transition-duration:2.45s}[data-aos][data-aos][data-aos-delay="2450"],body[data-aos-delay="2450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2450"].aos-animate,body[data-aos-delay="2450"] [data-aos].aos-animate{transition-delay:2.45s}[data-aos][data-aos][data-aos-duration="2500"],body[data-aos-duration="2500"] [data-aos]{transition-duration:2.5s}[data-aos][data-aos][data-aos-delay="2500"],body[data-aos-delay="2500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2500"].aos-animate,body[data-aos-delay="2500"] [data-aos].aos-animate{transition-delay:2.5s}[data-aos][data-aos][data-aos-duration="2550"],body[data-aos-duration="2550"] [data-aos]{transition-duration:2.55s}[data-aos][data-aos][data-aos-delay="2550"],body[data-aos-delay="2550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2550"].aos-animate,body[data-aos-delay="2550"] [data-aos].aos-animate{transition-delay:2.55s}[data-aos][data-aos][data-aos-duration="2600"],body[data-aos-duration="2600"] [data-aos]{transition-duration:2.6s}[data-aos][data-aos][data-aos-delay="2600"],body[data-aos-delay="2600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2600"].aos-animate,body[data-aos-delay="2600"] [data-aos].aos-animate{transition-delay:2.6s}[data-aos][data-aos][data-aos-duration="2650"],body[data-aos-duration="2650"] [data-aos]{transition-duration:2.65s}[data-aos][data-aos][data-aos-delay="2650"],body[data-aos-delay="2650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2650"].aos-animate,body[data-aos-delay="2650"] [data-aos].aos-animate{transition-delay:2.65s}[data-aos][data-aos][data-aos-duration="2700"],body[data-aos-duration="2700"] [data-aos]{transition-duration:2.7s}[data-aos][data-aos][data-aos-delay="2700"],body[data-aos-delay="2700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2700"].aos-animate,body[data-aos-delay="2700"] [data-aos].aos-animate{transition-delay:2.7s}[data-aos][data-aos][data-aos-duration="2750"],body[data-aos-duration="2750"] [data-aos]{transition-duration:2.75s}[data-aos][data-aos][data-aos-delay="2750"],body[data-aos-delay="2750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2750"].aos-animate,body[data-aos-delay="2750"] [data-aos].aos-animate{transition-delay:2.75s}[data-aos][data-aos][data-aos-duration="2800"],body[data-aos-duration="2800"] [data-aos]{transition-duration:2.8s}[data-aos][data-aos][data-aos-delay="2800"],body[data-aos-delay="2800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2800"].aos-animate,body[data-aos-delay="2800"] [data-aos].aos-animate{transition-delay:2.8s}[data-aos][data-aos][data-aos-duration="2850"],body[data-aos-duration="2850"] [data-aos]{transition-duration:2.85s}[data-aos][data-aos][data-aos-delay="2850"],body[data-aos-delay="2850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2850"].aos-animate,body[data-aos-delay="2850"] [data-aos].aos-animate{transition-delay:2.85s}[data-aos][data-aos][data-aos-duration="2900"],body[data-aos-duration="2900"] [data-aos]{transition-duration:2.9s}[data-aos][data-aos][data-aos-delay="2900"],body[data-aos-delay="2900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2900"].aos-animate,body[data-aos-delay="2900"] [data-aos].aos-animate{transition-delay:2.9s}[data-aos][data-aos][data-aos-duration="2950"],body[data-aos-duration="2950"] [data-aos]{transition-duration:2.95s}[data-aos][data-aos][data-aos-delay="2950"],body[data-aos-delay="2950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2950"].aos-animate,body[data-aos-delay="2950"] [data-aos].aos-animate{transition-delay:2.95s}[data-aos][data-aos][data-aos-duration="3000"],body[data-aos-duration="3000"] [data-aos]{transition-duration:3s}[data-aos][data-aos][data-aos-delay="3000"],body[data-aos-delay="3000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="3000"].aos-animate,body[data-aos-delay="3000"] [data-aos].aos-animate{transition-delay:3s}[data-aos]{pointer-events:none}[data-aos].aos-animate{pointer-events:auto}[data-aos][data-aos][data-aos-easing=linear],body[data-aos-easing=linear] [data-aos]{transition-timing-function:cubic-bezier(.25,.25,.75,.75)}[data-aos][data-aos][data-aos-easing=ease],body[data-aos-easing=ease] [data-aos]{transition-timing-function:ease}[data-aos][data-aos][data-aos-easing=ease-in],body[data-aos-easing=ease-in] [data-aos]{transition-timing-function:ease-in}[data-aos][data-aos][data-aos-easing=ease-out],body[data-aos-easing=ease-out] [data-aos]{transition-timing-function:ease-out}[data-aos][data-aos][data-aos-easing=ease-in-out],body[data-aos-easing=ease-in-out] [data-aos]{transition-timing-function:ease-in-out}[data-aos][data-aos][data-aos-easing=ease-in-back],body[data-aos-easing=ease-in-back] [data-aos]{transition-timing-function:cubic-bezier(.6,-.28,.735,.045)}[data-aos][data-aos][data-aos-easing=ease-out-back],body[data-aos-easing=ease-out-back] [data-aos]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}[data-aos][data-aos][data-aos-easing=ease-in-out-back],body[data-aos-easing=ease-in-out-back] [data-aos]{transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}[data-aos][data-aos][data-aos-easing=ease-in-sine],body[data-aos-easing=ease-in-sine] [data-aos]{transition-timing-function:cubic-bezier(.47,0,.745,.715)}[data-aos][data-aos][data-aos-easing=ease-out-sine],body[data-aos-easing=ease-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.39,.575,.565,1)}[data-aos][data-aos][data-aos-easing=ease-in-out-sine],body[data-aos-easing=ease-in-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.445,.05,.55,.95)}[data-aos][data-aos][data-aos-easing=ease-in-quad],body[data-aos-easing=ease-in-quad] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quad],body[data-aos-easing=ease-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quad],body[data-aos-easing=ease-in-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-cubic],body[data-aos-easing=ease-in-cubic] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-cubic],body[data-aos-easing=ease-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-cubic],body[data-aos-easing=ease-in-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-quart],body[data-aos-easing=ease-in-quart] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quart],body[data-aos-easing=ease-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quart],body[data-aos-easing=ease-in-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}@media screen{html:not(.no-js) [data-aos^=fade][data-aos^=fade]{opacity:0;transition-property:opacity,transform}html:not(.no-js) [data-aos^=fade][data-aos^=fade].aos-animate{opacity:1;transform:none}html:not(.no-js) [data-aos=fade-up]{transform:translate3d(0,100px,0)}html:not(.no-js) [data-aos=fade-down]{transform:translate3d(0,-100px,0)}html:not(.no-js) [data-aos=fade-right]{transform:translate3d(-100px,0,0)}html:not(.no-js) [data-aos=fade-left]{transform:translate3d(100px,0,0)}html:not(.no-js) [data-aos=fade-up-right]{transform:translate3d(-100px,100px,0)}html:not(.no-js) [data-aos=fade-up-left]{transform:translate3d(100px,100px,0)}html:not(.no-js) [data-aos=fade-down-right]{transform:translate3d(-100px,-100px,0)}html:not(.no-js) [data-aos=fade-down-left]{transform:translate3d(100px,-100px,0)}html:not(.no-js) [data-aos^=zoom][data-aos^=zoom]{opacity:0;transition-property:opacity,transform}html:not(.no-js) [data-aos^=zoom][data-aos^=zoom].aos-animate{opacity:1;transform:translateZ(0) scale(1)}html:not(.no-js) [data-aos=zoom-in]{transform:scale(.6)}html:not(.no-js) [data-aos=zoom-in-up]{transform:translate3d(0,100px,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-down]{transform:translate3d(0,-100px,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-right]{transform:translate3d(-100px,0,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-left]{transform:translate3d(100px,0,0) scale(.6)}html:not(.no-js) [data-aos=zoom-out]{transform:scale(1.2)}html:not(.no-js) [data-aos=zoom-out-up]{transform:translate3d(0,100px,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-down]{transform:translate3d(0,-100px,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-right]{transform:translate3d(-100px,0,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-left]{transform:translate3d(100px,0,0) scale(1.2)}html:not(.no-js) [data-aos^=slide][data-aos^=slide]{transition-property:transform;visibility:hidden}html:not(.no-js) [data-aos^=slide][data-aos^=slide].aos-animate{visibility:visible;transform:translateZ(0)}html:not(.no-js) [data-aos=slide-up]{transform:translate3d(0,100%,0)}html:not(.no-js) [data-aos=slide-down]{transform:translate3d(0,-100%,0)}html:not(.no-js) [data-aos=slide-right]{transform:translate3d(-100%,0,0)}html:not(.no-js) [data-aos=slide-left]{transform:translate3d(100%,0,0)}html:not(.no-js) [data-aos^=flip][data-aos^=flip]{-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:transform}html:not(.no-js) [data-aos=flip-left]{transform:perspective(2500px) rotateY(-100deg)}html:not(.no-js) [data-aos=flip-left].aos-animate{transform:perspective(2500px) rotateY(0)}html:not(.no-js) [data-aos=flip-right]{transform:perspective(2500px) rotateY(100deg)}html:not(.no-js) [data-aos=flip-right].aos-animate{transform:perspective(2500px) rotateY(0)}html:not(.no-js) [data-aos=flip-up]{transform:perspective(2500px) rotateX(-100deg)}html:not(.no-js) [data-aos=flip-up].aos-animate{transform:perspective(2500px) rotateX(0)}html:not(.no-js) [data-aos=flip-down]{transform:perspective(2500px) rotateX(100deg)}html:not(.no-js) [data-aos=flip-down].aos-animate{transform:perspective(2500px) rotateX(0)}}',""]),t.exports=r},,,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,,,,,,function(t,e,n){var content=n(568);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(80).default)("05831c5e",content,!0,{sourceMap:!1})},function(t,e,n){var r=n(79)(!1);r.push([t.i,'.cookieControl__Modal-enter-active,.cookieControl__Modal-leave-active{transition:opacity .25s}.cookieControl__Modal-enter,.cookieControl__Modal-leave-to{opacity:0}.cookieControl__Bar--center{top:50%;left:50%;transform:translate(-50%,-50%)}.cookieControl__Bar--bottom-full-enter-active,.cookieControl__Bar--bottom-full-leave-active,.cookieControl__Bar--bottom-left-enter-active,.cookieControl__Bar--bottom-left-leave-active,.cookieControl__Bar--bottom-right-enter-active,.cookieControl__Bar--bottom-right-leave-active,.cookieControl__Bar--center-enter-active,.cookieControl__Bar--center-leave-active,.cookieControl__Bar--top-full-enter-active,.cookieControl__Bar--top-full-leave-active,.cookieControl__Bar--top-left-enter-active,.cookieControl__Bar--top-left-leave-active,.cookieControl__Bar--top-right-enter-active,.cookieControl__Bar--top-right-leave-active{transition:transform .25s}.cookieControl__Bar--top-full-enter,.cookieControl__Bar--top-full-leave-to,.cookieControl__Bar--top-left-enter,.cookieControl__Bar--top-left-leave-to,.cookieControl__Bar--top-right-enter,.cookieControl__Bar--top-right-leave-to{transform:translateY(-100%)}.cookieControl__Bar--bottom-full-enter,.cookieControl__Bar--bottom-full-leave-to,.cookieControl__Bar--bottom-left-enter,.cookieControl__Bar--bottom-left-leave-to,.cookieControl__Bar--bottom-right-enter,.cookieControl__Bar--bottom-right-leave-to{transform:translateY(100%)}.cookieControl__Bar--center-enter,.cookieControl__Bar--center-leave-to{transform:translate(-50%,-50%) scale(.95)}.cookieControl{position:relative;z-index:100000}.cookieControl button{border:0;outline:0;font-size:16px;cursor:pointer;padding:12px 20px;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:background-color .2s,color .2s}.cookieControl__Bar{position:fixed;background-color:var(--cookie-control-barBackground);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif}.cookieControl__Bar h3,.cookieControl__Bar p{color:var(--cookie-control-barTextColor);max-width:900px}.cookieControl__Bar h3{margin:0;font-size:20px}.cookieControl__Bar p{font-size:16px;margin:5px 0 0}.cookieControl__Bar button{color:var(--cookie-control-barButtonColor);background-color:var(--cookie-control-barButtonBackground)}.cookieControl__Bar button:hover{color:var(--cookie-control-barButtonHoverColor);background-color:var(--cookie-control-barButtonHoverBackground)}.cookieControl__Bar button+button{margin-left:10px}.cookieControl__BarContainer{display:flex;padding:20px;align-items:flex-end;justify-content:space-between}.cookieControl__Bar--bottom-full,.cookieControl__Bar--top-full{left:0;right:0}.cookieControl__Bar--top-full{top:0}.cookieControl__Bar--bottom-full{bottom:0}.cookieControl__Bar--bottom-left p,.cookieControl__Bar--bottom-right p,.cookieControl__Bar--center p,.cookieControl__Bar--top-left p,.cookieControl__Bar--top-right p{max-width:400px}.cookieControl__Bar--bottom-left .cookieControl__BarContainer,.cookieControl__Bar--bottom-right .cookieControl__BarContainer,.cookieControl__Bar--center .cookieControl__BarContainer,.cookieControl__Bar--top-left .cookieControl__BarContainer,.cookieControl__Bar--top-right .cookieControl__BarContainer{flex-direction:column}.cookieControl__Bar--bottom-left .cookieControl__BarButtons,.cookieControl__Bar--bottom-right .cookieControl__BarButtons,.cookieControl__Bar--center .cookieControl__BarButtons,.cookieControl__Bar--top-left .cookieControl__BarButtons,.cookieControl__Bar--top-right .cookieControl__BarButtons{margin-top:20px}.cookieControl__Bar--top-left,.cookieControl__Bar--top-right{top:20px}.cookieControl__Bar--bottom-left,.cookieControl__Bar--bottom-right{bottom:20px}.cookieControl__Bar--bottom-left,.cookieControl__Bar--top-left{left:20px}.cookieControl__Bar--bottom-right,.cookieControl__Bar--top-right{right:20px}.cookieControl__BarButtons{display:flex}.cookieControl__Modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1;font-size:0;text-align:center}.cookieControl__Modal:before{content:"";min-height:100vh;display:inline-block;vertical-align:middle}.cookieControl__Modal:after{position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:-1;opacity:var(--cookie-control-modalOverlayOpacity);background-color:var(--cookie-control-modalOverlay)}.cookieControl__Modal>div{font-size:medium;padding-top:80px}.cookieControl__Modal button{color:var(--cookie-control-modalButtonColor);background-color:var(--cookie-control-modalButtonBackground)}.cookieControl__Modal button:hover{color:var(--cookie-control-modalButtonHoverColor);background-color:var(--cookie-control-modalButtonHoverBackground)}.cookieControl__ModalContent{position:relative;width:100%;padding:40px;max-width:550px;max-height:80vh;text-align:left;overflow-y:scroll;display:inline-block;vertical-align:middle;background-color:var(--cookie-control-modalBackground)}.cookieControl__ModalContent,.cookieControl__ModalContent :not(button){color:var(--cookie-control-modalTextColor)}.cookieControl__ModalContent h3{font-size:24px;margin:50px 0 25px}.cookieControl__ModalContent h3:first-of-type{margin-top:0}.cookieControl__ModalContent ul{padding:0;font-size:16px;list-style-type:none}.cookieControl__ModalContent ul ul{padding:5px 56px 0}.cookieControl__ModalContent ul ul li+li{margin-top:5px}.cookieControl__ModalContent li{align-items:center}.cookieControl__ModalContent li+li{margin-top:20px}.cookieControl__ModalContent input{display:none}.cookieControl__ModalContent input:checked+label{background-color:var(--cookie-control-checkboxActiveBackground)}.cookieControl__ModalContent input:checked+label:before{background-color:var(--cookie-control-checkboxActiveCircleBackground);transform:translate3d(100%,-50%,0)}.cookieControl__ModalContent input:checked:disabled+label{background-color:var(--cookie-control-checkboxDisabledBackground)}.cookieControl__ModalContent input:checked:disabled+label:before{background-color:var(--cookie-control-checkboxDisabledCircleBackground)}.cookieControl__ModalContent label{position:relative;min-width:36px;min-height:20px;font-size:0;display:block;margin-right:20px;border-radius:20px;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:background-color .2s;background-color:var(--cookie-control-checkboxInactiveBackground)}.cookieControl__ModalContent label:before{position:absolute;content:"";top:50%;left:3px;width:15px;height:15px;border-radius:50%;transition:transform .2s;transform:translate3d(0,-50%,0);background-color:var(--cookie-control-checkboxInactiveCircleBackground)}.cookieControl__ModalInputWrapper{display:flex;align-items:flex-start}.cookieControl__ModalCookieName{font-weight:700;text-transform:uppercase}.cookieControl__ModalCookieName span{font-weight:400;text-transform:none}.cookieControl__ModalClose{position:absolute;top:20px;right:20px}.cookieControl__ModalButtons{display:flex;margin-top:80px;align-items:flex-start}.cookieControl__ModalButtons button+button{margin-left:20px}.cookieControl__ModalUnsaved{position:absolute;left:50%;bottom:40px;margin:0;color:var(--cookie-control-modalUnsavedColor);font-size:14px;transform:translateX(-50%)}.cookieControl__BlockedIframe{padding:20px;border:2px solid #ddd}.cookieControl__BlockedIframe a,.cookieControl__BlockedIframe p{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif}@media screen and (max-width:768px){.cookieControl__Bar{flex-direction:column;left:0;right:0}.cookieControl__Bar h3,.cookieControl__Bar p{max-width:100%}.cookieControl__Bar--top-full,.cookieControl__Bar--top-left,.cookieControl__Bar--top-right{top:0}.cookieControl__Bar--bottom-full,.cookieControl__Bar--bottom-left,.cookieControl__Bar--bottom-right{bottom:0}.cookieControl__ModalContent{position:absolute;top:0;left:0;right:0;bottom:0;max-width:none;max-height:100%;padding:80px 20px 20px}.cookieControl__BarButtons{width:100%;margin-top:20px;justify-content:flex-end}.cookieControl__BarContainer{flex-direction:column}}.cookieControl__ControlButton{position:fixed;right:20px;bottom:20px;border:0;outline:0;width:40px;height:40px;cursor:pointer;min-width:40px;min-height:40px;border-radius:50%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:background-color .2s;box-shadow:0 0 10px rgba(0,0,0,.3);background:var(--cookie-control-controlButtonBackground)}.cookieControl__ControlButton svg{position:absolute;top:50%;left:50%;min-width:24px;min-height:24px;max-width:24px;max-height:24px;transition:color .2s;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translate(-50%,-50%);color:var(--cookie-control-controlButtonIconColor)}.cookieControl__ControlButton:hover{background-color:var(--cookie-control-controlButtonHoverBackground)}.cookieControl__ControlButton:hover svg{color:var(--cookie-control-controlButtonIconHoverColor)}',""]),t.exports=r},,,,,,,,,,function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";e.byteLength=function(t){var e=f(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,i,n=f(t),r=n[0],c=n[1],h=new l(function(t,e,n){return 3*(e+n)/4-n}(0,r,c)),d=0,m=c>0?r-4:r;for(i=0;i<m;i+=4)e=o[t.charCodeAt(i)]<<18|o[t.charCodeAt(i+1)]<<12|o[t.charCodeAt(i+2)]<<6|o[t.charCodeAt(i+3)],h[d++]=e>>16&255,h[d++]=e>>8&255,h[d++]=255&e;2===c&&(e=o[t.charCodeAt(i)]<<2|o[t.charCodeAt(i+1)]>>4,h[d++]=255&e);1===c&&(e=o[t.charCodeAt(i)]<<10|o[t.charCodeAt(i+1)]<<4|o[t.charCodeAt(i+2)]>>2,h[d++]=e>>8&255,h[d++]=255&e);return h},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,l=[],c=16383,i=0,f=n-o;i<f;i+=c)l.push(h(t,i,i+c>f?f:i+c));1===o?(e=t[n-1],l.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],l.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return l.join("")};for(var r=[],o=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,c=code.length;i<c;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function h(t,e,n){for(var o,l,output=[],i=e;i<n;i+=3)o=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),output.push(r[(l=o)>>18&63]+r[l>>12&63]+r[l>>6&63]+r[63&l]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var l,c,f=8*o-r-1,h=(1<<f)-1,d=h>>1,m=-7,i=n?o-1:0,v=n?-1:1,s=t[e+i];for(i+=v,l=s&(1<<-m)-1,s>>=-m,m+=f;m>0;l=256*l+t[e+i],i+=v,m-=8);for(c=l&(1<<-m)-1,l>>=-m,m+=r;m>0;c=256*c+t[e+i],i+=v,m-=8);if(0===l)l=1-d;else{if(l===h)return c?NaN:1/0*(s?-1:1);c+=Math.pow(2,r),l-=d}return(s?-1:1)*c*Math.pow(2,l-r)},e.write=function(t,e,n,r,o,l){var c,f,h,d=8*l-o-1,m=(1<<d)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:l-1,y=r?1:-1,s=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,c=m):(c=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-c))<1&&(c--,h*=2),(e+=c+v>=1?rt/h:rt*Math.pow(2,1-v))*h>=2&&(c++,h/=2),c+v>=m?(f=0,c=m):c+v>=1?(f=(e*h-1)*Math.pow(2,o),c+=v):(f=e*Math.pow(2,v-1)*Math.pow(2,o),c=0));o>=8;t[n+i]=255&f,i+=y,f/=256,o-=8);for(c=c<<o|f,d+=o;d>0;t[n+i]=255&c,i+=y,c/=256,d-=8);t[n+i-y]|=128*s}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){var n=Function.prototype.bind,r=Array.prototype.slice,o=Object.prototype.toString;function l(t){return t="[object "+t+"]",function(object){return o.call(object)===t}}e.bind=function(t,e){var o=r.call(arguments,2);return n?(o.unshift(e),n.apply(t,o)):function(){return t.apply(e,o.concat(r.call(arguments)))}},e.slice=function(object,t,e){return r.call(object,t,e)},e.toString=function(object){return o.call(object)},e.isNull=l("Null"),e.isDate=l("Date"),e.isMath=l("Math"),e.isJSON=l("JSON"),e.isError=l("Error"),e.isArray=Array.isArray||l("Array"),e.isObject=l("Object"),e.isRegExp=l("RegExp"),e.isNumber=l("Number"),e.isString=l("String"),e.isBoolean=l("Boolean"),e.isFunction=l("Function"),e.isArguments=l("Arguments"),e.isUndefined=l("Undefined"),e.isValid=function(object){return!e.isInvalid(object)},e.isInvalid=function(object){return e.isNull(object)||e.isUndefined(object)},e.isImmutable=function(object){return!e.isMutable(object)},e.isMutable=function(object){return object&&!e.isNumber(object)&&!e.isString(object)&&!e.isBoolean(object)},e.isEnumerable=function(object){return!!object&&(e.isNumber(object)?e.isInteger(object):e.isInteger(object.length)?object.length>=0:e.isEnumerableObject(object))},e.isEnumerableObject=function(object){for(var t in object)return!0;return!1},e.isEmpty=function(object){return e.isObject(object)?!e.isEnumerableObject(object):!e.isEnumerable(object)},e.isFiniteNumber=function(t){return e.isNumber(t)&&isFinite(t)},e.isInteger=function(t){return e.isFiniteNumber(t)&&Math.floor(t)===t},e.isVague=function(object){return object&&"object"==typeof object},e.isList=function(t){return e.isVague(t)&&e.isInteger(t.length)&&t.length>=0},e.isNaN=isNaN,e.nativeTypeOf=function(object){var t=object.toString(object);return t.substring(8,t.length-1)},e.typeOf=function(object){return e.isObject(object)?object.constructor.name||"Object":e.nativeTypeOf(object)},e.safeApply=function(t,n,r){return e.isFunction(t)?t.apply(r||this,n):void 0},e.enumerate=function(object,t,n,r){if(!object)return object;if(n=n||this,!r&&e.isFunction(object.forEach))return object.forEach(t,n);var o=0,l=object.length;if(e.isString(object))for(;o<l;o+=1)t.call(n,object.charAt(o),o,object);if(e.isList(object))for(;o<l;o+=1)t.call(n,object[o],o,object);else if(e.isInteger(object))for(object<0?(l=0,o=object):l=object;o<l;o+=1)t.call(n,o,Math.abs(o),object);else e.enumerateObject(object,t,n);return object},e.enumerateObject=function(object,t,e){var n;for(n in object)t.call(e,object[n],n,object);return object},e.assignAll=function(t,n,filter,r,o){return e.isMutable(t)?(e[o="enumerate"===o?o:"enumerateObject"](n,(function(n,o){e.safeApply(filter,arguments,r||t)||(t[o]=n)})),t):t},e.assignList=function(t,n,filter,r){return e.assignAll(t,n,filter,r,"enumerate")},e.assign=function(t,n,filter,r){return e.assignAll(t,n,(function(t,o){return!n.hasOwnProperty(o)||e.safeApply(filter,arguments,r||this)}),r)},e.toArray=function(object,t,n){return e.isArray()?e.isInteger(t)?e.slice(object,t,n):object:e.isArguments(object)||e.isString(object)?e.slice(object,t,n):e.isList(object)?(e.isInteger(n)||(n=object.length),t=t||0,e.assignList([],object,(function(e,i){return t>i||i>=n}))):void 0}},function(t,e,n){"use strict";var r=n(152),o=n(237),l=n(238).RedisError;function c(t,e){o(t,"The options argument is required"),o.strictEqual(typeof t,"object","The options argument has to be of type object"),Object.defineProperty(this,"message",{value:t.message||"",configurable:!0,writable:!0}),(e||void 0===e)&&Error.captureStackTrace(this,c);for(var n=Object.keys(t),r=n.pop();r;r=n.pop())this[r]=t[r]}function f(t){o(t,"The options argument is required"),o.strictEqual(typeof t,"object","The options argument has to be of type object"),c.call(this,t,false),Object.defineProperty(this,"message",{value:t.message||"",configurable:!0,writable:!0}),Error.captureStackTrace(this,f);for(var e=Object.keys(t),n=e.pop();n;n=e.pop())this[n]=t[n]}r.inherits(c,l),r.inherits(f,c),Object.defineProperty(c.prototype,"name",{value:"AbortError",configurable:!0,writable:!0}),Object.defineProperty(f.prototype,"name",{value:"AggregateError",configurable:!0,writable:!0}),t.exports={AbortError:c,AggregateError:f}},function(t,e,n){"use strict";const r=n(237),o=n(152);function l(t){Object.defineProperty(this,"message",{value:t||"",configurable:!0,writable:!0}),Error.captureStackTrace(this,this.constructor)}function c(t,e,n){r(e),r.strictEqual(typeof n,"number"),Object.defineProperty(this,"message",{value:t||"",configurable:!0,writable:!0});const o=Error.stackTraceLimit;Error.stackTraceLimit=2,Error.captureStackTrace(this,this.constructor),Error.stackTraceLimit=o,this.offset=n,this.buffer=e}function f(t){Object.defineProperty(this,"message",{value:t||"",configurable:!0,writable:!0});const e=Error.stackTraceLimit;Error.stackTraceLimit=2,Error.captureStackTrace(this,this.constructor),Error.stackTraceLimit=e}function h(t){Object.defineProperty(this,"message",{value:t||"",configurable:!0,writable:!0}),Error.captureStackTrace(this,this.constructor)}function d(t){Object.defineProperty(this,"message",{value:t||"",configurable:!0,writable:!0}),Error.captureStackTrace(this,this.constructor)}o.inherits(l,Error),Object.defineProperty(l.prototype,"name",{value:"RedisError",configurable:!0,writable:!0}),o.inherits(c,l),Object.defineProperty(c.prototype,"name",{value:"ParserError",configurable:!0,writable:!0}),o.inherits(f,l),Object.defineProperty(f.prototype,"name",{value:"ReplyError",configurable:!0,writable:!0}),o.inherits(h,l),Object.defineProperty(h.prototype,"name",{value:"AbortError",configurable:!0,writable:!0}),o.inherits(d,h),Object.defineProperty(d.prototype,"name",{value:"InterruptError",configurable:!0,writable:!0}),t.exports={RedisError:l,ParserError:c,ReplyError:f,AbortError:h,InterruptError:d}},function(t,e,n){"use strict";const r=n(237);class o extends Error{get name(){return this.constructor.name}}class l extends o{get name(){return this.constructor.name}}t.exports={RedisError:o,ParserError:class extends o{constructor(t,e,n){r(e),r.strictEqual(typeof n,"number");const o=Error.stackTraceLimit;Error.stackTraceLimit=2,super(t),Error.stackTraceLimit=o,this.offset=n,this.buffer=e}get name(){return this.constructor.name}},ReplyError:class extends o{constructor(t){const e=Error.stackTraceLimit;Error.stackTraceLimit=2,super(t),Error.stackTraceLimit=e}get name(){return this.constructor.name}},AbortError:l,InterruptError:class extends l{get name(){return this.constructor.name}}}},function(t,e,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,l=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var c=Number.isNaN||function(t){return t!=t};function f(){f.init.call(this)}t.exports=f,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,l),r(n)}function l(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}S(t,e,l,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&S(t,"error",e,n)}(t,o,{once:!0})}))},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var h=10;function d(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function m(t){return void 0===t._maxListeners?f.defaultMaxListeners:t._maxListeners}function v(t,e,n,r){var o,l,c,f;if(d(n),void 0===(l=t._events)?(l=t._events=Object.create(null),t._eventsCount=0):(void 0!==l.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),l=t._events),c=l[e]),void 0===c)c=l[e]=n,++t._eventsCount;else if("function"==typeof c?c=l[e]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(o=m(t))>0&&c.length>o&&!c.warned){c.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=c.length,f=h,console&&console.warn&&console.warn(f)}return t}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 _(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=y.bind(r);return o.listener=n,r.wrapFn=o,o}function w(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(o):E(o,o.length)}function x(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function E(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function S(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(l){r.once&&t.removeEventListener(e,o),n(l)}))}}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");h=t}}),f.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},f.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||c(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},f.prototype.getMaxListeners=function(){return m(this)},f.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var f=r[t];if(void 0===f)return!1;if("function"==typeof f)l(f,this,e);else{var h=f.length,d=E(f,h);for(i=0;i<h;++i)l(d[i],this,e)}return!0},f.prototype.addListener=function(t,e){return v(this,t,e,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(t,e){return v(this,t,e,!0)},f.prototype.once=function(t,e){return d(e),this.on(t,_(this,t,e)),this},f.prototype.prependOnceListener=function(t,e){return d(e),this.prependListener(t,_(this,t,e)),this},f.prototype.removeListener=function(t,e){var n,r,o,i,l;if(d(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){l=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,l||e)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(t){var e,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[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),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(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},f.prototype.listeners=function(t){return w(this,t,!0)},f.prototype.rawListeners=function(t){return w(this,t,!1)},f.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):x.call(t,e)},f.prototype.listenerCount=x,f.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";t.exports=n(589)},function(t,e,n){"use strict";const r=n(154).Buffer,o=new(0,n(590).StringDecoder),l=n(238),c=l.ReplyError,f=l.ParserError;var h=r.allocUnsafe(32768),d=0,m=null,v=0,y=0;function _(t){const e=t.offset,n=t.buffer,r=n.length-1;for(var o=e;o<r;)if(13===n[o++])return t.offset=o+1,!0===t.optionReturnBuffers?t.buffer.slice(e,o-1):t.buffer.toString("utf8",e,o-1)}function w(t){const e=t.buffer.length-1;for(var n=t.offset,r=0;n<e;){const e=t.buffer[n++];if(13===e)return t.offset=n+1,r;r=10*r+(e-48)}}function x(t,e,n){t.arrayCache.push(e),t.arrayPos.push(n)}function E(t){const e=t.arrayCache.pop();var n=t.arrayPos.pop();if(t.arrayCache.length){const r=E(t);if(void 0===r)return void x(t,e,n);e[n++]=r}return S(t,e,n)}function S(t,e,i){const n=t.buffer.length;for(;i<e.length;){const r=t.offset;if(t.offset>=n)return void x(t,e,i);const o=k(t,t.buffer[t.offset++]);if(void 0===o)return t.arrayCache.length||t.bufferCache.length||(t.offset=r),void x(t,e,i);e[i]=o,i++}return e}function k(t,e){switch(e){case 36:return function(t){const e=w(t);if(void 0===e)return;if(e<0)return null;const n=t.offset+e;if(n+2>t.buffer.length)return t.bigStrSize=n+2,t.totalChunkSize=t.buffer.length,void t.bufferCache.push(t.buffer);const r=t.offset;return t.offset=n+2,!0===t.optionReturnBuffers?t.buffer.slice(r,n):t.buffer.toString("utf8",r,n)}(t);case 43:return _(t);case 42:return function(t){const e=w(t);if(void 0===e)return;return e<0?null:S(t,new Array(e),0)}(t);case 58:return function(t){return!0===t.optionStringNumbers?function(t){const e=t.buffer.length-1;var n=t.offset,r=0,o="";for(45===t.buffer[n]&&(o+="-",n++);n<e;){var l=t.buffer[n++];if(13===l)return t.offset=n+1,0!==r&&(o+=r),o;r>429496728?(o+=10*r+(l-48),r=0):48===l&&0===r?o+=0:r=10*r+(l-48)}}(t):function(t){const e=t.buffer.length-1;var n=t.offset,r=0,o=1;for(45===t.buffer[n]&&(o=-1,n++);n<e;){const e=t.buffer[n++];if(13===e)return t.offset=n+1,o*r;r=10*r+(e-48)}}(t)}(t);case 45:return function(t){var e=_(t);if(void 0!==e)return!0===t.optionReturnBuffers&&(e=e.toString()),new c(e)}(t);default:return function(t,e){const n=new f("Protocol error, got "+JSON.stringify(String.fromCharCode(e))+" as reply type byte",JSON.stringify(t.buffer),t.offset);t.buffer=null,t.returnFatalError(n)}(t,e)}}function A(){if(h.length>51200)if(1===v||y>2*v){const t=Math.floor(h.length/10),e=t<d?d:t;d=0,h=h.slice(e,h.length)}else y++,v--;else clearInterval(m),v=0,y=0,m=null}function O(t){const e=t.bufferCache,n=t.offset,o=t.bigStrSize-n-2;var l=e.length,c=t.bigStrSize-t.totalChunkSize;if(t.offset=c,c<=2){if(2===l)return e[0].slice(n,e[0].length+c-2);l--,c=e[e.length-2].length+c}!function(t){if(h.length<t+d){const e=t>78643200?2:3;d>116391936&&(d=52428800),h=r.allocUnsafe(t*e+d),d=0,v++,null===m&&(m=setInterval(A,50))}}(o);const f=d;e[0].copy(h,f,n,e[0].length),d+=e[0].length-n;for(var i=1;i<l-1;i++)e[i].copy(h,d),d+=e[i].length;return e[i].copy(h,d,0,c-2),d+=c-2,h.slice(f,d)}t.exports=class{constructor(t){if(!t)throw new TypeError("Options are mandatory.");if("function"!=typeof t.returnError||"function"!=typeof t.returnReply)throw new TypeError("The returnReply and returnError options have to be functions.");this.setReturnBuffers(!!t.returnBuffers),this.setStringNumbers(!!t.stringNumbers),this.returnError=t.returnError,this.returnFatalError=t.returnFatalError||t.returnError,this.returnReply=t.returnReply,this.reset()}reset(){this.offset=0,this.buffer=null,this.bigStrSize=0,this.totalChunkSize=0,this.bufferCache=[],this.arrayCache=[],this.arrayPos=[]}setReturnBuffers(t){if("boolean"!=typeof t)throw new TypeError("The returnBuffers argument has to be a boolean");this.optionReturnBuffers=t}setStringNumbers(t){if("boolean"!=typeof t)throw new TypeError("The stringNumbers argument has to be a boolean");this.optionStringNumbers=t}execute(t){if(null===this.buffer)this.buffer=t,this.offset=0;else if(0===this.bigStrSize){const e=this.buffer.length,n=e-this.offset,o=r.allocUnsafe(n+t.length);if(this.buffer.copy(o,0,this.offset,e),t.copy(o,n,0,t.length),this.buffer=o,this.offset=0,this.arrayCache.length){const t=E(this);if(void 0===t)return;this.returnReply(t)}}else{if(!(this.totalChunkSize+t.length>=this.bigStrSize))return this.bufferCache.push(t),void(this.totalChunkSize+=t.length);this.bufferCache.push(t);var e=this.optionReturnBuffers?O(this):function(t){const e=t.bufferCache,n=t.offset;var r=e.length,l=t.bigStrSize-t.totalChunkSize;if(t.offset=l,l<=2){if(2===r)return e[0].toString("utf8",n,e[0].length+l-2);r--,l=e[e.length-2].length+l}for(var c=o.write(e[0].slice(n)),i=1;i<r-1;i++)c+=o.write(e[i]);return c+o.end(e[i].slice(0,l-2))}(this);if(this.bigStrSize=0,this.bufferCache=[],this.buffer=t,this.arrayCache.length&&(this.arrayCache[0][this.arrayPos[0]++]=e,void 0===(e=E(this))))return;this.returnReply(e)}for(;this.offset<this.buffer.length;){const t=this.offset,e=this.buffer[this.offset++],n=k(this,e);if(void 0===n)return void(this.arrayCache.length||this.bufferCache.length||(this.offset=t));45===e?this.returnError(n):this.returnReply(n)}this.buffer=null}}},function(t,e,n){"use strict";var r=n(591).Buffer,o=r.isEncoding||function(t){switch((t=""+t)&&t.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 l(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=h,this.end=d,e=4;break;case"utf8":this.fillLast=f,e=4;break;case"base64":this.text=m,this.end=v,e=3;break;default:return this.write=y,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function c(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function f(t){var p=this.lastTotal-this.lastNeed,e=function(t,e,p){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,p,0,t.length),void(this.lastNeed-=t.length))}function h(t,i){if((t.length-i)%2==0){var e=t.toString("utf16le",i);if(e){var n=e.charCodeAt(e.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",i,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function m(t,i){var e=(t.length-i)%3;return 0===e?t.toString("base64",i):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",i,t.length-e))}function v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function _(t){return t&&t.length?this.write(t):""}e.StringDecoder=l,l.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},l.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},l.prototype.text=function(t,i){var e=function(t,e,i){var n=e.length-1;if(n<i)return 0;var r=c(e[n]);if(r>=0)return r>0&&(t.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if((r=c(e[n]))>=0)return r>0&&(t.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if((r=c(e[n]))>=0)return r>0&&(2===r?r=0:t.lastNeed=r-3),r;return 0}(this,t,i);if(!this.lastNeed)return t.toString("utf8",i);this.lastTotal=e;var n=t.length-(e-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",i,n)},l.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){var r=n(154),o=r.Buffer;function l(t,e){for(var n in t)e[n]=t[n]}function c(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(l(r,e),e.Buffer=c),c.prototype=Object.create(o.prototype),l(o,c),c.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},c.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=o(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},c.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},c.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t){t.exports=JSON.parse('{"acl":{"arity":-2,"flags":["admin","noscript","loading","stale","skip_slowlog"],"keyStart":0,"keyStop":0,"step":0},"append":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"asking":{"arity":1,"flags":["fast"],"keyStart":0,"keyStop":0,"step":0},"auth":{"arity":-2,"flags":["noscript","loading","stale","skip_monitor","skip_slowlog","fast","no_auth"],"keyStart":0,"keyStop":0,"step":0},"bgrewriteaof":{"arity":1,"flags":["admin","noscript"],"keyStart":0,"keyStop":0,"step":0},"bgsave":{"arity":-1,"flags":["admin","noscript"],"keyStart":0,"keyStop":0,"step":0},"bitcount":{"arity":-2,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"bitfield":{"arity":-2,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"bitfield_ro":{"arity":-2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"bitop":{"arity":-4,"flags":["write","denyoom"],"keyStart":2,"keyStop":-1,"step":1},"bitpos":{"arity":-3,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"blmove":{"arity":6,"flags":["write","denyoom","noscript"],"keyStart":1,"keyStop":2,"step":1},"blpop":{"arity":-3,"flags":["write","noscript"],"keyStart":1,"keyStop":-2,"step":1},"brpop":{"arity":-3,"flags":["write","noscript"],"keyStart":1,"keyStop":-2,"step":1},"brpoplpush":{"arity":4,"flags":["write","denyoom","noscript"],"keyStart":1,"keyStop":2,"step":1},"bzpopmax":{"arity":-3,"flags":["write","noscript","fast"],"keyStart":1,"keyStop":-2,"step":1},"bzpopmin":{"arity":-3,"flags":["write","noscript","fast"],"keyStart":1,"keyStop":-2,"step":1},"client":{"arity":-2,"flags":["admin","noscript","random","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"cluster":{"arity":-2,"flags":["admin","random","stale"],"keyStart":0,"keyStop":0,"step":0},"command":{"arity":-1,"flags":["random","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"config":{"arity":-2,"flags":["admin","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"copy":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":2,"step":1},"dbsize":{"arity":1,"flags":["readonly","fast"],"keyStart":0,"keyStop":0,"step":0},"debug":{"arity":-2,"flags":["admin","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"decr":{"arity":2,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"decrby":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"del":{"arity":-2,"flags":["write"],"keyStart":1,"keyStop":-1,"step":1},"discard":{"arity":1,"flags":["noscript","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"dump":{"arity":2,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"echo":{"arity":2,"flags":["fast"],"keyStart":0,"keyStop":0,"step":0},"eval":{"arity":-3,"flags":["noscript","may_replicate","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"evalsha":{"arity":-3,"flags":["noscript","may_replicate","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"exec":{"arity":1,"flags":["noscript","loading","stale","skip_monitor","skip_slowlog"],"keyStart":0,"keyStop":0,"step":0},"exists":{"arity":-2,"flags":["readonly","fast"],"keyStart":1,"keyStop":-1,"step":1},"expire":{"arity":3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"expireat":{"arity":3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"failover":{"arity":-1,"flags":["admin","noscript","stale"],"keyStart":0,"keyStop":0,"step":0},"flushall":{"arity":-1,"flags":["write"],"keyStart":0,"keyStop":0,"step":0},"flushdb":{"arity":-1,"flags":["write"],"keyStart":0,"keyStop":0,"step":0},"geoadd":{"arity":-5,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"geodist":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"geohash":{"arity":-2,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"geopos":{"arity":-2,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"georadius":{"arity":-6,"flags":["write","denyoom","movablekeys"],"keyStart":1,"keyStop":1,"step":1},"georadius_ro":{"arity":-6,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"georadiusbymember":{"arity":-5,"flags":["write","denyoom","movablekeys"],"keyStart":1,"keyStop":1,"step":1},"georadiusbymember_ro":{"arity":-5,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"geosearch":{"arity":-7,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"geosearchstore":{"arity":-8,"flags":["write","denyoom"],"keyStart":1,"keyStop":2,"step":1},"get":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"getbit":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"getdel":{"arity":2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"getex":{"arity":-2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"getrange":{"arity":4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"getset":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"hdel":{"arity":-3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"hello":{"arity":-1,"flags":["noscript","loading","stale","skip_monitor","skip_slowlog","fast","no_auth"],"keyStart":0,"keyStop":0,"step":0},"hexists":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"hget":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"hgetall":{"arity":2,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"hincrby":{"arity":4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"hincrbyfloat":{"arity":4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"hkeys":{"arity":2,"flags":["readonly","sort_for_script"],"keyStart":1,"keyStop":1,"step":1},"hlen":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"hmget":{"arity":-3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"hmset":{"arity":-4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"host:":{"arity":-1,"flags":["readonly","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"hrandfield":{"arity":-2,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"hscan":{"arity":-3,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"hset":{"arity":-4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"hsetnx":{"arity":4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"hstrlen":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"hvals":{"arity":2,"flags":["readonly","sort_for_script"],"keyStart":1,"keyStop":1,"step":1},"incr":{"arity":2,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"incrby":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"incrbyfloat":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"info":{"arity":-1,"flags":["random","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"keys":{"arity":2,"flags":["readonly","sort_for_script"],"keyStart":0,"keyStop":0,"step":0},"lastsave":{"arity":1,"flags":["random","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"latency":{"arity":-2,"flags":["admin","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"lindex":{"arity":3,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"linsert":{"arity":5,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"llen":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"lmove":{"arity":5,"flags":["write","denyoom"],"keyStart":1,"keyStop":2,"step":1},"lolwut":{"arity":-1,"flags":["readonly","fast"],"keyStart":0,"keyStop":0,"step":0},"lpop":{"arity":-2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"lpos":{"arity":-3,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"lpush":{"arity":-3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"lpushx":{"arity":-3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"lrange":{"arity":4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"lrem":{"arity":4,"flags":["write"],"keyStart":1,"keyStop":1,"step":1},"lset":{"arity":4,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"ltrim":{"arity":4,"flags":["write"],"keyStart":1,"keyStop":1,"step":1},"memory":{"arity":-2,"flags":["readonly","random","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"mget":{"arity":-2,"flags":["readonly","fast"],"keyStart":1,"keyStop":-1,"step":1},"migrate":{"arity":-6,"flags":["write","random","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"module":{"arity":-2,"flags":["admin","noscript"],"keyStart":0,"keyStop":0,"step":0},"monitor":{"arity":1,"flags":["admin","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"move":{"arity":3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"mset":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":-1,"step":2},"msetnx":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":-1,"step":2},"multi":{"arity":1,"flags":["noscript","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"object":{"arity":-2,"flags":["readonly","random"],"keyStart":2,"keyStop":2,"step":1},"persist":{"arity":2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"pexpire":{"arity":3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"pexpireat":{"arity":3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"pfadd":{"arity":-2,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"pfcount":{"arity":-2,"flags":["readonly","may_replicate"],"keyStart":1,"keyStop":-1,"step":1},"pfdebug":{"arity":-3,"flags":["write","denyoom","admin"],"keyStart":2,"keyStop":2,"step":1},"pfmerge":{"arity":-2,"flags":["write","denyoom"],"keyStart":1,"keyStop":-1,"step":1},"pfselftest":{"arity":1,"flags":["admin"],"keyStart":0,"keyStop":0,"step":0},"ping":{"arity":-1,"flags":["stale","fast"],"keyStart":0,"keyStop":0,"step":0},"post":{"arity":-1,"flags":["readonly","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"psetex":{"arity":4,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"psubscribe":{"arity":-2,"flags":["pubsub","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"psync":{"arity":-3,"flags":["admin","noscript"],"keyStart":0,"keyStop":0,"step":0},"pttl":{"arity":2,"flags":["readonly","random","fast"],"keyStart":1,"keyStop":1,"step":1},"publish":{"arity":3,"flags":["pubsub","loading","stale","fast","may_replicate"],"keyStart":0,"keyStop":0,"step":0},"pubsub":{"arity":-2,"flags":["pubsub","random","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"punsubscribe":{"arity":-1,"flags":["pubsub","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"quit":{"arity":1,"flags":["loading","stale","readonly"],"keyStart":0,"keyStop":0,"step":0},"randomkey":{"arity":1,"flags":["readonly","random"],"keyStart":0,"keyStop":0,"step":0},"readonly":{"arity":1,"flags":["fast"],"keyStart":0,"keyStop":0,"step":0},"readwrite":{"arity":1,"flags":["fast"],"keyStart":0,"keyStop":0,"step":0},"rename":{"arity":3,"flags":["write"],"keyStart":1,"keyStop":2,"step":1},"renamenx":{"arity":3,"flags":["write","fast"],"keyStart":1,"keyStop":2,"step":1},"replconf":{"arity":-1,"flags":["admin","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"replicaof":{"arity":3,"flags":["admin","noscript","stale"],"keyStart":0,"keyStop":0,"step":0},"reset":{"arity":1,"flags":["noscript","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"restore":{"arity":-4,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"restore-asking":{"arity":-4,"flags":["write","denyoom","asking"],"keyStart":1,"keyStop":1,"step":1},"role":{"arity":1,"flags":["noscript","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"rpop":{"arity":-2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"rpoplpush":{"arity":3,"flags":["write","denyoom"],"keyStart":1,"keyStop":2,"step":1},"rpush":{"arity":-3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"rpushx":{"arity":-3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"sadd":{"arity":-3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"save":{"arity":1,"flags":["admin","noscript"],"keyStart":0,"keyStop":0,"step":0},"scan":{"arity":-2,"flags":["readonly","random"],"keyStart":0,"keyStop":0,"step":0},"scard":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"script":{"arity":-2,"flags":["noscript","may_replicate"],"keyStart":0,"keyStop":0,"step":0},"sdiff":{"arity":-2,"flags":["readonly","sort_for_script"],"keyStart":1,"keyStop":-1,"step":1},"sdiffstore":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":-1,"step":1},"select":{"arity":2,"flags":["loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"set":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"setbit":{"arity":4,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"setex":{"arity":4,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"setnx":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"setrange":{"arity":4,"flags":["write","denyoom"],"keyStart":1,"keyStop":1,"step":1},"shutdown":{"arity":-1,"flags":["admin","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"sinter":{"arity":-2,"flags":["readonly","sort_for_script"],"keyStart":1,"keyStop":-1,"step":1},"sinterstore":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":-1,"step":1},"sismember":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"slaveof":{"arity":3,"flags":["admin","noscript","stale"],"keyStart":0,"keyStop":0,"step":0},"slowlog":{"arity":-2,"flags":["admin","random","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"smembers":{"arity":2,"flags":["readonly","sort_for_script"],"keyStart":1,"keyStop":1,"step":1},"smismember":{"arity":-3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"smove":{"arity":4,"flags":["write","fast"],"keyStart":1,"keyStop":2,"step":1},"sort":{"arity":-2,"flags":["write","denyoom","movablekeys"],"keyStart":1,"keyStop":1,"step":1},"spop":{"arity":-2,"flags":["write","random","fast"],"keyStart":1,"keyStop":1,"step":1},"srandmember":{"arity":-2,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"srem":{"arity":-3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"sscan":{"arity":-3,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"stralgo":{"arity":-2,"flags":["readonly","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"strlen":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"subscribe":{"arity":-2,"flags":["pubsub","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"substr":{"arity":4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"sunion":{"arity":-2,"flags":["readonly","sort_for_script"],"keyStart":1,"keyStop":-1,"step":1},"sunionstore":{"arity":-3,"flags":["write","denyoom"],"keyStart":1,"keyStop":-1,"step":1},"swapdb":{"arity":3,"flags":["write","fast"],"keyStart":0,"keyStop":0,"step":0},"sync":{"arity":1,"flags":["admin","noscript"],"keyStart":0,"keyStop":0,"step":0},"time":{"arity":1,"flags":["random","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"touch":{"arity":-2,"flags":["readonly","fast"],"keyStart":1,"keyStop":-1,"step":1},"ttl":{"arity":2,"flags":["readonly","random","fast"],"keyStart":1,"keyStop":1,"step":1},"type":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"unlink":{"arity":-2,"flags":["write","fast"],"keyStart":1,"keyStop":-1,"step":1},"unsubscribe":{"arity":-1,"flags":["pubsub","noscript","loading","stale"],"keyStart":0,"keyStop":0,"step":0},"unwatch":{"arity":1,"flags":["noscript","loading","stale","fast"],"keyStart":0,"keyStop":0,"step":0},"wait":{"arity":3,"flags":["noscript"],"keyStart":0,"keyStop":0,"step":0},"watch":{"arity":-2,"flags":["noscript","loading","stale","fast"],"keyStart":1,"keyStop":-1,"step":1},"xack":{"arity":-4,"flags":["write","random","fast"],"keyStart":1,"keyStop":1,"step":1},"xadd":{"arity":-5,"flags":["write","denyoom","random","fast"],"keyStart":1,"keyStop":1,"step":1},"xautoclaim":{"arity":-6,"flags":["write","random","fast"],"keyStart":1,"keyStop":1,"step":1},"xclaim":{"arity":-6,"flags":["write","random","fast"],"keyStart":1,"keyStop":1,"step":1},"xdel":{"arity":-3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"xgroup":{"arity":-2,"flags":["write","denyoom"],"keyStart":2,"keyStop":2,"step":1},"xinfo":{"arity":-2,"flags":["readonly","random"],"keyStart":2,"keyStop":2,"step":1},"xlen":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"xpending":{"arity":-3,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"xrange":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"xread":{"arity":-4,"flags":["readonly","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"xreadgroup":{"arity":-7,"flags":["write","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"xrevrange":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"xsetid":{"arity":3,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"xtrim":{"arity":-2,"flags":["write","random"],"keyStart":1,"keyStop":1,"step":1},"zadd":{"arity":-4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"zcard":{"arity":2,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zcount":{"arity":4,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zdiff":{"arity":-3,"flags":["readonly","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"zdiffstore":{"arity":-4,"flags":["write","denyoom","movablekeys"],"keyStart":1,"keyStop":1,"step":1},"zincrby":{"arity":4,"flags":["write","denyoom","fast"],"keyStart":1,"keyStop":1,"step":1},"zinter":{"arity":-3,"flags":["readonly","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"zinterstore":{"arity":-4,"flags":["write","denyoom","movablekeys"],"keyStart":1,"keyStop":1,"step":1},"zlexcount":{"arity":4,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zmscore":{"arity":-3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zpopmax":{"arity":-2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"zpopmin":{"arity":-2,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"zrandmember":{"arity":-2,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"zrange":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"zrangebylex":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"zrangebyscore":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"zrangestore":{"arity":-5,"flags":["write","denyoom"],"keyStart":1,"keyStop":2,"step":1},"zrank":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zrem":{"arity":-3,"flags":["write","fast"],"keyStart":1,"keyStop":1,"step":1},"zremrangebylex":{"arity":4,"flags":["write"],"keyStart":1,"keyStop":1,"step":1},"zremrangebyrank":{"arity":4,"flags":["write"],"keyStart":1,"keyStop":1,"step":1},"zremrangebyscore":{"arity":4,"flags":["write"],"keyStart":1,"keyStop":1,"step":1},"zrevrange":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"zrevrangebylex":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"zrevrangebyscore":{"arity":-4,"flags":["readonly"],"keyStart":1,"keyStop":1,"step":1},"zrevrank":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zscan":{"arity":-3,"flags":["readonly","random"],"keyStart":1,"keyStop":1,"step":1},"zscore":{"arity":3,"flags":["readonly","fast"],"keyStart":1,"keyStop":1,"step":1},"zunion":{"arity":-3,"flags":["readonly","movablekeys"],"keyStart":0,"keyStop":0,"step":0},"zunionstore":{"arity":-4,"flags":["write","denyoom","movablekeys"],"keyStart":1,"keyStop":1,"step":1}}')},function(t,e,n){"use strict";var r=n(155),o=n(594);t.exports=function(t,e,n){if("number"==typeof t||"string"==typeof t&&/^\d+$/.test(t)){var l;if("string"==typeof e)l=e;else{if(n&&e)throw new TypeError("Unknown type of connection in createClient()");n=n||e}(n=r.clone(n)).host=l||n.host,n.port=t}else if("string"==typeof t||t&&t.url){n=r.clone(t.url?t:e||n);var c=t.url||t,f=o.parse(c,!0,!0);if(f.slashes){if(f.auth){var h=f.auth.indexOf(":");n.password=f.auth.slice(h+1),h>0&&(n.user=f.auth.slice(0,h))}var d;if(f.protocol&&("rediss:"===f.protocol?n.tls=n.tls||{}:"redis:"!==f.protocol&&console.warn('node_redis: WARNING: You passed "'+f.protocol.substring(0,f.protocol.length-1)+'" as protocol instead of the "redis" protocol!')),f.pathname&&"/"!==f.pathname&&(n.db=f.pathname.substr(1)),f.hostname&&(n.host=f.hostname),f.port&&(n.port=f.port),""!==f.search)for(d in f.query){if(d in n){if(n[d]!==f.query[d])throw new RangeError("The "+d+" option is added twice and does not match");console.warn("node_redis: WARNING: You passed the "+d+" option twice!")}n[d]=f.query[d]}}else{if(f.hostname)throw new RangeError('The redis url must begin with slashes "//" or contain slashes after the redis protocol');n.path=c}}else if(("object"==typeof t||void 0===t)&&((n=r.clone(t||n)).host=n.host||e,t&&1!==arguments.length))throw new TypeError("Too many arguments passed to createClient. Please only pass the options object");if(!n)throw new TypeError("Unknown type of connection in createClient()");return n}},function(t,e,n){"use strict";var r=n(595),o=n(596);function l(){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}e.parse=A,e.resolve=function(source,t){return A(source,!1,!0).resolve(t)},e.resolveObject=function(source,t){return source?A(source,!1,!0).resolveObject(t):t},e.format=function(t){o.isString(t)&&(t=A(t));return t instanceof l?t.format():l.prototype.format.call(t)},e.Url=l;var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),m=["'"].concat(d),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],_=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=n(597);function A(t,e,n){if(t&&o.isObject(t)&&t instanceof l)return t;var u=new l;return u.parse(t,e,n),u}l.prototype.parse=function(t,e,n){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var l=t.indexOf("?"),f=-1!==l&&l<t.indexOf("#")?"?":"#",d=t.split(f);d[0]=d[0].replace(/\\/g,"/");var A=t=d.join(f);if(A=A.trim(),!n&&1===t.split("#").length){var O=h.exec(A);if(O)return this.path=A,this.href=A,this.pathname=O[1],O[2]?(this.search=O[2],this.query=e?k.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var T=c.exec(A);if(T){var C=(T=T[0]).toLowerCase();this.protocol=C,A=A.substr(T.length)}if(n||T||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===A.substr(0,2);!P||T&&E[T]||(A=A.substr(2),this.slashes=!0)}if(!E[T]&&(P||T&&!S[T])){for(var I,M,j=-1,i=0;i<y.length;i++){-1!==(D=A.indexOf(y[i]))&&(-1===j||D<j)&&(j=D)}-1!==(M=-1===j?A.lastIndexOf("@"):A.lastIndexOf("@",j))&&(I=A.slice(0,M),A=A.slice(M+1),this.auth=decodeURIComponent(I)),j=-1;for(i=0;i<v.length;i++){var D;-1!==(D=A.indexOf(v[i]))&&(-1===j||D<j)&&(j=D)}-1===j&&(j=A.length),this.host=A.slice(0,j),A=A.slice(j),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var R=this.hostname.split(/\./),L=(i=0,R.length);i<L;i++){var N=R[i];if(N&&!N.match(_)){for(var B="",V=0,z=N.length;V<z;V++)N.charCodeAt(V)>127?B+="x":B+=N[V];if(!B.match(_)){var U=R.slice(0,i),$=R.slice(i+1),G=N.match(w);G&&(U.push(G[1]),$.unshift(G[2])),$.length&&(A="/"+$.join(".")+A),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=r.toASCII(this.hostname));var p=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+p,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==A[0]&&(A="/"+A))}if(!x[C])for(i=0,L=m.length;i<L;i++){var W=m[i];if(-1!==A.indexOf(W)){var Q=encodeURIComponent(W);Q===W&&(Q=escape(W)),A=A.split(W).join(Q)}}var Y=A.indexOf("#");-1!==Y&&(this.hash=A.substr(Y),A=A.slice(0,Y));var K=A.indexOf("?");if(-1!==K?(this.search=A.substr(K),this.query=A.substr(K+1),e&&(this.query=k.parse(this.query)),A=A.slice(0,K)):e&&(this.search="",this.query={}),A&&(this.pathname=A),S[C]&&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},l.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",l=!1,c="";this.host?l=t+this.host:this.hostname&&(l=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(l+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(c=k.stringify(this.query));var f=this.search||c&&"?"+c||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||S[e])&&!1!==l?(l="//"+(l||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):l||(l=""),r&&"#"!==r.charAt(0)&&(r="#"+r),f&&"?"!==f.charAt(0)&&(f="?"+f),e+l+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(f=f.replace("#","%23"))+r},l.prototype.resolve=function(t){return this.resolveObject(A(t,!1,!0)).format()},l.prototype.resolveObject=function(t){if(o.isString(t)){var e=new l;e.parse(t,!1,!0),t=e}for(var n=new l,r=Object.keys(this),c=0;c<r.length;c++){var f=r[c];n[f]=this[f]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var h=Object.keys(t),d=0;d<h.length;d++){var m=h[d];"protocol"!==m&&(n[m]=t[m])}return S[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!S[t.protocol]){for(var v=Object.keys(t),y=0;y<v.length;y++){var _=v[y];n[_]=t[_]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||E[t.protocol])n.pathname=t.pathname;else{for(var w=(t.pathname||"").split("/");w.length&&!(t.host=w.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==w[0]&&w.unshift(""),w.length<2&&w.unshift(""),n.pathname=w.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var p=n.pathname||"",s=n.search||"";n.path=p+s}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var x=n.pathname&&"/"===n.pathname.charAt(0),k=t.host||t.pathname&&"/"===t.pathname.charAt(0),A=k||x||n.host&&t.pathname,O=A,T=n.pathname&&n.pathname.split("/")||[],C=(w=t.pathname&&t.pathname.split("/")||[],n.protocol&&!S[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===T[0]?T[0]=n.host:T.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===w[0]?w[0]=t.host:w.unshift(t.host)),t.host=null),A=A&&(""===w[0]||""===T[0])),k)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,T=w;else if(w.length)T||(T=[]),T.pop(),T=T.concat(w),n.search=t.search,n.query=t.query;else if(!o.isNullOrUndefined(t.search)){if(C)n.hostname=n.host=T.shift(),(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=t.search,n.query=t.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(!T.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=T.slice(-1)[0],I=(n.host||t.host||T.length>1)&&("."===P||".."===P)||""===P,M=0,i=T.length;i>=0;i--)"."===(P=T[i])?T.splice(i,1):".."===P?(T.splice(i,1),M++):M&&(T.splice(i,1),M--);if(!A&&!O)for(;M--;M)T.unshift("..");!A||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),I&&"/"!==T.join("/").substr(-1)&&T.push("");var j,D=""===T[0]||T[0]&&"/"===T[0].charAt(0);C&&(n.hostname=n.host=D?"":T.length?T.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(A=A||n.host&&T.length)&&!D&&T.unshift(""),T.length?n.pathname=T.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=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},l.prototype.parseHost=function(){var t=this.host,e=f.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){(function(t,r){var o;!function(l){e&&e.nodeType,t&&t.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var f,h=2147483647,base=36,d=/^xn--/,m=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=Math.floor,w=String.fromCharCode;function x(t){throw new RangeError(y[t])}function map(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function E(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+map((t=t.replace(v,".")).split("."),e).join(".")}function S(t){for(var e,n,output=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?output.push(((1023&e)<<10)+(1023&n)+65536):(output.push(e),r--):output.push(e);return output}function k(t){return map(t,(function(t){var output="";return t>65535&&(output+=w((t-=65536)>>>10&1023|55296),t=56320|1023&t),output+=w(t)})).join("")}function A(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,n){var r=0;for(t=n?_(t/700):t>>1,t+=_(t/e);t>455;r+=base)t=_(t/35);return _(r+36*t/(t+38))}function T(input){var t,e,n,r,o,l,c,f,d,m,v,output=[],y=input.length,i=0,w=128,E=72;for((e=input.lastIndexOf("-"))<0&&(e=0),n=0;n<e;++n)input.charCodeAt(n)>=128&&x("not-basic"),output.push(input.charCodeAt(n));for(r=e>0?e+1:0;r<y;){for(o=i,l=1,c=base;r>=y&&x("invalid-input"),((f=(v=input.charCodeAt(r++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:base)>=base||f>_((h-i)/l))&&x("overflow"),i+=f*l,!(f<(d=c<=E?1:c>=E+26?26:c-E));c+=base)l>_(h/(m=base-d))&&x("overflow"),l*=m;E=O(i-o,t=output.length+1,0==o),_(i/t)>h-w&&x("overflow"),w+=_(i/t),i%=t,output.splice(i++,0,w)}return k(output)}function C(input){var t,e,n,r,o,l,c,q,f,d,m,v,y,E,k,output=[];for(v=(input=S(input)).length,t=128,e=0,o=72,l=0;l<v;++l)(m=input[l])<128&&output.push(w(m));for(n=r=output.length,r&&output.push("-");n<v;){for(c=h,l=0;l<v;++l)(m=input[l])>=t&&m<c&&(c=m);for(c-t>_((h-e)/(y=n+1))&&x("overflow"),e+=(c-t)*y,t=c,l=0;l<v;++l)if((m=input[l])<t&&++e>h&&x("overflow"),m==t){for(q=e,f=base;!(q<(d=f<=o?1:f>=o+26?26:f-o));f+=base)k=q-d,E=base-d,output.push(w(A(d+k%E,0))),q=_(k/E);output.push(w(A(q,0))),o=O(e,y,n==r),e=0,++n}++e,++t}return output.join("")}f={version:"1.4.1",ucs2:{decode:S,encode:k},decode:T,encode:C,toASCII:function(input){return E(input,(function(t){return m.test(t)?"xn--"+C(t):t}))},toUnicode:function(input){return E(input,(function(t){return d.test(t)?T(t.slice(4).toLowerCase()):t}))}},void 0===(o=function(){return f}.call(e,n,e,t))||(t.exports=o)}()}).call(this,n(329)(t),n(36))},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(598),e.encode=e.stringify=n(599)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,l){e=e||"&",n=n||"=";var c={};if("string"!=typeof t||0===t.length)return c;var f=/\+/g;t=t.split(e);var h=1e3;l&&"number"==typeof l.maxKeys&&(h=l.maxKeys);var d=t.length;h>0&&d>h&&(d=h);for(var i=0;i<d;++i){var m,v,y,_,w=t[i].replace(f,"%20"),x=w.indexOf(n);x>=0?(m=w.substr(0,x),v=w.substr(x+1)):(m=w,v=""),y=decodeURIComponent(m),_=decodeURIComponent(v),r(c,y)?o(c[y])?c[y].push(_):c[y]=[c[y],_]:c[y]=_}return c};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,c){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?map(l(t),(function(l){var c=encodeURIComponent(r(l))+n;return o(t[l])?map(t[l],(function(t){return c+encodeURIComponent(r(t))})).join(e):c+encodeURIComponent(r(t[l]))})).join(e):c?encodeURIComponent(r(c))+n+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function map(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var l=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";var r=n(155),o=n(239),l=n(240),c=n(156),f=/no password is set|called without any password configured/,h=/LOADING/,d=n(153).RedisClient;function m(t,e,n){return function(o,l){null===o&&(t.selected_db=e),r.callback_or_emit(t,n,o,l)}}function v(t,e){return function(n,o){n&&"NR_CLOSED"===n.code&&(n=null,o="OK"),r.callback_or_emit(t,e,n,o),t.stream.writable&&t.stream.destroy()}}function y(t,e){return function(n,o){if(o){for(var line,l,c,f={},h=o.toString().split("\r\n"),i=0;i<h.length;i++)if((l=h[i].split(":"))[1])if(0===l[0].indexOf("db"))for(c=l[1].split(","),f[l[0]]={};line=c.pop();)line=line.split("="),f[l[0]][line[0]]=+line[1];else f[l[0]]=l[1];f.versions=[],f.redis_version&&f.redis_version.split(".").forEach((function(t){f.versions.push(+t)})),t.server_info=f}else t.server_info={};r.callback_or_emit(t,e,n,o)}}function _(t,e,n,l){return function(c,d){if(c)if(f.test(c.message))t.warn("Warning: Redis server does not require a password, but a password was supplied."),c=null,d="OK";else if(h.test(c.message))return o("Redis still loading, trying to authenticate later"),void setTimeout((function(){t.auth(e,n,l)}),100);r.callback_or_emit(t,l,c,d)}}d.prototype.multi=d.prototype.MULTI=function(t){var e=new l(this,t);return e.exec=e.EXEC=e.exec_transaction,e},d.prototype.batch=d.prototype.BATCH=function(t){return new l(this,t)},d.prototype.select=d.prototype.SELECT=function(t,e){return this.internal_send_command(new c("select",[t],m(this,t,e)))},l.prototype.select=l.prototype.SELECT=function(t,e){return this.queue.push(new c("select",[t],m(this._client,t,e))),this},d.prototype.monitor=d.prototype.MONITOR=function(t){var e=this;return this.internal_send_command(new c("monitor",[],t,(function(){e.monitoring=!0})))},l.prototype.monitor=l.prototype.MONITOR=function(t){if(this.exec!==this.exec_transaction){var e=this;return this.queue.push(new c("monitor",[],t,(function(){e._client.monitoring=!0}))),this}return this.monitoring=!0,this},d.prototype.QUIT=d.prototype.quit=function(t){var e=this.internal_send_command(new c("quit",[],v(this,t)));return this.closing=!0,this.ready=!1,e},l.prototype.QUIT=l.prototype.quit=function(t){var e=this._client;return this.queue.push(new c("quit",[],v(e,t),(function(){e.closing=!0,e.ready=!1}))),this},d.prototype.info=d.prototype.INFO=function(section,t){var e=[];return"function"==typeof section?t=section:void 0!==section&&(e=Array.isArray(section)?section:[section]),this.internal_send_command(new c("info",e,y(this,t)))},l.prototype.info=l.prototype.INFO=function(section,t){var e=[];return"function"==typeof section?t=section:void 0!==section&&(e=Array.isArray(section)?section:[section]),this.queue.push(new c("info",e,y(this._client,t))),this},d.prototype.auth=d.prototype.AUTH=function(t,e,n){o("Sending auth to "+this.address+" id "+this.connection_id),e instanceof Function&&(n=e,e=null),this.auth_pass=t,this.auth_user=e;var r=this.ready;this.ready=r||0===this.offline_queue.length;var l=this.internal_send_command(new c("auth",e?[e,t]:[t],_(this,t,e,n)));return this.ready=r,l},l.prototype.auth=l.prototype.AUTH=function(t,e,n){return o("Sending auth to "+this.address+" id "+this.connection_id),e instanceof Function&&(n=e,e=null),this.auth_pass=t,this.auth_user=e,this.queue.push(new c("auth",e?[e,t]:[t],_(this._client,t,e,n))),this},d.prototype.client=d.prototype.CLIENT=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0],e=arguments[1];else if(Array.isArray(arguments[1]))for(3===n&&(e=arguments[2]),n=arguments[1].length,(t=new Array(n+1))[0]=arguments[0];i<n;i+=1)t[i+1]=arguments[1][i];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this,o=void 0;if(2===t.length&&"REPLY"===t[0].toString().toUpperCase()){var l=t[1].toString().toUpperCase();"ON"!==l&&"OFF"!==l&&"SKIP"!==l||(o=function(){r.reply=l})}return this.internal_send_command(new c("client",t,e,o))},l.prototype.client=l.prototype.CLIENT=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0],e=arguments[1];else if(Array.isArray(arguments[1]))for(3===n&&(e=arguments[2]),n=arguments[1].length,(t=new Array(n+1))[0]=arguments[0];i<n;i+=1)t[i+1]=arguments[1][i];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this._client,o=void 0;if(2===t.length&&"REPLY"===t[0].toString().toUpperCase()){var l=t[1].toString().toUpperCase();"ON"!==l&&"OFF"!==l&&"SKIP"!==l||(o=function(){r.reply=l})}return this.queue.push(new c("client",t,e,o)),this},d.prototype.hmset=d.prototype.HMSET=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0],e=arguments[1];else if(Array.isArray(arguments[1]))for(3===n&&(e=arguments[2]),n=arguments[1].length,(t=new Array(n+1))[0]=arguments[0];i<n;i+=1)t[i+1]=arguments[1][i];else if("object"!=typeof arguments[1]||2!==arguments.length&&(3!==arguments.length||"function"!=typeof arguments[2]&&void 0!==arguments[2]))for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];else{for(var r in t=[arguments[0]],arguments[1])t.push(r,arguments[1][r]);e=arguments[2]}return this.internal_send_command(new c("hmset",t,e))},l.prototype.hmset=l.prototype.HMSET=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0],e=arguments[1];else if(Array.isArray(arguments[1]))for(3===n&&(e=arguments[2]),n=arguments[1].length,(t=new Array(n+1))[0]=arguments[0];i<n;i+=1)t[i+1]=arguments[1][i];else if("object"!=typeof arguments[1]||2!==arguments.length&&(3!==arguments.length||"function"!=typeof arguments[2]&&void 0!==arguments[2]))for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];else{for(var r in t=[arguments[0]],arguments[1])t.push(r,arguments[1][r]);e=arguments[2]}return this.queue.push(new c("hmset",t,e)),this},d.prototype.subscribe=d.prototype.SUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.internal_send_command(new c("subscribe",t,e,o))},l.prototype.subscribe=l.prototype.SUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this._client,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.queue.push(new c("subscribe",t,e,o)),this},d.prototype.unsubscribe=d.prototype.UNSUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.internal_send_command(new c("unsubscribe",t,e,o))},l.prototype.unsubscribe=l.prototype.UNSUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this._client,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.queue.push(new c("unsubscribe",t,e,o)),this},d.prototype.psubscribe=d.prototype.PSUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.internal_send_command(new c("psubscribe",t,e,o))},l.prototype.psubscribe=l.prototype.PSUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this._client,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.queue.push(new c("psubscribe",t,e,o)),this},d.prototype.punsubscribe=d.prototype.PUNSUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.internal_send_command(new c("punsubscribe",t,e,o))},l.prototype.punsubscribe=l.prototype.PUNSUBSCRIBE=function(){var t,e,n=arguments.length,i=0;if(Array.isArray(arguments[0]))t=arguments[0].slice(0),e=arguments[1];else for(0===(n=arguments.length)||"function"!=typeof arguments[n-1]&&void 0!==arguments[n-1]||(e=arguments[--n]),t=new Array(n);i<n;i+=1)t[i]=arguments[i];var r=this._client,o=function(){r.pub_sub_mode=r.pub_sub_mode||r.command_queue.length+1};return this.queue.push(new c("punsubscribe",t,e,o)),this}},function(t,e,n){"use strict";var r=n(155),o=n(239),l=n(153).RedisClient,c=n(156),f=function(){};l.prototype.send_command=l.prototype.sendCommand=function(t,e,n){if("string"!=typeof t)throw new TypeError('Wrong input type "'+(null!=t?t.constructor.name:t)+'" for command name');if(t=t.toLowerCase(),!Array.isArray(e))if(null==e)e=[];else{if("function"!=typeof e||void 0!==n)throw new TypeError('Wrong input type "'+e.constructor.name+'" for args');n=e,e=[]}if("function"!=typeof n&&void 0!==n)throw new TypeError('Wrong input type "'+(null!==n?n.constructor.name:"null")+'" for callback function');return"multi"===t||"function"!=typeof this[t]?this.internal_send_command(new c(t,e,n)):("function"==typeof n&&(e=e.concat([n])),this[t].apply(this,e))},l.prototype.end=function(t){return t?this.flush_and_error({message:"Connection forcefully ended and command aborted.",code:"NR_CLOSED"}):0===arguments.length&&this.warn("Using .end() without the flush parameter is deprecated and throws from v.3.0.0 on.\nPlease check the doku (https://github.com/NodeRedis/node_redis) and explictly use flush."),this.retry_timer&&(clearTimeout(this.retry_timer),this.retry_timer=null),this.stream.removeAllListeners(),this.stream.on("error",f),this.connected=!1,this.ready=!1,this.closing=!0,this.stream.destroySoon()},l.prototype.unref=function(){this.connected?(o("Unref'ing the socket connection"),this.stream.unref()):(o("Not connected yet, will unref later"),this.once("connect",(function(){this.unref()})))},l.prototype.duplicate=function(t,e){"function"==typeof t&&(e=t,t=null);var n=r.clone(this.options);for(var o in t=r.clone(t))n[o]=t[o];var c=new l(n);if(c.selected_db=t.db||this.selected_db,"function"==typeof e){var f=function(t){e(t),c.end(!0)};return c.once("ready",(function(){e(null,c),c.removeAllListeners(f)})),void c.once("error",f)}return c}},function(t,e,n){"use strict";var r=n(369),o=n(240),l=n(153).RedisClient,c=n(156),f=function(t){var e=t.replace(/(?:^([0-9])|[^a-zA-Z0-9_$])/g,"_$1");l.prototype[t]||(l.prototype[t.toUpperCase()]=l.prototype[t]=function(){var e,n,r=arguments.length,i=0;if(Array.isArray(arguments[0]))e=arguments[0],2===r&&(n=arguments[1]);else if(r>1&&Array.isArray(arguments[1]))for(3===r&&(n=arguments[2]),r=arguments[1].length,(e=new Array(r+1))[0]=arguments[0];i<r;i+=1)e[i+1]=arguments[1][i];else for(0===r||"function"!=typeof arguments[r-1]&&void 0!==arguments[r-1]||(n=arguments[--r]),e=new Array(r);i<r;i+=1)e[i]=arguments[i];return this.internal_send_command(new c(t,e,n))},e!==t&&(l.prototype[e.toUpperCase()]=l.prototype[e]=l.prototype[t]),Object.defineProperty(l.prototype[t],"name",{value:e})),o.prototype[t]||(o.prototype[t.toUpperCase()]=o.prototype[t]=function(){var e,n,r=arguments.length,i=0;if(Array.isArray(arguments[0]))e=arguments[0],2===r&&(n=arguments[1]);else if(r>1&&Array.isArray(arguments[1]))for(3===r&&(n=arguments[2]),r=arguments[1].length,(e=new Array(r+1))[0]=arguments[0];i<r;i+=1)e[i+1]=arguments[1][i];else for(0===r||"function"!=typeof arguments[r-1]&&void 0!==arguments[r-1]||(n=arguments[--r]),e=new Array(r);i<r;i+=1)e[i]=arguments[i];return this.queue.push(new c(t,e,n)),this},e!==t&&(o.prototype[e.toUpperCase()]=o.prototype[e]=o.prototype[t]),Object.defineProperty(o.prototype[t],"name",{value:e}))};r.list.forEach(f),t.exports=f},,function(t,e){!function(t){!function(e){var n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),l="FormData"in t,c="ArrayBuffer"in t;if(c)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(t){return t&&f.indexOf(Object.prototype.toString.call(t))>-1};function d(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function m(t){return"string"!=typeof t&&(t=String(t)),t}function v(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(header){this.append(header[0],header[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function _(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function w(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function x(t){var e=new FileReader,n=w(e);return e.readAsArrayBuffer(t),n}function E(t){if(t.slice)return t.slice(0);var view=new Uint8Array(t.byteLength);return view.set(new Uint8Array(t)),view.buffer}function S(){return this.bodyUsed=!1,this._initBody=function(body){var t;this._bodyInit=body,body?"string"==typeof body?this._bodyText=body:o&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:l&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:n&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():c&&o&&((t=body)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=E(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(body)||h(body))?this._bodyArrayBuffer=E(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||("string"==typeof body?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=_(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?_(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(x)}),this.text=function(){var t,e,n,r=_(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=w(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var view=new Uint8Array(t),e=new Array(view.length),i=0;i<view.length;i++)e[i]=String.fromCharCode(view[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(t,e){t=d(t),e=m(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},y.prototype.delete=function(t){delete this.map[d(t)]},y.prototype.get=function(t){return t=d(t),this.has(t)?this.map[t]:null},y.prototype.has=function(t){return this.map.hasOwnProperty(d(t))},y.prototype.set=function(t,e){this.map[d(t)]=m(e)},y.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},y.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),v(t)},y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),v(t)},y.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),v(t)},r&&(y.prototype[Symbol.iterator]=y.prototype.entries);var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function A(input,t){var e,n,body=(t=t||{}).body;if(input instanceof A){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,t.headers||(this.headers=new y(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,body||null==input._bodyInit||(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new y(t.headers)),this.method=(e=t.method||this.method||"GET",n=e.toUpperCase(),k.indexOf(n)>-1?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}function O(body){var form=new FormData;return body.trim().split("&").forEach((function(t){if(t){var e=t.split("="),n=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");form.append(decodeURIComponent(n),decodeURIComponent(r))}})),form}function T(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})},S.call(A.prototype),S.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:""});return t.type="error",t};var C=[301,302,303,307,308];T.redirect=function(t,e){if(-1===C.indexOf(e))throw new RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function P(input,t){return new Promise((function(n,r){var l=new A(input,t);if(l.signal&&l.signal.aborted)return r(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function f(){c.abort()}c.onload=function(){var t,e,r={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(line){var t=line.split(":"),n=t.shift().trim();if(n){var r=t.join(":").trim();e.append(n,r)}})),e)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var body="response"in c?c.response:c.responseText;n(new T(body,r))},c.onerror=function(){r(new TypeError("Network request failed"))},c.ontimeout=function(){r(new TypeError("Network request failed"))},c.onabort=function(){r(new e.DOMException("Aborted","AbortError"))},c.open(l.method,l.url,!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&o&&(c.responseType="blob"),l.headers.forEach((function(t,e){c.setRequestHeader(e,t)})),l.signal&&(l.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",f)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}P.polyfill=!0,t.fetch||(t.fetch=P,t.Headers=y,t.Request=A,t.Response=T),e.Headers=y,e.Request=A,e.Response=T,e.fetch=P}({})}("undefined"!=typeof self?self:this)},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function l(){}function c(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function f(t,e,n,r,l){if("function"!=typeof n)throw new TypeError("The listener must be a function");var f=new c(n,r||t,l),h=o?o+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],f]:t._events[h].push(f):(t._events[h]=f,t._eventsCount++),t}function h(t,e){0==--t._eventsCount?t._events=new l:delete t._events[e]}function d(){this._events=new l,this._eventsCount=0}Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(o=!1)),d.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},d.prototype.listeners=function(t){var e=o?o+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,r=n.length,l=new Array(r);i<r;i++)l[i]=n[i].fn;return l},d.prototype.listenerCount=function(t){var e=o?o+t:t,n=this._events[e];return n?n.fn?1:n.length:0},d.prototype.emit=function(t,e,n,r,l,c){var f=o?o+t:t;if(!this._events[f])return!1;var h,i,d=this._events[f],m=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),m){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,n),!0;case 4:return d.fn.call(d.context,e,n,r),!0;case 5:return d.fn.call(d.context,e,n,r,l),!0;case 6:return d.fn.call(d.context,e,n,r,l,c),!0}for(i=1,h=new Array(m-1);i<m;i++)h[i-1]=arguments[i];d.fn.apply(d.context,h)}else{var v,y=d.length;for(i=0;i<y;i++)switch(d[i].once&&this.removeListener(t,d[i].fn,void 0,!0),m){case 1:d[i].fn.call(d[i].context);break;case 2:d[i].fn.call(d[i].context,e);break;case 3:d[i].fn.call(d[i].context,e,n);break;case 4:d[i].fn.call(d[i].context,e,n,r);break;default:if(!h)for(v=1,h=new Array(m-1);v<m;v++)h[v-1]=arguments[v];d[i].fn.apply(d[i].context,h)}}return!0},d.prototype.on=function(t,e,n){return f(this,t,e,n,!1)},d.prototype.once=function(t,e,n){return f(this,t,e,n,!0)},d.prototype.removeListener=function(t,e,n,r){var l=o?o+t:t;if(!this._events[l])return this;if(!e)return h(this,l),this;var c=this._events[l];if(c.fn)c.fn!==e||r&&!c.once||n&&c.context!==n||h(this,l);else{for(var i=0,f=[],d=c.length;i<d;i++)(c[i].fn!==e||r&&!c[i].once||n&&c[i].context!==n)&&f.push(c[i]);f.length?this._events[l]=1===f.length?f[0]:f:h(this,l)}return this},d.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&h(this,e)):(this._events=new l,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=o,d.EventEmitter=d,t.exports=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"string"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"object"==typeof t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getOperationAST",(function(){return o}));var r=n(12);function o(t,e){for(var n=null,o=0,l=t.definitions;o<l.length;o++){var c,f=l[o];if(f.kind===r.a.OPERATION_DEFINITION)if(null==e){if(n)return null;n=f}else if((null===(c=f.name)||void 0===c?void 0:c.value)===e)return f}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHQL_SUBSCRIPTIONS=e.GRAPHQL_WS=void 0;e.GRAPHQL_WS="graphql-ws";e.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WS_TIMEOUT=e.MIN_WS_TIMEOUT=void 0;e.MIN_WS_TIMEOUT=1e3;e.WS_TIMEOUT=3e4},function(t,e,n){"use strict";var r=n(242),o=n(614),l=n(615),c=n(243),f=r.sum32,h=r.sum32_4,d=r.sum32_5,m=l.ch32,v=l.maj32,y=l.s0_256,_=l.s1_256,w=l.g0_256,x=l.g1_256,E=o.BlockHash,S=[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 k(){if(!(this instanceof k))return new k;E.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=S,this.W=new Array(64)}r.inherits(k,E),t.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=h(x(n[i-2]),n[i-7],w(n[i-15]),n[i-16]);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],l=this.h[4],E=this.h[5],g=this.h[6],S=this.h[7];for(c(this.k.length===n.length),i=0;i<n.length;i++){var k=d(S,_(l),m(l,E,g),this.k[i],n[i]),A=f(y(a),v(a,b,r));S=g,g=E,E=l,l=f(o,k),o=r,r=b,b=a,a=f(k,A)}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],r),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],l),this.h[5]=f(this.h[5],E),this.h[6]=f(this.h[6],g),this.h[7]=f(this.h[7],S)},k.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";var r=n(242),o=n(243);function l(){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}e.BlockHash=l,l.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},l.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},l.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=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++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>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(t,e,n){"use strict";var r=n(242).rotr32;function o(t,e,n){return t&e^~t&n}function l(t,e,n){return t&e^t&n^e&n}function c(t,e,n){return t^e^n}e.ft_1=function(s,t,e,n){return 0===s?o(t,e,n):1===s||3===s?c(t,e,n):2===s?l(t,e,n):void 0},e.ch32=o,e.maj32=l,e.p32=c,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var c=function(){return"function"==typeof Symbol},f=function(t){return c()&&Boolean(Symbol[t])},h=function(t){return f(t)?Symbol[t]:"@@"+t};c()&&!f("observable")&&(Symbol.observable=Symbol("observable"));var d=h("iterator"),m=h("observable"),v=h("species");function y(t,e){var n=t[e];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function _(t){var e=t.constructor;return void 0!==e&&null===(e=e[v])&&(e=void 0),void 0!==e?e:P}function w(t){return t instanceof P}function x(t){x.log?x.log(t):setTimeout((function(){throw t}))}function E(t){Promise.resolve().then((function(){try{t()}catch(t){x(t)}}))}function S(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"==typeof e)e();else{var n=y(e,"unsubscribe");n&&n.call(e)}}catch(t){x(t)}}function k(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function A(t,e,n){t._state="running";var r=t._observer;try{var o=y(r,e);switch(e){case"next":o&&o.call(r,n);break;case"error":if(k(t),!o)throw n;o.call(r,n);break;case"complete":k(t),o&&o.call(r)}}catch(t){x(t)}"closed"===t._state?S(t):"running"===t._state&&(t._state="ready")}function O(t,e,n){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:n}],void E((function(){return function(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var i=0;i<e.length&&(A(t,e[i].type,e[i].value),"closed"!==t._state);++i);}}(t)}))):void A(t,e,n);t._queue.push({type:e,value:n})}}var T=function(){function t(e,n){r(this,t),this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var o=new C(this);try{this._cleanup=n.call(void 0,o)}catch(t){o.error(t)}"initializing"===this._state&&(this._state="ready")}return l(t,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(k(this),S(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),t}(),C=function(){function t(e){r(this,t),this._subscription=e}return l(t,[{key:"next",value:function(t){O(this._subscription,"next",t)}},{key:"error",value:function(t){O(this._subscription,"error",t)}},{key:"complete",value:function(){O(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),P=function(){function t(e){if(r(this,t),!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return l(t,[{key:"subscribe",value:function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new T(t,this._subscriber)}},{key:"forEach",value:function(t){var e=this;return new Promise((function(n,r){if("function"==typeof t)var o=e.subscribe({next:function(e){try{t(e,l)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(t+" is not a function"));function l(){o.unsubscribe(),n()}}))}},{key:"map",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(_(this))((function(n){return e.subscribe({next:function(e){try{e=t(e)}catch(t){return n.error(t)}n.next(e)},error:function(t){n.error(t)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(_(this))((function(n){return e.subscribe({next:function(e){try{if(!t(e))return}catch(t){return n.error(t)}n.next(e)},error:function(t){n.error(t)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=_(this),r=arguments.length>1,o=!1,l=arguments[1],c=l;return new n((function(n){return e.subscribe({next:function(e){var l=!o;if(o=!0,!l||r)try{c=t(c,e)}catch(t){return n.error(t)}else c=e},error:function(t){n.error(t)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(c),n.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=_(this);return new o((function(e){var r,l=0;return function t(c){r=c.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){l===n.length?(r=void 0,e.complete()):t(o.from(n[l++]))}})}(t),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var n=_(this);return new n((function(r){var o=[],l=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(t){return r.error(t)}var l=n.from(e).subscribe({next:function(t){r.next(t)},error:function(t){r.error(t)},complete:function(){var i=o.indexOf(l);i>=0&&o.splice(i,1),c()}});o.push(l)},error:function(t){r.error(t)},complete:function(){c()}});function c(){l.closed&&0===o.length&&r.complete()}return function(){o.forEach((function(s){return s.unsubscribe()})),l.unsubscribe()}}))}},{key:m,value:function(){return this}}],[{key:"from",value:function(e){var n="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var r=y(e,m);if(r){var o=r.call(e);if(Object(o)!==o)throw new TypeError(o+" is not an object");return w(o)&&o.constructor===n?o:new n((function(t){return o.subscribe(t)}))}if(f("iterator")&&(r=y(e,d)))return new n((function(t){E((function(){if(!t.closed){var n=!0,o=!1,l=void 0;try{for(var c,f=r.call(e)[Symbol.iterator]();!(n=(c=f.next()).done);n=!0){var h=c.value;if(t.next(h),t.closed)return}}catch(t){o=!0,l=t}finally{try{n||null==f.return||f.return()}finally{if(o)throw l}}t.complete()}}))}));if(Array.isArray(e))return new n((function(t){E((function(){if(!t.closed){for(var i=0;i<e.length;++i)if(t.next(e[i]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o="function"==typeof this?this:t;return new o((function(t){E((function(){if(!t.closed){for(var i=0;i<n.length;++i)if(t.next(n[i]),t.closed)return;t.complete()}}))}))}},{key:v,get:function(){return this}}]),t}();e.Observable=P,c()&&Object.defineProperty(P,Symbol("extensions"),{value:{symbol:m,hostReportError:x},configurable:!0})},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return l})),n.d(e,"__rest",(function(){return c})),n.d(e,"__decorate",(function(){return f})),n.d(e,"__param",(function(){return h})),n.d(e,"__metadata",(function(){return d})),n.d(e,"__awaiter",(function(){return m})),n.d(e,"__generator",(function(){return v})),n.d(e,"__createBinding",(function(){return y})),n.d(e,"__exportStar",(function(){return _})),n.d(e,"__values",(function(){return w})),n.d(e,"__read",(function(){return x})),n.d(e,"__spread",(function(){return E})),n.d(e,"__spreadArrays",(function(){return S})),n.d(e,"__await",(function(){return k})),n.d(e,"__asyncGenerator",(function(){return A})),n.d(e,"__asyncDelegator",(function(){return O})),n.d(e,"__asyncValues",(function(){return T})),n.d(e,"__makeTemplateObject",(function(){return C})),n.d(e,"__importStar",(function(){return P})),n.d(e,"__importDefault",(function(){return I})),n.d(e,"__classPrivateFieldGet",(function(){return M})),n.d(e,"__classPrivateFieldSet",(function(){return j}));var r=function(t,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},r(t,b)};function o(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var l=function(){return l=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},l.apply(this,arguments)};function c(s,t){var e={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&t.indexOf(p)<0&&(e[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)t.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(e[p[i]]=s[p[i]])}return e}function f(t,e,n,desc){var r,o=arguments.length,l=o<3?e:null===desc?desc=Object.getOwnPropertyDescriptor(e,n):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,n,desc);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(l=(o<3?r(l):o>3?r(e,n,l):r(e,n))||l);return o>3&&l&&Object.defineProperty(e,n,l),l}function h(t,e){return function(n,r){e(n,r,t)}}function d(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function m(t,e,n,r){return new(n||(n=Promise))((function(o,l){function c(t){try{h(r.next(t))}catch(t){l(t)}}function f(t){try{h(r.throw(t))}catch(t){l(t)}}function h(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,f)}h((r=r.apply(t,e||[])).next())}))}function v(t,body){var e,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function l(l){return function(c){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=body.call(t,o)}catch(t){l=[6,t],n=0}finally{e=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function y(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function _(t,e){for(var p in t)"default"===p||e.hasOwnProperty(p)||(e[p]=t[p])}function w(t){var s="function"==typeof Symbol&&Symbol.iterator,e=s&&t[s],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function E(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(x(arguments[i]));return t}function S(){for(var s=0,i=0,t=arguments.length;i<t;i++)s+=arguments[i].length;var e=Array(s),n=0;for(i=0;i<t;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)e[n]=a[r];return e}function k(t){return this instanceof k?(this.v=t,this):new k(t)}function A(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=n.apply(t,e||[]),q=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(t){g[t]&&(i[t]=function(e){return new Promise((function(a,b){q.push([t,e,a,b])>1||o(t,e)}))})}function o(t,e){try{(n=g[t](e)).value instanceof k?Promise.resolve(n.value.v).then(l,c):f(q[0][2],n)}catch(t){f(q[0][3],t)}var n}function l(t){o("next",t)}function c(t){o("throw",t)}function f(t,e){t(e),q.shift(),q.length&&o(q[0][0],q[0][1])}}function O(t){var i,p;return i={},e("next"),e("throw",(function(t){throw t})),e("return"),i[Symbol.iterator]=function(){return this},i;function e(e,n){i[e]=t[e]?function(r){return(p=!p)?{value:k(t[e](r)),done:"return"===e}:n?n(r):r}:n}}function T(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,e=t[Symbol.asyncIterator];return e?e.call(t):(t=w(t),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(e){i[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(n=t[e](n)).done,n.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function P(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function M(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);function o(t,e,n){var c=n.fragmentMap,h=n.contextValue,d=n.variableValues,m={};return t.selections.forEach((function(t){if(!d||r.shouldInclude(t,d))if(r.isField(t)){var v=function(t,e,n){var c=n.variableValues,f=n.contextValue,h=n.resolver,d=t.name.value,m=r.argumentsObjectFromField(t,c),v={isLeaf:!t.selectionSet,resultKey:r.resultKeyNameFromField(t),directives:r.getDirectiveInfoFromField(t,c),field:t},y=h(d,e,m,f,v);if(!t.selectionSet)return y;if(null==y)return y;if(Array.isArray(y))return l(t,y,n);return o(t.selectionSet,y,n)}(t,e,n),y=r.resultKeyNameFromField(t);void 0!==v&&(void 0===m[y]?m[y]=v:f(m[y],v))}else{var _=void 0;if(r.isInlineFragment(t))_=t;else if(!(_=c[t.name.value]))throw new Error("No fragment named "+t.name.value);var w=_.typeCondition.name.value;if(n.fragmentMatcher(e,w,h)){var x=o(_.selectionSet,e,n);f(m,x)}}})),n.resultMapper?n.resultMapper(m,e):m}function l(t,e,n){return e.map((function(e){return null===e?null:Array.isArray(e)?l(t,e,n):o(t.selectionSet,e,n)}))}e.graphql=function(t,e,n,l,c,f){void 0===c&&(c={}),void 0===f&&(f={});var h=r.getMainDefinition(e),d=r.getFragmentDefinitions(e),m={fragmentMap:r.createFragmentMap(d),contextValue:l,variableValues:c,resultMapper:f.resultMapper,resolver:t,fragmentMatcher:f.fragmentMatcher||function(){return!0}};return o(h.selectionSet,n,m)};var c=Object.prototype.hasOwnProperty;function f(t,e){null!==e&&"object"==typeof e&&Object.keys(e).forEach((function(n){var r=e[n];c.call(t,n)?f(t[n],r):t[n]=r}))}e.merge=f},,,function(t,e,n){"use strict";n.r(e);var r=n(244);n.d(e,"ReactNativeFile",(function(){return r}));var o=n(380);n.d(e,"extractFiles",(function(){return o}));var l=n(245);n.d(e,"isExtractableFile",(function(){return l}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=o(e);n;)n=o(e=n.ownerDocument);return e}(),e=[],n=null,r=null;c.prototype.THROTTLE_TIMEOUT=100,c.prototype.POLL_INTERVAL=null,c.prototype.USE_MUTATION_OBSERVER=!0,c._setupCrossOriginUpdater=function(){return n||(n=function(t,n){r=t&&n?v(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),n},c._resetCrossOriginUpdater=function(){n=null,r=null},c.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},c.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},c.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},c.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},c.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,i,a){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==a[i-1]}))},c.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},c.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var r=this._checkForIntersections,l=null,c=null;if(this.POLL_INTERVAL?l=n.setInterval(r,this.POLL_INTERVAL):(f(n,"resize",r,!0),f(e,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(c=new n.MutationObserver(r)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(l&&t.clearInterval(l),h(t,"resize",r,!0)),h(e,"scroll",r,!0),c&&c.disconnect()})),e!=(this.root&&this.root.ownerDocument||t)){var d=o(e);d&&this._monitorIntersections(d.ownerDocument)}}},c.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var r=this.root&&this.root.ownerDocument||t,l=this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=r;){var l=o(n);if((n=l&&l.ownerDocument)==e)return!0}return!1}));if(!l){var c=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),c(),e!=r){var f=o(e);f&&this._unmonitorIntersections(f.ownerDocument)}}}},c.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var i=0;i<t.length;i++)t[i]()},c.prototype._checkForIntersections=function(){if(this.root||!n||r){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,c=d(o),f=this._rootContainsTarget(o),h=r.entry,m=t&&f&&this._computeTargetAndRootIntersection(o,c,e),v=r.entry=new l({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:c,rootBounds:n&&!this.root?null:e,intersectionRect:m});h?t&&f?this._hasCrossedThreshold(h,v)&&this._queuedEntries.push(v):h&&h.isIntersecting&&this._queuedEntries.push(v):this._queuedEntries.push(v)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},c.prototype._computeTargetAndRootIntersection=function(e,o,l){if("none"!=window.getComputedStyle(e).display){for(var c,f,h,m,y,w,x,E,S=o,k=_(e),A=!1;!A&&k;){var O=null,T=1==k.nodeType?window.getComputedStyle(k):{};if("none"==T.display)return null;if(k==this.root||9==k.nodeType)if(A=!0,k==this.root||k==t)n&&!this.root?!r||0==r.width&&0==r.height?(k=null,O=null,S=null):O=r:O=l;else{var C=_(k),P=C&&d(C),I=C&&this._computeTargetAndRootIntersection(C,P,l);P&&I?(k=C,O=v(P,I)):(k=null,S=null)}else{var M=k.ownerDocument;k!=M.body&&k!=M.documentElement&&"visible"!=T.overflow&&(O=d(k))}if(O&&(c=O,f=S,h=void 0,m=void 0,y=void 0,w=void 0,x=void 0,E=void 0,h=Math.max(c.top,f.top),m=Math.min(c.bottom,f.bottom),y=Math.max(c.left,f.left),w=Math.min(c.right,f.right),E=m-h,S=(x=w-y)>=0&&E>=0&&{top:h,bottom:m,left:y,right:w,width:x,height:E}||null),!S)break;k=k&&_(k)}return S}},c.prototype._getRootRect=function(){var e;if(this.root)e=d(this.root);else{var html=t.documentElement,body=t.body;e={top:0,left:0,right:html.clientWidth||body.clientWidth,width:html.clientWidth||body.clientWidth,bottom:html.clientHeight||body.clientHeight,height:html.clientHeight||body.clientHeight}}return this._expandRectByRootMargin(e)},c.prototype._expandRectByRootMargin=function(rect){var t=this._rootMarginValues.map((function(t,i){return"px"==t.unit?t.value:t.value*(i%2?rect.width:rect.height)/100})),e={top:rect.top-t[0],right:rect.right+t[1],bottom:rect.bottom+t[2],left:rect.left-t[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},c.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},c.prototype._rootIsInDom=function(){return!this.root||y(t,this.root)},c.prototype._rootContainsTarget=function(e){return y(this.root||t,e)&&(!this.root||this.root.ownerDocument==e.ownerDocument)},c.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},c.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=c,window.IntersectionObserverEntry=l}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function l(t){this.time=t.time,this.target=t.target,this.rootBounds=m(t.rootBounds),this.boundingClientRect=m(t.boundingClientRect),this.intersectionRect=m(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function c(t,e){var n,r,o,l=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(l.root&&1!=l.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(l.rootMargin),this.thresholds=this._initThresholds(l.threshold),this.root=l.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function f(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function h(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function d(t){var rect;try{rect=t.getBoundingClientRect()}catch(t){}return rect?(rect.width&&rect.height||(rect={top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,width:rect.right-rect.left,height:rect.bottom-rect.top}),rect):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(rect){return!rect||"x"in rect?rect:{top:rect.top,y:rect.top,bottom:rect.bottom,left:rect.left,x:rect.left,right:rect.right,width:rect.width,height:rect.height}}function v(t,e){var n=e.top-t.top,r=e.left-t.left;return{top:n,left:r,height:e.height,width:e.width,bottom:n+e.height,right:r+e.width}}function y(t,e){for(var n=e;n;){if(n==t)return!0;n=_(n)}return!1}function _(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?o(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()},function(t,e,n){var r;!function(t){var e,n,r,o,l,c,f,h=navigator.userAgent;t.HTMLPictureElement&&/ecko/.test(h)&&h.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(n=document.createElement("source"),r=function(img){var source,t,picture=img.parentNode;"PICTURE"===picture.nodeName.toUpperCase()?(source=n.cloneNode(),picture.insertBefore(source,picture.firstElementChild),setTimeout((function(){picture.removeChild(source)}))):(!img._pfLastSize||img.offsetWidth>img._pfLastSize)&&(img._pfLastSize=img.offsetWidth,t=img.sizes,img.sizes+=",100vw",setTimeout((function(){img.sizes=t})))},o=function(){var i,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(i=0;i<t.length;i++)r(t[i])},l=function(){clearTimeout(e),e=setTimeout(o,99)},c=t.matchMedia&&matchMedia("(orientation: landscape)"),f=function(){l(),c&&c.addListener&&c.addListener(l)},n.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?f():document.addEventListener("DOMContentLoaded",f),l))}(window),function(o,l,c){"use strict";var f,h,d;l.createElement("picture");var m={},v=!1,y=function(){},image=l.createElement("img"),_=image.getAttribute,w=image.setAttribute,x=image.removeAttribute,E=l.documentElement,S={},k={algorithm:""},A="data-pfsrc",O=A+"set",T=navigator.userAgent,C=/rident/.test(T)||/ecko/.test(T)&&T.match(/rv\:(\d+)/)&&RegExp.$1>35,P="currentSrc",I=/\s+\+?\d+(e\d+)?w/,M=/(\([^)]+\))?\s*(.+)/,j=o.picturefillCFG,D="font-size:100%!important;",F=!0,R={},L={},N=o.devicePixelRatio,B={px:1,in:96},V=l.createElement("a"),z=!1,U=/^[ \t\n\r\u000c]+/,$=/^[, \t\n\r\u000c]+/,G=/^[^ \t\n\r\u000c]+/,H=/[,]+$/,W=/^\d+$/,Q=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,Y=function(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r||!1):t.attachEvent&&t.attachEvent("on"+e,n)},K=function(t){var e={};return function(input){return input in e||(e[input]=t(input)),e[input]}};function X(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}var J,Z,tt,et,img,nt,it,ot,at,st,ut,lt,ct,ft,ht,pt,mt=(J=/^([\d\.]+)(em|vw|px)$/,Z=K((function(t){return"return "+function(){for(var t=arguments,e=0,n=t[0];++e in t;)n=n.replace(t[e],t[++e]);return n}((t||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"})),function(t,e){var n;if(!(t in R))if(R[t]=!1,e&&(n=t.match(J)))R[t]=n[1]*B[n[2]];else try{R[t]=new Function("e",Z(t))(B)}catch(t){}return R[t]}),vt=function(t,e){return t.w?(t.cWidth=m.calcListLength(e||"100vw"),t.res=t.w/t.cWidth):t.res=t.d,t},yt=function(t){if(v){var e,i,n,r=t||{};if(r.elements&&1===r.elements.nodeType&&("IMG"===r.elements.nodeName.toUpperCase()?r.elements=[r.elements]:(r.context=r.elements,r.elements=null)),n=(e=r.elements||m.qsa(r.context||l,r.reevaluate||r.reselect?m.sel:m.selShort)).length){for(m.setupRun(r),z=!0,i=0;i<n;i++)m.fillImg(e[i],r);m.teardownRun(r)}}};function gt(a,b){return a.res-b.res}function bt(t,e){var i,n,r;if(t&&e)for(r=m.parseSet(e),t=m.makeUrl(t),i=0;i<r.length;i++)if(t===m.makeUrl(r[i].url)){n=r[i];break}return n}o.console&&console.warn,P in image||(P="src"),S["image/jpeg"]=!0,S["image/gif"]=!0,S["image/png"]=!0,S["image/svg+xml"]=l.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),m.ns=("pf"+(new Date).getTime()).substr(0,9),m.supSrcset="srcset"in image,m.supSizes="sizes"in image,m.supPicture=!!o.HTMLPictureElement,m.supSrcset&&m.supPicture&&!m.supSizes&&(tt=l.createElement("img"),image.srcset="data:,a",tt.src="data:,a",m.supSrcset=image.complete===tt.complete,m.supPicture=m.supSrcset&&m.supPicture),m.supSrcset&&!m.supSizes?(et="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",img=l.createElement("img"),nt=function(){2===img.width&&(m.supSizes=!0),h=m.supSrcset&&!m.supSizes,v=!0,setTimeout(yt)},img.onload=nt,img.onerror=nt,img.setAttribute("sizes","9px"),img.srcset=et+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",img.src=et):v=!0,m.selShort="picture>img,img[srcset]",m.sel=m.selShort,m.cfg=k,m.DPR=N||1,m.u=B,m.types=S,m.setSize=y,m.makeUrl=K((function(t){return V.href=t,V.href})),m.qsa=function(t,e){return"querySelector"in t?t.querySelectorAll(e):[]},m.matchesMedia=function(){return o.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?m.matchesMedia=function(t){return!t||matchMedia(t).matches}:m.matchesMedia=m.mMQ,m.matchesMedia.apply(this,arguments)},m.mMQ=function(t){return!t||mt(t)},m.calcLength=function(t){var e=mt(t,!0)||!1;return e<0&&(e=!1),e},m.supportsType=function(t){return!t||S[t]},m.parseSize=K((function(t){var e=(t||"").match(M);return{media:e&&e[1],length:e&&e[2]}})),m.parseSet=function(t){return t.cands||(t.cands=function(input,t){function e(t){var e,n=t.exec(input.substring(h));if(n)return e=n[0],h+=e.length,e}var n,r,o,l,c,f=input.length,h=0,d=[];function m(){var e,o,l,i,desc,c,f,h,m,v=!1,y={};for(i=0;i<r.length;i++)c=(desc=r[i])[desc.length-1],f=desc.substring(0,desc.length-1),h=parseInt(f,10),m=parseFloat(f),W.test(f)&&"w"===c?((e||o)&&(v=!0),0===h?v=!0:e=h):Q.test(f)&&"x"===c?((e||o||l)&&(v=!0),m<0?v=!0:o=m):W.test(f)&&"h"===c?((l||o)&&(v=!0),0===h?v=!0:l=h):v=!0;v||(y.url=n,e&&(y.w=e),o&&(y.d=o),l&&(y.h=l),l||o||e||(y.d=1),1===y.d&&(t.has1x=!0),y.set=t,d.push(y))}function v(){for(e(U),o="",l="in descriptor";;){if(c=input.charAt(h),"in descriptor"===l)if(X(c))o&&(r.push(o),o="",l="after descriptor");else{if(","===c)return h+=1,o&&r.push(o),void m();if("("===c)o+=c,l="in parens";else{if(""===c)return o&&r.push(o),void m();o+=c}}else if("in parens"===l)if(")"===c)o+=c,l="in descriptor";else{if(""===c)return r.push(o),void m();o+=c}else if("after descriptor"===l)if(X(c));else{if(""===c)return void m();l="in descriptor",h-=1}h+=1}}for(;;){if(e($),h>=f)return d;n=e(G),r=[],","===n.slice(-1)?(n=n.replace(H,""),m()):v()}}(t.srcset,t)),t.cands},m.getEmValue=function(){var body;if(!f&&(body=l.body)){var div=l.createElement("div"),t=E.style.cssText,e=body.style.cssText;div.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",E.style.cssText=D,body.style.cssText=D,body.appendChild(div),f=div.offsetWidth,body.removeChild(div),f=parseFloat(f,10),E.style.cssText=t,body.style.cssText=e}return f||16},m.calcListLength=function(t){if(!(t in L)||k.uT){var e=m.calcLength(function(t){var i,e,n,r,o,l,s,c=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,f=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(n=(e=function(t){var e,component="",n=[],r=[],o=0,l=0,c=!1;function f(){component&&(n.push(component),component="")}function h(){n[0]&&(r.push(n),n=[])}for(;;){if(""===(e=t.charAt(l)))return f(),h(),r;if(c){if("*"===e&&"/"===t[l+1]){c=!1,l+=2,f();continue}l+=1}else{if(X(e)){if(t.charAt(l-1)&&X(t.charAt(l-1))||!component){l+=1;continue}if(0===o){f(),l+=1;continue}e=" "}else if("("===e)o+=1;else if(")"===e)o-=1;else{if(","===e){f(),h(),l+=1;continue}if("/"===e&&"*"===t.charAt(l+1)){c=!0,l+=2;continue}}component+=e,l+=1}}}(t)).length,i=0;i<n;i++)if(o=(r=e[i])[r.length-1],s=o,c.test(s)&&parseFloat(s)>=0||f.test(s)||"0"===s||"-0"===s||"+0"===s){if(l=o,r.pop(),0===r.length)return l;if(r=r.join(" "),m.matchesMedia(r))return l}return"100vw"}(t));L[t]=e||B.width}return L[t]},m.setRes=function(t){var e;if(t)for(var i=0,n=(e=m.parseSet(t)).length;i<n;i++)vt(e[i],t.sizes);return e},m.setRes.res=vt,m.applySetCandidate=function(t,img){if(t.length){var e,i,n,r,o,l,c,f,h,d,v,y,_,w,x,E,S=img[m.ns],A=m.DPR;if(l=S.curSrc||img[P],c=S.curCan||function(img,t,e){var n;return!e&&t&&(e=(e=img[m.ns].sets)&&e[e.length-1]),(n=bt(t,e))&&(t=m.makeUrl(t),img[m.ns].curSrc=t,img[m.ns].curCan=n,n.res||vt(n,n.set.sizes)),n}(img,l,t[0].set),c&&c.set===t[0].set&&((h=C&&!img.complete&&c.res-.1>A)||(c.cached=!0,c.res>=A&&(o=c))),!o)for(t.sort(gt),o=t[(r=t.length)-1],i=0;i<r;i++)if((e=t[i]).res>=A){o=t[n=i-1]&&(h||l!==m.makeUrl(e.url))&&(d=t[n].res,v=e.res,y=A,_=t[n].cached,w=void 0,x=void 0,E=void 0,"saveData"===k.algorithm?d>2.7?E=y+1:(x=(v-y)*(w=Math.pow(d-.6,1.5)),_&&(x+=.1*w),E=d+x):E=y>1?Math.sqrt(d*v):d,E>y)?t[n]:e;break}o&&(f=m.makeUrl(o.url),S.curSrc=f,S.curCan=o,f!==l&&m.setSrc(img,o),m.setSize(img))}},m.setSrc=function(img,t){var e;img.src=t.url,"image/svg+xml"===t.set.type&&(e=img.style.width,img.style.width=img.offsetWidth+1+"px",img.offsetWidth+1&&(img.style.width=e))},m.getSet=function(img){var i,t,e,n=!1,r=img[m.ns].sets;for(i=0;i<r.length&&!n;i++)if((t=r[i]).srcset&&m.matchesMedia(t.media)&&(e=m.supportsType(t.type))){"pending"===e&&(t=e),n=t;break}return n},m.parseSets=function(element,t,e){var n,r,o,l,f=t&&"PICTURE"===t.nodeName.toUpperCase(),d=element[m.ns];(d.src===c||e.src)&&(d.src=_.call(element,"src"),d.src?w.call(element,A,d.src):x.call(element,A)),(d.srcset===c||e.srcset||!m.supSrcset||element.srcset)&&(n=_.call(element,"srcset"),d.srcset=n,l=!0),d.sets=[],f&&(d.pic=!0,function(picture,t){var i,e,source,n,r=picture.getElementsByTagName("source");for(i=0,e=r.length;i<e;i++)(source=r[i])[m.ns]=!0,(n=source.getAttribute("srcset"))&&t.push({srcset:n,media:source.getAttribute("media"),type:source.getAttribute("type"),sizes:source.getAttribute("sizes")})}(t,d.sets)),d.srcset?(r={srcset:d.srcset,sizes:_.call(element,"sizes")},d.sets.push(r),(o=(h||d.src)&&I.test(d.srcset||""))||!d.src||bt(d.src,r)||r.has1x||(r.srcset+=", "+d.src,r.cands.push({url:d.src,d:1,set:r}))):d.src&&d.sets.push({srcset:d.src,sizes:null}),d.curCan=null,d.curSrc=c,d.supported=!(f||r&&!m.supSrcset||o&&!m.supSizes),l&&m.supSrcset&&!d.supported&&(n?(w.call(element,O,n),element.srcset=""):x.call(element,O)),d.supported&&!d.srcset&&(!d.src&&element.src||element.src!==m.makeUrl(d.src))&&(null===d.src?element.removeAttribute("src"):element.src=d.src),d.parsed=!0},m.fillImg=function(element,t){var e,n=t.reselect||t.reevaluate;element[m.ns]||(element[m.ns]={}),e=element[m.ns],(n||e.evaled!==d)&&(e.parsed&&!t.reevaluate||m.parseSets(element,element.parentNode,t),e.supported?e.evaled=d:function(img){var t,e=m.getSet(img),n=!1;"pending"!==e&&(n=d,e&&(t=m.setRes(e),m.applySetCandidate(t,img))),img[m.ns].evaled=n}(element))},m.setupRun=function(){z&&!F&&N===o.devicePixelRatio||(F=!1,N=o.devicePixelRatio,R={},L={},m.DPR=N||1,B.width=Math.max(o.innerWidth||0,E.clientWidth),B.height=Math.max(o.innerHeight||0,E.clientHeight),B.vw=B.width/100,B.vh=B.height/100,d=[B.height,B.width,N].join("-"),B.em=m.getEmValue(),B.rem=B.em)},m.supPicture?(yt=y,m.fillImg=y):(ct=o.attachEvent?/d$|^c/:/d$|^c|^i/,ft=function(){var t=l.readyState||"";ht=setTimeout(ft,"loading"===t?200:999),l.body&&(m.fillImgs(),(it=it||ct.test(t))&&clearTimeout(ht))},ht=setTimeout(ft,l.body?9:99),pt=E.clientHeight,Y(o,"resize",(ot=function(){F=Math.max(o.innerWidth||0,E.clientWidth)!==B.width||E.clientHeight!==pt,pt=E.clientHeight,F&&m.fillImgs()},at=99,lt=function(){var t=new Date-ut;t<at?st=setTimeout(lt,at-t):(st=null,ot())},function(){ut=new Date,st||(st=setTimeout(lt,at))})),Y(l,"readystatechange",ft)),m.picturefill=yt,m.fillImgs=yt,m.teardownRun=y,yt._=m,o.picturefillCFG={pf:m,push:function(t){var e=t.shift();"function"==typeof m[e]?m[e].apply(m,t):(k[e]=t[0],z&&m.fillImgs({reselect:!0}))}};for(;j&&j.length;)o.picturefillCFG.push(j.shift());o.picturefill=yt,"object"==typeof t.exports?t.exports=yt:(r=function(){return yt}.call(e,n,e,t))===c||(t.exports=r),m.supPicture||(S["image/webp"]=function(t,e){var image=new o.Image;return image.onerror=function(){S[t]=!1,yt()},image.onload=function(){S[t]=1===image.width,yt()},image.src=e,"pending"}("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document)},function(t,e,n){"use strict";n.r(e);class r{constructor(){!function(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}(r,google.maps.OverlayView)}}function o(t){return Object.keys(t).reduce(((e,n)=>(t[n]&&e.push(n+":"+t[n]),e)),[]).join(";")}function l(t){return t?t+"px":void 0}class c extends r{constructor(t,e){super(),this.cluster_=t,this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.style=null,this.setMap(t.getMap())}onAdd(){let t,e;const n=this.cluster_.getMarkerClusterer(),[r,o]=google.maps.version.split("."),l=100*parseInt(r,10)+parseInt(o,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){e=t})),google.maps.event.addDomListener(this.div_,"mousedown",(()=>{t=!0,e=!1})),l>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(t=>{t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(r=>{if(t=!1,!e){if(google.maps.event.trigger(n,"click",this.cluster_),google.maps.event.trigger(n,"clusterclick",this.cluster_),n.getZoomOnClick()){const t=n.getMaxZoom(),e=this.cluster_.getBounds();n.getMap().fitBounds(e),setTimeout((function(){n.getMap().fitBounds(e),null!==t&&n.getMap().getZoom()>t&&n.getMap().setZoom(t+1)}),100)}r.cancelBubble=!0,r.stopPropagation&&r.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(()=>{google.maps.event.trigger(n,"mouseover",this.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(()=>{google.maps.event.trigger(n,"mouseout",this.cluster_)}))}onRemove(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)}draw(){if(this.visible_){const t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}}hide(){this.div_&&(this.div_.style.display="none"),this.visible_=!1}show(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0}getLabelDivHtml(){return`\n<div aria-label="${this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)}" style="${o({position:"absolute",top:l(this.anchorText_[0]),left:l(this.anchorText_[1]),color:this.style.textColor,"font-size":l(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:l(this.style.width),"line-height":l(this.style.textLineHeight)})}" tabindex="0">\n  <span aria-hidden="true">${this.sums_.text}</span>\n</div>\n`}getImageElementHtml(){const t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(t[1].replace(/^\s+|\s+$/g,""),10);let r={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())r={width:l(this.style.width),height:l(this.style.height)};else{const[t,o,l,c]=[-1*n,-1*e+this.style.width,-1*n+this.style.height,-1*e];r={clip:`rect(${t}px, ${o}px, ${l}px, ${c}px)`}}const c=o(Object.assign({position:"absolute",top:l(n),left:l(e)},r));return`<img alt="${this.sums_.text}" aria-hidden="true" src="${this.style.url}" style="${c}"/>`}useStyle(t){this.sums_=t;let e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)}setCenter(t){this.center_=t}createCss_(t){return o({"z-index":`${this.cluster_.getMarkerClusterer().getZIndex()}`,top:l(t.y),left:l(t.x),width:l(this.style.width),height:l(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})}getPosFromLatLng_(t){const e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e}}class f{constructor(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new c(this,this.markerClusterer_.getStyles())}getSize(){return this.markers_.length}getMarkers(){return this.markers_}getCenter(){return this.center_}getMap(){return this.map_}getMarkerClusterer(){return this.markerClusterer_}getBounds(){const t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers();for(let i=0;i<e.length;i++)t.extend(e[i].getPosition());return t}remove(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_}addMarker(marker){if(this.isMarkerAlreadyAdded_(marker))return!1;if(this.center_){if(this.averageCenter_){const t=this.markers_.length+1,e=(this.center_.lat()*(t-1)+marker.getPosition().lat())/t,n=(this.center_.lng()*(t-1)+marker.getPosition().lng())/t;this.center_=new google.maps.LatLng(e,n),this.calculateBounds_()}}else this.center_=marker.getPosition(),this.calculateBounds_();marker.isAdded=!0,this.markers_.push(marker);const t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)marker.getMap()!==this.map_&&marker.setMap(this.map_);else if(t<this.minClusterSize_)marker.getMap()!==this.map_&&marker.setMap(this.map_);else if(t===this.minClusterSize_)for(let i=0;i<t;i++)this.markers_[i].setMap(null);else marker.setMap(null);return!0}isMarkerInClusterBounds(marker){return this.bounds_.contains(marker.getPosition())}calculateBounds_(){const t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)}updateIcon(){const t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)return void this.clusterIcon_.hide();if(t<this.minClusterSize_)return void this.clusterIcon_.hide();const n=this.markerClusterer_.getStyles().length,r=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(r),this.clusterIcon_.show()}isMarkerAlreadyAdded_(marker){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(marker);for(let i=0;i<this.markers_.length;i++)if(marker===this.markers_[i])return!0;return!1}}const h=(t,e,n)=>void 0!==t[e]?t[e]:n;class d extends r{constructor(map,t=[],e={}){super(),this.options=e,this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.ariaLabelFn=this.options.ariaLabelFn||(()=>""),this.zIndex_=this.options.zIndex||google.maps.Marker.MAX_ZINDEX+1,this.gridSize_=this.options.gridSize||60,this.minClusterSize_=this.options.minimumClusterSize||2,this.maxZoom_=this.options.maxZoom||null,this.styles_=this.options.styles||[],this.title_=this.options.title||"",this.zoomOnClick_=h(this.options,"zoomOnClick",!0),this.averageCenter_=h(this.options,"averageCenter",!1),this.ignoreHidden_=h(this.options,"ignoreHidden",!1),this.enableRetinaIcons_=h(this.options,"enableRetinaIcons",!1),this.imagePath_=this.options.imagePath||d.IMAGE_PATH,this.imageExtension_=this.options.imageExtension||d.IMAGE_EXTENSION,this.imageSizes_=this.options.imageSizes||d.IMAGE_SIZES,this.calculator_=this.options.calculator||d.CALCULATOR,this.batchSize_=this.options.batchSize||d.BATCH_SIZE,this.batchSizeIE_=this.options.batchSizeIE||d.BATCH_SIZE_IE,this.clusterClass_=this.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(t,!0),this.setMap(map)}onAdd(){this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(()=>{const map=this.getMap(),t=map.minZoom||0,e=Math.min(map.maxZoom||100,map.mapTypes[map.getMapTypeId()].maxZoom),n=Math.min(Math.max(this.getMap().getZoom(),t),e);this.prevZoom_!=n&&(this.prevZoom_=n,this.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(()=>{this.redraw_()}))]}onRemove(){for(let i=0;i<this.markers_.length;i++)this.markers_[i].getMap()!==this.activeMap_&&this.markers_[i].setMap(this.activeMap_);for(let i=0;i<this.clusters_.length;i++)this.clusters_[i].remove();this.clusters_=[];for(let i=0;i<this.listeners_.length;i++)google.maps.event.removeListener(this.listeners_[i]);this.listeners_=[],this.activeMap_=null,this.ready_=!1}draw(){}setupStyles_(){if(!(this.styles_.length>0))for(let i=0;i<this.imageSizes_.length;i++){const t=this.imageSizes_[i];this.styles_.push(d.withDefaultStyle({url:this.imagePath_+(i+1)+"."+this.imageExtension_,height:t,width:t}))}}fitMapToMarkers(t){const e=this.getMarkers(),n=new google.maps.LatLngBounds;for(let i=0;i<e.length;i++)!e[i].getVisible()&&this.getIgnoreHidden()||n.extend(e[i].getPosition());this.getMap().fitBounds(n,t)}getGridSize(){return this.gridSize_}setGridSize(t){this.gridSize_=t}getMinimumClusterSize(){return this.minClusterSize_}setMinimumClusterSize(t){this.minClusterSize_=t}getMaxZoom(){return this.maxZoom_}setMaxZoom(t){this.maxZoom_=t}getZIndex(){return this.zIndex_}setZIndex(t){this.zIndex_=t}getStyles(){return this.styles_}setStyles(t){this.styles_=t}getTitle(){return this.title_}setTitle(title){this.title_=title}getZoomOnClick(){return this.zoomOnClick_}setZoomOnClick(t){this.zoomOnClick_=t}getAverageCenter(){return this.averageCenter_}setAverageCenter(t){this.averageCenter_=t}getIgnoreHidden(){return this.ignoreHidden_}setIgnoreHidden(t){this.ignoreHidden_=t}getEnableRetinaIcons(){return this.enableRetinaIcons_}setEnableRetinaIcons(t){this.enableRetinaIcons_=t}getImageExtension(){return this.imageExtension_}setImageExtension(t){this.imageExtension_=t}getImagePath(){return this.imagePath_}setImagePath(t){this.imagePath_=t}getImageSizes(){return this.imageSizes_}setImageSizes(t){this.imageSizes_=t}getCalculator(){return this.calculator_}setCalculator(t){this.calculator_=t}getBatchSizeIE(){return this.batchSizeIE_}setBatchSizeIE(t){this.batchSizeIE_=t}getClusterClass(){return this.clusterClass_}setClusterClass(t){this.clusterClass_=t}getMarkers(){return this.markers_}getTotalMarkers(){return this.markers_.length}getClusters(){return this.clusters_}getTotalClusters(){return this.clusters_.length}addMarker(marker,t){this.pushMarkerTo_(marker),t||this.redraw_()}addMarkers(t,e){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&this.pushMarkerTo_(t[e]);e||this.redraw_()}pushMarkerTo_(marker){marker.getDraggable()&&google.maps.event.addListener(marker,"dragend",(()=>{this.ready_&&(marker.isAdded=!1,this.repaint())})),marker.isAdded=!1,this.markers_.push(marker)}removeMarker(marker,t){const e=this.removeMarker_(marker);return!t&&e&&this.repaint(),e}removeMarkers(t,e){let n=!1;for(let i=0;i<t.length;i++){const e=this.removeMarker_(t[i]);n=n||e}return!e&&n&&this.repaint(),n}removeMarker_(marker){let t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(marker);else for(let i=0;i<this.markers_.length;i++)if(marker===this.markers_[i]){t=i;break}return-1!==t&&(marker.setMap(null),this.markers_.splice(t,1),!0)}clearMarkers(){this.resetViewport_(!0),this.markers_=[]}repaint(){const t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(let i=0;i<t.length;i++)t[i].remove()}),0)}getExtendedBounds(t){const e=this.getProjection(),tr=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),r=e.fromLatLngToDivPixel(tr);r.x+=this.gridSize_,r.y-=this.gridSize_;const o=e.fromLatLngToDivPixel(n);o.x-=this.gridSize_,o.y+=this.gridSize_;const l=e.fromDivPixelToLatLng(r),c=e.fromDivPixelToLatLng(o);return t.extend(l),t.extend(c),t}redraw_(){this.createClusters_(0)}resetViewport_(t){for(let i=0;i<this.clusters_.length;i++)this.clusters_[i].remove();this.clusters_=[];for(let i=0;i<this.markers_.length;i++){const marker=this.markers_[i];marker.isAdded=!1,t&&marker.setMap(null)}}distanceBetweenPoints_(t,e){const n=(e.lat()-t.lat())*Math.PI/180,r=(e.lng()-t.lng())*Math.PI/180,a=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}isMarkerInBounds_(marker,t){return t.contains(marker.getPosition())}addToClosestCluster_(marker){let t=4e4,e=null;for(let i=0;i<this.clusters_.length;i++){const n=this.clusters_[i],r=n.getCenter();if(r){const o=this.distanceBetweenPoints_(r,marker.getPosition());o<t&&(t=o,e=n)}}if(e&&e.isMarkerInClusterBounds(marker))e.addMarker(marker);else{const t=new f(this);t.addMarker(marker),this.clusters_.push(t)}}createClusters_(t){if(!this.ready_)return;let e;0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),e=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));const n=this.getExtendedBounds(e),r=Math.min(t+this.batchSize_,this.markers_.length);for(let i=t;i<r;i++){const marker=this.markers_[i];!marker.isAdded&&this.isMarkerInBounds_(marker,n)&&(!this.ignoreHidden_||this.ignoreHidden_&&marker.getVisible())&&this.addToClosestCluster_(marker)}if(r<this.markers_.length)this.timerRefStatic=window.setTimeout((()=>{this.createClusters_(r)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(let i=0;i<this.clusters_.length;i++)this.clusters_[i].updateIcon()}}static CALCULATOR(t,e){let n=0;const r=t.length;let o=r;for(;0!==o;)o=Math.floor(o/10),n++;return n=Math.min(n,e),{text:r.toString(),index:n,title:""}}static withDefaultStyle(t){return Object.assign({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)}}d.BATCH_SIZE=2e3,d.BATCH_SIZE_IE=500,d.IMAGE_PATH="../images/m",d.IMAGE_EXTENSION="png",d.IMAGE_SIZES=[53,56,66,78,90],e.default=d},function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,l=(o=!1,function(t,e){if("undefined"!=typeof document){if(o)throw new Error("You already started the loading of google maps");o=!0;var n=document.createElement("SCRIPT");if("object"!==r(t))throw new Error("options should  be an object");Object.prototype.isPrototypeOf.call(Array.prototype,t.libraries)&&(t.libraries=t.libraries.join(",")),t.callback="vueGoogleMapsInit";var l="https://maps.googleapis.com/";"boolean"==typeof e&&!0===e&&(l="https://maps.google.cn/");var c=Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&"),f="".concat(l,"maps/api/js?").concat(c);n.setAttribute("src",f),n.setAttribute("async",""),n.setAttribute("defer",""),document.head.appendChild(n)}});e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return function(n){function r(){return e.gmapApi={},window.google}if(n.load)return(0,o.default)((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(e,r){try{window.vueGoogleMapsInit=e,t(n.load,n.loadCn)}catch(t){r(t)}})).then(r)}));var l=new Promise((function(t){"undefined"!=typeof window&&(window.vueGoogleMapsInit=t)})).then(r);return(0,o.default)((function(){return l}))}};var r,o=(r=n(659))&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){var e,n=!1;return function(){return n||(n=!0,e=t()),e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};var l={url:{twoWay:!1,type:String},map:{twoWay:!0,type:Object}},c=(0,o.default)({mappedProps:l,events:["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],name:"kmlLayer",ctr:function(){return google.maps.KmlLayer}});e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};var l={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},c=(0,o.default)({mappedProps:l,events:[],name:"heatmapLayer",ctr:function(){return google.maps.visualization.HeatmapLayer}});e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};var l={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},c=(0,o.default)({mappedProps:l,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},render:function(t){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:t("div",this.$slots.default):""},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(t){return this.$clusterPromise&&(t.map=null),this.$clusterPromise},afterCreate:function(t){var e=this;this.$clusterPromise&&this.$clusterPromise.then((function(n){n.addMarker(t),e.$clusterObject=n}))}});e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};function l(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return e}(t,i)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var f={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},h=(0,o.default)({mappedProps:f,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var t=this,e=function(){};this.$watch("path",(function(path){if(path){e(),t.$polylineObject.setPath(path);var n=t.$polylineObject.getPath(),r=[],o=function(){t.$emit("path_changed",t.$polylineObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),e=function(){r.forEach((function(t){var e=l(t,2)[1];google.maps.event.removeListener(e)}))}}}),{deep:this.deepWatch,immediate:!0})}});e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};function l(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],n=!0,r=!1,o=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done)&&(e.push(l.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return e}(t,i)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function f(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}var h={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},d=(0,o.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:h,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(t){if(!t.path){var e=t;e.path;t=f(e,["path"])}if(!t.paths){var n=t;n.paths;t=f(n,["paths"])}},afterCreate:function(t){var e=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),t.setPaths(r);for(var o=function(){e.$emit("paths_changed",t.getPaths())},c=[],f=t.getPaths(),i=0;i<f.getLength();i+=1){var h=f.getAt(i);c.push([h,h.addListener("insert_at",o)]),c.push([h,h.addListener("remove_at",o)]),c.push([h,h.addListener("set_at",o)])}c.push([f,f.addListener("insert_at",o)]),c.push([f,f.addListener("remove_at",o)]),c.push([f,f.addListener("set_at",o)]),n=function(){c.forEach((function(t){var e=l(t,2)[1];google.maps.event.removeListener(e)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(path){if(path){n(),t.setPaths(path);var r=t.getPath(),o=[],c=function(){e.$emit("path_changed",t.getPath())};o.push([r,r.addListener("insert_at",c)]),o.push([r,r.addListener("remove_at",c)]),o.push([r,r.addListener("set_at",c)]),n=function(){o.forEach((function(t){var e=l(t,2)[1];google.maps.event.removeListener(e)}))}}}),{deep:this.deepWatch,immediate:!0})}});e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};var l={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},c=(0,o.default)({mappedProps:l,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};var l={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},c=(0,o.default)({mappedProps:l,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};var l={circleOptions:{type:Object,twoWay:!1,noBind:!0},markerOptions:{type:Object,twoWay:!1,noBind:!0},polygonOptions:{type:Object,twoWay:!1,noBind:!0},polylineOptions:{type:Object,twoWay:!1,noBind:!0},rectangleOptions:{type:Object,twoWay:!1,noBind:!0}},c={position:{type:String},shapes:{type:Array,required:!0}},f=(0,o.default)({name:"drawingManager",ctr:function(){return google.maps.drawing.DrawingManager},options:{drawingControl:!0,drawingControlOptions:{},drawingMode:null},mappedProps:l,props:c,events:[],beforeCreate:function(t){var e=Object.keys(t).reduce((function(t,e){var n=e.split("Options");return n.length>1&&t.push(n[0]),t}),[]),n=this.position&&google.maps.ControlPosition[this.position]?google.maps.ControlPosition[this.position]:google.maps.ControlPosition.TOP_LEFT;return t.drawingMode=null,t.drawingControl=!this.$scopedSlots.default,t.drawingControlOptions={drawingModes:e,position:n},t},afterCreate:function(){var t=this;this.$drawingManagerObject.addListener("overlaycomplete",(function(e){return t.addShape(e)})),this.$map.addListener("click",this.clearSelection),this.shapes.length>0&&this.drawAll()},destroyed:function(){this.clearAll(),this.$drawingManagerObject.setMap(null)},data:function(){return{selectedShape:null}},watch:{position:function(t){if(this.$drawingManagerObject){var e={position:t&&google.maps.ControlPosition[t]?google.maps.ControlPosition[t]:google.maps.ControlPosition.TOP_LEFT};this.$drawingManagerObject.setOptions({drawingControlOptions:e})}},circleOptions:function(t){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({circleOptions:t})},markerOptions:function(t){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({markerOptions:t})},polygonOptions:function(t){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polygonOptions:t})},polylineOptions:function(t){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polylineOptions:t})},rectangleOptions:function(t){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({rectangleOptions:t})}},methods:{setDrawingMode:function(t){this.$drawingManagerObject.setDrawingMode(t)},drawAll:function(){var t=this,e={circle:google.maps.Circle,marker:google.maps.Marker,polygon:google.maps.Polygon,polyline:google.maps.Polyline,rectangle:google.maps.Rectangle},n=this;this.shapes.forEach((function(r){var o=new e[r.type](r.overlay);o.setMap(t.$map),r.overlay=o,google.maps.event.addListener(o,"click",(function(){n.setSelection(r)}))}))},clearAll:function(){this.clearSelection(),this.shapes.forEach((function(t){t.overlay.setMap(null)}))},clearSelection:function(){this.selectedShape&&(this.selectedShape.overlay.set("fillColor","#777"),this.selectedShape.overlay.set("strokeColor","#999"),this.selectedShape.overlay.setEditable(!1),this.selectedShape.overlay.setDraggable(!1),this.selectedShape=null)},setSelection:function(t){this.clearSelection(),this.selectedShape=t,t.overlay.setEditable(!0),t.overlay.setDraggable(!0),this.selectedShape.overlay.set("fillColor","#555"),this.selectedShape.overlay.set("strokeColor","#777")},deleteSelection:function(){if(this.selectedShape){this.selectedShape.overlay.setMap(null);var t=this.shapes.indexOf(this.selectedShape);t>-1&&this.shapes.splice(t,1)}},addShape:function(t){this.setDrawingMode(null),this.shapes.push(t);var e=this;google.maps.event.addListener(t.overlay,"click",(function(){e.setSelection(t)})),this.setSelection(t)}}});e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(84))&&r.__esModule?r:{default:r};function l(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}var c={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},f=(0,o.default)({mappedProps:c,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var t=this.$refs.flyaway;t.parentNode.removeChild(t)},beforeCreate:function(t){var e=this;if(t.content=this.$refs.flyaway,this.$markerPromise){var n=t;n.position;return t=l(n,["position"]),this.$markerPromise.then((function(t){return e.$markerObject=t,t}))}},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var t=this;this._openInfoWindow(),this.$watch("opened",(function(){t._openInfoWindow()}))}});e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=d(n(247)),o=n(157),l=d(n(249)),c=d(n(390)),f=d(n(248)),h=d(n(187));function d(t){return t&&t.__esModule?t:{default:t}}function m(source,t){if(null==source)return{};var e,i,n=function(source,t){if(null==source)return{};var e,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||(n[e]=source[e]);return n}(source,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)e=r[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(n[e]=source[e])}return n}function v(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function y(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(e){_(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},x=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],E=["panBy","panTo","panToBounds","fitBounds"].reduce((function(t,e){return t[e]=function(){var t;this.$mapObject&&(t=this.$mapObject)[e].apply(t,arguments)},t}),{}),S={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var t=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(t)}},_resizeCallback:function(){this.resizePreserveCenter()}},k="__gmc__",A={mixins:[l.default],props:(0,h.default)(w),provide:function(){var t=this;return this.$mapPromise=new Promise((function(e,n){t.$mapPromiseDeferred={resolve:e,reject:n}})),{$mapPromise:this.$mapPromise}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(t){this.$mapObject&&this.$mapObject.setZoom(t)}},beforeDestroy:function(){var t=this.getRecycleKey();window[t]&&(window[t].div=this.$mapObject.getDiv())},mounted:function(){var t=this;return this.$gmapApiPromiseLazy().then((function(){var element=t.$refs["vue-map"],e=y({},t.options,{},(0,o.getPropsValues)(t,w)),n=(e.options,m(e,["options"])),l=t.getRecycleKey();return t.options.recycle&&window[l]?(element.appendChild(window[l].div),t.$mapObject=window[l].map,t.$mapObject.setOptions(n)):(t.$mapObject=new google.maps.Map(element,n),window[l]={map:t.$mapObject}),(0,o.bindProps)(t,t.$mapObject,w),(0,r.default)(t,t.$mapObject,x),(0,c.default)((function(e,n,r){t.$mapObject.addListener("center_changed",(function(){r()&&t.$emit("center_changed",t.$mapObject.getCenter()),n()})),(0,f.default)(t,["finalLat","finalLng"],(function(){e(),t.$mapObject.setCenter(t.finalLatLng)}))})),t.$mapObject.addListener("zoom_changed",(function(){t.$emit("zoom_changed",t.$mapObject.getZoom())})),t.$mapObject.addListener("bounds_changed",(function(){t.$emit("bounds_changed",t.$mapObject.getBounds())})),t.$mapPromiseDeferred.resolve(t.$mapObject),t.$mapObject})).catch((function(t){throw t}))},methods:y({},S,{},E,{getRecycleKey:function(){return this.options.recycle?k+this.options.recycle:k}})};e.default=A},function(t,e,n){"use strict";n(391)},function(t,e,n){var r=n(79)(!1);r.push([t.i,".vue-map-container{position:relative}.vue-map-container .vue-map{left:0;right:0;top:0;bottom:0;position:absolute}.vue-map-hidden{display:none}",""]),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=d(n(247)),o=n(157),l=d(n(249)),c=d(n(390)),f=d(n(248)),h=d(n(187));function d(t){return t&&t.__esModule?t:{default:t}}function m(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y={zoom:{twoWay:!0,type:Number},pov:{twoWay:!0,type:Object,trackProperties:["pitch","heading"]},position:{twoWay:!0,type:Object,noBind:!0},pano:{twoWay:!0,type:String},motionTracking:{twoWay:!1,type:Boolean},visible:{twoWay:!0,type:Boolean,default:!0},options:{twoWay:!1,type:Object,default:function(){return{}}}},_=["closeclick","status_changed"],w={mixins:[l.default],props:(0,h.default)(y),replace:!1,methods:{resize:function(){this.$panoObject&&google.maps.event.trigger(this.$panoObject,"resize")}},provide:function(){var t=this,e=new Promise((function(e,n){t.$panoPromiseDeferred={resolve:e,reject:n}}));return{$panoPromise:e,$mapPromise:e}},computed:{finalLat:function(){return this.position&&"function"==typeof this.position.lat?this.position.lat():this.position.lat},finalLng:function(){return this.position&&"function"==typeof this.position.lng?this.position.lng():this.position.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(t){this.$panoObject&&this.$panoObject.setZoom(t)}},mounted:function(){var t=this;return this.$gmapApiPromiseLazy().then((function(){var element=t.$refs["vue-street-view-pano"],e=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(e){v(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},t.options,{},(0,o.getPropsValues)(t,y));return delete e.options,t.$panoObject=new google.maps.StreetViewPanorama(element,e),(0,o.bindProps)(t,t.$panoObject,y),(0,r.default)(t,t.$panoObject,_),(0,c.default)((function(e,n,r){e(),t.$panoObject.addListener("position_changed",(function(){r()&&t.$emit("position_changed",t.$panoObject.getPosition()),n()})),(0,f.default)(t,["finalLat","finalLng"],(function(){e(),t.$panoObject.setPosition(t.finalLatLng)}))})),t.$panoPromiseDeferred.resolve(t.$panoObject),t.$panoPromise})).catch((function(t){throw t}))}};e.default=w},function(t,e,n){"use strict";n(392)},function(t,e,n){var r=n(79)(!1);r.push([t.i,".vue-street-view-pano-container{position:relative}.vue-street-view-pano-container .vue-street-view-pano{left:0;right:0;top:0;bottom:0;position:absolute}",""]),t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(266),o=n(189);for(var l in o)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(l);var c=n(0),component=Object(c.a)(o.default,r.a,r.b,!1,null,null,null);e.default=component.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(157),o=c(n(393)),l=c(n(187));function c(t){return t&&t.__esModule?t:{default:t}}function f(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(e){d(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},v={selectFirstOnEnter:{required:!1,type:Boolean,default:!1},slotRefName:{required:!1,type:String,default:"input"},childRefName:{required:!1,type:String,default:"input"},options:{type:Object},fields:{required:!1,type:Array,default:null}},y={mounted:function(){var t=this;this.$gmapApiPromiseLazy().then((function(){var e=null;if(t.$scopedSlots.input&&((e=t.$scopedSlots.input()[0].context.$refs[t.slotRefName])&&e.$refs&&(e=e.$refs[t.childRefName||"input"]),e&&(t.$refs.input=e)),t.selectFirstOnEnter&&(0,o.default)(t.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");var n=h({},(0,r.getPropsValues)(t,m),{},t.options);t.$autocomplete=new google.maps.places.Autocomplete(t.$refs.input,n),(0,r.bindProps)(t,t.$autocomplete,m),t.$watch("componentRestrictions",(function(e){void 0!==e&&t.$autocomplete.setComponentRestrictions(e)})),t.fields&&t.$autocomplete.setFields(t.fields),t.$autocomplete.addListener("place_changed",(function(){t.$emit("place_changed",t.$autocomplete.getPlace())}))}))},props:h({},(0,l.default)(m),{},v)};e.default=y},function(t,e,n){"use strict";n.r(e);var r,o=(r=n(667)).default||r,l=n(0),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._t("default",null,{setDrawingMode:t.setDrawingMode,deleteSelection:t.deleteSelection})],2)}),[],!1,null,null,null);e.default=component.exports},function(t,e,n){"use strict";n.r(e);var r,o=(r=n(668)).default||r,l=n(0),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{ref:"flyaway"},[t._t("default")],2)])}),[],!1,null,null,null);e.default=component.exports},function(t,e,n){"use strict";n.r(e);var r,o=(r=n(669)).default||r,l=(n(670),n(0)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-map-container"},[n("div",{ref:"vue-map",staticClass:"vue-map"}),t._v(" "),n("div",{staticClass:"vue-map-hidden"},[t._t("default")],2),t._v(" "),t._t("visible")],2)}),[],!1,null,null,null);e.default=component.exports},function(t,e,n){"use strict";n.r(e);var r,o=(r=n(672)).default||r,l=(n(673),n(0)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-street-view-pano-container"},[n("div",{ref:"vue-street-view-pano",staticClass:"vue-street-view-pano"}),t._v(" "),t._t("default")],2)}),[],!1,null,null,null);e.default=component.exports},function(t,e,n){"use strict";n.r(e);var r,o=(r=n(676)).default||r,l=n(0),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$scopedSlots.input?n("span",[t._t("input",null,{attrs:t.$attrs,listeners:t.$listeners})],2):t.$scopedSlots.input?t._e():n("input",t._g(t._b({ref:"input"},"input",t.$attrs,!1),t.$listeners))}),[],!1,null,null,null);e.default=component.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"checkFetcher",(function(){return d})),n.d(e,"createSignalIfSupported",(function(){return m})),n.d(e,"fallbackHttpConfig",(function(){return c})),n.d(e,"parseAndCheckHttpResponse",(function(){return h})),n.d(e,"selectHttpOptionsAndBody",(function(){return v})),n.d(e,"selectURI",(function(){return _})),n.d(e,"serializeFetchParameter",(function(){return y})),n.d(e,"throwServerError",(function(){return f}));var r=function(){return r=Object.assign||function(t){for(var s,i=1,e=arguments.length;i<e;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},r.apply(this,arguments)};var o=n(159),l=n(8),c={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},f=function(t,e,n){var r=new Error(n);throw r.name="ServerError",r.response=t,r.statusCode=t.status,r.result=e,r},h=function(t){return function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;return n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,Promise.reject(n)}})).then((function(n){return e.status>=300&&f(e,n,"Response not successful: Received status code "+e.status),Array.isArray(n)||n.hasOwnProperty("data")||n.hasOwnProperty("errors")||f(e,n,"Server response was missing for query '"+(Array.isArray(t)?t.map((function(t){return t.operationName})):t.operationName)+"'."),n}))}},d=function(t){if(!t&&"undefined"==typeof fetch){throw"undefined"==typeof window&&"node-fetch",new l.a(1)}},m=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var t=new AbortController;return{controller:t,signal:t.signal}},v=function(t,e){for(var n=[],l=2;l<arguments.length;l++)n[l-2]=arguments[l];var c=r({},e.options,{headers:e.headers,credentials:e.credentials}),f=e.http;n.forEach((function(t){c=r({},c,t.options,{headers:r({},c.headers,t.headers)}),t.credentials&&(c.credentials=t.credentials),f=r({},f,t.http)}));var h=t.operationName,d=t.extensions,m=t.variables,v=t.query,body={operationName:h,variables:m};return f.includeExtensions&&(body.extensions=d),f.includeQuery&&(body.query=Object(o.print)(v)),{options:c,body:body}},y=function(p,label){var t;try{t=JSON.stringify(p)}catch(t){var e=new l.a(2);throw e.parseError=t,e}return t},_=function(t,e){var n=t.getContext().uri;return n||("function"==typeof e?e(t):e||"/graphql")}},,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(63),o=n(162),l={nowSeconds:function(){return Date.now()/1e3}};var c=Object(o.b)()?function(){try{return Object(o.a)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=Object(r.e)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),f=void 0===c?l:{nowSeconds:function(){return(c.timeOrigin+c.now())/1e3}},h=l.nowSeconds.bind(l);f.nowSeconds.bind(f),function(){var t=Object(r.e)().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}()}).call(this,n(236)(t))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(85),o=n(206);function l(input,t){var e=input.charAt(0),n=input.substr(1).toLowerCase();return t>0&&e>="0"&&e<="9"?"_"+e+n:""+e.toUpperCase()+n}function c(input,t){return 0===t?input.toLowerCase():l(input,t)}function f(input,t){return void 0===t&&(t={}),function(input,t){return void 0===t&&(t={}),Object(o.a)(input,Object(r.a)({delimiter:"",transform:l},t))}(input,Object(r.a)({transform:c},t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(85),o=n(206);function l(input,t){return void 0===t&&(t={}),function(input,t){return void 0===t&&(t={}),Object(o.a)(input,Object(r.a)({delimiter:"."},t))}(input,Object(r.a)({delimiter:"-"},t))}}]]);